import type { CandleMetrics, CandlePoint } from "../types"; import type { ChartPadding } from "./line"; export interface VolumeBar { x: number; y: number; w: number; h: number; up: boolean; } export interface VolumeGeometry { bars: VolumeBar[]; } /** * Build screen-space volume bars for the reserved band below the candles. Bars * align under the candle bodies (same width + center) and grow up from the band * baseline (the x-axis line). Heights are normalized to the largest *visible* * volume so the tallest bar fills `bandHeight`. Pure worklet — no Skia imports, * consumed by {@link useCandlePaths}. * * `padding.bottom` is the already-reserved bottom (it includes `bandHeight`), so * `canvasH - padding.bottom` is the candle plot's bottom = the top of the band, * and the baseline sits `bandHeight` below it (the x-axis line). */ export declare function buildVolumeGeometry(candles: CandlePoint[], liveCandle: CandlePoint | null, padding: ChartPadding, canvasW: number, canvasH: number, winStart: number, windowSecs: number, bandHeight: number, candleWidthSecs: number, metrics?: CandleMetrics): VolumeGeometry; //# sourceMappingURL=volume.d.ts.map