import React from 'react'; import type { GetKey, ScrollTo } from '../VirtualList.types'; import type CacheMap from '../utils/CacheMap'; export default function useScrollTo(containerRef: React.RefObject, data: T[], heights: CacheMap, itemHeight: number, getKey: GetKey, collectHeight: () => void, syncScrollTop: (newTop: number) => void, triggerFlash: () => void): ScrollTo;