import type { DefineComponent } from 'vue'; import type { Chart as ChartJS, ChartType, ChartData, ChartOptions, DefaultDataPoint, Plugin, UpdateMode } from 'chart.js'; export interface ChartProps, TLabel = unknown> { /** * Chart.js chart type */ type: TType; /** * The data object that is passed into the Chart.js chart * @see https://www.chartjs.org/docs/latest/getting-started/ */ data: ChartData; /** * The options object that is passed into the Chart.js chart * @see https://www.chartjs.org/docs/latest/general/options.html * @default {} */ options?: ChartOptions; /** * The plugins array that is passed into the Chart.js chart * @see https://www.chartjs.org/docs/latest/developers/plugins.html * @default [] */ plugins?: Plugin[]; /** * Key name to identificate dataset * @default 'label' */ datasetIdKey?: string; /** * A mode string to indicate transition configuration should be used. * @see https://www.chartjs.org/docs/latest/developers/api.html#update-mode */ updateMode?: UpdateMode; } export interface ChartComponentRef, TLabel = unknown> { chart: ChartJS | null; } export type ChartComponent = DefineComponent; export type TypedChartComponent, TLabel = unknown> = DefineComponent, 'type'>>; //# sourceMappingURL=types.d.ts.map