import React from 'react'; import { StyleProp, ViewStyle, TextStyle } from 'react-native'; import { LinkMatcher, LinkType } from './linkParser'; import { LeftRightStyle, IMessage } from './Models'; export type MessageTextProps = { position?: 'left' | 'right'; currentMessage: TMessage; containerStyle?: LeftRightStyle; textStyle?: LeftRightStyle; linkStyle?: LeftRightStyle; customTextStyle?: StyleProp; onPress?: (message: TMessage, url: string, type: LinkType) => void; matchers?: LinkMatcher[]; email?: boolean; phone?: boolean; url?: boolean; hashtag?: boolean; mention?: boolean; hashtagUrl?: string; mentionUrl?: string; stripPrefix?: boolean; /** * Render the message body as markdown (great for AI/streamed replies). `true` * forces markdown for every message, `false` disables it; when left unset, * streamed messages render as markdown automatically. Uses the optional * `react-native-streamdown` peer when installed (best handling of * streaming-incomplete markdown), otherwise a built-in dependency-free renderer * covering headings, lists, blockquotes, code, bold/italic/strikethrough and links. */ markdown?: boolean; /** Extra props forwarded to the Streamdown component (its own theming/rules API); only used when streamdown is installed. */ markdownProps?: Record; }; export declare function MessageText({ currentMessage, position, containerStyle, textStyle, linkStyle: linkStyleProp, customTextStyle, onPress: onPressProp, matchers, email, phone, url, hashtag, mention, hashtagUrl, mentionUrl, stripPrefix, markdown, markdownProps, }: MessageTextProps): React.JSX.Element; //# sourceMappingURL=MessageText.d.ts.map