///
///
import { AxiosResponse, AxiosRequestConfig } from "axios";
import { Readable } from "stream";
interface httpClientConfig extends Partial {
baseURL?: string;
defaultHeaders?: any;
responseParser?: (res: AxiosResponse) => T;
}
export default class HTTPClient {
private instance;
private config;
constructor(config?: httpClientConfig);
get(url: string, params?: any): Promise;
getStream(url: string, params?: any): Promise;
post(url: string, body?: any, config?: Partial): Promise;
private responseParse;
put(url: string, body?: any, config?: Partial): Promise;
postForm(url: string, body?: any): Promise;
toBuffer(data: Buffer | Readable): Promise;
postBinary(url: string, data: Buffer | Readable, contentType?: string): Promise;
delete(url: string, params?: any): Promise;
private wrapError;
}
export {};