import type { AccountingReportRepo } from '../../../repo/accountingReport'; import type { PayActionRepo } from '../../../repo/action/pay'; import type { RefundActionRepo } from '../../../repo/action/refund'; import type { AssetTransactionRepo } from '../../../repo/assetTransaction'; import type { CredentialsRepo } from '../../../repo/credentials'; import type { PaymentServiceRepo } from '../../../repo/paymentService'; import type { PaymentServiceProviderRepo } from '../../../repo/paymentServiceProvider'; import type { ProductRepo } from '../../../repo/product'; import type { ProjectRepo } from '../../../repo/project'; import type { SellerPaymentAcceptedRepo } from '../../../repo/sellerPaymentAccepted'; import type { TaskRepo } from '../../../repo/task'; import type { TransactionNumberRepo } from '../../../repo/transactionNumber'; import { factory } from '../../../factory'; import type { IntegrationSettingRepo as Settings } from '../../../repo/setting/integration'; declare function refundByTask(params: factory.task.refund.IData & { sameAs?: { id: string; }; }): (repos: { actions: { pay: PayActionRepo; refund: RefundActionRepo; }; accountingReport: AccountingReportRepo; credentials: CredentialsRepo; paymentAccepted: SellerPaymentAcceptedRepo; paymentService: PaymentServiceRepo; paymentServiceProvider: PaymentServiceProviderRepo; product: ProductRepo; project: ProjectRepo; task: TaskRepo; assetTransaction: AssetTransactionRepo; transactionNumber: TransactionNumberRepo; }, settings: Settings) => Promise; export { refundByTask };