import type { TRet } from "../deps"; import type { NJSX } from "./types"; declare global { namespace JSX { type Element = JSXElement | Promise; interface IntrinsicElements extends NJSX.IntrinsicElements { [k: string]: { children?: JSXNode; [k: string]: TRet; }; } interface ElementChildrenAttribute { children: EObject; } } } export { escapeHtml, isValidElement, options, type RenderHTML, renderToHtml, renderToString, type TOptionsRender, toStyle, } from "./render"; export { Helmet, type HelmetRewind } from "./helmet"; export * from "./hook"; export * from "./types"; export * from "./htmx"; export * from "./stream"; export type EObject = {}; type Merge = { [K in keyof (A & B)]: (K extends keyof B ? B[K] : (K extends keyof A ? A[K] : never)); }; export type JSXProps

= Merge<{ children?: JSXNode; }, P>; export type JSXNode = JSXNode[] | JSXElement | Promise> | string | number | boolean | null | undefined; export declare const dangerHTML = "dangerouslySetInnerHTML"; export type JSXElement = { type: string | FC; props: T | null | undefined; key: number | string | null; }; /** * Function Component (FC). * @example * const Home: FC<{ title: string; }> = (props) => { * return

{props.title}

* } */ export type FC = (props: JSXProps) => TRet; /** * Fragment. * @example * const Home: FC<{ title: string; }> = (props) => { * return

{props.title}

* } */ export declare const Fragment: FC; export declare function n(type: string, props?: NJSX.HTMLAttributes | null, ...children: JSXNode[]): JSXElement; export declare function n(type: FC, props?: T | null, ...children: JSXNode[]): JSXElement | null; export declare namespace n { var Fragment: FC; } export { n as h }; /** * Client interactive. * @deprecated * use Helmet instead. * @example * ```jsx * const Home = () => { * return ( * *

hey

*
* ) * } * ``` */ export declare const Client: FC<{ src: string; footer?: boolean; id?: string; type?: string; }>; /** * Script Component. * @example * ```jsx * const Home = () => { * return ( * <> * * * *

hello

* * ) * } * ``` */ export declare const Script: FC; /** * Style Component. * @example * ```jsx * const Home = () => { * return ( * <> * * * *

hello

* * ) * } * ``` */ export declare const Style: FC;