import type { KernelPaths, RunRecord, TaskRecord } from "./types.js"; export interface ViewRebuildReport { readonly run: RunRecord | null; readonly tasks: readonly TaskRecord[]; readonly run_matches_disk: boolean; readonly task_mismatches: readonly string[]; /** Canonical JSON of rebuilt run (for exact compare tests). */ readonly run_canonical: string | null; } /** * Rebuild run/task derived views from the immutable journal and compare to disk. * Uses last next_run / next_task complete views — no invented defaults. */ export declare function rebuildViewsFromJournal(paths: KernelPaths, runId: string, options?: { readonly write?: boolean; }): ViewRebuildReport; /** Exact byte-equivalent compare of two views (canonical JSON). */ export declare function exactViewEqual(a: unknown, b: unknown): boolean; export declare function viewContentDigest(value: unknown): string;