import type { IJwk } from "@twin.org/web"; import type { IMultikey } from "../models/IMultikey.js"; /** * Helper methods for multikey. */ export declare class MultikeyHelper { /** * Runtime name for the class. */ static readonly CLASS_NAME: string; /** * Convert a multikey to a JWK. * @param multikey The multikey to convert. * @returns The JWK. * @throws GeneralError if the multikey is invalid. */ static toJwk(multikey: IMultikey): IJwk; /** * Convert a JWK to a Multikey. * @param controller The controller of the multikey. * @param id The id of the multikey. * @param jwk The jwk to convert. * @returns The multikey. * @throws GeneralError if the jwk is invalid. */ static fromJwk(controller: string, id: string, jwk: IJwk): IMultikey; /** * Convert a multikey to raw keys. * @param multikey The multikey to convert. * @returns The JWK. * @throws GeneralError if the multikey is invalid. */ static toRaw(multikey: IMultikey): { publicKey: Uint8Array; privateKey: Uint8Array; }; }