import { FC } from 'react'; import { RequestMethod } from 'umi-request'; import { IglooButtonProps } from '../button'; import { UploadProps } from 'antd/es/upload'; import { Job } from './job-list'; import './style'; export interface AdminUploadProps { dataSource: string | { label: string; value: string; }[]; requestMethod: RequestMethod; uploadMethod: (dataSource: string, file: File, enableApiAuth: boolean, onProgess: (e: ProgressEvent) => any) => { abort: () => any; result: Promise<{ success: boolean; errorMessage?: string; }>; }; modalTitle?: string; floatTitle?: string; buttonText?: string; buttonType?: IglooButtonProps['type']; enableApiAuth?: boolean; accept?: UploadProps['accept']; refreshInteval?: number; formatTips?: (props: { uploading: number; processing: number; done: number; }) => string; selectPlaceholder?: string; onFinish?: (jobs: Job[]) => any; handleCloseFloat?: (hidden: () => {}) => any; } declare const AdminUpload: FC; export default AdminUpload;