import { UploadedFile } from './UploadedFile';
import './style.scss';
export type AppDropzoneBodyProps = {
    folder: string;
    onSuccess: (response: UploadedFile) => void;
    onError?: (err: any) => void;
    accept: Record<string, string[]>;
    messages?: Partial<Record<'label.dropzone' | 'label.uploaded.file', string>>;
    onDrop?: () => void;
    keepName?: boolean;
    /** When false, the confirm button is hidden (e.g. when used inside modal with its own confirm) */
    showConfirmButton?: boolean;
    /** When true, image preview is not rendered and filename message is shown instead */
    disablePreview?: boolean;
    /** When true, confirm button is visible but disabled */
    disableConfirm?: boolean;
};
export type AppDropzoneBodyRef = {
    upload: () => Promise<void>;
};
declare const AppDropzoneBody: import("react").ForwardRefExoticComponent<AppDropzoneBodyProps & import("react").RefAttributes<AppDropzoneBodyRef>>;
export default AppDropzoneBody;
