export interface AuthenticationResult { success: boolean; userId?: string; message: string; } export interface AuthInfo { isAuthenticated: boolean; expiresAt?: Date; supabaseUserId?: string; tokenPath: string; } export declare class SupabaseAuth { private tokenManager; private logger; constructor(); /** * PKCE utilities - EXACT PORT from frontend */ private generateCodeVerifier; private generateCodeChallenge; private generateState; /** * Main OAuth authentication flow - adapted from frontend API routes */ authenticate(): Promise; /** * Token exchange - EXACT PORT from frontend callback route */ private exchangeCodeForTokens; /** * Check authentication status */ isAuthenticated(): Promise; /** * Get current authentication info */ getAuthInfo(): Promise; /** * Clear authentication (logout) */ logout(): Promise; /** * Refresh tokens if needed */ ensureValidToken(): Promise; }