import type { ApiResponse, HeadersMap, HttpClient, Params, ParamsWithPayload } from '../http'; export interface Options { accessToken: string; headers: HeadersMap; } export type ApiClient = ReturnType; export declare function createApiClient(http: HttpClient, { accessToken, headers }: Options): { get: (url: string, { headers, query }?: Params) => Promise>; post: (url: string, { headers, payload, query }?: ParamsWithPayload) => Promise>; put: (url: string, { headers, payload, query }?: ParamsWithPayload) => Promise>; patch: (url: string, { headers, payload, query }?: ParamsWithPayload) => Promise>; delete: (url: string, { headers, payload, query }?: ParamsWithPayload) => Promise>; };