UNPKG

vue-carousel-lite

Version:

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

128 lines (126 loc) 4.17 kB
import { CarouselProps } from '../types'; declare function __VLS_template(): { default?(_: { item: any; index: number; }): any; "prev-icon"?(_: {}): any; "next-icon"?(_: {}): any; }; declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CarouselProps>, { gap: number; speed: number; loop: boolean; itemsToShow: number; currentItem: number; easing: string; autoPlay: boolean; mousewheel: boolean; draggable: boolean; pagination: string; paginationSize: string; autoPlayInterval: number; direction: string; paginationVisibility: string; paginationHoverEdgeThreshold: number; paginationHoverInitialTimeout: number; bufferSize: number; maxDomElements: number; wheelOptions: () => { threshold: number; velocityThreshold: number; pageScrollThreshold: number; debounceTime: number; preventDefault: boolean; stopPropagation: boolean; }; }>>, { goToSlide: (index: number, smooth?: boolean) => void; goNext: (smooth?: boolean) => void; goPrev: (smooth?: boolean) => void; state: { readonly currentIndex: number; readonly isTransitioning: boolean; readonly isDragging: boolean; readonly isHovered: boolean; readonly isWheeling: boolean; }; canGoNext: import('vue').ComputedRef<boolean>; canGoPrev: import('vue').ComputedRef<boolean>; focus: () => void; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { "slide-change": (index: number) => void; }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<CarouselProps>, { gap: number; speed: number; loop: boolean; itemsToShow: number; currentItem: number; easing: string; autoPlay: boolean; mousewheel: boolean; draggable: boolean; pagination: string; paginationSize: string; autoPlayInterval: number; direction: string; paginationVisibility: string; paginationHoverEdgeThreshold: number; paginationHoverInitialTimeout: number; bufferSize: number; maxDomElements: number; wheelOptions: () => { threshold: number; velocityThreshold: number; pageScrollThreshold: number; debounceTime: number; preventDefault: boolean; stopPropagation: boolean; }; }>>> & Readonly<{ "onSlide-change"?: (index: number) => any; }>, { pagination: import('../types').PaginationType | import('../types').PaginationType[]; paginationVisibility: import('../types').PaginationVisibility | import('../types').PaginationVisibility[]; direction: "horizontal" | "vertical"; paginationSize: "sm" | "md" | "lg"; itemsToShow: number | import('../types').SlidesPerView; paginationHoverEdgeThreshold: number; paginationHoverInitialTimeout: number; gap: number; loop: boolean; speed: number; easing: string; autoPlay: boolean; draggable: boolean; mousewheel: boolean; currentItem: number; autoPlayInterval: number; wheelOptions: import('../types').WheelOptions; bufferSize: number; maxDomElements: number; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>; export default _default; type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? { type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; } : { type: import('vue').PropType<T[K]>; required: true; }; }; type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { default: D[K]; }> : P[K]; }; type __VLS_Prettify<T> = { [K in keyof T]: T[K]; } & {}; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };