import { RefObject, MutableRefObject, UIEvent } from 'react'; import { HangingGardenColumn, HangingGardenColumnIndex } from '../models/HangingGarden'; export type Scroll = { isScrolling: MutableRefObject; scrollLeft: MutableRefObject; scrollTop: MutableRefObject; onScroll: (e: UIEvent, renderGarden: () => void) => void; scrollToHighlightedColumn: (columns: HangingGardenColumn[], highlightedColumnKey: string, itemWidth: number) => boolean; scrollToHighlightedItem: (columns: HangingGardenColumn[], highlightedItem: T, itemWidth: number) => boolean; }; /** * Handles scrolling off the garden canvas. Also handles scroll to functionality. * Scrolling to highlighted Item and Header. * * This hook is used by the Garden and is not intended to be used or implemented * outside the Garden component. */ declare const useScrolling: (canvas: RefObject | null, container: RefObject | null, itemKeyProp: keyof T) => Scroll; export default useScrolling;