import DataTable from '../../datatable/DataTable'; import ActionIdentifier from '../ActionIdentifier'; import Context from '../../context/Context'; import CallerController from '../../context/CallerController'; import GenericActionResponse from '../GenericActionResponse'; import StepActionInterceptor from '../StepActionInterceptor'; import Operation from './Operation'; export default class ActionWorker { private readonly params; private interrupted; private cancelled; private context; private controller?; private actionName; private readonly stepInterceptor; private operation; private actionId; constructor(name: string, params: DataTable | null, context: Context, controller: CallerController | undefined, actionName: string, stepInterceptor: StepActionInterceptor, operation: Operation, actionId: string | null); run(): Promise; protected stepAction(resp: GenericActionResponse | null, actionId: ActionIdentifier): Promise; private processCommand; interrupt(): void; start(): Promise; cancel(): void; }