import { DirectiveBinding } from '../../node_modules/vue'; import { ElementWithPopper } from '../utils/floatingUi'; interface ElementWithResizeObserver extends ElementWithPopper { $__ellipsisResizeObserver?: ResizeObserver; } /** * Directive that attaches a tooltip to an element, but only while its text is * truncated (overflowing its box). The tooltip appears when the element is * clipped and disappears once it fits, tracked live through a `ResizeObserver`. * * @example * ```html *