/// import { type Readable } from 'stream'; export type HTTPType = 'http1' | 'http2'; export type ReadHTTPHeaderResult = { type: HTTPType; headerMap: Map; }; export declare function readHTTPHeaders(stream: Readable): Promise; export type ReadTLSResult = { type: 'tls'; serverName: string | undefined; alpnProtocols: string[] | undefined; }; export type ReadHTTPHeadersOrTLSResult = ReadHTTPHeaderResult | ReadTLSResult; export declare function readHTTPHeadersOrTLS(stream: Readable): Promise;