import * as _angular_core from '@angular/core'; import { ElementRef, OnDestroy } from '@angular/core'; interface ScrollableItem { element: ElementRef; } /** * Service to manage scrollable items within a container, providing functionality to observe item visibility * and navigate through them. */ declare class ScrollableService implements OnDestroy { private intersectionObserver?; private scrollContainer?; /** * References to the next and previous scrollable items. * * @type {HTMLElement | null} */ readonly nextItem: _angular_core.WritableSignal; /** * References to the previous scrollable item. * * @type {HTMLElement | null} */ readonly prevItem: _angular_core.WritableSignal; /** List of currently visible items within the scroll container. * * @type {HTMLElement[]} */ readonly visibleItems: _angular_core.WritableSignal; ngOnDestroy(): void; /** * Starts observing the scrollable items within the specified container. * * @param {ElementRef} scrollContainer - The container element that holds the scrollable items. * @param {readonly ScrollableItem[]} items - The list of scrollable items to observe. */ observe(scrollContainer: ElementRef, items: readonly ScrollableItem[]): void; /** * Scrolls the container in the specified direction. * * @param {'next' | 'prev'} direction - The direction to scroll ('next' for right, 'prev' for left). */ scroll(direction?: 1 | -1): void; /** * Scrolls the active item into view within the scroll container. * * @param {HTMLElement | null} activeItem - The currently active item to scroll into view. */ scrollActiveItemIntoHorizontalView(activeItem: HTMLElement | null): void; private observeVisibility; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } export { ScrollableService }; export type { ScrollableItem };