import { Plugin, ChartType, ChartData, DefaultDataPoint } from "chart.js"; type PluginDataPoint = ChartData["datasets"][0]["data"]; export type ExtendedPlugin = Plugin; export interface PluginOptions { enable: boolean; replaceTooltipLabel?: boolean; fixNegativeScale?: boolean; individual?: boolean; roundOption?: "off" | "down" | "up"; precision?: number; axisId?: string; } declare module "chart.js" { interface ChartData, TLabel = unknown> { calculatedData?: number[][]; originalData?: PluginDataPoint[]; } interface PluginOptionsByType { stacked100?: PluginOptions; } } export type ExtendedChartData = ChartData; export {};