import { FetchOptions, ResponseContext } from "./plugin.mjs"; //#region src/fetcher.d.ts type FetcherFetchOptions = FetchOptions & { /** Whether to send credentials (cookies). Defaults to `"include"`. */credentials?: RequestCredentials; /** Custom fetch impl. Defaults to `globalThis.fetch`. */ impl?: typeof fetch; /** Callback function to be called when the request is successful. */ onSuccess?: (context: ResponseContext & { response: Response; }) => void; /** Callback function to be called when the request fails. */ onError?: (context: ResponseContext & { error: Error; }) => void; }; //#endregion export { FetcherFetchOptions };