/** * @license * Copyright (c) Peculiar Ventures, LLC. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { X509AttributeCertificate, type IAttributeCertificateJSON } from '../../crypto'; export type TAttributeCertificateProp = string | X509AttributeCertificate; type TDecoded = IAttributeCertificateJSON & { thumbprints: Record; doc: X509AttributeCertificate; }; export declare class AttributeCertificateViewer { certificateDecoded?: TDecoded; certificateDecodeError?: Error; /** * The certificate value for decode and show details. Use PEM or DER. */ certificate: TAttributeCertificateProp; /** * If `true` - component will show split-button to download certificate as PEM or DER. */ download?: boolean; /** * Authority Key Identifier extension parent link. *
* **NOTE**: `{{authKeyId}}` will be replaced to value from the extension. * @example * https://censys.io/certificates?q=parsed.extensions.subject_key_id:%20{{authKeyId}} */ authKeyIdParentLink?: string; /** * Authority Key Identifier extension siblings link. *
* **NOTE**: `{{authKeyId}}` will be replaced to value from the extension. * @example * https://censys.io/certificates?q=parsed.extensions.authority_key_id:%20{{authKeyId}} */ authKeyIdSiblingsLink?: string; /** * Subject Key Identifier extension children link. *
* **NOTE**: `{{subjectKeyId}}` will be replaced to value from the extension. * @example * https://censys.io/certificates?q=parsed.extensions.authority_key_id:%20{{subjectKeyId}} */ subjectKeyIdChildrenLink?: string; /** * Subject Key Identifier extension siblings link. *
* **NOTE**: `{{subjectKeyId}}` will be replaced to value from the extension. * @example * https://some.com/{{subjectKeyId}} */ subjectKeyIdSiblingsLink?: string; componentWillLoad(): void; private decodeCertificate; /** * Rerun decodeCertificate when the value changes */ watchCertificateAndDecode(newValue: TAttributeCertificateProp, oldValue: TAttributeCertificateProp): void; render(): any; } export {};