import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; import { IotHubGatewayServiceAPIsContext } from "../iotHubGatewayServiceAPIsContext"; /** Class representing a CloudToDeviceMessages. */ export declare class CloudToDeviceMessages { private readonly client; /** * Create a CloudToDeviceMessages. * @param {IotHubGatewayServiceAPIsContext} client Reference to the service client. */ constructor(client: IotHubGatewayServiceAPIsContext); /** * Deletes all the pending commands for a device in the IoT Hub. * @param id The unique identifier of the device. * @param [options] The optional parameters * @returns Promise */ purgeCloudToDeviceMessageQueue(id: string, options?: msRest.RequestOptionsBase): Promise; /** * @param id The unique identifier of the device. * @param callback The callback */ purgeCloudToDeviceMessageQueue(id: string, callback: msRest.ServiceCallback): void; /** * @param id The unique identifier of the device. * @param options The optional parameters * @param callback The callback */ purgeCloudToDeviceMessageQueue(id: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; /** * Gets the feedback for cloud-to-device messages. See * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging for more information. This * capability is only available in the standard tier IoT Hub. For more information, see [Choose the * right IoT Hub tier](https://aka.ms/scaleyouriotsolution). * @param [options] The optional parameters * @returns Promise */ receiveFeedbackNotification(options?: msRest.RequestOptionsBase): Promise; /** * @param callback The callback */ receiveFeedbackNotification(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ receiveFeedbackNotification(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; /** * Completes the cloud-to-device feedback message. A completed message is deleted from the feedback * queue of the service. See https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging * for more information. * @param lockToken The lock token obtained when the cloud-to-device message is received. This is * used to resolve race conditions when completing a feedback message. * @param [options] The optional parameters * @returns Promise */ completeFeedbackNotification(lockToken: string, options?: msRest.RequestOptionsBase): Promise; /** * @param lockToken The lock token obtained when the cloud-to-device message is received. This is * used to resolve race conditions when completing a feedback message. * @param callback The callback */ completeFeedbackNotification(lockToken: string, callback: msRest.ServiceCallback): void; /** * @param lockToken The lock token obtained when the cloud-to-device message is received. This is * used to resolve race conditions when completing a feedback message. * @param options The optional parameters * @param callback The callback */ completeFeedbackNotification(lockToken: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; /** * Abandons the lock on a cloud-to-device feedback message. See * https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging for more information. * @param lockToken The lock token obtained when the cloud-to-device message is received. * @param [options] The optional parameters * @returns Promise */ abandonFeedbackNotification(lockToken: string, options?: msRest.RequestOptionsBase): Promise; /** * @param lockToken The lock token obtained when the cloud-to-device message is received. * @param callback The callback */ abandonFeedbackNotification(lockToken: string, callback: msRest.ServiceCallback): void; /** * @param lockToken The lock token obtained when the cloud-to-device message is received. * @param options The optional parameters * @param callback The callback */ abandonFeedbackNotification(lockToken: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; }