/** * @typedef SignautresValidation * @property {boolean} verified Overall validity of _all_ signatures * @property {boolean} [authenticity] _All_ signature certs are from trusted CA(s) * @property {boolean} [integrity] _All_ signature hashes are valid * @property {boolean} [expired] _Any_ Signatures are expired * @property {readonly SignautreValidation[]} [signatures] * @property {string} [message] Error message if verification failed * @property {unknown} [error] Error object if verification failed */ /** * @param {Uint8Array} pdf * @returns {SignautresValidation} */ export function verifyPDF(pdf: Uint8Array): SignautresValidation; export default verifyPDF; export type SignautresValidation = { /** * Overall validity of _all_ signatures */ verified: boolean; /** * _All_ signature certs are from trusted CA(s) */ authenticity?: boolean | undefined; /** * _All_ signature hashes are valid */ integrity?: boolean | undefined; /** * _Any_ Signatures are expired */ expired?: boolean | undefined; signatures?: readonly SignautreValidation[] | undefined; /** * Error message if verification failed */ message?: string | undefined; /** * Error object if verification failed */ error?: unknown; }; export type SignatureMeta = { contactInfo?: string | null | undefined; reason?: string | null | undefined; location?: string | null | undefined; name?: string | null | undefined; }; export type CertificateDetails = import("./certificateDetails.js").CertificateDetails; export type SignautreValidation = { /** * Overall validity of signature */ verified: boolean; /** * Signature cert is from a trusted CA */ authenticity: boolean; /** * Signature hash is valid */ integrity: boolean; /** * Signature is expired */ expired: boolean; meta: { certs: CertificateDetails[]; signatureMeta?: SignatureMeta; }; };