import { BaseBlockstore } from './base.ts'; import type { Blockstore, InputPair, Pair } from 'interface-blockstore'; import type { AbortOptions, AwaitGenerator, AwaitIterable } from 'interface-store'; import type { CID } from 'multiformats/cid'; /** * A blockstore that can combine multiple stores. Puts and deletes * will write through to all blockstores. Has and get will * try each store sequentially. getAll will use every store but also * deduplicate any yielded pairs. */ export declare class TieredBlockstore extends BaseBlockstore { private readonly stores; constructor(stores: Blockstore[]); put(key: CID, value: Uint8Array | AwaitIterable, options?: AbortOptions): Promise; get(key: CID, options?: AbortOptions): AwaitGenerator; has(key: CID, options?: AbortOptions): Promise; delete(key: CID, options?: AbortOptions): Promise; putMany(source: AwaitIterable, options?: AbortOptions): AwaitGenerator; deleteMany(source: AwaitIterable, options?: AbortOptions): AwaitGenerator; getAll(options?: AbortOptions): AwaitGenerator; } //# sourceMappingURL=tiered.d.ts.map