export interface HibpPolicy { enabled: boolean; enforce: boolean; block_threshold: number; } export declare function getCachedPolicy(): HibpPolicy | null; export declare function setCachedPolicy(policy: HibpPolicy): void; export declare function clearCachedPolicy(): void; /** * Fetch the HIBP policy from the server (`GET /config`). Result is * memoized in the in-process cache for the lifetime of the app — call * once at startup (typically from ``). * Server-unreachable falls back to `DEFAULT_POLICY` so the caller is * never blocked. */ export declare function fetchHibpPolicy(): Promise; /** * Synchronous view of the cached policy. Returns the default when * `fetchHibpPolicy` hasn't completed yet; suitable for render-time * gating where blocking is unacceptable. */ export declare function getHibpPolicy(): HibpPolicy; //# sourceMappingURL=hibp-cache.d.ts.map