blockstore-core
Version:
Contains various implementations of the API contract described in interface-blockstore
14 lines • 708 B
TypeScript
import { BaseBlockstore } from './base.js';
import type { Blockstore, Pair } from 'interface-blockstore';
import type { AbortOptions, Await, AwaitIterable } from 'interface-store';
import type { CID } from 'multiformats/cid';
export declare class IdentityBlockstore extends BaseBlockstore {
private readonly child?;
constructor(child?: Blockstore);
put(key: CID, block: Uint8Array, options?: AbortOptions): Await<CID>;
get(key: CID, options?: AbortOptions): Await<Uint8Array>;
has(key: CID, options?: AbortOptions): Await<boolean>;
delete(key: CID, options?: AbortOptions): Await<void>;
getAll(options?: AbortOptions): AwaitIterable<Pair>;
}
//# sourceMappingURL=identity.d.ts.map