import type { OverlayScrollbars } from 'overlayscrollbars'; export interface UseTableScrollReturn { /** Container width (viewport width) */ containerWidth: number; /** OverlayScrollbars scroll event handler */ handleScrollbarScroll: (instance: OverlayScrollbars, event: Event) => void; /** Handler to be passed to Scrollbar's onViewportReady prop */ handleViewportReady: (viewport: HTMLDivElement, instance?: OverlayScrollbars) => void; /** Whether the scroll container ref has been set and is ready */ isContainerReady: boolean; isScrollingHorizontally: boolean; scrollLeft: number; /** Ref object for internal use - points to the actual scrolling element */ containerRef: React.RefObject; /** Callback ref setter for disabled Scrollbar fallback (plain div) */ setContainerRef: (element: HTMLDivElement | null) => void; } export declare function useTableScroll({ enabled, }: { enabled: boolean; }): UseTableScrollReturn;