import type { Spec, SpecMigrationResult, SpecMigrationDeps } from '../../types/index.js';
/**
 * Detect specs stored under a legacy location (docs/sdd/specs/).
 * Caller provides the list of specs (from storage layer).
 */
export declare function filterLegacySpecs(specs: Spec[]): Spec[];
/**
 * Migrate legacy specs to planu/specs/ with modern file naming.
 * Moves files on disk and calls the provided updateSpec for each migrated spec.
 * Also rewrites planu.json.
 */
export declare function migrateSpecs(projectPath: string, legacySpecs: Spec[], deps: SpecMigrationDeps): Promise<SpecMigrationResult>;
//# sourceMappingURL=legacy-migration.d.ts.map