import { type SwappedSellOrderData, type SwappedWithdrawalLegs } from '@funkit/connect-core'; import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from '../flow/withdrawalFlowConfig'; export interface UseWithdrawalExecutionParams { config: WithdrawalFlowConfig; /** The route resolved by `useWithdrawalFops` — one resolution for fetch + quote. */ route: SwappedWithdrawalLegs; callbacks: WithdrawalFlowCallbacks; /** Unrecoverable failure — the flow shows its error state. */ onError: () => void; } /** * Thin React wrapper over connect-core's `processFiatWithdrawalOrder`: owns * the control-flow guards for the unreliable embed message stream and maps * outcomes onto host callbacks. The guards are intentionally refs, not state — * both are read synchronously inside the async `executeOrder` (a re-entrancy * flag set before the first await, and a dedupe set) and must not re-render. */ export declare function useWithdrawalExecution({ config, route, callbacks, onError, }: UseWithdrawalExecutionParams): { executeOrder: (data: SwappedSellOrderData) => Promise; }; //# sourceMappingURL=useWithdrawalExecution.d.ts.map