/** * Custom JSX runtime for our TUI framework. * This is what the TypeScript compiler calls when it sees JSX. */ import { type VNode, type VNodeType, type Props } from "../core/vnode.js"; import type { Style } from "../core/cell.js"; import type { LayoutProps, InputElementProps, SelectElementProps, OptionElementProps } from "../core/props.js"; export type { VNode }; interface BoxProps extends LayoutProps { children?: unknown; } interface TextProps { style?: Style; children?: unknown; } export declare function jsx(type: VNodeType, props: Props & { children?: unknown; }): VNode; export declare function jsxs(type: VNodeType, props: Props & { children?: unknown; }): VNode; export declare const jsxDEV: typeof jsx; export declare function Fragment(props: { children?: VNode[]; }): VNode; export declare namespace JSX { interface IntrinsicElements { box: BoxProps; text: TextProps; input: InputElementProps; select: SelectElementProps & { children?: unknown; }; option: OptionElementProps & { children?: unknown; }; fragment: { children?: unknown; }; } interface Element extends VNode { } } //# sourceMappingURL=jsx-runtime.d.ts.map