import { QueryString } from '../utils/queryString'; export type HttpConfig = { baseUrl: string; language?: string; locale?: string; acceptCookies?: boolean; }; export type RequestParams = { method?: 'GET' | 'POST' | 'DELETE'; query?: QueryString; body?: object; accessToken?: string; }; export type GetRequestParams = Omit; export type DeleteRequestParams = Omit; export type PostRequestParams = Omit; export interface HttpClient { get(path: string, options: GetRequestParams): Promise; post(path: string, options: PostRequestParams): Promise; remove(path: string, options: DeleteRequestParams): Promise; request(path: string, options: RequestParams): Promise; } export declare function createHttpClient(config: HttpConfig): HttpClient; /** * Low level HTTP client */ export declare function rawRequest(url: string, fetchOptions?: RequestInit): Promise; export declare function retrieveCorrelationId(): Promise;