import type { Gate, HealthGrade, RunArtifact } from "./types.js"; export interface HistoryEntry { date: string; targetId: string; healthScore: number; grade: HealthGrade; toolCount: number; promptCount: number; resourceCount: number; gate: Gate; } export interface HistoryFile { version: 1; entries: HistoryEntry[]; } export interface TrendInfo { current: HistoryEntry; previous?: HistoryEntry; direction: "up" | "down" | "stable" | "new"; delta: number; } export declare function defaultHistoryPath(cwd?: string): string; export declare function readHistory(historyPath?: string): Promise; export declare function appendHistory(entry: HistoryEntry, historyPath?: string): Promise; export declare function buildHistoryEntry(artifact: RunArtifact): HistoryEntry; export declare function getTrend(targetId: string, history: HistoryFile): TrendInfo | null; export declare function renderTrendLabel(trend: TrendInfo): string;