//#region src/storage/create-storage.d.ts type ErrorHandler = (error: unknown) => void; type Unsubscribe = () => void; type KeyListener = () => void; type StorageListener = (key: string | null) => void; interface StorageAdapter { getItem: (key: string) => string | null; setItem: (key: string, value: string) => void; removeItem: (key: string) => void; keys: () => string[]; watch?: (onChange: (key: string | null) => void) => Unsubscribe; } interface StorageConfig { prefix?: string; crossTab?: boolean; onError?: ErrorHandler; } type StorageOptions = StorageAdapter & StorageConfig; interface StorageInstance { readonly name: string; readonly prefix: string; getItem: (key: string) => string | null; setItem: (key: string, value: string) => void; removeItem: (key: string) => void; has: (key: string) => boolean; keys: () => string[]; clear: (options?: { except?: string[]; }) => void; subscribe: { (key: string, listener: KeyListener): Unsubscribe; (listener: StorageListener): Unsubscribe; }; destroy: () => void; } declare function createStorage(name: string, options: StorageOptions): StorageInstance; //#endregion export { StorageInstance as a, Unsubscribe as c, StorageConfig as i, createStorage as l, KeyListener as n, StorageListener as o, StorageAdapter as r, StorageOptions as s, ErrorHandler as t };