import type { ChartScale } from "../types"; /** * Pure worklet projections for the `renderOverlay` bridge ({@link ChartOverlayContext}). * * Each takes a {@link ChartScale} **snapshot** rather than reading any SharedValue * itself — so the consumer's `useAnimatedStyle` / `useDerivedValue` becomes * reactive simply by reading `scale.get()` (which subscribes it to the per-frame * scale), and these stay trivially unit-testable as plain functions of data. */ /** Maps a price (Y-axis value) to its canvas Y pixel. -1 when not laid out. */ export declare function priceToY(price: number, scale: ChartScale): number; /** * Inverse of {@link priceToY}: maps a canvas Y pixel back to a price. Clamps to * the visible range (a level can't sit beyond the axis bounds); null when not * laid out. */ export declare function yToPrice(y: number, scale: ChartScale): number | null; /** Maps a unix-seconds timestamp to its canvas X pixel. -1 when not laid out. */ export declare function timeToX(time: number, scale: ChartScale): number; /** Inverse of {@link timeToX}: maps a canvas X pixel back to a unix-seconds timestamp. */ export declare function xToTime(x: number, scale: ChartScale): number; //# sourceMappingURL=overlayScale.d.ts.map