import { VegaSlimmer } from '../../../../vega-slimmer/vega-slimmer-core';
import { VegaFormFieldValidationState } from '../../types';
import { VegaForm } from '../../vega-form';
/**
 * The field error controller for vega form to set validation errors on form fields.
 */
export declare class VegaFormFieldValidationStateController extends VegaSlimmer {
  host: VegaForm['host'];
  /**
   * Set validation states for the form fields.
   *
   * @param {VegaFormFieldValidationState[]} states - An array of validation error objects.
   */
  setValidationStates(states: VegaFormFieldValidationState[]): void;
  /**
   * Get the host element by field name, support nested field name with dot notation.
   *
   * @param {string} fieldName - The field name, can be nested with dot notation.
   * @returns {Nullable<FormFieldElement<unknown>>} The host element or null if not found.
   */
  private getHostByFieldName;
  /**
   * Update the validation state of a form field element.
   *
   * @param {FormFieldElement<unknown>} target - The target form field element.
   * @param {Pick<VegaFormFieldValidationState, 'isValid' | 'errorMessage'>} payload - An object containing the validation state and error message.
   */
  private updateFieldValidationState;
}
