import type Accessor from "../../core/Accessor.js";

/** @since 5.0 */
export interface VisibleElementsProperties extends Partial<Pick<VisibleElements, "errorsForNonVisibleFields">> {}

/**
 * An object containing properties that control the visibility of certain elements within the [BatchAttributeForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BatchAttributeForm.html) widget.
 *
 * @since 5.0
 */
export default class VisibleElements extends Accessor {
  constructor(properties?: VisibleElementsProperties);
  /**
   * Default value is `true`. Indicates whether to display validation errors for fields that are not visible in the form.
   *
   * @default true
   * @since 5.0
   */
  accessor errorsForNonVisibleFields: boolean;
}