import Dragger from './Dragger'; import InternalUpload, { LIST_IGNORE, UploadProps } from './Upload'; export { UploadProps, UploadListProps, UploadChangeParam, RcFile } from './interface'; export { DraggerProps } from './Dragger'; type InternalUploadType = typeof InternalUpload; interface UploadInterface extends InternalUploadType { ( props: React.PropsWithChildren> & React.RefAttributes, ): React.ReactElement; Dragger: typeof Dragger; LIST_IGNORE: string; } const Upload = InternalUpload as UploadInterface; Upload.Dragger = Dragger; Upload.LIST_IGNORE = LIST_IGNORE; export default Upload;