import type { AuthError, User } from '@supabase/supabase-js'; export interface UserProfile { id: string; email?: string; first_name?: string; last_name?: string; display_name?: string; avatar_url?: string; bio?: string; website?: string; location?: string; phone?: string; date_of_birth?: string; timezone?: string; language?: string; notifications?: NotificationPreferences; privacy?: PrivacySettings; created_at: string; updated_at: string; last_login_at?: string; is_anonymous: boolean; is_verified: boolean; metadata: Record; } export interface NotificationPreferences { email_notifications: boolean; push_notifications: boolean; marketing_emails: boolean; security_alerts: boolean; comment_notifications: boolean; mention_notifications: boolean; } export interface PrivacySettings { profile_visibility: 'public' | 'private' | 'friends'; email_visibility: 'public' | 'private'; activity_visibility: 'public' | 'private' | 'friends'; search_indexing: boolean; } export interface UpdateProfileOptions { first_name?: string; last_name?: string; display_name?: string; avatar_url?: string; bio?: string; website?: string; location?: string; phone?: string; date_of_birth?: string; timezone?: string; language?: string; notifications?: Partial; privacy?: Partial; } /** * Get user profile by ID */ export declare function getProfile(userId: string, requestedBy?: User): Promise<{ profile: UserProfile | null; error: AuthError | null; }>; /** * Update user profile */ export declare function updateProfile(userId: string, updates: UpdateProfileOptions, updatedBy: User): Promise<{ profile: UserProfile | null; error: AuthError | null; }>; /** * Delete user profile (soft delete by marking as deleted) */ export declare function deleteProfile(userId: string, deletedBy: User, reason?: string): Promise<{ error: AuthError | null; }>; /** * Update avatar URL */ export declare function updateAvatar(userId: string, avatarUrl: string, updatedBy: User): Promise<{ error: AuthError | null; }>; /** * Update notification preferences */ export declare function updateNotificationPreferences(userId: string, preferences: Partial, updatedBy: User): Promise<{ error: AuthError | null; }>; /** * Update privacy settings */ export declare function updatePrivacySettings(userId: string, settings: Partial, updatedBy: User): Promise<{ error: AuthError | null; }>; /** * Search profiles (with privacy respect) */ export declare function searchProfiles(query: string, searchedBy?: User, limit?: number): Promise<{ profiles: UserProfile[]; error: AuthError | null; }>; /** * Get profiles by IDs */ export declare function getProfilesByIds(userIds: string[], requestedBy?: User): Promise<{ profiles: UserProfile[]; error: AuthError | null; }>; /** * Check if profile is complete */ export declare function isProfileComplete(profile: UserProfile): { isComplete: boolean; missingFields: string[]; }; /** * Get profile completion percentage */ export declare function getProfileCompletionPercentage(profile: UserProfile): number; //# sourceMappingURL=profile.d.ts.map