import React from 'react'; import type { RenderElementProps, RenderLeafProps } from '../types'; /** * This is to allow using the custom element ub:dynamic. This specific tag is picked up by * Page Server and used to perform Dynamic Text Replacement server-side. */ declare global { namespace JSX { interface IntrinsicElements { 'ub:dynamic': React.DetailedHTMLProps & { method: string; wrap: string; parameter: string; }, HTMLElement>; } } } export declare const renderRichTextElement: ({ attributes, children, element, mode }: RenderElementProps) => JSX.Element; export declare const renderRichTextLeaf: ({ attributes, children, leaf }: RenderLeafProps) => JSX.Element;