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/api-reference/esri-layers-LinkChartLayer.html) from which a graphic originates.
 * Also provides access to the [KnowledgeGraphSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-knowledgeGraph-KnowledgeGraphSublayer.html) that contains the graphic.
 * The  [origin](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#origin) information may be available when a graphic is returned from methods such as
 * [hitTest()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest) or [queryFeatures()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-knowledgeGraph-KnowledgeGraphSublayer.html#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/api-reference/esri-layers-knowledgeGraph-KnowledgeGraphSublayer.html) from which a graphic originates. */
  readonly sublayer: KnowledgeGraphSublayer;
  /**
   * Indicates the type of layer the graphic originated from.
   *
   * @default "link-chart"
   */
  readonly type: LinkChartLayer["type"];
}