@web3-storage/pail
Version:
DAG based key value store.
9 lines • 877 B
TypeScript
export function put(blocks: API.BlockFetcher, head: API.EventLink<API.Operation>[], key: string, value: API.UnknownLink): Promise<API.Result>;
export function del(blocks: API.BlockFetcher, head: API.EventLink<API.Operation>[], key: string, options?: object): Promise<API.Result>;
export function root(blocks: API.BlockFetcher, head: API.EventLink<API.Operation>[]): Promise<{
root: API.ShardLink;
} & API.ShardDiff>;
export function get(blocks: API.BlockFetcher, head: API.EventLink<API.Operation>[], key: string): Promise<import("multiformats").Link<unknown, number, number, import("multiformats").Version> | undefined>;
export function entries(blocks: API.BlockFetcher, head: API.EventLink<API.Operation>[], options?: API.EntriesOptions): AsyncGenerator<import("../api.js").ShardValueEntry, void, any>;
import * as API from './api.js';
//# sourceMappingURL=index.d.ts.map