react-native-nobodywho 5.1.0 → 6.0.0

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.
Files changed (34) hide show
  1. package/Nobodywho.podspec +25 -20
  2. package/README.md +8 -8
  3. package/android/CMakeLists.txt +4 -15
  4. package/android/build.gradle +4 -5
  5. package/android/proguard-rules.pro +6 -0
  6. package/{generated/cpp → cpp/generated}/nobodywho.cpp +424 -66
  7. package/{generated/cpp → cpp/generated}/nobodywho.hpp +26 -2
  8. package/cpp/react-native-nobodywho.cpp +1 -1
  9. package/package.json +28 -14
  10. package/src/generated/index.ts +2 -0
  11. package/src/generated/jsi/nobodywho-ffi.ts +937 -0
  12. package/src/generated/jsi/nobodywho.ts +7421 -0
  13. package/src/index.ts +23 -0
  14. package/src/{chat.ts → wrapper/chat.ts} +1 -1
  15. package/src/wrapper/convert_value.ts +47 -0
  16. package/src/{cross_encoder.ts → wrapper/cross_encoder.ts} +1 -1
  17. package/src/wrapper/decision.ts +112 -0
  18. package/src/{encoder.ts → wrapper/encoder.ts} +1 -1
  19. package/src/{wrapper.ts → wrapper/index.ts} +11 -24
  20. package/src/{message.ts → wrapper/message.ts} +1 -1
  21. package/src/{model.ts → wrapper/model.ts} +1 -1
  22. package/src/{prompt.ts → wrapper/prompt.ts} +1 -1
  23. package/src/{sampler_presets.ts → wrapper/sampler_presets.ts} +1 -1
  24. package/src/{speech_to_text.ts → wrapper/speech_to_text.ts} +2 -2
  25. package/src/{streaming.ts → wrapper/streaming.ts} +1 -1
  26. package/src/{text_to_speech.ts → wrapper/text_to_speech.ts} +1 -1
  27. package/src/{tool.ts → wrapper/tool.ts} +2 -51
  28. package/src/{vad.ts → wrapper/vad.ts} +3 -3
  29. package/ubrn.config.yaml +26 -5
  30. package/cpp/nobodywho-react-native.cpp +0 -16
  31. package/cpp/nobodywho-react-native.h +0 -15
  32. package/generated/ts/nobodywho-ffi.ts +0 -414
  33. package/generated/ts/nobodywho.ts +0 -5472
  34. package/src/index.tsx +0 -41
