import type { DefaultizedProps } from '@mui/x-internals/types'; import type { BarSeriesType, DefaultizedBarSeriesType } from "./bar.js"; import { type CartesianChartSeriesType, type ChartSeriesType, type ChartsSeriesConfig, type StackableChartSeriesType } from "./config.js"; type AllSeriesType = ChartsSeriesConfig[T]['seriesProp']; /** * @deprecated We do not use this type in v8. If it's useful for you use case, please open an issue explaining why. * Otherwise, it will be removed in next major. */ type CartesianSeriesType = AllSeriesType; type DefaultizedSeriesType = ChartsSeriesConfig[T]['series']; /** * @deprecated We do not use this type in v8. If it's useful for you use case, please open an issue explaining why. * Otherwise, it will be removed in next major. */ type DefaultizedCartesianSeriesType = DefaultizedSeriesType; /** * @deprecated We do not use this type in v8. If it's useful for you use case, please open an issue explaining why. * Otherwise, it will be removed in next major. */ type StackableSeriesType = DefaultizedSeriesType; export type SeriesItemIdentifier = ChartsSeriesConfig[T]['itemIdentifier']; export type SeriesItemIdentifierWithData = ChartsSeriesConfig[T]['itemIdentifierWithData']; export type FocusedItemIdentifier = T extends 'line' | 'radar' ? DefaultizedProps : T extends 'heatmap' ? DefaultizedProps : ChartsSeriesConfig[T]['itemIdentifier']; export { type SeriesId } from "./common.js"; export * from "./line.js"; export * from "./bar.js"; export * from "./scatter.js"; export * from "./pie.js"; export * from "./radar.js"; export type { AllSeriesType, DefaultizedSeriesType, CartesianSeriesType, DefaultizedCartesianSeriesType, StackableSeriesType }; /** * @deprecated We do not use this function in v8. If it's useful for you use case, please open an issue explaining why. * Otherwise, it will be removed in next major. */ export declare function isDefaultizedBarSeries(series: DefaultizedSeriesType): series is DefaultizedBarSeriesType; /** * @deprecated We do not use this function in v8. If it's useful for you use case, please open an issue explaining why. * Otherwise, it will be removed in next major. */ export declare function isBarSeries(series: AllSeriesType): series is BarSeriesType;