import type { JournalLine } from "./types.js"; export declare class Journal { readonly filePath: string; private entries; private stream; constructor(filePath: string); init(): Promise; append(entry: JournalLine): void; appendLog(message: string): void; getCachedResult(agentIndex: number): unknown | undefined; get length(): number; /** Count of agent entries (excluding log entries) */ get agentEntryCount(): number; /** Remove the agent_failed entry for a given agent index (for retry support) */ removeFailedEntry(agentIndex: number): void; close(): Promise; static load(filePath: string): Promise; }