import { type RefObject } from 'react'; import { type FontWidthMap } from './chars-font-width-map.js'; /** * Hook that truncates text in the middle with an ellipsis based on the width of the container element if needed. * It's recalculated on container resize using a ResizeObserver. * @param text * @param charsFontWidthMap * @param containerRef */ export declare const useTruncateMiddleEllipsis: (text: string, charsFontWidthMap: FontWidthMap, containerRef: RefObject) => string;