import type { OverflowStrategy, TextOrSegments, TextSegment, TextWrap } from 'ag-charts-types';
import type { ITextMeasurer, MeasuredSegment } from '../../types/text';
import { type FontOptions } from './textUtils';
export interface WrapOptions {
    font: FontOptions;
    maxWidth: number;
    maxHeight?: number;
    lineHeight?: number;
    textWrap?: TextWrap;
    overflow?: OverflowStrategy;
    avoidOrphans?: boolean;
}
export declare function wrapTextOrSegments(text: string, options: WrapOptions): string;
export declare function wrapTextOrSegments(segments: TextSegment[], options: WrapOptions): MeasuredSegment[];
export declare function wrapTextOrSegments(input: TextOrSegments, options: WrapOptions): string | MeasuredSegment[];
export declare function wrapText(text: string, options: WrapOptions): string;
export declare function wrapLines(text: string, options: WrapOptions): string[];
export declare function truncateLine(text: string, measurer: ITextMeasurer, maxWidth: number, ellipsisForce?: boolean): string;
export declare function clipLines(lines: string[], measurer: ITextMeasurer, options: WrapOptions): string[];
export declare function wrapTextSegments(textSegments: TextSegment[], options: WrapOptions): MeasuredSegment[];
