import Swiper from '../swiper-class'; export interface AutoplayMethods { /** * Whether autoplay enabled and running */ running: boolean; /** * Start autoplay */ start(): boolean; /** * Stop autoplay */ stop(): boolean; } export interface AutoplayEvents { /** * Event will be fired in when autoplay started */ autoplayStart: (swiper: Swiper) => void; /** * Event will be fired when autoplay stopped */ autoplayStop: (swiper: Swiper) => void; /** * Event will be fired on autoplay pause (on mouse/pointer enter), when `pauseOnMouseEnter` enabled */ autoplayPause: (swiper: Swiper) => void; /** * Event will be fired on autoplay resume (on mouse/pointer leave), when `pauseOnMouseEnter` enabled */ autoplayResume: (swiper: Swiper) => void; /** * Event will be fired when slide changed with autoplay */ autoplay: (swiper: Swiper) => void; } /** * Object with autoplay parameters or boolean `true` to enable with default settings. * * @example * ```js * const swiper = new Swiper('.swiper', { * autoplay: { * delay: 5000, * }, * }); * ``` */ export interface AutoplayOptions { /** * Delay between transitions (in ms). If this parameter is not specified, auto play will be disabled * * If you need to specify different delay for specific slides you can do it by using * `data-swiper-autoplay` (in ms) attribute on slide. * * @example * ```html * *