1 | /// <reference types="node" />
|
2 | /// <reference types="node" />
|
3 | /// <reference types="node" />
|
4 | /// <reference types="node" />
|
5 | /// <reference types="node" />
|
6 | import * as http from 'http';
|
7 | import * as https from 'https';
|
8 | import type { Readable } from 'stream';
|
9 | export type ThenableRequest = http.ClientRequest & {
|
10 | then: Promise<http.IncomingMessage>['then'];
|
11 | };
|
12 | export declare function toBuffer(stream: Readable): Promise<Buffer>;
|
13 | export declare function json(stream: Readable): Promise<any>;
|
14 | export declare function req(url: string | URL, opts?: https.RequestOptions): ThenableRequest;
|
15 | //# sourceMappingURL=helpers.d.ts.map |
\ | No newline at end of file |