import { type FunctionComponent, type PropsWithChildren } from 'react'; import { ComponentTypeDictionary } from '../../factory/types.js'; import type { TextNode, TypedNode } from './types.js'; import { type PropsWithOptionalContext } from '../../context/types.js'; /** * Create a React Component to render an element within a Rich-Text area. * The generated React Component contains the logic to transform the attributes * provided by the Rich Text structured data to the appropriate React * attributes for rendering. * * @param element The HTML element * @param ignoreChildren If set to `true`, it will output a self-closing * element and fully ignoring the children * @param defaultProps Override the default attributes that should always * be applied, the CSS Classess (defined by the * `className` property) will be merged * * @returns The React Component */ export declare function createHtmlComponent(element: E, ignoreChildren?: boolean, defaultProps?: JSX.IntrinsicElements[E] & Record): ({ children, node, ctx, ...props }: PropsWithOptionalContext>) => import("react").JSX.Element; export declare const DefaultTextNode: FunctionComponent>; /** * Default component for Rich Text elements that should not be part of the HTML fragment * and should not be rendered if they are. * * @param param0 The component parameters * @returns The children, if any */ export declare const DefaultNoRenderNode: FunctionComponent>>; /** * A default component dictionary that allows to serialize the structured HTML * into React, using the component library shared across the react SDK. */ export declare const DefaultComponents: ComponentTypeDictionary;