import type { PerfRisk, PerfOverallRisk, PerformanceAnalysisResult, PerfRiskPattern, Spec } from '../types/index.js';
export declare const RISK_PATTERNS: PerfRiskPattern[];
/**
 * Analyze text against the risk patterns and return all detected risks.
 * Each pattern is checked independently; negate keywords suppress a match.
 */
export declare function analyzeText(text: string, patterns: PerfRiskPattern[]): PerfRisk[];
/**
 * Compute overall risk level from a list of detected risks.
 * 'high' if any high-severity, 'medium' if any medium, 'low' if any low, 'none' if empty.
 */
export declare function computeOverallRisk(risks: PerfRisk[]): PerfOverallRisk;
/**
 * Analyze a spec for performance risks.
 * Combines spec title with the raw markdown content for analysis.
 */
export declare function analyzeSpecPerformance(spec: Spec, specContent: string): PerformanceAnalysisResult;
//# sourceMappingURL=performance-analyzer.d.ts.map