export interface ConfigSparklineRow { counts: number[]; days: string[]; environment: string; } interface SparklinesOk { ok: true; rows: ConfigSparklineRow[]; } interface SparklinesErr { error: string; ok: false; } export type SparklinesResult = SparklinesErr | SparklinesOk; export interface SafetyNudgeDeps { fetchSparklines: () => Promise; key: string; prompt: (message: string) => Promise; warn: (message: string) => void; } export interface SafetyNudgeResult { evals24h: number; proceed: boolean; telemetryFailed: boolean; } /** * Sum the eval counts in today's UTC calendar bucket across all environment * rows in a configSparklines response. Matches the `evals_24h` semantics used * in `qfg cleanup remove` (today-only bucket from the daily-grouped sparkline). */ export declare function countEvalsLast24h(rows: ConfigSparklineRow[]): number; export declare function checkRecentEvalsSafetyNudge(deps: SafetyNudgeDeps): Promise; export {};