import type * as React from 'react'; type Merge = Omit & P2; export type PolymorphicProps = Props & { as?: ElementType; }; export type PolymorphicComponentProps = Merge : ElementType extends React.ElementType ? React.ComponentPropsWithRef : never, PolymorphicProps>; export type PolymorphicComponent = Merge, { (props: PolymorphicComponentProps): React.ReactElement | null; }>; export {};