import { type DID, type KeyCurve } from "../domain"; export declare namespace PeerDID { interface PrivateKey { /** * Instance of a KeyCurve * * @type {KeyCurve} */ keyCurve: KeyCurve; /** * Value as Uint8Array, buffer like * * @type {Uint8Array} */ value: Uint8Array; } } export interface PeerDIDEncoded { t: string; s: { uri: string; r?: string[]; a?: string[]; }; } export declare class PeerDID { readonly did: DID; readonly privateKeys: PeerDID.PrivateKey[]; constructor(did: DID, privateKeys?: PeerDID.PrivateKey[]); } /** * Provides functionality to transfrom peerDIDServices from our interfaces into DIDComm module ones */ export declare class PeerDIDService { readonly type: string; readonly serviceEndpoint: string; readonly routingKeys?: string[]; readonly accept?: string[]; constructor(type: string, serviceEndpoint: string, routingKeys?: string[], accept?: string[]); static readonly DIDCommMessagingKey = "DIDCommMessaging"; static readonly DIDCommMessagingEncodedKey = "dm"; static readonly CodingKeys: { type: string; serviceEndpoint: string; routingKeys: string; accept: string; }; encode(): PeerDIDEncoded; static decode(encoded: PeerDIDEncoded): PeerDIDService; }