import { SecurityLevel } from "../types/cia"; /** * Utility functions for security level calculations and conversions * * ## Business Perspective * * These utilities provide a single source of truth for converting between * different security level representations (string, numeric, enum) and calculating * values derived from security levels. 🔒 * * Centralizing these calculations ensures consistent security level interpretation * across business impact analysis, compliance mapping, and risk assessment. */ /** * Map security levels to numeric values for calculations */ export declare const SECURITY_LEVEL_VALUES: Record; /** * Get numeric value for a security level * * @param level - Security level or string representation * @returns Numeric value (0-4) */ export declare function getSecurityLevelValue(level: SecurityLevel | string): number; /** * Get security level from numeric value * * @param value - Numeric value (0-4) * @returns Corresponding security level */ export declare function getSecurityLevelFromValue(value: number): SecurityLevel; /** * Calculate overall security level from individual CIA components * * @param availabilityLevel - Availability security level * @param integrityLevel - Integrity security level * @param confidentialityLevel - Confidentiality security level * @param strategy - Calculation strategy ('min', 'max', 'avg', 'weighted') * @returns Calculated overall security level */ export declare function calculateOverallSecurityLevel(availabilityLevel: SecurityLevel, integrityLevel: SecurityLevel, confidentialityLevel: SecurityLevel, strategy?: 'min' | 'max' | 'avg' | 'weighted'): SecurityLevel; /** * Get normalized value (0-100) for a security level * Used for visualization and progress indicators * * @param level - Security level * @returns Normalized value between 0-100 */ export declare function getNormalizedSecurityValue(level: SecurityLevel): number; /** * Compare two security levels * * @param levelA - First security level * @param levelB - Second security level * @returns -1 if A < B, 0 if A = B, 1 if A > B */ export declare function compareSecurityLevels(levelA: SecurityLevel, levelB: SecurityLevel): number; //# sourceMappingURL=levelValuesUtils.d.ts.map