import { Theme } from '@mui/material';
import { Accept, FileError } from 'react-dropzone';
export declare const getMimeTypes: (acceptedFormats: string[]) => Accept;
export declare const getErrorMessage: (errorCode: FileError["code"], maxFiles: number, maxFileSize: number, acceptedFormatsText?: string) => string;
export declare const getLegendText: (isMobile: boolean, maxFileSize: number, acceptedFormatsText?: string) => string[];
export declare const getBorderColour: (theme: Theme, hasError: boolean) => string;
export type ValidateFileArgs = {
    file: File;
    maxFiles: number;
    maxFileSize: number;
    hasExceededMaxFiles: boolean;
    hasExceededMaxCombinedSize: (file: File) => boolean;
    acceptedFormats: string[];
    maxSizeInBytes: number;
    acceptedFormatsText?: string;
};
export declare const validateFile: ({ file, maxFiles, maxFileSize, hasExceededMaxFiles, hasExceededMaxCombinedSize, acceptedFormats, acceptedFormatsText, maxSizeInBytes, }: ValidateFileArgs) => FileError | FileError[] | null;
