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

/** Adds support for working with series visibility. */
export abstract class WithSeriesVisibility extends ChartModelBase {
  /**
   * Gets the visibility of a series.
   *
   * @param seriesIndex - The series index
   */
  getSeriesVisibility(seriesIndex: number): boolean;
  /**
   * Sets the visibility of a series.
   *
   * @param props - Visibility options for the series.
   */
  setSeriesVisibility(props: LegendItemVisibility): void;
}