import type { JSONPatchOp, State } from '../types.js'; /** * Check whether this operation is an add operation of some sort (add, copy, move). */ export declare function isAdd(state: State, op: JSONPatchOp, pathName: 'from' | 'path'): boolean; /** * Transforms an array of ops, returning the original if there is no change, filtering out ops that are dropped. */ export declare function mapAndFilterOps(ops: JSONPatchOp[], iterator: (op: JSONPatchOp, index: number, breakAfter: (keepRest?: boolean) => {}) => JSONPatchOp | JSONPatchOp[] | null): JSONPatchOp[]; /** * Remove operations that apply to a value which was removed. */ export declare function updateRemovedOps(state: State, thisPath: string, otherOps: JSONPatchOp[], isRemove?: boolean, updatableObject?: boolean, opOp?: string, customHandler?: (op: JSONPatchOp) => any): JSONPatchOp[]; export declare function transformRemove(state: State, thisPath: string, otherOps: JSONPatchOp[], isRemove?: boolean): JSONPatchOp[];