import { type AceContextTier } from "./ace-context.js"; import type { OllamaClient } from "./tui/ollama.js"; import type { OpenAICompatibleClient } from "./tui/openai-compatible.js"; export interface BridgeToolCall { tool: string; input?: Record; } export interface BridgeToolResult { tool: string; ok: boolean; summary: string; isError: boolean; } export interface BridgeResult { bridge_id: string; role: string; status: "completed" | "needs_input" | "failed" | "max_turns"; summary: string; turns: number; tool_calls: BridgeToolResult[]; child_results: BridgeResult[]; } export interface ModelBridgeClients { ollama: Pick; openai: Pick; } export interface ModelBridgeRunOptions { task: string; role: string; workspace: string; tier?: AceContextTier; numCtx?: number; maxTurns: number; provider: string; model: string; toolScope?: string[]; parentBridge?: string; onToolCall?: (tool: string, args: Record) => void; onToolResult?: (tool: string, result: BridgeToolResult) => void; onOutput?: (text: string) => void; onThinking?: (text: string) => void; } export declare class ModelBridge { private clients; private activeProviderClient; private bridgeId; private currentRunChildResults; constructor(clients: ModelBridgeClients); interrupt(): void; spawn(options: ModelBridgeRunOptions): Promise; private selectToolScope; run(options: ModelBridgeRunOptions): Promise; } //# sourceMappingURL=model-bridge.d.ts.map