type IDBValidKey = string | number | Date | BufferSource | IDBValidKey[]; export type DBCreateOptions = { dbName?: string; storeName?: string; version?: number; }; /** * Simple Key Value store * Defaults to `'auth-client-db'` with an object store of `'ic-keyval'` */ export declare class IdbKeyVal { private _db; private _storeName; /** * @param {DBCreateOptions} options - DBCreateOptions * @param {DBCreateOptions['dbName']} options.dbName name for the indexeddb database * @default * @param {DBCreateOptions['storeName']} options.storeName name for the indexeddb Data Store * @default * @param {DBCreateOptions['version']} options.version version of the database. Increment to safely upgrade */ static create(options?: DBCreateOptions): Promise; private constructor(); /** * Basic setter * @param {IDBValidKey} key string | number | Date | BufferSource | IDBValidKey[] * @param value value to set * @returns void */ set(key: IDBValidKey, value: T): Promise; /** * Basic getter * Pass in a type T for type safety if you know the type the value will have if it is found * @param {IDBValidKey} key string | number | Date | BufferSource | IDBValidKey[] * @returns `Promise` * @example * await get('exampleKey') -> 'exampleValue' */ get(key: IDBValidKey): Promise; /** * Remove a key * @param key {@link IDBValidKey} * @returns void */ remove(key: IDBValidKey): Promise; } export {}; //# sourceMappingURL=db.d.ts.map