/** Inject OpenRouter's `provider` routing block into a JSON request body. * OpenRouter routes to ANY provider unless the body carries this block. Returns * the body unchanged if it is not JSON. */ export declare function injectOpenRouterProvider(bodyStr: string, region: string, allowFallbacks: boolean): string; /** A `fetch` middleware that pins OpenRouter routing, ESCALATING fallbacks across * retries: the FIRST request honours `firstAttemptAllowFallbacks` (the configured * pin — false hard-pins the required provider), every RETRY allows fallbacks so a * transient provider error (429/502) can reroute at OpenRouter's discretion. * `order:[region]` is always kept, so the required provider stays the preference. */ export declare function openRouterEscalatingFetch(region: string, firstAttemptAllowFallbacks: boolean): typeof fetch; //# sourceMappingURL=openrouter-fetch.d.ts.map