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

export interface ArealUnitProperties extends JSONSupportMixinProperties, Partial<Pick<ArealUnit, "area" | "units">> {}

/**
 * A geoprocessing object that contains area information.
 *
 * @since 4.30
 * @see [geoprocessor](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geoprocessor.html)
 */
export default class ArealUnit extends JSONSupport {
  constructor(properties?: ArealUnitProperties);
  /**
   * Specifies the numerical area.
   *
   * @default 0
   */
  accessor area: number;
  /** Specifies the unit of area. */
  units?: AreaUnit | null;
}