/** * Google Gemini OAuth flow * * NOTE: This module uses Node.js http.createServer for the OAuth callback server. * It is only intended for CLI use, not browser environments. */ import type { OAuthCredentials, OAuthPrompt, OAuthProviderInterface } from "./types.js"; export declare function parseAuthorizationInput(input: string): { code?: string; state?: string; apiKey?: string; }; /** * Login with Google Gemini OAuth (authorization code + PKCE) */ export declare function loginGemini(options: { onAuth: (info: { url: string; instructions?: string; }) => void; onPrompt: (prompt: OAuthPrompt) => Promise; onProgress?: (message: string) => void; onManualCodeInput?: () => Promise; }): Promise; /** * Refresh Google Gemini OAuth token */ export declare function refreshGeminiToken(refreshToken: string): Promise; export declare const geminiOAuthProvider: OAuthProviderInterface; export declare const googleOAuthProvider: OAuthProviderInterface; //# sourceMappingURL=gemini.d.ts.map