/** * 根据 alias 映射,计算文件路径变更对应的 import 替换对 * * @param oldPath 原始文件绝对路径 * @param newPath 新文件绝对路径 * @param aliasPaths alias prefix → absolutePath 的映射 * @returns 替换对数组 { from, to } */ export declare function computeAliasRewrites(oldPath: string, newPath: string, aliasPaths: Map): { from: string; to: string; }[]; /** * 基于源码文件位置,计算相对路径 import 的替换对 */ export declare function computeRelativeRewrite(importerFile: string, oldPath: string, newPath: string): { from: string; to: string; }; /** * 批量替换源码文件中的 import 路径 */ export declare function applyImportRewrites(aliasPairs: { from: string; to: string; }[], dryRun: boolean, codeScanRoots: string[], relativeAssetMoves?: { oldPath: string; newPath: string; }[]): Promise;