stem-mqtt 0.0.0-stage → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Sorin Irimies
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,177 @@
1
- # Temporary Holding Version
1
+ # Node.js / TypeScript
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ ESM bindings generated by [`uniffi-bindgen-node-js`](https://github.com/criccomini/uniffi-bindgen-node-js),
4
+ loading the Rust library through [koffi](https://koffi.dev/). One npm package with two entry points.
5
+ Read the [shared concepts](https://github.com/sorinirimies/stem-mqtt/blob/main/docs/languages/README.md) first for the option records and semantics.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ npm install stem-mqtt
11
+ ```
12
+
13
+ ```js
14
+ import * as mqtt from "stem-mqtt/client";
15
+ import * as brk from "stem-mqtt/broker";
16
+ ```
17
+
18
+ The package is `stem-mqtt` on npmjs.org. On GitHub Packages and the Gitea registry it is published as
19
+ `@<owner>/stem-mqtt-node` (those registries require the scope to match the owner). It replaces the earlier
20
+ hand-written napi-rs addon `stem-mqtt-client`, which had no broker.
21
+
22
+ ## Requirements
23
+
24
+ - Node.js 16+ (ESM — use `"type": "module"` or `.mjs`). **Server-side only**; there is no browser build
25
+ (browsers can talk to the broker's WebSocket port with any MQTT.js client instead).
26
+ - The package bundles the native library under `client/prebuilds/<platform>-<arch>[-libc]/` and
27
+ `broker/prebuilds/…` for the platforms the release built — **Linux x86_64 (glibc) today**. `package.json`
28
+ lists exactly those platforms in `os` / `cpu`, so `npm install` on another platform fails immediately
29
+ (`EBADPLATFORM`) instead of at first use. Other platforms: build the library (below) or ask for it to be added.
30
+ - No compiler is needed at install time: `koffi` ships prebuilt binaries.
31
+
32
+ ## Quick start
33
+
34
+ ```js
35
+ import * as mqtt from "stem-mqtt/client";
36
+ import * as brk from "stem-mqtt/broker";
37
+
38
+ const broker = new brk.MqttBroker({
39
+ bind_address: "127.0.0.1", port: 0, ws_port: undefined, allow_anonymous: true, max_clients: 0,
40
+ max_qos: brk.QoS.ExactlyOnce, max_retained_messages: 100, max_queued_per_client: 100,
41
+ redelivery_interval_secs: 0, tls: undefined, max_packet_size: 0, max_outbound_queue: 0,
42
+ session_expiry_secs: 0,
43
+ });
44
+ await broker.start();
45
+ const port = broker.bound_port();
46
+
47
+ const options = (client_id) => ({
48
+ host: "127.0.0.1", port, client_id, version: mqtt.MqttVersion.V5, clean_start: true,
49
+ keep_alive_secs: 30, username: undefined, password: undefined, will: undefined,
50
+ connect_timeout_secs: 10, operation_timeout_secs: 5, auto_reconnect: false,
51
+ reconnect_backoff_secs: 0, reconnect_max_backoff_secs: 0, tls: undefined,
52
+ max_packet_size: 0, auth_method: undefined, auth_data: undefined,
53
+ });
54
+
55
+ let resolveMessage;
56
+ const got = new Promise((resolve) => (resolveMessage = resolve));
57
+ const sub = new mqtt.MqttClient(options("node-sub"));
58
+ sub.set_message_listener({ on_message: resolveMessage, on_disconnected: () => {} });
59
+ await sub.connect();
60
+ await sub.subscribe("demo/#", mqtt.QoS.AtLeastOnce);
61
+
62
+ const pub = new mqtt.MqttClient(options("node-pub"));
63
+ await pub.connect();
64
+ await pub.publish("demo/hello", new TextEncoder().encode("hello"), mqtt.QoS.AtLeastOnce, false);
65
+
66
+ const message = await got;
67
+ console.log(message.topic, new TextDecoder().decode(message.payload));
68
+
69
+ await pub.disconnect(); await sub.disconnect(); await broker.stop();
70
+ process.exit(0); // see "Language notes"
71
+ ```
72
+
73
+ ## Client
74
+
75
+ - Methods return `Promise`s: `connect()`, `subscribe(filter, qos)`, `unsubscribe(filter)`,
76
+ `publish(topic, payload: Uint8Array, qos, retain)`, `disconnect()`. `is_connected()`,
77
+ `set_message_listener()`, `enable_message_queue()`, `last_disconnect_reason()` are synchronous.
78
+ - Property and method names keep the Rust snake_case (`client_id`, `keep_alive_secs`, `set_message_listener`).
79
+ - Enums are PascalCase members: `mqtt.QoS.AtMostOnce | AtLeastOnce | ExactlyOnce`,
80
+ `mqtt.MqttVersion.V311 | V5`. Optional values are `undefined`.
81
+ - **Callbacks are plain objects** with the interface's methods — no class needed:
82
+ `{ on_message: (m) => …, on_disconnected: (reason) => … }`. `message.payload` is a `Uint8Array`.
83
+ - **Or pull**: `client.enable_message_queue(16)`, then `await client.next_message(5000)` → a message, or nothing if the timeout passes.
84
+
85
+ ## Broker
86
+
87
+ `new brk.MqttBroker(config)`; `await start()`, `await stop()`, `is_running()`, `bound_port()`,
88
+ `bound_ws_port()`, `bound_tls_port()`, `client_count()`. Every config field is required (the generator
89
+ has no default arguments): pass `0` / `undefined` for the ones you don't need.
90
+
91
+ ```js
92
+ broker.set_event_listener({
93
+ on_client_connected: (id) => console.log("+", id),
94
+ on_client_disconnected: (id, reason) => console.log("-", id, reason),
95
+ on_message_published: (id, topic, qos) => console.log(id, "->", topic),
96
+ });
97
+ // or: broker.enable_event_queue(64); const event = await broker.next_event(1000);
98
+ ```
99
+
100
+ ## Authentication
101
+
102
+ ```js
103
+ broker.set_auth_provider({
104
+ authenticate: (clientId, username, password) => username === "demo" && password !== undefined,
105
+ });
106
+ ```
107
+
108
+ A refused client makes `await client.connect()` reject. Enhanced authentication (as in the test):
109
+
110
+ ```js
111
+ broker.set_enhanced_auth_provider({
112
+ step: (_id, _method, data, round) =>
113
+ round === 0
114
+ ? { outcome: brk.EnhancedAuthOutcome.Continue, data: new Uint8Array([7]) }
115
+ : data && data[0] === 8
116
+ ? { outcome: brk.EnhancedAuthOutcome.Success, data: new TextEncoder().encode("welcome") }
117
+ : { outcome: brk.EnhancedAuthOutcome.Failure, data: new Uint8Array() },
118
+ });
119
+
120
+ const client = new mqtt.MqttClient({ ...options("node-eauth"), auth_method: "X-ADD-ONE",
121
+ auth_data: new TextEncoder().encode("hello") });
122
+ client.set_auth_handler({ respond: (_method, challenge) => challenge.map((b) => b + 1) });
123
+ await client.connect();
124
+ ```
125
+
126
+ ## TLS
127
+
128
+ ```js
129
+ import { readFileSync } from "node:fs";
130
+ const tls = { ca_cert_pem: readFileSync("ca.pem"), client_cert_pem: undefined,
131
+ client_key_pem: undefined, insecure_skip_certificate_verification: false };
132
+ // client: { ...options("c"), tls }
133
+
134
+ const brokerTls = { port: 8883, cert_pem: readFileSync("server.pem"),
135
+ key_pem: readFileSync("server.key"), client_ca_pem: undefined };
136
+ // broker config: tls: brokerTls
137
+ ```
138
+
139
+ ## Language notes
140
+
141
+ - **Errors** are classes named `MqttError<Variant>` (`mqtt.MqttErrorProtocol`, …) — test with `instanceof`.
142
+ Publishing to a wildcard topic rejects with `MqttErrorProtocol`.
143
+ - **The process may not exit on its own** while the native library holds handles; call `process.exit()`
144
+ when you are done (the smoke test does).
145
+ - Packet payloads are `Uint8Array`, not `Buffer`; `Buffer.from(u8)` converts.
146
+
147
+ ## Building from source
148
+
149
+ ```sh
150
+ cargo build --release -p stem-mqtt-client -p stem-mqtt-broker
151
+ nu scripts/install_bindgens.nu node
152
+ nu scripts/publish_packages.nu stage node # dist/node/{client,broker,runtime}/ + this host's native libs
153
+ cd dist/node && npm pack
154
+ ```
155
+
156
+ To ship more platforms in one package, build `stage` on each OS and merge the extra libraries in:
157
+ `nu scripts/publish_packages.nu stage node --add-native /path/to/other-stage/native` (a directory containing
158
+ `<platform>/` folders such as `linux-x86_64/` or `macos-aarch64/`).
159
+
160
+ The package layout is `client/`, `broker/` and one shared `runtime/` — the generator emits a copy of the runtime
161
+ per component, and two copies cannot be loaded into one process because they register the same named types in
162
+ koffi.
163
+
164
+ The end-to-end test is [`tests/bindings/node/smoke.mjs`](https://github.com/sorinirimies/stem-mqtt/blob/main/tests/bindings/node/smoke.mjs)
165
+ (`nu scripts/test_bindings.nu node`).
166
+
167
+ ## Troubleshooting
168
+
169
+ - **`Cannot find module './client/index.js'`** — import the package entry points
170
+ (`stem-mqtt/client`), not a path.
171
+ - **`EBADPLATFORM` on install, or `Failed to load shared library`** — the package has no native library for your
172
+ OS/arch; build from source and copy `libmqtt_client.*` / `libmqtt_broker.*` into
173
+ `client/prebuilds/<platform>-<arch>/` and `broker/prebuilds/<platform>-<arch>/`.
174
+ - **`Duplicate type name 'RustBuffer'`** — you are using separately generated components; the published
175
+ package shares one `runtime/` between client and broker precisely to avoid this.
176
+ - **`SyntaxError: Cannot use import statement`** — the file isn't ESM; use `.mjs` or `"type": "module"`.
177
+ - **Hangs at the end** — see "The process may not exit".
@@ -0,0 +1 @@
1
+ export * from "./mqtt_broker.js";
@@ -0,0 +1,7 @@
1
+
2
+ import { load as loadFfi } from "./mqtt_broker-ffi.js";
3
+
4
+ loadFfi();
5
+
6
+
7
+ export * from "./mqtt_broker.js";
@@ -0,0 +1,247 @@
1
+ export interface FfiMetadata {
2
+ namespace: string;
3
+ cdylibName: string;
4
+ stagedLibraryPackageRelativePath: string;
5
+ bundledPrebuilds: boolean;
6
+ manualLoad: boolean;
7
+ }
8
+
9
+ export interface FfiBindings {
10
+ libraryPath: string;
11
+ packageRelativePath: string | null;
12
+ library: unknown;
13
+ ffiTypes: Readonly<Record<string, unknown>>;
14
+ ffiCallbacks: Readonly<Record<string, unknown>>;
15
+ ffiStructs: Readonly<Record<string, unknown>>;
16
+ ffiFunctions: Readonly<Record<string, (...args: any[]) => any>>;
17
+ }
18
+
19
+ export interface FfiIntegrity {
20
+ contractVersionFunction: string;
21
+ expectedContractVersion: number;
22
+ checksums: Readonly<Record<string, number>>;
23
+ }
24
+
25
+ export interface FfiRuntimeHooks {
26
+ onLoad?(bindings: Readonly<FfiBindings>): void;
27
+ onUnload?(bindings: Readonly<FfiBindings>): void;
28
+ }
29
+
30
+ export declare const ffiMetadata: Readonly<FfiMetadata>;
31
+ export declare const ffiIntegrity: Readonly<FfiIntegrity>;
32
+ export declare function configureRuntimeHooks(hooks?: FfiRuntimeHooks | null): void;
33
+ export declare function load(libraryPath?: string | null): Readonly<FfiBindings>;
34
+ export declare function unload(): boolean;
35
+ export declare function isLoaded(): boolean;
36
+ export declare function getFfiBindings(): Readonly<FfiBindings>;
37
+ export declare function getFfiTypes(): Readonly<Record<string, unknown>>;
38
+ export declare function getContractVersion(bindings?: Readonly<FfiBindings>): number;
39
+ export declare function validateContractVersion(bindings?: Readonly<FfiBindings>): number;
40
+ export declare function getChecksums(
41
+ bindings?: Readonly<FfiBindings>,
42
+ ): Readonly<Record<string, number>>;
43
+ export declare function validateChecksums(
44
+ bindings?: Readonly<FfiBindings>,
45
+ ): Readonly<Record<string, number>>;
46
+ export declare const ffiFunctions: Readonly<Record<string, (...args: any[]) => any>>;
47
+
48
+
49
+ export declare function uniffi_mqtt_broker_fn_clone_mqttbroker(...args: any[]): any;
50
+
51
+ export declare function uniffi_mqtt_broker_fn_free_mqttbroker(...args: any[]): any;
52
+
53
+ export declare function uniffi_mqtt_broker_fn_constructor_mqttbroker_new(...args: any[]): any;
54
+
55
+ export declare function uniffi_mqtt_broker_fn_method_mqttbroker_bound_port(...args: any[]): any;
56
+
57
+ export declare function uniffi_mqtt_broker_fn_method_mqttbroker_bound_tls_port(...args: any[]): any;
58
+
59
+ export declare function uniffi_mqtt_broker_fn_method_mqttbroker_bound_ws_port(...args: any[]): any;
60
+
61
+ export declare function uniffi_mqtt_broker_fn_method_mqttbroker_client_count(...args: any[]): any;
62
+
63
+ export declare function uniffi_mqtt_broker_fn_method_mqttbroker_enable_event_queue(...args: any[]): any;
64
+
65
+ export declare function uniffi_mqtt_broker_fn_method_mqttbroker_is_running(...args: any[]): any;
66
+
67
+ export declare function uniffi_mqtt_broker_fn_method_mqttbroker_next_event(...args: any[]): any;
68
+
69
+ export declare function uniffi_mqtt_broker_fn_method_mqttbroker_set_auth_provider(...args: any[]): any;
70
+
71
+ export declare function uniffi_mqtt_broker_fn_method_mqttbroker_set_enhanced_auth_provider(...args: any[]): any;
72
+
73
+ export declare function uniffi_mqtt_broker_fn_method_mqttbroker_set_event_listener(...args: any[]): any;
74
+
75
+ export declare function uniffi_mqtt_broker_fn_method_mqttbroker_start(...args: any[]): any;
76
+
77
+ export declare function uniffi_mqtt_broker_fn_method_mqttbroker_stop(...args: any[]): any;
78
+
79
+ export declare function uniffi_mqtt_broker_fn_clone_mqttauthprovider(...args: any[]): any;
80
+
81
+ export declare function uniffi_mqtt_broker_fn_free_mqttauthprovider(...args: any[]): any;
82
+
83
+ export declare function uniffi_mqtt_broker_fn_init_callback_vtable_mqttauthprovider(...args: any[]): any;
84
+
85
+ export declare function uniffi_mqtt_broker_fn_method_mqttauthprovider_authenticate(...args: any[]): any;
86
+
87
+ export declare function uniffi_mqtt_broker_fn_clone_mqttbrokereventlistener(...args: any[]): any;
88
+
89
+ export declare function uniffi_mqtt_broker_fn_free_mqttbrokereventlistener(...args: any[]): any;
90
+
91
+ export declare function uniffi_mqtt_broker_fn_init_callback_vtable_mqttbrokereventlistener(...args: any[]): any;
92
+
93
+ export declare function uniffi_mqtt_broker_fn_method_mqttbrokereventlistener_on_client_connected(...args: any[]): any;
94
+
95
+ export declare function uniffi_mqtt_broker_fn_method_mqttbrokereventlistener_on_client_disconnected(...args: any[]): any;
96
+
97
+ export declare function uniffi_mqtt_broker_fn_method_mqttbrokereventlistener_on_message_published(...args: any[]): any;
98
+
99
+ export declare function uniffi_mqtt_broker_fn_clone_mqttenhancedauthprovider(...args: any[]): any;
100
+
101
+ export declare function uniffi_mqtt_broker_fn_free_mqttenhancedauthprovider(...args: any[]): any;
102
+
103
+ export declare function uniffi_mqtt_broker_fn_init_callback_vtable_mqttenhancedauthprovider(...args: any[]): any;
104
+
105
+ export declare function uniffi_mqtt_broker_fn_method_mqttenhancedauthprovider_step(...args: any[]): any;
106
+
107
+ export declare function ffi_mqtt_broker_rustbuffer_alloc(...args: any[]): any;
108
+
109
+ export declare function ffi_mqtt_broker_rustbuffer_from_bytes(...args: any[]): any;
110
+
111
+ export declare function ffi_mqtt_broker_rustbuffer_free(...args: any[]): any;
112
+
113
+ export declare function ffi_mqtt_broker_rustbuffer_reserve(...args: any[]): any;
114
+
115
+ export declare function ffi_mqtt_broker_rust_future_poll_u8(...args: any[]): any;
116
+
117
+ export declare function ffi_mqtt_broker_rust_future_cancel_u8(...args: any[]): any;
118
+
119
+ export declare function ffi_mqtt_broker_rust_future_free_u8(...args: any[]): any;
120
+
121
+ export declare function ffi_mqtt_broker_rust_future_complete_u8(...args: any[]): any;
122
+
123
+ export declare function ffi_mqtt_broker_rust_future_poll_i8(...args: any[]): any;
124
+
125
+ export declare function ffi_mqtt_broker_rust_future_cancel_i8(...args: any[]): any;
126
+
127
+ export declare function ffi_mqtt_broker_rust_future_free_i8(...args: any[]): any;
128
+
129
+ export declare function ffi_mqtt_broker_rust_future_complete_i8(...args: any[]): any;
130
+
131
+ export declare function ffi_mqtt_broker_rust_future_poll_u16(...args: any[]): any;
132
+
133
+ export declare function ffi_mqtt_broker_rust_future_cancel_u16(...args: any[]): any;
134
+
135
+ export declare function ffi_mqtt_broker_rust_future_free_u16(...args: any[]): any;
136
+
137
+ export declare function ffi_mqtt_broker_rust_future_complete_u16(...args: any[]): any;
138
+
139
+ export declare function ffi_mqtt_broker_rust_future_poll_i16(...args: any[]): any;
140
+
141
+ export declare function ffi_mqtt_broker_rust_future_cancel_i16(...args: any[]): any;
142
+
143
+ export declare function ffi_mqtt_broker_rust_future_free_i16(...args: any[]): any;
144
+
145
+ export declare function ffi_mqtt_broker_rust_future_complete_i16(...args: any[]): any;
146
+
147
+ export declare function ffi_mqtt_broker_rust_future_poll_u32(...args: any[]): any;
148
+
149
+ export declare function ffi_mqtt_broker_rust_future_cancel_u32(...args: any[]): any;
150
+
151
+ export declare function ffi_mqtt_broker_rust_future_free_u32(...args: any[]): any;
152
+
153
+ export declare function ffi_mqtt_broker_rust_future_complete_u32(...args: any[]): any;
154
+
155
+ export declare function ffi_mqtt_broker_rust_future_poll_i32(...args: any[]): any;
156
+
157
+ export declare function ffi_mqtt_broker_rust_future_cancel_i32(...args: any[]): any;
158
+
159
+ export declare function ffi_mqtt_broker_rust_future_free_i32(...args: any[]): any;
160
+
161
+ export declare function ffi_mqtt_broker_rust_future_complete_i32(...args: any[]): any;
162
+
163
+ export declare function ffi_mqtt_broker_rust_future_poll_u64(...args: any[]): any;
164
+
165
+ export declare function ffi_mqtt_broker_rust_future_cancel_u64(...args: any[]): any;
166
+
167
+ export declare function ffi_mqtt_broker_rust_future_free_u64(...args: any[]): any;
168
+
169
+ export declare function ffi_mqtt_broker_rust_future_complete_u64(...args: any[]): any;
170
+
171
+ export declare function ffi_mqtt_broker_rust_future_poll_i64(...args: any[]): any;
172
+
173
+ export declare function ffi_mqtt_broker_rust_future_cancel_i64(...args: any[]): any;
174
+
175
+ export declare function ffi_mqtt_broker_rust_future_free_i64(...args: any[]): any;
176
+
177
+ export declare function ffi_mqtt_broker_rust_future_complete_i64(...args: any[]): any;
178
+
179
+ export declare function ffi_mqtt_broker_rust_future_poll_f32(...args: any[]): any;
180
+
181
+ export declare function ffi_mqtt_broker_rust_future_cancel_f32(...args: any[]): any;
182
+
183
+ export declare function ffi_mqtt_broker_rust_future_free_f32(...args: any[]): any;
184
+
185
+ export declare function ffi_mqtt_broker_rust_future_complete_f32(...args: any[]): any;
186
+
187
+ export declare function ffi_mqtt_broker_rust_future_poll_f64(...args: any[]): any;
188
+
189
+ export declare function ffi_mqtt_broker_rust_future_cancel_f64(...args: any[]): any;
190
+
191
+ export declare function ffi_mqtt_broker_rust_future_free_f64(...args: any[]): any;
192
+
193
+ export declare function ffi_mqtt_broker_rust_future_complete_f64(...args: any[]): any;
194
+
195
+ export declare function ffi_mqtt_broker_rust_future_poll_rust_buffer(...args: any[]): any;
196
+
197
+ export declare function ffi_mqtt_broker_rust_future_cancel_rust_buffer(...args: any[]): any;
198
+
199
+ export declare function ffi_mqtt_broker_rust_future_free_rust_buffer(...args: any[]): any;
200
+
201
+ export declare function ffi_mqtt_broker_rust_future_complete_rust_buffer(...args: any[]): any;
202
+
203
+ export declare function ffi_mqtt_broker_rust_future_poll_void(...args: any[]): any;
204
+
205
+ export declare function ffi_mqtt_broker_rust_future_cancel_void(...args: any[]): any;
206
+
207
+ export declare function ffi_mqtt_broker_rust_future_free_void(...args: any[]): any;
208
+
209
+ export declare function ffi_mqtt_broker_rust_future_complete_void(...args: any[]): any;
210
+
211
+ export declare function uniffi_mqtt_broker_checksum_method_mqttbroker_bound_port(...args: any[]): any;
212
+
213
+ export declare function uniffi_mqtt_broker_checksum_method_mqttbroker_bound_tls_port(...args: any[]): any;
214
+
215
+ export declare function uniffi_mqtt_broker_checksum_method_mqttbroker_bound_ws_port(...args: any[]): any;
216
+
217
+ export declare function uniffi_mqtt_broker_checksum_method_mqttbroker_client_count(...args: any[]): any;
218
+
219
+ export declare function uniffi_mqtt_broker_checksum_method_mqttbroker_enable_event_queue(...args: any[]): any;
220
+
221
+ export declare function uniffi_mqtt_broker_checksum_method_mqttbroker_is_running(...args: any[]): any;
222
+
223
+ export declare function uniffi_mqtt_broker_checksum_method_mqttbroker_next_event(...args: any[]): any;
224
+
225
+ export declare function uniffi_mqtt_broker_checksum_method_mqttbroker_set_auth_provider(...args: any[]): any;
226
+
227
+ export declare function uniffi_mqtt_broker_checksum_method_mqttbroker_set_enhanced_auth_provider(...args: any[]): any;
228
+
229
+ export declare function uniffi_mqtt_broker_checksum_method_mqttbroker_set_event_listener(...args: any[]): any;
230
+
231
+ export declare function uniffi_mqtt_broker_checksum_method_mqttbroker_start(...args: any[]): any;
232
+
233
+ export declare function uniffi_mqtt_broker_checksum_method_mqttbroker_stop(...args: any[]): any;
234
+
235
+ export declare function uniffi_mqtt_broker_checksum_method_mqttauthprovider_authenticate(...args: any[]): any;
236
+
237
+ export declare function uniffi_mqtt_broker_checksum_method_mqttbrokereventlistener_on_client_connected(...args: any[]): any;
238
+
239
+ export declare function uniffi_mqtt_broker_checksum_method_mqttbrokereventlistener_on_client_disconnected(...args: any[]): any;
240
+
241
+ export declare function uniffi_mqtt_broker_checksum_method_mqttbrokereventlistener_on_message_published(...args: any[]): any;
242
+
243
+ export declare function uniffi_mqtt_broker_checksum_method_mqttenhancedauthprovider_step(...args: any[]): any;
244
+
245
+ export declare function uniffi_mqtt_broker_checksum_constructor_mqttbroker_new(...args: any[]): any;
246
+
247
+ export declare function ffi_mqtt_broker_uniffi_contract_version(...args: any[]): any;