import type { MqttServerOptions } from "../server/mod.ts"; import { MqttServer } from "../server/mod.ts"; type ServerOptions = { hostname?: string; port?: number; key: string; cert: string; }; /** * TLS server that wraps a MqttServer, see the /examples folder */ export declare class TlsServer { /** the MqttServer instance used by the server */ readonly mqttServer: MqttServer; private server?; private serverOptions; /** * Create a new TLS server */ constructor(serverOptions: ServerOptions, mqttOptions: MqttServerOptions | MqttServer); /** * Start listening */ start(): Promise; /** * Stop listening */ stop(opts?: { closeMqtt: boolean; }): Promise; /** * The port number the server is listening on */ get port(): number | undefined; /** * The address the server is listening on */ get address(): string | undefined; } export {}; //# sourceMappingURL=tlsServer.d.ts.map