import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { StarApplication } from './star.class'; export declare class StarApplicationService { private http; private apps; private appsMap; constructor(http: HttpClient); /** * 注册 * @param appOrApps 应用或应用集合 */ register(appOrApps: StarApplication | StarApplication[]): void; /** * 通过请求注册application * @param url url */ registerByUrl(url: string): Observable; /** * 卸载 * @param name 应用名称 */ unregister(name: string): void; /** * 获取注册过的application列表 */ getApps(): StarApplication[]; /** * 获取预加载的app * @param excludeAppNames 除外应用名称列表 */ getAppsToPreload(excludeAppNames?: string[]): StarApplication[]; getProfileName(): string; /** * 通过url判断是哪个应用 * @param url url */ getAppsByMatchedUrl(url: string): StarApplication[]; /** * 获取application通过名称 * @param name 应用名称 */ getAppByName(name: string): StarApplication; }