import { RequestOptions } from './coap'; export interface CoIoTMessage { rawdevid: string; deviceType: string; deviceId: string; protocolRevision: string; payload: T; location: { host: string; port: number; }; } export interface CoIoTStatus extends CoIoTMessage { validFor: number; serial: number; } export declare type CoIoTDescription = CoIoTMessage; export interface CoIoTDeviceDescription { blk: CoIoTDeviceBlock[]; sen: CoIoTDeviceSensor[]; } export interface CoIoTDeviceBlock { I: string; D: string; } export declare enum CoIoTDeviceSensorsType { ALARM = "A", BATTERY_LEVEL = "B", CONCENTRATION = "C", ENERGY = "E", EVENT = "EV", EVENT_COUNTER = "EVC", HUMIDITY = "H", CURRENT = "I", LUMINOSITY = "L", POWER = "P", STATUS = "S", TEMPERATURE = "T", VOLTAGE = "V" } export declare enum CoIoTDeviceSensorUnit { WATTS = "W", WATTS_MINUTES = "Wmin", WATTS_HOURS = "Wh", VOLTS = "V", AMPERES = "A", CELSIUS = "C", FAHRENHEIT = "F", KELVIN = "K", DEGREES = "deg", LUX = "lux", PARTS_PER_MILLION = "ppm", SECONDS = "s" } export interface CoIoTDeviceSensor { I: number; T: CoIoTDeviceSensorsType; D: string; U?: CoIoTDeviceSensorUnit; R?: string | [string, string]; L: number | number[]; } export interface CoIoTDeviceStatus { G: [0, number, number | string][]; } export interface CoIoTClientOptions extends RequestOptions { timeout?: number; }