/** * @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 { Pkcs10CertificateRequest } from '../../crypto'; export type TCsrProp = string | Pkcs10CertificateRequest; export declare class CsrViewer { private certificateDecoded; private certificateDecodeError; private mobileMediaQuery; /** * The certificate value for decode and show details. Use PEM or DER. */ certificate: TCsrProp; /** * If `true` - component will show split-button to download certificate as PEM or DER. */ download?: boolean; /** * 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; /** * Mobile media query string to control screen view change. *
* **NOTE**: Based on https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia. * @example * (max-width: 900px) */ mobileMediaQueryString?: string; mobileScreenView: boolean; isDecodeInProcess: boolean; private handleMediaQueryChange; componentWillLoad(): void; disconnectedCallback(): void; private decodeCertificate; /** * Rerun decodeCertificate if previuos value not equal current value */ watchCertificateAndDecode(newValue: TCsrProp, oldValue: TCsrProp): void; private getAuthKeyIdParentLink; private getAuthKeyIdSiblingsLink; private getSubjectKeyIdChildrenLink; private getSubjectKeyIdSiblingsLink; private renderErrorState; private renderEmptyState; render(): any; }