import { BaseDatastore } from './base.ts'; import type { AbortOptions } from 'abort-error'; import type { Batch, Datastore, Key, KeyQuery, Pair, Query } from 'interface-datastore'; /** * A datastore that can combine multiple stores. Puts and deletes * will write through to all datastores. Has and get will * try each store sequentially. Query will always try the * last one first. * */ export declare class TieredDatastore extends BaseDatastore { private readonly stores; constructor(stores: Datastore[]); put(key: Key, value: Uint8Array, options?: AbortOptions): Promise; get(key: Key, options?: AbortOptions): Promise; has(key: Key, options?: AbortOptions): Promise; delete(key: Key, options?: AbortOptions): Promise; putMany(source: Iterable | AsyncIterable, options?: AbortOptions): Generator | AsyncGenerator; deleteMany(source: Iterable | AsyncIterable, options?: AbortOptions): Generator | AsyncGenerator; batch(): Batch; query(q: Query, options?: AbortOptions): Generator | AsyncGenerator; queryKeys(q: KeyQuery, options?: AbortOptions): Generator | AsyncGenerator; } //# sourceMappingURL=tiered.d.ts.map