import { type MutableRefObject, type UIEvent } from 'react'; import { type PositionType, type ScrollViewDirectionType } from '../../types'; export interface UseScrollPositionProps { viewportReference: MutableRefObject; contentReference: MutableRefObject; direction: ScrollViewDirectionType; } export interface UseScrollPositionReturn { isScrolledAtEnd: boolean; isScrolledAtStart: boolean; onScroll: (event: UIEvent) => void; } export type CurrentPositionProps = { [key in PositionType]: number; }; export declare const useScrollPosition: ({ viewportReference, contentReference, direction, }: UseScrollPositionProps) => UseScrollPositionReturn;