import React, { ComponentType } from 'react'; import { Options } from 'react-markdown'; import { MentionProps } from './componentRenderers'; import type { PluggableList } from 'react-markdown/lib'; import type { UserResponse } from 'open-chat-js'; import type { DefaultStreamChatGenerics } from '../../../types/types'; export type RenderTextPluginConfigurator = (defaultPlugins: PluggableList) => PluggableList; 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[] | undefined, { allowedTagNames, customMarkDownRenderers, getRehypePlugins, getRemarkPlugins, }?: RenderTextOptions) => React.JSX.Element | null; //# sourceMappingURL=renderText.d.ts.map