/** * Utility for waiting until session is initialized * Optimized with smart polling and fast path */ export interface SessionWaiterOptions { checkReady: () => boolean; label?: string; timeoutMs?: number; pollIntervalMs?: number; debug?: boolean; } export interface SessionReadyCheckOptions { isSessionInitialized: boolean; token?: string | null; debug?: boolean; } /** * Check if session is fully ready (initialized + token available) * Checks token from context (synchronous and reliable source of truth) */ export declare function isSessionFullyReady(options: SessionReadyCheckOptions): boolean; /** * Wait for a condition to be true with smart polling * Fast path: returns immediately if condition is already true */ export declare function waitForCondition(options: SessionWaiterOptions): Promise;