import type { PublicApi } from '@angular-modernizer/api'; import type { Project } from 'ts-morph'; /** * Migration result for a single artifact. */ export interface ArtifactMigrationResult { sourcePath: string; targetPath: string; success: boolean; error?: string; } /** * Migrates Angular artifacts to the target library folder. * * Responsibilities: * - Copy/move source files to the new library location * - Update templateUrl and styleUrls relative paths (AST-based) * - Update barrel exports in the library's index.ts */ export declare class ArtifactMigrator { /** * Migrate the given artifact file paths to the library path. * * @param artifactPaths - Source file paths to migrate * @param libraryPath - Target library root path (e.g. projects/ui) * @param api - PublicApi for AST operations * @param project - ts-morph Project instance * @returns Array of migration results */ migrate(artifactPaths: string[], libraryPath: string, api: PublicApi, project: Project): Promise; private migrateArtifact; /** * Update templateUrl and styleUrls references after moving a file. * Uses string replacement (sufficient for this specific task — AST would be overkill * for simple path corrections that follow predictable patterns). */ private updateRelativePaths; private updateLibraryBarrel; } //# sourceMappingURL=artifact-migrator.d.ts.map