UNPKG

511 BTypeScriptView Raw
1/// <reference types="node" />
2/// <reference types="node" />
3import { SecureServerOptions } from 'http2';
4export interface KeyCertPair {
5 private_key: Buffer;
6 cert_chain: Buffer;
7}
8export declare abstract class ServerCredentials {
9 abstract _isSecure(): boolean;
10 abstract _getSettings(): SecureServerOptions | null;
11 static createInsecure(): ServerCredentials;
12 static createSsl(rootCerts: Buffer | null, keyCertPairs: KeyCertPair[], checkClientCertificate?: boolean): ServerCredentials;
13}