import { DidVerificationMethodType, type IDidDocumentVerificationMethod, type IDidDocument } from "@twin.org/standards-w3c-did"; import type { IJwk } from "@twin.org/web"; /** * Helper methods for documents. */ export declare class DocumentHelper { /** * Runtime name for the class. */ static readonly CLASS_NAME: string; /** * Parse the document id into its parts. * @param documentId The full document id. * @returns The parsed document id. */ static parseId(documentId: string): { id: string; fragment: string | undefined; }; /** * Join the document id parts. * @param documentId The document id. * @param fragment The fragment part for the identifier. * @returns The full id. */ static joinId(documentId: string, fragment?: string): string; /** * Get a verification method from a DID document. * @param didDocument The DID Document to get the method from. * @param methodName The name of the method to get the JWK from. * @param methodType The type of the method, defaults to verificationMethod. * @returns The verification method if found. * @throws Error if the method is not found. */ static getVerificationMethod(didDocument: IDidDocument, methodName: string, methodType?: DidVerificationMethodType): IDidDocumentVerificationMethod; /** * Gets a JWK from a DID document verification method. * @param didDocument The DID Document to get the method from. * @param methodName The name of the method to get the JWK from. * @param methodType The type of the method, defaults to verificationMethod. * @returns The JWK if found. * @throws Error if the method is not found. */ static getJwk(didDocument: IDidDocument, methodName: string, methodType?: DidVerificationMethodType): IJwk; }