import { t as __name } from "../chunk--u3MIqq1.js"; //#region src/clients/fetch.d.ts /** * RequestCredentials */ type RequestCredentials = 'omit' | 'same-origin' | 'include'; /** * Subset of FetchRequestConfig */ type RequestConfig = { baseURL?: string; url?: string; method?: 'GET' | 'PUT' | 'PATCH' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD'; params?: unknown; data?: TData | FormData; responseType?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream'; signal?: AbortSignal; headers?: [string, string][] | Record; credentials?: RequestCredentials; }; /** * Subset of FetchResponse */ type ResponseConfig = { data: TData; status: number; statusText: string; headers: Headers; }; declare const getConfig: () => Partial>; declare const setConfig: (config: Partial) => Partial>; declare const mergeConfig: (...configs: Array>) => Partial; type ResponseErrorConfig = TError; type Client = (config: RequestConfig) => Promise>; declare const client: { (paramsConfig: RequestConfig): Promise>; getConfig: () => Partial>; setConfig: (config: Partial) => Partial>; }; //#endregion export { Client, RequestConfig, RequestCredentials, ResponseConfig, ResponseErrorConfig, client, client as default, getConfig, mergeConfig, setConfig }; //# sourceMappingURL=fetch.d.ts.map