import { ElementRef, OnDestroy, OnInit } from '@angular/core'; import { NavigationEnd, Router } from '@angular/router'; import { ScullyRoutesService } from '../route-service/scully-routes.service'; interface ScullyContent { html: string; cssId: string; } declare global { interface Window { scullyContent: ScullyContent; } } export declare class ScullyContentComponent implements OnDestroy, OnInit { private elmRef; private srs; private router; elm: HTMLElement; /** placeholder */ lastHandled: string; /** pull in all available routes into an eager promise */ routes: Promise; /** monitor the router, so we can update while navigating in the same 'page' see #311 */ routeUpdates$: import("rxjs").Observable; routeSub: import("rxjs").Subscription; constructor(elmRef: ElementRef, srs: ScullyRoutesService, router: Router); ngOnInit(): void; /** * Loads the static content from scully into the view * Will fetch the content from sibling links with xmlHTTPrequest */ private handlePage; /** * upgrade a **href** attributes to links that respect the Angular router * and don't do a full page reload. Only works on links that are found in the * Scully route config file. * @param elm the element containing the **hrefs** */ upgradeToRoutelink(elm: HTMLElement): Promise; private replaceContent; getCSSId(elm: HTMLElement): string; ngOnDestroy(): void; } export {};