import * as E from "fp-ts/Either"; import { IO } from "fp-ts/IO"; import * as S from "fp-ts/Semigroup"; import { BasicError } from "../error"; export declare const getApiPath: IO, string>>; export declare const resolveApiPath: (apiPath?: string) => E.Either, string>; export declare const mergeInitRequests: S.Semigroup<{ readonly body?: BodyInit | null; readonly cache?: RequestCache; readonly credentials?: RequestCredentials; readonly headers?: HeadersInit; readonly integrity?: string; readonly keepalive?: boolean; readonly method?: string; readonly mode?: RequestMode; readonly priority?: RequestPriority; readonly redirect?: RequestRedirect; readonly referrer?: string; readonly referrerPolicy?: ReferrerPolicy; readonly signal?: AbortSignal | null; readonly window?: null; }>; export type RequestWithPath = [string, RequestInit]; export type RequestMethod = "GET" | "POST" | "DELETE"; export declare const createBasicRequest: (method: RequestMethod) => RequestInit; export declare const createRequestFromMethod: (method: RequestMethod) => E.Either; export declare const createInitPostRequest: E.Either; export declare const setBodyAndHeaders: (fa: E.Either) => E.Either;