/// export declare type QoS = 0 | 1 | 2; export declare type UserProperties = { [index: string]: string | string[]; }; export interface MQTTConnectOpts { url: string; username?: string; password?: string; topicRoot?: string; reconnectPeriod?: number; will?: { /** * the topic to publish */ topic: string; /** * the message to publish */ payload: Buffer | string; /** * the QoS */ qos: QoS; /** * the retain flag */ retain: boolean; properties?: { willDelayInterval?: number; payloadFormatIndicator?: boolean; messageExpiryInterval?: number; contentType?: string; responseTopic?: string; correlationData?: Buffer; userProperties?: UserProperties; }; }; }