import type { JournalMeta } from '../vcs/oplog-remote.js'; export declare const CHECKPOINT_RETENTION = 8; export interface LedgerPushPayload { repoId: string; previousTail?: string; tailHash: string; format: string; byteLength: number; lineCount: number; checkpoint: string; } export type LedgerPushResult = { ok: true; meta: JournalMeta; } | { ok: false; reason: 'tail-mismatch'; }; export declare function validateJsonl(raw: string): void; export declare class LedgerStore { private readonly dataRoot; constructor(dataRoot: string); private repoRoot; getTail(repoId: string): JournalMeta | null; getCheckpoint(repoId: string, tailHash: string): string | null; /** Client checkpoint GET has no repoId — scan repos (matches MemoryRemoteSprite). */ findCheckpointByHash(tailHash: string): string | null; push(payload: LedgerPushPayload): LedgerPushResult; private trimCheckpoints; } //# sourceMappingURL=ledger-store.d.ts.map