import type { TurnResult } from "../types.js"; import { type DurableSessionRuntime } from "./state.js"; /** * Scan a finished turn's captured events for a failed `set_session_model` tool * call. The inline control tool returns its outcome as a plain string (see * session-proxy `setSessionModel`), so `tool.execution_complete.data.result` * is usually a string; some transports wrap it as `{ content }`. We match the * `set_session_model failed` marker across both shapes. Exported for unit tests. */ export declare function detectFailedModelSwitch(events: Array<{ eventType?: string; data?: any; }> | undefined): string | null; export declare function processPrompt(runtime: DurableSessionRuntime, promptText: string, isBootstrap: boolean, requiredTool?: string, clientMessageIds?: string[], cycleOrigin?: "cron" | "cron_at"): Generator; export declare function handleTurnResult(runtime: DurableSessionRuntime, result: TurnResult, sourcePrompt: string, cycleOrigin?: "cron" | "cron_at"): Generator; export declare function processTimer(runtime: DurableSessionRuntime, timerItem: any): Generator; //# sourceMappingURL=turn.d.ts.map