import { Injector } from '@angular/core'; import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser'; import { HttpClientService } from '../../base/services/httpclient.service'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/do'; import 'rxjs/add/operator/delay'; import 'rxjs/add/operator/map'; export declare class MenuInfo { id: number; label: string; url: SafeResourceUrl; menuUrl: string; icon: string; children: MenuInfo[]; constructor(); setParams(id: number, label: string, url: SafeResourceUrl, icon: string): void; } export declare class MenuTreeService { private sanitizer; nodeId: number; parentId: string; nodeName: string; nodeLabel: string; nodeHtml: string; nodeUrl: string; children: Object[]; httpClient: HttpClientService; constructor(injector: Injector, sanitizer: DomSanitizer); hasChildren(): boolean; getChildren(): Object[]; findParentNode(rootNode: Object, childNode: any): Object; findParentNodeByUrl(node: any, url: string): Object; findNodeByUrl(node: any, url: string, moduleId: string): Object; buildLevel(node: any, level: number): void; getMenuListByPath(menuUrl: string, moduleId?: string): Observable; getShortcutListByPath(menuUrl: string): Observable; /** * */ findMenuListByPath(menuUrl: string, level: number, moduleId?: string): Observable; convertMenuInfo(result: any): MenuInfo[]; }