UNPKG

dwnpm

Version:

Decentralized Registry Package Manager (DRPM) helps developers publish, install, find and manage Decentralized Packages (DPKs) published to Decentralized Web Nodes (DWNs). DRPM does this by looking up a Decentralized Identifier (DID) to find its DID docum

30 lines 1 kB
import { Web5UserAgent } from '@web5/user-agent'; import { DhtProfileConnectParams, DidDhtCreateParams, PartialProfileJson } from '../../utils/types.js'; export declare class DhtAgent { userAgent: Web5UserAgent; recoveryPhrase?: string; connectedDid?: string; constructor({ userAgent }: { userAgent: Web5UserAgent; }); static create({ dataPath }: { dataPath: string; }): Promise<DhtAgent>; launch({ password }: { password: string; }): Promise<void>; json(): { userAgent: Web5UserAgent; recoveryPhrase: string; connectedDid: string; }; identity({ dwnEndpoints }: { dwnEndpoints: string[]; recoveryPhrase: string; }): Promise<string>; } export declare class DhtProfile { static create(params: DidDhtCreateParams): Promise<PartialProfileJson>; static connect({ did, password, dwnEndpoints, web5DataPath }: DhtProfileConnectParams): Promise<any>; } //# sourceMappingURL=dht.d.ts.map