import { FileComponentSchema } from '@open-formulieren/types'; import { FileRejection } from 'react-dropzone'; import { IntlShape } from 'react-intl'; import { GetValidationSchema } from '../types'; export declare const TOO_MANY_FILES_ERROR: { description: string; defaultMessage: string; }; /** * Given a list of file errors produced by react-dropzone, transform them into * localized error messages. The error messages are joined by newlines. * * This is managed outside of the regular zod validation schema because drag-and-drop * events + file upload selection have a different interaction pattern than regular * form inputs. */ export declare const transformReactDropzoneErrors: (intl: IntlShape, componentDefinition: FileComponentSchema, fileWithErrors: FileRejection) => string; declare const getValidationSchema: GetValidationSchema; export default getValidationSchema;