import { Accessor } from "solid-js"; import { KeenSliderInstance } from "keen-slider"; /** * Provides an autoplay plugin. * * Call this from within a component (or other reactive owner) so the pause * signal is tracked and the timer is cleaned up with it. * * @param interval - Interval in milliseconds for switching slides * @param options - Options to customize the autoplay * @param options.pause - A pause signal to control the autoplay * @param options.pauseOnDrag - Denotes of the autoplay should pause on drag. * @param options.animation - Allows for control of duration and easing. * @param options.duration - Duration for transitioning the slide. * @param options.easing - Easing function for the transition animation. * * @example * ```ts * const [create] = createSlider({}, autoplay(1000, {})); * ``` */ export declare const autoplay: (interval?: number, options?: { pause?: Accessor; pauseOnDrag?: boolean; animation?: { duration?: number; easing?: (t: number) => number; }; }) => (instance: KeenSliderInstance) => void;