/** * RiskScore - Value Object * * @remarks * Represents a normalized risk value produced by the core semantic layers. * * - Value range is **0.0 to 1.0** * - `0` = no risk detected * - `1` = maximum risk confidence * * Although this type aliases `number`, it is intentionally defined * as a value object to preserve **semantic meaning**, enforce conceptual clarity, * and stabilize public contracts across layers and SDKs. * * This type MUST NOT be interpreted as a decision signal. * Decisions based on RiskScore belong to higher layers (AAL / SDK). */ /** * RiskScore type - normalized risk value between 0.0 and 1.0 */ export type RiskScore = number; /** * Minimum valid risk score value */ export declare const MIN_RISK_SCORE: RiskScore; /** * Maximum valid risk score value */ export declare const MAX_RISK_SCORE: RiskScore; /** * Creates a valid RiskScore value * * @param value - Numeric value to validate and normalize * @returns Validated RiskScore * @throws {Error} If value is outside valid range [0.0, 1.0] */ export declare function createRiskScore(value: number): RiskScore; /** * Normalizes a risk score to the valid range [0.0, 1.0] * * @param value - Numeric value to normalize * @returns Normalized RiskScore clamped to [0.0, 1.0] */ export declare function normalizeRiskScore(value: number): RiskScore; /** * Checks if a risk score is considered high * * @param score - RiskScore to evaluate * @param threshold - Threshold for high risk (default: 0.7) * @returns true if score >= threshold */ export declare function isHighRiskScore(score: RiskScore, threshold?: number): boolean; /** * Checks if a risk score is considered medium * * @param score - RiskScore to evaluate * @param lowThreshold - Lower threshold (default: 0.3) * @param highThreshold - Upper threshold (default: 0.7) * @returns true if score is in medium range */ export declare function isMediumRiskScore(score: RiskScore, lowThreshold?: number, highThreshold?: number): boolean; /** * Checks if a risk score is considered low * * @param score - RiskScore to evaluate * @param threshold - Threshold for low risk (default: 0.3) * @returns true if score < threshold */ export declare function isLowRiskScore(score: RiskScore, threshold?: number): boolean; //# sourceMappingURL=RiskScore.d.ts.map