/** * Line-level 3-way merge for Source text: base (the text both sides started * from), ours, theirs. Regions of the base that only one side changed take * that side; a region both sides changed merges only when both made the * same change, otherwise it is a conflict — reported, never written as * markers (the callers decide what a conflict means for them). As in git, * two changes that touch without an unchanged line between them conflict. * * Built on jsdiff's array diff (browser-safe under every bundler); the * region walk is the classic diff3 algorithm. */ export type Merge3Result = { ok: true; text: string; } | { ok: false; conflicts: number; }; export declare const merge3: (base: string, ours: string, theirs: string) => Merge3Result; //# sourceMappingURL=merge.d.ts.map