import { IncomingHttpHeaders } from "node:http";
import { Readable } from "node:stream";
import { Buffer } from "node:buffer";

//#region src/parse-response.d.ts
interface ConnectResponse {
  statusCode: number;
  statusText: string;
  headers: IncomingHttpHeaders;
}
/**
 * Parses the proxy CONNECT response from the given socket.
 *
 * @param socket - The socket to read the response from.
 * @returns A promise that resolves to the CONNECT response and any buffered data.
 */
declare function parseProxyResponse(socket: Readable): Promise<{
  connect: ConnectResponse;
  buffered: Buffer;
}>;
//#endregion
export { ConnectResponse, parseProxyResponse };
//# sourceMappingURL=parse-response.d.cts.map