import type { ScaffoldError, ScaffoldWarning } from '../types/index.js'; /** * Validate .scaffold/state.json for the given project root. * * - Returns STATE_MISSING error if file does not exist * - Returns STATE_PARSE_ERROR if file is not valid JSON * - Returns STATE_SCHEMA_VERSION error if schema-version is not 1, 2, 3, or 4 * - Returns FIELD_INVALID_VALUE errors for steps with invalid status values * - Returns STATE_IN_PROGRESS warning if in_progress is non-null (potential crash) * * @param projectRoot - project root directory * @param statePath - optional override for the state.json path (defaults to .scaffold/state.json) */ export declare function validateState(projectRoot: string, statePath?: string): { errors: ScaffoldError[]; warnings: ScaffoldWarning[]; }; //# sourceMappingURL=state-validator.d.ts.map