/** * Auth Store * Manages authentication state and user session with Zustand */ import type { User } from '../types/index.js'; export interface AuthState { user: User | null; token: string | null; isLoading: boolean; error: Error | null; isAuthenticated: boolean; } export interface AuthActions { setUser: (user: User | null) => void; setToken: (token: string | null) => void; setIsLoading: (isLoading: boolean) => void; setError: (error: Error | null) => void; login: (email: string, password: string) => Promise; logout: () => Promise; refresh: () => Promise; clear: () => void; } export type AuthStore = AuthState & AuthActions; /** * Create Auth Store with Zustand * Persists token and user to localStorage for session recovery */ export declare const useAuthStore: import("zustand").UseBoundStore, "setState" | "persist"> & { setState(partial: AuthStore | Partial | ((state: AuthStore) => AuthStore | Partial), replace?: false): unknown; setState(state: AuthStore | ((state: AuthStore) => AuthStore), replace: true): unknown; persist: { setOptions: (options: Partial>) => void; clearStorage: () => void; rehydrate: () => Promise | void; hasHydrated: () => boolean; onHydrate: (fn: (state: AuthStore) => void) => () => void; onFinishHydration: (fn: (state: AuthStore) => void) => () => void; getOptions: () => Partial>; }; }>; //# sourceMappingURL=authStore.d.ts.map