/** * `fetch`, always called with a URL string. * * Themes and apps wrap `window.fetch` to watch cart requests, and many of those * wrappers read the first argument as a string: * `if (arguments[0].includes("/cart/add"))`. Given a `Request` or a `URL`, such * a wrapper throws after it has already sent the request, so the caller never * gets the response. The Swish API client builds `Request` objects and * `ui.css` entries are `URL`s, so on a store with one of these wrappers every * Swish API call came back empty and no `` element hydrated * (SWI-3168). * * Every request the SDK makes goes through here, so a wrapper only ever sees * `(string, init)` from Swish. `fetch-with-string-url.test.ts` fails on a * direct `fetch()` call anywhere else in the SDK. */ export declare function fetchWithStringUrl(input: string | URL | Request, init?: RequestInit): Promise;