import type { PatchId } from "@valbuild/core"; import type { SerializedPatchSet } from "./PatchSets.js"; /** * Patch sets that share a change become one: a change is never split. * * Shared by the two places that move changes between branches a whole set at * a time -- the merge moving the site's conflicting pending changes * (`changesToMove` in `@valbuild/server`) and Publish selected * ({@link selectionClosure}) -- so that they agree on what "a whole set" is. */ export declare function joinSharedChanges(sets: PatchId[][]): Set[]; /** * What publishing `selected` publishes: every change in every patch set a * selected change is in, sets that share a change joined * (valbuild/val `docs/plans/remove-patch-groups.md`, Phase 4, rule 2). * * A patch set is changes that do not apply without each other, so a selection * of part of one cannot be published on its own. What it pulls in is someone * else's as often as not; the caller says whose, before anything moves. * * In the order of `patchIds` -- the chain's -- with nothing that is not in it. */ export declare function selectionClosure(patchSets: SerializedPatchSet, selected: Iterable, patchIds: readonly PatchId[]): PatchId[];