/// import { URL } from "url"; import * as stream from "stream"; /** * Infer which port to use. * * @category Util */ declare function inferPort(url: URL): string | 80 | 443; /** * Check if protocol is supported. * * @category Util */ declare function isProtocolSupported(url: URL): boolean; /** * Create a read stream from some data. * @param data * @param _opt */ declare function startStream(data: string, _opt?: { debug?: boolean; }): stream.Readable; /** * Collect all chunks and concat their content as one string. * @param readStream */ declare function endStream(readStream: NodeJS.ReadableStream): Promise; /** * Decompress a stream. * @param iStream * @param encoding */ declare function decompressStream(iStream: NodeJS.ReadableStream, encoding?: "br" | "gzip" | "deflate" | string): NodeJS.ReadableStream; export { inferPort, isProtocolSupported, startStream, endStream, decompressStream }; //# sourceMappingURL=util.d.ts.map