/** * FetchUtils — Scope class for fetch client and interceptors. * * Owns scoped interceptor Sets that replace the module-level global Sets. * Each WithScope creates a fresh FetchUtils, keeping interceptors * isolated between SSR requests. * * Prefer `useUtils()` in app code (MatesUtils delegates here). * * @example * ```ts * const App = () => { * const { fetchClient, interceptBefore } = useUtils(); * interceptBefore(withAuth("token")); * return () => html`...`; * }; * ``` */ import type { AfterInterceptor, BeforeInterceptor, ErrorInterceptor } from "../Fetch"; import { FetchClient } from "../Fetch/Fetch"; export declare class FetchUtils { fetchClient: FetchClient; private _beforeFns; private _afterFns; private _errorFns; constructor(); interceptBefore(fn: BeforeInterceptor): () => void; interceptAfter(fn: AfterInterceptor): () => void; interceptError(fn: ErrorInterceptor): () => void; clearInterceptors(): void; } //# sourceMappingURL=FetchUtils.d.ts.map