/** * Loose field-name parser for stage specs (C2). * * Accepts synonym field names and normalizes them. * Missing required fields return a structured "needs-supplement" signal, * never a hard error. */ import type { DoneCriterion } from '../coordinator/state.js'; export interface ParseDoneCriterionResult { normalized: DoneCriterion; missing: string[]; } /** * Parse and normalize a single done-criterion from loose LLM output. * Returns normalized criterion + list of missing required fields. */ export declare function parseDoneCriterion(raw: Record): ParseDoneCriterionResult; /** * Parse an array of done-criterion from loose LLM output. */ export declare function parseDoneCriteria(rawArray: unknown[]): ParseDoneCriterionResult[]; /** * Parse a stage spec from planner output. * Returns normalized stage data + any missing-field feedback. */ export interface ParsedStageSpec { id: string; title: string; goal: string; doneCriteria: DoneCriterion[]; evaluatorMode: 'auto' | 'deep'; missingFields: string[]; } export declare function parseStageSpec(raw: Record, index: number, profileDefault?: 'auto' | 'deep'): ParsedStageSpec; //# sourceMappingURL=parser.d.ts.map