import type { ProjectKnowledge, Spec } from '../../types/index.js';
export interface MigrationRunResult {
    discoveryResult: {
        flattenedCount: number;
        convertedCount: number;
        renamedCount: number;
        errors: string[];
    } | null;
    migrationResult: {
        migratedCount: number;
        errors: string[];
    } | null;
    folderMigrationResult: {
        migratedCount: number;
        errors: string[];
    } | null;
}
/**
 * Run all spec migration passes during init_project:
 * 1. Discover and flatten specs from subcategory folders (v0.30 → v0.40)
 * 2. Migrate legacy docs/sdd/specs/ → planu/specs/
 * 3. Reconcile stale paths in specs.json
 * 4. Migrate spec folders without SPEC-XXX- prefix
 */
export declare function runSpecMigrations(projectPath: string, projectId: string, knowledge: ProjectKnowledge): Promise<MigrationRunResult>;
/** Return all specs for the project (needed by caller for health check refs). */
export declare function listProjectSpecs(projectId: string): Promise<Spec[]>;
//# sourceMappingURL=migration-runner.d.ts.map