/** * Authentication Manager * Handles session management and token refresh for the MCP server */ import type { AuthSession } from '../types/index'; export declare class AuthManager { private session; /** * Detect authentication type based on token format */ static detectAuthType(token: string): 'api-token' | 'jwt'; /** * Initialize a new auth session */ connect(apiUrl: string, apiToken: string, authType?: 'api-token' | 'jwt'): void; /** * Get current session * @throws MCPError if not authenticated */ getSession(): AuthSession; /** * Check if authenticated */ isAuthenticated(): boolean; /** * Clear session */ disconnect(): void; /** * Get auth status */ getStatus(): { authenticated: boolean; apiUrl?: string; userId?: string; authType?: 'api-token' | 'jwt'; }; /** * Get authentication type * @throws MCPError if not authenticated */ getAuthType(): 'api-token' | 'jwt'; /** * Save session with auth type */ saveSession(session: AuthSession): void; } //# sourceMappingURL=AuthManager.d.ts.map