import * as i0 from '@angular/core'; import { OnChanges, OnDestroy, ElementRef, SimpleChanges, NgZone } from '@angular/core'; import { RouterLink, Router, UrlTree, RouterPreloader, PreloadingStrategy, Route } from '@angular/router'; interface LinkHandlerStrategy { register(el: LinkDirective): void; unregister(el: LinkDirective): void; supported(): boolean; } declare class LinkDirective implements OnChanges, OnDestroy { private linkHandlers; private el; routerLink: Pick['routerLink']; private rl; private linkHandler; constructor(linkHandlers: LinkHandlerStrategy[], el: ElementRef, link: RouterLink, linkWithHref: RouterLink); ngOnChanges(c: SimpleChanges): void; ngOnDestroy(): void; get element(): Element; get urlTree(): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class PrefetchRegistry { private router; private trees; constructor(router: Router); add(tree: UrlTree): void; shouldPrefetch(url: string): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class ObservableLinkHandler implements LinkHandlerStrategy { private loader; private registry; private ngZone; private elementLink; private observer; constructor(loader: RouterPreloader, registry: PrefetchRegistry, ngZone: NgZone); register(el: LinkDirective): void; unregister(el: LinkDirective): void; supported(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class PreloadLinkHandler implements LinkHandlerStrategy { private loader; private registry; constructor(loader: RouterPreloader, registry: PrefetchRegistry); register(el: LinkDirective): void; unregister(_: LinkDirective): void; supported(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class QuicklinkStrategy implements PreloadingStrategy { private registry; private router; loading: Set; constructor(registry: PrefetchRegistry, router: Router); preload(route: Route, load: Function): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare const quicklinkProviders: (typeof PrefetchRegistry | typeof QuicklinkStrategy | { provide: i0.InjectionToken; useClass: typeof ObservableLinkHandler; multi: boolean; } | { provide: i0.InjectionToken; useClass: typeof PreloadLinkHandler; multi: boolean; })[]; declare class QuicklinkModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { LinkDirective as QuicklinkDirective, QuicklinkModule, QuicklinkStrategy, quicklinkProviders };