| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621 | /** * The interface for the Options component. * * @since 3.0.0 */interface MediaComponent extends BaseComponent {}/** * The interface for the Direction component. * * @since 3.0.0 */interface DirectionComponent extends BaseComponent {    resolve(prop: string, axisOnly?: boolean, direction?: Options['direction']): string;    orient(value: number): number;}/** * The interface for elements which the slider consists of. * * @since 3.0.0 */interface ElementCollection {    root: HTMLElement;    track: HTMLElement;    list: HTMLElement;    slides: HTMLElement[];    arrows: HTMLElement | null;    pagination: HTMLUListElement | null;    prev: HTMLButtonElement | null;    next: HTMLButtonElement | null;    bar: HTMLElement | null;    autoplay: HTMLElement | null;    play: HTMLButtonElement | null;    pause: HTMLButtonElement | null;}/** * The interface for the Elements component. * * @since 3.0.0 */interface ElementsComponent extends BaseComponent, ElementCollection {}/** * The interface for the Slide sub component. * * @since 3.0.0 */interface SlideComponent extends BaseComponent {    index: number;    slideIndex: number;    slide: HTMLElement;    container: HTMLElement;    isClone: boolean;    update(): void;    style(prop: string, value: string | number, useContainer?: boolean): void;    isWithin(from: number, distance: number): boolean;}/** * The interface for the Layout component. * * @since 3.0.0 */interface LayoutComponent extends BaseComponent {    listSize(): number;    slideSize(index: number, withoutGap?: boolean): number;    sliderSize(): number;    totalSize(index?: number, withoutGap?: boolean): number;    getPadding(right: boolean): number;}/** * The interface for the Clone component. * * @since 3.0.0 */interface ClonesComponent extends BaseComponent {}/** * The interface for the Move component. * * @since 3.0.0 */interface MoveComponent extends BaseComponent {    move(dest: number, index: number, prev: number, callback?: AnyFunction): void;    jump(index: number): void;    translate(position: number, preventLoop?: boolean): void;    shift(position: number, backwards: boolean): number;    cancel(): void;    toIndex(position: number): number;    toPosition(index: number, trimming?: boolean): number;    getPosition(): number;    getLimit(max: boolean): number;    exceededLimit(max?: boolean | undefined, position?: number): boolean;    /** @internal */    reposition(): void;}/** * The interface for the Controller component. * * @since 3.0.0 */interface ControllerComponent extends BaseComponent {    go(control: number | string, allowSameIndex?: boolean, callback?: AnyFunction): void;    scrollTo(index: number, duration?: number, callback?: AnyFunction): void;    scroll(destination: number, duration?: number, snap?: boolean, callback?: AnyFunction): void;    getNext(destination?: boolean): number;    getPrev(destination?: boolean): number;    getAdjacent(prev: boolean, destination?: boolean): number;    getEnd(): number;    setIndex(index: number): void;    getIndex(prev?: boolean): number;    toIndex(page: number): number;    toPage(index: number): number;    toDest(position: number): number;    hasFocus(): boolean;    isBusy(): boolean;}/** * The interface for the Arrows component. * * @since 3.0.0 */interface ArrowsComponent extends BaseComponent {    arrows: {        prev?: HTMLButtonElement;        next?: HTMLButtonElement;    };}/** * The interface for the Autoplay component. * * @since 3.0.0 */interface AutoplayComponent extends BaseComponent {    play(): void;    pause(): void;    isPaused(): boolean;}/** * The interface for the Cover component. * * @since 3.0.0 */interface CoverComponent extends BaseComponent {}/** * The interface for the Scroll component. * * @since 3.0.0 */interface ScrollComponent extends BaseComponent {    scroll(position: number, duration?: number, snap?: boolean, callback?: AnyFunction): void;    cancel(): void;}/** * The interface for the Drag component. * * @since 3.0.0 */interface DragComponent extends BaseComponent {    disable(disabled: boolean): void;    isDragging(): boolean;}/** * The interface for the Keyboard component. * * @since 3.0.0 */interface KeyboardComponent extends BaseComponent {    disable(disabled: boolean): void;}/** * The interface for the LazyLoad component. * * @since 3.0.0 */interface LazyLoadComponent extends BaseComponent {}/** * The interface for the Pagination component. * * @since 3.0.0 */interface PaginationComponent extends BaseComponent {    items: PaginationItem[];    getAt(index: number): PaginationItem;    update(): void;}/** * The interface for data of the pagination. * * @since 3.0.0 */interface PaginationData {    list: HTMLUListElement;    items: PaginationItem[];}/** * The interface for each pagination item. * * @since 3.0.0 */interface PaginationItem {    li: HTMLLIElement;    button: HTMLButtonElement;    page: number;}/** * The interface for the Sync component. * * @since 3.0.0 */interface SyncComponent extends BaseComponent {    remount(): void;}/** * The interface for the Wheel component. * * @since 3.0.0 */interface WheelComponent extends BaseComponent {}/** * The interface for the Live component. * * @since 4.0.0 */interface LiveComponent extends BaseComponent {    disable(disabled: boolean): void;}/** * The collection of i18n strings. * * @since 3.0.0 */declare const I18N: {    prev: string;    next: string;    first: string;    last: string;    slideX: string;    pageX: string;    play: string;    pause: string;    carousel: string;    slide: string;    select: string;    slideLabel: string;};/** * The interface for options. * * @since 3.0.0 */interface Options extends ResponsiveOptions {    /**     * The type of the slider.     * - 'slide': A slider with the slide transition     * - 'loop' : A carousel slider     * - 'fade' : A slider with the fade transition. This does not support the perPage option.     */    type?: string;    /**     * The `role` attribute for the root element.     * If the tag is `<section>`, this value will not be used. The default value is `'region'`.     */    role?: string;    /**     * Determines whether to disable any actions while the slider is transitioning.     * Even if `false`, the slider forcibly waits for transition on the loop points.     */    waitForTransition?: boolean;    /**     * If `true`, the width of slides are determined by their width.     * The `perPage` and `perMove` options should be `1`.     */    autoWidth?: boolean;    /**     * If `true`, the height of slides are determined by their height.     * The `perPage` and `perMove` options should be `1`.     */    autoHeight?: boolean;    /**     * The start index.     */    start?: number;    /**     * Changes the arrow SVG path, like 'm7.61 0.807-2.12...'.     */    arrowPath?: string;    /**     * Determines whether to activate autoplay or not.     * If `paused`, it will not begin when the slider becomes active.     * You need to provided play/pause buttons or manually start it by `Autoplay#play()`.     */    autoplay?: boolean | 'pause';    /**     * The autoplay interval in milliseconds.     */    interval?: number;    /**     * Determines whether to pause autoplay on mouseover.     */    pauseOnHover?: boolean;    /**     * Determines whether to pause autoplay when the slider contains the active element (focused element).     * This should be `true` for accessibility.     */    pauseOnFocus?: boolean;    /**     * Determines whether to reset the autoplay progress when it is requested to start again.     */    resetProgress?: boolean;    /**     * Enables lazy loading.     * Provide the `src` by the `data-splide-lazy` or the `srcset` by the `data-splide-lazy-srcset`.     * You may also provide `src` for the placeholder, but the value must be different with the data.     *     * - `false`: Disables lazy loading     * - `'nearby'`: Starts loading only images around the active slide (page)     * - `'sequential'`: Loads images sequentially     */    lazyLoad?: boolean | 'nearby' | 'sequential';    /**     * Determine how many pages (not slides) around the active slide should be loaded beforehand.     * This only works when the `lazyLoad` option is `'nearby'`.     */    preloadPages?: number;    /**     * Enables keyboard shortcuts for the slider control.     * - `true` or `'global'`: Listens to the `keydown` event of the document.     * - 'focused': Listens to the `keydown` event of the slider root element with adding `tabindex="0"` to it.     * - `false`: Disables keyboard shortcuts (default).     */    keyboard?: boolean | string;    /**     * Enables navigation by the mouse wheel.     * Set `waitForTransition` to `ture` or provide the `sleep` duration.     */    wheel?: boolean | {        /**         * The threshold to cut off the small delta produced by inertia scroll.         */        min?: number;        /**         * The sleep time in milliseconds until accepting next wheel.         * The timer starts when the transition begins.         */        sleep?: number;    };    /**     * Determines whether to release the wheel event when the slider reaches the first or last slide.     */    releaseWheel?: boolean;    /**     * The direction of the slider.     * - 'ltr': Left to right     * - 'rtl': Right to left     * - 'ttb': Top to bottom     */    direction?: 'ltr' | 'rtl' | 'ttb';    /**     * Converts the image `src` to the css `background-image` URL of the parent element.     * This requires `fixedHeight` or `heightRatio` option.     */    cover?: boolean;    /**     * Determines whether to add `tabindex="0"` to visible slides or not.     */    slideFocus?: boolean;    /**     * If `true`, the slider makes slides clickable to navigate another slider.     * Use `Splide#sync()` to sync multiple sliders.     */    isNavigation?: boolean;    /**     * Determines whether to trim spaces before/after the slider if the `focus` option is available.     * - `true`: Trims spaces. The slider may stay on the same location even when requested to move.     * - `'move'`: Trims spaces and focuses to move the slider when requested.     */    trimSpace?: boolean | 'move';    /**     * Updates the `is-active` status of slides just before moving the slider.     */    updateOnMove?: boolean;    /**     * If `min`, the media query for breakpoints will be `min-width`, or otherwise, `max-width`.     */    mediaQuery?: 'min' | 'max';    /**     * The selector to get focusable elements     * where `tabindex="-1"` will be assigned when their ascendant slide is hidden.     */    focusableNodes?: string;    /**     * The selector for nodes that cannot be dragged.     */    noDrag?: string;    /**     * Enables the live region by `aria-live`.     * If `true`, screen readers will read a content of each slide whenever slide changes.     */    live?: boolean;    /**     * Determines whether to use the Transition component or not.     */    useScroll?: boolean;    /**     * Options for specific breakpoints.     *     * @example     * ```ts     * {     *   1000: {     *     perPage: 3,     *     gap    : 20     *   },     *   600: {     *     perPage: 1,     *     gap    : 5,     *   },     * }     * ```     */    breakpoints?: Record<string | number, ResponsiveOptions>;    /**     * The collection of class names.     */    classes?: Record<string, string>;    /**     * The collection of i18n strings.     */    i18n?: Record<keyof typeof I18N | string, string>;}/** * The interface for options that can correspond with breakpoints. * * @since 3.0.0 */interface ResponsiveOptions {    /**     * Accepts arbitrary properties for extensions, although it's not ideal typing.     */    [key: string]: any;    /**     * The transition speed in milliseconds.     */    speed?: number;    /**     * Determines whether to rewind the slider or not.     */    rewind?: boolean;    /**     * The transition speed on rewind in milliseconds.     */    rewindSpeed?: number;    /**     * Allows to rewind by drag.     * The slider `type` must be `slide` (or `undefined`) and the `drag` option must be enabled.     */    rewindByDrag?: boolean;    /**     * Defines the slider max width, accepting the CSS format such as 10em, 80vw.     */    width?: number | string;    /**     * Defines the slider height, accepting the CSS format.     */    height?: number | string;    /**     * Fixes width of slides, accepting the CSS format.     * The slider will ignore the `perPage` option if you provide this value.     */    fixedWidth?: number | string;    /**     * Fixes height of slides, accepting the CSS format.     * The slider will ignore the `heightRatio` option if you provide this value.     */    fixedHeight?: number | string;    /**     * Determines height of slides by the ratio to the slider width.     * For example, when the slider width is `1000` and the ratio is `0.5`, the height will be `500`.     */    heightRatio?: number;    /**     * Determines the number of slides to display in a page.     */    perPage?: number;    /**     * Determines the number of slides to move at once.     */    perMove?: number;    /**     * Determine the number of clones on each side of the slider.     * In most cases, you don't need to provide this value.     */    clones?: number;    /**     * Determines whether to clone status classes for clones or not.     */    cloneStatus?: boolean;    /**     * Determines which slide should be active if there are multiple slides in a page.     * Numbers and `'center'` are acceptable.     */    focus?: number | 'center';    /**     * The gap between slides. The CSS format is acceptable, such as `1em`.     */    gap?: number | string;    /**     * Sets padding left/right or top/bottom of the slider.     * The CSS format is acceptable, such as `1em`.     *     * @example     * ```ts     * // By number     * padding: 10,     *     * // By the CSS format     * padding: '1rem',     *     * // Specifies each value for a horizontal slider     * padding: { left: 10, right: 20 },     * padding: { left: '1rem', right: '2rem' },     *     * // Specified each value for a vertical slider     * padding: { top: 10, bottom: 20 },     * ```     */    padding?: number | string | {        left?: number | string;        right?: number | string;    } | {        top?: number | string;        bottom?: number | string;    };    /**     * Determines whether to create/find arrows or not.     */    arrows?: boolean;    /**     * Determines whether to create pagination (indicator dots) or not.     */    pagination?: boolean;    /**     * Determines whether to enable keyboard shortcuts for pagination when it contains focus.     * The default value is `true`.     */    paginationKeyboard?: boolean;    /**     * Explicitly sets the pagination direction that does not only affect appearance but also shortcuts and ARIA attributes.     * The default value is same with the carousel direction.     */    paginationDirection?: Options['direction'];    /**     * The timing function for the CSS transition. For example, `linear`, ease or `cubic-bezier()`.     */    easing?: string;    /**     * The easing function for the drag free mode.     * The default function is the `easeOutQuart` interpolation.     */    easingFunc?: (t: number) => number;    /**     * Allows to drag the slider by a mouse or swipe.     * If `free`, the slider does not snap to a slide after drag.     */    drag?: boolean | 'free';    /**     * Snaps the closest slide in the drag-free mode.     */    snap?: boolean;    /**     * The required distance to start moving the slider by the touch action.     * If you want to define the threshold for the mouse, provide an object.     */    dragMinThreshold?: number | {        mouse: number;        touch: number;    };    /**     * Determine the power of "flick". The larger number this is, the farther the slider runs.     * Around 500 is recommended.     */    flickPower?: number;    /**     * Limits the number of pages to move by "flick".     */    flickMaxPages?: number;    /**     * Destroys the slider.     */    destroy?: boolean | 'completely';}/** * The type for any function. * * @since 3.0.0 */declare type AnyFunction = (...args: any[]) => any;/** * The type for a component. * * @since 3.0.0 */declare type ComponentConstructor = (Splide: Splide, Components: Components, options: Options) => BaseComponent;/** * The interface for any component. * * @since 3.0.0 */interface BaseComponent {    setup?(): void;    mount?(): void;    destroy?(completely?: boolean): void;}/** * The interface for the Transition component. * * @since 3.0.0 */interface TransitionComponent extends BaseComponent {    start(index: number, done: () => void): void;    cancel(): void;}/** * The interface for info of a splide instance to sync with. * * @since 3.2.8 */interface SyncTarget {    splide: Splide;    isParent?: boolean;}/** * The interface for all components. * * @since 3.0.0 */interface Components {    [key: string]: BaseComponent;    Media: MediaComponent;    Direction: DirectionComponent;    Elements: ElementsComponent;    Slides: SlidesComponent;    Layout: LayoutComponent;    Clones: ClonesComponent;    Move: MoveComponent;    Controller: ControllerComponent;    Arrows: ArrowsComponent;    Autoplay: AutoplayComponent;    Cover: CoverComponent;    Scroll: ScrollComponent;    Drag: DragComponent;    Keyboard: KeyboardComponent;    LazyLoad: LazyLoadComponent;    Pagination: PaginationComponent;    Sync: SyncComponent;    Wheel: WheelComponent;    Live: LiveComponent;    Transition: TransitionComponent;}/** * The interface for all internal events. * * @since 3.0.0 */interface EventMap {    'mounted': () => void;    'ready': () => void;    'click': (Slide: SlideComponent, e: MouseEvent) => void;    'move': (index: number, prev: number, dest: number) => void;    'moved': (index: number, prev: number, dest: number) => void;    'active': (Slide: SlideComponent) => void;    'inactive': (Slide: SlideComponent) => void;    'visible': (Slide: SlideComponent) => void;    'hidden': (Slide: SlideComponent) => void;    'refresh': () => void;    'updated': (options: Options) => void;    'resize': () => void;    'resized': () => void;    'drag': () => void;    'dragging': () => void;    'dragged': () => void;    'scroll': () => void;    'scrolled': () => void;    'destroy': () => void;    'arrows:mounted': (prev: HTMLButtonElement, next: HTMLButtonElement) => void;    'arrows:updated': (prev: HTMLButtonElement, next: HTMLButtonElement, prevIndex: number, nextIndex: number) => void;    'pagination:mounted': (data: PaginationData, item: PaginationItem) => void;    'pagination:updated': (data: PaginationData, prev: PaginationItem, curr: PaginationItem) => void;    'navigation:mounted': (splides: Splide[]) => void;    'autoplay:play': () => void;    'autoplay:playing': (rate: number) => void;    'autoplay:pause': () => void;    'lazyload:loaded': (img: HTMLImageElement, Slide: SlideComponent) => void;    /** @internal */    'shifted': () => void;    'slide:keydown': (Slide: SlideComponent, e: KeyboardEvent) => void;    'media': (query: MediaQueryList) => void;}/** * Casts T to U. * * @internal */declare type Cast<T, U> = T extends U ? T : U;/** * Makes the T easy to read. */declare type Resolve<T> = {    [K in keyof T]: T[K];} & unknown;/** * Pushes U to tuple T. * * @internal */declare type Push<T extends any[], U = any> = [...T, U];/** * Returns the first type of the tuple. * * @internal */declare type Head<T extends any[]> = ((...args: T) => any) extends (arg: infer A, ...args: any[]) => any ? A : never;/** * Removes the first type from the tuple T. * * @internal */declare type Shift<T extends any[]> = ((...args: T) => any) extends (arg: any, ...args: infer A) => any ? A : never;/** * Removes the N types from the tuple T. * * @internal */declare type ShiftN<T extends any[], N extends number, C extends any[] = []> = {    0: T;    1: ShiftN<Shift<T>, N, Push<C>>;}[C['length'] extends N ? 0 : 1] extends infer A ? Cast<A, any[]> : never;/** * The interface for the Slides component. * * @since 3.0.0 */interface SlidesComponent extends BaseComponent {    update(): void;    register(slide: HTMLElement, index: number, slideIndex: number): void;    get(excludeClones?: boolean): SlideComponent[];    getIn(page: number): SlideComponent[];    getAt(index: number): SlideComponent | undefined;    add(slide: string | Element | Array<string | Element>, index?: number): void;    remove(selector: SlideMatcher): void;    forEach(iteratee: SlidesIteratee, excludeClones?: boolean): void;    filter(matcher: SlideMatcher): SlideComponent[];    style(prop: string, value: string | number, useContainer?: boolean): void;    getLength(excludeClones?: boolean): number;    isEnough(): boolean;}/** * The iteratee function for Slides. * * @since 3.0.0 */declare type SlidesIteratee = (Slide: SlideComponent, index: number, Slides: SlideComponent[]) => void;/** * The predicate function for Slides. * * @since 3.0.0 */declare type SlidesPredicate = (Slide: SlideComponent, index: number, Slides: SlideComponent[]) => any;/** * The type for filtering SlideComponent objects. * * @since 3.0.0 */declare type SlideMatcher = number | number[] | string | SlidesPredicate;/** * The type for an EventTarget or an array with EventTarget objects. * * @since 4.0.0 */declare type EventTargets = EventTarget | EventTarget[];/** * The interface for the EventBinder object. * * @since 3.0.0 */interface EventBinderObject {    bind(target: EventTargets, events: string | string[], callback: AnyFunction, options?: AddEventListenerOptions): void;    unbind(target: EventTarget | EventTarget[], events: string | string[], callback?: AnyFunction): void;    dispatch<T>(target: EventTarget, event: string, detail?: T): void;    destroy(): void;}/** * The constructor function to provide methods to subscribe native events. * * @since 4.0.0 * @constructor * * @return An EventBinder object. */declare function EventBinder(): EventBinderObject;/** * The interface for the EventInterface object. * * @since 3.0.0 */interface EventInterfaceObject extends EventBinderObject {    on<K extends keyof EventMap>(event: K, callback: EventMap[K]): void;    on(events: string | string[], callback: AnyFunction): void;    off<K extends keyof EventMap>(events: K | K[] | string | string[]): void;    emit<K extends keyof EventMap>(event: K, ...args: Parameters<EventMap[K]>): void;    emit(event: string, ...args: any[]): void;    /** @internal */    bus: DocumentFragment;}/** * The constructor function that provides interface for internal and native events. * * @since 3.0.0 * @constructor * * @param Splide - A Splide instance. * * @return A collection of interface functions. */declare function EventInterface(Splide?: Splide): EventInterfaceObject;/** * The interface for the returning value of the RequestInterval. * * @since 3.0.0 */interface RequestIntervalInterface {    start(resume?: boolean): void;    pause(): void;    rewind(): void;    cancel(): void;    set(interval: number): void;    isPaused(): boolean;}/** * Requests interval like the native `setInterval()` with using `requestAnimationFrame`. * * @since 3.0.0 * * @param interval   - The interval duration in milliseconds. * @param onInterval - The callback fired on every interval. * @param onUpdate   - Optional. Called on every animation frame, taking the progress rate. * @param limit      - Optional. Limits the number of interval. */declare function RequestInterval(interval: number, onInterval: () => void, onUpdate?: (rate: number) => void, limit?: number): RequestIntervalInterface;/** * The interface for the State object. * * @since 3.0.0 */interface StateObject {    set(state: number): void;    is(states: number | number[]): boolean;}/** * The function providing a super simple state system. * * @param initialState - Specifies the initial state. */declare function State(initialState: number): StateObject;/** * The interface for the returning value of the RequestInterval. * * @since 3.0.0 */interface ThrottleInstance<F extends AnyFunction> extends Function {    (...args: Parameters<F>): void;}/** * Returns the throttled function. * * @param func     - A function to throttle. * @param duration - Optional. Throttle duration in milliseconds. * * @return A throttled function. */declare function Throttle<F extends AnyFunction>(func: F, duration?: number): ThrottleInstance<F>;/** * The frontend class for the Splide slider. * * @since 3.0.0 */declare class Splide {    /**     * Changes the default options for all Splide instances.     */    static defaults: Options;    /**     * The collection of state numbers.     */    static readonly STATES: {        CREATED: number;        MOUNTED: number;        IDLE: number;        MOVING: number;        SCROLLING: number;        DRAGGING: number;        DESTROYED: number;    };    /**     * The root element where the Splide is applied.     */    readonly root: HTMLElement;    /**     * The EventBusObject object.     */    readonly event: EventInterfaceObject;    /**     * The collection of all component objects.     */    readonly Components: Components;    /**     * The StateObject object.     */    readonly state: StateObject;    /**     * An array with SyncTarget objects for splide instances to sync with.     */    readonly splides: SyncTarget[];    /**     * The collection of options.     */    private readonly _options;    /**     * The collection of all components.     */    private _Components;    /**     * The collection of extensions.     */    private _Extensions;    /**     * The Transition component.     */    private _Transition;    /**     * The Splide constructor.     *     * @param target  - The selector for the target element, or the element itself.     * @param options - Optional. An object with options.     */    constructor(target: string | HTMLElement, options?: Options);    /**     * Initializes the instance.     *     * @param Extensions - Optional. An object with extensions.     * @param Transition - Optional. A Transition component.     *     * @return `this`     */    mount(Extensions?: Record<string, ComponentConstructor>, Transition?: ComponentConstructor): this;    /**     * Syncs the slider with the provided one.     * This method must be called before the `mount()`.     *     * @example     * ```ts     * var primary   = new Splide();     * var secondary = new Splide();     *     * primary.sync( secondary );     * primary.mount();     * secondary.mount();     * ```     *     * @param splide - A Splide instance to sync with.     *     * @return `this`     */    sync(splide: Splide): this;    /**     * Moves the slider with the following control pattern.     *     * | Pattern | Description |     * |---|---|     * | `i` | Goes to the slide `i` |     * | `'+${i}'` | Increments the slide index by `i` |     * | `'-${i}'` | Decrements the slide index by `i` |     * | `'>'` | Goes to the next page |     * | `'<'` | Goes to the previous page |     * | `>${i}` | Goes to the page `i` |     *     * In most cases, `'>'` and `'<'` notations are enough to control the slider     * because they respect `perPage` and `perMove` options.     *     * @example     * ```ts     * var splide = new Splide();     *     * // Goes to the slide 1:     * splide.go( 1 );     *     * // Increments the index:     * splide.go( '+2' );     *     * // Goes to the next page:     * splide.go( '>' );     *     * // Goes to the page 2:     * splide.go( '>2' );     * ```     *     * @param control - A control pattern.     *     * @return `this`     */    go(control: number | string): this;    /**     * Registers an event handler.     *     * @example     * ```ts     * var splide = new Splide();     *     * // Listens to a single event:     * splide.on( 'move', function() {} );     *     * // Listens to multiple events:     * splide.on( 'move resize', function() {} );     *     * // Appends a namespace:     * splide.on( 'move.myNamespace resize.myNamespace', function() {} );     * ```     *     * @param events   - An event name or names separated by spaces. Use a dot(.) to append a namespace.     * @param callback - A callback function.     *     * @return `this`     */    on<K extends keyof EventMap>(events: K, callback: EventMap[K]): this;    on(events: string | string[], callback: AnyFunction): this;    /**     * Removes the registered all handlers for the specified event or events.     * If you want to only remove a particular handler, use namespace to identify it.     *     * @example     * ```ts     * var splide = new Splide();     *     * // Removes all handlers assigned to "move":     * splide.off( 'move' );     *     * // Only removes handlers that belong to the specified namespace:     * splide.off( 'move.myNamespace' );     * ```     *     * @param events - An event name or names separated by spaces. Use a dot(.) to append a namespace.     *     * @return `this`     */    off<K extends keyof EventMap>(events: K | K[] | string | string[]): this;    /**     * Emits an event and triggers registered handlers.     *     * @param event - An event name to emit.     * @param args  - Optional. Any number of arguments to pass to handlers.     *     * @return `this`     */    emit<K extends keyof EventMap>(event: K, ...args: Parameters<EventMap[K]>): this;    emit(event: string, ...args: any[]): this;    /**     * Inserts a slide at the specified position.     *     * @example     * ```ts     * var splide = new Splide();     * splide.mount();     *     * // Adds the slide by the HTML:     * splide.add( '<li></li> );     *     * // or adds the element:     * splide.add( document.createElement( 'li' ) );     * ```     *     * @param slides - A slide element, an HTML string that represents a slide, or an array with them.     * @param index  - Optional. An index to insert a slide at.     *     * @return `this`     */    add(slides: string | HTMLElement | Array<string | HTMLElement>, index?: number): this;    /**     * Removes slides that match the matcher     * that can be an index, an array with indices, a selector, or an iteratee function.     *     * @param matcher - An index, an array with indices, a selector string, or an iteratee function.     */    remove(matcher: SlideMatcher): this;    /**     * Checks the slider type.     *     * @param type - A type to test.     *     * @return `true` if the type matches the current one, or otherwise `false`.     */    is(type: string): boolean;    /**     * Refreshes the slider.     *     * @return `this`     */    refresh(): this;    /**     * Destroys the slider.     *     * @param completely - Optional. If `true`, Splide will not remount the slider by breakpoints.     *     * @return `this`     */    destroy(completely?: boolean): this;    /**     * Returns options.     *     * @return An object with the latest options.     */    get options(): Options;    /**     * Merges options to the current options and emits `updated` event.     *     * @param options - An object with new options.     */    set options(options: Options);    /**     * Returns the number of slides without clones.     *     * @return The number of slides.     */    get length(): number;    /**     * Returns the active slide index.     *     * @return The active slide index.     */    get index(): number;}/** * The interface for the content of each slide. * * @since 3.0.0 */interface SlideContent {    /**     * The HTML or text for each slide.     */    html?: string;    /**     * The collection of styles. They will remain after Splide is applied.     */    styles?: Record<string, string | number>;    /**     * The collection of attributes. They will remain after Splide is applied.     */    attrs?: Record<string, string | number | boolean>;}/** * The interface for the config of the renderer. * * @since 3.0.0 */interface RendererConfig {    /**     * The slider ID.     */    id?: string;    /**     * The additional class for the root element.     */    rootClass?: string;    /**     * The tag used for the list element.     */    listTag?: string;    /**     * The tag used for each slide.     */    slideTag?: string;    /**     * Determines whether to render arrows or not.     */    arrows?: boolean;    /**     * Keeps the slider hidden.     */    hidden?: boolean;    /**     * Determines whether to wrap the track by the slider element or not.     */    slider?: boolean;    /**     * The additional HTML rendered before the slider element.     */    beforeSlider?: string;    /**     * The additional HTML rendered after the slider element.     */    afterSlider?: string;    /**     * The additional HTML rendered before the track element.     */    beforeTrack?: string;    /**     * The additional HTML rendered after the track element.     */    afterTrack?: string;}/** * The class to generate static HTML of the slider for the first view. * * @since 3.0.0 */declare class SplideRenderer {    /**     * Removes a style element and clones.     *     * @param splide - A Splide instance.     */    static clean(splide: Splide): void;    /**     * Holds slide contents.     */    private readonly contents;    /**     * Stores data of slides.     */    private readonly slides;    /**     * The Direction component.     */    private readonly Direction;    /**     * Holds the Style instance.     */    private readonly Style;    /**     * Holds options.     */    private readonly options;    /**     * Holds options for this instance.     */    private readonly config;    /**     * The slider ID.     */    private readonly id;    /**     * An array with options for each breakpoint.     */    private readonly breakpoints;    /**     * The SplideRenderer constructor.     *     * @param contents - An array with slide contents. Each item must be an HTML or a plain text.     * @param options  - Optional. Slider options.     * @param config   - Static default options.     * @param defaults - Default options for the slider. Pass `Splide.defaults` if you are using it.     */    constructor(contents: string[] | SlideContent[], options?: Options, config?: RendererConfig, defaults?: Options);    /**     * Initializes the instance.     */    private init;    /**     * Initializes slides.     */    private initSlides;    /**     * Registers styles for the root element.     */    private registerRootStyles;    /**     * Registers styles for the track element.     */    private registerTrackStyles;    /**     * Registers styles for the list element.     */    private registerListStyles;    /**     * Registers styles for slides and clones.     */    private registerSlideStyles;    /**     * Builds multiple `translateX` for the list element.     *     * @param options - Options for each breakpoint.     *     * @return A string with multiple translate functions.     */    private buildTranslate;    /**     * Returns offset for the list element.     * This does not include gaps because it can not be converted into percent.     *     * @param options - Options for each breakpoint.     *     * @return The offset.     */    private cssOffsetClones;    /**     * Returns offset for centering the active slide.     *     * Note:     * ( 100% + gap ) / perPage - gap     * 100% / perPage + gap / perPage - gap;     * 50% / perPage + ( gap / perPage - gap ) / 2;     *     * @param options - Options for each breakpoint.     *     * @return The offset.     */    private cssOffsetCenter;    /**     * Returns offset for gaps.     *     * @param options - Options for each breakpoint.     *     * @return The offset as `calc()`.     */    private cssOffsetGaps;    /**     * Resolves the prop for the current direction and converts it into the Kebab case.     *     * @param prop - A property name to resolve.     *     * @return A resolved property name in the Kebab case.     */    private resolve;    /**     * Returns padding in the CSS format.     *     * @param options - Options.     * @param right   - Determines whether to get padding right or left.     *     * @return Padding in the CSS format.     */    private cssPadding;    /**     * Returns height of the track element in the CSS format.     *     * @param options - Options.     *     * @return Height in the CSS format.     */    private cssTrackHeight;    /**     * Returns height provided though options in the CSS format.     *     * @param options - Options.     *     * @return Height in the CSS format.     */    private cssHeight;    /**     * Returns width of each slide in the CSS format.     *     * @param options - Options.     *     * @return Width in the CSS format.     */    private cssSlideWidth;    /**     * Returns height of each slide in the CSS format.     *     * @param options - Options.     *     * @return Height in the CSS format.     */    private cssSlideHeight;    /**     * Returns width or height of each slide in the CSS format, considering the current direction.     *     * @param options - Options.     *     * @return Width or height in the CSS format.     */    private cssSlideSize;    /**     * Returns the aspectRatio value to simulate the `heightRatio` option.     *     * @param options - Options.     *     * @return aspectRatio in the CSS format.     */    private cssAspectRatio;    /**     * Builds the css value by the provided value and unit.     *     * @param value - A value.     * @param unit  - A CSS unit.     *     * @return A built value for a CSS value.     */    private buildCssValue;    /**     * Parses the CSS value into number and unit.     *     * @param value - A value to parse.     *     * @return An object with value and unit.     */    private parseCssValue;    /**     * Parses breakpoints and generate options for each breakpoint.     */    private parseBreakpoints;    /**     * Checks if the slide width is fixed or not.     *     * @return `true` if the slide width is fixed, or otherwise `false`.     */    private isFixedWidth;    /**     * Checks if the slider type is loop or not.     *     * @return `true` if the slider type is loop, or otherwise `false`.     */    private isLoop;    /**     * Checks if the active slide should be centered or not.     *     * @return `true` if the slide should be centered, or otherwise `false`.     */    private isCenter;    /**     * Checks if the direction is TTB or not.     *     * @return `true` if the direction is TTB, or otherwise `false`.     */    private isVertical;    /**     * Builds classes of the root element.     *     * @return Classes for the root element as a single string.     */    private buildClasses;    /**     * Converts provided attributes into a single string.     *     * @param attrs - An object with attributes.     *     * @return A built string.     */    private buildAttrs;    /**     * Converts provided styles into a single string.     *     * @param styles - An object with styles.     *     * @return A built string.     */    private buildStyles;    /**     * Generates HTML of slides with inserting provided contents.     *     * @return The HTML for all slides and clones.     */    private renderSlides;    /**     * Add the `background` style for the cover mode.     *     * @param content - A slide content.     */    private cover;    /**     * Generates clones.     *     * @param contents - An array with SlideContent objects.     */    private generateClones;    /**     * Returns the number of clones to generate.     *     * @return A number of clones.     */    private getCloneCount;    /**     * Generates arrows and the wrapper element.     *     * @return The HTML for arrows.     */    private renderArrows;    /**     * Generates an arrow HTML.     * Some attributes are temporary, and Splide changes them after mount.     *     * @param prev - Options for each breakpoint.     *     * @return The HTML for the prev or next arrow.     */    private renderArrow;    /**     * Returns the HTML of the slider.     *     * @return The generated HTML.     */    html(): string;}declare const EVENT_MOUNTED = "mounted";declare const EVENT_READY = "ready";declare const EVENT_MOVE = "move";declare const EVENT_MOVED = "moved";declare const EVENT_SHIFTED = "shifted";declare const EVENT_CLICK = "click";declare const EVENT_ACTIVE = "active";declare const EVENT_INACTIVE = "inactive";declare const EVENT_VISIBLE = "visible";declare const EVENT_HIDDEN = "hidden";declare const EVENT_SLIDE_KEYDOWN = "slide:keydown";declare const EVENT_REFRESH = "refresh";declare const EVENT_UPDATED = "updated";declare const EVENT_MEDIA = "media";declare const EVENT_RESIZE = "resize";declare const EVENT_RESIZED = "resized";declare const EVENT_REPOSITIONED = "repositioned";declare const EVENT_DRAG = "drag";declare const EVENT_DRAGGING = "dragging";declare const EVENT_DRAGGED = "dragged";declare const EVENT_SCROLL = "scroll";declare const EVENT_SCROLLED = "scrolled";declare const EVENT_DESTROY = "destroy";declare const EVENT_ARROWS_MOUNTED = "arrows:mounted";declare const EVENT_ARROWS_UPDATED = "arrows:updated";declare const EVENT_PAGINATION_MOUNTED = "pagination:mounted";declare const EVENT_PAGINATION_UPDATED = "pagination:updated";declare const EVENT_NAVIGATION_MOUNTED = "navigation:mounted";declare const EVENT_AUTOPLAY_PLAY = "autoplay:play";declare const EVENT_AUTOPLAY_PLAYING = "autoplay:playing";declare const EVENT_AUTOPLAY_PAUSE = "autoplay:pause";declare const EVENT_LAZYLOAD_LOADED = "lazyload:loaded";declare const CLASS_ROOT = "splide";declare const CLASS_TRACK: string;declare const CLASS_LIST: string;declare const CLASS_SLIDE: string;declare const CLASS_CLONE: string;declare const CLASS_CONTAINER: string;declare const CLASS_ARROWS: string;declare const CLASS_ARROW: string;declare const CLASS_ARROW_PREV: string;declare const CLASS_ARROW_NEXT: string;declare const CLASS_PAGINATION: string;declare const CLASS_PAGINATION_PAGE: string;declare const CLASS_PROGRESS: string;declare const CLASS_PROGRESS_BAR: string;declare const CLASS_AUTOPLAY: string;declare const CLASS_PLAY: string;declare const CLASS_PAUSE: string;declare const CLASS_SPINNER: string;declare const CLASS_INITIALIZED = "is-initialized";declare const CLASS_ACTIVE = "is-active";declare const CLASS_PREV = "is-prev";declare const CLASS_NEXT = "is-next";declare const CLASS_VISIBLE = "is-visible";declare const CLASS_LOADING = "is-loading";/** * The array with all status classes. * * @since 3.0.0 */declare const STATUS_CLASSES: string[];/** * The collection of classes for elements that Splide dynamically creates. * * @since 3.0.0 */declare const CLASSES: {    slide: string;    clone: string;    arrows: string;    arrow: string;    prev: string;    next: string;    pagination: string;    page: string;    spinner: string;};export { AnyFunction, ArrowsComponent, AutoplayComponent, BaseComponent, CLASSES, CLASS_ACTIVE, CLASS_ARROW, CLASS_ARROWS, CLASS_ARROW_NEXT, CLASS_ARROW_PREV, CLASS_AUTOPLAY, CLASS_CLONE, CLASS_CONTAINER, CLASS_INITIALIZED, CLASS_LIST, CLASS_LOADING, CLASS_NEXT, CLASS_PAGINATION, CLASS_PAGINATION_PAGE, CLASS_PAUSE, CLASS_PLAY, CLASS_PREV, CLASS_PROGRESS, CLASS_PROGRESS_BAR, CLASS_ROOT, CLASS_SLIDE, CLASS_SPINNER, CLASS_TRACK, CLASS_VISIBLE, Cast, ClonesComponent, ComponentConstructor, Components, ControllerComponent, CoverComponent, DirectionComponent, DragComponent, EVENT_ACTIVE, EVENT_ARROWS_MOUNTED, EVENT_ARROWS_UPDATED, EVENT_AUTOPLAY_PAUSE, EVENT_AUTOPLAY_PLAY, EVENT_AUTOPLAY_PLAYING, EVENT_CLICK, EVENT_DESTROY, EVENT_DRAG, EVENT_DRAGGED, EVENT_DRAGGING, EVENT_HIDDEN, EVENT_INACTIVE, EVENT_LAZYLOAD_LOADED, EVENT_MEDIA, EVENT_MOUNTED, EVENT_MOVE, EVENT_MOVED, EVENT_NAVIGATION_MOUNTED, EVENT_PAGINATION_MOUNTED, EVENT_PAGINATION_UPDATED, EVENT_READY, EVENT_REFRESH, EVENT_REPOSITIONED, EVENT_RESIZE, EVENT_RESIZED, EVENT_SCROLL, EVENT_SCROLLED, EVENT_SHIFTED, EVENT_SLIDE_KEYDOWN, EVENT_UPDATED, EVENT_VISIBLE, ElementsComponent, EventBinder, EventBinderObject, EventInterface, EventInterfaceObject, EventMap, Head, KeyboardComponent, LayoutComponent, LazyLoadComponent, LiveComponent, MediaComponent, MoveComponent, Options, PaginationComponent, PaginationData, PaginationItem, Push, RequestInterval, RequestIntervalInterface, Resolve, ResponsiveOptions, STATUS_CLASSES, ScrollComponent, Shift, ShiftN, SlideComponent, SlidesComponent, Splide, SplideRenderer, State, StateObject, SyncComponent, SyncTarget, Throttle, ThrottleInstance, TransitionComponent, WheelComponent, Splide as default };
 |