import type { ChartModelBase } from "../../chart-model/chart-model-base.js";

/** Adds support for retrieving a series ID. */
export abstract class WithSeriesId extends ChartModelBase {
  /**
   * Gets the series ID for a given series index.
   * If the series index is out of bounds, this function will return `undefined`.
   *
   * @param seriesIndex - The index of the series.
   */
  getSeriesId(seriesIndex: number): string | undefined;
}