/** * HTTP client implementation using Axios */ import { type AxiosInstance, type AxiosResponse } from 'axios'; import type { RequestConfig, ApiResponse } from '../types'; /** * HTTP client for making requests using Axios */ export declare class HttpClient { private axiosInstance; constructor(config?: Partial); /** * Transform Axios response to our ApiResponse format */ private transformAxiosResponse; /** * Transform Axios error to our ApiError format */ private transformAxiosError; /** * Makes an HTTP request using Axios */ request(config: RequestConfig): Promise>; /** * GET request */ get(url: string, config?: Partial): Promise>; /** * POST request */ post(url: string, data?: any, config?: Partial): Promise>; /** * PUT request */ put(url: string, data?: any, config?: Partial): Promise>; /** * PATCH request */ patch(url: string, data?: any, config?: Partial): Promise>; /** * DELETE request */ delete(url: string, config?: Partial): Promise>; /** * HEAD request */ head(url: string, config?: Partial): Promise>; /** * OPTIONS request */ options(url: string, config?: Partial): Promise>; /** * Add request interceptor */ addRequestInterceptor(onFulfilled?: (config: any) => any | Promise, onRejected?: (error: any) => any): number; /** * Add response interceptor */ addResponseInterceptor(onFulfilled?: (response: AxiosResponse) => any | Promise, onRejected?: (error: any) => any): number; /** * Remove request interceptor */ removeRequestInterceptor(interceptorId: number): void; /** * Remove response interceptor */ removeResponseInterceptor(interceptorId: number): void; /** * Get the underlying Axios instance */ getAxiosInstance(): AxiosInstance; } //# sourceMappingURL=http-client.d.ts.map