import type { SolanaAddress } from '@funkit/api-base'; import type { FunkitSolanaAdapter } from '@funkit/fun-relay'; import type { NATIVE_TOKEN } from '../consts/funkit'; import type { WalletWithdrawalConfig, WithdrawalConfigBase } from '../providers/FunkitCheckoutContext/types'; export interface SolanaWithdrawalConfig extends Omit { /** Signs the withdrawal. Built with `@funkit/solana-kit` or `@funkit/solana-web3`. */ adapter: FunkitSolanaAdapter; /** Base58 mint of the SPL token to withdraw, or `NATIVE_TOKEN` for SOL. */ sourceTokenAddress: SolanaAddress | typeof NATIVE_TOKEN; } /** * `null` until the adapter passes `validateSolanaAdapter`, so a bad host value * disables the flow instead of throwing in render or failing at confirm. * * `params` is compared by identity, so pass a stable object. */ export declare function useSolanaWithdrawalConfig(params: SolanaWithdrawalConfig | null): WalletWithdrawalConfig | null;