import type { ComponentType, JSX, ReactNode } from 'react'; import type { Options } from 'react-markdown'; import type { PluggableList } from 'unified'; import type { MentionProps } from './componentRenderers/Mention'; import type { RenderTextMentionEntity } from './rehypePlugins'; export type RenderTextPluginConfigurator = (defaultPlugins: PluggableList) => PluggableList; type IntrinsicElementTagName = keyof JSX.IntrinsicElements & string; export declare const defaultAllowedTagNames: Array; export declare const markDownRenderers: RenderTextOptions['customMarkDownRenderers']; export type RenderTextOptions = { allowedTagNames?: Array; customMarkDownRenderers?: Options['components'] & Partial<{ emoji: ComponentType; mention: ComponentType; }>; getRehypePlugins?: RenderTextPluginConfigurator; getRemarkPlugins?: RenderTextPluginConfigurator; /** * Mention entities to highlight in the rendered text, including `@channel`, `@here`, roles and * user groups. */ messageMentionEntities?: RenderTextMentionEntity[]; }; export type RenderTextFunction = (text?: string, options?: RenderTextOptions) => ReactNode; export declare function renderText(text?: string, { allowedTagNames, customMarkDownRenderers, getRehypePlugins, getRemarkPlugins, messageMentionEntities, }?: RenderTextOptions): import("react/jsx-runtime").JSX.Element | null; export {}; //# sourceMappingURL=renderText.d.ts.map