import { factory } from '../../factory'; import type { PayActionRepo } from '../../repo/action/pay'; import type { AssetTransactionRepo } from '../../repo/assetTransaction'; import type { PaymentServiceRepo } from '../../repo/paymentService'; import type { PotentialActionRepo } from '../../repo/potentialAction'; import type { ProductRepo } from '../../repo/product'; import type { TaskRepo } from '../../repo/task'; export interface IStartOperationRepos { actions: { pay: PayActionRepo; }; paymentService: PaymentServiceRepo; potentialAction: PotentialActionRepo; product: ProductRepo; assetTransaction: AssetTransactionRepo; } export type IStartOperation = (repos: IStartOperationRepos) => Promise; export type ICancelOperation = (repos: { assetTransaction: AssetTransactionRepo; }) => Promise; export type IConfirmOperation = (repos: { assetTransaction: AssetTransactionRepo; }) => Promise; export type IExportTasksOperation = (repos: { task: TaskRepo; assetTransaction: AssetTransactionRepo; }) => Promise; /** * 取引開始 */ export declare function start(params: factory.assetTransaction.refund.IStartParamsWithoutDetail): IStartOperation>; /** * 取引確定 */ export declare function confirm(params: factory.assetTransaction.refund.IConfirmParams): IConfirmOperation; /** * 取引中止 */ export declare function cancel(params: { id?: string; transactionNumber?: string; }): ICancelOperation; /** * 取引のタスク出力 */ export declare function exportTasksById(params: { id: string; /** * タスク実行日時バッファ */ runsTasksAfterInSeconds?: number; }): IExportTasksOperation<{ id: string; }[]>;