/** * @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 { EventEmitter } from '../../stencil-public-runtime'; import { X509Certificate, X509AttributeCertificate, Pkcs10CertificateRequest, X509Crl, X509Certificates, SshCertificate } from '../../crypto'; export declare class CertificateDecoder { private inputPaste?; /** * Pre-loaded example certificates available in the "Load example" dropdown. */ certificateExamples?: { title: string; value: string; }[]; /** * A certificate to decode on first load (PEM or Base64 DER). */ certificateToDecode?: string; /** The decoded certificate object; null while empty. */ certificateDecoded: X509Certificates | X509Certificate | X509AttributeCertificate | Pkcs10CertificateRequest | X509Crl | SshCertificate; /** Emitted when a certificate has been successfully parsed. */ successParse: EventEmitter; /** Emitted when the input has been cleared. */ clearCertificate: EventEmitter; componentDidLoad(): void; private handleClickDecode; private handleClickClear; private handleChangeInputFile; private handleChangeExample; private handleDrop; clearValue(): void; setValue(value: typeof this.certificateDecoded): Promise; decode(value: string): Promise; private renderDecodedComponent; render(): any; private renderPlaceholder; }