import type { User } from '../types'; import type { AuthError } from '../core/models'; /** * The shape of the authentication state managed by the Auth0Provider. */ export interface AuthState { user: User | null; error: AuthError | null; isLoading: boolean; } /** * The possible actions that can be dispatched to update the authentication state. * @internal */ export type AuthAction = { type: 'LOGIN_COMPLETE'; user: User; } | { type: 'LOGOUT_COMPLETE'; } | { type: 'ERROR'; error: AuthError; } | { type: 'INITIALIZED'; user: User | null; } | { type: 'SET_USER'; user: User | null; }; /** * A pure function that calculates the new state based on the previous state and a dispatched action. * @internal */ export declare const reducer: (state: AuthState, action: AuthAction) => AuthState; //# sourceMappingURL=reducer.d.ts.map