export type RequestParams = { headers?: { [key: string]: string; }; secure?: boolean; }; export declare enum BodyType { Json = 0, FormData = 1 } export interface RestApiClientContract { request: (path: string, method: string, requestParams?: RequestParams, body?: unknown, bodyType?: BodyType, secureByDefault?: boolean) => Promise>; apiHost: string; } export type RequestQueryParamsType = Record; type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; export interface HttpResponse { data?: TData; error?: TError; headers: { [key: string]: string; }; ok: boolean; redirected: boolean; status: number; statusText: string; type: ResponseType; url: string; } export interface RestRuntimeApi { /** * Requests the rest api. * * @deprecated Use the Public Graphql instead. */ requestTrackunitRestApi: (path: string, method: string, requestParams?: RequestParams, body?: unknown, bodyType?: BodyType, secureByDefault?: boolean) => Promise>; } export {};