export interface StorageOptions { name?: string; mode?: 'auto' | 'idb' | 'local'; } export interface ZStore { backend: 'idb' | 'local' | 'none'; get(key: string): Promise; set(key: string, value: T): Promise; del(key: string): Promise; clear(): Promise; keys(): Promise; } export function createStore(opts?: StorageOptions): ZStore; export function defaultStore(): ZStore; export function createEncryptedStore(store: ZStore, passphrase: string): ZStore; export const capabilities: { indexedDB: boolean; localStorage: boolean };