import { IStoreDataStorage } from './store.js'; import { ILogger } from '../logging/ILogger.js'; export declare const defaultMaxCachedUsers = 5; export declare const defaultUserCacheTtl: number; export interface UserCacheOptions { maxCachedUsers?: number; userCacheTtl?: number; logger?: ILogger; } export declare const isPositiveInteger: (value: unknown) => value is number; interface CacheStorage { keys(): string[]; read(key: string): string | null; write(key: string, value: string): void; remove(key: string): void; } /** Shared retention policy for browser storage and in-memory user snapshots. */ export declare class UserCache { private readonly storage; private readonly options; private readonly maxUsers; private readonly ttl; private lastWarningAt; private readonly keyPattern; constructor(storage: CacheStorage, options?: UserCacheOptions); private attempt; private readEntry; load(key: string): IStoreDataStorage | undefined; save(key: string, snapshot: IStoreDataStorage): void; private write; private prune; } export {};