/** * Authentication Library * Standardized authentication methods using Supabase */ import type { User, Session } from '@supabase/supabase-js'; export interface AuthResult { success: boolean; data?: { user: User | null; session: Session | null; }; error?: { code?: string; message: string; userMessage?: string; }; } export interface LoginCredentials { email: string; password: string; rememberMe?: boolean; } export interface SignupCredentials { email: string; password: string; metadata?: Record; } export interface ResetPasswordCredentials { email: string; } export declare class AuthLibrary { private supabase; /** * Sign in with email and password */ login({ email, password, rememberMe }: LoginCredentials): Promise; /** * Sign up with email and password */ signup({ email, password, metadata }: SignupCredentials): Promise; /** * Sign out current user */ logout(): Promise; /** * Reset password via email */ resetPassword({ email }: ResetPasswordCredentials): Promise; /** * Get current user (validates with server) */ getCurrentUser(): Promise; /** * Get current session (reads from local storage) */ getCurrentSession(): Promise; /** * Check if user is admin */ isAdmin(user: User | null): boolean; /** * Format auth error messages for user display */ private formatAuthError; } //# sourceMappingURL=auth-library.d.ts.map