import type { User, Session, AuthError } from '@supabase/supabase-js'; import type { ReactNode } from 'react'; import React from 'react'; interface AuthState { user: User | null; session: Session | null; loading: boolean; } export interface AuthContextType extends AuthState { signInWithEmail: (email: string, password: string) => Promise<{ error: AuthError | null; }>; signInWithGoogle: (redirectTo?: string) => Promise<{ error: AuthError | null; }>; signInWithApple: (redirectTo?: string) => Promise<{ error: AuthError | null; }>; signInAnonymously: () => Promise<{ error: AuthError | null; }>; signOut: () => Promise<{ error: AuthError | null; }>; refreshUser: () => Promise; refreshSession: () => Promise; } export declare const AuthContext: React.Context; interface AuthProviderProps { children: ReactNode; } export declare function AuthProvider({ children }: AuthProviderProps): React.JSX.Element; export declare function useAuth(): AuthContextType; export {}; //# sourceMappingURL=supabaseAuth.d.ts.map