import { type SkFont } from "@shopify/react-native-skia"; import { type SharedValue } from "react-native-reanimated"; import type { ResolvedGridStyleConfig } from "../core/resolveConfig"; import { type YAxisEntry } from "../draw/grid"; import { type ChartPadding } from "../draw/line"; import type { BadgeMetrics, LiveChartPalette } from "../types"; import type { ChartEngineLayout } from "../core/useLiveChartEngine"; /** Returns true when a Y-axis label's line box intersects the live badge pill. */ export declare function yAxisLabelIntersectsBadge(labelCenterY: number, labelHeight: number, badgeCenterY: number, badgeHeight: number): boolean; export declare function YAxisOverlay({ entries, engine, padding, palette, font, badge, badgeTail, badgeMetrics, badgeCenterY, badgeFontSize, badgeOffsetY, badgeOpacity, seriesLabelInset, gridStyle, variant, float, labelRightMargin, gridEndGap, }: { entries: SharedValue; engine: ChartEngineLayout; padding: ChartPadding; palette: LiveChartPalette; font: SkFont; /** When true, use the asymmetric pill centering formula so labels align with badge text. */ badge?: boolean; /** Whether the badge tail spike is shown; affects the left inset used for label alignment. */ badgeTail?: boolean; /** Badge pill geometry tokens (kept in sync with useBadge). */ badgeMetrics?: BadgeMetrics; /** Live badge center before its configured Y offset. Enables label collision suppression. */ badgeCenterY?: SharedValue; /** Live badge font size, used to reconstruct the pill's vertical bounds. */ badgeFontSize?: number; /** Configured live badge Y offset. */ badgeOffsetY?: number; /** Live badge opacity. A fully hidden badge does not suppress an axis label. */ badgeOpacity?: SharedValue; /** When > 0, series labels occupy the left portion of the gutter; Y-axis labels right-align. */ seriesLabelInset?: number; /** Grid-line styling overrides. Omit for the legacy solid 1px line. */ gridStyle?: ResolvedGridStyleConfig; /** * Which parts to draw. `"all"` (default) renders grid lines + labels together. * `"grid"` / `"labels"` split them so a chart can draw the grid behind the data * and the labels (over a soft fade) on top — see {@link YAxisEdgeFade}. */ variant?: "all" | "grid" | "labels"; /** * Floating-axis mode: right-align labels at the canvas edge (over a full-width * plot) instead of centering them in a reserved gutter. See {@link YAxisConfig.float}. */ float?: boolean; /** Fixed canvas-edge margin for a shared left-aligned label column. */ labelRightMargin?: number; /** Gap between the grid-line end and the shared label column. */ gridEndGap?: number; }): import("react").JSX.Element; //# sourceMappingURL=YAxisOverlay.d.ts.map