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

/** Adds support for working with chart data filters. */
export abstract class WithDataFilters extends ChartModelBase {
  /** Gets the data filter for the bar chart. */
  getDataFilters(): WebChartDataFilters | undefined;
  /**
   * Sets the data filter for the chart.
   *
   * @param newDataFilters - The new data filter.
   */
  setDataFilters(newDataFilters: WebChartDataFilters | undefined): Promise<void>;
}