import type { ReconciliationResult } from '../reconciliation/index.js'; import type { LocalUsageStore, UsageQuery } from '../usage-local/store.js'; import type { DimensionStatus } from './types.js'; export interface UsageDimDeps { store: LocalUsageStore; reconciliations: ReconciliationResult[]; /** * Optional usage-aggregation window override. When provided (e.g. by the * `/skillfm` flow with since_last_report), F3 single-model concentration * check uses this window instead of the default `timeWindow('today')`. * Lets the manual scan reflect the period since the previous report. */ usageWindow?: UsageQuery; } /** * 算用量维度的 findings + status * * 检查项: * F1: 对账偏差 > 15% (medium / severe) — 价表过时 / key 泄漏 / 异常 * F2: 余额耗尽预测 < 3 天 (critical) / < 7 天 (warning) * F3: 单 model 占比 > 80% — 暗示可切 cheaper model (E1 router 候选) * F4: 用量增长 > 上周 1.5x (warning) — 可能你 agent 失控 */ export declare function checkDimensionUsage(deps: UsageDimDeps): DimensionStatus; /** * 只 surface 用 — 拼出主入口"💰 用量"区段的多行 (基于 reconciliation summaries) */ export declare function buildUsageSurfaceLines(reconciliations: ReconciliationResult[]): string[]; //# sourceMappingURL=dimension-1-usage.d.ts.map