/** * Graph Loader * * Handles loading and saving the blessed dependency graph file. * The graph is stored at architecture/dependencies.json in the workspace root. */ import type { EnhancedGraph } from './graph-sorter'; /** * Default path for the dependencies file (relative to workspace root) */ export declare const DEFAULT_GRAPH_PATH = "architecture/dependencies.json"; /** * Load the blessed graph from disk * * @param workspaceRoot - Absolute path to workspace root * @param graphPath - Relative path to graph file (default: .graphs/dependencies.json) * @returns The blessed graph, or null if file doesn't exist */ export declare function loadBlessedGraph(workspaceRoot: string, graphPath?: string): EnhancedGraph | null; /** * Save the graph to disk * * @param graph - The graph to save * @param workspaceRoot - Absolute path to workspace root * @param graphPath - Relative path to graph file (default: .graphs/dependencies.json) */ export declare function saveGraph(graph: EnhancedGraph, workspaceRoot: string, graphPath?: string): void; /** * Check if the graph file exists */ export declare function graphFileExists(workspaceRoot: string, graphPath?: string): boolean;