import type { SnapshotCounts, SnapshotManifest } from './snapshot-types.mts'; export type SnapshotBlock = { sessionId: string; path: string; bytes: number; sessions: number; entries: number; }; export type SnapshotRecord = { type: 'session'; session: Record; } | { type: 'entry'; entry: Record; } | { type: 'manifest'; manifest: SnapshotManifest; }; export type SnapshotState = { sessions: number; entries: number; records: number; lastSessionCreatedAt?: number; lastEntryCreatedAt?: number; currentSessionId?: string; }; export declare function snapshotLine(value: unknown): string; export declare function countsFor(block: Pick, bytes: number): SnapshotCounts; export declare function manifestFor(manifest: SnapshotManifest, block: Pick): SnapshotManifest; export declare function parseSnapshotRecord(line: string): SnapshotRecord; export declare function consumeSnapshotRecord(record: SnapshotRecord, state: SnapshotState): void; export declare function assertManifest(manifest: SnapshotManifest, state: SnapshotState): void;