import Certificate from "pkijs/build/Certificate";
export declare const commonNameOid = "2.5.4.3";
export declare const subjectAlternativeNameOid = "2.5.29.17";
/**
 * Create PKI.JS Certificate instance by pem string
 */
export declare function createPKICertificate(pem: string): Certificate;
/**
 * Find certificate issuer's common name in the pki.js Certificate instance
 */
export declare function findDistinguishedName(pkiCert: Certificate, who: "subject" | "issuer"): string;
/**
 * Checks if given certificate is root or not
 */
export declare function isRootCertificate(cert: Certificate): boolean;
/**
 * Removes '-----BEGIN CERTIFICATE-----' and '-----END CERTIFICATE-----' of the PEM certificate string
 */
export declare function removePemArmoring(pemString: string): string;
/**
 * Checks the validity period of given certificate (either it's not expired or is not yet valid)
 */
export declare function isValidityPeriodCorrect(cert: Certificate): boolean;
/**
 * Checks if given cert uses SHA-1 encryption
 */
export declare function isWeakEncryption(cert: Certificate): boolean;
