import * as cp from 'child_process'; import { HostedPluginSupport } from '@theia/plugin-ext/lib/hosted/node/hosted-plugin'; import { ProcessUtils } from '@theia/core/lib/node/process-utils'; export declare const HostedPluginsManager: unique symbol; export interface HostedPluginsManager { /** * Runs watcher script to recompile plugin on any changes along given path. * * @param uri uri to plugin root folder. */ runWatchCompilation(uri: string): Promise; /** * Stops watcher script. * * @param uri uri to plugin root folder. */ stopWatchCompilation(uri: string): Promise; /** * Checks if watcher script to recompile plugin is running. * * @param uri uri to plugin root folder. */ isWatchCompilationRunning(uri: string): Promise; } export declare class HostedPluginsManagerImpl implements HostedPluginsManager { protected readonly hostedPluginSupport: HostedPluginSupport; protected readonly processUtils: ProcessUtils; protected watchCompilationRegistry: Map; constructor(); runWatchCompilation(uri: string): Promise; private killProcessTree; stopWatchCompilation(uri: string): Promise; isWatchCompilationRunning(uri: string): Promise; protected runWatchScript(pluginRootPath: string): Promise; protected unregisterWatchScript(pluginRootPath: string): void; /** * Checks whether watch script is present into package.json by given parent folder. * * @param pluginPath path to plugin's root directory */ protected checkWatchScript(pluginPath: string): Promise; } //# sourceMappingURL=hosted-plugins-manager.d.ts.map