///
import { MqttClient } from '../external/mqtt-client.interface';
import { CustomTransportStrategy, PacketId, ReadPacket } from '../interfaces';
import { MicroserviceOptions } from '../interfaces/microservice-configuration.interface';
import { Server } from './server';
export declare class ServerMqtt extends Server implements CustomTransportStrategy {
private readonly options;
private readonly url;
private mqttClient;
constructor(options: MicroserviceOptions['options']);
listen(callback: () => void): Promise;
start(callback?: () => void): void;
bindEvents(mqttClient: MqttClient): void;
close(): void;
createMqttClient(): MqttClient;
getMessageHandler(pub: MqttClient): any;
handleMessage(channel: string, buffer: Buffer, pub: MqttClient): Promise;
getPublisher(client: MqttClient, pattern: any, id: string): any;
deserialize(content: any): ReadPacket & PacketId;
getAckQueueName(pattern: string): string;
getResQueueName(pattern: string): string;
handleError(stream: any): void;
}