import type { ComponentType, JSX } from 'react'; import type { Options } from 'react-markdown/lib'; import type { UserResponse } from 'stream-chat'; import type { PluggableList } from 'unified'; import type { MentionProps } from './componentRenderers'; 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; }; export declare const renderText: (text?: string, mentionedUsers?: UserResponse[], { allowedTagNames, customMarkDownRenderers, getRehypePlugins, getRemarkPlugins, }?: RenderTextOptions) => import("react/jsx-runtime").JSX.Element | null; export {}; //# sourceMappingURL=renderText.d.ts.map