interface UseAdaptiveTicksProps { min: number; max: number; /** * Necessary to update the ticks when the container size changes. */ containerRef?: React.RefObject | null; /** * Approximate width needed per tick label in pixels * This depends on your font size and typical number length * For numbers like "100" at 14px font, use ~40-50px */ minTickSpacing?: number; /** * Decimal precision for number formatting * Used to filter out ticks that would format to the same value, e.g. * 0.1 and 0.100 would both format to "0.1" when decimalPrecision is 1. */ decimalPrecision?: number; } /** * Generates adaptive tick values for data visualization that automatically * adjust based on available space and data range. * * Uses D3's scale algorithm to generate human-readable tick intervals (e.g., 0, 10, 20 * instead of 0, 13.7, 27.4) and dynamically calculates the appropriate number of ticks * based on the container width. Automatically updates when the container is resized. * Filters out ticks that would display as duplicate values when formatted with the * specified decimal precision. * * @returns Array of tick values optimally spaced for the current container size */ export declare function useAdaptiveTicks({ min, max, containerRef, minTickSpacing, decimalPrecision, }: UseAdaptiveTicksProps): number[]; export {};