export declare class LeafIssuerError extends Error { readonly code: "CA_CERTIFICATE_INVALID" | "CA_KEY_INVALID" | "CA_KEY_MISMATCH" | "CA_NOT_AN_AUTHORITY"; constructor(code: "CA_CERTIFICATE_INVALID" | "CA_KEY_INVALID" | "CA_KEY_MISMATCH" | "CA_NOT_AN_AUTHORITY"); } export interface OperatorAuthority { /** The authority's certificate, PEM. Sent to clients as the chain, so an intermediate works too. */ readonly certificatePem: string; /** The authority's private key, PEM (PKCS#8 or traditional), EC or RSA. */ readonly keyPem: string; } /** A minted leaf: what a TLS server presents for one host, and until when. */ export interface Leaf { /** The leaf certificate alone, PEM. */ readonly certificatePem: string; /** The leaf followed by the authority's certificate: the chain a client is sent. */ readonly chainPem: string; /** The leaf's private key, PKCS#8 PEM, this process's alone. */ readonly keyPem: string; readonly notAfter: number; } /** * Mints and caches one leaf certificate per server name, signed by the * operator's authority. The TLS context that presents a leaf is the * listener's to build, under `src/http`, where sockets are opened. */ export declare class LeafIssuer { private readonly clock; private readonly signer; private readonly signatureAlgorithm; private readonly issuerName; private readonly authorityPem; private readonly leafKeyPem; private readonly leafPublicKeyDer; private readonly leaves; constructor(authority: OperatorAuthority, clock?: () => number); /** The leaf for `host`: minted now, or kept from before while it has more than two hours left. */ leafFor(host: string): Leaf; private certificate; } //# sourceMappingURL=LeafIssuer.d.ts.map