/// type Attributes = JSX.IntrinsicElements['div']; type DocumentFragmentConstructor = typeof DocumentFragment; type ElementFunction = ((props?: any) => HTMLElement | SVGElement) & { defaultProps?: any; }; declare global { namespace JSX { interface Element extends HTMLElement, SVGElement, DocumentFragment { addEventListener: HTMLElement['addEventListener']; removeEventListener: HTMLElement['removeEventListener']; className: HTMLElement['className']; } } } interface JSXElementClassDocumentFragment extends DocumentFragment, JSX.ElementClass { } interface Fragment { prototype: JSXElementClassDocumentFragment; new (): JSXElementClassDocumentFragment; } export declare const h: (type: DocumentFragmentConstructor | ElementFunction | string, attributes?: Attributes, ...children: Node[]) => Element | DocumentFragment; export declare const Fragment: Fragment; declare const React: { createElement: (type: DocumentFragmentConstructor | ElementFunction | string, attributes?: Attributes, ...children: Node[]) => Element | DocumentFragment; Fragment: Fragment; }; export declare const createElement: (type: DocumentFragmentConstructor | ElementFunction | string, attributes?: Attributes, ...children: Node[]) => Element | DocumentFragment; export default React;