import { RefObject } from 'react'; import { FlatListProps } from 'react-native'; import { FlatList } from 'react-native-gesture-handler'; import { TAnyMessageModel } from '../../../definitions'; export type TListRef = RefObject>; export type TMessagesIdsRef = RefObject; export interface IListProps extends FlatListProps { listRef: TListRef; jumpToBottom: () => void; isThread: boolean; } export interface IListContainerRef { jumpToMessage: (messageId: string) => Promise; cancelJumpToMessage: () => void; } export interface IListContainerProps { renderRow: Function; rid: string; tmid?: string; loading: boolean; listRef: TListRef; hideSystemMessages: string[]; showMessageInMainThread: boolean; serverVersion: string | null; }