import { Children, ElementAttributesTagNameMap, ElementPrefixedTagNameMap, PrefixedElementTag, Prettify, WithChildren, WithInnerHTML } from "./types.js"; //#region src/index.d.ts /** * Creates a DOM element (HTML, SVG, or MathML) with type-safe attributes and children handling. * @param tag Element tag name, optionally prefixed with `svg:` or `math:` for namespace aware nodes. * @param attributes Optional attribute bag including `class`, `style`, `data` and `innerHTML` helpers. Cannot have children when innerHTML is set. */ declare function createElement(tag: T, attributes: Prettify>): ElementPrefixedTagNameMap[T]; /** * Creates a DOM element (HTML, SVG, or MathML) with type-safe attributes and children handling. * @param tag Element tag name, optionally prefixed with `svg:` or `math:` for namespace aware nodes. * @param attributes Optional attribute bag including `class`, `style`, `data`, and `children` helpers. * @param children Additional child nodes appended after `attributes.children`. */ declare function createElement(tag: T, attributes?: Prettify> | null, ...children: Children[]): ElementPrefixedTagNameMap[T]; /** * Shorthand alias for {@link createElement} to align with JSX/hyperscript expectations. */ declare const h: typeof createElement; //#endregion export { createElement, h }; //# sourceMappingURL=index.d.ts.map