/**
 * Mermaid Diagram Generator
 *
 * Generates various Mermaid diagrams for enterprise documentation:
 * - System architecture (C4 context)
 * - Feature hierarchy
 * - Team org charts
 * - Module dependencies
 * - Timeline/Gantt charts
 */
import type { EnhancedFeatureSpec } from '../enterprise/spec-loader.js';
import type { ProjectTimeline } from '../enterprise/history-analyzer.js';
import type { RelationshipMap } from '../enterprise/relationship-mapper.js';
import type { RepoAnalysis } from '../intelligent-analyzer/types.js';
export interface MermaidGeneratorOptions {
    projectPath: string;
    projectName: string;
    features?: EnhancedFeatureSpec[];
    timeline?: ProjectTimeline;
    relationships?: RelationshipMap;
    repoAnalyses?: Map<string, RepoAnalysis>;
    teams?: Array<{
        name: string;
        repos: string[];
        members?: string[];
    }>;
}
export interface MermaidGenerationResult {
    diagrams: MermaidDiagram[];
    savedFiles: string[];
}
export interface MermaidDiagram {
    name: string;
    type: DiagramType;
    content: string;
    description: string;
    /** Actual filename (without path) - used for consistent link generation */
    filename?: string;
}
export type DiagramType = 'flowchart' | 'sequence' | 'classDiagram' | 'stateDiagram' | 'erDiagram' | 'gantt' | 'pie' | 'mindmap' | 'timeline' | 'c4Context';
export declare class MermaidGenerator {
    private options;
    constructor(options: MermaidGeneratorOptions);
    /**
     * Generate all diagrams
     *
     * CRITICAL FIX (v1.0.12): Consolidated to single diagrams folder at
     * /internal/architecture/diagrams/ instead of creating duplicate /internal/diagrams/
     * This prevents confusion and ensures all diagrams are in one location.
     */
    generate(): Promise<MermaidGenerationResult>;
    /**
     * Generate feature hierarchy flowchart
     */
    private generateFeatureHierarchy;
    /**
     * Generate team org chart
     */
    private generateTeamOrgChart;
    /**
     * Generate module dependencies graph
     */
    private generateModuleDependencies;
    /**
     * Generate project timeline Gantt chart
     */
    private generateProjectTimeline;
    /**
     * Generate system architecture C4 context diagram
     */
    private generateSystemArchitecture;
    /**
     * Generate feature status pie chart
     */
    private generateFeatureStatusPie;
    /**
     * Generate team-to-feature ownership diagram
     */
    private generateTeamFeatureOwnership;
    /**
     * Generate index file for all diagrams
     *
     * FIX (v1.0.48): Use explicit filename from diagram when available to ensure
     * links match actual saved files. Previously derived filename from display name
     * causing 404s (e.g., "Team Organization" → "team-organization.md" but file was "team-org-chart.md")
     */
    private generateIndex;
    /**
     * Wrap diagram in markdown document
     */
    private wrapDiagram;
    /**
     * Sanitize ID for Mermaid (remove special characters)
     */
    private sanitizeId;
    /**
     * Truncate string to max length
     */
    private truncate;
    /**
     * Get status icon
     */
    private getStatusIcon;
    /**
     * Get event icon
     */
    private getEventIcon;
}
/**
 * Standalone function for quick diagram generation
 */
export declare function generateMermaidDiagrams(options: MermaidGeneratorOptions): Promise<MermaidGenerationResult>;
//# sourceMappingURL=mermaid-generator.d.ts.map