import { Agent, AgentOutputType } from '../agent'; import { RunItem } from '../items'; import { RunState } from '../runState'; import type { AgentInputItem } from '../types'; import type { InputGuardrailDefinition, InputGuardrailResult } from '../guardrail'; import { ServerConversationTracker } from './conversation'; import type { AgentArtifacts } from './types'; type GuardrailHandlers = { onParallelStart?: () => void; onParallelError?: (error: unknown) => void; }; type PreparedTurn = { artifacts: AgentArtifacts; turnInput: AgentInputItem[]; parallelGuardrailPromise?: Promise; }; type PrepareTurnOptions> = { state: RunState; input: string | AgentInputItem[]; generatedItems: RunItem[]; isResumedState: boolean; preserveTurnPersistenceOnResume?: boolean; continuingInterruptedTurn: boolean; serverConversationTracker?: ServerConversationTracker; inputGuardrailDefs: InputGuardrailDefinition[]; guardrailHandlers?: GuardrailHandlers; emitAgentStart?: (context: RunState['_context'], agent: TAgent, turnInput: AgentInputItem[]) => void; }; export declare function prepareTurn>(options: PrepareTurnOptions): Promise>; export declare function getManagedConversationSupplementalItems>(state: RunState): AgentInputItem[]; export {};