/** * RiskRating represents the risk assessment details. * Aligned with backend Go struct. */ interface RiskRating { /** Likelihood of the risk occurring (1-5). 0 = not rated. */ likelihood: number; /** Consequence/impact if the risk occurs (1-5). 0 = not rated. */ consequence: number; /** Calculated rating: likelihood × consequence (0-25). 0 = not rated. */ rating: number; /** Optional comment for context */ comment?: string; } type RiskLevel = "unrated" | "low" | "medium" | "high" | "critical"; /** * Get risk level from rating (0-25). * - 0: Unrated * - 1-4: Low * - 5-9: Medium * - 10-16: High * - 17-25: Critical */ declare function getRiskLevelFromRating(rating: number): RiskLevel; /** * Check if a rating is considered "not rated" */ declare function isRatingUnrated(rating: RiskRating | null | undefined): boolean; declare const riskLevelConfig: Record; export { type RiskLevel, type RiskRating, getRiskLevelFromRating, isRatingUnrated, riskLevelConfig };