blockstore-core
Version:
Contains various implementations of the API contract described in interface-blockstore
12 lines • 732 B
TypeScript
import { BaseBlockstore } from './base.ts';
import type { AbortOptions } from 'abort-error';
import type { Pair } from 'interface-blockstore';
import type { CID } from 'multiformats/cid';
export declare class BlackHoleBlockstore extends BaseBlockstore {
put(key: CID, value: Uint8Array | Iterable<Uint8Array> | AsyncIterable<Uint8Array>, options?: AbortOptions): CID | Promise<CID>;
get(key: CID, options?: AbortOptions): Generator<Uint8Array> | AsyncGenerator<Uint8Array>;
has(key: CID, options?: AbortOptions): boolean | Promise<boolean>;
delete(cid: CID, options?: AbortOptions): Promise<void>;
getAll(options?: AbortOptions): Generator<Pair> | AsyncGenerator<Pair>;
}
//# sourceMappingURL=black-hole.d.ts.map