import { RefCallback } from 'react'; export interface UseIsTruncatedOptions { /** Set `false` to skip measuring; `isTruncated` then stays `false`. Defaults to `true`. */ enabled?: boolean; } export interface UseIsTruncatedResult { /** Attach to the element that clips the text. */ ref: RefCallback; /** Whether the element's content is wider than the element. */ isTruncated: boolean; } /** Tracks whether the element's text overflows its width, re-measuring on resize and content changes. */ export declare const useIsTruncated: ({ enabled, }?: UseIsTruncatedOptions) => UseIsTruncatedResult;