import { UseFormSetError } from 'react-hook-form'; export declare function setApiFormErrors({ apiError, setError, fieldMap, formFields, }: { /** * Error response from API */ apiError: any; /** * setError function from react-hook-form, it comes from same useForm() context */ setError: UseFormSetError; /** * list of form fields */ formFields: string[]; /** * Map of field names from API to field names in the form */ fieldMap?: Record; }): void;