type AnyFunction = (...args: never[]) => void; type FunctionObject = Record; declare const mergeFunctions: (...fns: Fn[]) => (...args: Parameters) => void; type MergedFunctionObject = { [Key in keyof Obj]: ReturnType>; }; /** * Merges two objects whose values are functions. * For each key, if both objects define a function, the resulting function * will call them in sequence with the same arguments. * @returns A new object where each key maps to a merged function. * @example * const obj1 = { onClick: () => console.log("A") }; * const obj2 = { onClick: () => console.log("B") }; * const merged = mergeFunctionObjects(obj1, obj2); * merged.onClick(); // Logs "A" then "B" */ export declare const mergeFunctionObjects: (object1: Obj, object2: Obj) => MergedFunctionObject; export {};