import type { AgentLoopOptions, AgentLoopStrategy, ArtifactParser, ArtifactRepairer, ArtifactValidator, LoopContext, ToolCallContent } from "./contracts.js"; export declare const singleShotLoop: AgentLoopStrategy; export declare function isAgentLoopOptions(value: AgentLoopStrategy | AgentLoopOptions | undefined): value is AgentLoopOptions; export declare function generateValidateReviseLoop(opts: { readonly validator: ArtifactValidator; readonly parser?: ArtifactParser; readonly repairer?: ArtifactRepairer; readonly maxRevisions?: number; readonly toolCalls?: "disabled" | "bounded"; readonly structuredOutputTiming?: "every-turn" | "final-turn-only"; }): AgentLoopStrategy; export declare function resolveToolConcurrency(options: { loop?: AgentLoopStrategy | AgentLoopOptions; }, config: { loop?: AgentLoopStrategy | AgentLoopOptions; }): number; /** Calls the host must dispatch. Provider-hosted calls (`authority: "provider-hosted"`) * were already executed server-side; the assistant response text carries their effect, so * the host neither dispatches them nor appends a `tool_result`. */ export declare function dispatchableToolCalls(calls: readonly ToolCallContent[]): readonly ToolCallContent[]; /** Dispatch tool calls with bounded concurrency; append transcript rows in call order. */ export declare function dispatchToolCallsInOrder(calls: readonly ToolCallContent[], ctx: LoopContext): Promise; export declare function resolveLoop(options: { loop?: AgentLoopStrategy | AgentLoopOptions; }, config: { loop?: AgentLoopStrategy | AgentLoopOptions; }): AgentLoopStrategy;