import type { ForwardRef, InfernoNode, ParentDOM, Ref, Refs, VNode } from './types.js'; import { ChildFlags, VNodeFlags } from 'inferno-vnode-flags'; import { type Component, type ComponentType } from './component.js'; export declare function newVNode
(flags: VNodeFlags, type: string, className?: string | null, children?: InfernoNode, props?: Readonly
| null, key?: string | number | null, ref?: Ref | Refs
| null): VNode; /** * @deprecated Use newVNode, its flags include the child bit: `VNodeFlags.HasTextChildren` for `ChildFlags.HasTextChildren` and so on. */ export declare function createVNode
(flags: VNodeFlags, type: string, className?: string | null, children?: InfernoNode, childFlags?: ChildFlags, props?: Readonly
| null, key?: string | number | null, ref?: Ref | Refs
| null): VNode; export declare function newComponentVNode
(flags: VNodeFlags, type: Function | ComponentType
| Component
| ForwardRef
, props?: Readonly
| null, key?: null | string | number, ref?: Ref | Refs
| null): VNode; /** * @deprecated Use newComponentVNode, its flags of a known component type include `VNodeFlags.HasInvalidChildren`. */ export declare function createComponentVNode
(flags: VNodeFlags, type: Function | ComponentType
| Component
| ForwardRef
, props?: Readonly
| null, key?: null | string | number, ref?: Ref | Refs
| null): VNode; export declare function newTextVNode(text?: string | boolean | null | number, key?: string | number | null): VNode; /** * @deprecated Use newTextVNode, it takes the same arguments. */ export declare function createTextVNode(text?: string | boolean | null | number, key?: string | number | null): VNode; export declare function newFragment(flags: VNodeFlags, children: any, key?: string | number | null): VNode; /** * @deprecated Use newFragment, its flags are `VNodeFlags.Fragment` and the child bit, `VNodeFlags.HasTextChildren` for `ChildFlags.HasTextChildren` and so on. */ export declare function createFragment(children: any, childFlags: ChildFlags, key?: string | number | null): VNode; export declare function normalizeProps(vNode: VNode): VNode; export declare function directClone(vNodeToClone: VNode): VNode; export declare function mustCloneVNode(vNode: VNode, lastVNode: VNode | null | undefined): boolean; export declare function createVoidVNode(): VNode; export declare function createPortal(children: any, container: ParentDOM): VNode; export declare function _normalizeVNodes(nodes: any[], result: VNode[], index: number, currentKey: string): void; export declare function getFlagsForElementVnode(type: string): VNodeFlags; export declare function normalizeChildren(vNode: VNode, children: any): VNode; export declare function normalizeRoot(input: any, lastInput?: VNode | null): VNode;