import { WorkflowEventData } from '.'; /** * Job model used to identify a running/completed Robot process */ export declare class Job { processId: string; argument?: any; jobId: string; internalArguments?: string; private eventHandlers; /** * Default constructor * @param processId Unique GUID of the robot process to run. * @param argument In arguments to be passed to the robot process on execution. */ constructor(processId: string, argument?: any); /** * Method to attach event handler on the job. * @param eventName Available job events are: 'status', 'workflow-event'. * @param eventHanlder Event handler callback function called when event occurs. */ on(eventName: string, eventHanlder: (argument?: any) => void): void; /** * Dispatch method to trigger events. * @param status argument to pass along while event is dispatched. */ dispatch: (status: string) => void; /** * Dispatch method to trigger events. * @param event argument to pass along while event is dispatched. */ dispatchEvent: (eventData: WorkflowEventData) => void; /** * Send a message to a running job. * @param channelName * @param payload * @returns */ sendClientMessage: (channelName: string, payload: string) => Promise; }