/** * Migration Manager - Handles migration from legacy structure to portfolio structure */ import { PortfolioManager } from './PortfolioManager.js'; import { ElementType } from './types.js'; import { FileLockManager } from '../security/fileLockManager.js'; import { FileOperationsService } from '../services/FileOperationsService.js'; export interface MigrationResult { success: boolean; migratedCount: number; errors: string[]; backedUp: boolean; backupPath?: string; } export declare class MigrationManager { private portfolioManager; private fileLockManager; private fileOperations; constructor(portfolioManager: PortfolioManager, fileLockManager: FileLockManager, fileOperationsService: FileOperationsService); /** * Check if migration is needed */ needsMigration(): Promise; /** * Perform migration from legacy to portfolio structure */ migrate(options?: { backup?: boolean; }): Promise; /** * Migrate a single persona file */ private migratePersona; /** * Create backup of legacy personas */ private createBackup; /** * Get migration status report */ getMigrationStatus(): Promise<{ hasLegacyPersonas: boolean; legacyPersonaCount: number; portfolioExists: boolean; portfolioStats: Record; }>; } //# sourceMappingURL=MigrationManager.d.ts.map