import type { GateResult } from "./types.ts"; import type { KdConsistencyReport } from "./consistency.ts"; import type { ActiveRun, KdPhase, KdQuestion } from "./types.ts"; import type { KdActionRoute } from "./action-router.ts"; export type KdNextActionKind = "fix-consistency" | "answer-question" | "resume-snapshot" | "advance-phase" | "collect-metadata-evidence" | "handle-gate" | "phase-work"; export interface KdNextAction { kind: KdNextActionKind; executable: boolean; instruction: string; reason: string; targetPhase?: KdPhase; toolHint?: string; evidencePath?: string; } export declare function decideNextAction(input: { cwd: string; run: ActiveRun; gate: GateResult; consistency: KdConsistencyReport; openQuestion?: KdQuestion; actionRoute: KdActionRoute; }): KdNextAction; export declare function formatNextAction(action: KdNextAction): string;