import type { ResolvedAxisLabelConfig } from "../core/resolveConfig"; import type { ChartEngineExtrema, ChartEngineLayout } from "../core/useLiveChartEngine"; import type { ChartPadding } from "../draw/line"; /** `"extrema-edge"` top label's inset from the very top of the chart (px). The * connector ({@link ExtremaConnectorOverlay}) reads this to stop at the label. */ export declare const EXTREMA_EDGE_INSET = 2; /** Default value-text size (px). Mirrors `styles.extremaText`; the connector * reads it to estimate where the edge label ends. */ export declare const EXTREMA_LABEL_FONT_SIZE = 11; /** Whether the high and low extrema resolve to the exact same data point. */ export declare function extremaPointsCoincide(firstTime: number, firstValue: number, secondTime: number, secondValue: number): boolean; /** * React Native overlay (NOT Skia) floating axis edge labels over the Skia * canvas — `topLabel` pinned to the plot's top edge and `bottomLabel` to its * bottom edge (Robinhood-style high/low values). * * For each side: a resolved config with a `render` floats that custom element; * otherwise the built-in {@link BuiltInAxisValueLabel} shows the chart's current * `engine.displayMax` (top) / `engine.displayMin` (bottom) — the live Y-axis * bounds — formatted with the config's `format` (falling back to the chart's * `formatValue`) in the config `color` (falling back to `defaultColor`). * * When a side's `position` is `"extrema"` (and the engine exposes the live * extrema), it instead floats at the actual data point where the high / low * occurs via {@link ExtremaAxisLabel}. * * Because the chart's `` is the canvas size, the plot's top edge sits * `padding.top` px from the top and its bottom edge `padding.bottom` px from * the bottom — so positioning needs only the resolved padding (no live height, * no SharedValues). `pointerEvents="none"` keeps the labels display-only so they * never intercept the scrub pan gesture. */ export declare function AxisLabelOverlay({ topLabel, bottomLabel, engine, formatValue, defaultColor, padding, extremaTimeOffset, hideExtrema, }: { topLabel: ResolvedAxisLabelConfig | null; bottomLabel: ResolvedAxisLabelConfig | null; engine: ChartEngineLayout & Partial; formatValue: (v: number) => string; defaultColor: string; padding: ChartPadding; /** * Seconds added to each extremum time before projecting (for `"extrema"` * labels). Half a candle width in candle mode so the dot aligns with the * candle's drawn center; `0` (default) for line / multi-series. */ extremaTimeOffset?: number; /** Hide point-anchored extrema while the chart is showing its loading shell. */ hideExtrema?: boolean; }): import("react").JSX.Element | null; //# sourceMappingURL=AxisLabelOverlay.d.ts.map