export declare const ENDORSEMENT_NSID: "link.ident.endorsement"; export declare const ASSOCIATION_NSID: "com.publicdomainrelay.temp.market.association"; export declare const AGENT_OF_PREFIX: "https://ident.link/agent-of/"; export interface DidDoc { id?: string; alsoKnownAs?: string[]; verificationMethod?: { id: string; type?: string; controller?: string; publicKeyMultibase?: string }[]; service?: { id: string; type: string; serviceEndpoint: unknown }[]; } export interface StrongRef { uri: string; cid: string; } export interface Io { resolveDid?(did: string): Promise | DidDoc | null; getRecord?(repo: string, collection: string, rkey: string): Promise | unknown | null; contractHeld?(contract: StrongRef, authorities: string[]): Promise | boolean; now?(): number | Date; } export interface Options { maxDepth?: number; budget?: number; } export interface Ancestor { did: string; depth: number; expiresAt?: string; } export interface Walk { agent: string; ancestors: Ancestor[]; roots: string[]; expiresAt?: string; truncated: boolean; errors: string[]; } export declare function load(wasmModule?: BufferSource | WebAssembly.Module | URL | string | Response): Promise; export declare function walk(io: Io, agent: string, options?: Options): Promise; export declare function agentOf(alsoKnownAs: string[]): Promise; export declare function verifyRecord(car: Uint8Array, doc: DidDoc, repo: string, collection: string, rkey: string): Promise; export declare function marketContractHeld(io: Io, contract: StrongRef, authorities: string[]): Promise; export declare function recordCid(value: unknown): Promise;