UNPKG

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