import type { Wallet } from '../../Wallet'; /** * Minimal provider surface a custom wallet needs. `on`/`removeListener` are * required because wagmi's injected connector subscribes to account and chain * events unconditionally on connect. viem's EIP1193Provider satisfies this. */ export interface CustomWalletProvider { request(args: { method: string; params?: unknown; }): Promise; on(event: string, listener: (...args: unknown[]) => void): void; removeListener(event: string, listener: (...args: unknown[]) => void): void; } export interface CustomWalletOptions { /** The live provider the host page already holds. */ provider: CustomWalletProvider; name: string; /** * Reverse-DNS wallet id, e.g. 'io.metamask'. Doubles as the connector id, * and de-duplicates against the same wallet announced over EIP-6963. */ rdns: string; iconUrl?: string; iconBackground?: string; } /** * Wraps a host-held EIP-1193 provider as a wallet-list entry, so a wallet the * SDK cannot discover (e.g. a WalletConnect session living in the host app) * can be listed and connected like any other wallet. */ export declare const customWallet: (options: CustomWalletOptions) => (() => Wallet);