/** * Formats back-end errors and invokes an onError handler. * @param {Array} errors The errors returned by the backend when submitting. * @param {Function} onError The handler to call with the formatted errors. */ declare const submissionError: (errors: any, onError: any) => void; export default submissionError;