import type { ScaffoldConfig } from '../types/index.js'; import type { ScaffoldError, ScaffoldWarning } from '../utils/errors.js'; /** Result of loadConfig. */ interface LoadResult { config: ScaffoldConfig | null; errors: ScaffoldError[]; warnings: ScaffoldWarning[]; } /** * Load and validate .scaffold/config.yml. * * Implements a 6-phase validation pipeline: * - Phase 1: File existence (short-circuit) * - Phase 2: YAML parse + shape check (short-circuit) * - Phase 3: Version check + v1 migration (short-circuit) * - Phase 4: Required fields validation (accumulate) * - Phase 5: Unknown top-level fields → warnings (accumulate) * - Phase 6: Cross-field validation (accumulate) */ export declare function loadConfig(projectRoot: string, knownSteps: string[]): LoadResult; export {}; //# sourceMappingURL=loader.d.ts.map