/** * Convert an Ed25519 public key (hex) to did:key format. * Format: did:key:z6Mk... (multicodec 0xed01 + base58btc) * * The multibase value is the same encoding used in did:aps multibase * identifiers — Ed25519 multicodec prefix (0xed, 0x01) + raw key bytes, * base58btc encoded with z-prefix. */ export declare function toDIDKey(ed25519PublicKeyHex: string): string; /** * Parse a did:key back to a raw Ed25519 public key (hex). * Validates the did:key prefix and multicodec bytes. */ export declare function fromDIDKey(didKey: string): string; /** * Construct the HTTPS URL for a did:web DID document. * * did:web:example.com → https://example.com/.well-known/did.json * did:web:example.com:users:1 → https://example.com/users/1/did.json * did:web:example.com%3A8443 → https://example.com:8443/.well-known/did.json */ export declare function didWebToUrl(didWeb: string): string; /** * Resolve a did:web DID by fetching the DID document over HTTPS. * Returns the parsed DID Document object. * * Throws on network errors, non-200 responses, and invalid JSON. */ export declare function resolveDIDWeb(didWeb: string): Promise; /** * Convert an APS passport to a W3C DID Document. * Produces a document with did:key as the subject identifier * and a single Ed25519VerificationKey2020 verification method. * * Accepts a minimal passport shape: { agent_id, public_key }. * Optionally accepts created_at for the document timestamps. */ export declare function passportToDIDDocument(passport: { agent_id: string; public_key: string; created_at?: string; }): object; //# sourceMappingURL=did-interop.d.ts.map