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 // eslint-disable-line @typescript-eslint/no-explicit-any ): ReactNode | null propTypes?: any // eslint-disable-line @typescript-eslint/no-explicit-any defaultProps?: Partial

displayName?: string }