import type { AccountingReportRepo } from '../../../repo/accountingReport'; import type { PayActionRepo } from '../../../repo/action/pay'; import type { RefundActionRepo } from '../../../repo/action/refund'; import type { PaymentServiceRepo } from '../../../repo/paymentService'; import type { PaymentServiceProviderRepo } from '../../../repo/paymentServiceProvider'; import type { SellerPaymentAcceptedRepo } from '../../../repo/sellerPaymentAccepted'; import type { TaskRepo } from '../../../repo/task'; import { factory } from '../../../factory'; import type { IntegrationSettingRepo as Settings } from '../../../repo/setting/integration'; /** * refund CreditCard IF payment */ declare function refundCreditCard(params: Pick & { purpose: factory.action.trade.refund.IPurposeAsReturnAction | factory.action.trade.refund.IPurposeAsPlaceOrder; sameAs?: { id: string; }; }): (repos: { actions: { pay: PayActionRepo; refund: RefundActionRepo; }; accountingReport: AccountingReportRepo; paymentAccepted: SellerPaymentAcceptedRepo; paymentService: PaymentServiceRepo; paymentServiceProvider: PaymentServiceProviderRepo; task: TaskRepo; }, settings: Settings) => Promise; export { refundCreditCard };