import type { WebGLContextManager } from "../../webgl/context-manager"; import type { CandlestickChart } from "./candlestick"; /** * Resolve up/down body colors from `theme.gradientStops`. Cached on the * chart via `_upDownColorKey` (reference identity of the stops array) * — only `restyle()` (which clears the theme cache via * `invalidateTheme`) or a data load with a fresh theme triggers * resampling. Legacy code re-sampled every frame. */ export declare function ensureUpDownColors(chart: CandlestickChart): void; /** * Drop persistent body / wick / OHLC vertex buffers. Subsequent draws * no-op until the next {@link rebuildGlyphBuffers} call. */ export declare function invalidateGlyphBuffers(chart: CandlestickChart): void; /** * Rebuild the persistent body / wick / OHLC vertex buffers. Reads * `_candles` (columnar) plus the cached `_upColor` / `_downColor` to * populate the GPU buffers exactly once per data load. Subsequent pan/ * zoom redraws bind + dispatch with no uploads. */ export declare function rebuildGlyphBuffers(chart: CandlestickChart, glManager: WebGLContextManager): void; export declare function renderCandlestickFrame(chart: CandlestickChart, glManager: WebGLContextManager): void; export declare function renderCandlestickChromeOverlay(chart: CandlestickChart): void;