import { type SwappedFormOfPayment } from '@funkit/api-base'; import { type SwappedWithdrawalLegs } from '@funkit/connect-core'; import type { WithdrawalFlowConfig } from '../../flow/withdrawalFlowConfig'; /** Base react-query key for the withdrawal `/fops` query — shared with the * flow's invalidation so the two can't drift. */ export declare const WITHDRAW_FOPS_QUERY_KEY = "withdrawFops"; export interface UseWithdrawalFopsParams { config: WithdrawalFlowConfig; enabled?: boolean; } export interface UseWithdrawalFopsResult { /** * Generic cash payout methods (Card / Bank Transfer / …). Saved FOPs are not * supported for withdrawals (web parity) and are never returned. */ fops: SwappedFormOfPayment[]; isLoading: boolean; isError: boolean; /** * True only once we KNOW there's nothing to show (gate off, or a settled * fetch returned zero) — never during a load, so the non-retryable * "unavailable" screen can't flash. */ noPaymentMethodsAvailable: boolean; /** Source balance can't clear Swapped's €7 minimum sell (cash impossible). */ isBelowMinimumBalance: boolean; refetch: () => void; /** Whether the Statsig `enableswappedwithdrawal` gate is on for this apiKey. */ isWithdrawalEnabled: boolean; /** Resolved source→accepted-token route, shared by the fops fetch and quote. */ route: SwappedWithdrawalLegs; } /** * RN port of web's `useWithdrawFops`. Orchestrates the steps: resolve the * accepted-token legs, the region country/currency, the balance-derived sell * cap, then run the gated `/fops` query. */ export declare function useWithdrawalFops({ config, enabled, }: UseWithdrawalFopsParams): UseWithdrawalFopsResult; //# sourceMappingURL=useWithdrawalFops.d.ts.map