import type { TruncationMode } from '../../../../../../typography/text-ellipsis/TextEllipsis.js'; import { HorizontalCoords, LabelAlignment, RangeLabel } from '../types/range-legend.internal.js'; /** * Check if for the given label position the text will fit in the bounds of the container. * In the case where it does not fit due to the start position, it determines * the optimal starting position of the label in order to have the label fully displayed. * In the case where the label does not fit due to the length applies the * ellipsis to it. */ export declare const handleCollisionInHorizontalLayout: (labelText: string, segment: HorizontalCoords, alignment: LabelAlignment, truncationMode: TruncationMode, bounds: number[]) => RangeLabel;