/** * Wallet Provider Bridge for Parent Window (glide-react) * * This module detects wallet providers (including Rainbow) in the parent window * and creates a message bridge to make them available in the iframe. * * Since Rainbow and some other wallets don't inject into iframes for security, * this bridge proxies all EIP-1193 provider calls between parent and iframe. */ export interface EIP1193Provider { request(args: { method: string; params?: unknown[] | Record; }): Promise; on?(event: string, listener: (...args: unknown[]) => void): void; removeListener?(event: string, listener: (...args: unknown[]) => void): void; isConnected?: boolean; chainId?: string; selectedAddress?: string; } export interface EIP6963ProviderInfo { uuid: string; name: string; icon: string; rdns: string; } export interface EIP6963ProviderDetail { info: EIP6963ProviderInfo; provider: EIP1193Provider; } /** * Initialize wallet provider bridge in parent window * Detects all EIP-6963 providers and sets up message handlers */ export declare function initializeParentBridge(iframeOrigin: string): void;