export interface RefundOrderResult { status: string; isFullRefund: boolean; } /** * Refund an order through its payment method's registered `refund` handler. * * Core is the whole pipeline: it validates (the method supports refunds, the * order is in a refundable status, and the amount is within what remains * captured), calls the handler — the one gateway-specific step, which returns the * gateway's confirmed refund id and amount — then records the refund and emits * `order_refunded` via `recordRefund`. A method that registered no `refund` * handler cannot be refunded here. * * The gateway call runs outside any DB transaction (it's network I/O); * `recordRefund` opens its own short transaction for the writes. */ export declare function refundOrder(uuid: string, amount: number): Promise;