import { BooleanInput } from '@angular/cdk/coercion'; import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core'; import * as i0 from "@angular/core"; /** * Reusable infinite scroll component. Will emit once the user has scrolled to the bottom of a scroll container. * Based off this article {@link https://netbasal.com/build-an-infinite-scroll-component-in-angular-a9c16907a94d} * * @author Will Davis */ export declare class MtnaInfiniteScrollComponent implements OnDestroy, OnInit { private _host; static ngAcceptInputType_canLoadMore: BooleanInput; static ngAcceptInputType_options: IntersectionObserverInit | null | undefined; static ngAcceptInputType_skipFirstLoadMore: BooleanInput; /** Whether there are more items to load. Prevents emitting {@link loadMore} if set to false. Defaults to true. */ get canLoadMore(): boolean; set canLoadMore(canLoadMore: boolean); private _canLoadMore; /** Initialization options for the IntersectionObserver. */ get options(): IntersectionObserverInit; set options(options: IntersectionObserverInit); private _options; /** Whether skip the first, initial load more emission. Defautls to false. */ get skipFirstLoadMore(): boolean; set skipFirstLoadMore(skipFirstLoadMore: boolean); private _skipFirstLoadMore; /** Emitted when the user has scrolled to the bottom of the container. */ loadMore: EventEmitter; /** The element at the bottom of the scroll container to watch for. */ anchor: ElementRef; /** The host's `nativeElement`. */ get element(): Element; /** Internal intersection observer that detects when the {@link anchor} comes into view */ private _observer; /** Whether {@link loadMore} has emitted a first time. */ private _hasEmiitedLoadMoreOnce; constructor(_host: ElementRef); ngOnDestroy(): void; ngOnInit(): void; /** @returns Whether the host element is the scroll container. */ private _isHostScrollable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }