/** Detection and safe cleanup rules for pre-adapter platform installations. */ export interface LegacySurface { id: string; path: string; scope: 'project' | 'user'; ownership: 'marker' | 'named-entry' | 'monomind-file'; action: 'remove-block' | 'remove-entry' | 'remove-file' | 'migrate'; } export interface LegacyMigrationResult { changed: readonly string[]; skipped: readonly string[]; diagnostics: readonly string[]; } /** * Every surface is explicit so detection can remain read-only and never infer * ownership from an arbitrary file name or config location. */ export declare const LEGACY_SURFACE_INVENTORY: readonly LegacySurface[]; export declare function isMonomindOwned(content: string): boolean; export declare function findLegacySurfaces(root: string, scope: 'project' | 'user'): string[]; /** Remove only old marker blocks; callers retain unrelated content and keys. */ export declare function removeLegacyManagedBlocks(content: string): string; /** Recover a YAML file corrupted by the historical HTML comment installer. */ export declare function deCorruptAiderYaml(content: string): string; export declare function migrateLegacyArtifacts(root: string, scope: 'project' | 'user', options?: { dryRun?: boolean; removeLegacy?: boolean; /** Called before a verified legacy artifact is changed or removed. */ beforeWrite?: (path: string) => void; }): LegacyMigrationResult; //# sourceMappingURL=migration.d.ts.map