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

export interface VisibleElementsProperties extends Partial<Pick<VisibleElements, "errorsForNonVisibleFields">> {}

/** An object containing properties that control the visibility of certain elements within the FeatureForm widget. */
export default abstract class VisibleElements extends Accessor {
  /**
   * Default value is `true`. Indicates whether to display validation errors for fields that are not visible in the form.
   *
   * @default true
   */
  accessor errorsForNonVisibleFields: boolean;
}