import { Middleware } from '@jsonforms/core'; /** * A JsonForms middleware that drops the ajv `type` error a file field raises while it holds a picked file. * * A file column's schema is `type: 'string'` plus `contentMediaType`, while the form data holds the `File` * itself until submit turns it into multipart, so ajv reports "must be string" for it on every validation * pass. Only errors whose parent schema marks a file and whose value is a real `Blob` are dropped, so a * genuinely wrong value (a number, a plain object) still fails. * * @param state - The current core state. * @param action - The dispatched core action. * @param defaultReducer - The reducer this middleware wraps. * @returns The reduced state, without the file type errors. */ export declare const fileErrorMiddleware: Middleware;