import { FetchOptions } from './models.js'; /** * Set advanced options to be used by all fetch() calls * @param options */ export declare function setFetchOptions(options: FetchOptions): void; /** * Returns current fetch() options */ export declare function getFetchOptions(): FetchOptions; /** * Resets advanced fetch() options to their defaults */ export declare function resetFetchOptions(): void; export declare function setFetchOptionsUpdateCallback(callback: (options: FetchOptions) => void): void; /** * Returns a promise equivalent to `fetch(url)` but guarded against * identical concurrent requests * Note: this should only be used for GET requests! */ export declare function sharedFetch(url: string, method?: 'GET' | 'HEAD', asJson?: boolean): Promise; /** * Runs a GET HTTP request to the provided URL and resolves to the * XmlDocument */ export declare function queryXmlDocument(url: string): Promise; /** * Add or replace query params in the url; note that params are considered case-insensitive, * meaning that existing params in different cases will be removed as well. * Also, if the url ends with an encoded URL (typically in the case of urls run through a CORS * proxy, which is an aberration and should be forbidden btw), then the encoded URL * will be modified instead. */ export declare function setQueryParams(url: string, params: Record): string; //# sourceMappingURL=http-utils.d.ts.map