import { Attributes, createElement, Element, html } from './src/template.js';
import { escape, escapeAttribute, safe, safeString } from './src/utils.js';
import './src/optimize-tsx.js';
// global JSX types, a reference path to a .d.ts would be dropped from the emitted jsx-runtime.d.ts
import './src/elements.js';
export { createElement, html } from './src/template.js';
export { escape, escapeAttribute, safeString, safe } from './src/utils.js';
export function jsx(element: Element, attributes?: Attributes | string | null) {
return { render: element, attributes };
}
export function jsxs(element: Element, attributes?: Attributes | string | null) {
return { render: element, attributes };
}
jsx.createElement = createElement;
jsx.html = html;
jsx.escape = escape;
jsx.escapeAttribute = escapeAttribute;
jsx.safeString = safeString;
jsx.safe = safe;