
import { Props } from "@tenphi/tasty";

//#region src/utils/react/mergeProps.d.ts
type Merge<T> = T extends [infer F, ...infer R] ? F extends undefined ? Merge<R> : F & Merge<R> : T extends [infer L] ? L : unknown;
/**
 * Merges multiple props objects together. Event handlers are chained,
 * classNames are combined, and ids are deduplicated - different ids
 * will trigger a side-effect and re-render components hooked up with `useId`.
 * For all other props, the last prop object overrides all previous ones.
 * @param args - Multiple sets of props to merge together.
 */
declare function mergeProps<T extends (Props | undefined)[], K = Merge<T>>(...args: T): K;
//#endregion
export { mergeProps };
//# sourceMappingURL=mergeProps.d.ts.map