import { type TruncationMode } from '@dynatrace/strato-components/typography'; import { HorizontalCoords, RangeLabel } from '../types/range-legend.internal.js'; /** * Calculates the starting position for a given label, in order to let the label * fitting the container bounds. */ export declare const calculateOptimalPlacement: (labelStart: number, labelEnd: number, startBound: number, endBound: number) => number; /** * Applies dynamically the ellipsis to the text until the label fit the * container bounds. */ export declare const calculateOptimalEllipsis: (text: string, startPosition: number, endPosition: number, truncationMode: TruncationMode, startBound: number, endBound: number) => Required & Pick>; export declare const truncateLabel: (text: string, truncationMode: TruncationMode) => string; /** * Returns the start and ending distribution of a label. * @param startLabel - * @param endLabel - * @param bounds - */ export declare const getLabelsPosition: (startLabel: string, endLabel: string, bounds: [number, number]) => { startLabel: HorizontalCoords; endLabel: HorizontalCoords; };