import type { DimensionStatus, Finding, HealthSnapshot } from './types.js'; /** * 算总 score (基于所有 dimension 的 findings) */ export declare function computeHealthScore(dimensions: DimensionStatus[]): number; /** * 选 "今日 #1" — 最该 surface 的 1 个 finding (PRD §3.2 治信息过载) * * 选择策略 (按优先级): * 1. 最严重 critical (score_deduction 最高) * 2. 如果有 fix_free_allowed=true 的 critical, 优先选可执行的 (用户能立刻动作) * 3. 否则取所有 findings 中 score_deduction 最高的 */ export declare function selectTopFocus(dimensions: DimensionStatus[]): Finding | null; /** * 加载健康度历史 (用于 trend 计算) */ export declare function loadHealthHistory(filePath?: string): Promise; /** * Append 一条健康度 snapshot */ export declare function appendHealthSnapshot(snap: HealthSnapshot, filePath?: string): Promise; /** * 算 trend (vs 上次 snapshot) */ export declare function computeTrend(currentScore: number, historyPath?: string): Promise; //# sourceMappingURL=score.d.ts.map