import type { PerflensConfig } from '../types/index.js';
import type { Finding } from '../ai/schema.js';
export interface PerformanceReport {
    lighthouse: {
        metrics: string;
        report: string;
        analysis: {
            coreWebVitals: string;
            performanceOpportunities: string;
            diagnostics: string;
        };
    };
    codeAnalysis: {
        critical: string[];
        warnings: string[];
        suggestions: string[];
        /** Structured findings — the HTML report renders from these directly */
        findings?: Finding[];
    };
    metadata: {
        timestamp: string;
        duration: number;
        config: PerflensConfig;
    };
}
/**
 * Generates a markdown report from performance analysis data
 * @param {PerformanceReport} data - The performance analysis data to format
 * @returns {string} A formatted markdown report
 */
export declare function generateMarkdownReport(data: PerformanceReport): string;
/**
 * Converts markdown text to HTML with proper formatting and syntax highlighting
 * @param {string} text - The markdown text to convert
 * @returns {string} The converted HTML text
 */
export declare function formatMarkdownToHtml(text: string): string;
/**
 * Saves a performance report in the specified format
 * @param {PerformanceReport} data - The performance analysis data to save
 * @param {'md' | 'html'} format - The output format (markdown or HTML)
 * @param {string} [outputPath] - Optional path to save the report
 * @returns {string} The path where the report was saved
 */
export declare function saveReport(data: PerformanceReport, format?: 'md' | 'html', outputPath?: string): string;
//# sourceMappingURL=output.d.ts.map