import { ComponentClass, ReactElement, ValidationMap, WeakValidationMap, } from 'react'; interface React18FunctionComponent

{ (props: P, context?: any): ReactElement | null; propTypes?: WeakValidationMap

| undefined; contextTypes?: ValidationMap | undefined; defaultProps?: Partial

| undefined; displayName?: string | undefined; } /** * React 18 slightly modifies the typing of `FunctionComponent`. * This discrepancy causes issues with checking for anchor-link * inferred polymorphic components. * * @deprecated * This should be removed when we upgrade to React 18 */ export type React18ChildlessComponentType

= | ComponentClass

| React18FunctionComponent

;