/** * Graph Exporter * * Export dependency graphs to various formats. */ import type { DependencyGraph } from './dependency-graph.js'; import type { ExportFormat } from './graph-types.js'; /** * GraphExporter handles converting dependency graphs to external formats. * * @since v1.48.0 */ export declare class GraphExporter { private graph; constructor(graph: DependencyGraph); /** * Export the graph to the specified format */ export(format: ExportFormat): string; /** * Export to DOT format (Graphviz) */ private exportDot; /** * Export to Mermaid format (markdown) */ private exportMermaid; /** * Export to JSON format */ private exportJson; /** * Generate an HTML report with embedded SVG */ exportHtml(title?: string): string; /** * Escape special characters for DOT format */ private escapeString; /** * Escape HTML entities */ private escapeHtml; /** * Sanitize a label for Mermaid output to prevent XSS */ private sanitizeMermaidLabel; /** * Sanitize an ID for Mermaid (no spaces or special chars) */ private sanitizeId; } //# sourceMappingURL=graph-exporter.d.ts.map