import type { ComponentPropsWithoutRef, ElementType, FC, PropsWithChildren, ReactElement, Ref } from 'react'; export type AsProp = { as?: C; }; export type PolymorphicComponentProps = PropsWithChildren> & Omit, keyof (AsProp & Props)>; export type PolymorphicComponent = { (props: PolymorphicComponentProps & { ref?: Ref; }): ReactElement | null; }; export type PolymorphicProps = { className?: string; ref?: Ref; }; export declare const Polymorphic: FC>;