import type { PaymentSession } from '../types/definitions'; import type { PaymentResult } from '../types/paymentresult'; import type { WalletName } from '../types/walletSession'; export type WalletReadyOptions = { wallet: WalletName; label: string; session?: PaymentSession; onReady?: () => void; onLoadError?: (error: PaymentResult) => void; }; /** * Resolves wallet eligibility for a button, then calls `onReady` once when the * wallet is pressable or `onLoadError` once when it is not. Exactly one of them * fires per intent. The button owns this — merchants never load the wallet * session themselves. * * Inside `` the shared session is reused, so several buttons * resolve off one round trip. With an explicit `session` prop the button * resolves against that session directly. */ export declare function useWalletReady({ wallet, label, session, onReady, onLoadError, }: WalletReadyOptions): void; //# sourceMappingURL=useWalletReady.d.ts.map