@@ -0,0 +1,937 @@
1
+ // This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
2
+ // Trust me, you don't want to mess with it!
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // @ts-nocheck
7
+
8
+ import {
9
+ type StructuralEquality as UniffiStructuralEquality,
10
+ type UniffiForeignFuture as RuntimeUniffiForeignFuture,
11
+ type UniffiRustCallStatus,
12
+ type UniffiGcObject,
13
+ type UniffiRustFutureContinuationCallback as RuntimeUniffiRustFutureContinuationCallback,
14
+ type UniffiResult,
15
+ } from "@ubjs/core";
16
+
17
+ interface NativeModuleInterface {
18
+ ubrn_uniffi_internal_fn_func_ffi__string_to_byte_length(
19
+ string: string,
20
+ uniffi_out_err: UniffiRustCallStatus,
21
+ ): number;
22
+ ubrn_uniffi_internal_fn_func_ffi__string_to_buffer(
23
+ string: string,
24
+ uniffi_out_err: UniffiRustCallStatus,
25
+ ): Uint8Array;
26
+ ubrn_uniffi_internal_fn_func_ffi__string_from_buffer(
27
+ buffer: Uint8Array,
28
+ uniffi_out_err: UniffiRustCallStatus,
29
+ ): string;
30
+ ubrn_uniffi_internal_fn_func_ffi__read_string_from_buffer(
31
+ buffer: any,
32
+ offset: number,
33
+ length: number,
34
+ ): string;
35
+ ubrn_ffi_nobodywho_uniffi_rust_future_poll_u8(
36
+ handle: bigint,
37
+ callback: UniffiRustFutureContinuationCallback,
38
+ callbackData: bigint,
39
+ ): void;
40
+ ubrn_ffi_nobodywho_uniffi_rust_future_cancel_u8(handle: bigint): void;
41
+ ubrn_ffi_nobodywho_uniffi_rust_future_complete_u8(
42
+ handle: bigint,
43
+ uniffi_out_err: UniffiRustCallStatus,
44
+ ): number;
45
+ ubrn_ffi_nobodywho_uniffi_rust_future_free_u8(handle: bigint): void;
46
+ ubrn_ffi_nobodywho_uniffi_rust_future_poll_i8(
47
+ handle: bigint,
48
+ callback: UniffiRustFutureContinuationCallback,
49
+ callbackData: bigint,
50
+ ): void;
51
+ ubrn_ffi_nobodywho_uniffi_rust_future_cancel_i8(handle: bigint): void;
52
+ ubrn_ffi_nobodywho_uniffi_rust_future_complete_i8(
53
+ handle: bigint,
54
+ uniffi_out_err: UniffiRustCallStatus,
55
+ ): number;
56
+ ubrn_ffi_nobodywho_uniffi_rust_future_free_i8(handle: bigint): void;
57
+ ubrn_ffi_nobodywho_uniffi_rust_future_poll_u16(
58
+ handle: bigint,
59
+ callback: UniffiRustFutureContinuationCallback,
60
+ callbackData: bigint,
61
+ ): void;
62
+ ubrn_ffi_nobodywho_uniffi_rust_future_cancel_u16(handle: bigint): void;
63
+ ubrn_ffi_nobodywho_uniffi_rust_future_complete_u16(
64
+ handle: bigint,
65
+ uniffi_out_err: UniffiRustCallStatus,
66
+ ): number;
67
+ ubrn_ffi_nobodywho_uniffi_rust_future_free_u16(handle: bigint): void;
68
+ ubrn_ffi_nobodywho_uniffi_rust_future_poll_i16(
69
+ handle: bigint,
70
+ callback: UniffiRustFutureContinuationCallback,
71
+ callbackData: bigint,
72
+ ): void;
73
+ ubrn_ffi_nobodywho_uniffi_rust_future_cancel_i16(handle: bigint): void;
74
+ ubrn_ffi_nobodywho_uniffi_rust_future_complete_i16(
75
+ handle: bigint,
76
+ uniffi_out_err: UniffiRustCallStatus,
77
+ ): number;
78
+ ubrn_ffi_nobodywho_uniffi_rust_future_free_i16(handle: bigint): void;
79
+ ubrn_ffi_nobodywho_uniffi_rust_future_poll_u32(
80
+ handle: bigint,
81
+ callback: UniffiRustFutureContinuationCallback,
82
+ callbackData: bigint,
83
+ ): void;
84
+ ubrn_ffi_nobodywho_uniffi_rust_future_cancel_u32(handle: bigint): void;
85
+ ubrn_ffi_nobodywho_uniffi_rust_future_complete_u32(
86
+ handle: bigint,
87
+ uniffi_out_err: UniffiRustCallStatus,
88
+ ): number;
89
+ ubrn_ffi_nobodywho_uniffi_rust_future_free_u32(handle: bigint): void;
90
+ ubrn_ffi_nobodywho_uniffi_rust_future_poll_i32(
91
+ handle: bigint,
92
+ callback: UniffiRustFutureContinuationCallback,
93
+ callbackData: bigint,
94
+ ): void;
95
+ ubrn_ffi_nobodywho_uniffi_rust_future_cancel_i32(handle: bigint): void;
96
+ ubrn_ffi_nobodywho_uniffi_rust_future_complete_i32(
97
+ handle: bigint,
98
+ uniffi_out_err: UniffiRustCallStatus,
99
+ ): number;
100
+ ubrn_ffi_nobodywho_uniffi_rust_future_free_i32(handle: bigint): void;
101
+ ubrn_ffi_nobodywho_uniffi_rust_future_poll_u64(
102
+ handle: bigint,
103
+ callback: UniffiRustFutureContinuationCallback,
104
+ callbackData: bigint,
105
+ ): void;
106
+ ubrn_ffi_nobodywho_uniffi_rust_future_cancel_u64(handle: bigint): void;
107
+ ubrn_ffi_nobodywho_uniffi_rust_future_complete_u64(
108
+ handle: bigint,
109
+ uniffi_out_err: UniffiRustCallStatus,
110
+ ): bigint;
111
+ ubrn_ffi_nobodywho_uniffi_rust_future_free_u64(handle: bigint): void;
112
+ ubrn_ffi_nobodywho_uniffi_rust_future_poll_i64(
113
+ handle: bigint,
114
+ callback: UniffiRustFutureContinuationCallback,
115
+ callbackData: bigint,
116
+ ): void;
117
+ ubrn_ffi_nobodywho_uniffi_rust_future_cancel_i64(handle: bigint): void;
118
+ ubrn_ffi_nobodywho_uniffi_rust_future_complete_i64(
119
+ handle: bigint,
120
+ uniffi_out_err: UniffiRustCallStatus,
121
+ ): bigint;
122
+ ubrn_ffi_nobodywho_uniffi_rust_future_free_i64(handle: bigint): void;
123
+ ubrn_ffi_nobodywho_uniffi_rust_future_poll_f32(
124
+ handle: bigint,
125
+ callback: UniffiRustFutureContinuationCallback,
126
+ callbackData: bigint,
127
+ ): void;
128
+ ubrn_ffi_nobodywho_uniffi_rust_future_cancel_f32(handle: bigint): void;
129
+ ubrn_ffi_nobodywho_uniffi_rust_future_complete_f32(
130
+ handle: bigint,
131
+ uniffi_out_err: UniffiRustCallStatus,
132
+ ): number;
133
+ ubrn_ffi_nobodywho_uniffi_rust_future_free_f32(handle: bigint): void;
134
+ ubrn_ffi_nobodywho_uniffi_rust_future_poll_f64(
135
+ handle: bigint,
136
+ callback: UniffiRustFutureContinuationCallback,
137
+ callbackData: bigint,
138
+ ): void;
139
+ ubrn_ffi_nobodywho_uniffi_rust_future_cancel_f64(handle: bigint): void;
140
+ ubrn_ffi_nobodywho_uniffi_rust_future_complete_f64(
141
+ handle: bigint,
142
+ uniffi_out_err: UniffiRustCallStatus,
143
+ ): number;
144
+ ubrn_ffi_nobodywho_uniffi_rust_future_free_f64(handle: bigint): void;
145
+ ubrn_ffi_nobodywho_uniffi_rust_future_poll_rust_buffer(
146
+ handle: bigint,
147
+ callback: UniffiRustFutureContinuationCallback,
148
+ callbackData: bigint,
149
+ ): void;
150
+ ubrn_ffi_nobodywho_uniffi_rust_future_cancel_rust_buffer(
151
+ handle: bigint,
152
+ ): void;
153
+ ubrn_ffi_nobodywho_uniffi_rust_future_complete_rust_buffer(
154
+ handle: bigint,
155
+ uniffi_out_err: UniffiRustCallStatus,
156
+ ): Uint8Array;
157
+ ubrn_ffi_nobodywho_uniffi_rust_future_free_rust_buffer(handle: bigint): void;
158
+ ubrn_ffi_nobodywho_uniffi_rust_future_poll_void(
159
+ handle: bigint,
160
+ callback: UniffiRustFutureContinuationCallback,
161
+ callbackData: bigint,
162
+ ): void;
163
+ ubrn_ffi_nobodywho_uniffi_rust_future_cancel_void(handle: bigint): void;
164
+ ubrn_ffi_nobodywho_uniffi_rust_future_complete_void(
165
+ handle: bigint,
166
+ uniffi_out_err: UniffiRustCallStatus,
167
+ ): void;
168
+ ubrn_ffi_nobodywho_uniffi_rust_future_free_void(handle: bigint): void;
169
+ ubrn_uniffi_nobodywho_uniffi_fn_clone_rustchat(
170
+ ptr: bigint,
171
+ uniffi_out_err: UniffiRustCallStatus,
172
+ ): bigint;
173
+ ubrn_uniffi_nobodywho_uniffi_fn_free_rustchat(
174
+ ptr: bigint,
175
+ uniffi_out_err: UniffiRustCallStatus,
176
+ ): void;
177
+ ubrn_uniffi_nobodywho_uniffi_fn_clone_rustcrossencoder(
178
+ ptr: bigint,
179
+ uniffi_out_err: UniffiRustCallStatus,
180
+ ): bigint;
181
+ ubrn_uniffi_nobodywho_uniffi_fn_free_rustcrossencoder(
182
+ ptr: bigint,
183
+ uniffi_out_err: UniffiRustCallStatus,
184
+ ): void;
185
+ ubrn_uniffi_nobodywho_uniffi_fn_clone_rustdecision(
186
+ ptr: bigint,
187
+ uniffi_out_err: UniffiRustCallStatus,
188
+ ): bigint;
189
+ ubrn_uniffi_nobodywho_uniffi_fn_free_rustdecision(
190
+ ptr: bigint,
191
+ uniffi_out_err: UniffiRustCallStatus,
192
+ ): void;
193
+ ubrn_uniffi_nobodywho_uniffi_fn_clone_rustencoder(
194
+ ptr: bigint,
195
+ uniffi_out_err: UniffiRustCallStatus,
196
+ ): bigint;
197
+ ubrn_uniffi_nobodywho_uniffi_fn_free_rustencoder(
198
+ ptr: bigint,
199
+ uniffi_out_err: UniffiRustCallStatus,
200
+ ): void;
201
+ ubrn_uniffi_nobodywho_uniffi_fn_clone_rustmodel(
202
+ ptr: bigint,
203
+ uniffi_out_err: UniffiRustCallStatus,
204
+ ): bigint;
205
+ ubrn_uniffi_nobodywho_uniffi_fn_free_rustmodel(
206
+ ptr: bigint,
207
+ uniffi_out_err: UniffiRustCallStatus,
208
+ ): void;
209
+ ubrn_uniffi_nobodywho_uniffi_fn_clone_rustspeechtotext(
210
+ ptr: bigint,
211
+ uniffi_out_err: UniffiRustCallStatus,
212
+ ): bigint;
213
+ ubrn_uniffi_nobodywho_uniffi_fn_free_rustspeechtotext(
214
+ ptr: bigint,
215
+ uniffi_out_err: UniffiRustCallStatus,
216
+ ): void;
217
+ ubrn_uniffi_nobodywho_uniffi_fn_clone_rustspeechtotextstream(
218
+ ptr: bigint,
219
+ uniffi_out_err: UniffiRustCallStatus,
220
+ ): bigint;
221
+ ubrn_uniffi_nobodywho_uniffi_fn_free_rustspeechtotextstream(
222
+ ptr: bigint,
223
+ uniffi_out_err: UniffiRustCallStatus,
224
+ ): void;
225
+ ubrn_uniffi_nobodywho_uniffi_fn_clone_rusttexttospeech(
226
+ ptr: bigint,
227
+ uniffi_out_err: UniffiRustCallStatus,
228
+ ): bigint;
229
+ ubrn_uniffi_nobodywho_uniffi_fn_free_rusttexttospeech(
230
+ ptr: bigint,
231
+ uniffi_out_err: UniffiRustCallStatus,
232
+ ): void;
233
+ ubrn_uniffi_nobodywho_uniffi_fn_clone_rusttokenstream(
234
+ ptr: bigint,
235
+ uniffi_out_err: UniffiRustCallStatus,
236
+ ): bigint;
237
+ ubrn_uniffi_nobodywho_uniffi_fn_free_rusttokenstream(
238
+ ptr: bigint,
239
+ uniffi_out_err: UniffiRustCallStatus,
240
+ ): void;
241
+ ubrn_uniffi_nobodywho_uniffi_fn_clone_rusttool(
242
+ ptr: bigint,
243
+ uniffi_out_err: UniffiRustCallStatus,
244
+ ): bigint;
245
+ ubrn_uniffi_nobodywho_uniffi_fn_free_rusttool(
246
+ ptr: bigint,
247
+ uniffi_out_err: UniffiRustCallStatus,
248
+ ): void;
249
+ ubrn_uniffi_nobodywho_uniffi_fn_clone_rustvoiceactivitydetection(
250
+ ptr: bigint,
251
+ uniffi_out_err: UniffiRustCallStatus,
252
+ ): bigint;
253
+ ubrn_uniffi_nobodywho_uniffi_fn_free_rustvoiceactivitydetection(
254
+ ptr: bigint,
255
+ uniffi_out_err: UniffiRustCallStatus,
256
+ ): void;
257
+ ubrn_uniffi_nobodywho_uniffi_fn_clone_samplerbuilder(
258
+ ptr: bigint,
259
+ uniffi_out_err: UniffiRustCallStatus,
260
+ ): bigint;
261
+ ubrn_uniffi_nobodywho_uniffi_fn_free_samplerbuilder(
262
+ ptr: bigint,
263
+ uniffi_out_err: UniffiRustCallStatus,
264
+ ): void;
265
+ ubrn_uniffi_nobodywho_uniffi_fn_clone_samplerconfig(
266
+ ptr: bigint,
267
+ uniffi_out_err: UniffiRustCallStatus,
268
+ ): bigint;
269
+ ubrn_uniffi_nobodywho_uniffi_fn_free_samplerconfig(
270
+ ptr: bigint,
271
+ uniffi_out_err: UniffiRustCallStatus,
272
+ ): void;
273
+ ubrn_uniffi_nobodywho_uniffi_fn_init_callback_vtable_rustdownloadprogresscallback(
274
+ vtable: UniffiVTableCallbackInterfaceNobodywhoRustDownloadProgressCallback,
275
+ ): void;
276
+ ubrn_uniffi_nobodywho_uniffi_fn_init_callback_vtable_rusttoolcallback(
277
+ vtable: UniffiVTableCallbackInterfaceNobodywhoRustToolCallback,
278
+ ): void;
279
+ ubrn_uniffi_nobodywho_uniffi_fn_func_cosine_similarity(
280
+ a: Uint8Array,
281
+ b: Uint8Array,
282
+ uniffi_out_err: UniffiRustCallStatus,
283
+ ): number;
284
+ ubrn_uniffi_nobodywho_uniffi_fn_func_download_model(
285
+ modelPath: Uint8Array,
286
+ headers: Uint8Array,
287
+ onDownloadProgress: Uint8Array,
288
+ ): bigint;
289
+ ubrn_uniffi_nobodywho_uniffi_fn_func_get_cached_models(
290
+ uniffi_out_err: UniffiRustCallStatus,
291
+ ): Uint8Array;
292
+ ubrn_uniffi_nobodywho_uniffi_fn_func_load_model(
293
+ modelPath: Uint8Array,
294
+ useGpu: number,
295
+ projectionModelPath: Uint8Array,
296
+ draftModelPath: Uint8Array,
297
+ onDownloadProgress: Uint8Array,
298
+ ): bigint;
299
+ ubrn_uniffi_nobodywho_uniffi_fn_func_load_speech_to_text(
300
+ source: Uint8Array,
301
+ language: Uint8Array,
302
+ quantization: Uint8Array,
303
+ ): bigint;
304
+ ubrn_uniffi_nobodywho_uniffi_fn_func_load_text_to_speech(
305
+ source: Uint8Array,
306
+ architecture: Uint8Array,
307
+ voice: Uint8Array,
308
+ language: Uint8Array,
309
+ speed: Uint8Array,
310
+ steps: Uint8Array,
311
+ silenceDuration: Uint8Array,
312
+ precision: Uint8Array,
313
+ temperature: Uint8Array,
314
+ huggingfaceToken: Uint8Array,
315
+ device: Uint8Array,
316
+ ): bigint;
317
+ ubrn_uniffi_nobodywho_uniffi_fn_func_load_voice_activity_detection(
318
+ source: Uint8Array,
319
+ sampleRate: number,
320
+ threshold: Uint8Array,
321
+ minSilenceDurationMs: Uint8Array,
322
+ minSpeechDurationMs: Uint8Array,
323
+ prerollDurationMs: Uint8Array,
324
+ device: Uint8Array,
325
+ ): bigint;
326
+ ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_grammar(
327
+ grammar: Uint8Array,
328
+ uniffi_out_err: UniffiRustCallStatus,
329
+ ): bigint;
330
+ ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_json_schema(
331
+ schema: Uint8Array,
332
+ uniffi_out_err: UniffiRustCallStatus,
333
+ ): bigint;
334
+ ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_regex(
335
+ pattern: Uint8Array,
336
+ uniffi_out_err: UniffiRustCallStatus,
337
+ ): bigint;
338
+ ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_default(
339
+ uniffi_out_err: UniffiRustCallStatus,
340
+ ): bigint;
341
+ ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_dry(
342
+ uniffi_out_err: UniffiRustCallStatus,
343
+ ): bigint;
344
+ ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_greedy(
345
+ uniffi_out_err: UniffiRustCallStatus,
346
+ ): bigint;
347
+ ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_json(
348
+ uniffi_out_err: UniffiRustCallStatus,
349
+ ): bigint;
350
+ ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_temperature(
351
+ temperature: number,
352
+ uniffi_out_err: UniffiRustCallStatus,
353
+ ): bigint;
354
+ ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_top_k(
355
+ topK: number,
356
+ uniffi_out_err: UniffiRustCallStatus,
357
+ ): bigint;
358
+ ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_top_p(
359
+ topP: number,
360
+ uniffi_out_err: UniffiRustCallStatus,
361
+ ): bigint;
362
+ ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustchat_new(
363
+ model: bigint,
364
+ systemPrompt: Uint8Array,
365
+ contextSize: number,
366
+ templateVariables: Uint8Array,
367
+ tools: Uint8Array,
368
+ sampler: Uint8Array,
369
+ mtp: Uint8Array,
370
+ threadCount: Uint8Array,
371
+ contextShift: Uint8Array,
372
+ uniffi_out_err: UniffiRustCallStatus,
373
+ ): bigint;
374
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_ask(
375
+ uniffiSelf: bigint,
376
+ message: Uint8Array,
377
+ uniffi_out_err: UniffiRustCallStatus,
378
+ ): bigint;
379
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_json_prompt(
380
+ uniffiSelf: bigint,
381
+ json: Uint8Array,
382
+ uniffi_out_err: UniffiRustCallStatus,
383
+ ): bigint;
384
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_prompt(
385
+ uniffiSelf: bigint,
386
+ parts: Uint8Array,
387
+ uniffi_out_err: UniffiRustCallStatus,
388
+ ): bigint;
389
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_complete(
390
+ uniffiSelf: bigint,
391
+ messages: Uint8Array,
392
+ options: Uint8Array,
393
+ uniffi_out_err: UniffiRustCallStatus,
394
+ ): bigint;
395
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_chat_history(
396
+ uniffiSelf: bigint,
397
+ ): bigint;
398
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_sampler_config_json(
399
+ uniffiSelf: bigint,
400
+ ): bigint;
401
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_stats(
402
+ uniffiSelf: bigint,
403
+ ): bigint;
404
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_system_prompt(
405
+ uniffiSelf: bigint,
406
+ ): bigint;
407
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_template_variables(
408
+ uniffiSelf: bigint,
409
+ ): bigint;
410
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_mtp_acceptance_rate(
411
+ uniffiSelf: bigint,
412
+ ): bigint;
413
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_reset_context(
414
+ uniffiSelf: bigint,
415
+ systemPrompt: Uint8Array,
416
+ tools: Uint8Array,
417
+ ): bigint;
418
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_reset_history(
419
+ uniffiSelf: bigint,
420
+ ): bigint;
421
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_chat_history(
422
+ uniffiSelf: bigint,
423
+ messages: Uint8Array,
424
+ ): bigint;
425
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_context_shift(
426
+ uniffiSelf: bigint,
427
+ options: Uint8Array,
428
+ ): bigint;
429
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_sampler_config(
430
+ uniffiSelf: bigint,
431
+ sampler: bigint,
432
+ ): bigint;
433
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_system_prompt(
434
+ uniffiSelf: bigint,
435
+ systemPrompt: Uint8Array,
436
+ ): bigint;
437
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_template_variable(
438
+ uniffiSelf: bigint,
439
+ name: Uint8Array,
440
+ value: number,
441
+ ): bigint;
442
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_tools(
443
+ uniffiSelf: bigint,
444
+ tools: Uint8Array,
445
+ ): bigint;
446
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_stop_generation(
447
+ uniffiSelf: bigint,
448
+ uniffi_out_err: UniffiRustCallStatus,
449
+ ): void;
450
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_tokenize(
451
+ uniffiSelf: bigint,
452
+ message: Uint8Array,
453
+ ): bigint;
454
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_tokenize_with_prompt(
455
+ uniffiSelf: bigint,
456
+ parts: Uint8Array,
457
+ ): bigint;
458
+ ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustcrossencoder_new(
459
+ model: bigint,
460
+ contextSize: Uint8Array,
461
+ uniffi_out_err: UniffiRustCallStatus,
462
+ ): bigint;
463
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustcrossencoder_rank(
464
+ uniffiSelf: bigint,
465
+ query: Uint8Array,
466
+ documents: Uint8Array,
467
+ ): bigint;
468
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustcrossencoder_rank_and_sort_json(
469
+ uniffiSelf: bigint,
470
+ query: Uint8Array,
471
+ documents: Uint8Array,
472
+ ): bigint;
473
+ ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustdecision_new(
474
+ model: bigint,
475
+ nCtx: Uint8Array,
476
+ uniffi_out_err: UniffiRustCallStatus,
477
+ ): bigint;
478
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustdecision_decide(
479
+ uniffiSelf: bigint,
480
+ stateJson: Uint8Array,
481
+ questionsJson: Uint8Array,
482
+ ): bigint;
483
+ ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustencoder_new(
484
+ model: bigint,
485
+ contextSize: Uint8Array,
486
+ uniffi_out_err: UniffiRustCallStatus,
487
+ ): bigint;
488
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustencoder_encode(
489
+ uniffiSelf: bigint,
490
+ text: Uint8Array,
491
+ ): bigint;
492
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustencoder_encode_batch(
493
+ uniffiSelf: bigint,
494
+ texts: Uint8Array,
495
+ ): bigint;
496
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustmodel_max_ctx(
497
+ uniffiSelf: bigint,
498
+ uniffi_out_err: UniffiRustCallStatus,
499
+ ): number;
500
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustmodel_source(
501
+ uniffiSelf: bigint,
502
+ uniffi_out_err: UniffiRustCallStatus,
503
+ ): Uint8Array;
504
+ ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustspeechtotext_new(
505
+ source: Uint8Array,
506
+ language: Uint8Array,
507
+ quantization: Uint8Array,
508
+ uniffi_out_err: UniffiRustCallStatus,
509
+ ): bigint;
510
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustspeechtotext_transcribe_file(
511
+ uniffiSelf: bigint,
512
+ path: Uint8Array,
513
+ uniffi_out_err: UniffiRustCallStatus,
514
+ ): bigint;
515
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustspeechtotext_transcribe_pcm(
516
+ uniffiSelf: bigint,
517
+ samples: Uint8Array,
518
+ sampleRate: number,
519
+ uniffi_out_err: UniffiRustCallStatus,
520
+ ): bigint;
521
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustspeechtotextstream_completed(
522
+ uniffiSelf: bigint,
523
+ ): bigint;
524
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustspeechtotextstream_next_token(
525
+ uniffiSelf: bigint,
526
+ ): bigint;
527
+ ubrn_uniffi_nobodywho_uniffi_fn_constructor_rusttexttospeech_new(
528
+ source: Uint8Array,
529
+ architecture: Uint8Array,
530
+ voice: Uint8Array,
531
+ language: Uint8Array,
532
+ speed: Uint8Array,
533
+ steps: Uint8Array,
534
+ silenceDuration: Uint8Array,
535
+ precision: Uint8Array,
536
+ temperature: Uint8Array,
537
+ huggingfaceToken: Uint8Array,
538
+ device: Uint8Array,
539
+ uniffi_out_err: UniffiRustCallStatus,
540
+ ): bigint;
541
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rusttexttospeech_synthesize(
542
+ uniffiSelf: bigint,
543
+ text: Uint8Array,
544
+ uniffi_out_err: UniffiRustCallStatus,
545
+ ): Uint8Array;
546
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rusttexttospeech_synthesize_async(
547
+ uniffiSelf: bigint,
548
+ text: Uint8Array,
549
+ ): bigint;
550
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rusttokenstream_completed(
551
+ uniffiSelf: bigint,
552
+ ): bigint;
553
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rusttokenstream_next_token(
554
+ uniffiSelf: bigint,
555
+ ): bigint;
556
+ ubrn_uniffi_nobodywho_uniffi_fn_constructor_rusttool_new(
557
+ name: Uint8Array,
558
+ description: Uint8Array,
559
+ parameters: Uint8Array,
560
+ callback: bigint,
561
+ uniffi_out_err: UniffiRustCallStatus,
562
+ ): bigint;
563
+ ubrn_uniffi_nobodywho_uniffi_fn_constructor_rusttool_new_async(
564
+ name: Uint8Array,
565
+ description: Uint8Array,
566
+ parameters: Uint8Array,
567
+ uniffi_out_err: UniffiRustCallStatus,
568
+ ): bigint;
569
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rusttool_get_schema_json(
570
+ uniffiSelf: bigint,
571
+ uniffi_out_err: UniffiRustCallStatus,
572
+ ): Uint8Array;
573
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rusttool_next_pending_call(
574
+ uniffiSelf: bigint,
575
+ ): bigint;
576
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rusttool_resolve_pending_call(
577
+ uniffiSelf: bigint,
578
+ callId: Uint8Array,
579
+ result: Uint8Array,
580
+ uniffi_out_err: UniffiRustCallStatus,
581
+ ): void;
582
+ ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustvoiceactivitydetection_new(
583
+ source: Uint8Array,
584
+ sampleRate: number,
585
+ threshold: Uint8Array,
586
+ minSilenceDurationMs: Uint8Array,
587
+ minSpeechDurationMs: Uint8Array,
588
+ prerollDurationMs: Uint8Array,
589
+ device: Uint8Array,
590
+ uniffi_out_err: UniffiRustCallStatus,
591
+ ): bigint;
592
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustvoiceactivitydetection_finish(
593
+ uniffiSelf: bigint,
594
+ uniffi_out_err: UniffiRustCallStatus,
595
+ ): Uint8Array;
596
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustvoiceactivitydetection_push(
597
+ uniffiSelf: bigint,
598
+ chunk: Uint8Array,
599
+ uniffi_out_err: UniffiRustCallStatus,
600
+ ): Uint8Array;
601
+ ubrn_uniffi_nobodywho_uniffi_fn_method_rustvoiceactivitydetection_segment(
602
+ uniffiSelf: bigint,
603
+ samples: Uint8Array,
604
+ uniffi_out_err: UniffiRustCallStatus,
605
+ ): Uint8Array;
606
+ ubrn_uniffi_nobodywho_uniffi_fn_constructor_samplerbuilder_new(
607
+ uniffi_out_err: UniffiRustCallStatus,
608
+ ): bigint;
609
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_constrain_with_grammar(
610
+ uniffiSelf: bigint,
611
+ grammar: Uint8Array,
612
+ uniffi_out_err: UniffiRustCallStatus,
613
+ ): bigint;
614
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_constrain_with_json_schema(
615
+ uniffiSelf: bigint,
616
+ schema: Uint8Array,
617
+ uniffi_out_err: UniffiRustCallStatus,
618
+ ): bigint;
619
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_constrain_with_regex(
620
+ uniffiSelf: bigint,
621
+ pattern: Uint8Array,
622
+ uniffi_out_err: UniffiRustCallStatus,
623
+ ): bigint;
624
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dist(
625
+ uniffiSelf: bigint,
626
+ uniffi_out_err: UniffiRustCallStatus,
627
+ ): bigint;
628
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dry(
629
+ uniffiSelf: bigint,
630
+ multiplier: number,
631
+ base: number,
632
+ allowedLength: number,
633
+ penaltyLastN: number,
634
+ seqBreakers: Uint8Array,
635
+ uniffi_out_err: UniffiRustCallStatus,
636
+ ): bigint;
637
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dynamic_temperature(
638
+ uniffiSelf: bigint,
639
+ temperature: number,
640
+ delta: number,
641
+ exponent: number,
642
+ uniffi_out_err: UniffiRustCallStatus,
643
+ ): bigint;
644
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_greedy(
645
+ uniffiSelf: bigint,
646
+ uniffi_out_err: UniffiRustCallStatus,
647
+ ): bigint;
648
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_json(
649
+ uniffiSelf: bigint,
650
+ uniffi_out_err: UniffiRustCallStatus,
651
+ ): bigint;
652
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_logit_bias(
653
+ uniffiSelf: bigint,
654
+ biases: Uint8Array,
655
+ uniffi_out_err: UniffiRustCallStatus,
656
+ ): bigint;
657
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_min_p(
658
+ uniffiSelf: bigint,
659
+ minP: number,
660
+ minKeep: number,
661
+ uniffi_out_err: UniffiRustCallStatus,
662
+ ): bigint;
663
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_mirostat_v1(
664
+ uniffiSelf: bigint,
665
+ tau: number,
666
+ eta: number,
667
+ m: number,
668
+ uniffi_out_err: UniffiRustCallStatus,
669
+ ): bigint;
670
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_mirostat_v2(
671
+ uniffiSelf: bigint,
672
+ tau: number,
673
+ eta: number,
674
+ uniffi_out_err: UniffiRustCallStatus,
675
+ ): bigint;
676
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_penalties(
677
+ uniffiSelf: bigint,
678
+ penaltyLastN: number,
679
+ penaltyRepeat: number,
680
+ penaltyFreq: number,
681
+ penaltyPresent: number,
682
+ uniffi_out_err: UniffiRustCallStatus,
683
+ ): bigint;
684
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_seed(
685
+ uniffiSelf: bigint,
686
+ seed: number,
687
+ uniffi_out_err: UniffiRustCallStatus,
688
+ ): bigint;
689
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_temperature(
690
+ uniffiSelf: bigint,
691
+ temperature: number,
692
+ uniffi_out_err: UniffiRustCallStatus,
693
+ ): bigint;
694
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_k(
695
+ uniffiSelf: bigint,
696
+ topK: number,
697
+ uniffi_out_err: UniffiRustCallStatus,
698
+ ): bigint;
699
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_n_sigma(
700
+ uniffiSelf: bigint,
701
+ n: number,
702
+ uniffi_out_err: UniffiRustCallStatus,
703
+ ): bigint;
704
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_p(
705
+ uniffiSelf: bigint,
706
+ topP: number,
707
+ minKeep: number,
708
+ uniffi_out_err: UniffiRustCallStatus,
709
+ ): bigint;
710
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_typical_p(
711
+ uniffiSelf: bigint,
712
+ typP: number,
713
+ minKeep: number,
714
+ uniffi_out_err: UniffiRustCallStatus,
715
+ ): bigint;
716
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_xtc(
717
+ uniffiSelf: bigint,
718
+ xtcProbability: number,
719
+ xtcThreshold: number,
720
+ minKeep: number,
721
+ uniffi_out_err: UniffiRustCallStatus,
722
+ ): bigint;
723
+ ubrn_uniffi_nobodywho_uniffi_fn_constructor_samplerconfig_from_json(
724
+ jsonStr: Uint8Array,
725
+ uniffi_out_err: UniffiRustCallStatus,
726
+ ): bigint;
727
+ ubrn_uniffi_nobodywho_uniffi_fn_method_samplerconfig_to_json(
728
+ uniffiSelf: bigint,
729
+ uniffi_out_err: UniffiRustCallStatus,
730
+ ): Uint8Array;
731
+ ubrn_ffi_nobodywho_uniffi_uniffi_contract_version(): number;
732
+ ubrn_uniffi_nobodywho_uniffi_checksum_func_cosine_similarity(): number;
733
+ ubrn_uniffi_nobodywho_uniffi_checksum_func_download_model(): number;
734
+ ubrn_uniffi_nobodywho_uniffi_checksum_func_get_cached_models(): number;
735
+ ubrn_uniffi_nobodywho_uniffi_checksum_func_load_model(): number;
736
+ ubrn_uniffi_nobodywho_uniffi_checksum_func_load_speech_to_text(): number;
737
+ ubrn_uniffi_nobodywho_uniffi_checksum_func_load_text_to_speech(): number;
738
+ ubrn_uniffi_nobodywho_uniffi_checksum_func_load_voice_activity_detection(): number;
739
+ ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_grammar(): number;
740
+ ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_json_schema(): number;
741
+ ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_regex(): number;
742
+ ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_default(): number;
743
+ ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_dry(): number;
744
+ ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_greedy(): number;
745
+ ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_json(): number;
746
+ ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_temperature(): number;
747
+ ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_top_k(): number;
748
+ ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_top_p(): number;
749
+ ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustchat_new(): number;
750
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask(): number;
751
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_json_prompt(): number;
752
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_prompt(): number;
753
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_complete(): number;
754
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_chat_history(): number;
755
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_sampler_config_json(): number;
756
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_stats(): number;
757
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_system_prompt(): number;
758
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_template_variables(): number;
759
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_mtp_acceptance_rate(): number;
760
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_reset_context(): number;
761
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_reset_history(): number;
762
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_chat_history(): number;
763
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_context_shift(): number;
764
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_sampler_config(): number;
765
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_system_prompt(): number;
766
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_template_variable(): number;
767
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_tools(): number;
768
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_stop_generation(): number;
769
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_tokenize(): number;
770
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_tokenize_with_prompt(): number;
771
+ ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustcrossencoder_new(): number;
772
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank(): number;
773
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank_and_sort_json(): number;
774
+ ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustdecision_new(): number;
775
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustdecision_decide(): number;
776
+ ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustencoder_new(): number;
777
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode(): number;
778
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode_batch(): number;
779
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustmodel_max_ctx(): number;
780
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustmodel_source(): number;
781
+ ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustspeechtotext_new(): number;
782
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotext_transcribe_file(): number;
783
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotext_transcribe_pcm(): number;
784
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotextstream_completed(): number;
785
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotextstream_next_token(): number;
786
+ ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttexttospeech_new(): number;
787
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttexttospeech_synthesize(): number;
788
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttexttospeech_synthesize_async(): number;
789
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_completed(): number;
790
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_next_token(): number;
791
+ ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new(): number;
792
+ ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new_async(): number;
793
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_get_schema_json(): number;
794
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_next_pending_call(): number;
795
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_resolve_pending_call(): number;
796
+ ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustvoiceactivitydetection_new(): number;
797
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_finish(): number;
798
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_push(): number;
799
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_segment(): number;
800
+ ubrn_uniffi_nobodywho_uniffi_checksum_constructor_samplerbuilder_new(): number;
801
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_constrain_with_grammar(): number;
802
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_constrain_with_json_schema(): number;
803
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_constrain_with_regex(): number;
804
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dist(): number;
805
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dry(): number;
806
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dynamic_temperature(): number;
807
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_greedy(): number;
808
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_json(): number;
809
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_logit_bias(): number;
810
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_min_p(): number;
811
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_mirostat_v1(): number;
812
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_mirostat_v2(): number;
813
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_penalties(): number;
814
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_seed(): number;
815
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_temperature(): number;
816
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_k(): number;
817
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_n_sigma(): number;
818
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_p(): number;
819
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_typical_p(): number;
820
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_xtc(): number;
821
+ ubrn_uniffi_nobodywho_uniffi_checksum_constructor_samplerconfig_from_json(): number;
822
+ ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerconfig_to_json(): number;
823
+ ubrn_uniffi_internal_fn_method_samplerconfig_ffi__bless_pointer(
824
+ pointer: bigint,
825
+ uniffi_out_err: UniffiRustCallStatus,
826
+ ): UniffiGcObject;
827
+ ubrn_uniffi_internal_fn_method_rusttool_ffi__bless_pointer(
828
+ pointer: bigint,
829
+ uniffi_out_err: UniffiRustCallStatus,
830
+ ): UniffiGcObject;
831
+ ubrn_uniffi_internal_fn_method_rusttokenstream_ffi__bless_pointer(
832
+ pointer: bigint,
833
+ uniffi_out_err: UniffiRustCallStatus,
834
+ ): UniffiGcObject;
835
+ ubrn_uniffi_internal_fn_method_rustchat_ffi__bless_pointer(
836
+ pointer: bigint,
837
+ uniffi_out_err: UniffiRustCallStatus,
838
+ ): UniffiGcObject;
839
+ ubrn_uniffi_internal_fn_method_rustcrossencoder_ffi__bless_pointer(
840
+ pointer: bigint,
841
+ uniffi_out_err: UniffiRustCallStatus,
842
+ ): UniffiGcObject;
843
+ ubrn_uniffi_internal_fn_method_rustdecision_ffi__bless_pointer(
844
+ pointer: bigint,
845
+ uniffi_out_err: UniffiRustCallStatus,
846
+ ): UniffiGcObject;
847
+ ubrn_uniffi_internal_fn_method_rustencoder_ffi__bless_pointer(
848
+ pointer: bigint,
849
+ uniffi_out_err: UniffiRustCallStatus,
850
+ ): UniffiGcObject;
851
+ ubrn_uniffi_internal_fn_method_rustmodel_ffi__bless_pointer(
852
+ pointer: bigint,
853
+ uniffi_out_err: UniffiRustCallStatus,
854
+ ): UniffiGcObject;
855
+ ubrn_uniffi_internal_fn_method_rustspeechtotextstream_ffi__bless_pointer(
856
+ pointer: bigint,
857
+ uniffi_out_err: UniffiRustCallStatus,
858
+ ): UniffiGcObject;
859
+ ubrn_uniffi_internal_fn_method_rustspeechtotext_ffi__bless_pointer(
860
+ pointer: bigint,
861
+ uniffi_out_err: UniffiRustCallStatus,
862
+ ): UniffiGcObject;
863
+ ubrn_uniffi_internal_fn_method_rusttexttospeech_ffi__bless_pointer(
864
+ pointer: bigint,
865
+ uniffi_out_err: UniffiRustCallStatus,
866
+ ): UniffiGcObject;
867
+ ubrn_uniffi_internal_fn_method_rustvoiceactivitydetection_ffi__bless_pointer(
868
+ pointer: bigint,
869
+ uniffi_out_err: UniffiRustCallStatus,
870
+ ): UniffiGcObject;
871
+ ubrn_uniffi_internal_fn_method_samplerbuilder_ffi__bless_pointer(
872
+ pointer: bigint,
873
+ uniffi_out_err: UniffiRustCallStatus,
874
+ ): UniffiGcObject;
875
+ // Codegen call sites use these via `nativeModule().rustbuffer_alloc(...)`
876
+ // and `nativeModule().rustbuffer_free(...)`. The JSI host object exposes
877
+ // them as properties; see `props["rustbuffer_alloc"]` / `props["rustbuffer_free"]`
878
+ // in the C++ wrapper template.
879
+ rustbuffer_alloc(n: number): Uint8Array;
880
+ rustbuffer_free(view: Uint8Array): void;
881
+ }
882
+
883
+ const getter: () => NativeModuleInterface = () =>
884
+ (globalThis as any).NativeNobodywho;
885
+ export default getter;
886
+
887
+ // Structs and function types for calling back into Typescript from Rust.
888
+ export type UniffiRustFutureContinuationCallback = (
889
+ data: bigint,
890
+ pollResult: number,
891
+ ) => void;
892
+ export type UniffiForeignFutureDroppedCallback = (handle: bigint) => void;
893
+ export type UniffiForeignFutureDroppedCallbackStruct = {
894
+ handle: bigint;
895
+ free: UniffiForeignFutureDroppedCallback;
896
+ };
897
+ type UniffiCallbackInterfaceNobodywhoRustDownloadProgressCallbackMethod0 = (
898
+ uniffiHandle: bigint,
899
+ downloaded: bigint,
900
+ total: bigint,
901
+ ) => UniffiResult<void>;
902
+ type UniffiCallbackInterfaceCloneNobodywhoRustDownloadProgressCallback = (
903
+ handle: bigint,
904
+ ) => UniffiResult<void>;
905
+ type UniffiCallbackInterfaceFreeNobodywhoRustDownloadProgressCallback = (
906
+ handle: bigint,
907
+ ) => void;
908
+ export type UniffiVTableCallbackInterfaceNobodywhoRustDownloadProgressCallback =
909
+ {
910
+ uniffi_free: UniffiCallbackInterfaceFreeNobodywhoRustDownloadProgressCallback;
911
+ uniffi_clone: UniffiCallbackInterfaceCloneNobodywhoRustDownloadProgressCallback;
912
+ on_download_progress: UniffiCallbackInterfaceNobodywhoRustDownloadProgressCallbackMethod0;
913
+ };
914
+ type UniffiCallbackInterfaceNobodywhoRustToolCallbackMethod0 = (
915
+ uniffiHandle: bigint,
916
+ argumentsJson: Uint8Array,
917
+ ) => Uint8Array;
918
+ type UniffiCallbackInterfaceCloneNobodywhoRustToolCallback = (
919
+ handle: bigint,
920
+ ) => UniffiResult<void>;
921
+ type UniffiCallbackInterfaceFreeNobodywhoRustToolCallback = (
922
+ handle: bigint,
923
+ ) => void;
924
+ export type UniffiVTableCallbackInterfaceNobodywhoRustToolCallback = {
925
+ uniffi_free: UniffiCallbackInterfaceFreeNobodywhoRustToolCallback;
926
+ uniffi_clone: UniffiCallbackInterfaceCloneNobodywhoRustToolCallback;
927
+ call: UniffiCallbackInterfaceNobodywhoRustToolCallbackMethod0;
928
+ };
929
+
930
+ // UniffiRustFutureContinuationCallback is generated as part of the component interface's
931
+ // ffi_definitions. However, we need it in the runtime.
932
+ // We chose to generate the declaration anyway, and use a different declaration in the runtime.
933
+ // We perform a compile time check that the two versions are structurally equivalent.
934
+ const isRustFutureContinuationCallbackTypeCompatible: UniffiStructuralEquality<
935
+ RuntimeUniffiRustFutureContinuationCallback,
936
+ UniffiRustFutureContinuationCallback
937
+ > = true;