import MqttClient, { IClientOptions } from '../client'; declare function connect(brokerUrl: string): MqttClient; declare function connect(opts: IClientOptions): MqttClient; declare function connect(brokerUrl: string, opts?: IClientOptions): MqttClient; declare function connectAsync(brokerUrl: string): Promise; declare function connectAsync(opts: IClientOptions): Promise; declare function connectAsync(brokerUrl: string, opts?: IClientOptions): Promise; declare function connectAsync(brokerUrl: string, opts: IClientOptions, allowRetries: boolean): Promise; export default connect; export { connectAsync };