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

26 lines 869 B
import { Web5UserAgent } from '@web5/user-agent'; import { DidWebConnectOptions, DidWebCreateParams, ProfileJson } from '../../utils/types.js'; export declare class WebAgent { userAgent: Web5UserAgent; recoveryPhrase?: string; connectedDid?: string; constructor({ userAgent }: { userAgent: Web5UserAgent; }); static create({ dataPath }: { dataPath: string; }): Promise<WebAgent>; launch({ password }: { password: string; }): Promise<void>; json(): { userAgent: Web5UserAgent; recoveryPhrase: string; connectedDid: string; }; } export declare class WebProfile { static create(params: DidWebCreateParams): Promise<Partial<ProfileJson>>; static connect({ did, password, dwnEndpoints, web5DataPath }: DidWebConnectOptions): Promise<any>; } //# sourceMappingURL=web.d.ts.map