import { type WrapFetchOptions } from '@windyroad/wrap-fetch'; import { type FetchFragmentFunction } from './fetch-fragment-function.js'; /** * Fetches a fragment from a JSON response based on a URL fragment identifier. * If the response is not JSON or the fragment is not found, returns a 404 or 415 response. * @template Arguments The type of the input arguments for the `fetch` implementation. * @template ResponseType The awaited type of the `fetch` implementation response. * @param fetchImplOrOptions - The `fetch` implementation to wrap or an object with either the `fetch` implementation to wrap or a function that returns a fetch implementation. Defaults to the global `fetch` function. * @returns {FetchFragmentFunction} - A function that fetches a fragment from a JSON response. */ export declare function addFragmentSupportToFetch, ResponseType extends Response = Response>(fetchImplOrOptions?: WrapFetchOptions): FetchFragmentFunction; //# sourceMappingURL=add-fragment-support-to-fetch.d.ts.map