/** * Auth Flow - WebSocket-based browser authentication * * Provides a seamless OAuth-style authentication flow: * 1. Opens WebSocket to Mirra server * 2. Receives session token and auth URL * 3. Opens browser to auth URL * 4. Waits for credentials to be pushed via WebSocket * * This eliminates the need for users to manually copy API keys. */ /** * Result of successful authentication */ export interface AuthResult { apiKey: string; userId: string; email?: string; } /** * Options for the auth flow */ export interface AuthFlowOptions { /** Custom API base URL (defaults to MIRRA_API_URL or https://api.fxn.world) */ apiBaseUrl?: string; /** Timeout in milliseconds (defaults to 15 minutes) */ timeoutMs?: number; /** Whether to automatically open browser (defaults to true) */ openBrowser?: boolean; } /** * Run the WebSocket-based authentication flow * * @param options - Configuration options * @returns Authentication result with API key and user info * @throws Error if authentication fails or times out */ export declare function runWebSocketAuthFlow(options?: AuthFlowOptions): Promise; /** * Check if browser opening is available */ export declare function canOpenBrowser(): boolean; //# sourceMappingURL=auth-flow.d.ts.map