import type { JsonObject } from '../../hub/types/json.js';
/**
 * Some iFlow models reject OpenAI `tools`/`tool_choice` fields with a non-standard 200 error envelope.
 *
 * For such models, we fall back to "text tool calls":
 * - remove top-level `tools` / `tool_choice` so upstream accepts the request
 * - inject a system instruction telling the model to emit `<tool:...>` blocks
 * - response pipeline will harvest those blocks into canonical `tool_calls`
 */
export declare function applyIflowToolTextFallback(payload: JsonObject, options?: {
    models?: string[];
    routeId?: string;
}): JsonObject;
