/** * Merges multiple objects into a single object. The resulting object will have the same properties as * the input objects, with values from later objects overwriting earlier ones if there are conflicts. * * @since 1.0.0 * @template T - The type of the object to merge. * @param {T} object - The object to merge other objects into. * @param {...any} sources - Additional objects to merge into the first object. * @returns {T} - The merged object. * @example * * const object1 = { a: [{ b: 2 }, { d: 4 }] }; * const object2 = { a: [{ c: 3 }, { e: 5 }] }; * const result = merge(object1, object2); * console.log(result); // { a: [{ b: 2, c: 3 }, { d: 4, e: 5 }] } * * const object3 = { a: 1, b: 2 }; * const object4 = { b: 3, c: 4 }; * const result2 = merge(object3, object4); * console.log(result2); // { a: 1, b: 3, c: 4 } */ declare const merge: (object: T, ...sources: any) => T; export default merge;