/** * Path alias map structure. */ export interface PathAliasMap { [alias: string]: string; } /** * Path alias healing result. */ export interface PathAliasHealingResult { success: boolean; alias_map: PathAliasMap; fixed_errors: number; remaining_errors: number; warnings: string[]; evidence: { grade: 'FACT' | 'INFERRED' | 'CLAIMED'; sources: Array<{ type: 'FILESYSTEM_READ' | 'DB_QUERY' | 'TOOL_OUTPUT'; tool?: string; target?: string; queryId?: string; path?: string; hash?: string; metadata?: Record; }>; description: string; }; } /** * Path alias healing tool. * Automatically fixes path aliases when verifyAdrs reports "src missing" errors. */ export declare class PathAliasHealing { private workspaceRoot; private aliasMapPath; constructor(workspaceRoot: string); /** * Performs path alias healing. * * 1. Runs verifyAdrs to detect "src missing" errors * 2. Reads boundary_report to understand workspace structure * 3. Generates alias map (e.g., "src/path/file.ts" -> "plugin/src/path/file.ts") * 4. Persists alias map * 5. Reruns verifyAdrs to verify fixes */ heal(args?: { pluginId?: string; autoFix?: boolean; validationTools?: any; }): Promise; /** * Detects verifyAdrs errors by running the tool. * Can use ValidationTools if provided, otherwise runs directly. */ detectVerifyAdrsErrors(validationTools?: any): Promise>; /** * Generates alias map from errors and boundary report. */ private generateAliasMap; /** * Persists alias map to disk. */ private persistAliasMap; /** * Loads alias map from disk. */ loadAliasMap(): Promise; /** * Resolves a path using alias map. */ resolvePath(aliasPath: string): Promise; /** * Reruns verifyAdrs after applying alias map. */ private rerunVerifyAdrs; } //# sourceMappingURL=path-alias-healing.d.ts.map