/** * `useAuth` — the API-key credential, held IN MEMORY by default (lost on reload → * re-enter). An explicit "remember on this device" opt-in persists to * sessionStorage. localStorage is NEVER written: the README documents the * XSS trade-off and why localStorage persistence is not offered. */ import type { ReactNode } from 'react'; export interface AuthState { readonly token: string | null; readonly isAuthenticated: boolean; /** Store the key; `remember` persists to sessionStorage for this device. */ readonly login: (token: string, remember: boolean) => void; readonly logout: () => void; } export declare function AuthProvider({ children }: { children: ReactNode; }): import("react").FunctionComponentElement>; export declare function useAuth(): AuthState; //# sourceMappingURL=useAuth.d.ts.map