export interface UserAccount { email: string; userId: string; provider: 'email' | 'google'; token?: string; loggedInAt: string; } export interface StoredAccount { email: string; userId: string; passwordHash?: string; salt?: string; provider: 'email' | 'google'; createdAt: string; } export declare class AuthManager { private static getAuthFilePath; private static getAccountsFilePath; private static loadAccounts; private static saveAccounts; private static hashPassword; static getCurrentUser(): UserAccount | null; static isAuthenticated(): boolean; static generateUserId(email: string): string; /** * Password-based Registration or Login * - If account does not exist: creates account with hashed password * - If account exists: verifies password against stored PBKDF2 hash */ static loginWithPassword(email: string, password?: string): Promise<{ success: boolean; user?: UserAccount; error?: string; }>; static register(email: string, password?: string): Promise<{ success: boolean; user?: UserAccount; error?: string; }>; static login(email: string, password?: string): Promise<{ success: boolean; user?: UserAccount; error?: string; }>; /** * Google Sign-In handler (processes verified Google OAuth token or Google account identity) */ static loginWithGoogle(email: string, googleToken?: string): Promise<{ success: boolean; user?: UserAccount; error?: string; }>; static logout(): void; } //# sourceMappingURL=auth.d.ts.map