import { BearerDid, DidDhtCreateOptions, DidRegistrationResult, DidResolutionResult, PortableDid } from '@web5/dids'; import { LocalKeyManager } from '@web5/crypto'; /** * DidDhtManager handles interactions between the DCX server and the DID */ export declare class DidDhtManager { did: string; bearerDid: BearerDid; constructor(bearerDid: BearerDid); initKeyManagement(portableDid: PortableDid): Promise; /** * * Uses DidDht to create BearerDid; see {@link DidDht.create()} * @param options The did dht create options object; see {@link DidDhtCreateOptions} * @returns BearerDid; see {@link BearerDid} */ createBearerDid(options: DidDhtCreateOptions): Promise; getPortableDid(): Promise; /** * * Uses DidDht and a didUri to resolve the corresponding didDocument; see {@link DidDht.resolve()} * @param didUri the uri to resolve * @returns DidResolutionResult; see {@link DidResolutionResult} */ resolveDidDoc(didUri: string): Promise; /** * * @param gatewayUri the uri of the gateway to publish the did to * @returns DidRegistrationResult; see {@link DidRegistrationResult} */ publishDidDoc(gatewayUri: string): Promise; /** * * Uses DidDht to handle importing a portable did bearer did; see {@link DidDht.import()} * @param didFilepath the path to the file containing the portable did object; see {@link PortableDid} * @returns BearerDid; see {@link BearerDid} */ importPortableDidFromFile(didFilepath: string): Promise; /** * Uses DidDht to handle instantiating bearer did from corresponding portable did; see {@link DidDht.import()} * @param portableDid a portable did object; see {@link PortableDid} * @returns BearerDid; see {@link BearerDid} */ importPortableDid(params: { portableDid?: PortableDid; keyManager?: LocalKeyManager; }): Promise; } //# sourceMappingURL=dcx-dht-manager.d.ts.map