UNPKG

react-multi-carousel

Version:

Production-ready, lightweight fully customizable React carousel component that rocks supports multiple items and SSR(Server-side rendering) with typescript.

23 lines (22 loc) 938 B
import { CarouselInternalState, CarouselProps } from "../types"; declare function getOriginalCounterPart(index: number, { slidesToShow, currentSlide }: { slidesToShow: number; currentSlide: number; totalItems: number; }, childrenArr: any[]): number; declare function getCloneCounterPart(index: number, { slidesToShow }: { slidesToShow: number; currentSlide: number; totalItems: number; }, childrenArr: any[]): number | undefined; declare function getClones(slidesToShow: number, childrenArr: any[]): { clones: any[]; initialSlide: number; }; declare function checkClonesPosition({ currentSlide, slidesToShow, itemWidth, totalItems }: CarouselInternalState, childrenArr: any[], props: CarouselProps): { isReachingTheEnd: boolean; isReachingTheStart: boolean; nextSlide: number; nextPosition: number; }; export { getOriginalCounterPart, getCloneCounterPart, getClones, checkClonesPosition };