/** * Graph Comparator * * Compares the current generated graph with the saved (blessed) graph. * Used in validate mode to ensure developers have updated the graph file. */ import type { EnhancedGraph } from './graph-sorter'; /** * Difference between two graphs */ export interface GraphDiff { added: string[]; removed: string[]; modified: { project: string; addedDeps: string[]; removedDeps: string[]; levelChanged: { from: number; to: number; } | null; }[]; } /** * Comparison result */ export interface ComparisonResult { identical: boolean; diff: GraphDiff; summary: string; } /** * Compare two graphs and return the differences * * @param current - Currently generated graph * @param saved - Previously saved (blessed) graph * @returns Comparison result with detailed diff */ export declare function compareGraphs(current: EnhancedGraph, saved: EnhancedGraph): ComparisonResult;