import { type ElementType } from "react"; import { type IAlignPoint } from "../typings/positioning.js"; export declare function getShortenedTitle(title: string, element: Pick, ellipsisPosition?: string): string; /** * @internal */ export interface IShortenedTextProps { children: string; className?: string; tagName?: ElementType; tooltipAlignPoints?: IAlignPoint[]; tooltipVisibleOnMouseOver?: boolean; getElement?: (context: any) => Pick; displayTooltip?: boolean; ellipsisPosition?: "middle" | "end"; id?: string; } /** * @internal */ export interface IShortenedTextState { title: string; customTitle: boolean; } /** * To make this component work, parent container needs this: * max-width: Xpx; * white-space: nowrap; * * and the component itself needs: * display: inline-block; * width: 100%; * white-space: nowrap; */ /** * Imperative API exposed through a ref, used by consumers that need to re-measure the text * after a layout change that React cannot observe on its own (e.g. a container resize). * * @internal */ export interface IShortenedTextHandle { recomputeShortening: () => void; } /** * @internal */ export declare const ShortenedText: import("react").ForwardRefExoticComponent>; //# sourceMappingURL=ShortenedText.d.ts.map