import { type JSX } from 'react'; import type { dia } from '@joint/core'; /** * Convert JSX element to JointJS markup. * @param element JSX element. * @returns JointJS markup. * * This generate just static markup from JSX, it doesn't support dynamic components and hooks. * @example * ```tsx * function CustomComponent(props: Readonly) { * return
{props.children}
; * } * const markup = jsxToMarkup( * * Hello * * ); * ``` */ export declare function jsx(element: JSX.Element): dia.MarkupJSON;