/** * * 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 React from 'react'; import { UploadProps } from '../upload/component'; import { UploadFile, UploadListProgressProps } from '../upload/component/interface'; export declare type UploadStatus = 'default' | 'uploading' | 'success' | 'error' | 'done'; export declare type UploadIconProps = { name?: string; type?: UploadStatus; onRetry?: (file: UploadFile) => void; onPreview?: (e: any) => void; onDelete?: (e: any) => void; onClip?: (e: any) => void; propsRetry?: () => void; isShowClipper?: boolean; isShowPreview?: boolean; progress?: number; progressProps?: UploadListProgressProps; errorText?: string; icon?: React.ReactNode; text?: string; url?: string; disabled?: boolean; onClick?: (e: any) => void; isShowRetry?: boolean; wrapStyle?: { width?: number; height?: number; }; imgPreviewIcon?: JSX.Element; uploadOtherProps?: UploadProps; iconRender?: UploadProps['iconRender']; file?: UploadFile; actionIsPopover?: boolean; customSuccessOperation?: (props: UploadIconProps) => JSX.Element; customFailOperation?: (props: UploadIconProps) => JSX.Element; }; declare const UploadIcon: (props: UploadIconProps) => JSX.Element; export default UploadIcon;