/** * The Nado withdrawal money path: generate a Fun deposit address, sign Nado's * gasless `withdraw_collateral_v2` with `sendTo` pointing at it, and submit. * * - Nado's signed `amount` is what lands at `sendTo`; the sequencer fee is a * separate subaccount debit, so we sign the net the screen already quoted. * - Re-submitting belongs to the gateway, which reuses the signed nonce. A * retry from here would mint a fresh one and withdraw twice. */ import type { Address, Hex } from 'viem'; import type { WithdrawalParam } from '../../../providers/FunkitCheckoutContext/types'; import type { Config } from '../../../wagmi/hooks'; export interface NadoWithdrawalCallbackContext { /** Connected wallet — Nado rejects linked signers on withdrawals. */ walletAddress: Address; /** Packed id of the subaccount being debited. */ subaccount: Hex; wagmiConfig: Config; } export declare function createNadoWithdrawalCallback({ walletAddress, subaccount, wagmiConfig, }: NadoWithdrawalCallbackContext): (param: WithdrawalParam) => Promise;