import { type MutableRefObject, type RefObject } from "react"; import type { CollectionItem } from "./collectionTypes"; export interface ViewportTrackingProps { containerRef: RefObject; contentRef?: RefObject; highlightedIdx?: number; indexPositions: CollectionItem[]; stickyHeaders?: boolean; } export interface ViewportTrackingResult { isScrolling: MutableRefObject; scrollIntoView: (item: CollectionItem) => void; } export declare const useViewportTracking: ({ containerRef, contentRef, highlightedIdx, indexPositions, stickyHeaders, }: ViewportTrackingProps) => ViewportTrackingResult;