import React from 'react'; import { UploadFile } from 'antd/es/upload/interface'; import '../style/fileItem.less'; /** * @description: b 转成 Kb * @param {*} num * @return {*} */ export declare const bToKb: (num: any) => string; /** * @description: 获取文件后缀名 * @param {*} fileName * @return {*} */ export declare const getFileExt: (fileName: string) => string; /** * @description: 根据文件扩展名获取图标地址 * @param {string} fileExt * @return {*} */ export declare const getFileIcon: (fileExt: string) => any; interface FileItemProps { file: UploadFile; hideFileIcon?: boolean; showRemoveIcon?: boolean; onRemove?: Function; onDownload?: Function; onPreview?: Function; disabled?: boolean; } declare const FileItem: React.FC; declare const DragSingleFileItem: React.FC; export { DragSingleFileItem, FileItem };