import { Route, Routes } from '@angular/router'; /** Describes a {@link Route.path} string */ export declare type RoutePath = string; /** Describes a parameterized {@link Route.path} string */ export declare type ParameterizedRoutePath = `:${RoutePath}`; export interface SitemapDescriptor { /** Defines the {@link Routes} that are available directly after {@link ApplicationRef.bootstrap} */ routes: Routes; /** * Loads any potentially lazily defined route to make sure that the **full** sitemap * tree can be generated at any time */ loadChildren?: Record; /** Loads any potential param values for the desired parameterized routes */ loadParamValues?: Record; } export interface SiteRef { readonly route: Route; linkUrl: string; children?: SiteRef[]; } export declare class Sitemap extends Array { constructor(descriptor?: SitemapDescriptor); } export declare function createSitemap(descriptor: SitemapDescriptor | Routes): Sitemap;