import { DomElement, PrefixedElementTag, Prettify, WithoutChildren, WithoutInnerHTML } from "../types.js"; import { FunctionComponent, VNode, VNodeChildren, VNodePropsTagNameMap } from "./types.js"; import { createElementFromVNode } from "./utils.js"; //#region src/virtual/index.d.ts /** * Creates a VNode with type-safe props. * @param type Element tag name, optionally prefixed with `svg:` or `math:`, or a function component. * @param props Optional props including `class`, `style`, `data`, and `innerHTML` helpers. */ declare function createVNode(type: T, props: Prettify>): VNode>; /** * Creates a VNode with type-safe props and children. * Children arguments are appended after `props.children`, matching `createElement` behavior. */ declare function createVNode(type: T, props?: Prettify> | null, ...children: VNodeChildren[]): VNode>; declare function createVNode(type: FunctionComponent, props: Props | null, ...children: VNodeChildren[]): VNode; /** Shorthand alias for {@link createVNode}. */ declare const h: typeof createVNode; /** Replaces a DOM target's contents with a virtual tree. */ declare function mount(target: DomElement, children: VNodeChildren): void; //#endregion export { createElementFromVNode, createVNode, h, mount }; //# sourceMappingURL=index.d.ts.map