import { pki } from 'node-forge'; export declare type SignatureStatus = 'TRUSTED' | 'UNSIGNED' | 'UNTRUSTED'; export declare type RevokationStatus = 'OK' | 'REVOKED' | 'UNKNOWN'; export interface VerifyAppPayload { appPath: string; rootCertificatePem?: string; checkRevocationStatus: boolean; } export interface VerifyAppResult { status: SignatureStatus; revocationStatus: RevokationStatus; certificate?: CertificateInfo; signature?: string; revocationError?: string; } export declare class InvalidSignatureError extends Error { constructor(message: string); } export interface VerifyOptions { data: string; signaturePem: string; rootCertificatePem?: string; checkRevocationStatus: boolean; } export interface VerifyResult { isValid: boolean; isTrusted: boolean; isRevoked?: boolean; revocationError?: string; error?: any; certificate?: CertificateInfo; } export interface SignOptions { data: string; privateKeyPem: string; passphrase?: string; certPem: string; } export interface VerifySignatureResult { isValid: boolean; certificate: pki.Certificate; } export interface VerifyCertResult { isValid: boolean; isTrusted: boolean; error?: any; } export interface CertificateInfo { issuer: Entity; subject: Entity; serialNumber: string; expires: Date; fingerprints: Fingerprints; } export interface Fingerprints { sha1: string; md5: string; } export interface Entity { organization: string; organizationalUnit: string; commonName: string; country: string; }