import type { MultiSourceWithdrawalConfig, SingleWithdrawalConfig, WithdrawalSourceOption } from '../providers/FunkitCheckoutContext/types'; export interface MultiSourceWithdrawalOptions { modalTitle?: string; modalTitleMeta?: string; disableConnectedWallet?: boolean; /** * Sources in dropdown order. A source whose `config` is `null` (its wallet * isn't connected yet) is left out, so per-VM hooks can be passed as-is. */ sources: ReadonlyArray & { config: SingleWithdrawalConfig | null | undefined; }>; /** Initially selected source. Defaults to the first available. */ defaultSourceId?: string; } /** * Composes per-source configs (Solana, HyperCore, one per EVM chain, ...) into * one withdrawal whose source is picked from the amount screen's dropdown. * Each source keeps its own wallet, balance and limits. * * `null` when no source has a config yet — keep the withdraw entry point * disabled until it resolves. Pure, so memoize the result on the inputs. * * @example * ```ts * const sol = useSolanaWithdrawalConfig(solanaParams) * const config = useMemo(() => createMultiSourceWithdrawalConfig({ * modalTitle: 'Withdraw', * sources: [ * { id: 'SOL', config: sol }, * { id: 'ETH_BASE', label: 'ETH', config: ethOnBase }, * ], * }), [sol, ethOnBase]) * ``` */ export declare function createMultiSourceWithdrawalConfig(options: MultiSourceWithdrawalOptions): MultiSourceWithdrawalConfig | null;