import type { DimensionResult } from '../types.js'; /** * 解析 npm audit --json 产出,按漏洞 severity 加权扣分。 * score = max(0, 100 - Σ(count × deduction));critical -30 / high -10 / moderate -5 / low -2 / info 0。 * 状态分级:>=80 pass,[60,80) warn,<60 fail(对齐 security 硬否决线 60)。 * 文件缺失 / 解析失败 / 无 metadata / 字段类型异常 / 超大 → na。 */ export declare function collectSecurity(auditJsonPath: string): DimensionResult;