/**
 * Scores a dream's changeset against what the eval fixture calls for.
 * Recall checks (did it correct, merge, capture, demote) and precision checks
 * (did it leave correct memory alone, did every claim carry evidence).
 */
import type { DreamChange } from "./dream-adapter.js";
import { type EvalFixture } from "./fixture.js";
export interface EvalCheck {
    name: string;
    kind: "recall" | "precision";
    ok: boolean;
    detail: string;
}
export interface EvalScore {
    checks: EvalCheck[];
    passed: number;
    total: number;
    ok: boolean;
    changes: number;
}
/**
 * Pulls the change list out of whatever the dream handed back: a changeset,
 * a `{ changeset }` wrapper (DreamResult or the dreams/<runId>.json record),
 * or a bare array.
 */
export declare function extractChanges(value: unknown): DreamChange[];
/** The newest `dreams/<runId>.json` for the project, parsed, or null. */
export declare function readLatestDream(store: string, project: string): unknown;
/**
 * `budgetBefore` is the fixture's injected size before the dream ran; pass it
 * when the dream ran in apply mode, since truths.md has changed by then.
 */
export declare function scoreChanges(changes: DreamChange[], fixture: EvalFixture, budgetBefore?: import("../budget.js").BudgetState): EvalScore;
export declare function formatScore(score: EvalScore): string;
