/** * Creates a fetch wrapper that enforces a maximum response body size. * * Guards against memory exhaustion from oversized OIDC discovery documents, * JWKS responses, token endpoint payloads, or other HTTP responses. * * Two-layer protection: * 1. Fast path: rejects immediately if Content-Length header exceeds the limit * 2. Streaming guard: wraps the response body to enforce the limit during * chunked transfer-encoding where Content-Length is absent * * @param baseFetch - The underlying fetch implementation to wrap * @param maxBodySize - Maximum allowed response body size in bytes * @returns A fetch function that enforces the size limit * * @internal */ export declare function createSizeLimitedFetch(baseFetch: typeof fetch, maxBodySize: number): typeof fetch;