/** * Auth domain handlers — setup_auth & re_auth */ import type { HandlerContext } from "./types.js"; import type { BrowserOptions } from "../../notebook-creation/browser-options.js"; import type { ToolResult, ProgressCallback } from "../../types.js"; interface AuthHandlerArgs { show_browser?: boolean; browser_options?: BrowserOptions; } export interface AuthResult { status: string; message: string; authenticated: boolean; duration_seconds?: number; } /** * Handle setup_auth tool * * Opens a browser window for manual login with live progress updates. * The operation waits synchronously for login completion (up to 10 minutes). */ export declare function handleSetupAuth(ctx: HandlerContext, args: AuthHandlerArgs, sendProgress?: ProgressCallback): Promise>; /** * Handle re_auth tool * * Performs a complete re-authentication: * 1. Closes all active browser sessions * 2. Deletes all saved authentication data (cookies, Chrome profile) * 3. Opens browser for fresh Google login * * Use for switching Google accounts or recovering from rate limits. */ export declare function handleReAuth(ctx: HandlerContext, args: AuthHandlerArgs, sendProgress?: ProgressCallback): Promise>; export {};