/** * @function replaceInUniqueArray * @param {T[]} data - An array of objects. * @param {T} entry - The object to replace with. * @param {getUniqueMethod: (entry: T) => unknown} [getUniqueMethod] - Method to get the unique value of an entry. * @description - Replaces an item of an Array. * @example Example replace an entry of an Array. Where the key is unique and the item will only be replaced if matched with existing. * const data = [{key: 'myKey', value:'initialValue'}]; * const entry = {key: 'myKey', value: 'replacedValue'}; * const newDataSet = replaceInUniqueArray(data, entry, x => x.key === key); */ export declare function replaceInUniqueArray(data: T[], entry: T, getUniqueMethod: (entry: T) => unknown): T[];