import type { JsonObject } from '../../hub/types/json.js';
import type { AdapterContext } from '../../hub/types/chat-envelope.js';
/**
 * Compat for Claude models routed via antigravity on gemini-chat.
 *
 * Anthropic requires tools[*].custom.input_schema to be valid JSON Schema draft 2020-12.
 * We currently send OpenAI-style parameters which may not fully conform, causing upstream
 * invalid_request_error on tools.N.custom.input_schema.
 *
 * For safety, when we detect the antigravity.*.claude-* path over gemini-chat,
 * we aggressively simplify Gemini functionDeclarations[*].parameters to a minimal
 * but valid object schema, letting RouteCodex govern tool semantics while keeping
 * Anthropic's schema validator happy.
 */
export declare function applyClaudeThinkingToolSchemaCompat(payload: JsonObject, adapterContext?: AdapterContext): JsonObject;
