/**
 * Digest summary types — the aggregated trend shape a scheduled sweep
 * formats and delivers.
 *
 * These live in the domain kernel (not in `packages/eval`) so the
 * notification port (`ports/notification.ts`) can describe a digest payload
 * without core depending on eval. The eval digest *engine*
 * (`packages/eval/src/schedules/digest.ts`) computes and re-exports these
 * shapes; the dependency flows inward only (D0002 / D0045).
 */
/** Trend direction for a feature area or overall score. */
export type TrendDirection = "improving" | "regressing" | "stable";
/** Trend analysis for a single feature area. */
export interface AreaTrend {
    /** Feature area name */
    area: string;
    /** Score at the start of the window */
    firstScore: number;
    /** Score at the end of the window */
    lastScore: number;
    /** Number of data points in the window */
    reportCount: number;
    /** Net score change (last - first) */
    scoreDelta: number;
    /** Trend direction */
    trend: TrendDirection;
}
/** The complete digest summary. */
export interface DigestSummary {
    /** Per-area trend breakdown */
    areaTrends: AreaTrend[];
    /** Areas that improved by more than the noise threshold */
    improved: string[];
    /** End of the lookback window (usually "now") */
    lookbackEnd: string;
    /** Start of the lookback window */
    lookbackStart: string;
    /** Overall score delta across the window */
    overallDelta: number;
    /** Overall score at the end of the window */
    overallLatest: number;
    /** Overall trend direction */
    overallTrend: TrendDirection;
    /** Areas that regressed by more than the noise threshold */
    regressed: string[];
    /** Total number of reports in the window */
    reportCount: number;
    /** Areas with score changes within the noise threshold */
    stable: string[];
    /** Total evaluation cost in the window (if available) */
    totalCost?: number;
}
