import { Process } from './process'; import { Emitter, Event } from '@devpodio/core/lib/common'; import { ILogger } from '@devpodio/core/lib/common/logger'; import { BackendApplicationContribution } from '@devpodio/core/lib/node'; export declare class ProcessManager implements BackendApplicationContribution { protected logger: ILogger; protected id: number; protected readonly processes: Map; protected readonly deleteEmitter: Emitter; constructor(logger: ILogger); /** * Registers the given process into this manager. Both on process termination and on error, * the process will be automatically removed from the manager. * * @param process the process to register. */ register(process: Process): number; /** * Removes the process from this process manager. Invoking this method, will make * sure that the process is terminated before eliminating it from the manager's cache. * * @param process the process to unregister from this process manager. */ protected unregister(process: Process): void; get(id: number): Process | undefined; readonly onDelete: Event; onStop(): void; private getProcessLabel; } //# sourceMappingURL=process-manager.d.ts.map