import type { Fetch } from '../api'; import type { ApiError } from './ApiError'; import type { ApiResponse, Params, ParamsWithPayload } from './types'; export interface HttpClient { get(url: string, params?: Params): Promise>; post(url: string, params?: ParamsWithPayload): Promise>; put(url: string, params?: ParamsWithPayload): Promise>; patch(url: string, params?: ParamsWithPayload): Promise>; delete(url: string, params?: ParamsWithPayload): Promise>; } interface Options { baseUrl?: string; fetch?: Fetch; onError?: (error: ApiError) => void; } export declare function createHttpClient(options?: Options): HttpClient; export {};