import { Headers } from "./types.js"; import { HttpRetryOptions } from "../types.js"; //#region src/network/httpClient.d.ts type HttpMethod = "GET" | "POST" | "PUT" | "DELETE"; type RequestOptions = Omit & { headers?: Headers; /** When true, the successful response is the raw `fetch` `Response` (no JSON parsing). */ rawResponse?: boolean; /** Override the client default HTTP timeout for this request (milliseconds). */ requestTimeout?: number; }; type HttpClientOptions = { baseUrl: string | URL; headers?: Headers; queryParams?: Record; retry: Required; timeout: number; }; declare class HttpClient { private baseUrl; private defaultHeaders?; private defaultQueryParams?; private retry; private timeout; private fetchPromise; constructor(options: HttpClientOptions); get(url: string | URL, init?: RequestOptions): Promise; post(url: string | URL, init?: RequestOptions): Promise; put(url: string | URL, init?: RequestOptions): Promise; delete(url: string | URL, init?: RequestOptions): Promise; request(method: HttpMethod, url: string | URL, init?: RequestOptions): Promise; } //#endregion export { HttpClient }; //# sourceMappingURL=httpClient.d.ts.map