import type { IJsonLdNodeObject } from "@twin.org/data-json-ld"; import { type IDidVerifiableCredential } from "@twin.org/standards-w3c-did"; import { type IJwtHeader, type IJwtPayload } from "@twin.org/web"; import type { IIdentityResolverComponent } from "../models/IIdentityResolverComponent.js"; /** * Helper methods for verification. */ export declare class VerificationHelper { /** * Runtime name for the class. */ static readonly CLASS_NAME: string; /** * Verify the JWT and return the decoded header and payload. * @param resolver The resolver to use for finding the document. * @param jwt The token to verify. * @returns The decoded header and payload. */ static verifyJwt(resolver: IIdentityResolverComponent, jwt: string): Promise<{ header: T; payload: U; }>; /** * Verify the proof for the document. * @param resolver The resolver to use for finding the document. * @param secureDocument The secure document to verify. * @returns True if all proofs in the document are verified successfully. */ static verifyProof(resolver: IIdentityResolverComponent, secureDocument: IJsonLdNodeObject): Promise; /** * Check a verifiable credential is within its validity period. * @param credential The credential to check, either VC data model v1 or v2. * @throws GeneralError if the credential has expired or is not yet valid. */ static checkValidityPeriod(credential: IDidVerifiableCredential): void; }