import { Injector, NgModuleRef } from '@angular/core'; import { PluginDependencyType } from './config'; import { Subject } from 'rxjs'; import { PluginURLProvider } from './plugin-url.service'; import * as i0 from "@angular/core"; export declare class MockPluginRegistryService { pluginLoaded$: Subject<{ id: string; module: NgModuleRef; }>; pluginUnloaded$: Subject; startLoadPlugin(): void; startUnloadPlugin(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * This class automates the loading of bundles built with ng-packagr, * registering the components with GoldenLayout * This service MUST be instantiated once per window and defines the 'public' * API for loading and unloading plugins. */ export declare class PluginRegistryService { private urlProvider; private injector; private availableDependencies; private loadedPlugins; pluginLoaded$: Subject<{ id: string; module: NgModuleRef; }>; pluginUnloaded$: Subject; constructor(deps: PluginDependencyType[], urlProvider: PluginURLProvider, injector: Injector); startLoadPlugin(id: string, url: string): void; startUnloadPlugin(id: string): void; waitForPlugin(id: string): Promise; private patchWindow; private load; private unload; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }