import type { AuthError, User } from '@supabase/supabase-js'; import type { UserMetadata } from './auth'; export type SignupMethod = 'email' | 'google' | 'apple' | 'anonymous'; export interface SignupResult { user: User | null; error: AuthError | null; needsEmailVerification?: boolean; } export interface EmailSignupOptions { email: string; password: string; firstName?: string; lastName?: string; metadata?: Partial; emailRedirectTo?: string; } /** * Sign up a new user with email and password */ export declare function signUpWithEmail(options: EmailSignupOptions): Promise; /** * Handle OAuth signup completion (called after OAuth redirect) * This creates/updates user profile after successful OAuth login */ export declare function handleOAuthSignupCompletion(userId: string, provider: 'google' | 'apple', additionalMetadata?: Partial): Promise<{ error: AuthError | null; }>; /** * Create anonymous user account */ export declare function createAnonymousUser(metadata?: Partial): Promise; /** * Check if email is already registered */ export declare function checkEmailExists(email: string): Promise<{ exists: boolean; error: AuthError | null; }>; /** * Resend email verification */ export declare function resendEmailVerification(email: string, redirectTo?: string): Promise<{ error: AuthError | null; }>; //# sourceMappingURL=signup.d.ts.map