/** * Security Scanner — risk score calculation * @module @skillsmith/core/security/scanner/SecurityScanner.risk-score * * SMI-6033 Wave 4: extracted out of `SecurityScanner.helpers.ts` (which had * grown to 504/500 lines, over this repo's file-length gate, once Wave 4's * `decoyMisdirection` breakdown field/switch-arm/cap/sum entries landed). * This filename intentionally matches the one already referenced by the * separate, still-open SMI-5879 Wave 2 PR (#2192, * `feat/smi-5879-wave2-pattern-port` — see that branch's * `scripts/indexer/smi5879-corroboration.types.ts`, which already names * `packages/core/src/security/scanner/SecurityScanner.risk-score.ts` as its * own planned extraction target for this same function): reusing the name * that PR already committed to avoids a second, differently-named * competing extraction landing later and forcing a rename/merge fight. */ import type { SecurityFinding, RiskScoreBreakdown } from './types.js'; /** * SMI-685: Calculate risk score from findings * SMI-1513: Accounts for confidence levels (low confidence = reduced weight) * Aggregates multiple findings into a risk score from 0-100 */ export declare function calculateRiskScore(findings: SecurityFinding[]): { total: number; breakdown: RiskScoreBreakdown; }; //# sourceMappingURL=SecurityScanner.risk-score.d.ts.map