import type { PipelineState } from '../types/index.js'; /** * Apply state migrations to handle step renames and artifact path changes. * * Called during loadState() after JSON parsing but before returning. * Migrations are idempotent — safe to run on already-migrated state. * * Returns true if any migration was applied (caller should persist). */ export declare function migrateState(state: PipelineState): boolean; /** * Resolve a PRD artifact path — returns whichever file actually exists. * Checks canonical path first (docs/plan.md), then aliases (docs/prd.md). * * Exported for use by the context gatherer and Mode Detection logic. */ export declare function resolvePrdPath(projectRoot: string): string; /** * Resolve an artifact path, checking aliases if the canonical path doesn't exist. * Generalizes PRD resolution for any aliased artifact path. */ export declare function resolveArtifactPath(projectRoot: string, artifactPath: string): string; //# sourceMappingURL=state-migration.d.ts.map