import { type ReactNode } from "react"; import { type AnatomyTarget } from "../../style/anatomy.js"; export interface ChartAnatomy { /** The frame's root: the plot with its axis labels (the hand-off's chart `svg`). */ frame?: AnatomyTarget; /** The parts drawn as SVG marks (a series, the bins, a box and its median), on the plot area. */ marks?: readonly [AnatomyTarget?, AnatomyTarget?]; /** The gridlines, on the plot area while the grid is drawn. */ gridlines?: AnatomyTarget; /** The baseline hairline, on the plot area while the axes are drawn. */ baseline?: AnatomyTarget; /** The axis labels, on the first label drawn (the y axis's, or the x axis's with `xLabels`). */ axisLabels?: AnatomyTarget; /** Number the first x-axis label as the axis labels (the hand-off's box plot and waterfall). */ xLabels?: boolean; /** The series legend's root. */ legend?: AnatomyTarget; } /** The parts the enclosing chart handed to its furniture, null outside an anatomy specimen. */ export declare function useChartAnatomy(): ChartAnatomy | null; /** * Renders a chart's tree inside AnatomyScope, handing the parts it took to the shared * frame and legend. Outside an AnatomyProvider every part is undefined and the children * render bare. */ export declare function ChartAnatomyScope({ parts, children }: { parts: ChartAnatomy; children?: ReactNode; }): ReactNode; //# sourceMappingURL=chart-anatomy.d.ts.map