import { type AtomType } from "./atom"; export type StorageValue = Record; export type StorageAtomType = AtomType; /** * Atom backed by `localStorage` key `mates_ls_atom:${name}`. * Synchronous. Uses `defaultValue` when the key is missing. */ export declare function LSAtom(name: string, defaultValue: T): AtomType; /** * Atom backed by `sessionStorage` key `mates_ss_atom:${name}`. * Synchronous. Uses `defaultValue` when the key is missing. Tab-scoped. */ export declare function SSAtom(name: string, defaultValue: T): AtomType; /** * Shared localStorage bag at {@link MATES_STORE_KEY} (`mates_storage`). * Same role as the former `lsAtom` / `createLsAtom`. */ export declare function lsStore(): StorageAtomType; /** * Shared sessionStorage bag at {@link MATES_STORE_KEY} (`mates_storage`). * Same role as the former `ssAtom` / `createSsAtom`. */ export declare function ssStore(): StorageAtomType; /** @deprecated Use {@link lsStore} */ export declare const createLsAtom: typeof lsStore; /** @deprecated Use {@link ssStore} */ export declare const createSsAtom: typeof ssStore; /** @internal */ export declare function __resetStorageAtomsForTests(): void; //# sourceMappingURL=storageAtom.d.ts.map