export interface ScriptExecutor { /** * Method for executing the given script string. * It received processId, processInstanceId and tokenId as * the first two params along with the script string and any dependencies. */ execute: (processId: string, processInstanceId: string, tokenId: string, scriptString: string, dependencies: { [key: string]: unknown; }) => Promise; /** * Stop the script execution for the given processId, processInstanceId and optionally tokenId. * The executor should consider passing the value, '*' as all. */ stop: (processId: string, processInstanceId: string, tokenId?: string) => any; /** * Pause the script execution for the given processId, processInstanceId and optionally tokenId. * The executor should consider passing the value, '*' as all. */ pause?: (processId: string, processInstanceId: string, tokenId?: string) => any; /** * Resume the paused script execution for the given processId, processInstanceId and optionally tokenId. * The executor should consider passing the value, '*' as all. */ resume?: (processId: string, processInstanceId: string, tokenId?: string) => any; } /** * The default script executor using the new Function() syntax. */ export declare const DEFAULT_SCRIPT_EXECUTOR: ScriptExecutor; /** * Returns the current script executor. */ export declare function getCurrentScriptExecutor(): ScriptExecutor; /** * The script executor to be used from this point. Note that, it calls stop() on * the existing script executor. * @param scriptExecutor - The executor object with execute and stop methods */ export declare function provideScriptExecutor(scriptExecutor: ScriptExecutor): void; //# sourceMappingURL=ScriptExecutionEnvironment.d.ts.map