import { ReactElement } from 'react'; import { barMarkPath, BarGeometry } from '../engine/bars'; import { ChartBarAppearance } from '../types'; type MarkOptions = Parameters[1]; interface Rect { x: number; y: number; width: number; height: number; } /** * Cells laid on a fixed grid from the baseline, so stacked segments continue across a color * change. The outermost cell is trimmed to the exact value: a segmented bar is never taller or * shorter than its number. */ export declare function barCells(rect: Rect, baseline: number): Rect[]; /** * One bar in any appearance. Shared by the plot and the hover highlight so both always match; * a needle expands to its full width when `expanded`. */ export declare function BarShape({ bar, appearance, mark, fill, color, baseline, expanded, id, fillOpacity, stroke, strokeWidth, className, dataAttributes, opacity, }: { bar: BarGeometry; appearance?: ChartBarAppearance; mark: MarkOptions; fill: string; color: string; /** Where segmented cells start counting, usually the zero line. */ baseline: number; expanded?: boolean; /** Unique within the chart; used for the gradient definition. */ id: string; fillOpacity?: number; stroke?: string; strokeWidth?: number; className?: string; dataAttributes?: Record; opacity?: number; }): ReactElement; export {};