import { ComponentPropsWithRef, ElementType, PropsWithChildren, ReactNode } from 'react'; export type Omit = Pick>; export type ReplaceProps = Omit, P> & P; export interface AsProp { as?: As; } export interface Props extends AsProp { } export interface PolymorphicRefForwardingComponent { (props: PropsWithChildren & P>>, context?: any): ReactNode | null; propTypes?: any; defaultProps?: Partial

; displayName?: string; }