import { type Store } from '@mui/x-internals/store'; import type { ChartAnyPluginSignature, ChartInstance, ChartPublicAPI, ChartState, ConvertSignaturesIntoPlugins, MergeSignaturesProperty } from "../../internals/plugins/models/index.js"; import type { ChartCorePluginSignatures } from "../../internals/plugins/corePlugins/index.js"; import type { UseChartBaseProps } from "../../internals/store/useCharts.types.js"; import type { ChartSeriesType } from "../../models/seriesType/config.js"; export type ChartsContextValue = { /** * And object with all the methods needed to interact with the chart. */ instance: ChartInstance; /** * A subset of the `instance` method that are exposed to the developers. */ publicAPI: ChartPublicAPI; /** * The internal state of the chart. */ store: Store>; }; export type ChartsPluginParams = UseChartBaseProps & MergeSignaturesProperty<[...ChartCorePluginSignatures, ...TSignatures], 'params'>; export interface ChartsProviderProps { /** * Array of plugins used to add features to the chart. */ plugins?: ConvertSignaturesIntoPlugins; pluginParams?: ChartsPluginParams; }