import 'server-only'; import type { User as User, AuthError } from '@supabase/supabase-js'; type FastVerifiedUser = Pick; /** * Fast user verification with local JWT verification (no network calls) * * WARNING: Only use for low-risk operations like UI display or basic authentication checks. * For sensitive operations requiring up-to-date user data, use getUser() instead. */ export declare function getFastVerifiedUser(): Promise; export interface UserMetadata { signup_method?: 'email' | 'google' | 'apple' | 'anonymous'; last_login_at?: string; login_count?: number; device_info?: string; ip_address?: string; created_at?: string; updated_at?: string; } /** * Get the profile of the currently authenticated user */ export declare function getCurrentUser(): Promise; /** * Get detailed user profile by ID (admin only - requires manual permission check) */ export declare function getUserById(userId: string): Promise; /** * Update current user's metadata (login tracking, device info, etc.) */ export declare function updateUserMetadata(metadata: Partial): Promise<{ error: AuthError | null; }>; /** * Track current user's login event */ export declare function trackUserLogin(deviceInfo?: string, ipAddress?: string): Promise<{ error: AuthError | null; }>; export {}; //# sourceMappingURL=auth.d.ts.map