UNPKG

@usherlabs/ccxt

Version:

A JavaScript cryptocurrency trading library with support for 100+ exchanges + optional Verity zkTLS proof of data source.

15 lines (14 loc) 595 B
/// <reference types="node" /> /// <reference types="node" /> /// <reference types="node" /> /// <reference types="node" /> /// <reference types="node" /> import * as http from 'http'; import * as https from 'https'; import type { Readable } from 'stream'; export declare type ThenableRequest = http.ClientRequest & { then: Promise<http.IncomingMessage>['then']; }; export declare function toBuffer(stream: Readable): Promise<Buffer>; export declare function json(stream: Readable): Promise<any>; export declare function req(url: string | URL, opts?: https.RequestOptions): ThenableRequest;