/**
* @module Internal
*/
///
export declare type CAOptions = HttpsOptions | HttpsPathOptions;
export declare type HttpsOptions = {
key: string;
cert: string;
};
export declare type HttpsPathOptions = {
keyPath: string;
certPath: string;
};
export declare type PEM = string | string[] | Buffer | Buffer[];
export declare type GeneratedCertificate = {
key: string;
cert: string;
ca: string;
};
export declare function getCA(options: CAOptions): Promise;
export declare class CA {
private static readonly KEYS;
private caCert;
private caKey;
private certCache;
constructor(caKey: PEM, caCert: PEM);
generateCertificate(domain: string): GeneratedCertificate;
}