UNPKG

vue-carousel-lite

Version:

Fast, Lightweight Vue Carousel With Touch, Mouse, Keyboard, Wheel & SSR support

21 lines (19 loc) 713 B
import { ComputedRef } from 'vue'; import { CarouselProps, CarouselState } from '../types'; interface UseAutoplayOptions { props: CarouselProps; state: CarouselState; goNext: () => void; goToSlide: (index: number, smooth?: boolean) => void; canGoNext: ComputedRef<boolean>; } export declare function useAutoplay({ props, state, goNext, goToSlide, canGoNext }: UseAutoplayOptions): { isAutoplayActive: Readonly<import('vue').Ref<boolean, boolean>>; isAutoplayPaused: Readonly<import('vue').Ref<boolean, boolean>>; startAutoplay: () => void; stopAutoplay: () => void; pauseAutoplay: () => void; resumeAutoplay: () => void; restartAutoplay: () => void; }; export {};