import { AxiosRequestConfig, AxiosError } from 'axios'; export declare enum HttpMethod { GET = "GET", POST = "POST", DELETE = "DELETE", PUT = "PUT", PATCH = "PATCH", OPTIONS = "OPTIONS", HEAD = "HEAD" } export interface ClientResponse { data: T; status: number; statusText: string; } export interface RequestInfo { id: string; method: AxiosRequestConfig['method']; url: string; params?: Record | unknown; data?: Record | null; headers: Record; } export interface IHttpClient { header(name: string, value: string): IHttpClient; get, TBody = Record | null>(url: string, params?: TParams): Promise>; delete, TBody = Record | null>(url: string, params?: TParams): Promise>; post, TBody = Record | null>(url: string, params?: TParams, data?: TBody): Promise>; put, TBody = Record | null>(url: string, params?: TParams, data?: TBody): Promise>; options, TBody = Record | null>(url: string, params?: TParams, data?: TBody): Promise>; execute, TBody = Record | null>(method: HttpMethod, url: string, params?: TParams, data?: TBody | null): Promise>; } export interface HttpClientError extends Error { httpUrl: string; httpMethod: string; httpParams: Record; httpStatusCode?: number; httpStatusText?: string; sourceError?: AxiosError; } //# sourceMappingURL=types.d.ts.map