import { ProcessManagerComponent, ProcessApi } from './process-manager.component'; export declare class ProcessManagementService { static readonly SERVICE_NAME = "ProcessManagementService"; private processManagerComponent; setUIComponent(processManagerComponent: ProcessManagerComponent): void; /** * Returns a promise that will be resolved when an instance is available. At max, 3 instances can only run * in parallel and rest has to wait till a process is completed. * * A progress instance has the following properties. * * 1) min {number} minimum value, default value is 0
* 2) max {number} maximum value, default value is 100
* 3) value {number} progress value
* 4) progressLabel {string} process name
* 5) stopButtonLabel {string} label for stop button, default value is 'Cancel'
* 6) onStop {function} function to invoke when stop button is clicked.
* * A progress instance has 3 methods
* 1) set(property, value) -- sets value to the corresponding property
* 2) get(property) -- returns property value
* 3) destroy() -- closes the instance.
* * A progress instance will get auto closed when value and max are equal or when destroy method is called. * * @param {string} name name of the process whose progress is going to be shown * @param {number} min minimum value * @param {number} max maximum value * * @returns {object} a promise */ createInstance(name: string, min?: number, max?: number): Promise; }