import { AzureApiResult, Device } from 'types/index.js'; import { AzureRestApi } from '../rest-api.js'; import { IoTEdgeModule } from "../../types/module-twin.js"; export declare class AzureIotDeviceApi { /** * @param {AzureRestApi} api */ api: AzureRestApi; constructor(api: AzureRestApi); /** * List IoT Devices * @see https://learn.microsoft.com/en-us/rest/api/iothub/service/devices/get-devices * @param {string} iotHubName */ list(iotHubName: string): Promise>; /** * Get IoT Device * @see https://learn.microsoft.com/en-us/rest/api/iothub/service/devices/get-identity * @param {string} iotHubName * @param {string} iotDeviceName * @returns {Promise>} */ get(iotHubName: string, iotDeviceName: string): Promise>; /** * Create IoT Device * @see https://learn.microsoft.com/en-us/rest/api/iothub/service/devices/create-or-update-identity * @param {string} iotHubName * @param {string} iotDeviceName * @returns {Promise>} */ create(iotHubName: string, iotDeviceName: string): Promise>; /** * Apply modules on IoT Device * @see https://learn.microsoft.com/en-us/rest/api/iothub/service/configuration/apply-on-edge-device * @param {string} iotHubName * @param {string} iotDeviceName * @param {object} modules * @returns */ applyModules(iotHubName: string, iotDeviceName: string, modulesContent: Record): Promise>; listModulesForDevice(iotHubName: string, iotDeviceName: string): Promise>; } export declare const makeConnectionString: (iotHubName: string, iotDeviceName: string, iotDevicePrimaryKey: string) => string;