import type GraphicOrigin from "./GraphicOrigin.js";
import type LinkChartLayer from "../layers/LinkChartLayer.js";
import type KnowledgeGraphSublayer from "../layers/knowledgeGraph/KnowledgeGraphSublayer.js";

/**
 * Provides information about the [LinkChartLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/LinkChartLayer/) from which a graphic originates.
 * Also provides access to the [KnowledgeGraphSublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/knowledgeGraph/KnowledgeGraphSublayer/) that contains the graphic.
 * The  [origin](https://developers.arcgis.com/javascript/latest/references/core/Graphic/#origin) information may be available when a graphic is returned from methods such as
 * [hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/#hitTest) or [queryFeatures()](https://developers.arcgis.com/javascript/latest/references/core/layers/knowledgeGraph/KnowledgeGraphSublayer/#queryFeatures).
 *
 * @since 5.0
 */
export default class LinkChartGraphicOrigin extends GraphicOrigin {
  constructor(layer: LinkChartLayer, sublayer: KnowledgeGraphSublayer);
  /** A layer from which a graphic originates. */
  readonly layer: LinkChartLayer;
  /** The [KnowledgeGraphSublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/knowledgeGraph/KnowledgeGraphSublayer/) from which a graphic originates. */
  readonly sublayer: KnowledgeGraphSublayer;
  /**
   * Indicates the type of layer the graphic originated from.
   *
   * @default "link-chart"
   */
  readonly type: LinkChartLayer["type"];
}