import type { FunAddress, SolanaAddress } from '@funkit/api-base'; import type { Address } from 'viem'; import type { CheckoutPayer } from '../providers/GeneralWalletProvider'; import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext'; export declare function getPayerAddressForChain({ chainId, payerWallets, }: { chainId: string; payerWallets: CheckoutPayer; }): Address | SolanaAddress | null; interface CheckoutRecipientParams { config: FunkitCheckoutConfig; payerWallets: CheckoutPayer; /** * Throw rather than return null, for flows that cannot proceed without a * recipient — a quote or transfer with nowhere to send funds. */ isRequired?: boolean; } /** Throws when no connected wallet can receive on the target chain. */ export declare function getCheckoutRecipient(params: CheckoutRecipientParams & { isRequired: true; }): FunAddress; /** Null when no connected wallet can receive on the target chain. */ export declare function getCheckoutRecipient(params: CheckoutRecipientParams): FunAddress | null; export {};