import type { VersionDiffEntry, VersionDiffOptions } from "../../types.js"; import { type FilesystemOpsContext } from "./context.js"; /** * Compare the visible trees of two versions of this version root, both * addressed by numeric `versionId` as returned by `listHistory()`. * * `before` is `from`'s entry; `after` is `to`'s — reading "what changes if * `from` became `to`?" gives the natural interpretation. Like * `versionDiff(versionId)` this bypasses the label resolver, so either side * may be a deleted-but-retained version (e.g. one displaced by * `promoteTo(label, { dropPrevious: true })` under * `historyRetention: "retain"`); unlike it, the pair is unrestricted — any * two versions compare, adjacent or not, related or not. Equality is over * `node_type`, `blob_hash`, `mode`, and `symlink_target`; `mtime`, * `size_bytes`, and `created_at` are not part of the comparison. * * If `opts.path` is provided, the comparison is scoped to that user path * and its descendants. Tombstones in either version present as `null` for * that side. */ export declare const diffVersions: (ctx: FilesystemOpsContext, from: number, to: number, opts?: VersionDiffOptions) => Promise; //# sourceMappingURL=diff-versions.d.ts.map