import type { RefCallback } from "react"; import { type ChartSize } from "./chartConfig.js"; export type ChartHeightResult = { /** Attach to the chart's measuring wrapper (the element hosting ResponsiveContainer). */ ref: RefCallback; /** Resolved chart height in px. */ height: number; }; /** * Resolve a ChartSize to a pixel height. The `"responsive"` size reacts to the * chart's own container width — compact in narrow panels, default otherwise — * never to the viewport, so a chart in a slim card stays compact on any screen. */ export declare function useChartHeight(size: ChartSize): ChartHeightResult; //# sourceMappingURL=useChartSize.d.ts.map