import type { JSONSupport, JSONSupportMixinProperties } from "../../core/JSONSupport.js";

export interface SiteLayerInfoProperties extends JSONSupportMixinProperties, Partial<Pick<SiteLayerInfo, "layerId" | "nameField" | "siteIdField" | "sublayerId">> {}

/**
 * The SiteLayerInfo class describes the boundaries of managed sites and is used for visualizing groups of facilities. Sites are used by the [FloorFilter](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html) widget to provide context when browsing for a facility.
 *
 * @since 4.19
 * @see [FloorFilter](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html)
 * @see [MapFloorInfo#siteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-MapFloorInfo.html#siteLayer)
 */
export default class SiteLayerInfo extends JSONSupport {
  constructor(properties?: SiteLayerInfoProperties);
  /** The id for an operational layer in a map. This allows SiteLayerInfo to refer to an operational layer that contains Site features. When configuring a floor-aware map manually, as opposed to configuring it in ArcGIS Pro, this value needs to be set with the ID value from the appropriate Layer object, whether a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) or [SceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html). */
  accessor layerId: string | null | undefined;
  /** The field name from the layer that defines the site name of a feature. */
  accessor nameField: string | null | undefined;
  /** The field name from the layer that defines a site unique ID for a feature. */
  accessor siteIdField: string | null | undefined;
  /**
   * This value references the numeric ID of the sublayer if the Site layer is a
   * map service sublayer instead of a feature layer.
   */
  accessor sublayerId: number | null | undefined;
}