import { Response, RobotProcess } from '../../models/index'; import { IRequest } from '../iRequest'; /** * Request class to cancel a running job. */ export declare class StopProcessRequest implements IRequest { process: RobotProcess; url: string; /** * Default constructor. * @param process Running process object that we want to cancel. */ constructor(process: RobotProcess); /** * Method that sends the request to cancel running job. * @returns Promise of Response model type. */ send: () => Promise>; /** * Set the port to which the request should be sent along with the consent code. * @param robotInvocationPort Port on which local listener is running. * @param consentCode User consented code. */ set(robotInvocationPort: number, consentCode: number): this; private convert; /** * Method that returns the request endpoint to which request will be sent. * @param robotInvocationPort Port of local listener to which request should be sent. * @param consentCode User approved consent code if any. * @param process Robot Process to stop */ private getURL; }