import { type URLSearchParamsInit } from "react-router-dom"; import { HTTPResponse } from "./httpResponse"; import { Interceptors } from "./interceptors"; import type { HTTPConfig, HTTPRequestConfig, MutationRequestBody, ParamsRecord } from "./types"; export declare class HTTP { private baseURL; private readonly headers; private fetchCache; readonly interceptors: Interceptors; constructor(config: HTTPConfig); updateURL(customURL?: string): void; private getQuery; private replacePathParams; getUrl(path?: string, params?: ParamsRecord, query?: URLSearchParamsInit): string; private $fetch; get(path: string, config?: HTTPRequestConfig): Promise>; post(path: string, body?: B, config?: HTTPRequestConfig): Promise>; patch(path: string, body?: B, config?: HTTPRequestConfig): Promise>; patchRaw(path: string, file: File, config?: HTTPRequestConfig): Promise>; putRawExternal(url: string, file: File): Promise; put(path: string, body?: B, config?: HTTPRequestConfig): Promise>; delete(path: string, config?: HTTPRequestConfig, body?: B): Promise>; } export declare const api: HTTP;