type PropsOf<T extends React.ElementType> = React.ComponentPropsWithRef<T>;
type InputProps<T extends React.ElementType> = PropsOf<T> | ((otherProps: PropsOf<T>) => PropsOf<T>) | undefined;
/** @see https://foxact.skk.moe/merge-props */
declare function mergeProps<T extends React.ElementType>(propsArray: Array<InputProps<T>>): PropsOf<T>;
declare function mergeProps<T extends React.ElementType>(...props: Array<InputProps<T>>): PropsOf<T>;

export { mergeProps };
