/** * OAuth browser flow for CLI authentication */ import { startCallbackServer } from "./server.js"; import { type AuthResult } from "../utils/api.js"; export interface OAuthOptions { noBrowser?: boolean; timeout?: number; } export interface OAuthResult { success: boolean; data?: AuthResult; error?: string; authUrl?: string; } /** * Run OAuth browser flow * * 1. Start localhost callback server * 2. Open browser to auth URL * 3. Wait for callback with token * 4. Exchange token for API key */ export declare function runOAuthFlow(options?: OAuthOptions): Promise; /** * Wait for manual authentication (when --no-browser is used) */ export declare function waitForManualAuth(server: Awaited>): Promise; //# sourceMappingURL=oauth.d.ts.map