import { type DispatchedAuthorization, type ExecutionJournal, type JournalRecord, type OpenAttempt } from "./ExecutionJournal.js"; /** The most a single record may be, so one attempt cannot fill the volume. */ export declare const MAX_RECORD_BYTES: number; export interface FileExecutionJournalOptions { /** How many days of files to read back at start; older files are left alone. */ readonly retainDays?: number; readonly clock?: () => Date; } /** * The journal as append-only JSONL, one file per UTC day, each record * flushed to the device before the call returns: an attempt is on disk * before the provider is touched, or the append throws and nothing is * dispatched. The directory is created private to this process, a path that * is not a regular file is refused, and a record larger than the bound is * refused rather than truncated. * * What it is not: replicated. A pod that loses its volume loses its open * attempts, which the deployment answers with a per-pod claim and the * authority's own lease recovery. */ export declare class FileExecutionJournal implements ExecutionJournal { private readonly directory; private readonly clock; private readonly retainDays; private handle; constructor(directory: string, options?: FileExecutionJournalOptions); append(record: JournalRecord): Promise; openAttempts(): Promise; authorizationsOf(intentId: string): Promise; dispatchedUnder(idempotencyKey: string): Promise; close(): void; /** Every record in the retained files, oldest day first; a line that is not one is skipped. */ private records; /** The retained days present in the directory, oldest first. */ private days; /** The day's file, opened for appending only, private to this process. */ private fileFor; private static day; } //# sourceMappingURL=FileExecutionJournal.d.ts.map