export type StorageAdapter = { getItem(key: string): Promise; setItem(key: string, value: string): Promise; removeItem?(key: string): Promise; }; export declare function createNoopStorageAdapter(): StorageAdapter; /** * Get an item from local storage safely. */ export declare function getItem(key: string): string | null; /** * Set an item in local storage safely. */ export declare function setItem(key: string, value: string): boolean; /** * Remove an item from local storage safely. */ export declare function removeItem(key: string): void; export declare function getLocalStorageAdapter(): StorageAdapter; export declare function getDefaultStorageAdapter(): StorageAdapter; //# sourceMappingURL=storage.d.ts.map