@fressh/react-native-terminal 0.1.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.
- package/README.md +182 -0
- package/ReactNativeTerminal.podspec +82 -0
- package/android/CMakeLists.txt +76 -0
- package/android/build.gradle +121 -0
- package/android/fix-prefab.gradle +51 -0
- package/android/src/main/assets/fonts/DejaVuSansMono.ttf +0 -0
- package/android/src/main/cpp/cpp-adapter.cpp +180 -0
- package/android/src/main/java/com/margelo/nitro/fressh/HybridTerminal.kt +146 -0
- package/android/src/main/java/com/margelo/nitro/fressh/ReactNativeTerminalModule.kt +43 -0
- package/android/src/main/java/com/margelo/nitro/fressh/ReactNativeTerminalPackage.kt +32 -0
- package/android/src/main/jniLibs/arm64-v8a/libshim_uniffi.so +0 -0
- package/android/src/main/jniLibs/x86_64/libshim_uniffi.so +0 -0
- package/babel.config.js +12 -0
- package/cpp/README.md +14 -0
- package/cpp/generated/shim_uniffi.cpp +4246 -0
- package/cpp/generated/shim_uniffi.hpp +364 -0
- package/ios/FresshTerminalRenderABI.h +46 -0
- package/ios/HybridTerminal.swift +144 -0
- package/ios/ReactNativeTerminalUniffi.mm +77 -0
- package/ios/fetch-angle.sh +39 -0
- package/ios/fonts/DejaVuSansMono.ttf +0 -0
- package/libEGL.xcframework/Info.plist +44 -0
- package/libEGL.xcframework/ios-arm64/libEGL.framework/Info.plist +0 -0
- package/libEGL.xcframework/ios-arm64/libEGL.framework/libEGL +0 -0
- package/libEGL.xcframework/ios-arm64_x86_64-simulator/libEGL.framework/Info.plist +0 -0
- package/libEGL.xcframework/ios-arm64_x86_64-simulator/libEGL.framework/libEGL +0 -0
- package/libGLESv2.xcframework/Info.plist +44 -0
- package/libGLESv2.xcframework/ios-arm64/libGLESv2.framework/Info.plist +0 -0
- package/libGLESv2.xcframework/ios-arm64/libGLESv2.framework/libGLESv2 +0 -0
- package/libGLESv2.xcframework/ios-arm64_x86_64-simulator/libGLESv2.framework/Info.plist +0 -0
- package/libGLESv2.xcframework/ios-arm64_x86_64-simulator/libGLESv2.framework/libGLESv2 +0 -0
- package/nitro/Terminal.nitro.ts +40 -0
- package/nitrogen/generated/.gitattributes +1 -0
- package/nitrogen/generated/android/ReactNativeTerminal+autolinking.cmake +83 -0
- package/nitrogen/generated/android/ReactNativeTerminal+autolinking.gradle +27 -0
- package/nitrogen/generated/android/ReactNativeTerminalOnLoad.cpp +56 -0
- package/nitrogen/generated/android/ReactNativeTerminalOnLoad.hpp +34 -0
- package/nitrogen/generated/android/c++/JHybridTerminalSpec.cpp +76 -0
- package/nitrogen/generated/android/c++/JHybridTerminalSpec.hpp +68 -0
- package/nitrogen/generated/android/c++/views/JHybridTerminalStateUpdater.cpp +64 -0
- package/nitrogen/generated/android/c++/views/JHybridTerminalStateUpdater.hpp +49 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/fressh/HybridTerminalSpec.kt +69 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/fressh/ReactNativeTerminalOnLoad.kt +35 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/fressh/views/HybridTerminalManager.kt +80 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/fressh/views/HybridTerminalStateUpdater.kt +23 -0
- package/nitrogen/generated/ios/ReactNativeTerminal+autolinking.rb +62 -0
- package/nitrogen/generated/ios/ReactNativeTerminal-Swift-Cxx-Bridge.cpp +33 -0
- package/nitrogen/generated/ios/ReactNativeTerminal-Swift-Cxx-Bridge.hpp +57 -0
- package/nitrogen/generated/ios/ReactNativeTerminal-Swift-Cxx-Umbrella.hpp +43 -0
- package/nitrogen/generated/ios/ReactNativeTerminalAutolinking.mm +33 -0
- package/nitrogen/generated/ios/ReactNativeTerminalAutolinking.swift +26 -0
- package/nitrogen/generated/ios/c++/HybridTerminalSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridTerminalSpecSwift.hpp +96 -0
- package/nitrogen/generated/ios/c++/views/HybridTerminalComponent.mm +132 -0
- package/nitrogen/generated/ios/swift/HybridTerminalSpec.swift +57 -0
- package/nitrogen/generated/ios/swift/HybridTerminalSpec_cxx.swift +204 -0
- package/nitrogen/generated/shared/c++/HybridTerminalSpec.cpp +26 -0
- package/nitrogen/generated/shared/c++/HybridTerminalSpec.hpp +68 -0
- package/nitrogen/generated/shared/c++/views/HybridTerminalComponent.cpp +110 -0
- package/nitrogen/generated/shared/c++/views/HybridTerminalComponent.hpp +113 -0
- package/nitrogen/generated/shared/json/TerminalConfig.json +12 -0
- package/package.json +97 -0
- package/react-native.config.js +12 -0
- package/shim_uniffi.xcframework/Info.plist +44 -0
- package/shim_uniffi.xcframework/ios-arm64/libshim_uniffi.a +0 -0
- package/shim_uniffi.xcframework/ios-arm64_x86_64-simulator/libshim_uniffi.a +0 -0
- package/src/Terminal.tsx +135 -0
- package/src/generated/shim_uniffi-ffi.ts +320 -0
- package/src/generated/shim_uniffi.ts +2527 -0
- package/src/index.ts +52 -0
- package/src/ssh.ts +239 -0
- package/tsconfig.json +31 -0
- package/ubrn.config.yaml +24 -0
|
@@ -0,0 +1,320 @@
|
|
|
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_shim_uniffi_rust_future_poll_u8(
|
|
36
|
+
handle: bigint,
|
|
37
|
+
callback: UniffiRustFutureContinuationCallback,
|
|
38
|
+
callbackData: bigint
|
|
39
|
+
): void;
|
|
40
|
+
ubrn_ffi_shim_uniffi_rust_future_cancel_u8(handle: bigint): void;
|
|
41
|
+
ubrn_ffi_shim_uniffi_rust_future_complete_u8(
|
|
42
|
+
handle: bigint,
|
|
43
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
44
|
+
): number;
|
|
45
|
+
ubrn_ffi_shim_uniffi_rust_future_free_u8(handle: bigint): void;
|
|
46
|
+
ubrn_ffi_shim_uniffi_rust_future_poll_i8(
|
|
47
|
+
handle: bigint,
|
|
48
|
+
callback: UniffiRustFutureContinuationCallback,
|
|
49
|
+
callbackData: bigint
|
|
50
|
+
): void;
|
|
51
|
+
ubrn_ffi_shim_uniffi_rust_future_cancel_i8(handle: bigint): void;
|
|
52
|
+
ubrn_ffi_shim_uniffi_rust_future_complete_i8(
|
|
53
|
+
handle: bigint,
|
|
54
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
55
|
+
): number;
|
|
56
|
+
ubrn_ffi_shim_uniffi_rust_future_free_i8(handle: bigint): void;
|
|
57
|
+
ubrn_ffi_shim_uniffi_rust_future_poll_u16(
|
|
58
|
+
handle: bigint,
|
|
59
|
+
callback: UniffiRustFutureContinuationCallback,
|
|
60
|
+
callbackData: bigint
|
|
61
|
+
): void;
|
|
62
|
+
ubrn_ffi_shim_uniffi_rust_future_cancel_u16(handle: bigint): void;
|
|
63
|
+
ubrn_ffi_shim_uniffi_rust_future_complete_u16(
|
|
64
|
+
handle: bigint,
|
|
65
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
66
|
+
): number;
|
|
67
|
+
ubrn_ffi_shim_uniffi_rust_future_free_u16(handle: bigint): void;
|
|
68
|
+
ubrn_ffi_shim_uniffi_rust_future_poll_i16(
|
|
69
|
+
handle: bigint,
|
|
70
|
+
callback: UniffiRustFutureContinuationCallback,
|
|
71
|
+
callbackData: bigint
|
|
72
|
+
): void;
|
|
73
|
+
ubrn_ffi_shim_uniffi_rust_future_cancel_i16(handle: bigint): void;
|
|
74
|
+
ubrn_ffi_shim_uniffi_rust_future_complete_i16(
|
|
75
|
+
handle: bigint,
|
|
76
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
77
|
+
): number;
|
|
78
|
+
ubrn_ffi_shim_uniffi_rust_future_free_i16(handle: bigint): void;
|
|
79
|
+
ubrn_ffi_shim_uniffi_rust_future_poll_u32(
|
|
80
|
+
handle: bigint,
|
|
81
|
+
callback: UniffiRustFutureContinuationCallback,
|
|
82
|
+
callbackData: bigint
|
|
83
|
+
): void;
|
|
84
|
+
ubrn_ffi_shim_uniffi_rust_future_cancel_u32(handle: bigint): void;
|
|
85
|
+
ubrn_ffi_shim_uniffi_rust_future_complete_u32(
|
|
86
|
+
handle: bigint,
|
|
87
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
88
|
+
): number;
|
|
89
|
+
ubrn_ffi_shim_uniffi_rust_future_free_u32(handle: bigint): void;
|
|
90
|
+
ubrn_ffi_shim_uniffi_rust_future_poll_i32(
|
|
91
|
+
handle: bigint,
|
|
92
|
+
callback: UniffiRustFutureContinuationCallback,
|
|
93
|
+
callbackData: bigint
|
|
94
|
+
): void;
|
|
95
|
+
ubrn_ffi_shim_uniffi_rust_future_cancel_i32(handle: bigint): void;
|
|
96
|
+
ubrn_ffi_shim_uniffi_rust_future_complete_i32(
|
|
97
|
+
handle: bigint,
|
|
98
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
99
|
+
): number;
|
|
100
|
+
ubrn_ffi_shim_uniffi_rust_future_free_i32(handle: bigint): void;
|
|
101
|
+
ubrn_ffi_shim_uniffi_rust_future_poll_u64(
|
|
102
|
+
handle: bigint,
|
|
103
|
+
callback: UniffiRustFutureContinuationCallback,
|
|
104
|
+
callbackData: bigint
|
|
105
|
+
): void;
|
|
106
|
+
ubrn_ffi_shim_uniffi_rust_future_cancel_u64(handle: bigint): void;
|
|
107
|
+
ubrn_ffi_shim_uniffi_rust_future_complete_u64(
|
|
108
|
+
handle: bigint,
|
|
109
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
110
|
+
): bigint;
|
|
111
|
+
ubrn_ffi_shim_uniffi_rust_future_free_u64(handle: bigint): void;
|
|
112
|
+
ubrn_ffi_shim_uniffi_rust_future_poll_i64(
|
|
113
|
+
handle: bigint,
|
|
114
|
+
callback: UniffiRustFutureContinuationCallback,
|
|
115
|
+
callbackData: bigint
|
|
116
|
+
): void;
|
|
117
|
+
ubrn_ffi_shim_uniffi_rust_future_cancel_i64(handle: bigint): void;
|
|
118
|
+
ubrn_ffi_shim_uniffi_rust_future_complete_i64(
|
|
119
|
+
handle: bigint,
|
|
120
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
121
|
+
): bigint;
|
|
122
|
+
ubrn_ffi_shim_uniffi_rust_future_free_i64(handle: bigint): void;
|
|
123
|
+
ubrn_ffi_shim_uniffi_rust_future_poll_f32(
|
|
124
|
+
handle: bigint,
|
|
125
|
+
callback: UniffiRustFutureContinuationCallback,
|
|
126
|
+
callbackData: bigint
|
|
127
|
+
): void;
|
|
128
|
+
ubrn_ffi_shim_uniffi_rust_future_cancel_f32(handle: bigint): void;
|
|
129
|
+
ubrn_ffi_shim_uniffi_rust_future_complete_f32(
|
|
130
|
+
handle: bigint,
|
|
131
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
132
|
+
): number;
|
|
133
|
+
ubrn_ffi_shim_uniffi_rust_future_free_f32(handle: bigint): void;
|
|
134
|
+
ubrn_ffi_shim_uniffi_rust_future_poll_f64(
|
|
135
|
+
handle: bigint,
|
|
136
|
+
callback: UniffiRustFutureContinuationCallback,
|
|
137
|
+
callbackData: bigint
|
|
138
|
+
): void;
|
|
139
|
+
ubrn_ffi_shim_uniffi_rust_future_cancel_f64(handle: bigint): void;
|
|
140
|
+
ubrn_ffi_shim_uniffi_rust_future_complete_f64(
|
|
141
|
+
handle: bigint,
|
|
142
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
143
|
+
): number;
|
|
144
|
+
ubrn_ffi_shim_uniffi_rust_future_free_f64(handle: bigint): void;
|
|
145
|
+
ubrn_ffi_shim_uniffi_rust_future_poll_rust_buffer(
|
|
146
|
+
handle: bigint,
|
|
147
|
+
callback: UniffiRustFutureContinuationCallback,
|
|
148
|
+
callbackData: bigint
|
|
149
|
+
): void;
|
|
150
|
+
ubrn_ffi_shim_uniffi_rust_future_cancel_rust_buffer(handle: bigint): void;
|
|
151
|
+
ubrn_ffi_shim_uniffi_rust_future_complete_rust_buffer(
|
|
152
|
+
handle: bigint,
|
|
153
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
154
|
+
): Uint8Array;
|
|
155
|
+
ubrn_ffi_shim_uniffi_rust_future_free_rust_buffer(handle: bigint): void;
|
|
156
|
+
ubrn_ffi_shim_uniffi_rust_future_poll_void(
|
|
157
|
+
handle: bigint,
|
|
158
|
+
callback: UniffiRustFutureContinuationCallback,
|
|
159
|
+
callbackData: bigint
|
|
160
|
+
): void;
|
|
161
|
+
ubrn_ffi_shim_uniffi_rust_future_cancel_void(handle: bigint): void;
|
|
162
|
+
ubrn_ffi_shim_uniffi_rust_future_complete_void(
|
|
163
|
+
handle: bigint,
|
|
164
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
165
|
+
): void;
|
|
166
|
+
ubrn_ffi_shim_uniffi_rust_future_free_void(handle: bigint): void;
|
|
167
|
+
ubrn_uniffi_shim_uniffi_fn_clone_fressheventlistener(
|
|
168
|
+
ptr: bigint,
|
|
169
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
170
|
+
): bigint;
|
|
171
|
+
ubrn_uniffi_shim_uniffi_fn_free_fressheventlistener(
|
|
172
|
+
ptr: bigint,
|
|
173
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
174
|
+
): void;
|
|
175
|
+
ubrn_uniffi_shim_uniffi_fn_init_callback_vtable_fressheventlistener(
|
|
176
|
+
vtable: UniffiVTableCallbackInterfaceShimUniffiFresshEventListener
|
|
177
|
+
): void;
|
|
178
|
+
ubrn_uniffi_shim_uniffi_fn_func_close_preview(previewId: Uint8Array): bigint;
|
|
179
|
+
ubrn_uniffi_shim_uniffi_fn_func_close_shell(shellId: Uint8Array): bigint;
|
|
180
|
+
ubrn_uniffi_shim_uniffi_fn_func_connect(details: Uint8Array): bigint;
|
|
181
|
+
ubrn_uniffi_shim_uniffi_fn_func_create_preview(
|
|
182
|
+
previewId: Uint8Array,
|
|
183
|
+
demo: Uint8Array,
|
|
184
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
185
|
+
): void;
|
|
186
|
+
ubrn_uniffi_shim_uniffi_fn_func_disconnect(connectionId: Uint8Array): bigint;
|
|
187
|
+
ubrn_uniffi_shim_uniffi_fn_func_generate_key_pair(
|
|
188
|
+
keyType: Uint8Array,
|
|
189
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
190
|
+
): Uint8Array;
|
|
191
|
+
ubrn_uniffi_shim_uniffi_fn_func_resize(
|
|
192
|
+
shellId: Uint8Array,
|
|
193
|
+
cols: number,
|
|
194
|
+
rows: number
|
|
195
|
+
): bigint;
|
|
196
|
+
ubrn_uniffi_shim_uniffi_fn_func_respond_to_host_key(
|
|
197
|
+
connectionId: Uint8Array,
|
|
198
|
+
accept: number,
|
|
199
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
200
|
+
): void;
|
|
201
|
+
ubrn_uniffi_shim_uniffi_fn_func_run_command(
|
|
202
|
+
connectionId: Uint8Array,
|
|
203
|
+
command: Uint8Array
|
|
204
|
+
): bigint;
|
|
205
|
+
ubrn_uniffi_shim_uniffi_fn_func_scroll(
|
|
206
|
+
shellId: Uint8Array,
|
|
207
|
+
deltaPx: number
|
|
208
|
+
): bigint;
|
|
209
|
+
ubrn_uniffi_shim_uniffi_fn_func_selection_clear(
|
|
210
|
+
shellId: Uint8Array,
|
|
211
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
212
|
+
): void;
|
|
213
|
+
ubrn_uniffi_shim_uniffi_fn_func_selection_start(
|
|
214
|
+
shellId: Uint8Array,
|
|
215
|
+
x: number,
|
|
216
|
+
y: number,
|
|
217
|
+
kind: Uint8Array,
|
|
218
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
219
|
+
): void;
|
|
220
|
+
ubrn_uniffi_shim_uniffi_fn_func_selection_text(
|
|
221
|
+
shellId: Uint8Array,
|
|
222
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
223
|
+
): Uint8Array;
|
|
224
|
+
ubrn_uniffi_shim_uniffi_fn_func_selection_update(
|
|
225
|
+
shellId: Uint8Array,
|
|
226
|
+
x: number,
|
|
227
|
+
y: number,
|
|
228
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
229
|
+
): void;
|
|
230
|
+
ubrn_uniffi_shim_uniffi_fn_func_send_data(
|
|
231
|
+
shellId: Uint8Array,
|
|
232
|
+
data: Uint8Array
|
|
233
|
+
): bigint;
|
|
234
|
+
ubrn_uniffi_shim_uniffi_fn_func_set_event_listener(
|
|
235
|
+
listener: bigint,
|
|
236
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
237
|
+
): void;
|
|
238
|
+
ubrn_uniffi_shim_uniffi_fn_func_start_shell(
|
|
239
|
+
connectionId: Uint8Array,
|
|
240
|
+
options: Uint8Array
|
|
241
|
+
): bigint;
|
|
242
|
+
ubrn_uniffi_shim_uniffi_fn_func_validate_private_key(
|
|
243
|
+
pem: Uint8Array,
|
|
244
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
245
|
+
): Uint8Array;
|
|
246
|
+
ubrn_uniffi_shim_uniffi_fn_method_fressheventlistener_on_event(
|
|
247
|
+
uniffiSelf: bigint,
|
|
248
|
+
event: Uint8Array,
|
|
249
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
250
|
+
): void;
|
|
251
|
+
ubrn_ffi_shim_uniffi_uniffi_contract_version(): number;
|
|
252
|
+
ubrn_uniffi_shim_uniffi_checksum_func_close_preview(): number;
|
|
253
|
+
ubrn_uniffi_shim_uniffi_checksum_func_close_shell(): number;
|
|
254
|
+
ubrn_uniffi_shim_uniffi_checksum_func_connect(): number;
|
|
255
|
+
ubrn_uniffi_shim_uniffi_checksum_func_create_preview(): number;
|
|
256
|
+
ubrn_uniffi_shim_uniffi_checksum_func_disconnect(): number;
|
|
257
|
+
ubrn_uniffi_shim_uniffi_checksum_func_generate_key_pair(): number;
|
|
258
|
+
ubrn_uniffi_shim_uniffi_checksum_func_resize(): number;
|
|
259
|
+
ubrn_uniffi_shim_uniffi_checksum_func_respond_to_host_key(): number;
|
|
260
|
+
ubrn_uniffi_shim_uniffi_checksum_func_run_command(): number;
|
|
261
|
+
ubrn_uniffi_shim_uniffi_checksum_func_scroll(): number;
|
|
262
|
+
ubrn_uniffi_shim_uniffi_checksum_func_selection_clear(): number;
|
|
263
|
+
ubrn_uniffi_shim_uniffi_checksum_func_selection_start(): number;
|
|
264
|
+
ubrn_uniffi_shim_uniffi_checksum_func_selection_text(): number;
|
|
265
|
+
ubrn_uniffi_shim_uniffi_checksum_func_selection_update(): number;
|
|
266
|
+
ubrn_uniffi_shim_uniffi_checksum_func_send_data(): number;
|
|
267
|
+
ubrn_uniffi_shim_uniffi_checksum_func_set_event_listener(): number;
|
|
268
|
+
ubrn_uniffi_shim_uniffi_checksum_func_start_shell(): number;
|
|
269
|
+
ubrn_uniffi_shim_uniffi_checksum_func_validate_private_key(): number;
|
|
270
|
+
ubrn_uniffi_shim_uniffi_checksum_method_fressheventlistener_on_event(): number;
|
|
271
|
+
ubrn_uniffi_internal_fn_method_fressheventlistener_ffi__bless_pointer(
|
|
272
|
+
pointer: bigint,
|
|
273
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
274
|
+
): UniffiGcObject;
|
|
275
|
+
// Codegen call sites use these via `nativeModule().rustbuffer_alloc(...)`
|
|
276
|
+
// and `nativeModule().rustbuffer_free(...)`. The JSI host object exposes
|
|
277
|
+
// them as properties; see `props["rustbuffer_alloc"]` / `props["rustbuffer_free"]`
|
|
278
|
+
// in the C++ wrapper template.
|
|
279
|
+
rustbuffer_alloc(n: number): Uint8Array;
|
|
280
|
+
rustbuffer_free(view: Uint8Array): void;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
const getter: () => NativeModuleInterface = () =>
|
|
284
|
+
(globalThis as any).NativeShimUniffi;
|
|
285
|
+
export default getter;
|
|
286
|
+
|
|
287
|
+
// Structs and function types for calling back into Typescript from Rust.
|
|
288
|
+
export type UniffiRustFutureContinuationCallback = (
|
|
289
|
+
data: bigint,
|
|
290
|
+
pollResult: number
|
|
291
|
+
) => void;
|
|
292
|
+
export type UniffiForeignFutureDroppedCallback = (handle: bigint) => void;
|
|
293
|
+
export type UniffiForeignFutureDroppedCallbackStruct = {
|
|
294
|
+
handle: bigint;
|
|
295
|
+
free: UniffiForeignFutureDroppedCallback;
|
|
296
|
+
};
|
|
297
|
+
type UniffiCallbackInterfaceShimUniffiFresshEventListenerMethod0 = (
|
|
298
|
+
uniffiHandle: bigint,
|
|
299
|
+
event: Uint8Array
|
|
300
|
+
) => UniffiResult<void>;
|
|
301
|
+
type UniffiCallbackInterfaceCloneShimUniffiFresshEventListener = (
|
|
302
|
+
handle: bigint
|
|
303
|
+
) => UniffiResult<void>;
|
|
304
|
+
type UniffiCallbackInterfaceFreeShimUniffiFresshEventListener = (
|
|
305
|
+
handle: bigint
|
|
306
|
+
) => void;
|
|
307
|
+
export type UniffiVTableCallbackInterfaceShimUniffiFresshEventListener = {
|
|
308
|
+
uniffi_free: UniffiCallbackInterfaceFreeShimUniffiFresshEventListener;
|
|
309
|
+
uniffi_clone: UniffiCallbackInterfaceCloneShimUniffiFresshEventListener;
|
|
310
|
+
on_event: UniffiCallbackInterfaceShimUniffiFresshEventListenerMethod0;
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
// UniffiRustFutureContinuationCallback is generated as part of the component interface's
|
|
314
|
+
// ffi_definitions. However, we need it in the runtime.
|
|
315
|
+
// We chose to generate the declaration anyway, and use a different declaration in the runtime.
|
|
316
|
+
// We perform a compile time check that the two versions are structurally equivalent.
|
|
317
|
+
const isRustFutureContinuationCallbackTypeCompatible: UniffiStructuralEquality<
|
|
318
|
+
RuntimeUniffiRustFutureContinuationCallback,
|
|
319
|
+
UniffiRustFutureContinuationCallback
|
|
320
|
+
> = true;
|