/** 键值本地存储契约，默认由 {@link createDefaultStorage} 适配 `localStorage` */
export interface StorageAPI {
    getItem(key: string): string | null;
    setItem(key: string, value: string): void;
}
/** 使用浏览器 `localStorage` 的存储适配器 */
export declare function createLocalStorageAdapter(): StorageAPI;
/** 内存存储，用于无 `localStorage` 环境或测试 */
export declare function createMemoryStorage(seed?: Record<string, string>): StorageAPI;
/** 默认存储：优先 `localStorage`，不可用时回退到内存 */
export declare function createDefaultStorage(): StorageAPI;
//# sourceMappingURL=StorageAPI.d.ts.map