/** The connection string options that name TLS material. */ export interface ChronicleTlsMaterialSource { readonly caCertificatePath?: string; readonly certificatePath?: string; readonly certificatePassword?: string; } /** The Node TLS options a Chronicle connection hands to its HTTPS clients and gRPC channel. */ export interface ChronicleTlsConnectOptions { ca?: Buffer; pfx?: Buffer; cert?: Buffer; key?: Buffer; passphrase?: string; rejectUnauthorized: boolean; } interface ClientIdentity { readonly pfx?: Buffer; readonly cert?: Buffer; readonly key?: Buffer; readonly passphrase?: string; } /** * The TLS material a connection string names: the client identity from `certificatePath` and the certificate * authorities from `caCertificatePath`. * * It is loaded once when the connection is created, so a missing or unreadable file fails the connection setup * instead of every reconnect - and also when validation is skipped or TLS is disabled, so the option cannot lie * dormant until validation is switched on. */ export declare class ChronicleTlsMaterial { private readonly _certificateAuthorities?; private readonly _identity?; /** No TLS material beyond the platform defaults. */ static readonly None: ChronicleTlsMaterial; constructor(_certificateAuthorities?: Buffer | undefined, _identity?: ClientIdentity | undefined); /** Whether this configures anything beyond the platform defaults. */ get isEmpty(): boolean; /** * The options for a Node TLS client. The certificate authorities replace the system trust store, and * only when certificate validation is on. */ connectOptions(skipTlsValidation: boolean): ChronicleTlsConnectOptions; } /** * Loads the TLS material `source` names. * * `caCertificatePath` is a PEM file with one or more certificate authorities. `certificatePath` is a PKCS#12 * file (`.p12`/`.pfx`), or a PEM file holding the certificate chain and the private key; `certificatePassword` * unlocks either. * @throws When a file is missing, unreadable or holds no usable material. */ export declare function loadTlsMaterial(source: ChronicleTlsMaterialSource): ChronicleTlsMaterial; export {}; //# sourceMappingURL=ChronicleTlsMaterial.d.ts.map