import { TemplateRef } from '@angular/core'; import { Router } from '@angular/router'; import { Subject } from 'rxjs'; import { BreadcrumbOption, RouterData } from './types'; import { StorageMap } from '@ngx-pwa/local-storage'; export declare class BitRouterService { private router; private storage; /** * 被激活的导航 * Activated navigation */ navActive: any[]; /** * 允许返回 * Allow back */ back: boolean; /** * Title */ title: any; /** * SubTitle */ subTitle: any; /** * default breadcrumb Root */ breadcrumbRoot: any; /** * Breadcrumb array */ breadcrumb: BreadcrumbOption[]; /** * Header banner */ banner: TemplateRef; /** * Header banner */ tags: TemplateRef; /** * Header actions */ actions: TemplateRef[]; /** * Header banner */ content: TemplateRef; /** * Header banner */ footer: TemplateRef; /** * Status */ changed: Subject; /** * Angular routed event subscription */ private events$; constructor(router: Router, storage: StorageMap); /** * 初始化平行路由 * Initialize parallel routing */ setup(): void; /** * 设置平行路由数据,同步导航与页头 * Set parallel routing data, synchronize navigation and page header */ setData(data: RouterData): void; /** * 取消平行路由逻辑 * Cancel parallel routing logic */ uninstall(): void; private match; private dynamicBreadcrumb; private clearBreadcrumb; }