UNPKG

@paulohenriquevn/m2js

Version:

Transform TypeScript/JavaScript code into LLM-friendly Markdown summaries + Smart Dead Code Detection + Graph-Deep Diff Analysis. Extract exported functions, classes, and JSDoc comments for better AI context with 60%+ token reduction. Intelligent dead cod

46 lines (45 loc) 1.24 kB
import { DependencyGraph } from '../types'; import { DiagramOptions, DiagramResult } from './diagram-types'; /** * Enhanced Mermaid diagram generator with styling and themes */ export declare class MermaidEnhancer { private config; constructor(theme?: DiagramOptions['theme']); /** * Generate enhanced dependency graph with styling */ generateEnhancedDependencyDiagram(graph: DependencyGraph, options: DiagramOptions): DiagramResult; /** * Generate Mermaid configuration header */ private generateMermaidConfig; /** * Generate styled nodes with classification */ private generateStyledNodes; /** * Generate styled edges */ private generateStyledEdges; /** * Classify file type based on name patterns */ private classifyFile; /** * Get arrow style based on import type */ private getArrowStyle; /** * Generate CSS classes for styling */ private generateCSSClasses; /** * Get theme configuration */ private getThemeConfig; /** * Static method for backward compatibility */ static generateEnhanced(graph: DependencyGraph, options?: Partial<DiagramOptions>): string; }