/** * Auth Prompt Manager * * Handles on-demand authentication prompts with dual timeline UX: * - AI continues after 35s with "auth needed" message * - User prompt stays open for 2 minutes * - Late responses queue notifications for next AI interaction */ interface AuthCredentials { [key: string]: string; } export declare class AuthPromptManager { private static instance; private activePrompts; private credentialCache; private lastFailedOperations; private notificationQueue; private sessionManager; private readonly AI_TIMEOUT; private readonly USER_TIMEOUT; private constructor(); static getInstance(): AuthPromptManager; /** * Handle authentication error with on-demand prompting */ handleAuthError(mcpName: string, error: Error, operation?: any): Promise; /** * Parse authentication error to determine requirements */ private parseAuthError; /** * Show authentication prompt to user */ private showAuthPrompt; /** * Prompt with timeout support */ private promptWithTimeout; /** * Handle user response (may arrive after AI timeout) */ private handleUserResponse; /** * Retry failed operation with new credentials */ private retryFailedOperation; /** * Close active prompt for an MCP */ private closePrompt; /** * Get cached credentials for an MCP */ getCachedCredentials(mcpName: string): AuthCredentials | null; /** * Check if MCP has cached credentials */ hasCredentials(mcpName: string): boolean; /** * Clear credentials for an MCP */ clearCredentials(mcpName: string): void; /** * Get status of authentication prompts */ getAuthStatus(): { activePrompts: number; cachedCredentials: number; credentialedMCPs: string[]; }; } export {}; //# sourceMappingURL=AuthPromptManager.d.ts.map