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

/**
 * Describes the object representing the result of the
 * [suggestLocations()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#suggestLocations) method.
 */
export default abstract class SuggestionCandidate extends JSONSupport {
  /** Indicates if the result is a Collection. */
  accessor isCollection: boolean | null;
  /**
   * ID used in combination with the `text` property
   *                    to uniquely identify a suggestion.
   */
  accessor magicKey: string | null;
  /** The string name of the suggested location to geocode. */
  accessor text: string | null;
}