1 | import * as React from 'react';
|
2 | import type { UploadProps as RcUploadProps } from 'rc-upload';
|
3 | import RcUpload from 'rc-upload';
|
4 | import type { RcFile, UploadFile, UploadProps } from './interface';
|
5 | export declare const LIST_IGNORE: string;
|
6 | export type { UploadProps };
|
7 | export interface UploadRef<T = any> {
|
8 | onBatchStart: RcUploadProps['onBatchStart'];
|
9 | onSuccess: (response: any, file: RcFile, xhr: any) => void;
|
10 | onProgress: (e: {
|
11 | percent: number;
|
12 | }, file: RcFile) => void;
|
13 | onError: (error: Error, response: any, file: RcFile) => void;
|
14 | fileList: UploadFile<T>[];
|
15 | upload: RcUpload | null;
|
16 | }
|
17 | declare const Upload: React.ForwardRefExoticComponent<UploadProps<any> & React.RefAttributes<UploadRef<any>>>;
|
18 | export default Upload;
|