import { FormikHelpers } from "formik"; export interface GrapheneFieldError { field: string; messages: string[]; } export interface ApplyErrorsToFieldsOptions { mapFieldName?: (fieldName: string) => string; } /** * Applies an array of field level errors from graphene to our formik fields for * display to the user. */ export declare const getApplyErrorsToFields: (setErrors: FormikHelpers["setErrors"]) => (errors?: GrapheneFieldError[], { mapFieldName }?: ApplyErrorsToFieldsOptions) => void; export interface ErrorHelpers { applyErrorsToFields: (errors?: GrapheneFieldError[], options?: ApplyErrorsToFieldsOptions) => void; }