UNPKG

blockstore-core

Version:

Contains various implementations of the API contract described in interface-blockstore

12 lines 635 B
import { BaseBlockstore } from './base.js'; import type { Pair } from 'interface-blockstore'; import type { AbortOptions, Await, AwaitIterable } from 'interface-store'; import type { CID } from 'multiformats/cid'; export declare class BlackHoleBlockstore extends BaseBlockstore { put(key: CID, value: Uint8Array, options?: AbortOptions): Await<CID>; get(key: CID, options?: AbortOptions): Await<Uint8Array>; has(key: CID, options?: AbortOptions): Await<boolean>; delete(cid: CID, options?: AbortOptions): Promise<void>; getAll(options?: AbortOptions): AwaitIterable<Pair>; } //# sourceMappingURL=black-hole.d.ts.map