import type SpatialReference from "../../geometry/SpatialReference.js";

export interface GeomServiceFromGeoCoordinateStringParameters {
  /**
   * Conversion options for mgrs and utm conversion types. See
   * the [ArcGIS REST API documentation](https://developers.arcgis.com/rest/services-reference/to-geocoordinatestring.htm)
   * for valid conversion modes and their descriptions.
   */
  conversionMode?: string;
  /**
   * The conversion type of the input strings.
   *
   * @default mrgs
   */
  conversionType?: ConversionType;
  /**
   * The spatial reference (or WKID of the spatial reference)
   * of the XY-coordinates to be converted.
   */
  sr?: SpatialReference | string | number;
  /**
   * An array of formatted strings as specified by `conversionType`.
   * Example: `["01N AA 66021 00000" , "11S NT 00000 62155" , "31U BT 94071 65288"]`
   */
  strings: string[];
}

export type ConversionType = "mgrs" | "usng" | "utm" | "geo-ref" | "gars" | "dms" | "ddm" | "dd";