type JournalEntry = { id: string; payload: T; }; /** Persists channel messages, their dispatch receipts, and optional platform cursors. */ export declare class ChannelMessageJournal { private readonly scope; private readonly cursors; private readonly queue; private lastPrunedAt; constructor(channel: string, scope: string); cursor(): Cursor | undefined; accept(entries: JournalEntry[], cursor?: Cursor): string[]; pending(limit?: number): Array & { enqueuedAt: number; }>; begin(id: string, replayable?: boolean): boolean; finish(id: string, outcome: 'completed' | 'interrupted'): void; finishBatch(entries: ReadonlyArray<{ id: string; outcome: 'completed' | 'interrupted'; }>): void; recoverInterrupted(): number; } export {};