import { Agent } from 'http'; import { AxiosBasicCredentials, AxiosRequestConfig } from 'axios'; import { IAxiosRetryConfig } from 'axios-retry'; import { IStringifyOptions } from 'qs'; import { HttpProxyConfig } from '../http.config'; import { HttpResponse } from './http.response'; export interface HttpAuthorization { basicAuth?: AxiosBasicCredentials; bearerToken?: string; apiKey?: { key: string; value: string; addTo?: 'header' | 'query'; }; } export interface HttpSerializer extends IStringifyOptions { } export interface HttpRequest extends AxiosRequestConfig { proxy?: HttpProxyConfig; httpAgent?: Agent; httpsAgent?: Agent; serializer?: boolean | HttpSerializer; curlirize?: boolean; validateResponse?: 'response' | 'throw' | ((res: HttpResponse) => boolean | Promise); 'axios-retry'?: IAxiosRetryConfig; authorization?: HttpAuthorization; [key: string]: any; } export interface HttpFormRequest extends HttpRequest { formData: { [key: string]: string | number | boolean | File | Buffer | Array | Array; }; } //# sourceMappingURL=http.request.d.ts.map