UNPKG

23.1 kBTypeScriptView Raw
1import type {
2 A11yOptions,
3 AutoplayOptions,
4 ControllerOptions,
5 CoverflowEffectOptions,
6 CubeEffectOptions,
7 FadeEffectOptions,
8 FlipEffectOptions,
9 CreativeEffectOptions,
10 CardsEffectOptions,
11 HashNavigationOptions,
12 HistoryOptions,
13 KeyboardOptions,
14 MousewheelOptions,
15 NavigationOptions,
16 PaginationOptions,
17 ParallaxOptions,
18 ScrollbarOptions,
19 ThumbsOptions,
20 VirtualOptions,
21 ZoomOptions,
22 FreeModeOptions,
23 GridOptions,
24} from './types/index.d.ts';
25import { ComponentOptionsMixin, DefineComponent, PropType, Ref } from 'vue';
26import type { SwiperOptions, Swiper as SwiperClass } from './types/index.d.ts';
27
28declare const Swiper: DefineComponent<
29 {
30 tag: {
31 type: StringConstructor;
32 default: string;
33 };
34 wrapperTag: {
35 type: StringConstructor;
36 default: string;
37 };
38 modules: {
39 type: ArrayConstructor;
40 default: undefined;
41 };
42 init: {
43 type: BooleanConstructor;
44 default: undefined;
45 };
46 direction: {
47 type: PropType<SwiperOptions['direction']>;
48 default: SwiperOptions['direction'];
49 };
50 oneWayMovement: {
51 type: PropType<SwiperOptions['oneWayMovement']>;
52 default: SwiperOptions['oneWayMovement'];
53 };
54 touchEventsTarget: {
55 type: PropType<SwiperOptions['touchEventsTarget']>;
56 default: undefined;
57 };
58 initialSlide: {
59 type: NumberConstructor;
60 default: undefined;
61 };
62 speed: { type: NumberConstructor; default: undefined };
63 cssMode: { type: BooleanConstructor; default: undefined };
64 updateOnWindowResize: {
65 type: BooleanConstructor;
66 default: undefined;
67 };
68 resizeObserver: {
69 type: BooleanConstructor;
70 default: undefined;
71 };
72 nested: { type: BooleanConstructor; default: undefined };
73 focusableElements: {
74 type: StringConstructor;
75 default: undefined;
76 };
77 width: { type: NumberConstructor; default: undefined };
78 height: { type: NumberConstructor; default: undefined };
79 preventInteractionOnTransition: {
80 type: BooleanConstructor;
81 default: undefined;
82 };
83 userAgent: { type: StringConstructor; default: undefined };
84 url: { type: StringConstructor; default: undefined };
85 edgeSwipeDetection: {
86 type: BooleanConstructor | StringConstructor;
87 default: undefined;
88 };
89 edgeSwipeThreshold: {
90 type: NumberConstructor;
91 default: undefined;
92 };
93 autoHeight: {
94 type: BooleanConstructor;
95 default: undefined;
96 };
97 setWrapperSize: {
98 type: BooleanConstructor;
99 default: undefined;
100 };
101 virtualTranslate: {
102 type: BooleanConstructor;
103 default: undefined;
104 };
105 effect: {
106 type: PropType<SwiperOptions['effect']>;
107 default: undefined;
108 };
109 breakpoints: {
110 type: PropType<SwiperOptions['breakpoints']>;
111 default: undefined;
112 };
113 spaceBetween: {
114 type: PropType<SwiperOptions['spaceBetween']>;
115 default: undefined;
116 };
117 slidesPerView: {
118 type: PropType<SwiperOptions['slidesPerView']>;
119 default: undefined;
120 };
121 maxBackfaceHiddenSlides: {
122 type: NumberConstructor;
123 default: undefined;
124 };
125 slidesPerGroup: {
126 type: NumberConstructor;
127 default: undefined;
128 };
129 slidesPerGroupSkip: {
130 type: NumberConstructor;
131 default: undefined;
132 };
133 slidesPerGroupAuto: {
134 type: BooleanConstructor;
135 default: undefined;
136 };
137 centeredSlides: {
138 type: BooleanConstructor;
139 default: undefined;
140 };
141 centeredSlidesBounds: {
142 type: BooleanConstructor;
143 default: undefined;
144 };
145 slidesOffsetBefore: {
146 type: NumberConstructor;
147 default: undefined;
148 };
149 slidesOffsetAfter: {
150 type: NumberConstructor;
151 default: undefined;
152 };
153 normalizeSlideIndex: {
154 type: BooleanConstructor;
155 default: undefined;
156 };
157 centerInsufficientSlides: {
158 type: BooleanConstructor;
159 default: undefined;
160 };
161 watchOverflow: {
162 type: BooleanConstructor;
163 default: undefined;
164 };
165 roundLengths: {
166 type: BooleanConstructor;
167 default: undefined;
168 };
169 touchRatio: {
170 type: NumberConstructor;
171 default: undefined;
172 };
173 touchAngle: {
174 type: NumberConstructor;
175 default: undefined;
176 };
177 simulateTouch: {
178 type: BooleanConstructor;
179 default: undefined;
180 };
181 shortSwipes: {
182 type: BooleanConstructor;
183 default: undefined;
184 };
185 longSwipes: {
186 type: BooleanConstructor;
187 default: undefined;
188 };
189 longSwipesRatio: {
190 type: NumberConstructor;
191 default: undefined;
192 };
193 longSwipesMs: {
194 type: NumberConstructor;
195 default: undefined;
196 };
197 followFinger: {
198 type: BooleanConstructor;
199 default: undefined;
200 };
201 allowTouchMove: {
202 type: BooleanConstructor;
203 default: undefined;
204 };
205 threshold: { type: NumberConstructor; default: undefined };
206 touchMoveStopPropagation: {
207 type: BooleanConstructor;
208 default: undefined;
209 };
210 touchStartPreventDefault: {
211 type: BooleanConstructor;
212 default: undefined;
213 };
214 touchStartForcePreventDefault: {
215 type: BooleanConstructor;
216 default: undefined;
217 };
218 touchReleaseOnEdges: {
219 type: BooleanConstructor;
220 default: undefined;
221 };
222 uniqueNavElements: {
223 type: BooleanConstructor;
224 default: undefined;
225 };
226 resistance: {
227 type: BooleanConstructor;
228 default: undefined;
229 };
230 resistanceRatio: {
231 type: NumberConstructor;
232 default: undefined;
233 };
234 watchSlidesProgress: {
235 type: BooleanConstructor;
236 default: undefined;
237 };
238 grabCursor: {
239 type: BooleanConstructor;
240 default: undefined;
241 };
242 preventClicks: {
243 type: BooleanConstructor;
244 default: undefined;
245 };
246 preventClicksPropagation: {
247 type: BooleanConstructor;
248 default: undefined;
249 };
250 slideToClickedSlide: {
251 type: BooleanConstructor;
252 default: undefined;
253 };
254 loop: { type: BooleanConstructor; default: undefined };
255 loopedSlides: {
256 type: NumberConstructor;
257 default: undefined;
258 };
259 loopPreventsSliding: { type: BooleanConstructor; default: undefined };
260 rewind: { type: BooleanConstructor; default: undefined };
261 allowSlidePrev: {
262 type: BooleanConstructor;
263 default: undefined;
264 };
265 allowSlideNext: {
266 type: BooleanConstructor;
267 default: undefined;
268 };
269 swipeHandler: {
270 type: BooleanConstructor;
271 default: undefined;
272 };
273 noSwiping: {
274 type: BooleanConstructor;
275 default: undefined;
276 };
277 noSwipingClass: {
278 type: StringConstructor;
279 default: undefined;
280 };
281 noSwipingSelector: {
282 type: StringConstructor;
283 default: undefined;
284 };
285 passiveListeners: {
286 type: BooleanConstructor;
287 default: undefined;
288 };
289 containerModifierClass: {
290 type: StringConstructor;
291 default: undefined;
292 };
293 slideClass: {
294 type: StringConstructor;
295 default: undefined;
296 };
297 slideActiveClass: {
298 type: StringConstructor;
299 default: undefined;
300 };
301 slideVisibleClass: {
302 type: StringConstructor;
303 default: undefined;
304 };
305 slideNextClass: {
306 type: StringConstructor;
307 default: undefined;
308 };
309 slidePrevClass: {
310 type: StringConstructor;
311 default: undefined;
312 };
313 wrapperClass: {
314 type: StringConstructor;
315 default: undefined;
316 };
317 lazyPreloaderClass: {
318 type: StringConstructor;
319 default: undefined;
320 };
321 lazyPreloadPrevNext: {
322 type: NumberConstructor;
323 default: undefined;
324 };
325 runCallbacksOnInit: {
326 type: BooleanConstructor;
327 default: undefined;
328 };
329 observer: { type: BooleanConstructor; default: undefined };
330 observeParents: {
331 type: BooleanConstructor;
332 default: undefined;
333 };
334 observeSlideChildren: {
335 type: BooleanConstructor;
336 default: undefined;
337 };
338 a11y: {
339 type: PropType<A11yOptions | boolean>;
340 default: undefined;
341 };
342 autoplay: {
343 type: PropType<AutoplayOptions | boolean>;
344 default: undefined;
345 };
346 controller: {
347 type: PropType<ControllerOptions>;
348 default: undefined;
349 };
350 coverflowEffect: {
351 type: PropType<CoverflowEffectOptions>;
352 default: undefined;
353 };
354 cubeEffect: {
355 type: PropType<CubeEffectOptions>;
356 default: undefined;
357 };
358 fadeEffect: {
359 type: PropType<FadeEffectOptions>;
360 default: undefined;
361 };
362 flipEffect: {
363 type: PropType<FlipEffectOptions>;
364 default: undefined;
365 };
366 creativeEffect: {
367 type: PropType<CreativeEffectOptions>;
368 default: undefined;
369 };
370 cardsEffect: {
371 type: PropType<CardsEffectOptions>;
372 default: undefined;
373 };
374 hashNavigation: {
375 type: PropType<HashNavigationOptions | boolean>;
376 default: undefined;
377 };
378 history: {
379 type: PropType<HistoryOptions | boolean>;
380 default: undefined;
381 };
382 keyboard: {
383 type: PropType<KeyboardOptions | boolean>;
384 default: undefined;
385 };
386 mousewheel: {
387 type: PropType<MousewheelOptions | boolean>;
388 default: undefined;
389 };
390 navigation: {
391 type: PropType<NavigationOptions | boolean>;
392 default: undefined;
393 };
394 pagination: {
395 type: PropType<PaginationOptions | boolean>;
396 default: undefined;
397 };
398 parallax: {
399 type: PropType<ParallaxOptions | boolean>;
400 default: undefined;
401 };
402 scrollbar: {
403 type: PropType<ScrollbarOptions | boolean>;
404 default: undefined;
405 };
406 thumbs: { type: PropType<ThumbsOptions>; default: undefined };
407 virtual: {
408 type: PropType<VirtualOptions | boolean>;
409 default: undefined;
410 };
411 zoom: {
412 type: PropType<ZoomOptions | boolean>;
413 default: undefined;
414 };
415 freeMode: {
416 type: PropType<FreeModeOptions | boolean>;
417 default: undefined;
418 };
419 grid: {
420 type: PropType<GridOptions>;
421 default: undefined;
422 };
423 },
424 () => JSX.Element,
425 unknown,
426 {},
427 {},
428 ComponentOptionsMixin,
429 ComponentOptionsMixin,
430 {
431 swiper: (swiper: SwiperClass) => void;
432 /**
433 * Event will be fired in when autoplay started
434 */
435 autoplayStart: (swiper: SwiperClass) => void;
436 /**
437 * Event will be fired when autoplay stopped
438 */
439 autoplayStop: (swiper: SwiperClass) => void;
440 /**
441 * Event will be fired on autoplay pause
442 */
443 autoplayPause: (swiper: SwiperClass) => void;
444 /**
445 * Event will be fired on autoplay resume
446 */
447 autoplayResume: (swiper: SwiperClass) => void;
448 /**
449 * Event triggers continuously while autoplay is enabled. It contains time left (in ms) before transition to next slide and percentage of that time related to autoplay delay
450 */
451 autoplayTimeLeft: (swiper: SwiperClass, timeLeft: number, percentage: number) => void;
452 /**
453 * Event will be fired when slide changed with autoplay
454 */
455 autoplay: (swiper: SwiperClass) => void;/**
456 * Event will be fired on window hash change
457 */
458 hashChange: (swiper: SwiperClass) => void;
459 /**
460 * Event will be fired when swiper updates the hash
461 */
462 hashSet: (swiper: SwiperClass) => void;/**
463 * Event will be fired on mousewheel scroll
464 */
465 scroll: (swiper: SwiperClass, event: WheelEvent) => void;/**
466 * Event will be fired on navigation hide
467 */
468 navigationHide: (swiper: SwiperClass) => void;
469 /**
470 * Event will be fired on navigation show
471 */
472 navigationShow: (swiper: SwiperClass) => void;
473 /**
474 * Event will be fired on navigation prev button click
475 */
476 navigationPrev: (swiper: SwiperClass) => void;
477 /**
478 * Event will be fired on navigation next button click
479 */
480 navigationNext: (swiper: SwiperClass) => void;/**
481 * Event will be fired on key press
482 */
483 keyPress: (swiper: SwiperClass, keyCode: string) => void;/**
484 * Event will be fired after pagination rendered
485 */
486 paginationRender: (swiper: SwiperClass, paginationEl: HTMLElement) => void;
487
488 /**
489 * Event will be fired when pagination updated
490 */
491 paginationUpdate: (swiper: SwiperClass, paginationEl: HTMLElement) => void;
492
493 /**
494 * Event will be fired on pagination hide
495 */
496 paginationHide: (swiper: SwiperClass) => void;
497
498 /**
499 * Event will be fired on pagination show
500 */
501 paginationShow: (swiper: SwiperClass) => void;/**
502 * Event will be fired on draggable scrollbar drag start
503 */
504 scrollbarDragStart: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
505
506 /**
507 * Event will be fired on draggable scrollbar drag move
508 */
509 scrollbarDragMove: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
510
511 /**
512 * Event will be fired on draggable scrollbar drag end
513 */
514 scrollbarDragEnd: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;/**
515 * Event will be fired on zoom change
516 */
517 zoomChange: (swiper: SwiperClass, scale: number, imageEl: HTMLElement, slideEl: HTMLElement) => void;
518
519 /**
520 * Fired right after Swiper initialization.
521 * @note Note that with `swiper.on('init')` syntax it will
522 * work only in case you set `init: false` parameter.
523 *
524 * @example
525 * ```js
526 * const swiper = new Swiper('.swiper', {
527 * init: false,
528 * // other parameters
529 * });
530 * swiper.on('init', function() {
531 * // do something
532 * });
533 * // init Swiper
534 * swiper.init();
535 * ```
536 *
537 * @example
538 * ```js
539 * // Otherwise use it as the parameter:
540 * const swiper = new Swiper('.swiper', {
541 * // other parameters
542 * on: {
543 * init: function () {
544 * // do something
545 * },
546 * }
547 * });
548 * ```
549 */
550 init: (swiper: SwiperClass) => any;
551
552 /**
553 * Event will be fired right before Swiper destroyed
554 */
555 beforeDestroy: (swiper: SwiperClass) => void;
556
557 /**
558 * Event will be fired when currently active slide is changed
559 */
560 slideChange: (swiper: SwiperClass) => void;
561
562 /**
563 * Event will be fired in the beginning of animation to other slide (next or previous).
564 */
565 slideChangeTransitionStart: (swiper: SwiperClass) => void;
566
567 /**
568 * Event will be fired after animation to other slide (next or previous).
569 */
570 slideChangeTransitionEnd: (swiper: SwiperClass) => void;
571
572 /**
573 * Same as "slideChangeTransitionStart" but for "forward" direction only
574 */
575 slideNextTransitionStart: (swiper: SwiperClass) => void;
576
577 /**
578 * Same as "slideChangeTransitionEnd" but for "forward" direction only
579 */
580 slideNextTransitionEnd: (swiper: SwiperClass) => void;
581
582 /**
583 * Same as "slideChangeTransitionStart" but for "backward" direction only
584 */
585 slidePrevTransitionStart: (swiper: SwiperClass) => void;
586
587 /**
588 * Same as "slideChangeTransitionEnd" but for "backward" direction only
589 */
590 slidePrevTransitionEnd: (swiper: SwiperClass) => void;
591
592 /**
593 * Event will be fired in the beginning of transition.
594 */
595 transitionStart: (swiper: SwiperClass) => void;
596
597 /**
598 * Event will be fired after transition.
599 */
600 transitionEnd: (swiper: SwiperClass) => void;
601
602 /**
603 * Event will be fired when user touch Swiper. Receives `touchstart` event as an arguments.
604 */
605 touchStart: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
606
607 /**
608 * Event will be fired when user touch and move finger over Swiper. Receives `touchmove` event as an arguments.
609 */
610 touchMove: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
611
612 /**
613 * Event will be fired when user touch and move finger over Swiper in direction opposite to direction parameter. Receives `touchmove` event as an arguments.
614 */
615 touchMoveOpposite: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
616
617 /**
618 * Event will be fired when user touch and move finger over Swiper and move it. Receives `touchmove` event as an arguments.
619 */
620 sliderMove: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
621
622 /**
623 * Event will be fired when user release Swiper. Receives `touchend` event as an arguments.
624 */
625 touchEnd: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
626
627 /**
628 * Event will be fired when user click/tap on Swiper. Receives `touchend` event as an arguments.
629 */
630 click: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
631
632 /**
633 * Event will be fired when user click/tap on Swiper. Receives `touchend` event as an arguments.
634 */
635 tap: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
636
637 /**
638 * Event will be fired when user double tap on Swiper's container. Receives `touchend` event as an arguments
639 */
640 doubleTap: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
641
642 /**
643 * Event will be fired when Swiper progress is changed, as an arguments it receives progress that is always from 0 to 1
644 */
645 progress: (swiper: SwiperClass, progress: number) => void;
646
647 /**
648 * Event will be fired when Swiper reach its beginning (initial position)
649 */
650 reachBeginning: (swiper: SwiperClass) => void;
651
652 /**
653 * Event will be fired when Swiper reach last slide
654 */
655 reachEnd: (swiper: SwiperClass) => void;
656
657 /**
658 * Event will be fired when Swiper goes to beginning or end position
659 */
660 toEdge: (swiper: SwiperClass) => void;
661
662 /**
663 * Event will be fired when Swiper goes from beginning or end position
664 */
665 fromEdge: (swiper: SwiperClass) => void;
666
667 /**
668 * Event will be fired when swiper's wrapper change its position. Receives current translate value as an arguments
669 */
670 setTranslate: (swiper: SwiperClass, translate: number) => void;
671
672 /**
673 * Event will be fired everytime when swiper starts animation. Receives current transition duration (in ms) as an arguments
674 */
675 setTransition: (swiper: SwiperClass, transition: number) => void;
676
677 /**
678 * Event will be fired on window resize right before swiper's onresize manipulation
679 */
680 resize: (swiper: SwiperClass) => void;
681
682 /**
683 * Event will be fired if observer is enabled and it detects DOM mutations
684 */
685 observerUpdate: (swiper: SwiperClass) => void;
686
687 /**
688 * Event will be fired right before "loop fix"
689 */
690 beforeLoopFix: (swiper: SwiperClass) => void;
691
692 /**
693 * Event will be fired after "loop fix"
694 */
695 loopFix: (swiper: SwiperClass) => void;
696
697 /**
698 * Event will be fired on breakpoint change
699 */
700 breakpoint: (swiper: SwiperClass, breakpointParams: SwiperOptions) => void;
701
702 /**
703 * !INTERNAL: Event will fired right before breakpoint change
704 */
705 _beforeBreakpoint: (swiper: SwiperClass, breakpointParams: SwiperOptions) => void;
706
707 /**
708 * !INTERNAL: Event will fired after setting CSS classes on swiper container element
709 */
710 _containerClasses: (swiper: SwiperClass, classNames: string) => void;
711
712 /**
713 * !INTERNAL: Event will fired after setting CSS classes on swiper slide element
714 */
715 _slideClass: (swiper: SwiperClass, slideEl: HTMLElement, classNames: string) => void;
716
717 /**
718 * !INTERNAL: Event will fired after setting CSS classes on all swiper slides
719 */
720 _slideClasses: (
721 swiper: SwiperClass,
722 slides: { slideEl: HTMLElement; classNames: string; index: number }[],
723 ) => void;
724
725 /**
726 * !INTERNAL: Event will fired as soon as swiper instance available (before init)
727 */
728 _swiper: (swiper: SwiperClass) => void;
729
730 /**
731 * !INTERNAL: Event will be fired on free mode touch end (release) and there will no be momentum
732 */
733 _freeModeNoMomentumRelease: (swiper: SwiperClass) => void;
734
735 /**
736 * Event will fired on active index change
737 */
738 activeIndexChange: (swiper: SwiperClass) => void;
739 /**
740 * Event will fired on snap index change
741 */
742 snapIndexChange: (swiper: SwiperClass) => void;
743 /**
744 * Event will fired on real index change
745 */
746 realIndexChange: (swiper: SwiperClass) => void;
747 /**
748 * Event will fired right after initialization
749 */
750 afterInit: (swiper: SwiperClass) => void;
751 /**
752 * Event will fired right before initialization
753 */
754 beforeInit: (swiper: SwiperClass) => void;
755 /**
756 * Event will fired before resize handler
757 */
758 beforeResize: (swiper: SwiperClass) => void;
759 /**
760 * Event will fired before slide change transition start
761 */
762 beforeSlideChangeStart: (swiper: SwiperClass) => void;
763 /**
764 * Event will fired before transition start
765 */
766 beforeTransitionStart: (swiper: SwiperClass, speed: number, internal: any) => void; // what is internal?
767 /**
768 * Event will fired on direction change
769 */
770 changeDirection: (swiper: SwiperClass) => void;
771 /**
772 * Event will be fired when user double click/tap on Swiper
773 */
774 doubleClick: (swiper: SwiperClass, event: MouseEvent | TouchEvent | PointerEvent) => void;
775 /**
776 * Event will be fired on swiper destroy
777 */
778 destroy: (swiper: SwiperClass) => void;
779 /**
780 * Event will be fired on momentum bounce
781 */
782 momentumBounce: (swiper: SwiperClass) => void;
783 /**
784 * Event will be fired on orientation change (e.g. landscape -> portrait)
785 */
786 orientationchange: (swiper: SwiperClass) => void;
787 /**
788 * Event will be fired in the beginning of animation of resetting slide to current one
789 */
790 slideResetTransitionStart: (swiper: SwiperClass) => void;
791 /**
792 * Event will be fired in the end of animation of resetting slide to current one
793 */
794 slideResetTransitionEnd: (swiper: SwiperClass) => void;
795 /**
796 * Event will be fired with first touch/drag move
797 */
798 sliderFirstMove: (swiper: SwiperClass, event: TouchEvent) => void;
799 /**
800 * Event will be fired when number of slides has changed
801 */
802 slidesLengthChange: (swiper: SwiperClass) => void;
803 /**
804 * Event will be fired when slides grid has changed
805 */
806 slidesGridLengthChange: (swiper: SwiperClass) => void;
807 /**
808 * Event will be fired when snap grid has changed
809 */
810 snapGridLengthChange: (swiper: SwiperClass) => void;
811 /**
812 * Event will be fired after swiper.update() call
813 */
814 update: (swiper: SwiperClass) => void;
815 /**
816 * Event will be fired when swiper is locked (when `watchOverflow` enabled)
817 */
818 lock: (swiper: SwiperClass) => void;
819 /**
820 * Event will be fired when swiper is unlocked (when `watchOverflow` enabled)
821 */
822 unlock: (swiper: SwiperClass) => void;
823
824 }
825>;
826
827declare const SwiperSlide: DefineComponent<{
828 tag: {
829 type: StringConstructor;
830 default: string;
831 };
832 swiperRef: { type: PropType<SwiperClass>; required: false };
833 lazy: { type: BooleanConstructor; default: false };
834 zoom: { type: BooleanConstructor; default: undefined };
835 virtualIndex: {
836 type: StringConstructor | NumberConstructor;
837 default: undefined;
838 };
839}>;
840
841declare const useSwiper: () => Ref<SwiperClass>;
842declare const useSwiperSlide: () => Ref<{
843 isActive: boolean;
844 isVisible: boolean;
845 isPrev: boolean;
846 isNext: boolean;
847}>;
848
849export { Swiper, SwiperSlide, useSwiper, useSwiperSlide };