///
///
///
///
///
import * as http from 'http';
import * as https from 'https';
import type { Readable } from 'stream';
export declare type ThenableRequest = http.ClientRequest & {
then: Promise['then'];
};
export declare function toBuffer(stream: Readable): Promise;
export declare function json(stream: Readable): Promise;
export declare function req(url: string | URL, opts?: https.RequestOptions): ThenableRequest;