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

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