import { KeyType, Encodings } from "../types.js"; /** * Convert a DID (did:key) to a base64 public key. */ export declare function didToPublicKey(did: string, encoding?: Encodings): { publicKey: string; type: KeyType; }; /** * Convert a DID (did:key) to the public key into bytes in SubjectPublicKeyInfo (spki) format. * * For consumption e.g. in the WebCrypto API. */ export declare function didToPublicKeyBytes(did: string): { publicKey: Uint8Array; type: KeyType; }; /** * Convert a base64 public key to a DID (did:key). */ export declare function publicKeyToDid(publicKey: string, type: KeyType, encoding?: Encodings): string; /** * Convert a public key in bytes to a DID (did:key). */ export declare function publicKeyBytesToDid(publicKeyBytes: Uint8Array, type: KeyType): string;