UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

21 lines 1.27 kB
import type { ComponentType, JSX } from 'react'; import type { Options } from 'react-markdown'; 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<IntrinsicElementTagName | 'emoji' | 'mention'>; export declare const markDownRenderers: RenderTextOptions['customMarkDownRenderers']; export type RenderTextOptions = { allowedTagNames?: Array<IntrinsicElementTagName | 'emoji' | 'mention' | (string & {})>; customMarkDownRenderers?: Options['components'] & Partial<{ emoji: ComponentType; mention: ComponentType<MentionProps>; }>; 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