import * as _angular_core from '@angular/core'; import { OnDestroy, WritableSignal, Signal } from '@angular/core'; declare class AnchorNavigationItemComponent { private readonly navigationService; readonly element: _angular_core.ElementRef; href: _angular_core.InputSignal; isActive: _angular_core.Signal; protected handleClick(e: Event): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class AnchorNavigationComponent { private readonly service; readonly element: _angular_core.ElementRef; /** * A Signal with list of `AnchorLinkDirective` instances projected into this component. * These are the anchor links that this navigation component will manage. */ readonly projectedAnchorLinks: _angular_core.Signal; /** * Input to determine if the anchor navigation should be displayed vertically. * Defaults to `false` (horizontal). */ vertical: _angular_core.InputSignalWithTransform; /** * Input to specify the threshold for the IntersectionObserver. * This determines how much of the target element must be visible before it is considered intersecting. * Defaults to `0.5` (50% visibility). */ threshold: _angular_core.InputSignalWithTransform; /** * Input to specify the scrollable container element or document whose scroll position * is used to determine the active anchor link. If not provided, defaults to the * `document` of the current window. */ scrollableContainer: _angular_core.InputSignal; readonly activeAnchorLink: _angular_core.Signal; constructor(); /** * Scrolls the view to the section associated with the given `AnchorLinkDirective`. * @param anchor The `AnchorLinkDirective` instance representing the target anchor/section. */ scrollToAnchor(anchor: AnchorNavigationItemComponent): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class AnchorNavigationModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } declare class AnchorNavigationService implements OnDestroy { private readonly windowRef; private intersectionObserver?; private readonly intersectionStates; private readonly targetScrollSections; /** * @internal * A WritableSignal holding the threshold for the IntersectionObserver. * This determines how much of the target element must be visible before it is considered intersecting. * Defaults to 0.5 (50% visibility). */ readonly threshold: WritableSignal; /** * A WritableSignal holding the scrollable container element or document. * This is set by the AnchorNavigationComponent. * Defaults to the window's document. */ scrollableContainer: WritableSignal; /** * A WritableSignal holding an array of `AnchorLinkDirective` instances. * These are the links managed by the service, typically set by the `AnchorNavigationComponent` * based on its projected content. */ projectedAnchorLinks: WritableSignal; /** * A readonly Signal indicating the currently active AnchorLinkDirective. * This is updated by the service based on scroll position and intersection. */ readonly activeAnchorLink: Signal; constructor(); ngOnDestroy(): void; /** * Scrolls the view to the section associated with the given `AnchorLinkDirective` * and sets it as the active link. * * @param anchor The `AnchorLinkDirective` instance representing the target anchor/section. * If null or if the anchor's ID is not found, a warning is logged and the method returns. */ scrollToAnchor(anchor: AnchorNavigationItemComponent | null): void; private initIntersectionObserver; private updateObservedElements; private onIntersectionUpdate; private findTargetScrollSections; private disconnectObserver; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } export { AnchorNavigationComponent, AnchorNavigationItemComponent, AnchorNavigationModule, AnchorNavigationService };