import React from "react";
import { type ChartData, type ChartOptions, type ChartType } from "chart.js";
import type { TDefaultChartFormatOptionsType } from "../../Core/Common.types";
export interface ICJSWrapperProps {
    /** Chart.js chart type string */
    chartType: ChartType;
    /** Transformed Chart.js data (labels + datasets) */
    data: ChartData;
    /** Mapped Chart.js options */
    options: ChartOptions;
    /** Original format options — used only for background color */
    formatOptions: TDefaultChartFormatOptionsType;
    /** Outer container width in px */
    clientWidth: number;
    /** Outer container height in px */
    clientHeight: number;
    /** Optional additional className for the wrapper div */
    className?: string;
    isChartStacked?: boolean;
}
/**
 * Low-level Chart.js wrapper. Manages canvas lifecycle and re-renders
 * whenever data or options change. All chart-type-specific logic lives
 * in the calling component (CJSColumnChart, CJSLineChart, etc.).
 */
declare const ChartJSWrapper: React.FC<ICJSWrapperProps>;
export default ChartJSWrapper;
