import { ElementRef, NgZone, OnDestroy } from "@angular/core"; import { ScrollDispatcher, ViewportRuler } from "@angular/cdk/scrolling"; import { Observable } from "rxjs"; import * as i0 from "@angular/core"; export interface ScrollState { isAtBottom: boolean; scrollTop: number; scrollHeight: number; clientHeight: number; } export declare class ScrollPosition implements OnDestroy { private scrollDispatcher; private viewportRuler; private ngZone; private destroy$; private scrollStateSubject; scrollState$: Observable; constructor(scrollDispatcher: ScrollDispatcher, viewportRuler: ViewportRuler, ngZone: NgZone); /** * Monitor scroll position of an element * @param element The element to monitor * @param threshold Pixels from bottom to consider "at bottom" (default 10) */ monitorScrollPosition(element: ElementRef | HTMLElement, threshold?: number): Observable; /** * Scroll element to bottom with smooth animation * @param element The element to scroll * @param smooth Whether to use smooth scrolling */ scrollToBottom(element: ElementRef | HTMLElement, smooth?: boolean): void; /** * Check if element is at bottom * @param element The element to check * @param threshold Pixels from bottom to consider "at bottom" */ isAtBottom(element: ElementRef | HTMLElement, threshold?: number): boolean; /** * Get current scroll state of element */ getScrollState(element: HTMLElement, threshold: number): ScrollState; /** * Create a ResizeObserver for element size changes * @param element The element to observe * @param debounceMs Debounce time in milliseconds */ observeResize(element: ElementRef | HTMLElement, debounceMs?: number): Observable; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }