import { ReactNode } from 'react'; export interface User { id: string; email?: string; phone?: string; name?: string; role?: string; metadata?: Record; } export interface AuthSession { user: User | null; token?: string; expiresAt?: number; } export interface AuthConfig { persistSession?: boolean; sessionKey?: string; tokenKey?: string; onAuthChange?: (session: AuthSession | null) => void; checkSession?: () => Promise; refreshToken?: (token: string) => Promise; } interface AuthContextValue { session: AuthSession | null; user: User | null; isAuthenticated: boolean; isLoading: boolean; signIn: (user: User, token?: string) => void; signOut: () => void; updateUser: (updates: Partial) => void; refreshSession: () => Promise; } export declare function useAuth(): AuthContextValue; interface AuthProviderProps { children: ReactNode; config?: AuthConfig; initialSession?: AuthSession | null; } export declare function AuthProvider({ children, config, initialSession }: AuthProviderProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=AuthProvider.d.ts.map