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

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

/**
 * A geoprocessing object that contains area information.
 *
 * @since 4.30
 * @see [geoprocessor](https://developers.arcgis.com/javascript/latest/references/core/rest/geoprocessor/)
 */
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;
}