import * as React from 'react'; import { SwiperContainerProps } from './SwiperContainer'; import { SwiperWrapperProps } from './SwiperWrapper'; import { SwiperTrackProps } from './SwiperTrack'; import SwiperSlide, { SwiperSlideBaseProps, SwiperSlideProps } from './SwiperSlide'; export * from './SwiperSlide'; export type SwiperSlideBaseElement = React.ReactElement; export type SwiperSlideElement = React.ReactElement; export type SwiperRef = { next: () => void; prev: () => void; goToIndex: (index: number) => void; getRealIndex: () => number; getTotalSlides: () => number; pause: () => void; resume: () => void; }; export interface SwiperOverrides { readonly Container?: React.ComponentType>; readonly Wrapper?: React.ComponentType>; readonly Track?: React.ComponentType>; } export type SwiperProps = Omit, 'children'> & { readonly dragThreshold?: number; readonly snap?: boolean; readonly draggable?: boolean; readonly initialIndex?: number; readonly infinite?: boolean; readonly onSlideChange?: (realIndex: number) => void; readonly autoplay?: boolean; readonly autoplayInterval?: number; readonly pauseOnHover?: boolean; readonly threshold?: number; readonly resistance?: boolean; readonly slidesPerView?: number; readonly children?: readonly SwiperSlideBaseElement[]; readonly overrides?: SwiperOverrides; }; export declare const Swiper: React.ForwardRefExoticComponent, "children"> & { readonly dragThreshold?: number | undefined; readonly snap?: boolean | undefined; readonly draggable?: boolean | undefined; readonly initialIndex?: number | undefined; readonly infinite?: boolean | undefined; readonly onSlideChange?: ((realIndex: number) => void) | undefined; readonly autoplay?: boolean | undefined; readonly autoplayInterval?: number | undefined; readonly pauseOnHover?: boolean | undefined; readonly threshold?: number | undefined; readonly resistance?: boolean | undefined; readonly slidesPerView?: number | undefined; readonly children?: readonly SwiperSlideBaseElement[] | undefined; readonly overrides?: SwiperOverrides | undefined; } & React.RefAttributes>; export default Swiper;