import * as React from 'react'; /** * Whether an element is currently scrolling its content. * * Exists because "is this scrollable" decides an accessibility fact, not a * cosmetic one: axe's `scrollable-region-focusable` wants a scrolling box in the * Tab order so a keyboard user can reach the content Safari will not scroll for * them, and a box that fits must stay out of it or every short list becomes a * focus stop before its own controls. That answer changes with content, zoom, and * container width, so it is observed rather than assumed. * * Shared by `ScrollRegion` and `ScrollArea`, which put the answer on different * elements: `ScrollRegion` is the scrolling box, while `ScrollArea`'s box belongs * to Radix and can only be reached by ref. */ declare function useScrollOverflow(): { ref: React.RefObject; overflowing: boolean; }; export { useScrollOverflow };