import type { NumberValue } from 'd3-scale'; import type { AnyScale } from '../../../../core/types/scales.js'; /** * Applies collision-aware clamping to a tick-label truncation budget. * * When exactly two continuous-scale ticks collide, this function shrinks * `baseMax` so that each label only occupies its fair share of the pixel gap * between the two tick positions. The share depends on domain-boundary * alignment: a boundary-anchored label uses less space than a centered one. * * Returns `baseMax` unchanged whenever the conditions for collision detection * are not met (categorical, rotated, ≠2 ticks, band scale, or no collision). */ export declare function computeCollisionAwareMaxSpace(baseMax: number, formattedTicks: string[], rawTicks: NumberValue[], scale: AnyScale | undefined, isCategoricalAxis: boolean, isTickRotated: boolean): number;