import type { ComponentClass, ElementType, ForwardRefExoticComponent, FunctionComponent, PropsWithoutRef, RefAttributes } from 'react'; export declare function createComponent | ComponentClass

| ElementType, P extends {}>(type: T, useHook: (props: P) => any): ForwardRefExoticComponent & RefAttributes>;