import React, { ReactElement, ReactNode } from 'react'; import { FlatList, SectionListData, SectionListRenderItem, ListRenderItem, VirtualizedListWithoutRenderItemProps } from 'react-native'; import { OnMoveEndInfo } from 'react-native-draggable-flatlist'; import { TStyle } from '@react-native-cask-ui/theme'; export declare type SectionData = SectionListData | { headerTitle?: string; headerView?: ReactNode; footerTitle?: string; footerView?: ReactNode; data: ItemT[]; tag?: string; } | null; export interface ListProps extends VirtualizedListWithoutRenderItemProps { variant?: string; sectionType: 'plain' | 'grouped'; draggable?: boolean; renderSectionHeader?: (info: { section: SectionListData; }, sectionHeader: ReactElement) => ReactElement | null; renderSectionFooter?: (info: { section: SectionListData; }, sectionFooter: ReactElement) => ReactElement | null; renderItem: SectionListRenderItem | ListRenderItem; keyExtractor: (item: any, index: number) => string; extraData?: unknown; initialScrollIndex?: number; ListEmptyComponent?: React.ComponentType | React.ReactElement | null; sections?: SectionData[] | null; data?: ItemT[] | null; contentContainerStyle?: TStyle; scrollEnabled?: boolean; scrollPercent?: number; onMoveEnd?: (info: OnMoveEndInfo) => void; onMoveBegin?: (index: number) => void; stickySectionHeadersEnabled?: boolean; } declare function ListBase(props: ListProps & { ref?: React.Ref; }, ref: any): JSX.Element | null; declare const List: typeof ListBase; export default List;