import type { IApiConnector } from "./types"; export declare const jsonContentType = "application/json"; export type Middleware = (response: Response) => Response | PromiseLike; export type FetchFunction = (input: RequestInfo, init?: RequestInit) => Promise; export type Serializer = (value: any) => string; export declare function appendContentTypeHeader(contentType: string, params?: RequestInit): RequestInit; export declare function handleErrorStatusMiddleware(response: Response): Promise; export declare class FetchApiConnector implements IApiConnector { protected fetchFunction: FetchFunction; protected serializer: Serializer; protected middleware: Middleware; protected appendContentHeader: (params?: RequestInit) => RequestInit; constructor(configuration?: { fetchFunction?: FetchFunction; serializer?: Serializer; middleware?: Middleware; contentType?: string; }); get(url: string, params?: RequestInit): Promise; post(url: string, body?: BodyInit, params?: RequestInit): Promise; postObject(url: string, content: any, params?: RequestInit): Promise; put(url: string, body?: BodyInit, params?: RequestInit): Promise; putObject(url: string, content: any, params?: RequestInit): Promise; patch(url: string, body?: BodyInit, params?: RequestInit): Promise; patchObject(url: string, content: any, params?: RequestInit): Promise; delete(url: string, body?: BodyInit, params?: RequestInit): Promise; deleteObject(url: string, content: any, params?: RequestInit): Promise; }