import * as React from 'react';
import { TooltipProps } from './Tooltip';
export type TextEllipsisTooltipProps = TooltipProps & {
    /**
     * A Reference to the ellipsable element.
     */
    textEllipsableElement: React.RefObject<Element>;
    /**
     * Number of lines to apply ellipsis. If no set, one line
     */
    lines?: number;
};
/**
 * An extended Tooltip component that can be used to display the full text (or any
 * other text) only when inner text of `textEllipsableElement` is truncated
 * with ellipsis (scrollWidth > clientWidth). See Tooltip component to know more about Tooltip usage.
 *
 * *KNOWN ISSUES*
 * - This is not pixel perfect solution: it could be that text-ellipsis appears without tooltip when it is
 * too close to fit in the available space.
 * - When the `textEllipsableElement` has some inner paddings or borders, the previous known issue get even worse.
 *
 * @see https://stackoverflow.com/questions/56588625/react-show-material-ui-tooltip-only-for-text-that-has-ellipsis
 *
 */
declare const TextEllipsisTooltip: ({ textEllipsableElement, lines, ...rest }: TextEllipsisTooltipProps) => import("react/jsx-runtime").JSX.Element;
export default TextEllipsisTooltip;
