import { Operation } from 'fast-json-patch'; import { DiffOutput, ActionType } from '../types'; /** * Formats the action to have one of `add`, `remove` or `edit` values * @param {String} action The action performed by the diff library * @returns {String} The formatted action output * * @private */ export declare function formatAction(action: string): ActionType; /** * Get the `before` value from the first document * @param firstDocument The first document which we will get the before value from * @param {String} path The path from where we can get the value * @returns The value from the first document * * @private */ export declare function getBeforeValue(firstDocument: any, path: string): any; /** * Get the `after` value * @param diffObject A single diff object * @returns The value that is present inside the second document * * @private */ export declare function getAfterValue(diffObject: Operation): any; /** * Sets the index property in case of an array change * @param changeObject The change object * @param {String} path The original path * * @private */ export declare function setIndex(changeObject: DiffOutput, firstDocument: any, path: string): void; /** * Formats the original diff output * @param {Operation[]} diff The original diff array * @param {*} firstDocument The first document * @returns {DiffOutput[]} The modified diffs array * * @private */ export declare function formatDiffOutput(diffInput: Operation[], firstDocument: any): DiffOutput[]; export declare function getDocumentMajorVersion(document: any): string; export declare function incompatibleDocuments(firstDocument: any, secondDocument: any): boolean;