import type { SqlClient, VersionDiffEntry, VersionDiffOptions } from "../../types.js"; import { type FilesystemOpsContext } from "./context.js"; /** * Compute the diff for a single history entry, by numeric `versionId` as * returned by `listHistory()`. Diffs the version against its parent (or * against an empty tree when `parentVersionId IS NULL`). * * Unlike `diff(label)`, this bypasses the label resolver, so it works for * deleted-but-retained versions and for the root entry. Optionally scope to * a subtree with `opts.path`. * * `before` is the parent's entry; `after` is the version's entry — i.e. * "what changed when this version was created". */ export declare const versionDiff: (ctx: FilesystemOpsContext, versionId: number, opts?: VersionDiffOptions) => Promise; export declare function resolveParentVersionId(ctx: FilesystemOpsContext, tx: SqlClient, versionId: number): Promise; //# sourceMappingURL=version-diff.d.ts.map