import { Split, TruncatePriority } from './TruncatedText.types'; type MiddleTruncateProps = { text: string; split?: Split; priority?: TruncatePriority; /** The elision marker. Concatenated into the string, so it must be a string. */ marker?: string; }; /** * Middle truncation by measurement: render exactly the `head…tail` characters * that fit — crisp ellipsis, no gap, and never a cut glyph, at every width. * * The measurement is deliberately minimal and only runs where it's needed: this * component is mounted solely for `TruncatedText mode="middle"`, and it recomputes * only on real size changes (a `ResizeObserver`), guarding `setState` so redundant * ticks are no-ops. There is no measure-in-render or unconditional `setState`, so * it cannot reproduce the "Maximum update depth exceeded" loop (React #185). */ declare const MiddleTruncate: ({ text, split, priority, marker, }: MiddleTruncateProps) => import("react").JSX.Element; export { MiddleTruncate }; //# sourceMappingURL=TruncatedText.primitives.d.ts.map