UNPKG

@past3lle/carousel-hooks

Version:

PASTELLE carousel animation hooks built on top of @usegesture and react-springs

16 lines 898 B
import { Dispatch, SetStateAction } from 'react'; import { AxisDirection, InfiniteScrollOptions, InifniteScrollDataParams, WheelGestureParams, WithWindowSizeOptions } from '../types'; interface InfiniteScrollSetup { gestureParams: InfiniteScrollOptions & Omit<InifniteScrollDataParams, 'dataLength'> & Pick<WheelGestureParams, 'prevRef'>; currentIndex: number; firstAnimationOver: boolean; scrollingZoneTarget: HTMLElement | null; callbacks: { setFirstPaintOver: Dispatch<SetStateAction<boolean>>; setScrollingZoneRef: Dispatch<SetStateAction<HTMLElement>>; setItemSizeRef: Dispatch<SetStateAction<number>>; }; } export default function useInfiniteScrollSetup(axisDirection: AxisDirection, options: InfiniteScrollOptions, auxOptions?: WithWindowSizeOptions): InfiniteScrollSetup; export {}; //# sourceMappingURL=useScrollSetup.d.ts.map