/** * Store */ export class Store { /** * @param {Driver} driver */ constructor(driver: Driver); /** @type {Driver} */ driver: Driver; /** @type {KV} */ kv: KV; /** * @param {Delegation[]} delegations */ add(delegations: Delegation[]): Promise; /** * Get a delegation by cid * * @param {string} cid */ get(cid: string): Promise; /** * Resolve a proof by CID * * @param {CID} cid */ resolveProof(cid: CID): Promise; /** * List proofs by sub and aud * * @param {Omit} options */ proofs(options: Omit): AsyncGenerator; /** * Resolve the first such chain found (depth-first), ordered from root to leaf. * * Cycles are detected via a per-path visited set of delegation CIDs so that * self-delegations or other loops can be skipped without recursing forever. * * @param {import('./types.js').StoreProofsOptions} options * @returns {Promise} */ chain({ aud, sub, cmd, args }: import("./types.js").StoreProofsOptions): Promise; #private; } import type { Driver } from 'iso-kv'; import { KV } from 'iso-kv'; import { Delegation } from './delegation.js'; import type { CID } from 'multiformats'; //# sourceMappingURL=store.d.ts.map