import { OnInit } from '@angular/core'; import { X509 } from 'jsrsasign'; import { CertificateService } from '../../services/certificate-service/certificate-service.service'; import { BsModalRef } from 'ngx-bootstrap/modal'; import { TranslateService } from '@ngx-translate/core'; import * as i0 from "@angular/core"; /** * * @interface SignatureAttribute * * @property {string} translationKey The translation key to show to the user * @property {string} value The value to show to the user * @property {object} Validation data. isValid is the validation status, showValidation indicates whether to show the validation * */ interface SignatureAttribute { translationKey: string; value?: string; validation?: { isValid: boolean; showValidation: boolean; }; } export declare class SignatureInfoComponent implements OnInit { private _bsModalRef; private _certificateService; private _translateService; /** * @property {Object} user The user who submitted the exam document */ user: any; /** * @property {boolean} isVerified A flag to indicate whether the signature was * verified at least once on server side. Can be used to show to the user that * the signature was accepted at some point in the past even if the certificate is expired. */ isVerified: boolean | undefined; certificate: string | undefined; signatureBlock: string | undefined; checkHashKey: string | undefined; examinationCode: string | undefined; dateCreated: Date | undefined; /** * The list of attributes to show to the user */ signatureAttributes: SignatureAttribute[]; tab: number; generalAttributes: SignatureAttribute[]; purposes: Array; constructor(_bsModalRef: BsModalRef, _certificateService: CertificateService, _translateService: TranslateService); ngOnInit(): Promise; /** * * Resolves a certificate to usable fields * * @param {X509} certificate The X509 object certificate * */ resolveAttributes(certificate: X509): { translationKey: string; value?: any; validation?: any; }[]; getGeneralAttributes(certificate: any): SignatureAttribute[]; hideCertificateModal(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export {};