import type { ToolCall } from "../../../types.js"; import type { BackgroundJob } from "../../../tools/jobs.js"; import type { TurnState, TurnStateSnapshot } from "../../turn-state.js"; export interface TurnStateMachine { readonly snapshot: () => TurnStateSnapshot; readonly move: (to: TurnState, reason?: string) => void; } export declare const createTurnStateMachine: () => TurnStateMachine; export interface ProbeStatePorts { readonly getJob: (id: string) => BackgroundJob | undefined; readonly recentJobs: () => readonly BackgroundJob[]; } export declare const createProbeStateKey: (ports: ProbeStatePorts) => (call: ToolCall) => string | undefined;