import type { Agent, AgentOutputType } from '../agent'; import type { RunState } from '../runState'; import type { Runner, ToolErrorFormatter } from '../run'; import type { SingleStepResult } from './steps'; export type InterruptedTurnOutcome = { nextStep: SingleStepResult['nextStep']; action: 'return_interruption' | 'rerun_turn' | 'advance_step'; }; export type InterruptedTurnControl = { shouldReturn: boolean; shouldContinue: boolean; }; type ApplyTurnResultOptions> = { state: RunState; turnResult: SingleStepResult; agent: Agent; toolsUsed: string[]; resetTurnPersistence: boolean; onStepItems?: (turnResult: SingleStepResult) => void; }; export declare function applyTurnResult>(options: ApplyTurnResultOptions): void; export declare function resumeInterruptedTurn>(options: { state: RunState; runner: Runner; toolErrorFormatter?: ToolErrorFormatter; onStepItems?: (turnResult: SingleStepResult) => void; }): Promise; export declare function handleInterruptedOutcome>(options: { state: RunState; outcome: InterruptedTurnOutcome; setContinuingInterruptedTurn: (value: boolean) => void; }): InterruptedTurnControl; export {};