import type { ScaleContinuousNumeric, ScaleTime } from 'd3-scale'; import type { Dispatch, RefObject, SetStateAction } from 'react'; type Directions = 'horizontal' | 'vertical'; export interface Tick { /** * The formatted label of the tick. */ label: string; /** * The position in pixel of the tick on the axis. */ position: number; value: T; } interface UseTicksResult { scale: T extends number ? ScaleContinuousNumeric : ScaleTime; ticks: Array>; } interface Options { tickFormat: (d: T) => string; setTicks: Dispatch>>; minSpace?: number; } export declare function useTicks(scale: T extends number ? ScaleContinuousNumeric : ScaleTime, direction: Directions, ref: RefObject, options: Options): void; export {}; //# sourceMappingURL=useTicks.d.ts.map