import { type ReactElement } from 'react'; import type { GridLineTypeFunctionProps } from 'recharts/types/cartesian/CartesianGrid'; interface DropEdgeGridLinesOptions { /** Keep the topmost horizontal grid line unconditionally. */ keepTop?: boolean; /** Keep the bottommost horizontal grid line unconditionally. */ keepBottom?: boolean; } /** * `` render function that conditionally omits the * topmost and bottommost horizontal grid lines. * * - **Top** — implements the Figma "no top x-line" rule (anatomy node * `7533-3334`). Dropped only when the gap from the chart's top edge to the * topmost grid line is less than {@link TOP_LINE_GAP_THRESHOLD} of one * tick-to-tick spacing; above that ratio the gap reads as deliberate * whitespace and the line stays (useful for axes whose nice-tick max sits * well below the data max). * - **Bottom** — dropped unconditionally so the solid X-axis line owns the * bottom rail (otherwise the dashed grid line and the solid axis line stack * on top of each other and read as a double line). * * Either drop can be suppressed via `keepTop` / `keepBottom` (e.g. when the * caller hides the X-axis line and wants the grid to draw the bottom rail). * * Returning an empty `` (rather than `null`) keeps the type contract: * `GridLineType`'s function form requires a `ReactElement`. */ export declare const dropEdgeGridLines: ({ keepTop, keepBottom, }?: DropEdgeGridLinesOptions) => (props: GridLineTypeFunctionProps) => ReactElement; export {};