/** * Risk Scoring Engine * Calculates risk scores and severity levels for scan results */ import { Finding, Severity, FindingCategory } from '../../../types'; /** * Risk Scoring Engine Class */ export declare class RiskScoringEngine { /** * Calculate overall risk score for findings */ calculateRiskScore(findings: Finding[], totalFiles: number): number; /** * Determine risk level from score */ getRiskLevel(score: number): 'safe' | 'low' | 'medium' | 'high' | 'critical'; /** * Get severity distribution */ getSeverityDistribution(findings: Finding[]): Record; /** * Get category distribution */ getCategoryDistribution(findings: Finding[]): Record; /** * Get top affected files */ getTopAffectedFiles(findings: Finding[], limit?: number): Array<{ file: string; count: number; criticalCount: number; }>; /** * Get threat type distribution */ getThreatTypeDistribution(findings: Finding[]): Record; /** * Calculate security posture metrics */ calculateSecurityPosture(findings: Finding[], totalFiles: number, totalLines: number): { score: number; grade: string; findingsPerKLOC: number; criticalRatio: number; }; } export default RiskScoringEngine; //# sourceMappingURL=riskScoring.d.ts.map