import { Swiper, SwiperEvents } from 'swiper/types'; /** * The swiper.js `slideChange` event is fired before the slide transition is complete. * This is too early for us to update the clip assets (video URL and poster image) since the previous * active slide is still visible. The `setTransition` event is fired after the transition is complete, * so late enough for us to update the out-of-bounds assets without the user noticing, but that event * doesn't include the previous slide index. * * This plugin creates a custom `slideTransitionEnd` event that: * - Is fired after the slide transition is complete (ie it went from 300ms to 0ms) * - Contains relevant navigation information (previous and active slide index) * This allows us to update the clip assets in useSwiperSlides.ts */ declare function SlideTransitionEndPlugin({ on, emit, }: { on: (event: keyof SwiperEvents, handler: (swiper: Swiper, ...args: unknown[]) => void) => void; emit: (event: string, ...args: unknown[]) => void; }): void; export { SlideTransitionEndPlugin as default };