import type { SqlClient, VersionDiffEntry } from "../../types.js"; /** * Run the actual diff SQL: two visible-entry CTEs, FULL OUTER JOIN by path, * filter out equal rows. Returns rows already mapped to `VersionDiffEntry` * plus the encoded-ltree path of the last row, suitable as the next * keyset-pagination cursor. * * When `includeContent` is true, LEFT JOINs `fs_blobs` on both sides and * populates `beforeContent` / `afterContent` on each entry. The join is * restricted to changed paths (already filtered by the equal-row WHERE * clause) so identical files never touch the blob table. */ export declare const fetchDiff: (ctx: import("./context.js").FilesystemOpsContext, tx: SqlClient, ourId: number, theirId: number, scopeLtree: string, page: { cursor: string | null; limit: number; } | null, includeContent?: boolean) => Promise<{ entries: VersionDiffEntry[]; lastLtree: string | null; }>; //# sourceMappingURL=fetch-diff.d.ts.map