import { OpSchema as Refund } from "../../oak-app-domain/Refund/Schema"; import { Schema, OpSchema as Pay, UpdateOperationData as PayUpdateData } from "../../oak-app-domain/Pay/Schema"; import PayClazz from "../../types/PayClazz"; import { BRC } from "../../types/RuntimeCxt"; export default class Account implements PayClazz { refund(refund: Refund): Promise; closeRefund(refund: Refund): Promise; getRefundState(refund: Refund): Promise<[Refund['iState'], undefined]>; decodePayNotification(params: Record, body: any): Promise<{ payId: string; iState: string | null | undefined; extra?: PayUpdateData | undefined; }>; channel: string; prepay(pay: Schema, data: PayUpdateData, context: BRC): Promise; getState(pay: Pay): Promise<[string, PayUpdateData]>; close(pay: Pay): Promise; }