import PropTypes from 'prop-types'; import { TextProps, StyleProp, ViewStyle, TextStyle } from 'react-native'; import { LeftRightStyle, IMessage } from './Models'; export interface MessageTextProps { position?: 'left' | 'right'; optionTitles?: string[]; currentMessage?: TMessage; containerStyle?: LeftRightStyle; textStyle?: LeftRightStyle; linkStyle?: LeftRightStyle; textProps?: TextProps; customTextStyle?: StyleProp; parsePatterns?(linkStyle: TextStyle): any; } export declare function MessageText({ currentMessage, optionTitles, position, containerStyle, textStyle, linkStyle: linkStyleProp, customTextStyle, parsePatterns, textProps, }: MessageTextProps): JSX.Element; export declare namespace MessageText { var propTypes: { position: PropTypes.Requireable; optionTitles: PropTypes.Requireable<(string | null | undefined)[]>; currentMessage: PropTypes.Requireable; containerStyle: PropTypes.Requireable; right: PropTypes.Requireable; }>>; textStyle: PropTypes.Requireable; right: PropTypes.Requireable; }>>; linkStyle: PropTypes.Requireable; right: PropTypes.Requireable; }>>; parsePatterns: PropTypes.Requireable<(...args: any[]) => any>; textProps: PropTypes.Requireable; customTextStyle: PropTypes.Requireable; }; }