import * as React from 'react'; import { UploadProps } from 'antd/es/upload'; import { WrappedComponentProps } from 'react-intl'; import { MainStoreInjected } from '@haulmont/jmix-react-core'; export interface FileUploadProps extends MainStoreInjected { /** * FileRef string. * Сoming from antd Form field decorator. */ value?: string; /** * Сoming from antd Form field decorator */ onChange?: (arg: any) => void; /** * Whether the component shall take all available width. **Default**: true. */ enableFullWidth?: boolean; disabled?: boolean; /** * UploadProps object that is passed through to the underlying antd {@link https://ant.design/components/upload/ Upload} component */ uploadProps?: UploadProps; /** * Render function that allows to customize the file drop area. * @param fileRef - a valid FileRef string */ render?: (fileRef: string | undefined) => React.ReactNode; } declare const fileUpload: React.FC>> & { WrappedComponent: React.ComponentType>; }; export { fileUpload as FileUpload };