UNPKG

@reclaimprotocol/tls

Version:

TLS 1.2/1.3 for any JavaScript Environment

29 lines (28 loc) 634 B
import '../utils/additional-root-cas.js'; declare global { function readline(): string; function print(...args: any[]): void; function quit(): void; type JscIncomingCmd = { type: 'exit'; } | { type: 'send'; dataB64: string; } | { type: 'send-application-data'; dataB64: string; } | { type: 'connect'; host: string; rootCAs?: string[]; }; type JscOutgoingCmd = { type: 'send-application-data'; dataB64: string; } | { type: 'send'; dataB64: string; } | { type: 'handshake-done'; }; }