import { JSX } from 'react'; interface ValidationApiErrorProps { /** * An error object returned from a failed API request. * We expect an object that contain an `errors` property with the Core Api error items shape. */ apiError: any; /** * Optional map of app field names to API error field names. * This is useful when the API returns field names that are different from the app field names. * For example, if the API returns `first_name` instead of `firstName`, you can pass `{ first_name: 'firstName' }`. * * Format is: * ```{ apiFieldName: appFieldName }``` */ fieldMap?: Record; } export declare function HookedValidationApiError({ apiError, fieldMap, }: ValidationApiErrorProps): JSX.Element; export declare namespace HookedValidationApiError { var displayName: string; } export {};