import type Accessor from "../../../core/Accessor.js";
import type { AttributeFormSupportedLayerUnion } from "../types.js";

export interface InputBaseProperties<Template extends any = any> {}

/**
 * A read-only base class for [GroupInput](https://developers.arcgis.com/javascript/latest/references/core/widgets/BatchAttributeForm/inputs/GroupInput/) and [EditableInput](https://developers.arcgis.com/javascript/latest/references/core/widgets/BatchAttributeForm/inputs/EditableInput/) classes. It is used to create input elements for the [BatchAttributeForm](https://developers.arcgis.com/javascript/latest/references/core/widgets/BatchAttributeForm/).
 *
 * @since 4.33
 */
export default abstract class InputBase<Template extends any = any> extends Accessor {
  /** The input's description. */
  get description(): string | null | undefined;
  /**
   * Indicates whether the input pertains to all the features in the [BatchAttributeForm](https://developers.arcgis.com/javascript/latest/references/core/widgets/BatchAttributeForm/) in which the input belongs.
   *
   * @default true
   */
  get existsInAllLayers(): boolean;
  /** The input's label. */
  get label(): string | null | undefined;
  /**
   * An array of layers included in the [BatchAttributeForm](https://developers.arcgis.com/javascript/latest/references/core/widgets/BatchAttributeForm/). Each layer must support feature editing and field access.
   *
   * The following layer types are supported:
   * - [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/)
   * - [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/)
   * - [SceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SceneLayer/) (with `featureLayer` property)
   * - [SubtypeSublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/support/SubtypeSublayer/)
   * - [OrientedImageryLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/OrientedImageryLayer/)
   * - [KnowledgeGraphSublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/knowledgeGraph/KnowledgeGraphSublayer/)
   *
   * @see [BatchAttributeFormViewModel.layers](https://developers.arcgis.com/javascript/latest/references/core/widgets/BatchAttributeForm/BatchAttributeFormViewModel/#layers)
   */
  get layers(): AttributeFormSupportedLayerUnion[];
  /** Indicates whether the input is visible. */
  get visible(): boolean;
}