/** * Spec 14 R5 — DOT and Mermaid Graph Output Formatting * * Zero rendering dependencies — just string emission. * Produces valid Graphviz DOT and Mermaid graph TD formats. */ import type { CallGraph } from './callGraph.js'; import type { ImportGraph } from './importGraph.js'; export interface DotOptions { /** Graph label */ label?: string; /** Node labels: nodeKey → display label */ nodeLabels?: Map; /** Community assignments for coloring: nodeKey → community ID */ communities?: Map; /** Legend toggle */ legend?: boolean; /** Direction: TD (top-down) or LR (left-right) */ rankdir?: 'TD' | 'LR'; /** Max nodes to include (for large graphs) */ maxNodes?: number; /** Show edge weights */ showWeights?: boolean; /** Context depth (for risk neighborhood) */ depth?: number; } export interface MermaidOptions { /** Graph label */ label?: string; /** Node labels */ nodeLabels?: Map; /** Community assignments for styling */ communities?: Map; /** Max nodes */ maxNodes?: number; /** Show edge weights */ showWeights?: boolean; } /** * Emit a Graphviz DOT-format string for the given call graph. */ export declare function callGraphToDot(graph: CallGraph, options?: DotOptions): string; /** * Emit a Graphviz DOT-format string for the given import graph. */ export declare function importGraphToDot(graph: ImportGraph, options?: DotOptions): string; /** * Emit a Mermaid graph TD string for the given call graph. */ export declare function callGraphToMermaid(graph: CallGraph, options?: MermaidOptions): string; /** * Emit a Mermaid graph TD string for the given import graph. */ export declare function importGraphToMermaid(graph: ImportGraph, options?: MermaidOptions): string; //# sourceMappingURL=outputFormatter.d.ts.map