///
import { Server } from './server';
import { MicroserviceOptions } from '../interfaces/microservice-configuration.interface';
import { CustomTransportStrategy, PacketId } from './../interfaces';
import { ReadPacket } from '@nestjs/microservices';
import { MqttClient } from '../external/mqtt-client.interface';
export declare class ServerMqtt extends Server implements CustomTransportStrategy {
private readonly options;
private readonly url;
private mqttClient;
constructor(options: MicroserviceOptions);
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;
}