interface Update { (index: number, value: T, list: ArrayLike): T[]; (index: number, value: T): (list: ArrayLike) => T[]; (index: number): { (value: T, list: ArrayLike): T[]; (value: T): (list: ArrayLike) => T[]; }; } /** * Returns a new copy of the array with the element at the provided index * replaced with the given value. * * @param {Number} idx index * @param {*} x The value to exist at the given index of the returned array. * @param {Array} list The source array to be updated. * @return {Array} A copy of `list` with the value at index `idx` replaced with `x`. * @example * * update(1, 11, [0, 1, 2]); //=> [0, 11, 2] * update(1)(11)([0, 1, 2]); //=> [0, 11, 2] */ declare const _default: Update; export default _default;