type FetchProps = { url: URL; contentType: string; method: T; }; /** * Fetch a resource from remote or local cache. * * When using this function, we first check if the resource is available in the local cache * by using the page url as the cache key prefix. * * If none is found, we fetch the page from the remote server and cache it locally, * then return its content. * * If the local cache includes a potential match, we make a `HEAD` request to the remote server * and compare the ETag with the one stored in the local cache. * * If the ETag matches, we return the cached content. If it doesn't match, * we fetch the entire page using a `GET` request and update the local cache with the new content. * * @param props - options for fetching a resource * @param props.url - the URL of the resource to fetch */ declare const fetchWithCache: (props: Omit, "method">) => Promise; export { fetchWithCache }; //# sourceMappingURL=fetchWithCache.d.ts.map