export type WebStorageArea = "local" | "session"; /** Shared bag key used by {@link lsStore} / {@link ssStore}. */ export declare const MATES_STORE_KEY = "mates_storage"; /** True when Web Storage APIs can be used (non-SSR browser). */ export declare function isWebStorageAvailable(): boolean; export declare function getWebStorage(area: WebStorageArea): Storage | null; export declare function listStorageKey(area: WebStorageArea, name: string): string; export declare function atomStorageKey(area: WebStorageArea, name: string): string; export declare function readJson(storage: Storage | null, key: string, fallback: T): T; export declare function writeJson(storage: Storage | null, key: string, value: unknown): void; export declare function removeKey(storage: Storage | null, key: string): void; export declare function onStorageEvent(area: WebStorageArea, handler: (e: StorageEvent) => void): void; //# sourceMappingURL=webStorage.d.ts.map