/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import * as React from 'react'; import { ItemRender, UploadFile, UploadListProgressProps, UploadListType, UploadLocale } from '../interface'; export interface ListItemProps { prefixCls: string; className?: string; style?: React.CSSProperties; locale: UploadLocale; file: UploadFile; items: UploadFile[]; listType?: UploadListType; isImgUrl?: (file: UploadFile) => boolean; showRemoveIcon?: boolean; showDownloadIcon?: boolean; showPreviewIcon?: boolean; removeIcon?: React.ReactNode | ((file: UploadFile) => React.ReactNode); downloadIcon?: React.ReactNode | ((file: UploadFile) => React.ReactNode); iconRender: (file: UploadFile) => React.ReactNode; actionIconRender: (customIcon: React.ReactNode, callback: () => void, prefixCls: string, title?: string | undefined) => React.ReactNode; itemRender?: ItemRender; onPreview: (file: UploadFile, e: React.SyntheticEvent) => void; onClose: (file: UploadFile) => void; onDownload: (file: UploadFile) => void; progress?: UploadListProgressProps; } declare const ListItem: React.ForwardRefExoticComponent>; export default ListItem;