/**
 * OpenAI multi-turn tool execution loop.
 *
 * Supports two OpenAI API surfaces:
 * - **Chat Completions** (`/v1/chat/completions`) — used by `openai:chat:*` models
 * - **Responses** (`/v1/responses`) — used by `openai:responses:*` models (GPT-5.x)
 *
 * Both follow the same loop pattern: send prompt → model calls tools → execute
 * via MCP → feed results back → repeat until final text or maxToolRounds.
 */
import type { ToolLoopConfig, ToolLoopResult } from "./types.js";
/**
 * Run a multi-turn tool loop using the OpenAI API.
 *
 * Routes to Chat Completions or Responses API based on `config.apiVariant`:
 * - `"responses"` → Responses API (`/v1/responses`)
 * - `"chat"` or undefined → Chat Completions API (`/v1/chat/completions`)
 */
export declare function runOpenAIToolLoop(config: ToolLoopConfig): Promise<ToolLoopResult>;
