import React from 'react'; type ExtendedProps = OverrideProps & Omit; type ElementType = keyof JSX.IntrinsicElements | React.JSXElementConstructor; type PropsOf = JSX.LibraryManagedAttributes>; type ComponentProp = { component?: C; }; type InheritedProps = ExtendedProps, Props>; export type PolymorphicRef = C extends React.ElementType ? React.ComponentPropsWithRef['ref'] : never; export type PolymorphicComponentProps = C extends React.ElementType ? InheritedProps> & { ref?: PolymorphicRef; } : Props & { component: React.ElementType; }; export declare function createPolymorphicComponent>(component: any): ((props: PolymorphicComponentProps) => React.ReactElement) & Omit & Omit, "component" | keyof Props> & { ref?: any; }) | (Props & { component: React.ElementType; })>, never> & StaticComponents; export {}; //# sourceMappingURL=create-polymorphic-component.d.ts.map