import { Agent } from '../agent'; import { Handoff } from '../handoff'; import { RunItem } from '../items'; import { ModelResponse } from '../model'; import { RunState } from '../runState'; import type { AgentInputItem } from '../types'; import { Tool } from '../tool'; import type { ProcessedResponse } from './types'; /** * Walks a raw model response and classifies each item so the runner can schedule follow-up work. * Returns both the serializable RunItems (for history/streaming) and the actionable tool metadata. */ export declare function processModelResponse(modelResponse: ModelResponse, agent: Agent, tools: Tool[], handoffs: Handoff[], priorItems?: Array): ProcessedResponse; export declare function processModelResponseAsync(modelResponse: ModelResponse, agent: Agent, tools: Tool[], handoffs: Handoff[], state: RunState>, priorItems?: Array): Promise>;