import type { SuperintendentDoc } from "../document/parse.js"; import type { WorkflowTransition } from "../runtime/workflow-tool.js"; export type LoopState = { state: "in_progress" | "review" | "completed"; round: number; reviewTurn: number; maxRounds: number; maxReviewTurns: number; }; export declare function createLoopState(doc: SuperintendentDoc): LoopState; export declare function applyTransition(state: LoopState, transition: WorkflowTransition): LoopState; export declare function startNewRound(state: LoopState): LoopState; export declare function isComplete(state: LoopState): boolean; export declare function shouldRunBuilder(state: LoopState): boolean;