/** * Read once when the provider mounts — adoption is a one-time handoff at * creation, so later changes to this config have no effect. */ export interface WalletAdoptionConfig { /** * Connector id registered before mount; customWallet uses the wallet's rdns. * Does not wait for asynchronously discovered EIP-6963 wallets. */ connectorId: string; /** Fires once when adoption settles. Connected wallets may still need a network switch for checkout. */ onSettled?: (result: { adopted: boolean; }) => void; } /** * Connects a host-declared wallet at mount so the user starts out connected * without clicking through the connect modal. * * - Runs only under funkit-owned wagmi (FunkitProvider throws otherwise), * where session restore is suppressed — adoption starts from a clean * disconnected state. The in-flight/already-connected handling below stays * as defense in depth. * - Failure degrades to the normal disconnected state; the connect modal * remains available. */ export declare function useWalletAdoption({ connectorId, onSettled, }: WalletAdoptionConfig): void;