/**! * @license Hiroshi JS | Copyright (c) Kato83. * https://github.com/kato83/hiroshi/blob/master/LICENSE.txt */ import { JSX as JSXInternal } from './jsx'; declare namespace Hiroshi { /** * Build element. * @param nodeName element name or Component function * @param attributes attributes * @param children rest parameter children */ const createElement: (nodeName: string | ((props: any) => JSX.Element), attributes: { [p: string]: unknown; } | null, ...children: any[]) => JSX.Element; export import h = Hiroshi.createElement; export import JSX = JSXInternal; /** * create document fragment. */ const Fragment: () => () => DocumentFragment; const createRef: (initialVale?: T | undefined) => { current: T | undefined; }; /** * apply element and mount. * @param node * @param entryPoint Output location for the object passed in the node argument. */ const render: (node: JSX.Element, entryPoint?: HTMLElement) => Node; } export default Hiroshi; export import createRef = Hiroshi.createRef; export import render = Hiroshi.render; export import Fragment = Hiroshi.Fragment; export declare function createElement(nodeName: string | ((props: any) => JSXInternal.Element), attributes?: ({ [p: string]: unknown; } | null), ...children: any[]): JSXInternal.Element; export declare function h(nodeName: string | ((props: any) => JSXInternal.Element), attributes?: ({ [p: string]: unknown; } | null), ...children: any[]): JSXInternal.Element; export declare namespace createElement { export import JSX = Hiroshi.JSX; } export declare namespace h { export import JSX = Hiroshi.JSX; }