/** * session-changes.ts * * Pure computation for `WorkspaceCheckpointManager.sessionChanges`, the * aggregate file changes a single session made, joined over its * sessionId-stamped checkpoints. Split out of manager.ts (at the 800-line cap) * as a self-contained helper; the manager calls it while holding its index * lock, so the caller, not this function, is responsible for serialization. */ import type { SideGitRunner } from './side-git.js'; import type { WorkspaceCheckpoint, CheckpointSessionChanges } from './types.js'; /** * Compute a session's aggregate change: the net diff from the state BEFORE the * session's earliest checkpoint (that checkpoint's parent, or the empty tree * when the session opened the store) to the session's LATEST checkpoint. A * session with no stamped checkpoints yields `checkpointCount: 0` with an empty * diff (from/to === 'EMPTY'), an honest "nothing recorded", never an error. */ export declare function computeSessionChanges(checkpoints: ReadonlyMap, sideGit: SideGitRunner, sessionId: string): Promise; //# sourceMappingURL=session-changes.d.ts.map