/** * @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 { SshCertificate, type ISshCertificateJSON } from '../../crypto'; export type TSshCertificateProp = string | SshCertificate; type TDecoded = ISshCertificateJSON & { doc: SshCertificate; }; export declare class SshCertificateViewer { certificateDecoded?: TDecoded; certificateDecodeError?: Error; /** * The certificate value for decode and show details. Use PEM or DER. */ certificate: TSshCertificateProp; /** * If `true` - component will show split-button to download certificate as PEM or DER. */ download?: boolean; componentWillLoad(): void; private decodeCertificate; /** * Rerun decodeCertificate when the value changes */ watchCertificateAndDecode(newValue: TSshCertificateProp, oldValue: TSshCertificateProp): void; render(): any; } export {};