import { type ChartDrawingArea } from "../../../../hooks/useDrawingArea.js"; import { type AllSeriesType } from "../../../../models/seriesType/index.js"; import { type ChartSeriesType, type DatasetType } from "../../../../models/seriesType/config.js"; import { type ChartSeriesConfig } from "../useChartSeriesConfig/index.js"; import { type DefaultizedSeriesGroups, type ProcessedSeries, type SeriesIdToType, type SeriesLayout } from "./useChartSeries.types.js"; import type { IsItemVisibleFunction } from "../../featurePlugins/useChartVisibilityManager/index.js"; /** * This method groups series by type and adds defaultized values such as the ids and colors. * It does NOT apply the series processors - that happens in a selector. * @param series The array of series provided by the developer * @param colors The color palette used to defaultize series colors * @returns An object structuring all the series by type with default values. */ export declare const defaultizeSeries: ({ series, colors, theme, seriesConfig }: { series: Readonly[]>; colors: readonly string[]; theme: "light" | "dark"; seriesConfig: ChartSeriesConfig; }) => { defaultizedSeries: DefaultizedSeriesGroups; idToType: SeriesIdToType; }; /** * Applies series processors to the defaultized series groups. * This should be called in a selector to compute processed series on-demand. * @param defaultizedSeries The defaultized series groups * @param seriesConfig The series configuration * @param dataset The optional dataset * @returns Processed series with all transformations applied */ export declare const applySeriesProcessors: (defaultizedSeries: DefaultizedSeriesGroups, seriesConfig: ChartSeriesConfig, dataset?: Readonly, isItemVisible?: IsItemVisibleFunction) => ProcessedSeries; /** * Applies series processors with drawing area to series if defined. * @param processedSeries The processed series groups * @param seriesConfig The series configuration * @param drawingArea The drawing area * @returns Processed series with all transformations applied */ export declare const applySeriesLayout: (processedSeries: ProcessedSeries, seriesConfig: ChartSeriesConfig, drawingArea: ChartDrawingArea) => SeriesLayout;