import type { CliRunResult } from "./bearshell.js"; import type { BoundedProcessOutcome } from "./bounded-process.js"; import type { ClosureBlocker, ClosureStep } from "./workflow-closure.js"; import type { WorkflowLoopFinalDecision, WorkflowLoopIterationRecord } from "./workflow-loop-state.js"; export type WorkflowLoopResult = { readonly diagnosticCodes: readonly string[]; readonly exitCode: 0 | 1; readonly finalDecision: WorkflowLoopFinalDecision; readonly success: boolean; }; export type WorkflowLoopPayload = WorkflowLoopResult & { readonly boundaries: readonly string[]; readonly defaultOff: true; readonly iterations: readonly WorkflowLoopIterationRecord[]; readonly maxIterations: number; readonly mode: "dry-run" | "execute"; readonly promptPreview: readonly string[]; readonly rulePackHash: string; readonly schemaVersion: "workflow-loop.1"; readonly statePath: string; readonly termination: readonly string[]; }; type WorkflowLoopPromptInput = { readonly blocker: ClosureBlocker; readonly depth: { readonly index: number; readonly total: number; }; readonly rulePackHash: string; readonly step: ClosureStep; }; export declare function workflowLoopResultForDecision(finalDecision: WorkflowLoopFinalDecision): WorkflowLoopResult; export declare function workflowLoopPayload(input: Omit): WorkflowLoopPayload; export declare function workflowLoopDecisionForChildOutcome(outcome: BoundedProcessOutcome): WorkflowLoopFinalDecision | undefined; export declare function workflowLoopPrompt(input: WorkflowLoopPromptInput): readonly string[]; export declare function formatWorkflowLoopPayload(payload: WorkflowLoopPayload, json: boolean): CliRunResult; export {};