/**
 * Assign properties from `U` to `T`, excluding properties that already exist in `T`.
 *
 * @public
 */
type Assign<T extends object, U extends object> = Omit<T, keyof U> & U;
/** @public */
type EmptyProps = object;
/** @public */
type TagType = keyof React.JSX.IntrinsicElements;
/** @public */
type ComponentType<P = any> = React.FunctionComponent<P> | React.ComponentClass<P> | React.ExoticComponent<P>;
/** @public */
type ElementType<P = any> = TagType | ComponentType<P>;
/**
 * Resolves the props of a polymorphic component: the props of the element/component passed to `as`
 * (defaulting to the component's own element), with the component's own props assigned on top.
 *
 * @public
 */
type Props<P extends EmptyProps, E extends ElementType<P>> = Assign<E extends TagType ? React.JSX.IntrinsicElements[E] : React.ComponentProps<E>, P & {
  as?: E;
}>;
export { Props as a, EmptyProps as i, ComponentType as n, TagType as o, ElementType as r, Assign as t };
//# sourceMappingURL=component-DVlwaWB-.d.ts.map