import * as mqtt from "mqtt"; import { Agent, mqttClient } from "egg"; export default class AgentMQTTClient { private agent; clients: { [key: string]: mqttClient.MqttClientType; }; constructor(agent: Agent); connect(): void; private onAppPublish; publish(clientId: string, topic: string, message: string, options?: mqtt.IClientPublishOptions): Promise; private onAppSubscribe; subscribe(clientId: string, topic: string, options: mqtt.IClientSubscribeOptions): Promise; private onAppUnsubscribe; unsubscribe(clientId: string, topic: string): Promise; private onMqttMessage; private onMessageSendToRandomApp; private onMessageRequestResponse; }