import type { SqlClient, VersionDiffEntry } from "../../types.js"; import { type FilesystemOpsContext } from "./context.js"; /** * COW-shortcut diff for a single version against its parent (or against an * empty tree when `parentVersionId === null`). Reads the "after" side * directly from `fs_entries WHERE version_id = V` — under COW the rows * physically written at V are exactly what changed at V — and resolves * parent visibility for that subset of paths only. Skips the full * visible-tree CTE that `fetchDiff` runs on both sides. * * Supports keyset pagination by encoded ltree path (`page.cursor`) and an * optional `pathsOnly` projection that omits shape columns for cheaper * scans. When `includeContent` is on (and `pathsOnly` is off), LEFT JOINs * `fs_blobs` on both sides and returns text content on each entry. */ export declare const fetchVersionChanges: (ctx: FilesystemOpsContext, tx: SqlClient, versionId: number, parentVersionId: number | null, scopeLtree: string, page: { cursor: string | null; limit: number; } | null, pathsOnly: boolean, includeContent?: boolean) => Promise<{ entries: VersionDiffEntry[]; lastLtree: string | null; }>; //# sourceMappingURL=fetch-version-changes.d.ts.map