export interface IWebStoreOptions { dbName: string; storeName: string; } export interface IWebStoreOperationOptions { signal?: AbortSignal; } export interface IWebStoreDb { nativeDb: IDBDatabase; get(storeName: string, key: IDBValidKey | IDBKeyRange, options?: IWebStoreOperationOptions): Promise; getKey(storeName: string, key: IDBValidKey | IDBKeyRange, options?: IWebStoreOperationOptions): Promise; put(storeName: string, val: TValue, key?: IDBValidKey, options?: IWebStoreOperationOptions): Promise; delete(storeName: string, key: IDBValidKey | IDBKeyRange, options?: IWebStoreOperationOptions): Promise; clear(storeName: string, options?: IWebStoreOperationOptions): Promise; getAllKeys(storeName: string, options?: IWebStoreOperationOptions): Promise; close(): void; } export declare class WebStore { db: IWebStoreDb; options: IWebStoreOptions; private initPromise?; private lifecycleGeneration; private closeCoveredGeneration; private closePromise?; private activeOperations; constructor(optionsArg: IWebStoreOptions); private trackOperation; init(optionsArg?: IWebStoreOperationOptions): Promise; private initForOperation; protected runInit(): Promise; private runDataOperation; /** * Closes an initialized database without initializing an unused store. * * Operations accepted before close finish first. Operations arriving while * close is in progress wait for it and lazily reopen the persisted database. */ close(): Promise; get(key: string, optionsArg?: IWebStoreOperationOptions): Promise; check(keyArg: string, optionsArg?: IWebStoreOperationOptions): Promise; set(key: string, val: T, optionsArg?: IWebStoreOperationOptions): Promise; delete(key: string, optionsArg?: IWebStoreOperationOptions): Promise; clear(optionsArg?: IWebStoreOperationOptions): Promise; keys(optionsArg?: IWebStoreOperationOptions): Promise; }