import { Accessor } from "solid-js"; import { KeenSliderInstance } from "keen-slider"; /** * Provides an autoplay plugin. * * @param {number} interval Interval in milliseconds for switching slides * @param {object} options Options to customize the autoplay * @param {Function} options.pause A pause signal to control the autoplay * @param {boolean} options.pauseOnDrag Denotes of the autoplay should pause on drag. * @param {object} options.animation Allows for control of duration and easing. * @param {number} options.duration Duration for transitioning the slide. * @param {number} options.easing Easing function for the transition animation. * * @example * ```ts * const [create] = createSlider({}, [autoplay]); * ``` */ declare const autoplay: (interval: number, options: { pause?: Accessor; pauseOnDrag?: boolean; animation?: { duration?: number; easing?: (t: number) => number; }; }) => (slider: KeenSliderInstance) => void; export default autoplay;