import { AxiosRequestConfig, AxiosResponse } from 'axios'; /** * A robust HTTP client wrapper built on Axios, providing features like * custom user-agent, proxy support, and centralized error handling. */ export declare class HttpClient { private client; private userAgent; /** * Initializes the HttpClient. * @param proxy Optional proxy URL (e.g., "http://user:pass@host:port"). * @param userAgent Optional custom User-Agent string. */ constructor(proxy?: string, userAgent?: string); /** * Performs a GET request. * @param url The URL to request. * @param config Optional Axios request configuration. * @returns A promise that resolves to the Axios response. */ get(url: string, config?: AxiosRequestConfig): Promise>; /** * Performs a POST request. * @param url The URL to request. * @param data The data to post. * @param config Optional Axios request configuration. * @returns A promise that resolves to the Axios response. */ post(url: string, data?: any, config?: AxiosRequestConfig): Promise>; /** * Centralized error handling for Axios errors. * @param error The error object. */ private handleAxiosError; }