import { StandardProps } from "../@types/common"; import type { IPaginationProps } from "../Pagination/index"; import { DndContextProps } from '@dnd-kit/core'; import React, { ReactNode } from 'react'; export interface IListProps extends StandardProps { dragKey?: string; data: T[]; extraParams?: Record; sortableComponent?: React.ReactNode; component?: (item: T, index: number) => ReactNode; emptyComponent?: () => ReactNode; loadingComponent?: ReactNode; errorComponent?: ReactNode; dndContextProps?: DndContextProps; listDirection?: 'vertical' | 'horizontal'; sortable?: boolean; status?: 'loading' | 'error' | 'normal'; pagination?: (IPaginationProps & { scrollToTop?: boolean; }) | false; onDragEnd?: (data: (T & { index: number; })[], extraParams?: any) => void; } declare function List(props: IListProps): React.JSX.Element; export default List;