import type GraphicOrigin from "./GraphicOrigin.js";
import type MapImageLayer from "../layers/MapImageLayer.js";
import type Sublayer from "../layers/support/Sublayer.js";

/**
 * Provides information about the [MapImageLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html) from which a graphic originates.
 * Also provides access to the [Sublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html) that contains the graphic.
 * You can access the graphic's origin through the graphic's [origin](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#origin) property.
 *
 * @since 5.0
 */
export default class MapImageGraphicOrigin extends GraphicOrigin {
  constructor(layer: MapImageLayer, sublayer: Sublayer);
  /** A layer from which a graphic originates. */
  readonly layer: MapImageLayer;
  /** The [Sublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html) from which a graphic originates. */
  readonly sublayer: Sublayer;
  /**
   * Indicates the type of layer the graphic originated from.
   *
   * @default "map-image"
   */
  readonly type: MapImageLayer["type"];
}