import { Response, ClientMessageData, ServerFeatures } from '../../models/index'; import { IRequest } from '../iRequest'; /** * Request class to send a message to a running job. */ export declare class ClientMessageRequest implements IRequest { jobId: string; data: ClientMessageData; url: string; /** * Default constructor. * @param jobId Id of the running job to which send the message. * @param data Data to be sent to the running job */ constructor(jobId: string, data: ClientMessageData); /** * Method that sends the request to send a message to the running job. * @returns Promise of Response model type. */ send: (serverFeatures: ServerFeatures) => 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. */ private getURL; }