import PropTypes from 'prop-types'; import React, { ReactNode } from 'react'; import { ImageStyle, TextStyle, ViewStyle } from 'react-native'; import { IMessage, LeftRightStyle, User } from './Models'; export interface AvatarProps { currentMessage: TMessage; previousMessage?: TMessage; nextMessage?: TMessage; position: 'left' | 'right'; renderAvatarOnTop?: boolean; showAvatarForEveryMessage?: boolean; imageStyle?: LeftRightStyle; containerStyle?: LeftRightStyle; textStyle?: TextStyle; renderAvatar?(props: Omit, 'renderAvatar'>): ReactNode; onPressAvatar?: (user: User) => void; onLongPressAvatar?: (user: User) => void; } export declare function Avatar(props: AvatarProps): React.JSX.Element | null; export declare namespace Avatar { var propTypes: { renderAvatarOnTop: PropTypes.Requireable; showAvatarForEveryMessage: PropTypes.Requireable; position: PropTypes.Requireable; currentMessage: PropTypes.Requireable; previousMessage: PropTypes.Requireable; nextMessage: PropTypes.Requireable; onPressAvatar: PropTypes.Requireable<(...args: any[]) => any>; onLongPressAvatar: PropTypes.Requireable<(...args: any[]) => any>; renderAvatar: PropTypes.Requireable<(...args: any[]) => any>; containerStyle: PropTypes.Requireable>; right: PropTypes.Requireable>; }>>; imageStyle: PropTypes.Requireable>; right: PropTypes.Requireable>; }>>; }; }