UNPKG

657 BTypeScriptView Raw
1import MqttClient, { IClientOptions } from '../client';
2declare function connect(brokerUrl: string): MqttClient;
3declare function connect(opts: IClientOptions): MqttClient;
4declare function connect(brokerUrl: string, opts?: IClientOptions): MqttClient;
5declare function connectAsync(brokerUrl: string): Promise<MqttClient>;
6declare function connectAsync(opts: IClientOptions): Promise<MqttClient>;
7declare function connectAsync(brokerUrl: string, opts?: IClientOptions): Promise<MqttClient>;
8declare function connectAsync(brokerUrl: string, opts: IClientOptions, allowRetries: boolean): Promise<MqttClient>;
9export default connect;
10export { connectAsync };