import type { ChartSeriesType } from "../../../../../models/seriesType/config.js";
import type { SeriesId } from "../../../../../models/seriesType/common.js";
import type { ProcessedSeries } from "../../../corePlugins/useChartSeries/index.js";
/**
 * Returns the previous series type and id that contains some data.
 * Returns `null` if no other series have data.
 */
export declare function getPreviousNonEmptySeries<OutSeriesType extends Exclude<ChartSeriesType, 'sankey'> = Exclude<ChartSeriesType, 'sankey'>>(series: ProcessedSeries<ChartSeriesType>, availableSeriesTypes: Set<OutSeriesType>, type?: ChartSeriesType, seriesId?: SeriesId): {
  type: OutSeriesType;
  seriesId: SeriesId;
} | null;