/*! * Based on work from * https://github.com/Palindrom/JSONPatchOT * (c) 2017 Tomek Wytrebowicz * * MIT license * (c) 2022 Jacob Wright * * * NOTE: using /array/- syntax to indicate the end of the array makes it impossible to rebase arrays correctly in all */ import type { JSONPatchCustomTypes, JSONPatchOp } from './types'; /** * Transform an array of JSON Patch operations against another array of JSON Patch operations. Returns a new array with * rebased operations. Operations that do not change are left, while operations that do change are cloned, making the * results of this function immutable. */ export declare function rebasePatch(ops: JSONPatchOp[], overOps: JSONPatchOp[], types?: JSONPatchCustomTypes): JSONPatchOp[];