import type { ExperimentFileSystem, JournalEntry } from "../types.js";
export declare class ExperimentJournal {
    private readonly journalPath;
    private readonly fs;
    constructor(journalPath: string, fs: ExperimentFileSystem);
    init(): Promise<void>;
    log(entry: JournalEntry): Promise<void>;
    readAll(): Promise<JournalEntry[]>;
    updateLast(updates: Partial<JournalEntry>): Promise<JournalEntry | null>;
    retainLatestNewEntry(previousLength: number): Promise<JournalEntry | null>;
    removeNewEntries(previousLength: number): Promise<void>;
    private publish;
    private assertRegularPath;
    format(): Promise<string>;
}
export declare function baselineFromEntry(entry: JournalEntry): Record<string, number> | null;
