import { AbortOptions, Startable } from '@mithic/commons'; import { MaybeAsyncMap, MaybeAsyncMapBatch } from '../map.js'; import { RangeQueryOptions, RangeQueryable } from '../query.js'; /** A map that stores data in IndexedDB. */ export declare class IndexedDBMap implements MaybeAsyncMap, MaybeAsyncMapBatch, AsyncIterable<[K, V]>, RangeQueryable, Startable { /** Name of IndexedDB database to use. */ private readonly dbName; /** Name of IndexedDB store to use. */ private readonly storeName; private db?; constructor( /** Name of IndexedDB database to use. */ dbName: string, /** Name of IndexedDB store to use. */ storeName: string); get started(): boolean; start(): Promise; close(): void; get(key: K): Promise; has(key: K): Promise; clear(): Promise; set(key: K, value: V): Promise; delete(key: K): Promise; getMany(keys: Iterable, options?: AbortOptions): AsyncIterableIterator; hasMany(keys: Iterable, options?: AbortOptions): AsyncIterableIterator; setMany(entries: Iterable<[K, V]>, options?: AbortOptions): AsyncIterableIterator; deleteMany(keys: Iterable, options?: AbortOptions): AsyncIterableIterator; updateMany(entries: Iterable<[K, V?]>, options?: AbortOptions): AsyncIterableIterator; entries(options?: RangeQueryOptions): AsyncIterableIterator<[K, V]>; keys(options?: RangeQueryOptions): AsyncIterableIterator; values(options?: RangeQueryOptions): AsyncIterableIterator; [Symbol.asyncIterator](): AsyncIterableIterator<[K, V]>; get [Symbol.toStringTag](): string; private openObjectStore; private openDB; } //# sourceMappingURL=indexeddbmap.d.ts.map