import { ElementType, FC, ComponentProps, JSX } from 'react'; import { Interpolation } from '@nex-ui/system'; type Overwrite = Omit & T; interface NexComponent extends FC, { as?: ElementType; sx?: Interpolation; }>> { (props: Overwrite, { as?: E; sx?: Interpolation; }>): JSX.Element; } type HTMLNexComponents = { [Tag in keyof JSX.IntrinsicElements]: NexComponent; }; interface CreateNexComponent { (component: C): NexComponent; } interface NexFactory extends HTMLNexComponents, CreateNexComponent { } export type { CreateNexComponent, HTMLNexComponents, NexComponent, NexFactory };