import { type AxiosRequestConfig } from 'axios'; type PreserveKeyPath = string[]; export type HttpRequestConfig = AxiosRequestConfig & { preserveKeyPaths?: { request?: PreserveKeyPath[]; response?: PreserveKeyPath[]; }; }; export declare class ApiHttpError extends Error { readonly data: unknown; readonly status?: number; constructor(message: string, options?: { data?: unknown; status?: number; }); static fromUnknown(error: unknown): ApiHttpError; private static fromAxiosError; } export declare class HttpClient { private readonly client; constructor(baseUrl: string, headers?: Record); delete(url: string, config?: HttpRequestConfig): Promise; get(url: string, config?: HttpRequestConfig): Promise; patch(url: string, data?: unknown, config?: HttpRequestConfig): Promise; post(url: string, data?: unknown, config?: HttpRequestConfig): Promise; put(url: string, data?: unknown, config?: HttpRequestConfig): Promise; private request; } export {};