A service that provides navigation among views and URL manipulation capabilities.
class Router { readonly events: Observable<Event>; readonly routerState: RouterState; errorHandler: (error: any) => any; navigated: boolean; routeReuseStrategy: RouteReuseStrategy; onSameUrlNavigation: OnSameUrlNavigation; config: Routes; readonly componentInputBindingEnabled: boolean; initialNavigation(): void; setUpLocationChangeListener(): void; readonly url: string; getCurrentNavigation(): Navigation; readonly lastSuccessfulNavigation: Navigation; resetConfig(config: Routes): void; dispose(): void; createUrlTree(commands: any[], navigationExtras?: UrlCreationOptions): UrlTree; navigateByUrl(url: string | UrlTree, extras?: NavigationBehaviorOptions): Promise<boolean>; navigate(commands: any[], extras?: NavigationExtras): Promise<boolean>; serializeUrl(url: UrlTree): string; parseUrl(url: string): UrlTree; isActive(url: string | UrlTree, exact: boolean): boolean; isActive(url: string | UrlTree, matchOptions: IsActiveMatchOptions): boolean;}