import { OnDestroy } from '@angular/core';
import { BehaviorSubject, Subject } from 'rxjs';
import { StacheNavLink } from '../nav/nav-link';
import { StacheWindowRef } from '../shared/window-ref';
import * as i0 from "@angular/core";
export declare class StachePageAnchorService implements OnDestroy {
    private windowRef;
    pageAnchorsStream: Subject<StacheNavLink[]>;
    pageAnchors: BehaviorSubject<StacheNavLink>[];
    refreshRequestedStream: Subject<void>;
    private ngUnsubscribe;
    constructor(windowRef: StacheWindowRef);
    addAnchor(anchorStream: BehaviorSubject<StacheNavLink>): void;
    ngOnDestroy(): void;
    refreshAnchors(): void;
    scrollToAnchor(elementId: string): void;
    private removeAnchor;
    private updateAnchorStream;
    private sortPageAnchors;
    static ɵfac: i0.ɵɵFactoryDeclaration<StachePageAnchorService, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<StachePageAnchorService>;
}
