/** * @license * Copyright Datorama. All Rights Reserved. * * Use of this source code is governed by an Apache License 2.0 license that can be * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE */ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, QueryList, SimpleChanges } from '@angular/core'; import { DatoCarouselItemDirective } from './carousel-item.directive'; import { AnimationBuilder } from '@angular/animations'; import { CarouselConfig } from './carousel.types'; export declare class DatoCarouselItemElement { } export declare class DatoCarouselComponent implements AfterViewInit, OnDestroy, OnChanges { private animationBuilder; private cdr; private host; items: QueryList; private carousel; private itemElements; config: CarouselConfig; indexChanged: EventEmitter; carouselUlStyle: {}; carouselWrapperStyle: {}; currentSlide: number; private player; private autoRunSub; private readonly defaultAutoRunInterval; constructor(animationBuilder: AnimationBuilder, cdr: ChangeDetectorRef, host: ElementRef); ngOnChanges({ config: { previousValue, currentValue } }: SimpleChanges): void; ngAfterViewInit(): void; ngOnDestroy(): void; get itemWidth(): number; get hasItems(): boolean; get allowNextArrow(): boolean; get allowPrevArrow(): boolean; next(): void; prev(): void; navigateToSlide(index: number): void; /** * When looping or auto playing, we want the transition between the edge items to be smooth * so there are 2 added items */ get hasExtraItems(): boolean; private buildAnimation; private preformSlideTransition; private calcCarouselStyle; private get element(); private initAutoRun; }