import type { SqlClient, VersionDiffEntry } from "../../types.js"; import { type FilesystemOpsContext } from "./context.js"; /** * Single batched query that computes per-version changes for an entire * `listHistory` page. Replaces the N round trips one would make by calling * `fetchVersionChanges` per entry. Uses the COW shortcut on the "after" * side and resolves parent visibility per (owner_version, path). * * Root entries (parent_version_id IS NULL) flow through the same query — * the closure-table join naturally yields no parent rows for them, so all * their writes surface as `added`. * * Returns a map keyed by `versionId` for easy zip-up with the page rows. * Versions in `versionIds` with no changes get an empty array; missing * versions are omitted. */ export declare const fetchPageChanges: (ctx: FilesystemOpsContext, tx: SqlClient, versionIds: number[], scopeLtree: string, pathsOnly: boolean) => Promise>; //# sourceMappingURL=fetch-page-changes.d.ts.map