import type { JSONSupport } from "../../../../core/JSONSupport.js";
import type { UnitRange, UnitIdentifier } from "../../../../networks/support/jsonTypes.js";

/**
 * The result of a unit identifier [UnitIdentifierManager#query()](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UnitIdentifierManager.html#query) operation on a particular unit
 * container in a telecom domain network.
 *
 * @beta
 * @since 4.34
 * @see [UtilityNetwork](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html)
 * @see [UnitIdentifierManager](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UnitIdentifierManager.html)
 */
export default abstract class UnitQueryResult extends JSONSupport {
  /** The unit container feature or object that was queried. */
  accessor container: UnitIdentifier;
  /** Information about the ranges of unit identifiers in the container feature's containment hierarchy. */
  accessor ranges: UnitRange[];
}