[TS] Update auto-generated bindings for 0.0.105.0
[ldk-java] / ts / bindings.mts
1
2 import * as version from './version.mjs';
3 import { UInt5 } from './structs/CommonBase.mjs';
4
5 const imports: any = {};
6 imports.env = {};
7
8 var js_objs: Array<WeakRef<object>> = [];
9 var js_invoke: Function;
10 var getRandomValues: Function;
11
12 imports.wasi_snapshot_preview1 = {
13         "fd_write": (fd: number, iovec_array_ptr: number, iovec_array_len: number) => {
14                 // This should generally only be used to print panic messages
15                 console.log("FD_WRITE to " + fd + " in " + iovec_array_len + " chunks.");
16                 const ptr_len_view = new Uint32Array(wasm.memory.buffer, iovec_array_ptr, iovec_array_len * 2);
17                 for (var i = 0; i < iovec_array_len; i++) {
18                         const bytes_view = new Uint8Array(wasm.memory.buffer, ptr_len_view[i*2], ptr_len_view[i*2+1]);
19                         console.log(String.fromCharCode(...bytes_view));
20                 }
21                 return 0;
22         },
23         "fd_close": (_fd: number) => {
24                 // This is not generally called, but may be referenced in debug builds
25                 console.log("wasi_snapshot_preview1:fd_close");
26                 return 58; // Not Supported
27         },
28         "fd_seek": (_fd: number, _offset: bigint, _whence: number, _new_offset: number) => {
29                 // This is not generally called, but may be referenced in debug builds
30                 console.log("wasi_snapshot_preview1:fd_seek");
31                 return 58; // Not Supported
32         },
33         "random_get": (buf_ptr: number, buf_len: number) => {
34                 const buf = new Uint8Array(wasm.memory.buffer, buf_ptr, buf_len);
35                 getRandomValues(buf);
36                 return 0;
37         },
38         "environ_sizes_get": (environ_var_count_ptr: number, environ_len_ptr: number) => {
39                 // This is called before fd_write to format + print panic messages
40                 console.log("wasi_snapshot_preview1:environ_sizes_get");
41                 const out_count_view = new Uint32Array(wasm.memory.buffer, environ_var_count_ptr, 1);
42                 out_count_view[0] = 0;
43                 const out_len_view = new Uint32Array(wasm.memory.buffer, environ_len_ptr, 1);
44                 out_len_view[0] = 0;
45                 return 0;
46         },
47         "environ_get": (environ_ptr: number, environ_buf_ptr: number) => {
48                 // This is called before fd_write to format + print panic messages
49                 console.log("wasi_snapshot_preview1:environ_get");
50                 return 58; // Note supported - we said there were 0 environment entries!
51         },
52         "proc_exit" : () => {
53                 console.log("wasi_snapshot_preview1:proc_exit");
54         },
55 };
56
57 var wasm: any = null;
58 let isWasmInitialized: boolean = false;
59
60 async function finishInitializeWasm(wasmInstance: WebAssembly.Instance) {
61         if (typeof crypto === "undefined") {
62                 var crypto_import = (await import('crypto')).webcrypto;
63                 getRandomValues = crypto_import.getRandomValues.bind(crypto_import);
64         } else {
65                 getRandomValues = crypto.getRandomValues.bind(crypto);
66         }
67
68         wasm = wasmInstance.exports;
69         if (!wasm.test_bigint_pass_deadbeef0badf00d(BigInt("0xdeadbeef0badf00d"))) {
70                 throw new Error("Currently need BigInt-as-u64 support, try ----experimental-wasm-bigint");
71         }
72
73         if (decodeString(wasm.TS_get_lib_version_string()) !== version.get_ldk_java_bindings_version())
74                 throw new Error("Compiled LDK library and LDK class failes do not match");
75         // Fetching the LDK versions from C also checks that the header and binaries match
76         const c_bindings_ver: number = wasm.TS_get_ldk_c_bindings_version();
77         const ldk_ver: number = wasm.TS_get_ldk_version();
78         if (c_bindings_ver == 0)
79                 throw new Error("LDK version did not match the header we built against");
80         if (ldk_ver == 0)
81                 throw new Error("LDK C bindings version did not match the header we built against");
82         const c_bindings_version: string = decodeString(c_bindings_ver)
83         const ldk_version: string = decodeString(ldk_ver);
84         console.log("Loaded LDK-Java Bindings with LDK " + ldk_version + " and LDK-C-Bindings " + c_bindings_version);
85
86         isWasmInitialized = true;
87 }
88
89 /* @internal */
90 export async function initializeWasmFromUint8Array(wasmBinary: Uint8Array) {
91         imports.env["js_invoke_function"] = js_invoke;
92         const { instance: wasmInstance } = await WebAssembly.instantiate(wasmBinary, imports);
93         await finishInitializeWasm(wasmInstance);
94 }
95
96 /* @internal */
97 export async function initializeWasmFetch(uri: string) {
98         const stream = fetch(uri);
99         imports.env["js_invoke_function"] = js_invoke;
100         const { instance: wasmInstance } = await WebAssembly.instantiateStreaming(stream, imports);
101         await finishInitializeWasm(wasmInstance);
102 }
103 // WASM CODEC
104
105 /* @internal */
106 export function uint5ArrToBytes(inputArray: Array<UInt5>): Uint8Array {
107         const arr = new Uint8Array(inputArray.length);
108         for (var i = 0; i < inputArray.length; i++) {
109                 arr[i] = inputArray[i].getVal();
110         }
111         return arr;
112 }
113
114 /* @internal */
115 export function encodeUint8Array (inputArray: Uint8Array): number {
116         const cArrayPointer = wasm.TS_malloc(inputArray.length + 4);
117         const arrayLengthView = new Uint32Array(wasm.memory.buffer, cArrayPointer, 1);
118         arrayLengthView[0] = inputArray.length;
119         const arrayMemoryView = new Uint8Array(wasm.memory.buffer, cArrayPointer + 4, inputArray.length);
120         arrayMemoryView.set(inputArray);
121         return cArrayPointer;
122 }
123 /* @internal */
124 export function encodeUint32Array (inputArray: Uint32Array|Array<number>): number {
125         const cArrayPointer = wasm.TS_malloc((inputArray.length + 1) * 4);
126         const arrayMemoryView = new Uint32Array(wasm.memory.buffer, cArrayPointer, inputArray.length);
127         arrayMemoryView.set(inputArray, 1);
128         arrayMemoryView[0] = inputArray.length;
129         return cArrayPointer;
130 }
131 /* @internal */
132 export function encodeUint64Array (inputArray: BigUint64Array|Array<bigint>): number {
133         const cArrayPointer = wasm.TS_malloc(inputArray.length * 8 + 1);
134         const arrayLengthView = new Uint32Array(wasm.memory.buffer, cArrayPointer, 1);
135         arrayLengthView[0] = inputArray.length;
136         const arrayMemoryView = new BigUint64Array(wasm.memory.buffer, cArrayPointer + 4, inputArray.length);
137         arrayMemoryView.set(inputArray);
138         return cArrayPointer;
139 }
140
141 /* @internal */
142 export function check_arr_len(arr: Uint8Array, len: number): Uint8Array {
143         if (arr.length != len) { throw new Error("Expected array of length " + len + "got " + arr.length); }
144         return arr;
145 }
146
147 /* @internal */
148 export function getArrayLength(arrayPointer: number): number {
149         const arraySizeViewer = new Uint32Array(wasm.memory.buffer, arrayPointer, 1);
150         return arraySizeViewer[0];
151 }
152 /* @internal */
153 export function decodeUint8Array (arrayPointer: number, free = true): Uint8Array {
154         const arraySize = getArrayLength(arrayPointer);
155         const actualArrayViewer = new Uint8Array(wasm.memory.buffer, arrayPointer + 4, arraySize);
156         // Clone the contents, TODO: In the future we should wrap the Viewer in a class that
157         // will free the underlying memory when it becomes unreachable instead of copying here.
158         // Note that doing so may have edge-case interactions with memory resizing (invalidating the buffer).
159         const actualArray = actualArrayViewer.slice(0, arraySize);
160         if (free) {
161                 wasm.TS_free(arrayPointer);
162         }
163         return actualArray;
164 }
165 const decodeUint32Array = (arrayPointer: number, free = true) => {
166         const arraySize = getArrayLength(arrayPointer);
167         const actualArrayViewer = new Uint32Array(
168                 wasm.memory.buffer, // value
169                 arrayPointer + 4, // offset (ignoring length bytes)
170                 arraySize // uint32 count
171         );
172         // Clone the contents, TODO: In the future we should wrap the Viewer in a class that
173         // will free the underlying memory when it becomes unreachable instead of copying here.
174         const actualArray = actualArrayViewer.slice(0, arraySize);
175         if (free) {
176                 wasm.TS_free(arrayPointer);
177         }
178         return actualArray;
179 }
180
181
182 export function freeWasmMemory(pointer: number) { wasm.TS_free(pointer); }
183
184 /* @internal */
185 export function getU32ArrayElem(arrayPointer: number, idx: number): number {
186         const actualArrayViewer = new Uint32Array(wasm.memory.buffer, arrayPointer + 4, idx + 1);
187         return actualArrayViewer[idx];
188 }
189
190 /* @internal */
191 export function getU8ArrayElem(arrayPointer: number, idx: number): number {
192         const actualArrayViewer = new Uint8Array(wasm.memory.buffer, arrayPointer + 4, idx + 1);
193         return actualArrayViewer[idx];
194 }
195
196
197 /* @internal */
198 export function encodeString(str: string): number {
199         const charArray = new TextEncoder().encode(str);
200         return encodeUint8Array(charArray);
201 }
202
203 /* @internal */
204 export function decodeString(stringPointer: number, free = true): string {
205         const arraySize = getArrayLength(stringPointer);
206         const memoryView = new Uint8Array(wasm.memory.buffer, stringPointer + 4, arraySize);
207         const result = new TextDecoder("utf-8").decode(memoryView);
208
209         if (free) {
210                 wasm.TS_free(stringPointer);
211         }
212
213         return result;
214 }
215
216 /* @internal */ export function getRemainingAllocationCount(): number { return 0; }
217 /* @internal */ export function debugPrintRemainingAllocs() { }
218
219 /* @internal */
220 export enum AccessError {
221         /**
222          * The requested chain is unknown.
223          */
224         LDKAccessError_UnknownChain,
225         /**
226          * The requested transaction doesn't exist or hasn't confirmed.
227          */
228         LDKAccessError_UnknownTx,
229         
230 }
231
232 /* @internal */
233 export enum COption_NoneZ {
234         /**
235          * When we're in this state, this COption_NoneZ contains a
236          */
237         LDKCOption_NoneZ_Some,
238         /**
239          * When we're in this state, this COption_NoneZ contains nothing
240          */
241         LDKCOption_NoneZ_None,
242         
243 }
244
245 /* @internal */
246 export enum ChannelMonitorUpdateErr {
247         /**
248          * Used to indicate a temporary failure (eg connection to a watchtower or remote backup of
249         our state failed, but is expected to succeed at some point in the future).
250         
251         Such a failure will \"freeze\" a channel, preventing us from revoking old states or
252         submitting new commitment transactions to the counterparty. Once the update(s) that failed
253         have been successfully applied, a [`MonitorEvent::UpdateCompleted`] event should be returned
254         via [`Watch::release_pending_monitor_events`] which will then restore the channel to an
255         operational state.
256         
257         Note that a given ChannelManager will *never* re-generate a given ChannelMonitorUpdate. If
258         you return a TemporaryFailure you must ensure that it is written to disk safely before
259         writing out the latest ChannelManager state.
260         
261         Even when a channel has been \"frozen\" updates to the ChannelMonitor can continue to occur
262         (eg if an inbound HTLC which we forwarded was claimed upstream resulting in us attempting
263         to claim it on this channel) and those updates must be applied wherever they can be. At
264         least one such updated ChannelMonitor must be persisted otherwise PermanentFailure should
265         be returned to get things on-chain ASAP using only the in-memory copy. Obviously updates to
266         the channel which would invalidate previous ChannelMonitors are not made when a channel has
267         been \"frozen\".
268         
269         Note that even if updates made after TemporaryFailure succeed you must still provide a
270         [`MonitorEvent::UpdateCompleted`] to ensure you have the latest monitor and re-enable
271         normal channel operation. Note that this is normally generated through a call to
272         [`ChainMonitor::channel_monitor_updated`].
273         
274         Note that the update being processed here will not be replayed for you when you return a
275         [`MonitorEvent::UpdateCompleted`] event via [`Watch::release_pending_monitor_events`], so
276         you must store the update itself on your own local disk prior to returning a
277         TemporaryFailure. You may, of course, employ a journaling approach, storing only the
278         ChannelMonitorUpdate on disk without updating the monitor itself, replaying the journal at
279         reload-time.
280         
281         For deployments where a copy of ChannelMonitors and other local state are backed up in a
282         remote location (with local copies persisted immediately), it is anticipated that all
283         updates will return TemporaryFailure until the remote copies could be updated.
284         
285         [`ChainMonitor::channel_monitor_updated`]: chainmonitor::ChainMonitor::channel_monitor_updated
286          */
287         LDKChannelMonitorUpdateErr_TemporaryFailure,
288         /**
289          * Used to indicate no further channel monitor updates will be allowed (eg we've moved on to a
290         different watchtower and cannot update with all watchtowers that were previously informed
291         of this channel).
292         
293         At reception of this error, ChannelManager will force-close the channel and return at
294         least a final ChannelMonitorUpdate::ChannelForceClosed which must be delivered to at
295         least one ChannelMonitor copy. Revocation secret MUST NOT be released and offchain channel
296         update must be rejected.
297         
298         This failure may also signal a failure to update the local persisted copy of one of
299         the channel monitor instance.
300         
301         Note that even when you fail a holder commitment transaction update, you must store the
302         update to ensure you can claim from it in case of a duplicate copy of this ChannelMonitor
303         broadcasts it (e.g distributed channel-monitor deployment)
304         
305         In case of distributed watchtowers deployment, the new version must be written to disk, as
306         state may have been stored but rejected due to a block forcing a commitment broadcast. This
307         storage is used to claim outputs of rejected state confirmed onchain by another watchtower,
308         lagging behind on block processing.
309          */
310         LDKChannelMonitorUpdateErr_PermanentFailure,
311         
312 }
313
314 /* @internal */
315 export enum ConfirmationTarget {
316         /**
317          * We are happy with this transaction confirming slowly when feerate drops some.
318          */
319         LDKConfirmationTarget_Background,
320         /**
321          * We'd like this transaction to confirm without major delay, but 12-18 blocks is fine.
322          */
323         LDKConfirmationTarget_Normal,
324         /**
325          * We'd like this transaction to confirm in the next few blocks.
326          */
327         LDKConfirmationTarget_HighPriority,
328         
329 }
330
331 /* @internal */
332 export enum CreationError {
333         /**
334          * The supplied description string was longer than 639 __bytes__ (see [`Description::new(...)`](./struct.Description.html#method.new))
335          */
336         LDKCreationError_DescriptionTooLong,
337         /**
338          * The specified route has too many hops and can't be encoded
339          */
340         LDKCreationError_RouteTooLong,
341         /**
342          * The Unix timestamp of the supplied date is less than zero or greater than 35-bits
343          */
344         LDKCreationError_TimestampOutOfBounds,
345         /**
346          * The supplied millisatoshi amount was greater than the total bitcoin supply.
347          */
348         LDKCreationError_InvalidAmount,
349         /**
350          * Route hints were required for this invoice and were missing. Applies to
351         [phantom invoices].
352         
353         [phantom invoices]: crate::utils::create_phantom_invoice
354          */
355         LDKCreationError_MissingRouteHints,
356         
357 }
358
359 /* @internal */
360 export enum Currency {
361         /**
362          * Bitcoin mainnet
363          */
364         LDKCurrency_Bitcoin,
365         /**
366          * Bitcoin testnet
367          */
368         LDKCurrency_BitcoinTestnet,
369         /**
370          * Bitcoin regtest
371          */
372         LDKCurrency_Regtest,
373         /**
374          * Bitcoin simnet
375          */
376         LDKCurrency_Simnet,
377         /**
378          * Bitcoin signet
379          */
380         LDKCurrency_Signet,
381         
382 }
383
384 /* @internal */
385 export enum Level {
386         /**
387          * Designates extremely verbose information, including gossip-induced messages
388          */
389         LDKLevel_Gossip,
390         /**
391          * Designates very low priority, often extremely verbose, information
392          */
393         LDKLevel_Trace,
394         /**
395          * Designates lower priority information
396          */
397         LDKLevel_Debug,
398         /**
399          * Designates useful information
400          */
401         LDKLevel_Info,
402         /**
403          * Designates hazardous situations
404          */
405         LDKLevel_Warn,
406         /**
407          * Designates very serious errors
408          */
409         LDKLevel_Error,
410         
411 }
412
413 /* @internal */
414 export enum Network {
415         /**
416          * The main Bitcoin blockchain.
417          */
418         LDKNetwork_Bitcoin,
419         /**
420          * The testnet3 blockchain.
421          */
422         LDKNetwork_Testnet,
423         /**
424          * A local test blockchain.
425          */
426         LDKNetwork_Regtest,
427         /**
428          * A blockchain on which blocks are signed instead of mined.
429          */
430         LDKNetwork_Signet,
431         
432 }
433
434 /* @internal */
435 export enum Recipient {
436         /**
437          * The invoice should be signed with the local node secret key.
438          */
439         LDKRecipient_Node,
440         /**
441          * The invoice should be signed with the phantom node secret key. This secret key must be the
442         same for all nodes participating in the [phantom node payment].
443         
444         [phantom node payment]: PhantomKeysManager
445          */
446         LDKRecipient_PhantomNode,
447         
448 }
449
450 /* @internal */
451 export enum Secp256k1Error {
452         /**
453          * Signature failed verification
454          */
455         LDKSecp256k1Error_IncorrectSignature,
456         /**
457          * Badly sized message ("messages" are actually fixed-sized digests; see the MESSAGE_SIZE constant)
458          */
459         LDKSecp256k1Error_InvalidMessage,
460         /**
461          * Bad public key
462          */
463         LDKSecp256k1Error_InvalidPublicKey,
464         /**
465          * Bad signature
466          */
467         LDKSecp256k1Error_InvalidSignature,
468         /**
469          * Bad secret key
470          */
471         LDKSecp256k1Error_InvalidSecretKey,
472         /**
473          * Bad recovery id
474          */
475         LDKSecp256k1Error_InvalidRecoveryId,
476         /**
477          * Invalid tweak for add_assign or mul_assign
478          */
479         LDKSecp256k1Error_InvalidTweak,
480         /**
481          * tweak_add_check failed on an xonly public key
482          */
483         LDKSecp256k1Error_TweakCheckFailed,
484         /**
485          * Didn't pass enough memory to context creation with preallocated memory
486          */
487         LDKSecp256k1Error_NotEnoughMemory,
488         
489 }
490
491 /* @internal */
492 export enum SemanticError {
493         /**
494          * The invoice is missing the mandatory payment hash
495          */
496         LDKSemanticError_NoPaymentHash,
497         /**
498          * The invoice has multiple payment hashes which isn't allowed
499          */
500         LDKSemanticError_MultiplePaymentHashes,
501         /**
502          * No description or description hash are part of the invoice
503          */
504         LDKSemanticError_NoDescription,
505         /**
506          * The invoice contains multiple descriptions and/or description hashes which isn't allowed
507          */
508         LDKSemanticError_MultipleDescriptions,
509         /**
510          * The invoice is missing the mandatory payment secret, which all modern lightning nodes
511         should provide.
512          */
513         LDKSemanticError_NoPaymentSecret,
514         /**
515          * The invoice contains multiple payment secrets
516          */
517         LDKSemanticError_MultiplePaymentSecrets,
518         /**
519          * The invoice's features are invalid
520          */
521         LDKSemanticError_InvalidFeatures,
522         /**
523          * The recovery id doesn't fit the signature/pub key
524          */
525         LDKSemanticError_InvalidRecoveryId,
526         /**
527          * The invoice's signature is invalid
528          */
529         LDKSemanticError_InvalidSignature,
530         /**
531          * The invoice's amount was not a whole number of millisatoshis
532          */
533         LDKSemanticError_ImpreciseAmount,
534         
535 }
536
537 /* @internal */
538 export enum SiPrefix {
539         /**
540          * 10^-3
541          */
542         LDKSiPrefix_Milli,
543         /**
544          * 10^-6
545          */
546         LDKSiPrefix_Micro,
547         /**
548          * 10^-9
549          */
550         LDKSiPrefix_Nano,
551         /**
552          * 10^-12
553          */
554         LDKSiPrefix_Pico,
555         
556 }
557         // struct LDKCVec_u8Z TxOut_get_script_pubkey (struct LDKTxOut* thing)
558 /* @internal */
559 export function TxOut_get_script_pubkey(thing: number): number {
560         if(!isWasmInitialized) {
561                 throw new Error("initializeWasm() must be awaited first!");
562         }
563         const nativeResponseValue = wasm.TS_TxOut_get_script_pubkey(thing);
564         return nativeResponseValue;
565 }
566         // uint64_t TxOut_get_value (struct LDKTxOut* thing)
567 /* @internal */
568 export function TxOut_get_value(thing: number): bigint {
569         if(!isWasmInitialized) {
570                 throw new Error("initializeWasm() must be awaited first!");
571         }
572         const nativeResponseValue = wasm.TS_TxOut_get_value(thing);
573         return nativeResponseValue;
574 }
575         // void CResult_NoneNoneZ_get_ok(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
576 /* @internal */
577 export function CResult_NoneNoneZ_get_ok(owner: number): void {
578         if(!isWasmInitialized) {
579                 throw new Error("initializeWasm() must be awaited first!");
580         }
581         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_get_ok(owner);
582         // debug statements here
583 }
584         // void CResult_NoneNoneZ_get_err(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
585 /* @internal */
586 export function CResult_NoneNoneZ_get_err(owner: number): void {
587         if(!isWasmInitialized) {
588                 throw new Error("initializeWasm() must be awaited first!");
589         }
590         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_get_err(owner);
591         // debug statements here
592 }
593         // struct LDKCounterpartyCommitmentSecrets CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
594 /* @internal */
595 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(owner: number): number {
596         if(!isWasmInitialized) {
597                 throw new Error("initializeWasm() must be awaited first!");
598         }
599         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(owner);
600         return nativeResponseValue;
601 }
602         // struct LDKDecodeError CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
603 /* @internal */
604 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(owner: number): number {
605         if(!isWasmInitialized) {
606                 throw new Error("initializeWasm() must be awaited first!");
607         }
608         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(owner);
609         return nativeResponseValue;
610 }
611         // struct LDKSecretKey CResult_SecretKeyErrorZ_get_ok(LDKCResult_SecretKeyErrorZ *NONNULL_PTR owner);
612 /* @internal */
613 export function CResult_SecretKeyErrorZ_get_ok(owner: number): number {
614         if(!isWasmInitialized) {
615                 throw new Error("initializeWasm() must be awaited first!");
616         }
617         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_get_ok(owner);
618         return nativeResponseValue;
619 }
620         // enum LDKSecp256k1Error CResult_SecretKeyErrorZ_get_err(LDKCResult_SecretKeyErrorZ *NONNULL_PTR owner);
621 /* @internal */
622 export function CResult_SecretKeyErrorZ_get_err(owner: number): Secp256k1Error {
623         if(!isWasmInitialized) {
624                 throw new Error("initializeWasm() must be awaited first!");
625         }
626         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_get_err(owner);
627         return nativeResponseValue;
628 }
629         // struct LDKPublicKey CResult_PublicKeyErrorZ_get_ok(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
630 /* @internal */
631 export function CResult_PublicKeyErrorZ_get_ok(owner: number): number {
632         if(!isWasmInitialized) {
633                 throw new Error("initializeWasm() must be awaited first!");
634         }
635         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_get_ok(owner);
636         return nativeResponseValue;
637 }
638         // enum LDKSecp256k1Error CResult_PublicKeyErrorZ_get_err(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
639 /* @internal */
640 export function CResult_PublicKeyErrorZ_get_err(owner: number): Secp256k1Error {
641         if(!isWasmInitialized) {
642                 throw new Error("initializeWasm() must be awaited first!");
643         }
644         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_get_err(owner);
645         return nativeResponseValue;
646 }
647         // struct LDKTxCreationKeys CResult_TxCreationKeysDecodeErrorZ_get_ok(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
648 /* @internal */
649 export function CResult_TxCreationKeysDecodeErrorZ_get_ok(owner: number): number {
650         if(!isWasmInitialized) {
651                 throw new Error("initializeWasm() must be awaited first!");
652         }
653         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_get_ok(owner);
654         return nativeResponseValue;
655 }
656         // struct LDKDecodeError CResult_TxCreationKeysDecodeErrorZ_get_err(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
657 /* @internal */
658 export function CResult_TxCreationKeysDecodeErrorZ_get_err(owner: number): number {
659         if(!isWasmInitialized) {
660                 throw new Error("initializeWasm() must be awaited first!");
661         }
662         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_get_err(owner);
663         return nativeResponseValue;
664 }
665         // struct LDKChannelPublicKeys CResult_ChannelPublicKeysDecodeErrorZ_get_ok(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
666 /* @internal */
667 export function CResult_ChannelPublicKeysDecodeErrorZ_get_ok(owner: number): number {
668         if(!isWasmInitialized) {
669                 throw new Error("initializeWasm() must be awaited first!");
670         }
671         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_get_ok(owner);
672         return nativeResponseValue;
673 }
674         // struct LDKDecodeError CResult_ChannelPublicKeysDecodeErrorZ_get_err(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
675 /* @internal */
676 export function CResult_ChannelPublicKeysDecodeErrorZ_get_err(owner: number): number {
677         if(!isWasmInitialized) {
678                 throw new Error("initializeWasm() must be awaited first!");
679         }
680         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_get_err(owner);
681         return nativeResponseValue;
682 }
683         // struct LDKTxCreationKeys CResult_TxCreationKeysErrorZ_get_ok(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR owner);
684 /* @internal */
685 export function CResult_TxCreationKeysErrorZ_get_ok(owner: number): number {
686         if(!isWasmInitialized) {
687                 throw new Error("initializeWasm() must be awaited first!");
688         }
689         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_get_ok(owner);
690         return nativeResponseValue;
691 }
692         // enum LDKSecp256k1Error CResult_TxCreationKeysErrorZ_get_err(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR owner);
693 /* @internal */
694 export function CResult_TxCreationKeysErrorZ_get_err(owner: number): Secp256k1Error {
695         if(!isWasmInitialized) {
696                 throw new Error("initializeWasm() must be awaited first!");
697         }
698         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_get_err(owner);
699         return nativeResponseValue;
700 }
701 /* @internal */
702 export class LDKCOption_u32Z {
703         protected constructor() {}
704 }
705 /* @internal */
706 export function LDKCOption_u32Z_ty_from_ptr(ptr: number): number {
707         if(!isWasmInitialized) {
708                 throw new Error("initializeWasm() must be awaited first!");
709         }
710         const nativeResponseValue = wasm.TS_LDKCOption_u32Z_ty_from_ptr(ptr);
711         return nativeResponseValue;
712 }
713 /* @internal */
714 export function LDKCOption_u32Z_Some_get_some(ptr: number): number {
715         if(!isWasmInitialized) {
716                 throw new Error("initializeWasm() must be awaited first!");
717         }
718         const nativeResponseValue = wasm.TS_LDKCOption_u32Z_Some_get_some(ptr);
719         return nativeResponseValue;
720 }
721         // struct LDKHTLCOutputInCommitment CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
722 /* @internal */
723 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(owner: number): number {
724         if(!isWasmInitialized) {
725                 throw new Error("initializeWasm() must be awaited first!");
726         }
727         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(owner);
728         return nativeResponseValue;
729 }
730         // struct LDKDecodeError CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
731 /* @internal */
732 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(owner: number): number {
733         if(!isWasmInitialized) {
734                 throw new Error("initializeWasm() must be awaited first!");
735         }
736         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(owner);
737         return nativeResponseValue;
738 }
739         // struct LDKCounterpartyChannelTransactionParameters CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
740 /* @internal */
741 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(owner: number): number {
742         if(!isWasmInitialized) {
743                 throw new Error("initializeWasm() must be awaited first!");
744         }
745         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(owner);
746         return nativeResponseValue;
747 }
748         // struct LDKDecodeError CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
749 /* @internal */
750 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(owner: number): number {
751         if(!isWasmInitialized) {
752                 throw new Error("initializeWasm() must be awaited first!");
753         }
754         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(owner);
755         return nativeResponseValue;
756 }
757         // struct LDKChannelTransactionParameters CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
758 /* @internal */
759 export function CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(owner: number): number {
760         if(!isWasmInitialized) {
761                 throw new Error("initializeWasm() must be awaited first!");
762         }
763         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(owner);
764         return nativeResponseValue;
765 }
766         // struct LDKDecodeError CResult_ChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
767 /* @internal */
768 export function CResult_ChannelTransactionParametersDecodeErrorZ_get_err(owner: number): number {
769         if(!isWasmInitialized) {
770                 throw new Error("initializeWasm() must be awaited first!");
771         }
772         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_get_err(owner);
773         return nativeResponseValue;
774 }
775         // struct LDKHolderCommitmentTransaction CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
776 /* @internal */
777 export function CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(owner: number): number {
778         if(!isWasmInitialized) {
779                 throw new Error("initializeWasm() must be awaited first!");
780         }
781         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(owner);
782         return nativeResponseValue;
783 }
784         // struct LDKDecodeError CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
785 /* @internal */
786 export function CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(owner: number): number {
787         if(!isWasmInitialized) {
788                 throw new Error("initializeWasm() must be awaited first!");
789         }
790         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(owner);
791         return nativeResponseValue;
792 }
793         // struct LDKBuiltCommitmentTransaction CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
794 /* @internal */
795 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(owner: number): number {
796         if(!isWasmInitialized) {
797                 throw new Error("initializeWasm() must be awaited first!");
798         }
799         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(owner);
800         return nativeResponseValue;
801 }
802         // struct LDKDecodeError CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
803 /* @internal */
804 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(owner: number): number {
805         if(!isWasmInitialized) {
806                 throw new Error("initializeWasm() must be awaited first!");
807         }
808         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(owner);
809         return nativeResponseValue;
810 }
811         // struct LDKTrustedClosingTransaction *CResult_TrustedClosingTransactionNoneZ_get_ok(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
812 /* @internal */
813 export function CResult_TrustedClosingTransactionNoneZ_get_ok(owner: number): number {
814         if(!isWasmInitialized) {
815                 throw new Error("initializeWasm() must be awaited first!");
816         }
817         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_get_ok(owner);
818         return nativeResponseValue;
819 }
820         // void CResult_TrustedClosingTransactionNoneZ_get_err(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
821 /* @internal */
822 export function CResult_TrustedClosingTransactionNoneZ_get_err(owner: number): void {
823         if(!isWasmInitialized) {
824                 throw new Error("initializeWasm() must be awaited first!");
825         }
826         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_get_err(owner);
827         // debug statements here
828 }
829         // struct LDKCommitmentTransaction CResult_CommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
830 /* @internal */
831 export function CResult_CommitmentTransactionDecodeErrorZ_get_ok(owner: number): number {
832         if(!isWasmInitialized) {
833                 throw new Error("initializeWasm() must be awaited first!");
834         }
835         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_get_ok(owner);
836         return nativeResponseValue;
837 }
838         // struct LDKDecodeError CResult_CommitmentTransactionDecodeErrorZ_get_err(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
839 /* @internal */
840 export function CResult_CommitmentTransactionDecodeErrorZ_get_err(owner: number): number {
841         if(!isWasmInitialized) {
842                 throw new Error("initializeWasm() must be awaited first!");
843         }
844         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_get_err(owner);
845         return nativeResponseValue;
846 }
847         // struct LDKTrustedCommitmentTransaction *CResult_TrustedCommitmentTransactionNoneZ_get_ok(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
848 /* @internal */
849 export function CResult_TrustedCommitmentTransactionNoneZ_get_ok(owner: number): number {
850         if(!isWasmInitialized) {
851                 throw new Error("initializeWasm() must be awaited first!");
852         }
853         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_get_ok(owner);
854         return nativeResponseValue;
855 }
856         // void CResult_TrustedCommitmentTransactionNoneZ_get_err(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
857 /* @internal */
858 export function CResult_TrustedCommitmentTransactionNoneZ_get_err(owner: number): void {
859         if(!isWasmInitialized) {
860                 throw new Error("initializeWasm() must be awaited first!");
861         }
862         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_get_err(owner);
863         // debug statements here
864 }
865         // struct LDKCVec_SignatureZ CResult_CVec_SignatureZNoneZ_get_ok(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
866 /* @internal */
867 export function CResult_CVec_SignatureZNoneZ_get_ok(owner: number): number {
868         if(!isWasmInitialized) {
869                 throw new Error("initializeWasm() must be awaited first!");
870         }
871         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_get_ok(owner);
872         return nativeResponseValue;
873 }
874         // void CResult_CVec_SignatureZNoneZ_get_err(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
875 /* @internal */
876 export function CResult_CVec_SignatureZNoneZ_get_err(owner: number): void {
877         if(!isWasmInitialized) {
878                 throw new Error("initializeWasm() must be awaited first!");
879         }
880         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_get_err(owner);
881         // debug statements here
882 }
883         // struct LDKShutdownScript CResult_ShutdownScriptDecodeErrorZ_get_ok(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
884 /* @internal */
885 export function CResult_ShutdownScriptDecodeErrorZ_get_ok(owner: number): number {
886         if(!isWasmInitialized) {
887                 throw new Error("initializeWasm() must be awaited first!");
888         }
889         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_get_ok(owner);
890         return nativeResponseValue;
891 }
892         // struct LDKDecodeError CResult_ShutdownScriptDecodeErrorZ_get_err(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
893 /* @internal */
894 export function CResult_ShutdownScriptDecodeErrorZ_get_err(owner: number): number {
895         if(!isWasmInitialized) {
896                 throw new Error("initializeWasm() must be awaited first!");
897         }
898         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_get_err(owner);
899         return nativeResponseValue;
900 }
901         // struct LDKShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
902 /* @internal */
903 export function CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(owner: number): number {
904         if(!isWasmInitialized) {
905                 throw new Error("initializeWasm() must be awaited first!");
906         }
907         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(owner);
908         return nativeResponseValue;
909 }
910         // struct LDKInvalidShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
911 /* @internal */
912 export function CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(owner: number): number {
913         if(!isWasmInitialized) {
914                 throw new Error("initializeWasm() must be awaited first!");
915         }
916         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(owner);
917         return nativeResponseValue;
918 }
919         // struct LDKRouteHop CResult_RouteHopDecodeErrorZ_get_ok(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
920 /* @internal */
921 export function CResult_RouteHopDecodeErrorZ_get_ok(owner: number): number {
922         if(!isWasmInitialized) {
923                 throw new Error("initializeWasm() must be awaited first!");
924         }
925         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_get_ok(owner);
926         return nativeResponseValue;
927 }
928         // struct LDKDecodeError CResult_RouteHopDecodeErrorZ_get_err(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
929 /* @internal */
930 export function CResult_RouteHopDecodeErrorZ_get_err(owner: number): number {
931         if(!isWasmInitialized) {
932                 throw new Error("initializeWasm() must be awaited first!");
933         }
934         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_get_err(owner);
935         return nativeResponseValue;
936 }
937         // struct LDKRoute CResult_RouteDecodeErrorZ_get_ok(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
938 /* @internal */
939 export function CResult_RouteDecodeErrorZ_get_ok(owner: number): number {
940         if(!isWasmInitialized) {
941                 throw new Error("initializeWasm() must be awaited first!");
942         }
943         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_get_ok(owner);
944         return nativeResponseValue;
945 }
946         // struct LDKDecodeError CResult_RouteDecodeErrorZ_get_err(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
947 /* @internal */
948 export function CResult_RouteDecodeErrorZ_get_err(owner: number): number {
949         if(!isWasmInitialized) {
950                 throw new Error("initializeWasm() must be awaited first!");
951         }
952         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_get_err(owner);
953         return nativeResponseValue;
954 }
955         // struct LDKRouteParameters CResult_RouteParametersDecodeErrorZ_get_ok(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
956 /* @internal */
957 export function CResult_RouteParametersDecodeErrorZ_get_ok(owner: number): number {
958         if(!isWasmInitialized) {
959                 throw new Error("initializeWasm() must be awaited first!");
960         }
961         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_get_ok(owner);
962         return nativeResponseValue;
963 }
964         // struct LDKDecodeError CResult_RouteParametersDecodeErrorZ_get_err(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
965 /* @internal */
966 export function CResult_RouteParametersDecodeErrorZ_get_err(owner: number): number {
967         if(!isWasmInitialized) {
968                 throw new Error("initializeWasm() must be awaited first!");
969         }
970         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_get_err(owner);
971         return nativeResponseValue;
972 }
973 /* @internal */
974 export class LDKCOption_u64Z {
975         protected constructor() {}
976 }
977 /* @internal */
978 export function LDKCOption_u64Z_ty_from_ptr(ptr: number): number {
979         if(!isWasmInitialized) {
980                 throw new Error("initializeWasm() must be awaited first!");
981         }
982         const nativeResponseValue = wasm.TS_LDKCOption_u64Z_ty_from_ptr(ptr);
983         return nativeResponseValue;
984 }
985 /* @internal */
986 export function LDKCOption_u64Z_Some_get_some(ptr: number): bigint {
987         if(!isWasmInitialized) {
988                 throw new Error("initializeWasm() must be awaited first!");
989         }
990         const nativeResponseValue = wasm.TS_LDKCOption_u64Z_Some_get_some(ptr);
991         return nativeResponseValue;
992 }
993         // struct LDKPaymentParameters CResult_PaymentParametersDecodeErrorZ_get_ok(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
994 /* @internal */
995 export function CResult_PaymentParametersDecodeErrorZ_get_ok(owner: number): number {
996         if(!isWasmInitialized) {
997                 throw new Error("initializeWasm() must be awaited first!");
998         }
999         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_get_ok(owner);
1000         return nativeResponseValue;
1001 }
1002         // struct LDKDecodeError CResult_PaymentParametersDecodeErrorZ_get_err(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
1003 /* @internal */
1004 export function CResult_PaymentParametersDecodeErrorZ_get_err(owner: number): number {
1005         if(!isWasmInitialized) {
1006                 throw new Error("initializeWasm() must be awaited first!");
1007         }
1008         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_get_err(owner);
1009         return nativeResponseValue;
1010 }
1011         // struct LDKRouteHint CResult_RouteHintDecodeErrorZ_get_ok(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
1012 /* @internal */
1013 export function CResult_RouteHintDecodeErrorZ_get_ok(owner: number): number {
1014         if(!isWasmInitialized) {
1015                 throw new Error("initializeWasm() must be awaited first!");
1016         }
1017         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_get_ok(owner);
1018         return nativeResponseValue;
1019 }
1020         // struct LDKDecodeError CResult_RouteHintDecodeErrorZ_get_err(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
1021 /* @internal */
1022 export function CResult_RouteHintDecodeErrorZ_get_err(owner: number): number {
1023         if(!isWasmInitialized) {
1024                 throw new Error("initializeWasm() must be awaited first!");
1025         }
1026         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_get_err(owner);
1027         return nativeResponseValue;
1028 }
1029         // struct LDKRouteHintHop CResult_RouteHintHopDecodeErrorZ_get_ok(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
1030 /* @internal */
1031 export function CResult_RouteHintHopDecodeErrorZ_get_ok(owner: number): number {
1032         if(!isWasmInitialized) {
1033                 throw new Error("initializeWasm() must be awaited first!");
1034         }
1035         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_get_ok(owner);
1036         return nativeResponseValue;
1037 }
1038         // struct LDKDecodeError CResult_RouteHintHopDecodeErrorZ_get_err(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
1039 /* @internal */
1040 export function CResult_RouteHintHopDecodeErrorZ_get_err(owner: number): number {
1041         if(!isWasmInitialized) {
1042                 throw new Error("initializeWasm() must be awaited first!");
1043         }
1044         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_get_err(owner);
1045         return nativeResponseValue;
1046 }
1047         // struct LDKRoute CResult_RouteLightningErrorZ_get_ok(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
1048 /* @internal */
1049 export function CResult_RouteLightningErrorZ_get_ok(owner: number): number {
1050         if(!isWasmInitialized) {
1051                 throw new Error("initializeWasm() must be awaited first!");
1052         }
1053         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_get_ok(owner);
1054         return nativeResponseValue;
1055 }
1056         // struct LDKLightningError CResult_RouteLightningErrorZ_get_err(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
1057 /* @internal */
1058 export function CResult_RouteLightningErrorZ_get_err(owner: number): number {
1059         if(!isWasmInitialized) {
1060                 throw new Error("initializeWasm() must be awaited first!");
1061         }
1062         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_get_err(owner);
1063         return nativeResponseValue;
1064 }
1065         // struct LDKTxOut CResult_TxOutAccessErrorZ_get_ok(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR owner);
1066 /* @internal */
1067 export function CResult_TxOutAccessErrorZ_get_ok(owner: number): number {
1068         if(!isWasmInitialized) {
1069                 throw new Error("initializeWasm() must be awaited first!");
1070         }
1071         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_get_ok(owner);
1072         return nativeResponseValue;
1073 }
1074         // enum LDKAccessError CResult_TxOutAccessErrorZ_get_err(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR owner);
1075 /* @internal */
1076 export function CResult_TxOutAccessErrorZ_get_err(owner: number): AccessError {
1077         if(!isWasmInitialized) {
1078                 throw new Error("initializeWasm() must be awaited first!");
1079         }
1080         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_get_err(owner);
1081         return nativeResponseValue;
1082 }
1083         // uintptr_t C2Tuple_usizeTransactionZ_get_a(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
1084 /* @internal */
1085 export function C2Tuple_usizeTransactionZ_get_a(owner: number): number {
1086         if(!isWasmInitialized) {
1087                 throw new Error("initializeWasm() must be awaited first!");
1088         }
1089         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_get_a(owner);
1090         return nativeResponseValue;
1091 }
1092         // struct LDKTransaction C2Tuple_usizeTransactionZ_get_b(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
1093 /* @internal */
1094 export function C2Tuple_usizeTransactionZ_get_b(owner: number): number {
1095         if(!isWasmInitialized) {
1096                 throw new Error("initializeWasm() must be awaited first!");
1097         }
1098         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_get_b(owner);
1099         return nativeResponseValue;
1100 }
1101         // void CResult_NoneChannelMonitorUpdateErrZ_get_ok(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR owner);
1102 /* @internal */
1103 export function CResult_NoneChannelMonitorUpdateErrZ_get_ok(owner: number): void {
1104         if(!isWasmInitialized) {
1105                 throw new Error("initializeWasm() must be awaited first!");
1106         }
1107         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_get_ok(owner);
1108         // debug statements here
1109 }
1110         // enum LDKChannelMonitorUpdateErr CResult_NoneChannelMonitorUpdateErrZ_get_err(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR owner);
1111 /* @internal */
1112 export function CResult_NoneChannelMonitorUpdateErrZ_get_err(owner: number): ChannelMonitorUpdateErr {
1113         if(!isWasmInitialized) {
1114                 throw new Error("initializeWasm() must be awaited first!");
1115         }
1116         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_get_err(owner);
1117         return nativeResponseValue;
1118 }
1119 /* @internal */
1120 export class LDKMonitorEvent {
1121         protected constructor() {}
1122 }
1123 /* @internal */
1124 export function LDKMonitorEvent_ty_from_ptr(ptr: number): number {
1125         if(!isWasmInitialized) {
1126                 throw new Error("initializeWasm() must be awaited first!");
1127         }
1128         const nativeResponseValue = wasm.TS_LDKMonitorEvent_ty_from_ptr(ptr);
1129         return nativeResponseValue;
1130 }
1131 /* @internal */
1132 export function LDKMonitorEvent_HTLCEvent_get_htlc_event(ptr: number): number {
1133         if(!isWasmInitialized) {
1134                 throw new Error("initializeWasm() must be awaited first!");
1135         }
1136         const nativeResponseValue = wasm.TS_LDKMonitorEvent_HTLCEvent_get_htlc_event(ptr);
1137         return nativeResponseValue;
1138 }
1139 /* @internal */
1140 export function LDKMonitorEvent_CommitmentTxConfirmed_get_commitment_tx_confirmed(ptr: number): number {
1141         if(!isWasmInitialized) {
1142                 throw new Error("initializeWasm() must be awaited first!");
1143         }
1144         const nativeResponseValue = wasm.TS_LDKMonitorEvent_CommitmentTxConfirmed_get_commitment_tx_confirmed(ptr);
1145         return nativeResponseValue;
1146 }
1147 /* @internal */
1148 export function LDKMonitorEvent_UpdateCompleted_get_funding_txo(ptr: number): number {
1149         if(!isWasmInitialized) {
1150                 throw new Error("initializeWasm() must be awaited first!");
1151         }
1152         const nativeResponseValue = wasm.TS_LDKMonitorEvent_UpdateCompleted_get_funding_txo(ptr);
1153         return nativeResponseValue;
1154 }
1155 /* @internal */
1156 export function LDKMonitorEvent_UpdateCompleted_get_monitor_update_id(ptr: number): bigint {
1157         if(!isWasmInitialized) {
1158                 throw new Error("initializeWasm() must be awaited first!");
1159         }
1160         const nativeResponseValue = wasm.TS_LDKMonitorEvent_UpdateCompleted_get_monitor_update_id(ptr);
1161         return nativeResponseValue;
1162 }
1163 /* @internal */
1164 export function LDKMonitorEvent_UpdateFailed_get_update_failed(ptr: number): number {
1165         if(!isWasmInitialized) {
1166                 throw new Error("initializeWasm() must be awaited first!");
1167         }
1168         const nativeResponseValue = wasm.TS_LDKMonitorEvent_UpdateFailed_get_update_failed(ptr);
1169         return nativeResponseValue;
1170 }
1171 /* @internal */
1172 export class LDKCOption_C2Tuple_usizeTransactionZZ {
1173         protected constructor() {}
1174 }
1175 /* @internal */
1176 export function LDKCOption_C2Tuple_usizeTransactionZZ_ty_from_ptr(ptr: number): number {
1177         if(!isWasmInitialized) {
1178                 throw new Error("initializeWasm() must be awaited first!");
1179         }
1180         const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_usizeTransactionZZ_ty_from_ptr(ptr);
1181         return nativeResponseValue;
1182 }
1183 /* @internal */
1184 export function LDKCOption_C2Tuple_usizeTransactionZZ_Some_get_some(ptr: number): number {
1185         if(!isWasmInitialized) {
1186                 throw new Error("initializeWasm() must be awaited first!");
1187         }
1188         const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_usizeTransactionZZ_Some_get_some(ptr);
1189         return nativeResponseValue;
1190 }
1191 /* @internal */
1192 export class LDKClosureReason {
1193         protected constructor() {}
1194 }
1195 /* @internal */
1196 export function LDKClosureReason_ty_from_ptr(ptr: number): number {
1197         if(!isWasmInitialized) {
1198                 throw new Error("initializeWasm() must be awaited first!");
1199         }
1200         const nativeResponseValue = wasm.TS_LDKClosureReason_ty_from_ptr(ptr);
1201         return nativeResponseValue;
1202 }
1203 /* @internal */
1204 export function LDKClosureReason_CounterpartyForceClosed_get_peer_msg(ptr: number): number {
1205         if(!isWasmInitialized) {
1206                 throw new Error("initializeWasm() must be awaited first!");
1207         }
1208         const nativeResponseValue = wasm.TS_LDKClosureReason_CounterpartyForceClosed_get_peer_msg(ptr);
1209         return nativeResponseValue;
1210 }
1211 /* @internal */
1212 export function LDKClosureReason_ProcessingError_get_err(ptr: number): number {
1213         if(!isWasmInitialized) {
1214                 throw new Error("initializeWasm() must be awaited first!");
1215         }
1216         const nativeResponseValue = wasm.TS_LDKClosureReason_ProcessingError_get_err(ptr);
1217         return nativeResponseValue;
1218 }
1219 /* @internal */
1220 export class LDKCOption_ClosureReasonZ {
1221         protected constructor() {}
1222 }
1223 /* @internal */
1224 export function LDKCOption_ClosureReasonZ_ty_from_ptr(ptr: number): number {
1225         if(!isWasmInitialized) {
1226                 throw new Error("initializeWasm() must be awaited first!");
1227         }
1228         const nativeResponseValue = wasm.TS_LDKCOption_ClosureReasonZ_ty_from_ptr(ptr);
1229         return nativeResponseValue;
1230 }
1231 /* @internal */
1232 export function LDKCOption_ClosureReasonZ_Some_get_some(ptr: number): number {
1233         if(!isWasmInitialized) {
1234                 throw new Error("initializeWasm() must be awaited first!");
1235         }
1236         const nativeResponseValue = wasm.TS_LDKCOption_ClosureReasonZ_Some_get_some(ptr);
1237         return nativeResponseValue;
1238 }
1239         // struct LDKCOption_ClosureReasonZ CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
1240 /* @internal */
1241 export function CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(owner: number): number {
1242         if(!isWasmInitialized) {
1243                 throw new Error("initializeWasm() must be awaited first!");
1244         }
1245         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(owner);
1246         return nativeResponseValue;
1247 }
1248         // struct LDKDecodeError CResult_COption_ClosureReasonZDecodeErrorZ_get_err(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
1249 /* @internal */
1250 export function CResult_COption_ClosureReasonZDecodeErrorZ_get_err(owner: number): number {
1251         if(!isWasmInitialized) {
1252                 throw new Error("initializeWasm() must be awaited first!");
1253         }
1254         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_get_err(owner);
1255         return nativeResponseValue;
1256 }
1257 /* @internal */
1258 export class LDKNetworkUpdate {
1259         protected constructor() {}
1260 }
1261 /* @internal */
1262 export function LDKNetworkUpdate_ty_from_ptr(ptr: number): number {
1263         if(!isWasmInitialized) {
1264                 throw new Error("initializeWasm() must be awaited first!");
1265         }
1266         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ty_from_ptr(ptr);
1267         return nativeResponseValue;
1268 }
1269 /* @internal */
1270 export function LDKNetworkUpdate_ChannelUpdateMessage_get_msg(ptr: number): number {
1271         if(!isWasmInitialized) {
1272                 throw new Error("initializeWasm() must be awaited first!");
1273         }
1274         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelUpdateMessage_get_msg(ptr);
1275         return nativeResponseValue;
1276 }
1277 /* @internal */
1278 export function LDKNetworkUpdate_ChannelClosed_get_short_channel_id(ptr: number): bigint {
1279         if(!isWasmInitialized) {
1280                 throw new Error("initializeWasm() must be awaited first!");
1281         }
1282         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelClosed_get_short_channel_id(ptr);
1283         return nativeResponseValue;
1284 }
1285 /* @internal */
1286 export function LDKNetworkUpdate_ChannelClosed_get_is_permanent(ptr: number): boolean {
1287         if(!isWasmInitialized) {
1288                 throw new Error("initializeWasm() must be awaited first!");
1289         }
1290         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelClosed_get_is_permanent(ptr);
1291         return nativeResponseValue;
1292 }
1293 /* @internal */
1294 export function LDKNetworkUpdate_NodeFailure_get_node_id(ptr: number): number {
1295         if(!isWasmInitialized) {
1296                 throw new Error("initializeWasm() must be awaited first!");
1297         }
1298         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_NodeFailure_get_node_id(ptr);
1299         return nativeResponseValue;
1300 }
1301 /* @internal */
1302 export function LDKNetworkUpdate_NodeFailure_get_is_permanent(ptr: number): boolean {
1303         if(!isWasmInitialized) {
1304                 throw new Error("initializeWasm() must be awaited first!");
1305         }
1306         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_NodeFailure_get_is_permanent(ptr);
1307         return nativeResponseValue;
1308 }
1309 /* @internal */
1310 export class LDKCOption_NetworkUpdateZ {
1311         protected constructor() {}
1312 }
1313 /* @internal */
1314 export function LDKCOption_NetworkUpdateZ_ty_from_ptr(ptr: number): number {
1315         if(!isWasmInitialized) {
1316                 throw new Error("initializeWasm() must be awaited first!");
1317         }
1318         const nativeResponseValue = wasm.TS_LDKCOption_NetworkUpdateZ_ty_from_ptr(ptr);
1319         return nativeResponseValue;
1320 }
1321 /* @internal */
1322 export function LDKCOption_NetworkUpdateZ_Some_get_some(ptr: number): number {
1323         if(!isWasmInitialized) {
1324                 throw new Error("initializeWasm() must be awaited first!");
1325         }
1326         const nativeResponseValue = wasm.TS_LDKCOption_NetworkUpdateZ_Some_get_some(ptr);
1327         return nativeResponseValue;
1328 }
1329 /* @internal */
1330 export class LDKSpendableOutputDescriptor {
1331         protected constructor() {}
1332 }
1333 /* @internal */
1334 export function LDKSpendableOutputDescriptor_ty_from_ptr(ptr: number): number {
1335         if(!isWasmInitialized) {
1336                 throw new Error("initializeWasm() must be awaited first!");
1337         }
1338         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_ty_from_ptr(ptr);
1339         return nativeResponseValue;
1340 }
1341 /* @internal */
1342 export function LDKSpendableOutputDescriptor_StaticOutput_get_outpoint(ptr: number): number {
1343         if(!isWasmInitialized) {
1344                 throw new Error("initializeWasm() must be awaited first!");
1345         }
1346         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticOutput_get_outpoint(ptr);
1347         return nativeResponseValue;
1348 }
1349 /* @internal */
1350 export function LDKSpendableOutputDescriptor_StaticOutput_get_output(ptr: number): number {
1351         if(!isWasmInitialized) {
1352                 throw new Error("initializeWasm() must be awaited first!");
1353         }
1354         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticOutput_get_output(ptr);
1355         return nativeResponseValue;
1356 }
1357 /* @internal */
1358 export function LDKSpendableOutputDescriptor_DelayedPaymentOutput_get_delayed_payment_output(ptr: number): number {
1359         if(!isWasmInitialized) {
1360                 throw new Error("initializeWasm() must be awaited first!");
1361         }
1362         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_DelayedPaymentOutput_get_delayed_payment_output(ptr);
1363         return nativeResponseValue;
1364 }
1365 /* @internal */
1366 export function LDKSpendableOutputDescriptor_StaticPaymentOutput_get_static_payment_output(ptr: number): number {
1367         if(!isWasmInitialized) {
1368                 throw new Error("initializeWasm() must be awaited first!");
1369         }
1370         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticPaymentOutput_get_static_payment_output(ptr);
1371         return nativeResponseValue;
1372 }
1373 /* @internal */
1374 export class LDKPaymentPurpose {
1375         protected constructor() {}
1376 }
1377 /* @internal */
1378 export function LDKPaymentPurpose_ty_from_ptr(ptr: number): number {
1379         if(!isWasmInitialized) {
1380                 throw new Error("initializeWasm() must be awaited first!");
1381         }
1382         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_ty_from_ptr(ptr);
1383         return nativeResponseValue;
1384 }
1385 /* @internal */
1386 export function LDKPaymentPurpose_InvoicePayment_get_payment_preimage(ptr: number): number {
1387         if(!isWasmInitialized) {
1388                 throw new Error("initializeWasm() must be awaited first!");
1389         }
1390         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_InvoicePayment_get_payment_preimage(ptr);
1391         return nativeResponseValue;
1392 }
1393 /* @internal */
1394 export function LDKPaymentPurpose_InvoicePayment_get_payment_secret(ptr: number): number {
1395         if(!isWasmInitialized) {
1396                 throw new Error("initializeWasm() must be awaited first!");
1397         }
1398         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_InvoicePayment_get_payment_secret(ptr);
1399         return nativeResponseValue;
1400 }
1401 /* @internal */
1402 export function LDKPaymentPurpose_SpontaneousPayment_get_spontaneous_payment(ptr: number): number {
1403         if(!isWasmInitialized) {
1404                 throw new Error("initializeWasm() must be awaited first!");
1405         }
1406         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_SpontaneousPayment_get_spontaneous_payment(ptr);
1407         return nativeResponseValue;
1408 }
1409 /* @internal */
1410 export class LDKEvent {
1411         protected constructor() {}
1412 }
1413 /* @internal */
1414 export function LDKEvent_ty_from_ptr(ptr: number): number {
1415         if(!isWasmInitialized) {
1416                 throw new Error("initializeWasm() must be awaited first!");
1417         }
1418         const nativeResponseValue = wasm.TS_LDKEvent_ty_from_ptr(ptr);
1419         return nativeResponseValue;
1420 }
1421 /* @internal */
1422 export function LDKEvent_FundingGenerationReady_get_temporary_channel_id(ptr: number): number {
1423         if(!isWasmInitialized) {
1424                 throw new Error("initializeWasm() must be awaited first!");
1425         }
1426         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_temporary_channel_id(ptr);
1427         return nativeResponseValue;
1428 }
1429 /* @internal */
1430 export function LDKEvent_FundingGenerationReady_get_channel_value_satoshis(ptr: number): bigint {
1431         if(!isWasmInitialized) {
1432                 throw new Error("initializeWasm() must be awaited first!");
1433         }
1434         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_channel_value_satoshis(ptr);
1435         return nativeResponseValue;
1436 }
1437 /* @internal */
1438 export function LDKEvent_FundingGenerationReady_get_output_script(ptr: number): number {
1439         if(!isWasmInitialized) {
1440                 throw new Error("initializeWasm() must be awaited first!");
1441         }
1442         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_output_script(ptr);
1443         return nativeResponseValue;
1444 }
1445 /* @internal */
1446 export function LDKEvent_FundingGenerationReady_get_user_channel_id(ptr: number): bigint {
1447         if(!isWasmInitialized) {
1448                 throw new Error("initializeWasm() must be awaited first!");
1449         }
1450         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_user_channel_id(ptr);
1451         return nativeResponseValue;
1452 }
1453 /* @internal */
1454 export function LDKEvent_PaymentReceived_get_payment_hash(ptr: number): number {
1455         if(!isWasmInitialized) {
1456                 throw new Error("initializeWasm() must be awaited first!");
1457         }
1458         const nativeResponseValue = wasm.TS_LDKEvent_PaymentReceived_get_payment_hash(ptr);
1459         return nativeResponseValue;
1460 }
1461 /* @internal */
1462 export function LDKEvent_PaymentReceived_get_amt(ptr: number): bigint {
1463         if(!isWasmInitialized) {
1464                 throw new Error("initializeWasm() must be awaited first!");
1465         }
1466         const nativeResponseValue = wasm.TS_LDKEvent_PaymentReceived_get_amt(ptr);
1467         return nativeResponseValue;
1468 }
1469 /* @internal */
1470 export function LDKEvent_PaymentReceived_get_purpose(ptr: number): number {
1471         if(!isWasmInitialized) {
1472                 throw new Error("initializeWasm() must be awaited first!");
1473         }
1474         const nativeResponseValue = wasm.TS_LDKEvent_PaymentReceived_get_purpose(ptr);
1475         return nativeResponseValue;
1476 }
1477 /* @internal */
1478 export function LDKEvent_PaymentSent_get_payment_id(ptr: number): number {
1479         if(!isWasmInitialized) {
1480                 throw new Error("initializeWasm() must be awaited first!");
1481         }
1482         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_id(ptr);
1483         return nativeResponseValue;
1484 }
1485 /* @internal */
1486 export function LDKEvent_PaymentSent_get_payment_preimage(ptr: number): number {
1487         if(!isWasmInitialized) {
1488                 throw new Error("initializeWasm() must be awaited first!");
1489         }
1490         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_preimage(ptr);
1491         return nativeResponseValue;
1492 }
1493 /* @internal */
1494 export function LDKEvent_PaymentSent_get_payment_hash(ptr: number): number {
1495         if(!isWasmInitialized) {
1496                 throw new Error("initializeWasm() must be awaited first!");
1497         }
1498         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_hash(ptr);
1499         return nativeResponseValue;
1500 }
1501 /* @internal */
1502 export function LDKEvent_PaymentSent_get_fee_paid_msat(ptr: number): number {
1503         if(!isWasmInitialized) {
1504                 throw new Error("initializeWasm() must be awaited first!");
1505         }
1506         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_fee_paid_msat(ptr);
1507         return nativeResponseValue;
1508 }
1509 /* @internal */
1510 export function LDKEvent_PaymentPathFailed_get_payment_id(ptr: number): number {
1511         if(!isWasmInitialized) {
1512                 throw new Error("initializeWasm() must be awaited first!");
1513         }
1514         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_payment_id(ptr);
1515         return nativeResponseValue;
1516 }
1517 /* @internal */
1518 export function LDKEvent_PaymentPathFailed_get_payment_hash(ptr: number): number {
1519         if(!isWasmInitialized) {
1520                 throw new Error("initializeWasm() must be awaited first!");
1521         }
1522         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_payment_hash(ptr);
1523         return nativeResponseValue;
1524 }
1525 /* @internal */
1526 export function LDKEvent_PaymentPathFailed_get_rejected_by_dest(ptr: number): boolean {
1527         if(!isWasmInitialized) {
1528                 throw new Error("initializeWasm() must be awaited first!");
1529         }
1530         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_rejected_by_dest(ptr);
1531         return nativeResponseValue;
1532 }
1533 /* @internal */
1534 export function LDKEvent_PaymentPathFailed_get_network_update(ptr: number): number {
1535         if(!isWasmInitialized) {
1536                 throw new Error("initializeWasm() must be awaited first!");
1537         }
1538         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_network_update(ptr);
1539         return nativeResponseValue;
1540 }
1541 /* @internal */
1542 export function LDKEvent_PaymentPathFailed_get_all_paths_failed(ptr: number): boolean {
1543         if(!isWasmInitialized) {
1544                 throw new Error("initializeWasm() must be awaited first!");
1545         }
1546         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_all_paths_failed(ptr);
1547         return nativeResponseValue;
1548 }
1549 /* @internal */
1550 export function LDKEvent_PaymentPathFailed_get_path(ptr: number): number {
1551         if(!isWasmInitialized) {
1552                 throw new Error("initializeWasm() must be awaited first!");
1553         }
1554         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_path(ptr);
1555         return nativeResponseValue;
1556 }
1557 /* @internal */
1558 export function LDKEvent_PaymentPathFailed_get_short_channel_id(ptr: number): number {
1559         if(!isWasmInitialized) {
1560                 throw new Error("initializeWasm() must be awaited first!");
1561         }
1562         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_short_channel_id(ptr);
1563         return nativeResponseValue;
1564 }
1565 /* @internal */
1566 export function LDKEvent_PaymentPathFailed_get_retry(ptr: number): number {
1567         if(!isWasmInitialized) {
1568                 throw new Error("initializeWasm() must be awaited first!");
1569         }
1570         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_retry(ptr);
1571         return nativeResponseValue;
1572 }
1573 /* @internal */
1574 export function LDKEvent_PaymentFailed_get_payment_id(ptr: number): number {
1575         if(!isWasmInitialized) {
1576                 throw new Error("initializeWasm() must be awaited first!");
1577         }
1578         const nativeResponseValue = wasm.TS_LDKEvent_PaymentFailed_get_payment_id(ptr);
1579         return nativeResponseValue;
1580 }
1581 /* @internal */
1582 export function LDKEvent_PaymentFailed_get_payment_hash(ptr: number): number {
1583         if(!isWasmInitialized) {
1584                 throw new Error("initializeWasm() must be awaited first!");
1585         }
1586         const nativeResponseValue = wasm.TS_LDKEvent_PaymentFailed_get_payment_hash(ptr);
1587         return nativeResponseValue;
1588 }
1589 /* @internal */
1590 export function LDKEvent_PendingHTLCsForwardable_get_time_forwardable(ptr: number): bigint {
1591         if(!isWasmInitialized) {
1592                 throw new Error("initializeWasm() must be awaited first!");
1593         }
1594         const nativeResponseValue = wasm.TS_LDKEvent_PendingHTLCsForwardable_get_time_forwardable(ptr);
1595         return nativeResponseValue;
1596 }
1597 /* @internal */
1598 export function LDKEvent_SpendableOutputs_get_outputs(ptr: number): number {
1599         if(!isWasmInitialized) {
1600                 throw new Error("initializeWasm() must be awaited first!");
1601         }
1602         const nativeResponseValue = wasm.TS_LDKEvent_SpendableOutputs_get_outputs(ptr);
1603         return nativeResponseValue;
1604 }
1605 /* @internal */
1606 export function LDKEvent_PaymentForwarded_get_fee_earned_msat(ptr: number): number {
1607         if(!isWasmInitialized) {
1608                 throw new Error("initializeWasm() must be awaited first!");
1609         }
1610         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_fee_earned_msat(ptr);
1611         return nativeResponseValue;
1612 }
1613 /* @internal */
1614 export function LDKEvent_PaymentForwarded_get_claim_from_onchain_tx(ptr: number): boolean {
1615         if(!isWasmInitialized) {
1616                 throw new Error("initializeWasm() must be awaited first!");
1617         }
1618         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_claim_from_onchain_tx(ptr);
1619         return nativeResponseValue;
1620 }
1621 /* @internal */
1622 export function LDKEvent_ChannelClosed_get_channel_id(ptr: number): number {
1623         if(!isWasmInitialized) {
1624                 throw new Error("initializeWasm() must be awaited first!");
1625         }
1626         const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_channel_id(ptr);
1627         return nativeResponseValue;
1628 }
1629 /* @internal */
1630 export function LDKEvent_ChannelClosed_get_user_channel_id(ptr: number): bigint {
1631         if(!isWasmInitialized) {
1632                 throw new Error("initializeWasm() must be awaited first!");
1633         }
1634         const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_user_channel_id(ptr);
1635         return nativeResponseValue;
1636 }
1637 /* @internal */
1638 export function LDKEvent_ChannelClosed_get_reason(ptr: number): number {
1639         if(!isWasmInitialized) {
1640                 throw new Error("initializeWasm() must be awaited first!");
1641         }
1642         const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_reason(ptr);
1643         return nativeResponseValue;
1644 }
1645 /* @internal */
1646 export function LDKEvent_DiscardFunding_get_channel_id(ptr: number): number {
1647         if(!isWasmInitialized) {
1648                 throw new Error("initializeWasm() must be awaited first!");
1649         }
1650         const nativeResponseValue = wasm.TS_LDKEvent_DiscardFunding_get_channel_id(ptr);
1651         return nativeResponseValue;
1652 }
1653 /* @internal */
1654 export function LDKEvent_DiscardFunding_get_transaction(ptr: number): number {
1655         if(!isWasmInitialized) {
1656                 throw new Error("initializeWasm() must be awaited first!");
1657         }
1658         const nativeResponseValue = wasm.TS_LDKEvent_DiscardFunding_get_transaction(ptr);
1659         return nativeResponseValue;
1660 }
1661 /* @internal */
1662 export function LDKEvent_PaymentPathSuccessful_get_payment_id(ptr: number): number {
1663         if(!isWasmInitialized) {
1664                 throw new Error("initializeWasm() must be awaited first!");
1665         }
1666         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_payment_id(ptr);
1667         return nativeResponseValue;
1668 }
1669 /* @internal */
1670 export function LDKEvent_PaymentPathSuccessful_get_payment_hash(ptr: number): number {
1671         if(!isWasmInitialized) {
1672                 throw new Error("initializeWasm() must be awaited first!");
1673         }
1674         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_payment_hash(ptr);
1675         return nativeResponseValue;
1676 }
1677 /* @internal */
1678 export function LDKEvent_PaymentPathSuccessful_get_path(ptr: number): number {
1679         if(!isWasmInitialized) {
1680                 throw new Error("initializeWasm() must be awaited first!");
1681         }
1682         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_path(ptr);
1683         return nativeResponseValue;
1684 }
1685 /* @internal */
1686 export function LDKEvent_OpenChannelRequest_get_temporary_channel_id(ptr: number): number {
1687         if(!isWasmInitialized) {
1688                 throw new Error("initializeWasm() must be awaited first!");
1689         }
1690         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_temporary_channel_id(ptr);
1691         return nativeResponseValue;
1692 }
1693 /* @internal */
1694 export function LDKEvent_OpenChannelRequest_get_counterparty_node_id(ptr: number): number {
1695         if(!isWasmInitialized) {
1696                 throw new Error("initializeWasm() must be awaited first!");
1697         }
1698         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_counterparty_node_id(ptr);
1699         return nativeResponseValue;
1700 }
1701 /* @internal */
1702 export function LDKEvent_OpenChannelRequest_get_funding_satoshis(ptr: number): bigint {
1703         if(!isWasmInitialized) {
1704                 throw new Error("initializeWasm() must be awaited first!");
1705         }
1706         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_funding_satoshis(ptr);
1707         return nativeResponseValue;
1708 }
1709 /* @internal */
1710 export function LDKEvent_OpenChannelRequest_get_push_msat(ptr: number): bigint {
1711         if(!isWasmInitialized) {
1712                 throw new Error("initializeWasm() must be awaited first!");
1713         }
1714         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_push_msat(ptr);
1715         return nativeResponseValue;
1716 }
1717 /* @internal */
1718 export class LDKCOption_EventZ {
1719         protected constructor() {}
1720 }
1721 /* @internal */
1722 export function LDKCOption_EventZ_ty_from_ptr(ptr: number): number {
1723         if(!isWasmInitialized) {
1724                 throw new Error("initializeWasm() must be awaited first!");
1725         }
1726         const nativeResponseValue = wasm.TS_LDKCOption_EventZ_ty_from_ptr(ptr);
1727         return nativeResponseValue;
1728 }
1729 /* @internal */
1730 export function LDKCOption_EventZ_Some_get_some(ptr: number): number {
1731         if(!isWasmInitialized) {
1732                 throw new Error("initializeWasm() must be awaited first!");
1733         }
1734         const nativeResponseValue = wasm.TS_LDKCOption_EventZ_Some_get_some(ptr);
1735         return nativeResponseValue;
1736 }
1737         // struct LDKCOption_EventZ CResult_COption_EventZDecodeErrorZ_get_ok(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
1738 /* @internal */
1739 export function CResult_COption_EventZDecodeErrorZ_get_ok(owner: number): number {
1740         if(!isWasmInitialized) {
1741                 throw new Error("initializeWasm() must be awaited first!");
1742         }
1743         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_get_ok(owner);
1744         return nativeResponseValue;
1745 }
1746         // struct LDKDecodeError CResult_COption_EventZDecodeErrorZ_get_err(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
1747 /* @internal */
1748 export function CResult_COption_EventZDecodeErrorZ_get_err(owner: number): number {
1749         if(!isWasmInitialized) {
1750                 throw new Error("initializeWasm() must be awaited first!");
1751         }
1752         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_get_err(owner);
1753         return nativeResponseValue;
1754 }
1755 /* @internal */
1756 export class LDKErrorAction {
1757         protected constructor() {}
1758 }
1759 /* @internal */
1760 export function LDKErrorAction_ty_from_ptr(ptr: number): number {
1761         if(!isWasmInitialized) {
1762                 throw new Error("initializeWasm() must be awaited first!");
1763         }
1764         const nativeResponseValue = wasm.TS_LDKErrorAction_ty_from_ptr(ptr);
1765         return nativeResponseValue;
1766 }
1767 /* @internal */
1768 export function LDKErrorAction_DisconnectPeer_get_msg(ptr: number): number {
1769         if(!isWasmInitialized) {
1770                 throw new Error("initializeWasm() must be awaited first!");
1771         }
1772         const nativeResponseValue = wasm.TS_LDKErrorAction_DisconnectPeer_get_msg(ptr);
1773         return nativeResponseValue;
1774 }
1775 /* @internal */
1776 export function LDKErrorAction_IgnoreAndLog_get_ignore_and_log(ptr: number): Level {
1777         if(!isWasmInitialized) {
1778                 throw new Error("initializeWasm() must be awaited first!");
1779         }
1780         const nativeResponseValue = wasm.TS_LDKErrorAction_IgnoreAndLog_get_ignore_and_log(ptr);
1781         return nativeResponseValue;
1782 }
1783 /* @internal */
1784 export function LDKErrorAction_SendErrorMessage_get_msg(ptr: number): number {
1785         if(!isWasmInitialized) {
1786                 throw new Error("initializeWasm() must be awaited first!");
1787         }
1788         const nativeResponseValue = wasm.TS_LDKErrorAction_SendErrorMessage_get_msg(ptr);
1789         return nativeResponseValue;
1790 }
1791 /* @internal */
1792 export function LDKErrorAction_SendWarningMessage_get_msg(ptr: number): number {
1793         if(!isWasmInitialized) {
1794                 throw new Error("initializeWasm() must be awaited first!");
1795         }
1796         const nativeResponseValue = wasm.TS_LDKErrorAction_SendWarningMessage_get_msg(ptr);
1797         return nativeResponseValue;
1798 }
1799 /* @internal */
1800 export function LDKErrorAction_SendWarningMessage_get_log_level(ptr: number): Level {
1801         if(!isWasmInitialized) {
1802                 throw new Error("initializeWasm() must be awaited first!");
1803         }
1804         const nativeResponseValue = wasm.TS_LDKErrorAction_SendWarningMessage_get_log_level(ptr);
1805         return nativeResponseValue;
1806 }
1807 /* @internal */
1808 export class LDKMessageSendEvent {
1809         protected constructor() {}
1810 }
1811 /* @internal */
1812 export function LDKMessageSendEvent_ty_from_ptr(ptr: number): number {
1813         if(!isWasmInitialized) {
1814                 throw new Error("initializeWasm() must be awaited first!");
1815         }
1816         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_ty_from_ptr(ptr);
1817         return nativeResponseValue;
1818 }
1819 /* @internal */
1820 export function LDKMessageSendEvent_SendAcceptChannel_get_node_id(ptr: number): number {
1821         if(!isWasmInitialized) {
1822                 throw new Error("initializeWasm() must be awaited first!");
1823         }
1824         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAcceptChannel_get_node_id(ptr);
1825         return nativeResponseValue;
1826 }
1827 /* @internal */
1828 export function LDKMessageSendEvent_SendAcceptChannel_get_msg(ptr: number): number {
1829         if(!isWasmInitialized) {
1830                 throw new Error("initializeWasm() must be awaited first!");
1831         }
1832         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAcceptChannel_get_msg(ptr);
1833         return nativeResponseValue;
1834 }
1835 /* @internal */
1836 export function LDKMessageSendEvent_SendOpenChannel_get_node_id(ptr: number): number {
1837         if(!isWasmInitialized) {
1838                 throw new Error("initializeWasm() must be awaited first!");
1839         }
1840         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendOpenChannel_get_node_id(ptr);
1841         return nativeResponseValue;
1842 }
1843 /* @internal */
1844 export function LDKMessageSendEvent_SendOpenChannel_get_msg(ptr: number): number {
1845         if(!isWasmInitialized) {
1846                 throw new Error("initializeWasm() must be awaited first!");
1847         }
1848         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendOpenChannel_get_msg(ptr);
1849         return nativeResponseValue;
1850 }
1851 /* @internal */
1852 export function LDKMessageSendEvent_SendFundingCreated_get_node_id(ptr: number): number {
1853         if(!isWasmInitialized) {
1854                 throw new Error("initializeWasm() must be awaited first!");
1855         }
1856         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingCreated_get_node_id(ptr);
1857         return nativeResponseValue;
1858 }
1859 /* @internal */
1860 export function LDKMessageSendEvent_SendFundingCreated_get_msg(ptr: number): number {
1861         if(!isWasmInitialized) {
1862                 throw new Error("initializeWasm() must be awaited first!");
1863         }
1864         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingCreated_get_msg(ptr);
1865         return nativeResponseValue;
1866 }
1867 /* @internal */
1868 export function LDKMessageSendEvent_SendFundingSigned_get_node_id(ptr: number): number {
1869         if(!isWasmInitialized) {
1870                 throw new Error("initializeWasm() must be awaited first!");
1871         }
1872         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingSigned_get_node_id(ptr);
1873         return nativeResponseValue;
1874 }
1875 /* @internal */
1876 export function LDKMessageSendEvent_SendFundingSigned_get_msg(ptr: number): number {
1877         if(!isWasmInitialized) {
1878                 throw new Error("initializeWasm() must be awaited first!");
1879         }
1880         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingSigned_get_msg(ptr);
1881         return nativeResponseValue;
1882 }
1883 /* @internal */
1884 export function LDKMessageSendEvent_SendFundingLocked_get_node_id(ptr: number): number {
1885         if(!isWasmInitialized) {
1886                 throw new Error("initializeWasm() must be awaited first!");
1887         }
1888         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingLocked_get_node_id(ptr);
1889         return nativeResponseValue;
1890 }
1891 /* @internal */
1892 export function LDKMessageSendEvent_SendFundingLocked_get_msg(ptr: number): number {
1893         if(!isWasmInitialized) {
1894                 throw new Error("initializeWasm() must be awaited first!");
1895         }
1896         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingLocked_get_msg(ptr);
1897         return nativeResponseValue;
1898 }
1899 /* @internal */
1900 export function LDKMessageSendEvent_SendAnnouncementSignatures_get_node_id(ptr: number): number {
1901         if(!isWasmInitialized) {
1902                 throw new Error("initializeWasm() must be awaited first!");
1903         }
1904         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAnnouncementSignatures_get_node_id(ptr);
1905         return nativeResponseValue;
1906 }
1907 /* @internal */
1908 export function LDKMessageSendEvent_SendAnnouncementSignatures_get_msg(ptr: number): number {
1909         if(!isWasmInitialized) {
1910                 throw new Error("initializeWasm() must be awaited first!");
1911         }
1912         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAnnouncementSignatures_get_msg(ptr);
1913         return nativeResponseValue;
1914 }
1915 /* @internal */
1916 export function LDKMessageSendEvent_UpdateHTLCs_get_node_id(ptr: number): number {
1917         if(!isWasmInitialized) {
1918                 throw new Error("initializeWasm() must be awaited first!");
1919         }
1920         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_UpdateHTLCs_get_node_id(ptr);
1921         return nativeResponseValue;
1922 }
1923 /* @internal */
1924 export function LDKMessageSendEvent_UpdateHTLCs_get_updates(ptr: number): number {
1925         if(!isWasmInitialized) {
1926                 throw new Error("initializeWasm() must be awaited first!");
1927         }
1928         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_UpdateHTLCs_get_updates(ptr);
1929         return nativeResponseValue;
1930 }
1931 /* @internal */
1932 export function LDKMessageSendEvent_SendRevokeAndACK_get_node_id(ptr: number): number {
1933         if(!isWasmInitialized) {
1934                 throw new Error("initializeWasm() must be awaited first!");
1935         }
1936         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendRevokeAndACK_get_node_id(ptr);
1937         return nativeResponseValue;
1938 }
1939 /* @internal */
1940 export function LDKMessageSendEvent_SendRevokeAndACK_get_msg(ptr: number): number {
1941         if(!isWasmInitialized) {
1942                 throw new Error("initializeWasm() must be awaited first!");
1943         }
1944         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendRevokeAndACK_get_msg(ptr);
1945         return nativeResponseValue;
1946 }
1947 /* @internal */
1948 export function LDKMessageSendEvent_SendClosingSigned_get_node_id(ptr: number): number {
1949         if(!isWasmInitialized) {
1950                 throw new Error("initializeWasm() must be awaited first!");
1951         }
1952         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendClosingSigned_get_node_id(ptr);
1953         return nativeResponseValue;
1954 }
1955 /* @internal */
1956 export function LDKMessageSendEvent_SendClosingSigned_get_msg(ptr: number): number {
1957         if(!isWasmInitialized) {
1958                 throw new Error("initializeWasm() must be awaited first!");
1959         }
1960         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendClosingSigned_get_msg(ptr);
1961         return nativeResponseValue;
1962 }
1963 /* @internal */
1964 export function LDKMessageSendEvent_SendShutdown_get_node_id(ptr: number): number {
1965         if(!isWasmInitialized) {
1966                 throw new Error("initializeWasm() must be awaited first!");
1967         }
1968         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShutdown_get_node_id(ptr);
1969         return nativeResponseValue;
1970 }
1971 /* @internal */
1972 export function LDKMessageSendEvent_SendShutdown_get_msg(ptr: number): number {
1973         if(!isWasmInitialized) {
1974                 throw new Error("initializeWasm() must be awaited first!");
1975         }
1976         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShutdown_get_msg(ptr);
1977         return nativeResponseValue;
1978 }
1979 /* @internal */
1980 export function LDKMessageSendEvent_SendChannelReestablish_get_node_id(ptr: number): number {
1981         if(!isWasmInitialized) {
1982                 throw new Error("initializeWasm() must be awaited first!");
1983         }
1984         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReestablish_get_node_id(ptr);
1985         return nativeResponseValue;
1986 }
1987 /* @internal */
1988 export function LDKMessageSendEvent_SendChannelReestablish_get_msg(ptr: number): number {
1989         if(!isWasmInitialized) {
1990                 throw new Error("initializeWasm() must be awaited first!");
1991         }
1992         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReestablish_get_msg(ptr);
1993         return nativeResponseValue;
1994 }
1995 /* @internal */
1996 export function LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg(ptr: number): number {
1997         if(!isWasmInitialized) {
1998                 throw new Error("initializeWasm() must be awaited first!");
1999         }
2000         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg(ptr);
2001         return nativeResponseValue;
2002 }
2003 /* @internal */
2004 export function LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg(ptr: number): number {
2005         if(!isWasmInitialized) {
2006                 throw new Error("initializeWasm() must be awaited first!");
2007         }
2008         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg(ptr);
2009         return nativeResponseValue;
2010 }
2011 /* @internal */
2012 export function LDKMessageSendEvent_BroadcastNodeAnnouncement_get_msg(ptr: number): number {
2013         if(!isWasmInitialized) {
2014                 throw new Error("initializeWasm() must be awaited first!");
2015         }
2016         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastNodeAnnouncement_get_msg(ptr);
2017         return nativeResponseValue;
2018 }
2019 /* @internal */
2020 export function LDKMessageSendEvent_BroadcastChannelUpdate_get_msg(ptr: number): number {
2021         if(!isWasmInitialized) {
2022                 throw new Error("initializeWasm() must be awaited first!");
2023         }
2024         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelUpdate_get_msg(ptr);
2025         return nativeResponseValue;
2026 }
2027 /* @internal */
2028 export function LDKMessageSendEvent_SendChannelUpdate_get_node_id(ptr: number): number {
2029         if(!isWasmInitialized) {
2030                 throw new Error("initializeWasm() must be awaited first!");
2031         }
2032         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelUpdate_get_node_id(ptr);
2033         return nativeResponseValue;
2034 }
2035 /* @internal */
2036 export function LDKMessageSendEvent_SendChannelUpdate_get_msg(ptr: number): number {
2037         if(!isWasmInitialized) {
2038                 throw new Error("initializeWasm() must be awaited first!");
2039         }
2040         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelUpdate_get_msg(ptr);
2041         return nativeResponseValue;
2042 }
2043 /* @internal */
2044 export function LDKMessageSendEvent_HandleError_get_node_id(ptr: number): number {
2045         if(!isWasmInitialized) {
2046                 throw new Error("initializeWasm() must be awaited first!");
2047         }
2048         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_HandleError_get_node_id(ptr);
2049         return nativeResponseValue;
2050 }
2051 /* @internal */
2052 export function LDKMessageSendEvent_HandleError_get_action(ptr: number): number {
2053         if(!isWasmInitialized) {
2054                 throw new Error("initializeWasm() must be awaited first!");
2055         }
2056         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_HandleError_get_action(ptr);
2057         return nativeResponseValue;
2058 }
2059 /* @internal */
2060 export function LDKMessageSendEvent_SendChannelRangeQuery_get_node_id(ptr: number): number {
2061         if(!isWasmInitialized) {
2062                 throw new Error("initializeWasm() must be awaited first!");
2063         }
2064         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelRangeQuery_get_node_id(ptr);
2065         return nativeResponseValue;
2066 }
2067 /* @internal */
2068 export function LDKMessageSendEvent_SendChannelRangeQuery_get_msg(ptr: number): number {
2069         if(!isWasmInitialized) {
2070                 throw new Error("initializeWasm() must be awaited first!");
2071         }
2072         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelRangeQuery_get_msg(ptr);
2073         return nativeResponseValue;
2074 }
2075 /* @internal */
2076 export function LDKMessageSendEvent_SendShortIdsQuery_get_node_id(ptr: number): number {
2077         if(!isWasmInitialized) {
2078                 throw new Error("initializeWasm() must be awaited first!");
2079         }
2080         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShortIdsQuery_get_node_id(ptr);
2081         return nativeResponseValue;
2082 }
2083 /* @internal */
2084 export function LDKMessageSendEvent_SendShortIdsQuery_get_msg(ptr: number): number {
2085         if(!isWasmInitialized) {
2086                 throw new Error("initializeWasm() must be awaited first!");
2087         }
2088         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShortIdsQuery_get_msg(ptr);
2089         return nativeResponseValue;
2090 }
2091 /* @internal */
2092 export function LDKMessageSendEvent_SendReplyChannelRange_get_node_id(ptr: number): number {
2093         if(!isWasmInitialized) {
2094                 throw new Error("initializeWasm() must be awaited first!");
2095         }
2096         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendReplyChannelRange_get_node_id(ptr);
2097         return nativeResponseValue;
2098 }
2099 /* @internal */
2100 export function LDKMessageSendEvent_SendReplyChannelRange_get_msg(ptr: number): number {
2101         if(!isWasmInitialized) {
2102                 throw new Error("initializeWasm() must be awaited first!");
2103         }
2104         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendReplyChannelRange_get_msg(ptr);
2105         return nativeResponseValue;
2106 }
2107         // struct LDKFixedPenaltyScorer CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
2108 /* @internal */
2109 export function CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(owner: number): number {
2110         if(!isWasmInitialized) {
2111                 throw new Error("initializeWasm() must be awaited first!");
2112         }
2113         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(owner);
2114         return nativeResponseValue;
2115 }
2116         // struct LDKDecodeError CResult_FixedPenaltyScorerDecodeErrorZ_get_err(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
2117 /* @internal */
2118 export function CResult_FixedPenaltyScorerDecodeErrorZ_get_err(owner: number): number {
2119         if(!isWasmInitialized) {
2120                 throw new Error("initializeWasm() must be awaited first!");
2121         }
2122         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_get_err(owner);
2123         return nativeResponseValue;
2124 }
2125         // struct LDKScoringParameters CResult_ScoringParametersDecodeErrorZ_get_ok(LDKCResult_ScoringParametersDecodeErrorZ *NONNULL_PTR owner);
2126 /* @internal */
2127 export function CResult_ScoringParametersDecodeErrorZ_get_ok(owner: number): number {
2128         if(!isWasmInitialized) {
2129                 throw new Error("initializeWasm() must be awaited first!");
2130         }
2131         const nativeResponseValue = wasm.TS_CResult_ScoringParametersDecodeErrorZ_get_ok(owner);
2132         return nativeResponseValue;
2133 }
2134         // struct LDKDecodeError CResult_ScoringParametersDecodeErrorZ_get_err(LDKCResult_ScoringParametersDecodeErrorZ *NONNULL_PTR owner);
2135 /* @internal */
2136 export function CResult_ScoringParametersDecodeErrorZ_get_err(owner: number): number {
2137         if(!isWasmInitialized) {
2138                 throw new Error("initializeWasm() must be awaited first!");
2139         }
2140         const nativeResponseValue = wasm.TS_CResult_ScoringParametersDecodeErrorZ_get_err(owner);
2141         return nativeResponseValue;
2142 }
2143         // struct LDKScorer *CResult_ScorerDecodeErrorZ_get_ok(LDKCResult_ScorerDecodeErrorZ *NONNULL_PTR owner);
2144 /* @internal */
2145 export function CResult_ScorerDecodeErrorZ_get_ok(owner: number): number {
2146         if(!isWasmInitialized) {
2147                 throw new Error("initializeWasm() must be awaited first!");
2148         }
2149         const nativeResponseValue = wasm.TS_CResult_ScorerDecodeErrorZ_get_ok(owner);
2150         return nativeResponseValue;
2151 }
2152         // struct LDKDecodeError CResult_ScorerDecodeErrorZ_get_err(LDKCResult_ScorerDecodeErrorZ *NONNULL_PTR owner);
2153 /* @internal */
2154 export function CResult_ScorerDecodeErrorZ_get_err(owner: number): number {
2155         if(!isWasmInitialized) {
2156                 throw new Error("initializeWasm() must be awaited first!");
2157         }
2158         const nativeResponseValue = wasm.TS_CResult_ScorerDecodeErrorZ_get_err(owner);
2159         return nativeResponseValue;
2160 }
2161         // struct LDKProbabilisticScoringParameters CResult_ProbabilisticScoringParametersDecodeErrorZ_get_ok(LDKCResult_ProbabilisticScoringParametersDecodeErrorZ *NONNULL_PTR owner);
2162 /* @internal */
2163 export function CResult_ProbabilisticScoringParametersDecodeErrorZ_get_ok(owner: number): number {
2164         if(!isWasmInitialized) {
2165                 throw new Error("initializeWasm() must be awaited first!");
2166         }
2167         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScoringParametersDecodeErrorZ_get_ok(owner);
2168         return nativeResponseValue;
2169 }
2170         // struct LDKDecodeError CResult_ProbabilisticScoringParametersDecodeErrorZ_get_err(LDKCResult_ProbabilisticScoringParametersDecodeErrorZ *NONNULL_PTR owner);
2171 /* @internal */
2172 export function CResult_ProbabilisticScoringParametersDecodeErrorZ_get_err(owner: number): number {
2173         if(!isWasmInitialized) {
2174                 throw new Error("initializeWasm() must be awaited first!");
2175         }
2176         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScoringParametersDecodeErrorZ_get_err(owner);
2177         return nativeResponseValue;
2178 }
2179         // struct LDKInitFeatures CResult_InitFeaturesDecodeErrorZ_get_ok(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
2180 /* @internal */
2181 export function CResult_InitFeaturesDecodeErrorZ_get_ok(owner: number): number {
2182         if(!isWasmInitialized) {
2183                 throw new Error("initializeWasm() must be awaited first!");
2184         }
2185         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_get_ok(owner);
2186         return nativeResponseValue;
2187 }
2188         // struct LDKDecodeError CResult_InitFeaturesDecodeErrorZ_get_err(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
2189 /* @internal */
2190 export function CResult_InitFeaturesDecodeErrorZ_get_err(owner: number): number {
2191         if(!isWasmInitialized) {
2192                 throw new Error("initializeWasm() must be awaited first!");
2193         }
2194         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_get_err(owner);
2195         return nativeResponseValue;
2196 }
2197         // struct LDKChannelFeatures CResult_ChannelFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
2198 /* @internal */
2199 export function CResult_ChannelFeaturesDecodeErrorZ_get_ok(owner: number): number {
2200         if(!isWasmInitialized) {
2201                 throw new Error("initializeWasm() must be awaited first!");
2202         }
2203         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_get_ok(owner);
2204         return nativeResponseValue;
2205 }
2206         // struct LDKDecodeError CResult_ChannelFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
2207 /* @internal */
2208 export function CResult_ChannelFeaturesDecodeErrorZ_get_err(owner: number): number {
2209         if(!isWasmInitialized) {
2210                 throw new Error("initializeWasm() must be awaited first!");
2211         }
2212         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_get_err(owner);
2213         return nativeResponseValue;
2214 }
2215         // struct LDKNodeFeatures CResult_NodeFeaturesDecodeErrorZ_get_ok(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2216 /* @internal */
2217 export function CResult_NodeFeaturesDecodeErrorZ_get_ok(owner: number): number {
2218         if(!isWasmInitialized) {
2219                 throw new Error("initializeWasm() must be awaited first!");
2220         }
2221         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_get_ok(owner);
2222         return nativeResponseValue;
2223 }
2224         // struct LDKDecodeError CResult_NodeFeaturesDecodeErrorZ_get_err(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2225 /* @internal */
2226 export function CResult_NodeFeaturesDecodeErrorZ_get_err(owner: number): number {
2227         if(!isWasmInitialized) {
2228                 throw new Error("initializeWasm() must be awaited first!");
2229         }
2230         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_get_err(owner);
2231         return nativeResponseValue;
2232 }
2233         // struct LDKInvoiceFeatures CResult_InvoiceFeaturesDecodeErrorZ_get_ok(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
2234 /* @internal */
2235 export function CResult_InvoiceFeaturesDecodeErrorZ_get_ok(owner: number): number {
2236         if(!isWasmInitialized) {
2237                 throw new Error("initializeWasm() must be awaited first!");
2238         }
2239         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_get_ok(owner);
2240         return nativeResponseValue;
2241 }
2242         // struct LDKDecodeError CResult_InvoiceFeaturesDecodeErrorZ_get_err(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
2243 /* @internal */
2244 export function CResult_InvoiceFeaturesDecodeErrorZ_get_err(owner: number): number {
2245         if(!isWasmInitialized) {
2246                 throw new Error("initializeWasm() must be awaited first!");
2247         }
2248         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_get_err(owner);
2249         return nativeResponseValue;
2250 }
2251         // struct LDKChannelTypeFeatures CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2252 /* @internal */
2253 export function CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(owner: number): number {
2254         if(!isWasmInitialized) {
2255                 throw new Error("initializeWasm() must be awaited first!");
2256         }
2257         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(owner);
2258         return nativeResponseValue;
2259 }
2260         // struct LDKDecodeError CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2261 /* @internal */
2262 export function CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(owner: number): number {
2263         if(!isWasmInitialized) {
2264                 throw new Error("initializeWasm() must be awaited first!");
2265         }
2266         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(owner);
2267         return nativeResponseValue;
2268 }
2269         // struct LDKDelayedPaymentOutputDescriptor CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2270 /* @internal */
2271 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(owner: number): number {
2272         if(!isWasmInitialized) {
2273                 throw new Error("initializeWasm() must be awaited first!");
2274         }
2275         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(owner);
2276         return nativeResponseValue;
2277 }
2278         // struct LDKDecodeError CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2279 /* @internal */
2280 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(owner: number): number {
2281         if(!isWasmInitialized) {
2282                 throw new Error("initializeWasm() must be awaited first!");
2283         }
2284         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(owner);
2285         return nativeResponseValue;
2286 }
2287         // struct LDKStaticPaymentOutputDescriptor CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2288 /* @internal */
2289 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(owner: number): number {
2290         if(!isWasmInitialized) {
2291                 throw new Error("initializeWasm() must be awaited first!");
2292         }
2293         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(owner);
2294         return nativeResponseValue;
2295 }
2296         // struct LDKDecodeError CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2297 /* @internal */
2298 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(owner: number): number {
2299         if(!isWasmInitialized) {
2300                 throw new Error("initializeWasm() must be awaited first!");
2301         }
2302         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(owner);
2303         return nativeResponseValue;
2304 }
2305         // struct LDKSpendableOutputDescriptor CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2306 /* @internal */
2307 export function CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(owner: number): number {
2308         if(!isWasmInitialized) {
2309                 throw new Error("initializeWasm() must be awaited first!");
2310         }
2311         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(owner);
2312         return nativeResponseValue;
2313 }
2314         // struct LDKDecodeError CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2315 /* @internal */
2316 export function CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(owner: number): number {
2317         if(!isWasmInitialized) {
2318                 throw new Error("initializeWasm() must be awaited first!");
2319         }
2320         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(owner);
2321         return nativeResponseValue;
2322 }
2323         // struct LDKSignature C2Tuple_SignatureCVec_SignatureZZ_get_a(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
2324 /* @internal */
2325 export function C2Tuple_SignatureCVec_SignatureZZ_get_a(owner: number): number {
2326         if(!isWasmInitialized) {
2327                 throw new Error("initializeWasm() must be awaited first!");
2328         }
2329         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_get_a(owner);
2330         return nativeResponseValue;
2331 }
2332         // struct LDKCVec_SignatureZ C2Tuple_SignatureCVec_SignatureZZ_get_b(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
2333 /* @internal */
2334 export function C2Tuple_SignatureCVec_SignatureZZ_get_b(owner: number): number {
2335         if(!isWasmInitialized) {
2336                 throw new Error("initializeWasm() must be awaited first!");
2337         }
2338         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_get_b(owner);
2339         return nativeResponseValue;
2340 }
2341         // struct LDKC2Tuple_SignatureCVec_SignatureZZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
2342 /* @internal */
2343 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(owner: number): number {
2344         if(!isWasmInitialized) {
2345                 throw new Error("initializeWasm() must be awaited first!");
2346         }
2347         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(owner);
2348         return nativeResponseValue;
2349 }
2350         // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
2351 /* @internal */
2352 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(owner: number): void {
2353         if(!isWasmInitialized) {
2354                 throw new Error("initializeWasm() must be awaited first!");
2355         }
2356         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(owner);
2357         // debug statements here
2358 }
2359         // struct LDKSignature CResult_SignatureNoneZ_get_ok(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
2360 /* @internal */
2361 export function CResult_SignatureNoneZ_get_ok(owner: number): number {
2362         if(!isWasmInitialized) {
2363                 throw new Error("initializeWasm() must be awaited first!");
2364         }
2365         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_get_ok(owner);
2366         return nativeResponseValue;
2367 }
2368         // void CResult_SignatureNoneZ_get_err(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
2369 /* @internal */
2370 export function CResult_SignatureNoneZ_get_err(owner: number): void {
2371         if(!isWasmInitialized) {
2372                 throw new Error("initializeWasm() must be awaited first!");
2373         }
2374         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_get_err(owner);
2375         // debug statements here
2376 }
2377         // struct LDKSignature C2Tuple_SignatureSignatureZ_get_a(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR owner);
2378 /* @internal */
2379 export function C2Tuple_SignatureSignatureZ_get_a(owner: number): number {
2380         if(!isWasmInitialized) {
2381                 throw new Error("initializeWasm() must be awaited first!");
2382         }
2383         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_get_a(owner);
2384         return nativeResponseValue;
2385 }
2386         // struct LDKSignature C2Tuple_SignatureSignatureZ_get_b(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR owner);
2387 /* @internal */
2388 export function C2Tuple_SignatureSignatureZ_get_b(owner: number): number {
2389         if(!isWasmInitialized) {
2390                 throw new Error("initializeWasm() must be awaited first!");
2391         }
2392         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_get_b(owner);
2393         return nativeResponseValue;
2394 }
2395         // struct LDKC2Tuple_SignatureSignatureZ CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR owner);
2396 /* @internal */
2397 export function CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(owner: number): number {
2398         if(!isWasmInitialized) {
2399                 throw new Error("initializeWasm() must be awaited first!");
2400         }
2401         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(owner);
2402         return nativeResponseValue;
2403 }
2404         // void CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR owner);
2405 /* @internal */
2406 export function CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(owner: number): void {
2407         if(!isWasmInitialized) {
2408                 throw new Error("initializeWasm() must be awaited first!");
2409         }
2410         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(owner);
2411         // debug statements here
2412 }
2413         // struct LDKSecretKey CResult_SecretKeyNoneZ_get_ok(LDKCResult_SecretKeyNoneZ *NONNULL_PTR owner);
2414 /* @internal */
2415 export function CResult_SecretKeyNoneZ_get_ok(owner: number): number {
2416         if(!isWasmInitialized) {
2417                 throw new Error("initializeWasm() must be awaited first!");
2418         }
2419         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_get_ok(owner);
2420         return nativeResponseValue;
2421 }
2422         // void CResult_SecretKeyNoneZ_get_err(LDKCResult_SecretKeyNoneZ *NONNULL_PTR owner);
2423 /* @internal */
2424 export function CResult_SecretKeyNoneZ_get_err(owner: number): void {
2425         if(!isWasmInitialized) {
2426                 throw new Error("initializeWasm() must be awaited first!");
2427         }
2428         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_get_err(owner);
2429         // debug statements here
2430 }
2431 /* @internal */
2432 export interface LDKBaseSign {
2433         get_per_commitment_point (idx: bigint): number;
2434         release_commitment_secret (idx: bigint): number;
2435         validate_holder_commitment (holder_tx: number, preimages: number): number;
2436         channel_keys_id (): number;
2437         sign_counterparty_commitment (commitment_tx: number, preimages: number): number;
2438         validate_counterparty_revocation (idx: bigint, secret: number): number;
2439         sign_holder_commitment_and_htlcs (commitment_tx: number): number;
2440         sign_justice_revoked_output (justice_tx: number, input: number, amount: bigint, per_commitment_key: number): number;
2441         sign_justice_revoked_htlc (justice_tx: number, input: number, amount: bigint, per_commitment_key: number, htlc: number): number;
2442         sign_counterparty_htlc_transaction (htlc_tx: number, input: number, amount: bigint, per_commitment_point: number, htlc: number): number;
2443         sign_closing_transaction (closing_tx: number): number;
2444         sign_channel_announcement (msg: number): number;
2445         ready_channel (channel_parameters: number): void;
2446 }
2447
2448 /* @internal */
2449 export function LDKBaseSign_new(impl: LDKBaseSign, pubkeys: number): number {
2450         if(!isWasmInitialized) {
2451                 throw new Error("initializeWasm() must be awaited first!");
2452         }
2453         var new_obj_idx = js_objs.length;
2454         for (var i = 0; i < js_objs.length; i++) {
2455                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
2456         }
2457         js_objs[i] = new WeakRef(impl);
2458         return wasm.TS_LDKBaseSign_new(i);
2459 }
2460         // LDKPublicKey BaseSign_get_per_commitment_point LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx
2461 /* @internal */
2462 export function BaseSign_get_per_commitment_point(this_arg: number, idx: bigint): number {
2463         if(!isWasmInitialized) {
2464                 throw new Error("initializeWasm() must be awaited first!");
2465         }
2466         const nativeResponseValue = wasm.TS_BaseSign_get_per_commitment_point(this_arg, idx);
2467         return nativeResponseValue;
2468 }
2469         // LDKThirtyTwoBytes BaseSign_release_commitment_secret LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx
2470 /* @internal */
2471 export function BaseSign_release_commitment_secret(this_arg: number, idx: bigint): number {
2472         if(!isWasmInitialized) {
2473                 throw new Error("initializeWasm() must be awaited first!");
2474         }
2475         const nativeResponseValue = wasm.TS_BaseSign_release_commitment_secret(this_arg, idx);
2476         return nativeResponseValue;
2477 }
2478         // LDKCResult_NoneNoneZ BaseSign_validate_holder_commitment LDKBaseSign *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR holder_tx, struct LDKCVec_PaymentPreimageZ preimages
2479 /* @internal */
2480 export function BaseSign_validate_holder_commitment(this_arg: number, holder_tx: number, preimages: number): number {
2481         if(!isWasmInitialized) {
2482                 throw new Error("initializeWasm() must be awaited first!");
2483         }
2484         const nativeResponseValue = wasm.TS_BaseSign_validate_holder_commitment(this_arg, holder_tx, preimages);
2485         return nativeResponseValue;
2486 }
2487         // LDKThirtyTwoBytes BaseSign_channel_keys_id LDKBaseSign *NONNULL_PTR this_arg
2488 /* @internal */
2489 export function BaseSign_channel_keys_id(this_arg: number): number {
2490         if(!isWasmInitialized) {
2491                 throw new Error("initializeWasm() must be awaited first!");
2492         }
2493         const nativeResponseValue = wasm.TS_BaseSign_channel_keys_id(this_arg);
2494         return nativeResponseValue;
2495 }
2496         // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ BaseSign_sign_counterparty_commitment LDKBaseSign *NONNULL_PTR this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx, struct LDKCVec_PaymentPreimageZ preimages
2497 /* @internal */
2498 export function BaseSign_sign_counterparty_commitment(this_arg: number, commitment_tx: number, preimages: number): number {
2499         if(!isWasmInitialized) {
2500                 throw new Error("initializeWasm() must be awaited first!");
2501         }
2502         const nativeResponseValue = wasm.TS_BaseSign_sign_counterparty_commitment(this_arg, commitment_tx, preimages);
2503         return nativeResponseValue;
2504 }
2505         // LDKCResult_NoneNoneZ BaseSign_validate_counterparty_revocation LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx, const uint8_t (*secret)[32]
2506 /* @internal */
2507 export function BaseSign_validate_counterparty_revocation(this_arg: number, idx: bigint, secret: number): number {
2508         if(!isWasmInitialized) {
2509                 throw new Error("initializeWasm() must be awaited first!");
2510         }
2511         const nativeResponseValue = wasm.TS_BaseSign_validate_counterparty_revocation(this_arg, idx, secret);
2512         return nativeResponseValue;
2513 }
2514         // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ BaseSign_sign_holder_commitment_and_htlcs LDKBaseSign *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx
2515 /* @internal */
2516 export function BaseSign_sign_holder_commitment_and_htlcs(this_arg: number, commitment_tx: number): number {
2517         if(!isWasmInitialized) {
2518                 throw new Error("initializeWasm() must be awaited first!");
2519         }
2520         const nativeResponseValue = wasm.TS_BaseSign_sign_holder_commitment_and_htlcs(this_arg, commitment_tx);
2521         return nativeResponseValue;
2522 }
2523         // LDKCResult_SignatureNoneZ BaseSign_sign_justice_revoked_output LDKBaseSign *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32]
2524 /* @internal */
2525 export function BaseSign_sign_justice_revoked_output(this_arg: number, justice_tx: number, input: number, amount: bigint, per_commitment_key: number): number {
2526         if(!isWasmInitialized) {
2527                 throw new Error("initializeWasm() must be awaited first!");
2528         }
2529         const nativeResponseValue = wasm.TS_BaseSign_sign_justice_revoked_output(this_arg, justice_tx, input, amount, per_commitment_key);
2530         return nativeResponseValue;
2531 }
2532         // LDKCResult_SignatureNoneZ BaseSign_sign_justice_revoked_htlc LDKBaseSign *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32], const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc
2533 /* @internal */
2534 export function BaseSign_sign_justice_revoked_htlc(this_arg: number, justice_tx: number, input: number, amount: bigint, per_commitment_key: number, htlc: number): number {
2535         if(!isWasmInitialized) {
2536                 throw new Error("initializeWasm() must be awaited first!");
2537         }
2538         const nativeResponseValue = wasm.TS_BaseSign_sign_justice_revoked_htlc(this_arg, justice_tx, input, amount, per_commitment_key, htlc);
2539         return nativeResponseValue;
2540 }
2541         // LDKCResult_SignatureNoneZ BaseSign_sign_counterparty_htlc_transaction LDKBaseSign *NONNULL_PTR this_arg, struct LDKTransaction htlc_tx, uintptr_t input, uint64_t amount, struct LDKPublicKey per_commitment_point, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc
2542 /* @internal */
2543 export function BaseSign_sign_counterparty_htlc_transaction(this_arg: number, htlc_tx: number, input: number, amount: bigint, per_commitment_point: number, htlc: number): number {
2544         if(!isWasmInitialized) {
2545                 throw new Error("initializeWasm() must be awaited first!");
2546         }
2547         const nativeResponseValue = wasm.TS_BaseSign_sign_counterparty_htlc_transaction(this_arg, htlc_tx, input, amount, per_commitment_point, htlc);
2548         return nativeResponseValue;
2549 }
2550         // LDKCResult_SignatureNoneZ BaseSign_sign_closing_transaction LDKBaseSign *NONNULL_PTR this_arg, const struct LDKClosingTransaction *NONNULL_PTR closing_tx
2551 /* @internal */
2552 export function BaseSign_sign_closing_transaction(this_arg: number, closing_tx: number): number {
2553         if(!isWasmInitialized) {
2554                 throw new Error("initializeWasm() must be awaited first!");
2555         }
2556         const nativeResponseValue = wasm.TS_BaseSign_sign_closing_transaction(this_arg, closing_tx);
2557         return nativeResponseValue;
2558 }
2559         // LDKCResult_C2Tuple_SignatureSignatureZNoneZ BaseSign_sign_channel_announcement LDKBaseSign *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg
2560 /* @internal */
2561 export function BaseSign_sign_channel_announcement(this_arg: number, msg: number): number {
2562         if(!isWasmInitialized) {
2563                 throw new Error("initializeWasm() must be awaited first!");
2564         }
2565         const nativeResponseValue = wasm.TS_BaseSign_sign_channel_announcement(this_arg, msg);
2566         return nativeResponseValue;
2567 }
2568         // void BaseSign_ready_channel LDKBaseSign *NONNULL_PTR this_arg, const struct LDKChannelTransactionParameters *NONNULL_PTR channel_parameters
2569 /* @internal */
2570 export function BaseSign_ready_channel(this_arg: number, channel_parameters: number): void {
2571         if(!isWasmInitialized) {
2572                 throw new Error("initializeWasm() must be awaited first!");
2573         }
2574         const nativeResponseValue = wasm.TS_BaseSign_ready_channel(this_arg, channel_parameters);
2575         // debug statements here
2576 }
2577         // LDKChannelPublicKeys BaseSign_get_pubkeys LDKBaseSign *NONNULL_PTR this_arg
2578 /* @internal */
2579 export function BaseSign_get_pubkeys(this_arg: number): number {
2580         if(!isWasmInitialized) {
2581                 throw new Error("initializeWasm() must be awaited first!");
2582         }
2583         const nativeResponseValue = wasm.TS_BaseSign_get_pubkeys(this_arg);
2584         return nativeResponseValue;
2585 }
2586 /* @internal */
2587 export interface LDKSign {
2588         write (): number;
2589 }
2590
2591 /* @internal */
2592 export function LDKSign_new(impl: LDKSign, BaseSign: LDKBaseSign, pubkeys: number): number {
2593         if(!isWasmInitialized) {
2594                 throw new Error("initializeWasm() must be awaited first!");
2595         }
2596         var new_obj_idx = js_objs.length;
2597         for (var i = 0; i < js_objs.length; i++) {
2598                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
2599         }
2600         js_objs[i] = new WeakRef(impl);
2601         return wasm.TS_LDKSign_new(i);
2602 }
2603         // LDKCVec_u8Z Sign_write LDKSign *NONNULL_PTR this_arg
2604 /* @internal */
2605 export function Sign_write(this_arg: number): number {
2606         if(!isWasmInitialized) {
2607                 throw new Error("initializeWasm() must be awaited first!");
2608         }
2609         const nativeResponseValue = wasm.TS_Sign_write(this_arg);
2610         return nativeResponseValue;
2611 }
2612         // struct LDKSign CResult_SignDecodeErrorZ_get_ok(LDKCResult_SignDecodeErrorZ *NONNULL_PTR owner);
2613 /* @internal */
2614 export function CResult_SignDecodeErrorZ_get_ok(owner: number): number {
2615         if(!isWasmInitialized) {
2616                 throw new Error("initializeWasm() must be awaited first!");
2617         }
2618         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_get_ok(owner);
2619         return nativeResponseValue;
2620 }
2621         // struct LDKDecodeError CResult_SignDecodeErrorZ_get_err(LDKCResult_SignDecodeErrorZ *NONNULL_PTR owner);
2622 /* @internal */
2623 export function CResult_SignDecodeErrorZ_get_err(owner: number): number {
2624         if(!isWasmInitialized) {
2625                 throw new Error("initializeWasm() must be awaited first!");
2626         }
2627         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_get_err(owner);
2628         return nativeResponseValue;
2629 }
2630         // struct LDKRecoverableSignature CResult_RecoverableSignatureNoneZ_get_ok(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
2631 /* @internal */
2632 export function CResult_RecoverableSignatureNoneZ_get_ok(owner: number): number {
2633         if(!isWasmInitialized) {
2634                 throw new Error("initializeWasm() must be awaited first!");
2635         }
2636         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_get_ok(owner);
2637         return nativeResponseValue;
2638 }
2639         // void CResult_RecoverableSignatureNoneZ_get_err(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
2640 /* @internal */
2641 export function CResult_RecoverableSignatureNoneZ_get_err(owner: number): void {
2642         if(!isWasmInitialized) {
2643                 throw new Error("initializeWasm() must be awaited first!");
2644         }
2645         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_get_err(owner);
2646         // debug statements here
2647 }
2648         // struct LDKCVec_CVec_u8ZZ CResult_CVec_CVec_u8ZZNoneZ_get_ok(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
2649 /* @internal */
2650 export function CResult_CVec_CVec_u8ZZNoneZ_get_ok(owner: number): number {
2651         if(!isWasmInitialized) {
2652                 throw new Error("initializeWasm() must be awaited first!");
2653         }
2654         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_get_ok(owner);
2655         return nativeResponseValue;
2656 }
2657         // void CResult_CVec_CVec_u8ZZNoneZ_get_err(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
2658 /* @internal */
2659 export function CResult_CVec_CVec_u8ZZNoneZ_get_err(owner: number): void {
2660         if(!isWasmInitialized) {
2661                 throw new Error("initializeWasm() must be awaited first!");
2662         }
2663         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_get_err(owner);
2664         // debug statements here
2665 }
2666         // struct LDKInMemorySigner CResult_InMemorySignerDecodeErrorZ_get_ok(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
2667 /* @internal */
2668 export function CResult_InMemorySignerDecodeErrorZ_get_ok(owner: number): number {
2669         if(!isWasmInitialized) {
2670                 throw new Error("initializeWasm() must be awaited first!");
2671         }
2672         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_get_ok(owner);
2673         return nativeResponseValue;
2674 }
2675         // struct LDKDecodeError CResult_InMemorySignerDecodeErrorZ_get_err(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
2676 /* @internal */
2677 export function CResult_InMemorySignerDecodeErrorZ_get_err(owner: number): number {
2678         if(!isWasmInitialized) {
2679                 throw new Error("initializeWasm() must be awaited first!");
2680         }
2681         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_get_err(owner);
2682         return nativeResponseValue;
2683 }
2684         // struct LDKTransaction CResult_TransactionNoneZ_get_ok(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
2685 /* @internal */
2686 export function CResult_TransactionNoneZ_get_ok(owner: number): number {
2687         if(!isWasmInitialized) {
2688                 throw new Error("initializeWasm() must be awaited first!");
2689         }
2690         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_get_ok(owner);
2691         return nativeResponseValue;
2692 }
2693         // void CResult_TransactionNoneZ_get_err(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
2694 /* @internal */
2695 export function CResult_TransactionNoneZ_get_err(owner: number): void {
2696         if(!isWasmInitialized) {
2697                 throw new Error("initializeWasm() must be awaited first!");
2698         }
2699         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_get_err(owner);
2700         // debug statements here
2701 }
2702 /* @internal */
2703 export class LDKCOption_u16Z {
2704         protected constructor() {}
2705 }
2706 /* @internal */
2707 export function LDKCOption_u16Z_ty_from_ptr(ptr: number): number {
2708         if(!isWasmInitialized) {
2709                 throw new Error("initializeWasm() must be awaited first!");
2710         }
2711         const nativeResponseValue = wasm.TS_LDKCOption_u16Z_ty_from_ptr(ptr);
2712         return nativeResponseValue;
2713 }
2714 /* @internal */
2715 export function LDKCOption_u16Z_Some_get_some(ptr: number): number {
2716         if(!isWasmInitialized) {
2717                 throw new Error("initializeWasm() must be awaited first!");
2718         }
2719         const nativeResponseValue = wasm.TS_LDKCOption_u16Z_Some_get_some(ptr);
2720         return nativeResponseValue;
2721 }
2722 /* @internal */
2723 export class LDKAPIError {
2724         protected constructor() {}
2725 }
2726 /* @internal */
2727 export function LDKAPIError_ty_from_ptr(ptr: number): number {
2728         if(!isWasmInitialized) {
2729                 throw new Error("initializeWasm() must be awaited first!");
2730         }
2731         const nativeResponseValue = wasm.TS_LDKAPIError_ty_from_ptr(ptr);
2732         return nativeResponseValue;
2733 }
2734 /* @internal */
2735 export function LDKAPIError_APIMisuseError_get_err(ptr: number): number {
2736         if(!isWasmInitialized) {
2737                 throw new Error("initializeWasm() must be awaited first!");
2738         }
2739         const nativeResponseValue = wasm.TS_LDKAPIError_APIMisuseError_get_err(ptr);
2740         return nativeResponseValue;
2741 }
2742 /* @internal */
2743 export function LDKAPIError_FeeRateTooHigh_get_err(ptr: number): number {
2744         if(!isWasmInitialized) {
2745                 throw new Error("initializeWasm() must be awaited first!");
2746         }
2747         const nativeResponseValue = wasm.TS_LDKAPIError_FeeRateTooHigh_get_err(ptr);
2748         return nativeResponseValue;
2749 }
2750 /* @internal */
2751 export function LDKAPIError_FeeRateTooHigh_get_feerate(ptr: number): number {
2752         if(!isWasmInitialized) {
2753                 throw new Error("initializeWasm() must be awaited first!");
2754         }
2755         const nativeResponseValue = wasm.TS_LDKAPIError_FeeRateTooHigh_get_feerate(ptr);
2756         return nativeResponseValue;
2757 }
2758 /* @internal */
2759 export function LDKAPIError_RouteError_get_err(ptr: number): number {
2760         if(!isWasmInitialized) {
2761                 throw new Error("initializeWasm() must be awaited first!");
2762         }
2763         const nativeResponseValue = wasm.TS_LDKAPIError_RouteError_get_err(ptr);
2764         return nativeResponseValue;
2765 }
2766 /* @internal */
2767 export function LDKAPIError_ChannelUnavailable_get_err(ptr: number): number {
2768         if(!isWasmInitialized) {
2769                 throw new Error("initializeWasm() must be awaited first!");
2770         }
2771         const nativeResponseValue = wasm.TS_LDKAPIError_ChannelUnavailable_get_err(ptr);
2772         return nativeResponseValue;
2773 }
2774 /* @internal */
2775 export function LDKAPIError_IncompatibleShutdownScript_get_script(ptr: number): number {
2776         if(!isWasmInitialized) {
2777                 throw new Error("initializeWasm() must be awaited first!");
2778         }
2779         const nativeResponseValue = wasm.TS_LDKAPIError_IncompatibleShutdownScript_get_script(ptr);
2780         return nativeResponseValue;
2781 }
2782         // void CResult_NoneAPIErrorZ_get_ok(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
2783 /* @internal */
2784 export function CResult_NoneAPIErrorZ_get_ok(owner: number): void {
2785         if(!isWasmInitialized) {
2786                 throw new Error("initializeWasm() must be awaited first!");
2787         }
2788         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_get_ok(owner);
2789         // debug statements here
2790 }
2791         // struct LDKAPIError CResult_NoneAPIErrorZ_get_err(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
2792 /* @internal */
2793 export function CResult_NoneAPIErrorZ_get_err(owner: number): number {
2794         if(!isWasmInitialized) {
2795                 throw new Error("initializeWasm() must be awaited first!");
2796         }
2797         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_get_err(owner);
2798         return nativeResponseValue;
2799 }
2800         // struct LDKThirtyTwoBytes CResult__u832APIErrorZ_get_ok(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
2801 /* @internal */
2802 export function CResult__u832APIErrorZ_get_ok(owner: number): number {
2803         if(!isWasmInitialized) {
2804                 throw new Error("initializeWasm() must be awaited first!");
2805         }
2806         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_get_ok(owner);
2807         return nativeResponseValue;
2808 }
2809         // struct LDKAPIError CResult__u832APIErrorZ_get_err(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
2810 /* @internal */
2811 export function CResult__u832APIErrorZ_get_err(owner: number): number {
2812         if(!isWasmInitialized) {
2813                 throw new Error("initializeWasm() must be awaited first!");
2814         }
2815         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_get_err(owner);
2816         return nativeResponseValue;
2817 }
2818 /* @internal */
2819 export class LDKPaymentSendFailure {
2820         protected constructor() {}
2821 }
2822 /* @internal */
2823 export function LDKPaymentSendFailure_ty_from_ptr(ptr: number): number {
2824         if(!isWasmInitialized) {
2825                 throw new Error("initializeWasm() must be awaited first!");
2826         }
2827         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_ty_from_ptr(ptr);
2828         return nativeResponseValue;
2829 }
2830 /* @internal */
2831 export function LDKPaymentSendFailure_ParameterError_get_parameter_error(ptr: number): number {
2832         if(!isWasmInitialized) {
2833                 throw new Error("initializeWasm() must be awaited first!");
2834         }
2835         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_ParameterError_get_parameter_error(ptr);
2836         return nativeResponseValue;
2837 }
2838 /* @internal */
2839 export function LDKPaymentSendFailure_PathParameterError_get_path_parameter_error(ptr: number): number {
2840         if(!isWasmInitialized) {
2841                 throw new Error("initializeWasm() must be awaited first!");
2842         }
2843         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PathParameterError_get_path_parameter_error(ptr);
2844         return nativeResponseValue;
2845 }
2846 /* @internal */
2847 export function LDKPaymentSendFailure_AllFailedRetrySafe_get_all_failed_retry_safe(ptr: number): number {
2848         if(!isWasmInitialized) {
2849                 throw new Error("initializeWasm() must be awaited first!");
2850         }
2851         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_AllFailedRetrySafe_get_all_failed_retry_safe(ptr);
2852         return nativeResponseValue;
2853 }
2854 /* @internal */
2855 export function LDKPaymentSendFailure_PartialFailure_get_results(ptr: number): number {
2856         if(!isWasmInitialized) {
2857                 throw new Error("initializeWasm() must be awaited first!");
2858         }
2859         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_results(ptr);
2860         return nativeResponseValue;
2861 }
2862 /* @internal */
2863 export function LDKPaymentSendFailure_PartialFailure_get_failed_paths_retry(ptr: number): number {
2864         if(!isWasmInitialized) {
2865                 throw new Error("initializeWasm() must be awaited first!");
2866         }
2867         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_failed_paths_retry(ptr);
2868         return nativeResponseValue;
2869 }
2870 /* @internal */
2871 export function LDKPaymentSendFailure_PartialFailure_get_payment_id(ptr: number): number {
2872         if(!isWasmInitialized) {
2873                 throw new Error("initializeWasm() must be awaited first!");
2874         }
2875         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_payment_id(ptr);
2876         return nativeResponseValue;
2877 }
2878         // struct LDKThirtyTwoBytes CResult_PaymentIdPaymentSendFailureZ_get_ok(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR owner);
2879 /* @internal */
2880 export function CResult_PaymentIdPaymentSendFailureZ_get_ok(owner: number): number {
2881         if(!isWasmInitialized) {
2882                 throw new Error("initializeWasm() must be awaited first!");
2883         }
2884         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_get_ok(owner);
2885         return nativeResponseValue;
2886 }
2887         // struct LDKPaymentSendFailure CResult_PaymentIdPaymentSendFailureZ_get_err(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR owner);
2888 /* @internal */
2889 export function CResult_PaymentIdPaymentSendFailureZ_get_err(owner: number): number {
2890         if(!isWasmInitialized) {
2891                 throw new Error("initializeWasm() must be awaited first!");
2892         }
2893         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_get_err(owner);
2894         return nativeResponseValue;
2895 }
2896         // void CResult_NonePaymentSendFailureZ_get_ok(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
2897 /* @internal */
2898 export function CResult_NonePaymentSendFailureZ_get_ok(owner: number): void {
2899         if(!isWasmInitialized) {
2900                 throw new Error("initializeWasm() must be awaited first!");
2901         }
2902         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_get_ok(owner);
2903         // debug statements here
2904 }
2905         // struct LDKPaymentSendFailure CResult_NonePaymentSendFailureZ_get_err(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
2906 /* @internal */
2907 export function CResult_NonePaymentSendFailureZ_get_err(owner: number): number {
2908         if(!isWasmInitialized) {
2909                 throw new Error("initializeWasm() must be awaited first!");
2910         }
2911         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_get_err(owner);
2912         return nativeResponseValue;
2913 }
2914         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_a(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
2915 /* @internal */
2916 export function C2Tuple_PaymentHashPaymentIdZ_get_a(owner: number): number {
2917         if(!isWasmInitialized) {
2918                 throw new Error("initializeWasm() must be awaited first!");
2919         }
2920         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_get_a(owner);
2921         return nativeResponseValue;
2922 }
2923         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_b(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
2924 /* @internal */
2925 export function C2Tuple_PaymentHashPaymentIdZ_get_b(owner: number): number {
2926         if(!isWasmInitialized) {
2927                 throw new Error("initializeWasm() must be awaited first!");
2928         }
2929         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_get_b(owner);
2930         return nativeResponseValue;
2931 }
2932         // struct LDKC2Tuple_PaymentHashPaymentIdZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
2933 /* @internal */
2934 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(owner: number): number {
2935         if(!isWasmInitialized) {
2936                 throw new Error("initializeWasm() must be awaited first!");
2937         }
2938         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(owner);
2939         return nativeResponseValue;
2940 }
2941         // struct LDKPaymentSendFailure CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
2942 /* @internal */
2943 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(owner: number): number {
2944         if(!isWasmInitialized) {
2945                 throw new Error("initializeWasm() must be awaited first!");
2946         }
2947         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(owner);
2948         return nativeResponseValue;
2949 }
2950 /* @internal */
2951 export class LDKNetAddress {
2952         protected constructor() {}
2953 }
2954 /* @internal */
2955 export function LDKNetAddress_ty_from_ptr(ptr: number): number {
2956         if(!isWasmInitialized) {
2957                 throw new Error("initializeWasm() must be awaited first!");
2958         }
2959         const nativeResponseValue = wasm.TS_LDKNetAddress_ty_from_ptr(ptr);
2960         return nativeResponseValue;
2961 }
2962 /* @internal */
2963 export function LDKNetAddress_IPv4_get_addr(ptr: number): number {
2964         if(!isWasmInitialized) {
2965                 throw new Error("initializeWasm() must be awaited first!");
2966         }
2967         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv4_get_addr(ptr);
2968         return nativeResponseValue;
2969 }
2970 /* @internal */
2971 export function LDKNetAddress_IPv4_get_port(ptr: number): number {
2972         if(!isWasmInitialized) {
2973                 throw new Error("initializeWasm() must be awaited first!");
2974         }
2975         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv4_get_port(ptr);
2976         return nativeResponseValue;
2977 }
2978 /* @internal */
2979 export function LDKNetAddress_IPv6_get_addr(ptr: number): number {
2980         if(!isWasmInitialized) {
2981                 throw new Error("initializeWasm() must be awaited first!");
2982         }
2983         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv6_get_addr(ptr);
2984         return nativeResponseValue;
2985 }
2986 /* @internal */
2987 export function LDKNetAddress_IPv6_get_port(ptr: number): number {
2988         if(!isWasmInitialized) {
2989                 throw new Error("initializeWasm() must be awaited first!");
2990         }
2991         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv6_get_port(ptr);
2992         return nativeResponseValue;
2993 }
2994 /* @internal */
2995 export function LDKNetAddress_OnionV2_get_onion_v2(ptr: number): number {
2996         if(!isWasmInitialized) {
2997                 throw new Error("initializeWasm() must be awaited first!");
2998         }
2999         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV2_get_onion_v2(ptr);
3000         return nativeResponseValue;
3001 }
3002 /* @internal */
3003 export function LDKNetAddress_OnionV3_get_ed25519_pubkey(ptr: number): number {
3004         if(!isWasmInitialized) {
3005                 throw new Error("initializeWasm() must be awaited first!");
3006         }
3007         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_ed25519_pubkey(ptr);
3008         return nativeResponseValue;
3009 }
3010 /* @internal */
3011 export function LDKNetAddress_OnionV3_get_checksum(ptr: number): number {
3012         if(!isWasmInitialized) {
3013                 throw new Error("initializeWasm() must be awaited first!");
3014         }
3015         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_checksum(ptr);
3016         return nativeResponseValue;
3017 }
3018 /* @internal */
3019 export function LDKNetAddress_OnionV3_get_version(ptr: number): number {
3020         if(!isWasmInitialized) {
3021                 throw new Error("initializeWasm() must be awaited first!");
3022         }
3023         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_version(ptr);
3024         return nativeResponseValue;
3025 }
3026 /* @internal */
3027 export function LDKNetAddress_OnionV3_get_port(ptr: number): number {
3028         if(!isWasmInitialized) {
3029                 throw new Error("initializeWasm() must be awaited first!");
3030         }
3031         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_port(ptr);
3032         return nativeResponseValue;
3033 }
3034         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_a(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
3035 /* @internal */
3036 export function C2Tuple_PaymentHashPaymentSecretZ_get_a(owner: number): number {
3037         if(!isWasmInitialized) {
3038                 throw new Error("initializeWasm() must be awaited first!");
3039         }
3040         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_get_a(owner);
3041         return nativeResponseValue;
3042 }
3043         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_b(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
3044 /* @internal */
3045 export function C2Tuple_PaymentHashPaymentSecretZ_get_b(owner: number): number {
3046         if(!isWasmInitialized) {
3047                 throw new Error("initializeWasm() must be awaited first!");
3048         }
3049         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_get_b(owner);
3050         return nativeResponseValue;
3051 }
3052         // struct LDKC2Tuple_PaymentHashPaymentSecretZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
3053 /* @internal */
3054 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(owner: number): number {
3055         if(!isWasmInitialized) {
3056                 throw new Error("initializeWasm() must be awaited first!");
3057         }
3058         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(owner);
3059         return nativeResponseValue;
3060 }
3061         // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
3062 /* @internal */
3063 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(owner: number): void {
3064         if(!isWasmInitialized) {
3065                 throw new Error("initializeWasm() must be awaited first!");
3066         }
3067         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(owner);
3068         // debug statements here
3069 }
3070         // struct LDKC2Tuple_PaymentHashPaymentSecretZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR owner);
3071 /* @internal */
3072 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(owner: number): number {
3073         if(!isWasmInitialized) {
3074                 throw new Error("initializeWasm() must be awaited first!");
3075         }
3076         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(owner);
3077         return nativeResponseValue;
3078 }
3079         // struct LDKAPIError CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR owner);
3080 /* @internal */
3081 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(owner: number): number {
3082         if(!isWasmInitialized) {
3083                 throw new Error("initializeWasm() must be awaited first!");
3084         }
3085         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(owner);
3086         return nativeResponseValue;
3087 }
3088         // struct LDKThirtyTwoBytes CResult_PaymentSecretNoneZ_get_ok(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
3089 /* @internal */
3090 export function CResult_PaymentSecretNoneZ_get_ok(owner: number): number {
3091         if(!isWasmInitialized) {
3092                 throw new Error("initializeWasm() must be awaited first!");
3093         }
3094         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_get_ok(owner);
3095         return nativeResponseValue;
3096 }
3097         // void CResult_PaymentSecretNoneZ_get_err(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
3098 /* @internal */
3099 export function CResult_PaymentSecretNoneZ_get_err(owner: number): void {
3100         if(!isWasmInitialized) {
3101                 throw new Error("initializeWasm() must be awaited first!");
3102         }
3103         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_get_err(owner);
3104         // debug statements here
3105 }
3106         // struct LDKThirtyTwoBytes CResult_PaymentSecretAPIErrorZ_get_ok(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR owner);
3107 /* @internal */
3108 export function CResult_PaymentSecretAPIErrorZ_get_ok(owner: number): number {
3109         if(!isWasmInitialized) {
3110                 throw new Error("initializeWasm() must be awaited first!");
3111         }
3112         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_get_ok(owner);
3113         return nativeResponseValue;
3114 }
3115         // struct LDKAPIError CResult_PaymentSecretAPIErrorZ_get_err(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR owner);
3116 /* @internal */
3117 export function CResult_PaymentSecretAPIErrorZ_get_err(owner: number): number {
3118         if(!isWasmInitialized) {
3119                 throw new Error("initializeWasm() must be awaited first!");
3120         }
3121         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_get_err(owner);
3122         return nativeResponseValue;
3123 }
3124         // struct LDKThirtyTwoBytes CResult_PaymentPreimageAPIErrorZ_get_ok(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
3125 /* @internal */
3126 export function CResult_PaymentPreimageAPIErrorZ_get_ok(owner: number): number {
3127         if(!isWasmInitialized) {
3128                 throw new Error("initializeWasm() must be awaited first!");
3129         }
3130         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_get_ok(owner);
3131         return nativeResponseValue;
3132 }
3133         // struct LDKAPIError CResult_PaymentPreimageAPIErrorZ_get_err(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
3134 /* @internal */
3135 export function CResult_PaymentPreimageAPIErrorZ_get_err(owner: number): number {
3136         if(!isWasmInitialized) {
3137                 throw new Error("initializeWasm() must be awaited first!");
3138         }
3139         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_get_err(owner);
3140         return nativeResponseValue;
3141 }
3142         // struct LDKCounterpartyForwardingInfo CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
3143 /* @internal */
3144 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(owner: number): number {
3145         if(!isWasmInitialized) {
3146                 throw new Error("initializeWasm() must be awaited first!");
3147         }
3148         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(owner);
3149         return nativeResponseValue;
3150 }
3151         // struct LDKDecodeError CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
3152 /* @internal */
3153 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(owner: number): number {
3154         if(!isWasmInitialized) {
3155                 throw new Error("initializeWasm() must be awaited first!");
3156         }
3157         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(owner);
3158         return nativeResponseValue;
3159 }
3160         // struct LDKChannelCounterparty CResult_ChannelCounterpartyDecodeErrorZ_get_ok(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
3161 /* @internal */
3162 export function CResult_ChannelCounterpartyDecodeErrorZ_get_ok(owner: number): number {
3163         if(!isWasmInitialized) {
3164                 throw new Error("initializeWasm() must be awaited first!");
3165         }
3166         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_get_ok(owner);
3167         return nativeResponseValue;
3168 }
3169         // struct LDKDecodeError CResult_ChannelCounterpartyDecodeErrorZ_get_err(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
3170 /* @internal */
3171 export function CResult_ChannelCounterpartyDecodeErrorZ_get_err(owner: number): number {
3172         if(!isWasmInitialized) {
3173                 throw new Error("initializeWasm() must be awaited first!");
3174         }
3175         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_get_err(owner);
3176         return nativeResponseValue;
3177 }
3178         // struct LDKChannelDetails CResult_ChannelDetailsDecodeErrorZ_get_ok(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
3179 /* @internal */
3180 export function CResult_ChannelDetailsDecodeErrorZ_get_ok(owner: number): number {
3181         if(!isWasmInitialized) {
3182                 throw new Error("initializeWasm() must be awaited first!");
3183         }
3184         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_get_ok(owner);
3185         return nativeResponseValue;
3186 }
3187         // struct LDKDecodeError CResult_ChannelDetailsDecodeErrorZ_get_err(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
3188 /* @internal */
3189 export function CResult_ChannelDetailsDecodeErrorZ_get_err(owner: number): number {
3190         if(!isWasmInitialized) {
3191                 throw new Error("initializeWasm() must be awaited first!");
3192         }
3193         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_get_err(owner);
3194         return nativeResponseValue;
3195 }
3196         // struct LDKPhantomRouteHints CResult_PhantomRouteHintsDecodeErrorZ_get_ok(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
3197 /* @internal */
3198 export function CResult_PhantomRouteHintsDecodeErrorZ_get_ok(owner: number): number {
3199         if(!isWasmInitialized) {
3200                 throw new Error("initializeWasm() must be awaited first!");
3201         }
3202         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_get_ok(owner);
3203         return nativeResponseValue;
3204 }
3205         // struct LDKDecodeError CResult_PhantomRouteHintsDecodeErrorZ_get_err(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
3206 /* @internal */
3207 export function CResult_PhantomRouteHintsDecodeErrorZ_get_err(owner: number): number {
3208         if(!isWasmInitialized) {
3209                 throw new Error("initializeWasm() must be awaited first!");
3210         }
3211         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_get_err(owner);
3212         return nativeResponseValue;
3213 }
3214 /* @internal */
3215 export interface LDKWatch {
3216         watch_channel (funding_txo: number, monitor: number): number;
3217         update_channel (funding_txo: number, update: number): number;
3218         release_pending_monitor_events (): number;
3219 }
3220
3221 /* @internal */
3222 export function LDKWatch_new(impl: LDKWatch): number {
3223         if(!isWasmInitialized) {
3224                 throw new Error("initializeWasm() must be awaited first!");
3225         }
3226         var new_obj_idx = js_objs.length;
3227         for (var i = 0; i < js_objs.length; i++) {
3228                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3229         }
3230         js_objs[i] = new WeakRef(impl);
3231         return wasm.TS_LDKWatch_new(i);
3232 }
3233         // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_watch_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor
3234 /* @internal */
3235 export function Watch_watch_channel(this_arg: number, funding_txo: number, monitor: number): number {
3236         if(!isWasmInitialized) {
3237                 throw new Error("initializeWasm() must be awaited first!");
3238         }
3239         const nativeResponseValue = wasm.TS_Watch_watch_channel(this_arg, funding_txo, monitor);
3240         return nativeResponseValue;
3241 }
3242         // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_update_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitorUpdate update
3243 /* @internal */
3244 export function Watch_update_channel(this_arg: number, funding_txo: number, update: number): number {
3245         if(!isWasmInitialized) {
3246                 throw new Error("initializeWasm() must be awaited first!");
3247         }
3248         const nativeResponseValue = wasm.TS_Watch_update_channel(this_arg, funding_txo, update);
3249         return nativeResponseValue;
3250 }
3251         // LDKCVec_MonitorEventZ Watch_release_pending_monitor_events LDKWatch *NONNULL_PTR this_arg
3252 /* @internal */
3253 export function Watch_release_pending_monitor_events(this_arg: number): number {
3254         if(!isWasmInitialized) {
3255                 throw new Error("initializeWasm() must be awaited first!");
3256         }
3257         const nativeResponseValue = wasm.TS_Watch_release_pending_monitor_events(this_arg);
3258         return nativeResponseValue;
3259 }
3260 /* @internal */
3261 export interface LDKBroadcasterInterface {
3262         broadcast_transaction (tx: number): void;
3263 }
3264
3265 /* @internal */
3266 export function LDKBroadcasterInterface_new(impl: LDKBroadcasterInterface): number {
3267         if(!isWasmInitialized) {
3268                 throw new Error("initializeWasm() must be awaited first!");
3269         }
3270         var new_obj_idx = js_objs.length;
3271         for (var i = 0; i < js_objs.length; i++) {
3272                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3273         }
3274         js_objs[i] = new WeakRef(impl);
3275         return wasm.TS_LDKBroadcasterInterface_new(i);
3276 }
3277         // void BroadcasterInterface_broadcast_transaction LDKBroadcasterInterface *NONNULL_PTR this_arg, struct LDKTransaction tx
3278 /* @internal */
3279 export function BroadcasterInterface_broadcast_transaction(this_arg: number, tx: number): void {
3280         if(!isWasmInitialized) {
3281                 throw new Error("initializeWasm() must be awaited first!");
3282         }
3283         const nativeResponseValue = wasm.TS_BroadcasterInterface_broadcast_transaction(this_arg, tx);
3284         // debug statements here
3285 }
3286 /* @internal */
3287 export interface LDKKeysInterface {
3288         get_node_secret (recipient: Recipient): number;
3289         get_destination_script (): number;
3290         get_shutdown_scriptpubkey (): number;
3291         get_channel_signer (inbound: boolean, channel_value_satoshis: bigint): number;
3292         get_secure_random_bytes (): number;
3293         read_chan_signer (reader: number): number;
3294         sign_invoice (hrp_bytes: number, invoice_data: number, receipient: Recipient): number;
3295         get_inbound_payment_key_material (): number;
3296 }
3297
3298 /* @internal */
3299 export function LDKKeysInterface_new(impl: LDKKeysInterface): number {
3300         if(!isWasmInitialized) {
3301                 throw new Error("initializeWasm() must be awaited first!");
3302         }
3303         var new_obj_idx = js_objs.length;
3304         for (var i = 0; i < js_objs.length; i++) {
3305                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3306         }
3307         js_objs[i] = new WeakRef(impl);
3308         return wasm.TS_LDKKeysInterface_new(i);
3309 }
3310         // LDKCResult_SecretKeyNoneZ KeysInterface_get_node_secret LDKKeysInterface *NONNULL_PTR this_arg, enum LDKRecipient recipient
3311 /* @internal */
3312 export function KeysInterface_get_node_secret(this_arg: number, recipient: Recipient): number {
3313         if(!isWasmInitialized) {
3314                 throw new Error("initializeWasm() must be awaited first!");
3315         }
3316         const nativeResponseValue = wasm.TS_KeysInterface_get_node_secret(this_arg, recipient);
3317         return nativeResponseValue;
3318 }
3319         // LDKCVec_u8Z KeysInterface_get_destination_script LDKKeysInterface *NONNULL_PTR this_arg
3320 /* @internal */
3321 export function KeysInterface_get_destination_script(this_arg: number): number {
3322         if(!isWasmInitialized) {
3323                 throw new Error("initializeWasm() must be awaited first!");
3324         }
3325         const nativeResponseValue = wasm.TS_KeysInterface_get_destination_script(this_arg);
3326         return nativeResponseValue;
3327 }
3328         // LDKShutdownScript KeysInterface_get_shutdown_scriptpubkey LDKKeysInterface *NONNULL_PTR this_arg
3329 /* @internal */
3330 export function KeysInterface_get_shutdown_scriptpubkey(this_arg: number): number {
3331         if(!isWasmInitialized) {
3332                 throw new Error("initializeWasm() must be awaited first!");
3333         }
3334         const nativeResponseValue = wasm.TS_KeysInterface_get_shutdown_scriptpubkey(this_arg);
3335         return nativeResponseValue;
3336 }
3337         // LDKSign KeysInterface_get_channel_signer LDKKeysInterface *NONNULL_PTR this_arg, bool inbound, uint64_t channel_value_satoshis
3338 /* @internal */
3339 export function KeysInterface_get_channel_signer(this_arg: number, inbound: boolean, channel_value_satoshis: bigint): number {
3340         if(!isWasmInitialized) {
3341                 throw new Error("initializeWasm() must be awaited first!");
3342         }
3343         const nativeResponseValue = wasm.TS_KeysInterface_get_channel_signer(this_arg, inbound, channel_value_satoshis);
3344         return nativeResponseValue;
3345 }
3346         // LDKThirtyTwoBytes KeysInterface_get_secure_random_bytes LDKKeysInterface *NONNULL_PTR this_arg
3347 /* @internal */
3348 export function KeysInterface_get_secure_random_bytes(this_arg: number): number {
3349         if(!isWasmInitialized) {
3350                 throw new Error("initializeWasm() must be awaited first!");
3351         }
3352         const nativeResponseValue = wasm.TS_KeysInterface_get_secure_random_bytes(this_arg);
3353         return nativeResponseValue;
3354 }
3355         // LDKCResult_SignDecodeErrorZ KeysInterface_read_chan_signer LDKKeysInterface *NONNULL_PTR this_arg, struct LDKu8slice reader
3356 /* @internal */
3357 export function KeysInterface_read_chan_signer(this_arg: number, reader: number): number {
3358         if(!isWasmInitialized) {
3359                 throw new Error("initializeWasm() must be awaited first!");
3360         }
3361         const nativeResponseValue = wasm.TS_KeysInterface_read_chan_signer(this_arg, reader);
3362         return nativeResponseValue;
3363 }
3364         // LDKCResult_RecoverableSignatureNoneZ KeysInterface_sign_invoice LDKKeysInterface *NONNULL_PTR this_arg, struct LDKu8slice hrp_bytes, struct LDKCVec_u5Z invoice_data, enum LDKRecipient receipient
3365 /* @internal */
3366 export function KeysInterface_sign_invoice(this_arg: number, hrp_bytes: number, invoice_data: number, receipient: Recipient): number {
3367         if(!isWasmInitialized) {
3368                 throw new Error("initializeWasm() must be awaited first!");
3369         }
3370         const nativeResponseValue = wasm.TS_KeysInterface_sign_invoice(this_arg, hrp_bytes, invoice_data, receipient);
3371         return nativeResponseValue;
3372 }
3373         // LDKThirtyTwoBytes KeysInterface_get_inbound_payment_key_material LDKKeysInterface *NONNULL_PTR this_arg
3374 /* @internal */
3375 export function KeysInterface_get_inbound_payment_key_material(this_arg: number): number {
3376         if(!isWasmInitialized) {
3377                 throw new Error("initializeWasm() must be awaited first!");
3378         }
3379         const nativeResponseValue = wasm.TS_KeysInterface_get_inbound_payment_key_material(this_arg);
3380         return nativeResponseValue;
3381 }
3382 /* @internal */
3383 export interface LDKFeeEstimator {
3384         get_est_sat_per_1000_weight (confirmation_target: ConfirmationTarget): number;
3385 }
3386
3387 /* @internal */
3388 export function LDKFeeEstimator_new(impl: LDKFeeEstimator): number {
3389         if(!isWasmInitialized) {
3390                 throw new Error("initializeWasm() must be awaited first!");
3391         }
3392         var new_obj_idx = js_objs.length;
3393         for (var i = 0; i < js_objs.length; i++) {
3394                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3395         }
3396         js_objs[i] = new WeakRef(impl);
3397         return wasm.TS_LDKFeeEstimator_new(i);
3398 }
3399         // uint32_t FeeEstimator_get_est_sat_per_1000_weight LDKFeeEstimator *NONNULL_PTR this_arg, enum LDKConfirmationTarget confirmation_target
3400 /* @internal */
3401 export function FeeEstimator_get_est_sat_per_1000_weight(this_arg: number, confirmation_target: ConfirmationTarget): number {
3402         if(!isWasmInitialized) {
3403                 throw new Error("initializeWasm() must be awaited first!");
3404         }
3405         const nativeResponseValue = wasm.TS_FeeEstimator_get_est_sat_per_1000_weight(this_arg, confirmation_target);
3406         return nativeResponseValue;
3407 }
3408 /* @internal */
3409 export interface LDKLogger {
3410         log (record: number): void;
3411 }
3412
3413 /* @internal */
3414 export function LDKLogger_new(impl: LDKLogger): number {
3415         if(!isWasmInitialized) {
3416                 throw new Error("initializeWasm() must be awaited first!");
3417         }
3418         var new_obj_idx = js_objs.length;
3419         for (var i = 0; i < js_objs.length; i++) {
3420                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3421         }
3422         js_objs[i] = new WeakRef(impl);
3423         return wasm.TS_LDKLogger_new(i);
3424 }
3425         // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelManagerZ_get_a(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
3426 /* @internal */
3427 export function C2Tuple_BlockHashChannelManagerZ_get_a(owner: number): number {
3428         if(!isWasmInitialized) {
3429                 throw new Error("initializeWasm() must be awaited first!");
3430         }
3431         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_get_a(owner);
3432         return nativeResponseValue;
3433 }
3434         // struct LDKChannelManager *C2Tuple_BlockHashChannelManagerZ_get_b(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
3435 /* @internal */
3436 export function C2Tuple_BlockHashChannelManagerZ_get_b(owner: number): number {
3437         if(!isWasmInitialized) {
3438                 throw new Error("initializeWasm() must be awaited first!");
3439         }
3440         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_get_b(owner);
3441         return nativeResponseValue;
3442 }
3443         // struct LDKC2Tuple_BlockHashChannelManagerZ *CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
3444 /* @internal */
3445 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(owner: number): number {
3446         if(!isWasmInitialized) {
3447                 throw new Error("initializeWasm() must be awaited first!");
3448         }
3449         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(owner);
3450         return nativeResponseValue;
3451 }
3452         // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
3453 /* @internal */
3454 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(owner: number): number {
3455         if(!isWasmInitialized) {
3456                 throw new Error("initializeWasm() must be awaited first!");
3457         }
3458         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(owner);
3459         return nativeResponseValue;
3460 }
3461         // struct LDKChannelConfig CResult_ChannelConfigDecodeErrorZ_get_ok(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
3462 /* @internal */
3463 export function CResult_ChannelConfigDecodeErrorZ_get_ok(owner: number): number {
3464         if(!isWasmInitialized) {
3465                 throw new Error("initializeWasm() must be awaited first!");
3466         }
3467         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_get_ok(owner);
3468         return nativeResponseValue;
3469 }
3470         // struct LDKDecodeError CResult_ChannelConfigDecodeErrorZ_get_err(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
3471 /* @internal */
3472 export function CResult_ChannelConfigDecodeErrorZ_get_err(owner: number): number {
3473         if(!isWasmInitialized) {
3474                 throw new Error("initializeWasm() must be awaited first!");
3475         }
3476         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_get_err(owner);
3477         return nativeResponseValue;
3478 }
3479         // struct LDKOutPoint CResult_OutPointDecodeErrorZ_get_ok(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
3480 /* @internal */
3481 export function CResult_OutPointDecodeErrorZ_get_ok(owner: number): number {
3482         if(!isWasmInitialized) {
3483                 throw new Error("initializeWasm() must be awaited first!");
3484         }
3485         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_get_ok(owner);
3486         return nativeResponseValue;
3487 }
3488         // struct LDKDecodeError CResult_OutPointDecodeErrorZ_get_err(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
3489 /* @internal */
3490 export function CResult_OutPointDecodeErrorZ_get_err(owner: number): number {
3491         if(!isWasmInitialized) {
3492                 throw new Error("initializeWasm() must be awaited first!");
3493         }
3494         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_get_err(owner);
3495         return nativeResponseValue;
3496 }
3497 /* @internal */
3498 export interface LDKType {
3499         type_id (): number;
3500         debug_str (): number;
3501         write (): number;
3502 }
3503
3504 /* @internal */
3505 export function LDKType_new(impl: LDKType): number {
3506         if(!isWasmInitialized) {
3507                 throw new Error("initializeWasm() must be awaited first!");
3508         }
3509         var new_obj_idx = js_objs.length;
3510         for (var i = 0; i < js_objs.length; i++) {
3511                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3512         }
3513         js_objs[i] = new WeakRef(impl);
3514         return wasm.TS_LDKType_new(i);
3515 }
3516         // uint16_t Type_type_id LDKType *NONNULL_PTR this_arg
3517 /* @internal */
3518 export function Type_type_id(this_arg: number): number {
3519         if(!isWasmInitialized) {
3520                 throw new Error("initializeWasm() must be awaited first!");
3521         }
3522         const nativeResponseValue = wasm.TS_Type_type_id(this_arg);
3523         return nativeResponseValue;
3524 }
3525         // LDKStr Type_debug_str LDKType *NONNULL_PTR this_arg
3526 /* @internal */
3527 export function Type_debug_str(this_arg: number): number {
3528         if(!isWasmInitialized) {
3529                 throw new Error("initializeWasm() must be awaited first!");
3530         }
3531         const nativeResponseValue = wasm.TS_Type_debug_str(this_arg);
3532         return nativeResponseValue;
3533 }
3534         // LDKCVec_u8Z Type_write LDKType *NONNULL_PTR this_arg
3535 /* @internal */
3536 export function Type_write(this_arg: number): number {
3537         if(!isWasmInitialized) {
3538                 throw new Error("initializeWasm() must be awaited first!");
3539         }
3540         const nativeResponseValue = wasm.TS_Type_write(this_arg);
3541         return nativeResponseValue;
3542 }
3543 /* @internal */
3544 export class LDKCOption_TypeZ {
3545         protected constructor() {}
3546 }
3547 /* @internal */
3548 export function LDKCOption_TypeZ_ty_from_ptr(ptr: number): number {
3549         if(!isWasmInitialized) {
3550                 throw new Error("initializeWasm() must be awaited first!");
3551         }
3552         const nativeResponseValue = wasm.TS_LDKCOption_TypeZ_ty_from_ptr(ptr);
3553         return nativeResponseValue;
3554 }
3555 /* @internal */
3556 export function LDKCOption_TypeZ_Some_get_some(ptr: number): number {
3557         if(!isWasmInitialized) {
3558                 throw new Error("initializeWasm() must be awaited first!");
3559         }
3560         const nativeResponseValue = wasm.TS_LDKCOption_TypeZ_Some_get_some(ptr);
3561         return nativeResponseValue;
3562 }
3563         // struct LDKCOption_TypeZ CResult_COption_TypeZDecodeErrorZ_get_ok(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
3564 /* @internal */
3565 export function CResult_COption_TypeZDecodeErrorZ_get_ok(owner: number): number {
3566         if(!isWasmInitialized) {
3567                 throw new Error("initializeWasm() must be awaited first!");
3568         }
3569         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_get_ok(owner);
3570         return nativeResponseValue;
3571 }
3572         // struct LDKDecodeError CResult_COption_TypeZDecodeErrorZ_get_err(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
3573 /* @internal */
3574 export function CResult_COption_TypeZDecodeErrorZ_get_err(owner: number): number {
3575         if(!isWasmInitialized) {
3576                 throw new Error("initializeWasm() must be awaited first!");
3577         }
3578         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_get_err(owner);
3579         return nativeResponseValue;
3580 }
3581 /* @internal */
3582 export class LDKPaymentError {
3583         protected constructor() {}
3584 }
3585 /* @internal */
3586 export function LDKPaymentError_ty_from_ptr(ptr: number): number {
3587         if(!isWasmInitialized) {
3588                 throw new Error("initializeWasm() must be awaited first!");
3589         }
3590         const nativeResponseValue = wasm.TS_LDKPaymentError_ty_from_ptr(ptr);
3591         return nativeResponseValue;
3592 }
3593 /* @internal */
3594 export function LDKPaymentError_Invoice_get_invoice(ptr: number): number {
3595         if(!isWasmInitialized) {
3596                 throw new Error("initializeWasm() must be awaited first!");
3597         }
3598         const nativeResponseValue = wasm.TS_LDKPaymentError_Invoice_get_invoice(ptr);
3599         return nativeResponseValue;
3600 }
3601 /* @internal */
3602 export function LDKPaymentError_Routing_get_routing(ptr: number): number {
3603         if(!isWasmInitialized) {
3604                 throw new Error("initializeWasm() must be awaited first!");
3605         }
3606         const nativeResponseValue = wasm.TS_LDKPaymentError_Routing_get_routing(ptr);
3607         return nativeResponseValue;
3608 }
3609 /* @internal */
3610 export function LDKPaymentError_Sending_get_sending(ptr: number): number {
3611         if(!isWasmInitialized) {
3612                 throw new Error("initializeWasm() must be awaited first!");
3613         }
3614         const nativeResponseValue = wasm.TS_LDKPaymentError_Sending_get_sending(ptr);
3615         return nativeResponseValue;
3616 }
3617         // struct LDKThirtyTwoBytes CResult_PaymentIdPaymentErrorZ_get_ok(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
3618 /* @internal */
3619 export function CResult_PaymentIdPaymentErrorZ_get_ok(owner: number): number {
3620         if(!isWasmInitialized) {
3621                 throw new Error("initializeWasm() must be awaited first!");
3622         }
3623         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_get_ok(owner);
3624         return nativeResponseValue;
3625 }
3626         // struct LDKPaymentError CResult_PaymentIdPaymentErrorZ_get_err(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
3627 /* @internal */
3628 export function CResult_PaymentIdPaymentErrorZ_get_err(owner: number): number {
3629         if(!isWasmInitialized) {
3630                 throw new Error("initializeWasm() must be awaited first!");
3631         }
3632         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_get_err(owner);
3633         return nativeResponseValue;
3634 }
3635         // enum LDKSiPrefix CResult_SiPrefixNoneZ_get_ok(LDKCResult_SiPrefixNoneZ *NONNULL_PTR owner);
3636 /* @internal */
3637 export function CResult_SiPrefixNoneZ_get_ok(owner: number): SiPrefix {
3638         if(!isWasmInitialized) {
3639                 throw new Error("initializeWasm() must be awaited first!");
3640         }
3641         const nativeResponseValue = wasm.TS_CResult_SiPrefixNoneZ_get_ok(owner);
3642         return nativeResponseValue;
3643 }
3644         // void CResult_SiPrefixNoneZ_get_err(LDKCResult_SiPrefixNoneZ *NONNULL_PTR owner);
3645 /* @internal */
3646 export function CResult_SiPrefixNoneZ_get_err(owner: number): void {
3647         if(!isWasmInitialized) {
3648                 throw new Error("initializeWasm() must be awaited first!");
3649         }
3650         const nativeResponseValue = wasm.TS_CResult_SiPrefixNoneZ_get_err(owner);
3651         // debug statements here
3652 }
3653         // struct LDKInvoice CResult_InvoiceNoneZ_get_ok(LDKCResult_InvoiceNoneZ *NONNULL_PTR owner);
3654 /* @internal */
3655 export function CResult_InvoiceNoneZ_get_ok(owner: number): number {
3656         if(!isWasmInitialized) {
3657                 throw new Error("initializeWasm() must be awaited first!");
3658         }
3659         const nativeResponseValue = wasm.TS_CResult_InvoiceNoneZ_get_ok(owner);
3660         return nativeResponseValue;
3661 }
3662         // void CResult_InvoiceNoneZ_get_err(LDKCResult_InvoiceNoneZ *NONNULL_PTR owner);
3663 /* @internal */
3664 export function CResult_InvoiceNoneZ_get_err(owner: number): void {
3665         if(!isWasmInitialized) {
3666                 throw new Error("initializeWasm() must be awaited first!");
3667         }
3668         const nativeResponseValue = wasm.TS_CResult_InvoiceNoneZ_get_err(owner);
3669         // debug statements here
3670 }
3671         // struct LDKSignedRawInvoice CResult_SignedRawInvoiceNoneZ_get_ok(LDKCResult_SignedRawInvoiceNoneZ *NONNULL_PTR owner);
3672 /* @internal */
3673 export function CResult_SignedRawInvoiceNoneZ_get_ok(owner: number): number {
3674         if(!isWasmInitialized) {
3675                 throw new Error("initializeWasm() must be awaited first!");
3676         }
3677         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceNoneZ_get_ok(owner);
3678         return nativeResponseValue;
3679 }
3680         // void CResult_SignedRawInvoiceNoneZ_get_err(LDKCResult_SignedRawInvoiceNoneZ *NONNULL_PTR owner);
3681 /* @internal */
3682 export function CResult_SignedRawInvoiceNoneZ_get_err(owner: number): void {
3683         if(!isWasmInitialized) {
3684                 throw new Error("initializeWasm() must be awaited first!");
3685         }
3686         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceNoneZ_get_err(owner);
3687         // debug statements here
3688 }
3689         // struct LDKRawInvoice C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
3690 /* @internal */
3691 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(owner: number): number {
3692         if(!isWasmInitialized) {
3693                 throw new Error("initializeWasm() must be awaited first!");
3694         }
3695         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(owner);
3696         return nativeResponseValue;
3697 }
3698         // struct LDKThirtyTwoBytes C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
3699 /* @internal */
3700 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(owner: number): number {
3701         if(!isWasmInitialized) {
3702                 throw new Error("initializeWasm() must be awaited first!");
3703         }
3704         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(owner);
3705         return nativeResponseValue;
3706 }
3707         // struct LDKInvoiceSignature C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
3708 /* @internal */
3709 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(owner: number): number {
3710         if(!isWasmInitialized) {
3711                 throw new Error("initializeWasm() must be awaited first!");
3712         }
3713         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(owner);
3714         return nativeResponseValue;
3715 }
3716         // struct LDKPayeePubKey CResult_PayeePubKeyErrorZ_get_ok(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
3717 /* @internal */
3718 export function CResult_PayeePubKeyErrorZ_get_ok(owner: number): number {
3719         if(!isWasmInitialized) {
3720                 throw new Error("initializeWasm() must be awaited first!");
3721         }
3722         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_get_ok(owner);
3723         return nativeResponseValue;
3724 }
3725         // enum LDKSecp256k1Error CResult_PayeePubKeyErrorZ_get_err(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
3726 /* @internal */
3727 export function CResult_PayeePubKeyErrorZ_get_err(owner: number): Secp256k1Error {
3728         if(!isWasmInitialized) {
3729                 throw new Error("initializeWasm() must be awaited first!");
3730         }
3731         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_get_err(owner);
3732         return nativeResponseValue;
3733 }
3734         // struct LDKPositiveTimestamp CResult_PositiveTimestampCreationErrorZ_get_ok(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
3735 /* @internal */
3736 export function CResult_PositiveTimestampCreationErrorZ_get_ok(owner: number): number {
3737         if(!isWasmInitialized) {
3738                 throw new Error("initializeWasm() must be awaited first!");
3739         }
3740         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_get_ok(owner);
3741         return nativeResponseValue;
3742 }
3743         // enum LDKCreationError CResult_PositiveTimestampCreationErrorZ_get_err(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
3744 /* @internal */
3745 export function CResult_PositiveTimestampCreationErrorZ_get_err(owner: number): CreationError {
3746         if(!isWasmInitialized) {
3747                 throw new Error("initializeWasm() must be awaited first!");
3748         }
3749         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_get_err(owner);
3750         return nativeResponseValue;
3751 }
3752         // void CResult_NoneSemanticErrorZ_get_ok(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR owner);
3753 /* @internal */
3754 export function CResult_NoneSemanticErrorZ_get_ok(owner: number): void {
3755         if(!isWasmInitialized) {
3756                 throw new Error("initializeWasm() must be awaited first!");
3757         }
3758         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_get_ok(owner);
3759         // debug statements here
3760 }
3761         // enum LDKSemanticError CResult_NoneSemanticErrorZ_get_err(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR owner);
3762 /* @internal */
3763 export function CResult_NoneSemanticErrorZ_get_err(owner: number): SemanticError {
3764         if(!isWasmInitialized) {
3765                 throw new Error("initializeWasm() must be awaited first!");
3766         }
3767         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_get_err(owner);
3768         return nativeResponseValue;
3769 }
3770         // struct LDKInvoice CResult_InvoiceSemanticErrorZ_get_ok(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR owner);
3771 /* @internal */
3772 export function CResult_InvoiceSemanticErrorZ_get_ok(owner: number): number {
3773         if(!isWasmInitialized) {
3774                 throw new Error("initializeWasm() must be awaited first!");
3775         }
3776         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_get_ok(owner);
3777         return nativeResponseValue;
3778 }
3779         // enum LDKSemanticError CResult_InvoiceSemanticErrorZ_get_err(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR owner);
3780 /* @internal */
3781 export function CResult_InvoiceSemanticErrorZ_get_err(owner: number): SemanticError {
3782         if(!isWasmInitialized) {
3783                 throw new Error("initializeWasm() must be awaited first!");
3784         }
3785         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_get_err(owner);
3786         return nativeResponseValue;
3787 }
3788         // struct LDKDescription CResult_DescriptionCreationErrorZ_get_ok(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
3789 /* @internal */
3790 export function CResult_DescriptionCreationErrorZ_get_ok(owner: number): number {
3791         if(!isWasmInitialized) {
3792                 throw new Error("initializeWasm() must be awaited first!");
3793         }
3794         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_get_ok(owner);
3795         return nativeResponseValue;
3796 }
3797         // enum LDKCreationError CResult_DescriptionCreationErrorZ_get_err(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
3798 /* @internal */
3799 export function CResult_DescriptionCreationErrorZ_get_err(owner: number): CreationError {
3800         if(!isWasmInitialized) {
3801                 throw new Error("initializeWasm() must be awaited first!");
3802         }
3803         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_get_err(owner);
3804         return nativeResponseValue;
3805 }
3806         // struct LDKPrivateRoute CResult_PrivateRouteCreationErrorZ_get_ok(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
3807 /* @internal */
3808 export function CResult_PrivateRouteCreationErrorZ_get_ok(owner: number): number {
3809         if(!isWasmInitialized) {
3810                 throw new Error("initializeWasm() must be awaited first!");
3811         }
3812         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_get_ok(owner);
3813         return nativeResponseValue;
3814 }
3815         // enum LDKCreationError CResult_PrivateRouteCreationErrorZ_get_err(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
3816 /* @internal */
3817 export function CResult_PrivateRouteCreationErrorZ_get_err(owner: number): CreationError {
3818         if(!isWasmInitialized) {
3819                 throw new Error("initializeWasm() must be awaited first!");
3820         }
3821         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_get_err(owner);
3822         return nativeResponseValue;
3823 }
3824         // struct LDKStr CResult_StringErrorZ_get_ok(LDKCResult_StringErrorZ *NONNULL_PTR owner);
3825 /* @internal */
3826 export function CResult_StringErrorZ_get_ok(owner: number): number {
3827         if(!isWasmInitialized) {
3828                 throw new Error("initializeWasm() must be awaited first!");
3829         }
3830         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_get_ok(owner);
3831         return nativeResponseValue;
3832 }
3833         // enum LDKSecp256k1Error CResult_StringErrorZ_get_err(LDKCResult_StringErrorZ *NONNULL_PTR owner);
3834 /* @internal */
3835 export function CResult_StringErrorZ_get_err(owner: number): Secp256k1Error {
3836         if(!isWasmInitialized) {
3837                 throw new Error("initializeWasm() must be awaited first!");
3838         }
3839         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_get_err(owner);
3840         return nativeResponseValue;
3841 }
3842         // struct LDKChannelMonitorUpdate CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
3843 /* @internal */
3844 export function CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(owner: number): number {
3845         if(!isWasmInitialized) {
3846                 throw new Error("initializeWasm() must be awaited first!");
3847         }
3848         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(owner);
3849         return nativeResponseValue;
3850 }
3851         // struct LDKDecodeError CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
3852 /* @internal */
3853 export function CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(owner: number): number {
3854         if(!isWasmInitialized) {
3855                 throw new Error("initializeWasm() must be awaited first!");
3856         }
3857         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(owner);
3858         return nativeResponseValue;
3859 }
3860 /* @internal */
3861 export class LDKCOption_MonitorEventZ {
3862         protected constructor() {}
3863 }
3864 /* @internal */
3865 export function LDKCOption_MonitorEventZ_ty_from_ptr(ptr: number): number {
3866         if(!isWasmInitialized) {
3867                 throw new Error("initializeWasm() must be awaited first!");
3868         }
3869         const nativeResponseValue = wasm.TS_LDKCOption_MonitorEventZ_ty_from_ptr(ptr);
3870         return nativeResponseValue;
3871 }
3872 /* @internal */
3873 export function LDKCOption_MonitorEventZ_Some_get_some(ptr: number): number {
3874         if(!isWasmInitialized) {
3875                 throw new Error("initializeWasm() must be awaited first!");
3876         }
3877         const nativeResponseValue = wasm.TS_LDKCOption_MonitorEventZ_Some_get_some(ptr);
3878         return nativeResponseValue;
3879 }
3880         // struct LDKCOption_MonitorEventZ CResult_COption_MonitorEventZDecodeErrorZ_get_ok(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
3881 /* @internal */
3882 export function CResult_COption_MonitorEventZDecodeErrorZ_get_ok(owner: number): number {
3883         if(!isWasmInitialized) {
3884                 throw new Error("initializeWasm() must be awaited first!");
3885         }
3886         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_get_ok(owner);
3887         return nativeResponseValue;
3888 }
3889         // struct LDKDecodeError CResult_COption_MonitorEventZDecodeErrorZ_get_err(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
3890 /* @internal */
3891 export function CResult_COption_MonitorEventZDecodeErrorZ_get_err(owner: number): number {
3892         if(!isWasmInitialized) {
3893                 throw new Error("initializeWasm() must be awaited first!");
3894         }
3895         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_get_err(owner);
3896         return nativeResponseValue;
3897 }
3898         // struct LDKHTLCUpdate CResult_HTLCUpdateDecodeErrorZ_get_ok(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
3899 /* @internal */
3900 export function CResult_HTLCUpdateDecodeErrorZ_get_ok(owner: number): number {
3901         if(!isWasmInitialized) {
3902                 throw new Error("initializeWasm() must be awaited first!");
3903         }
3904         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_get_ok(owner);
3905         return nativeResponseValue;
3906 }
3907         // struct LDKDecodeError CResult_HTLCUpdateDecodeErrorZ_get_err(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
3908 /* @internal */
3909 export function CResult_HTLCUpdateDecodeErrorZ_get_err(owner: number): number {
3910         if(!isWasmInitialized) {
3911                 throw new Error("initializeWasm() must be awaited first!");
3912         }
3913         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_get_err(owner);
3914         return nativeResponseValue;
3915 }
3916         // struct LDKOutPoint C2Tuple_OutPointScriptZ_get_a(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
3917 /* @internal */
3918 export function C2Tuple_OutPointScriptZ_get_a(owner: number): number {
3919         if(!isWasmInitialized) {
3920                 throw new Error("initializeWasm() must be awaited first!");
3921         }
3922         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_get_a(owner);
3923         return nativeResponseValue;
3924 }
3925         // struct LDKCVec_u8Z C2Tuple_OutPointScriptZ_get_b(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
3926 /* @internal */
3927 export function C2Tuple_OutPointScriptZ_get_b(owner: number): number {
3928         if(!isWasmInitialized) {
3929                 throw new Error("initializeWasm() must be awaited first!");
3930         }
3931         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_get_b(owner);
3932         return nativeResponseValue;
3933 }
3934         // uint32_t C2Tuple_u32ScriptZ_get_a(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
3935 /* @internal */
3936 export function C2Tuple_u32ScriptZ_get_a(owner: number): number {
3937         if(!isWasmInitialized) {
3938                 throw new Error("initializeWasm() must be awaited first!");
3939         }
3940         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_get_a(owner);
3941         return nativeResponseValue;
3942 }
3943         // struct LDKCVec_u8Z C2Tuple_u32ScriptZ_get_b(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
3944 /* @internal */
3945 export function C2Tuple_u32ScriptZ_get_b(owner: number): number {
3946         if(!isWasmInitialized) {
3947                 throw new Error("initializeWasm() must be awaited first!");
3948         }
3949         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_get_b(owner);
3950         return nativeResponseValue;
3951 }
3952         // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
3953 /* @internal */
3954 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(owner: number): number {
3955         if(!isWasmInitialized) {
3956                 throw new Error("initializeWasm() must be awaited first!");
3957         }
3958         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(owner);
3959         return nativeResponseValue;
3960 }
3961         // struct LDKCVec_C2Tuple_u32ScriptZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
3962 /* @internal */
3963 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(owner: number): number {
3964         if(!isWasmInitialized) {
3965                 throw new Error("initializeWasm() must be awaited first!");
3966         }
3967         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(owner);
3968         return nativeResponseValue;
3969 }
3970         // uint32_t C2Tuple_u32TxOutZ_get_a(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
3971 /* @internal */
3972 export function C2Tuple_u32TxOutZ_get_a(owner: number): number {
3973         if(!isWasmInitialized) {
3974                 throw new Error("initializeWasm() must be awaited first!");
3975         }
3976         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_get_a(owner);
3977         return nativeResponseValue;
3978 }
3979         // struct LDKTxOut C2Tuple_u32TxOutZ_get_b(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
3980 /* @internal */
3981 export function C2Tuple_u32TxOutZ_get_b(owner: number): number {
3982         if(!isWasmInitialized) {
3983                 throw new Error("initializeWasm() must be awaited first!");
3984         }
3985         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_get_b(owner);
3986         return nativeResponseValue;
3987 }
3988         // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
3989 /* @internal */
3990 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(owner: number): number {
3991         if(!isWasmInitialized) {
3992                 throw new Error("initializeWasm() must be awaited first!");
3993         }
3994         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(owner);
3995         return nativeResponseValue;
3996 }
3997         // struct LDKCVec_C2Tuple_u32TxOutZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
3998 /* @internal */
3999 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(owner: number): number {
4000         if(!isWasmInitialized) {
4001                 throw new Error("initializeWasm() must be awaited first!");
4002         }
4003         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(owner);
4004         return nativeResponseValue;
4005 }
4006 /* @internal */
4007 export class LDKBalance {
4008         protected constructor() {}
4009 }
4010 /* @internal */
4011 export function LDKBalance_ty_from_ptr(ptr: number): number {
4012         if(!isWasmInitialized) {
4013                 throw new Error("initializeWasm() must be awaited first!");
4014         }
4015         const nativeResponseValue = wasm.TS_LDKBalance_ty_from_ptr(ptr);
4016         return nativeResponseValue;
4017 }
4018 /* @internal */
4019 export function LDKBalance_ClaimableOnChannelClose_get_claimable_amount_satoshis(ptr: number): bigint {
4020         if(!isWasmInitialized) {
4021                 throw new Error("initializeWasm() must be awaited first!");
4022         }
4023         const nativeResponseValue = wasm.TS_LDKBalance_ClaimableOnChannelClose_get_claimable_amount_satoshis(ptr);
4024         return nativeResponseValue;
4025 }
4026 /* @internal */
4027 export function LDKBalance_ClaimableAwaitingConfirmations_get_claimable_amount_satoshis(ptr: number): bigint {
4028         if(!isWasmInitialized) {
4029                 throw new Error("initializeWasm() must be awaited first!");
4030         }
4031         const nativeResponseValue = wasm.TS_LDKBalance_ClaimableAwaitingConfirmations_get_claimable_amount_satoshis(ptr);
4032         return nativeResponseValue;
4033 }
4034 /* @internal */
4035 export function LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height(ptr: number): number {
4036         if(!isWasmInitialized) {
4037                 throw new Error("initializeWasm() must be awaited first!");
4038         }
4039         const nativeResponseValue = wasm.TS_LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height(ptr);
4040         return nativeResponseValue;
4041 }
4042 /* @internal */
4043 export function LDKBalance_ContentiousClaimable_get_claimable_amount_satoshis(ptr: number): bigint {
4044         if(!isWasmInitialized) {
4045                 throw new Error("initializeWasm() must be awaited first!");
4046         }
4047         const nativeResponseValue = wasm.TS_LDKBalance_ContentiousClaimable_get_claimable_amount_satoshis(ptr);
4048         return nativeResponseValue;
4049 }
4050 /* @internal */
4051 export function LDKBalance_ContentiousClaimable_get_timeout_height(ptr: number): number {
4052         if(!isWasmInitialized) {
4053                 throw new Error("initializeWasm() must be awaited first!");
4054         }
4055         const nativeResponseValue = wasm.TS_LDKBalance_ContentiousClaimable_get_timeout_height(ptr);
4056         return nativeResponseValue;
4057 }
4058 /* @internal */
4059 export function LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_amount_satoshis(ptr: number): bigint {
4060         if(!isWasmInitialized) {
4061                 throw new Error("initializeWasm() must be awaited first!");
4062         }
4063         const nativeResponseValue = wasm.TS_LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_amount_satoshis(ptr);
4064         return nativeResponseValue;
4065 }
4066 /* @internal */
4067 export function LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_height(ptr: number): number {
4068         if(!isWasmInitialized) {
4069                 throw new Error("initializeWasm() must be awaited first!");
4070         }
4071         const nativeResponseValue = wasm.TS_LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_height(ptr);
4072         return nativeResponseValue;
4073 }
4074         // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelMonitorZ_get_a(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
4075 /* @internal */
4076 export function C2Tuple_BlockHashChannelMonitorZ_get_a(owner: number): number {
4077         if(!isWasmInitialized) {
4078                 throw new Error("initializeWasm() must be awaited first!");
4079         }
4080         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_get_a(owner);
4081         return nativeResponseValue;
4082 }
4083         // struct LDKChannelMonitor C2Tuple_BlockHashChannelMonitorZ_get_b(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
4084 /* @internal */
4085 export function C2Tuple_BlockHashChannelMonitorZ_get_b(owner: number): number {
4086         if(!isWasmInitialized) {
4087                 throw new Error("initializeWasm() must be awaited first!");
4088         }
4089         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_get_b(owner);
4090         return nativeResponseValue;
4091 }
4092         // struct LDKC2Tuple_BlockHashChannelMonitorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
4093 /* @internal */
4094 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(owner: number): number {
4095         if(!isWasmInitialized) {
4096                 throw new Error("initializeWasm() must be awaited first!");
4097         }
4098         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(owner);
4099         return nativeResponseValue;
4100 }
4101         // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
4102 /* @internal */
4103 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(owner: number): number {
4104         if(!isWasmInitialized) {
4105                 throw new Error("initializeWasm() must be awaited first!");
4106         }
4107         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(owner);
4108         return nativeResponseValue;
4109 }
4110         // void CResult_NoneLightningErrorZ_get_ok(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
4111 /* @internal */
4112 export function CResult_NoneLightningErrorZ_get_ok(owner: number): void {
4113         if(!isWasmInitialized) {
4114                 throw new Error("initializeWasm() must be awaited first!");
4115         }
4116         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_get_ok(owner);
4117         // debug statements here
4118 }
4119         // struct LDKLightningError CResult_NoneLightningErrorZ_get_err(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
4120 /* @internal */
4121 export function CResult_NoneLightningErrorZ_get_err(owner: number): number {
4122         if(!isWasmInitialized) {
4123                 throw new Error("initializeWasm() must be awaited first!");
4124         }
4125         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_get_err(owner);
4126         return nativeResponseValue;
4127 }
4128         // struct LDKPublicKey C2Tuple_PublicKeyTypeZ_get_a(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
4129 /* @internal */
4130 export function C2Tuple_PublicKeyTypeZ_get_a(owner: number): number {
4131         if(!isWasmInitialized) {
4132                 throw new Error("initializeWasm() must be awaited first!");
4133         }
4134         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_get_a(owner);
4135         return nativeResponseValue;
4136 }
4137         // struct LDKType C2Tuple_PublicKeyTypeZ_get_b(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
4138 /* @internal */
4139 export function C2Tuple_PublicKeyTypeZ_get_b(owner: number): number {
4140         if(!isWasmInitialized) {
4141                 throw new Error("initializeWasm() must be awaited first!");
4142         }
4143         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_get_b(owner);
4144         return nativeResponseValue;
4145 }
4146         // bool CResult_boolLightningErrorZ_get_ok(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
4147 /* @internal */
4148 export function CResult_boolLightningErrorZ_get_ok(owner: number): boolean {
4149         if(!isWasmInitialized) {
4150                 throw new Error("initializeWasm() must be awaited first!");
4151         }
4152         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_get_ok(owner);
4153         return nativeResponseValue;
4154 }
4155         // struct LDKLightningError CResult_boolLightningErrorZ_get_err(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
4156 /* @internal */
4157 export function CResult_boolLightningErrorZ_get_err(owner: number): number {
4158         if(!isWasmInitialized) {
4159                 throw new Error("initializeWasm() must be awaited first!");
4160         }
4161         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_get_err(owner);
4162         return nativeResponseValue;
4163 }
4164         // struct LDKChannelAnnouncement C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
4165 /* @internal */
4166 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(owner: number): number {
4167         if(!isWasmInitialized) {
4168                 throw new Error("initializeWasm() must be awaited first!");
4169         }
4170         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(owner);
4171         return nativeResponseValue;
4172 }
4173         // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
4174 /* @internal */
4175 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(owner: number): number {
4176         if(!isWasmInitialized) {
4177                 throw new Error("initializeWasm() must be awaited first!");
4178         }
4179         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(owner);
4180         return nativeResponseValue;
4181 }
4182         // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
4183 /* @internal */
4184 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(owner: number): number {
4185         if(!isWasmInitialized) {
4186                 throw new Error("initializeWasm() must be awaited first!");
4187         }
4188         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(owner);
4189         return nativeResponseValue;
4190 }
4191         // struct LDKCVec_u8Z CResult_CVec_u8ZPeerHandleErrorZ_get_ok(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
4192 /* @internal */
4193 export function CResult_CVec_u8ZPeerHandleErrorZ_get_ok(owner: number): number {
4194         if(!isWasmInitialized) {
4195                 throw new Error("initializeWasm() must be awaited first!");
4196         }
4197         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_get_ok(owner);
4198         return nativeResponseValue;
4199 }
4200         // struct LDKPeerHandleError CResult_CVec_u8ZPeerHandleErrorZ_get_err(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
4201 /* @internal */
4202 export function CResult_CVec_u8ZPeerHandleErrorZ_get_err(owner: number): number {
4203         if(!isWasmInitialized) {
4204                 throw new Error("initializeWasm() must be awaited first!");
4205         }
4206         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_get_err(owner);
4207         return nativeResponseValue;
4208 }
4209         // void CResult_NonePeerHandleErrorZ_get_ok(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
4210 /* @internal */
4211 export function CResult_NonePeerHandleErrorZ_get_ok(owner: number): void {
4212         if(!isWasmInitialized) {
4213                 throw new Error("initializeWasm() must be awaited first!");
4214         }
4215         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_get_ok(owner);
4216         // debug statements here
4217 }
4218         // struct LDKPeerHandleError CResult_NonePeerHandleErrorZ_get_err(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
4219 /* @internal */
4220 export function CResult_NonePeerHandleErrorZ_get_err(owner: number): number {
4221         if(!isWasmInitialized) {
4222                 throw new Error("initializeWasm() must be awaited first!");
4223         }
4224         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_get_err(owner);
4225         return nativeResponseValue;
4226 }
4227         // bool CResult_boolPeerHandleErrorZ_get_ok(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
4228 /* @internal */
4229 export function CResult_boolPeerHandleErrorZ_get_ok(owner: number): boolean {
4230         if(!isWasmInitialized) {
4231                 throw new Error("initializeWasm() must be awaited first!");
4232         }
4233         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_get_ok(owner);
4234         return nativeResponseValue;
4235 }
4236         // struct LDKPeerHandleError CResult_boolPeerHandleErrorZ_get_err(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
4237 /* @internal */
4238 export function CResult_boolPeerHandleErrorZ_get_err(owner: number): number {
4239         if(!isWasmInitialized) {
4240                 throw new Error("initializeWasm() must be awaited first!");
4241         }
4242         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_get_err(owner);
4243         return nativeResponseValue;
4244 }
4245         // struct LDKNodeId CResult_NodeIdDecodeErrorZ_get_ok(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
4246 /* @internal */
4247 export function CResult_NodeIdDecodeErrorZ_get_ok(owner: number): number {
4248         if(!isWasmInitialized) {
4249                 throw new Error("initializeWasm() must be awaited first!");
4250         }
4251         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_get_ok(owner);
4252         return nativeResponseValue;
4253 }
4254         // struct LDKDecodeError CResult_NodeIdDecodeErrorZ_get_err(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
4255 /* @internal */
4256 export function CResult_NodeIdDecodeErrorZ_get_err(owner: number): number {
4257         if(!isWasmInitialized) {
4258                 throw new Error("initializeWasm() must be awaited first!");
4259         }
4260         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_get_err(owner);
4261         return nativeResponseValue;
4262 }
4263         // struct LDKCOption_NetworkUpdateZ CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
4264 /* @internal */
4265 export function CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(owner: number): number {
4266         if(!isWasmInitialized) {
4267                 throw new Error("initializeWasm() must be awaited first!");
4268         }
4269         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(owner);
4270         return nativeResponseValue;
4271 }
4272         // struct LDKDecodeError CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
4273 /* @internal */
4274 export function CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(owner: number): number {
4275         if(!isWasmInitialized) {
4276                 throw new Error("initializeWasm() must be awaited first!");
4277         }
4278         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(owner);
4279         return nativeResponseValue;
4280 }
4281 /* @internal */
4282 export interface LDKAccess {
4283         get_utxo (genesis_hash: number, short_channel_id: bigint): number;
4284 }
4285
4286 /* @internal */
4287 export function LDKAccess_new(impl: LDKAccess): number {
4288         if(!isWasmInitialized) {
4289                 throw new Error("initializeWasm() must be awaited first!");
4290         }
4291         var new_obj_idx = js_objs.length;
4292         for (var i = 0; i < js_objs.length; i++) {
4293                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
4294         }
4295         js_objs[i] = new WeakRef(impl);
4296         return wasm.TS_LDKAccess_new(i);
4297 }
4298         // LDKCResult_TxOutAccessErrorZ Access_get_utxo LDKAccess *NONNULL_PTR this_arg, const uint8_t (*genesis_hash)[32], uint64_t short_channel_id
4299 /* @internal */
4300 export function Access_get_utxo(this_arg: number, genesis_hash: number, short_channel_id: bigint): number {
4301         if(!isWasmInitialized) {
4302                 throw new Error("initializeWasm() must be awaited first!");
4303         }
4304         const nativeResponseValue = wasm.TS_Access_get_utxo(this_arg, genesis_hash, short_channel_id);
4305         return nativeResponseValue;
4306 }
4307 /* @internal */
4308 export class LDKCOption_AccessZ {
4309         protected constructor() {}
4310 }
4311 /* @internal */
4312 export function LDKCOption_AccessZ_ty_from_ptr(ptr: number): number {
4313         if(!isWasmInitialized) {
4314                 throw new Error("initializeWasm() must be awaited first!");
4315         }
4316         const nativeResponseValue = wasm.TS_LDKCOption_AccessZ_ty_from_ptr(ptr);
4317         return nativeResponseValue;
4318 }
4319 /* @internal */
4320 export function LDKCOption_AccessZ_Some_get_some(ptr: number): number {
4321         if(!isWasmInitialized) {
4322                 throw new Error("initializeWasm() must be awaited first!");
4323         }
4324         const nativeResponseValue = wasm.TS_LDKCOption_AccessZ_Some_get_some(ptr);
4325         return nativeResponseValue;
4326 }
4327         // struct LDKChannelUpdateInfo CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
4328 /* @internal */
4329 export function CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(owner: number): number {
4330         if(!isWasmInitialized) {
4331                 throw new Error("initializeWasm() must be awaited first!");
4332         }
4333         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(owner);
4334         return nativeResponseValue;
4335 }
4336         // struct LDKDecodeError CResult_ChannelUpdateInfoDecodeErrorZ_get_err(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
4337 /* @internal */
4338 export function CResult_ChannelUpdateInfoDecodeErrorZ_get_err(owner: number): number {
4339         if(!isWasmInitialized) {
4340                 throw new Error("initializeWasm() must be awaited first!");
4341         }
4342         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_get_err(owner);
4343         return nativeResponseValue;
4344 }
4345         // struct LDKChannelInfo CResult_ChannelInfoDecodeErrorZ_get_ok(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
4346 /* @internal */
4347 export function CResult_ChannelInfoDecodeErrorZ_get_ok(owner: number): number {
4348         if(!isWasmInitialized) {
4349                 throw new Error("initializeWasm() must be awaited first!");
4350         }
4351         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_get_ok(owner);
4352         return nativeResponseValue;
4353 }
4354         // struct LDKDecodeError CResult_ChannelInfoDecodeErrorZ_get_err(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
4355 /* @internal */
4356 export function CResult_ChannelInfoDecodeErrorZ_get_err(owner: number): number {
4357         if(!isWasmInitialized) {
4358                 throw new Error("initializeWasm() must be awaited first!");
4359         }
4360         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_get_err(owner);
4361         return nativeResponseValue;
4362 }
4363         // struct LDKRoutingFees CResult_RoutingFeesDecodeErrorZ_get_ok(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
4364 /* @internal */
4365 export function CResult_RoutingFeesDecodeErrorZ_get_ok(owner: number): number {
4366         if(!isWasmInitialized) {
4367                 throw new Error("initializeWasm() must be awaited first!");
4368         }
4369         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_get_ok(owner);
4370         return nativeResponseValue;
4371 }
4372         // struct LDKDecodeError CResult_RoutingFeesDecodeErrorZ_get_err(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
4373 /* @internal */
4374 export function CResult_RoutingFeesDecodeErrorZ_get_err(owner: number): number {
4375         if(!isWasmInitialized) {
4376                 throw new Error("initializeWasm() must be awaited first!");
4377         }
4378         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_get_err(owner);
4379         return nativeResponseValue;
4380 }
4381         // struct LDKNodeAnnouncementInfo CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
4382 /* @internal */
4383 export function CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(owner: number): number {
4384         if(!isWasmInitialized) {
4385                 throw new Error("initializeWasm() must be awaited first!");
4386         }
4387         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(owner);
4388         return nativeResponseValue;
4389 }
4390         // struct LDKDecodeError CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
4391 /* @internal */
4392 export function CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(owner: number): number {
4393         if(!isWasmInitialized) {
4394                 throw new Error("initializeWasm() must be awaited first!");
4395         }
4396         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(owner);
4397         return nativeResponseValue;
4398 }
4399         // struct LDKNodeInfo CResult_NodeInfoDecodeErrorZ_get_ok(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
4400 /* @internal */
4401 export function CResult_NodeInfoDecodeErrorZ_get_ok(owner: number): number {
4402         if(!isWasmInitialized) {
4403                 throw new Error("initializeWasm() must be awaited first!");
4404         }
4405         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_get_ok(owner);
4406         return nativeResponseValue;
4407 }
4408         // struct LDKDecodeError CResult_NodeInfoDecodeErrorZ_get_err(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
4409 /* @internal */
4410 export function CResult_NodeInfoDecodeErrorZ_get_err(owner: number): number {
4411         if(!isWasmInitialized) {
4412                 throw new Error("initializeWasm() must be awaited first!");
4413         }
4414         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_get_err(owner);
4415         return nativeResponseValue;
4416 }
4417         // struct LDKNetworkGraph CResult_NetworkGraphDecodeErrorZ_get_ok(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
4418 /* @internal */
4419 export function CResult_NetworkGraphDecodeErrorZ_get_ok(owner: number): number {
4420         if(!isWasmInitialized) {
4421                 throw new Error("initializeWasm() must be awaited first!");
4422         }
4423         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_get_ok(owner);
4424         return nativeResponseValue;
4425 }
4426         // struct LDKDecodeError CResult_NetworkGraphDecodeErrorZ_get_err(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
4427 /* @internal */
4428 export function CResult_NetworkGraphDecodeErrorZ_get_err(owner: number): number {
4429         if(!isWasmInitialized) {
4430                 throw new Error("initializeWasm() must be awaited first!");
4431         }
4432         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_get_err(owner);
4433         return nativeResponseValue;
4434 }
4435 /* @internal */
4436 export class LDKCOption_CVec_NetAddressZZ {
4437         protected constructor() {}
4438 }
4439 /* @internal */
4440 export function LDKCOption_CVec_NetAddressZZ_ty_from_ptr(ptr: number): number {
4441         if(!isWasmInitialized) {
4442                 throw new Error("initializeWasm() must be awaited first!");
4443         }
4444         const nativeResponseValue = wasm.TS_LDKCOption_CVec_NetAddressZZ_ty_from_ptr(ptr);
4445         return nativeResponseValue;
4446 }
4447 /* @internal */
4448 export function LDKCOption_CVec_NetAddressZZ_Some_get_some(ptr: number): number {
4449         if(!isWasmInitialized) {
4450                 throw new Error("initializeWasm() must be awaited first!");
4451         }
4452         const nativeResponseValue = wasm.TS_LDKCOption_CVec_NetAddressZZ_Some_get_some(ptr);
4453         return nativeResponseValue;
4454 }
4455         // struct LDKNetAddress CResult_NetAddressDecodeErrorZ_get_ok(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
4456 /* @internal */
4457 export function CResult_NetAddressDecodeErrorZ_get_ok(owner: number): number {
4458         if(!isWasmInitialized) {
4459                 throw new Error("initializeWasm() must be awaited first!");
4460         }
4461         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_get_ok(owner);
4462         return nativeResponseValue;
4463 }
4464         // struct LDKDecodeError CResult_NetAddressDecodeErrorZ_get_err(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
4465 /* @internal */
4466 export function CResult_NetAddressDecodeErrorZ_get_err(owner: number): number {
4467         if(!isWasmInitialized) {
4468                 throw new Error("initializeWasm() must be awaited first!");
4469         }
4470         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_get_err(owner);
4471         return nativeResponseValue;
4472 }
4473         // struct LDKAcceptChannel CResult_AcceptChannelDecodeErrorZ_get_ok(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
4474 /* @internal */
4475 export function CResult_AcceptChannelDecodeErrorZ_get_ok(owner: number): number {
4476         if(!isWasmInitialized) {
4477                 throw new Error("initializeWasm() must be awaited first!");
4478         }
4479         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_get_ok(owner);
4480         return nativeResponseValue;
4481 }
4482         // struct LDKDecodeError CResult_AcceptChannelDecodeErrorZ_get_err(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
4483 /* @internal */
4484 export function CResult_AcceptChannelDecodeErrorZ_get_err(owner: number): number {
4485         if(!isWasmInitialized) {
4486                 throw new Error("initializeWasm() must be awaited first!");
4487         }
4488         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_get_err(owner);
4489         return nativeResponseValue;
4490 }
4491         // struct LDKAnnouncementSignatures CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
4492 /* @internal */
4493 export function CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(owner: number): number {
4494         if(!isWasmInitialized) {
4495                 throw new Error("initializeWasm() must be awaited first!");
4496         }
4497         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(owner);
4498         return nativeResponseValue;
4499 }
4500         // struct LDKDecodeError CResult_AnnouncementSignaturesDecodeErrorZ_get_err(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
4501 /* @internal */
4502 export function CResult_AnnouncementSignaturesDecodeErrorZ_get_err(owner: number): number {
4503         if(!isWasmInitialized) {
4504                 throw new Error("initializeWasm() must be awaited first!");
4505         }
4506         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_get_err(owner);
4507         return nativeResponseValue;
4508 }
4509         // struct LDKChannelReestablish CResult_ChannelReestablishDecodeErrorZ_get_ok(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
4510 /* @internal */
4511 export function CResult_ChannelReestablishDecodeErrorZ_get_ok(owner: number): number {
4512         if(!isWasmInitialized) {
4513                 throw new Error("initializeWasm() must be awaited first!");
4514         }
4515         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_get_ok(owner);
4516         return nativeResponseValue;
4517 }
4518         // struct LDKDecodeError CResult_ChannelReestablishDecodeErrorZ_get_err(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
4519 /* @internal */
4520 export function CResult_ChannelReestablishDecodeErrorZ_get_err(owner: number): number {
4521         if(!isWasmInitialized) {
4522                 throw new Error("initializeWasm() must be awaited first!");
4523         }
4524         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_get_err(owner);
4525         return nativeResponseValue;
4526 }
4527         // struct LDKClosingSigned CResult_ClosingSignedDecodeErrorZ_get_ok(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
4528 /* @internal */
4529 export function CResult_ClosingSignedDecodeErrorZ_get_ok(owner: number): number {
4530         if(!isWasmInitialized) {
4531                 throw new Error("initializeWasm() must be awaited first!");
4532         }
4533         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_get_ok(owner);
4534         return nativeResponseValue;
4535 }
4536         // struct LDKDecodeError CResult_ClosingSignedDecodeErrorZ_get_err(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
4537 /* @internal */
4538 export function CResult_ClosingSignedDecodeErrorZ_get_err(owner: number): number {
4539         if(!isWasmInitialized) {
4540                 throw new Error("initializeWasm() must be awaited first!");
4541         }
4542         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_get_err(owner);
4543         return nativeResponseValue;
4544 }
4545         // struct LDKClosingSignedFeeRange CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
4546 /* @internal */
4547 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(owner: number): number {
4548         if(!isWasmInitialized) {
4549                 throw new Error("initializeWasm() must be awaited first!");
4550         }
4551         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(owner);
4552         return nativeResponseValue;
4553 }
4554         // struct LDKDecodeError CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
4555 /* @internal */
4556 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(owner: number): number {
4557         if(!isWasmInitialized) {
4558                 throw new Error("initializeWasm() must be awaited first!");
4559         }
4560         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(owner);
4561         return nativeResponseValue;
4562 }
4563         // struct LDKCommitmentSigned CResult_CommitmentSignedDecodeErrorZ_get_ok(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
4564 /* @internal */
4565 export function CResult_CommitmentSignedDecodeErrorZ_get_ok(owner: number): number {
4566         if(!isWasmInitialized) {
4567                 throw new Error("initializeWasm() must be awaited first!");
4568         }
4569         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_get_ok(owner);
4570         return nativeResponseValue;
4571 }
4572         // struct LDKDecodeError CResult_CommitmentSignedDecodeErrorZ_get_err(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
4573 /* @internal */
4574 export function CResult_CommitmentSignedDecodeErrorZ_get_err(owner: number): number {
4575         if(!isWasmInitialized) {
4576                 throw new Error("initializeWasm() must be awaited first!");
4577         }
4578         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_get_err(owner);
4579         return nativeResponseValue;
4580 }
4581         // struct LDKFundingCreated CResult_FundingCreatedDecodeErrorZ_get_ok(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
4582 /* @internal */
4583 export function CResult_FundingCreatedDecodeErrorZ_get_ok(owner: number): number {
4584         if(!isWasmInitialized) {
4585                 throw new Error("initializeWasm() must be awaited first!");
4586         }
4587         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_get_ok(owner);
4588         return nativeResponseValue;
4589 }
4590         // struct LDKDecodeError CResult_FundingCreatedDecodeErrorZ_get_err(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
4591 /* @internal */
4592 export function CResult_FundingCreatedDecodeErrorZ_get_err(owner: number): number {
4593         if(!isWasmInitialized) {
4594                 throw new Error("initializeWasm() must be awaited first!");
4595         }
4596         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_get_err(owner);
4597         return nativeResponseValue;
4598 }
4599         // struct LDKFundingSigned CResult_FundingSignedDecodeErrorZ_get_ok(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
4600 /* @internal */
4601 export function CResult_FundingSignedDecodeErrorZ_get_ok(owner: number): number {
4602         if(!isWasmInitialized) {
4603                 throw new Error("initializeWasm() must be awaited first!");
4604         }
4605         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_get_ok(owner);
4606         return nativeResponseValue;
4607 }
4608         // struct LDKDecodeError CResult_FundingSignedDecodeErrorZ_get_err(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
4609 /* @internal */
4610 export function CResult_FundingSignedDecodeErrorZ_get_err(owner: number): number {
4611         if(!isWasmInitialized) {
4612                 throw new Error("initializeWasm() must be awaited first!");
4613         }
4614         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_get_err(owner);
4615         return nativeResponseValue;
4616 }
4617         // struct LDKFundingLocked CResult_FundingLockedDecodeErrorZ_get_ok(LDKCResult_FundingLockedDecodeErrorZ *NONNULL_PTR owner);
4618 /* @internal */
4619 export function CResult_FundingLockedDecodeErrorZ_get_ok(owner: number): number {
4620         if(!isWasmInitialized) {
4621                 throw new Error("initializeWasm() must be awaited first!");
4622         }
4623         const nativeResponseValue = wasm.TS_CResult_FundingLockedDecodeErrorZ_get_ok(owner);
4624         return nativeResponseValue;
4625 }
4626         // struct LDKDecodeError CResult_FundingLockedDecodeErrorZ_get_err(LDKCResult_FundingLockedDecodeErrorZ *NONNULL_PTR owner);
4627 /* @internal */
4628 export function CResult_FundingLockedDecodeErrorZ_get_err(owner: number): number {
4629         if(!isWasmInitialized) {
4630                 throw new Error("initializeWasm() must be awaited first!");
4631         }
4632         const nativeResponseValue = wasm.TS_CResult_FundingLockedDecodeErrorZ_get_err(owner);
4633         return nativeResponseValue;
4634 }
4635         // struct LDKInit CResult_InitDecodeErrorZ_get_ok(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
4636 /* @internal */
4637 export function CResult_InitDecodeErrorZ_get_ok(owner: number): number {
4638         if(!isWasmInitialized) {
4639                 throw new Error("initializeWasm() must be awaited first!");
4640         }
4641         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_get_ok(owner);
4642         return nativeResponseValue;
4643 }
4644         // struct LDKDecodeError CResult_InitDecodeErrorZ_get_err(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
4645 /* @internal */
4646 export function CResult_InitDecodeErrorZ_get_err(owner: number): number {
4647         if(!isWasmInitialized) {
4648                 throw new Error("initializeWasm() must be awaited first!");
4649         }
4650         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_get_err(owner);
4651         return nativeResponseValue;
4652 }
4653         // struct LDKOpenChannel CResult_OpenChannelDecodeErrorZ_get_ok(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
4654 /* @internal */
4655 export function CResult_OpenChannelDecodeErrorZ_get_ok(owner: number): number {
4656         if(!isWasmInitialized) {
4657                 throw new Error("initializeWasm() must be awaited first!");
4658         }
4659         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_get_ok(owner);
4660         return nativeResponseValue;
4661 }
4662         // struct LDKDecodeError CResult_OpenChannelDecodeErrorZ_get_err(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
4663 /* @internal */
4664 export function CResult_OpenChannelDecodeErrorZ_get_err(owner: number): number {
4665         if(!isWasmInitialized) {
4666                 throw new Error("initializeWasm() must be awaited first!");
4667         }
4668         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_get_err(owner);
4669         return nativeResponseValue;
4670 }
4671         // struct LDKRevokeAndACK CResult_RevokeAndACKDecodeErrorZ_get_ok(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
4672 /* @internal */
4673 export function CResult_RevokeAndACKDecodeErrorZ_get_ok(owner: number): number {
4674         if(!isWasmInitialized) {
4675                 throw new Error("initializeWasm() must be awaited first!");
4676         }
4677         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_get_ok(owner);
4678         return nativeResponseValue;
4679 }
4680         // struct LDKDecodeError CResult_RevokeAndACKDecodeErrorZ_get_err(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
4681 /* @internal */
4682 export function CResult_RevokeAndACKDecodeErrorZ_get_err(owner: number): number {
4683         if(!isWasmInitialized) {
4684                 throw new Error("initializeWasm() must be awaited first!");
4685         }
4686         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_get_err(owner);
4687         return nativeResponseValue;
4688 }
4689         // struct LDKShutdown CResult_ShutdownDecodeErrorZ_get_ok(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
4690 /* @internal */
4691 export function CResult_ShutdownDecodeErrorZ_get_ok(owner: number): number {
4692         if(!isWasmInitialized) {
4693                 throw new Error("initializeWasm() must be awaited first!");
4694         }
4695         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_get_ok(owner);
4696         return nativeResponseValue;
4697 }
4698         // struct LDKDecodeError CResult_ShutdownDecodeErrorZ_get_err(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
4699 /* @internal */
4700 export function CResult_ShutdownDecodeErrorZ_get_err(owner: number): number {
4701         if(!isWasmInitialized) {
4702                 throw new Error("initializeWasm() must be awaited first!");
4703         }
4704         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_get_err(owner);
4705         return nativeResponseValue;
4706 }
4707         // struct LDKUpdateFailHTLC CResult_UpdateFailHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
4708 /* @internal */
4709 export function CResult_UpdateFailHTLCDecodeErrorZ_get_ok(owner: number): number {
4710         if(!isWasmInitialized) {
4711                 throw new Error("initializeWasm() must be awaited first!");
4712         }
4713         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_get_ok(owner);
4714         return nativeResponseValue;
4715 }
4716         // struct LDKDecodeError CResult_UpdateFailHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
4717 /* @internal */
4718 export function CResult_UpdateFailHTLCDecodeErrorZ_get_err(owner: number): number {
4719         if(!isWasmInitialized) {
4720                 throw new Error("initializeWasm() must be awaited first!");
4721         }
4722         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_get_err(owner);
4723         return nativeResponseValue;
4724 }
4725         // struct LDKUpdateFailMalformedHTLC CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
4726 /* @internal */
4727 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(owner: number): number {
4728         if(!isWasmInitialized) {
4729                 throw new Error("initializeWasm() must be awaited first!");
4730         }
4731         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(owner);
4732         return nativeResponseValue;
4733 }
4734         // struct LDKDecodeError CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
4735 /* @internal */
4736 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(owner: number): number {
4737         if(!isWasmInitialized) {
4738                 throw new Error("initializeWasm() must be awaited first!");
4739         }
4740         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(owner);
4741         return nativeResponseValue;
4742 }
4743         // struct LDKUpdateFee CResult_UpdateFeeDecodeErrorZ_get_ok(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
4744 /* @internal */
4745 export function CResult_UpdateFeeDecodeErrorZ_get_ok(owner: number): number {
4746         if(!isWasmInitialized) {
4747                 throw new Error("initializeWasm() must be awaited first!");
4748         }
4749         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_get_ok(owner);
4750         return nativeResponseValue;
4751 }
4752         // struct LDKDecodeError CResult_UpdateFeeDecodeErrorZ_get_err(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
4753 /* @internal */
4754 export function CResult_UpdateFeeDecodeErrorZ_get_err(owner: number): number {
4755         if(!isWasmInitialized) {
4756                 throw new Error("initializeWasm() must be awaited first!");
4757         }
4758         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_get_err(owner);
4759         return nativeResponseValue;
4760 }
4761         // struct LDKUpdateFulfillHTLC CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
4762 /* @internal */
4763 export function CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(owner: number): number {
4764         if(!isWasmInitialized) {
4765                 throw new Error("initializeWasm() must be awaited first!");
4766         }
4767         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(owner);
4768         return nativeResponseValue;
4769 }
4770         // struct LDKDecodeError CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
4771 /* @internal */
4772 export function CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(owner: number): number {
4773         if(!isWasmInitialized) {
4774                 throw new Error("initializeWasm() must be awaited first!");
4775         }
4776         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(owner);
4777         return nativeResponseValue;
4778 }
4779         // struct LDKUpdateAddHTLC CResult_UpdateAddHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
4780 /* @internal */
4781 export function CResult_UpdateAddHTLCDecodeErrorZ_get_ok(owner: number): number {
4782         if(!isWasmInitialized) {
4783                 throw new Error("initializeWasm() must be awaited first!");
4784         }
4785         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_get_ok(owner);
4786         return nativeResponseValue;
4787 }
4788         // struct LDKDecodeError CResult_UpdateAddHTLCDecodeErrorZ_get_err(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
4789 /* @internal */
4790 export function CResult_UpdateAddHTLCDecodeErrorZ_get_err(owner: number): number {
4791         if(!isWasmInitialized) {
4792                 throw new Error("initializeWasm() must be awaited first!");
4793         }
4794         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_get_err(owner);
4795         return nativeResponseValue;
4796 }
4797         // struct LDKPing CResult_PingDecodeErrorZ_get_ok(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
4798 /* @internal */
4799 export function CResult_PingDecodeErrorZ_get_ok(owner: number): number {
4800         if(!isWasmInitialized) {
4801                 throw new Error("initializeWasm() must be awaited first!");
4802         }
4803         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_get_ok(owner);
4804         return nativeResponseValue;
4805 }
4806         // struct LDKDecodeError CResult_PingDecodeErrorZ_get_err(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
4807 /* @internal */
4808 export function CResult_PingDecodeErrorZ_get_err(owner: number): number {
4809         if(!isWasmInitialized) {
4810                 throw new Error("initializeWasm() must be awaited first!");
4811         }
4812         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_get_err(owner);
4813         return nativeResponseValue;
4814 }
4815         // struct LDKPong CResult_PongDecodeErrorZ_get_ok(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
4816 /* @internal */
4817 export function CResult_PongDecodeErrorZ_get_ok(owner: number): number {
4818         if(!isWasmInitialized) {
4819                 throw new Error("initializeWasm() must be awaited first!");
4820         }
4821         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_get_ok(owner);
4822         return nativeResponseValue;
4823 }
4824         // struct LDKDecodeError CResult_PongDecodeErrorZ_get_err(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
4825 /* @internal */
4826 export function CResult_PongDecodeErrorZ_get_err(owner: number): number {
4827         if(!isWasmInitialized) {
4828                 throw new Error("initializeWasm() must be awaited first!");
4829         }
4830         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_get_err(owner);
4831         return nativeResponseValue;
4832 }
4833         // struct LDKUnsignedChannelAnnouncement CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
4834 /* @internal */
4835 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(owner: number): number {
4836         if(!isWasmInitialized) {
4837                 throw new Error("initializeWasm() must be awaited first!");
4838         }
4839         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(owner);
4840         return nativeResponseValue;
4841 }
4842         // struct LDKDecodeError CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
4843 /* @internal */
4844 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(owner: number): number {
4845         if(!isWasmInitialized) {
4846                 throw new Error("initializeWasm() must be awaited first!");
4847         }
4848         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(owner);
4849         return nativeResponseValue;
4850 }
4851         // struct LDKChannelAnnouncement CResult_ChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
4852 /* @internal */
4853 export function CResult_ChannelAnnouncementDecodeErrorZ_get_ok(owner: number): number {
4854         if(!isWasmInitialized) {
4855                 throw new Error("initializeWasm() must be awaited first!");
4856         }
4857         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_get_ok(owner);
4858         return nativeResponseValue;
4859 }
4860         // struct LDKDecodeError CResult_ChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
4861 /* @internal */
4862 export function CResult_ChannelAnnouncementDecodeErrorZ_get_err(owner: number): number {
4863         if(!isWasmInitialized) {
4864                 throw new Error("initializeWasm() must be awaited first!");
4865         }
4866         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_get_err(owner);
4867         return nativeResponseValue;
4868 }
4869         // struct LDKUnsignedChannelUpdate CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
4870 /* @internal */
4871 export function CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(owner: number): number {
4872         if(!isWasmInitialized) {
4873                 throw new Error("initializeWasm() must be awaited first!");
4874         }
4875         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(owner);
4876         return nativeResponseValue;
4877 }
4878         // struct LDKDecodeError CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
4879 /* @internal */
4880 export function CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(owner: number): number {
4881         if(!isWasmInitialized) {
4882                 throw new Error("initializeWasm() must be awaited first!");
4883         }
4884         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(owner);
4885         return nativeResponseValue;
4886 }
4887         // struct LDKChannelUpdate CResult_ChannelUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
4888 /* @internal */
4889 export function CResult_ChannelUpdateDecodeErrorZ_get_ok(owner: number): number {
4890         if(!isWasmInitialized) {
4891                 throw new Error("initializeWasm() must be awaited first!");
4892         }
4893         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_get_ok(owner);
4894         return nativeResponseValue;
4895 }
4896         // struct LDKDecodeError CResult_ChannelUpdateDecodeErrorZ_get_err(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
4897 /* @internal */
4898 export function CResult_ChannelUpdateDecodeErrorZ_get_err(owner: number): number {
4899         if(!isWasmInitialized) {
4900                 throw new Error("initializeWasm() must be awaited first!");
4901         }
4902         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_get_err(owner);
4903         return nativeResponseValue;
4904 }
4905         // struct LDKErrorMessage CResult_ErrorMessageDecodeErrorZ_get_ok(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
4906 /* @internal */
4907 export function CResult_ErrorMessageDecodeErrorZ_get_ok(owner: number): number {
4908         if(!isWasmInitialized) {
4909                 throw new Error("initializeWasm() must be awaited first!");
4910         }
4911         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_get_ok(owner);
4912         return nativeResponseValue;
4913 }
4914         // struct LDKDecodeError CResult_ErrorMessageDecodeErrorZ_get_err(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
4915 /* @internal */
4916 export function CResult_ErrorMessageDecodeErrorZ_get_err(owner: number): number {
4917         if(!isWasmInitialized) {
4918                 throw new Error("initializeWasm() must be awaited first!");
4919         }
4920         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_get_err(owner);
4921         return nativeResponseValue;
4922 }
4923         // struct LDKWarningMessage CResult_WarningMessageDecodeErrorZ_get_ok(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
4924 /* @internal */
4925 export function CResult_WarningMessageDecodeErrorZ_get_ok(owner: number): number {
4926         if(!isWasmInitialized) {
4927                 throw new Error("initializeWasm() must be awaited first!");
4928         }
4929         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_get_ok(owner);
4930         return nativeResponseValue;
4931 }
4932         // struct LDKDecodeError CResult_WarningMessageDecodeErrorZ_get_err(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
4933 /* @internal */
4934 export function CResult_WarningMessageDecodeErrorZ_get_err(owner: number): number {
4935         if(!isWasmInitialized) {
4936                 throw new Error("initializeWasm() must be awaited first!");
4937         }
4938         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_get_err(owner);
4939         return nativeResponseValue;
4940 }
4941         // struct LDKUnsignedNodeAnnouncement CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
4942 /* @internal */
4943 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(owner: number): number {
4944         if(!isWasmInitialized) {
4945                 throw new Error("initializeWasm() must be awaited first!");
4946         }
4947         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(owner);
4948         return nativeResponseValue;
4949 }
4950         // struct LDKDecodeError CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
4951 /* @internal */
4952 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(owner: number): number {
4953         if(!isWasmInitialized) {
4954                 throw new Error("initializeWasm() must be awaited first!");
4955         }
4956         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(owner);
4957         return nativeResponseValue;
4958 }
4959         // struct LDKNodeAnnouncement CResult_NodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
4960 /* @internal */
4961 export function CResult_NodeAnnouncementDecodeErrorZ_get_ok(owner: number): number {
4962         if(!isWasmInitialized) {
4963                 throw new Error("initializeWasm() must be awaited first!");
4964         }
4965         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_get_ok(owner);
4966         return nativeResponseValue;
4967 }
4968         // struct LDKDecodeError CResult_NodeAnnouncementDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
4969 /* @internal */
4970 export function CResult_NodeAnnouncementDecodeErrorZ_get_err(owner: number): number {
4971         if(!isWasmInitialized) {
4972                 throw new Error("initializeWasm() must be awaited first!");
4973         }
4974         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_get_err(owner);
4975         return nativeResponseValue;
4976 }
4977         // struct LDKQueryShortChannelIds CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
4978 /* @internal */
4979 export function CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(owner: number): number {
4980         if(!isWasmInitialized) {
4981                 throw new Error("initializeWasm() must be awaited first!");
4982         }
4983         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(owner);
4984         return nativeResponseValue;
4985 }
4986         // struct LDKDecodeError CResult_QueryShortChannelIdsDecodeErrorZ_get_err(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
4987 /* @internal */
4988 export function CResult_QueryShortChannelIdsDecodeErrorZ_get_err(owner: number): number {
4989         if(!isWasmInitialized) {
4990                 throw new Error("initializeWasm() must be awaited first!");
4991         }
4992         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_get_err(owner);
4993         return nativeResponseValue;
4994 }
4995         // struct LDKReplyShortChannelIdsEnd CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
4996 /* @internal */
4997 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(owner: number): number {
4998         if(!isWasmInitialized) {
4999                 throw new Error("initializeWasm() must be awaited first!");
5000         }
5001         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(owner);
5002         return nativeResponseValue;
5003 }
5004         // struct LDKDecodeError CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
5005 /* @internal */
5006 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(owner: number): number {
5007         if(!isWasmInitialized) {
5008                 throw new Error("initializeWasm() must be awaited first!");
5009         }
5010         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(owner);
5011         return nativeResponseValue;
5012 }
5013         // struct LDKQueryChannelRange CResult_QueryChannelRangeDecodeErrorZ_get_ok(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5014 /* @internal */
5015 export function CResult_QueryChannelRangeDecodeErrorZ_get_ok(owner: number): number {
5016         if(!isWasmInitialized) {
5017                 throw new Error("initializeWasm() must be awaited first!");
5018         }
5019         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_get_ok(owner);
5020         return nativeResponseValue;
5021 }
5022         // struct LDKDecodeError CResult_QueryChannelRangeDecodeErrorZ_get_err(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5023 /* @internal */
5024 export function CResult_QueryChannelRangeDecodeErrorZ_get_err(owner: number): number {
5025         if(!isWasmInitialized) {
5026                 throw new Error("initializeWasm() must be awaited first!");
5027         }
5028         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_get_err(owner);
5029         return nativeResponseValue;
5030 }
5031         // struct LDKReplyChannelRange CResult_ReplyChannelRangeDecodeErrorZ_get_ok(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5032 /* @internal */
5033 export function CResult_ReplyChannelRangeDecodeErrorZ_get_ok(owner: number): number {
5034         if(!isWasmInitialized) {
5035                 throw new Error("initializeWasm() must be awaited first!");
5036         }
5037         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_get_ok(owner);
5038         return nativeResponseValue;
5039 }
5040         // struct LDKDecodeError CResult_ReplyChannelRangeDecodeErrorZ_get_err(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5041 /* @internal */
5042 export function CResult_ReplyChannelRangeDecodeErrorZ_get_err(owner: number): number {
5043         if(!isWasmInitialized) {
5044                 throw new Error("initializeWasm() must be awaited first!");
5045         }
5046         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_get_err(owner);
5047         return nativeResponseValue;
5048 }
5049         // struct LDKGossipTimestampFilter CResult_GossipTimestampFilterDecodeErrorZ_get_ok(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
5050 /* @internal */
5051 export function CResult_GossipTimestampFilterDecodeErrorZ_get_ok(owner: number): number {
5052         if(!isWasmInitialized) {
5053                 throw new Error("initializeWasm() must be awaited first!");
5054         }
5055         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_get_ok(owner);
5056         return nativeResponseValue;
5057 }
5058         // struct LDKDecodeError CResult_GossipTimestampFilterDecodeErrorZ_get_err(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
5059 /* @internal */
5060 export function CResult_GossipTimestampFilterDecodeErrorZ_get_err(owner: number): number {
5061         if(!isWasmInitialized) {
5062                 throw new Error("initializeWasm() must be awaited first!");
5063         }
5064         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_get_err(owner);
5065         return nativeResponseValue;
5066 }
5067 /* @internal */
5068 export class LDKSignOrCreationError {
5069         protected constructor() {}
5070 }
5071 /* @internal */
5072 export function LDKSignOrCreationError_ty_from_ptr(ptr: number): number {
5073         if(!isWasmInitialized) {
5074                 throw new Error("initializeWasm() must be awaited first!");
5075         }
5076         const nativeResponseValue = wasm.TS_LDKSignOrCreationError_ty_from_ptr(ptr);
5077         return nativeResponseValue;
5078 }
5079 /* @internal */
5080 export function LDKSignOrCreationError_CreationError_get_creation_error(ptr: number): CreationError {
5081         if(!isWasmInitialized) {
5082                 throw new Error("initializeWasm() must be awaited first!");
5083         }
5084         const nativeResponseValue = wasm.TS_LDKSignOrCreationError_CreationError_get_creation_error(ptr);
5085         return nativeResponseValue;
5086 }
5087         // struct LDKInvoice CResult_InvoiceSignOrCreationErrorZ_get_ok(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
5088 /* @internal */
5089 export function CResult_InvoiceSignOrCreationErrorZ_get_ok(owner: number): number {
5090         if(!isWasmInitialized) {
5091                 throw new Error("initializeWasm() must be awaited first!");
5092         }
5093         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_get_ok(owner);
5094         return nativeResponseValue;
5095 }
5096         // struct LDKSignOrCreationError CResult_InvoiceSignOrCreationErrorZ_get_err(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
5097 /* @internal */
5098 export function CResult_InvoiceSignOrCreationErrorZ_get_err(owner: number): number {
5099         if(!isWasmInitialized) {
5100                 throw new Error("initializeWasm() must be awaited first!");
5101         }
5102         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_get_err(owner);
5103         return nativeResponseValue;
5104 }
5105 /* @internal */
5106 export interface LDKFilter {
5107         register_tx (txid: number, script_pubkey: number): void;
5108         register_output (output: number): number;
5109 }
5110
5111 /* @internal */
5112 export function LDKFilter_new(impl: LDKFilter): number {
5113         if(!isWasmInitialized) {
5114                 throw new Error("initializeWasm() must be awaited first!");
5115         }
5116         var new_obj_idx = js_objs.length;
5117         for (var i = 0; i < js_objs.length; i++) {
5118                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5119         }
5120         js_objs[i] = new WeakRef(impl);
5121         return wasm.TS_LDKFilter_new(i);
5122 }
5123         // void Filter_register_tx LDKFilter *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKu8slice script_pubkey
5124 /* @internal */
5125 export function Filter_register_tx(this_arg: number, txid: number, script_pubkey: number): void {
5126         if(!isWasmInitialized) {
5127                 throw new Error("initializeWasm() must be awaited first!");
5128         }
5129         const nativeResponseValue = wasm.TS_Filter_register_tx(this_arg, txid, script_pubkey);
5130         // debug statements here
5131 }
5132         // LDKCOption_C2Tuple_usizeTransactionZZ Filter_register_output LDKFilter *NONNULL_PTR this_arg, struct LDKWatchedOutput output
5133 /* @internal */
5134 export function Filter_register_output(this_arg: number, output: number): number {
5135         if(!isWasmInitialized) {
5136                 throw new Error("initializeWasm() must be awaited first!");
5137         }
5138         const nativeResponseValue = wasm.TS_Filter_register_output(this_arg, output);
5139         return nativeResponseValue;
5140 }
5141 /* @internal */
5142 export class LDKCOption_FilterZ {
5143         protected constructor() {}
5144 }
5145 /* @internal */
5146 export function LDKCOption_FilterZ_ty_from_ptr(ptr: number): number {
5147         if(!isWasmInitialized) {
5148                 throw new Error("initializeWasm() must be awaited first!");
5149         }
5150         const nativeResponseValue = wasm.TS_LDKCOption_FilterZ_ty_from_ptr(ptr);
5151         return nativeResponseValue;
5152 }
5153 /* @internal */
5154 export function LDKCOption_FilterZ_Some_get_some(ptr: number): number {
5155         if(!isWasmInitialized) {
5156                 throw new Error("initializeWasm() must be awaited first!");
5157         }
5158         const nativeResponseValue = wasm.TS_LDKCOption_FilterZ_Some_get_some(ptr);
5159         return nativeResponseValue;
5160 }
5161         // struct LDKLockedChannelMonitor *CResult_LockedChannelMonitorNoneZ_get_ok(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
5162 /* @internal */
5163 export function CResult_LockedChannelMonitorNoneZ_get_ok(owner: number): number {
5164         if(!isWasmInitialized) {
5165                 throw new Error("initializeWasm() must be awaited first!");
5166         }
5167         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_get_ok(owner);
5168         return nativeResponseValue;
5169 }
5170         // void CResult_LockedChannelMonitorNoneZ_get_err(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
5171 /* @internal */
5172 export function CResult_LockedChannelMonitorNoneZ_get_err(owner: number): void {
5173         if(!isWasmInitialized) {
5174                 throw new Error("initializeWasm() must be awaited first!");
5175         }
5176         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_get_err(owner);
5177         // debug statements here
5178 }
5179 /* @internal */
5180 export interface LDKMessageSendEventsProvider {
5181         get_and_clear_pending_msg_events (): number;
5182 }
5183
5184 /* @internal */
5185 export function LDKMessageSendEventsProvider_new(impl: LDKMessageSendEventsProvider): number {
5186         if(!isWasmInitialized) {
5187                 throw new Error("initializeWasm() must be awaited first!");
5188         }
5189         var new_obj_idx = js_objs.length;
5190         for (var i = 0; i < js_objs.length; i++) {
5191                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5192         }
5193         js_objs[i] = new WeakRef(impl);
5194         return wasm.TS_LDKMessageSendEventsProvider_new(i);
5195 }
5196         // LDKCVec_MessageSendEventZ MessageSendEventsProvider_get_and_clear_pending_msg_events LDKMessageSendEventsProvider *NONNULL_PTR this_arg
5197 /* @internal */
5198 export function MessageSendEventsProvider_get_and_clear_pending_msg_events(this_arg: number): number {
5199         if(!isWasmInitialized) {
5200                 throw new Error("initializeWasm() must be awaited first!");
5201         }
5202         const nativeResponseValue = wasm.TS_MessageSendEventsProvider_get_and_clear_pending_msg_events(this_arg);
5203         return nativeResponseValue;
5204 }
5205 /* @internal */
5206 export interface LDKEventHandler {
5207         handle_event (event: number): void;
5208 }
5209
5210 /* @internal */
5211 export function LDKEventHandler_new(impl: LDKEventHandler): number {
5212         if(!isWasmInitialized) {
5213                 throw new Error("initializeWasm() must be awaited first!");
5214         }
5215         var new_obj_idx = js_objs.length;
5216         for (var i = 0; i < js_objs.length; i++) {
5217                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5218         }
5219         js_objs[i] = new WeakRef(impl);
5220         return wasm.TS_LDKEventHandler_new(i);
5221 }
5222         // void EventHandler_handle_event LDKEventHandler *NONNULL_PTR this_arg, const struct LDKEvent *NONNULL_PTR event
5223 /* @internal */
5224 export function EventHandler_handle_event(this_arg: number, event: number): void {
5225         if(!isWasmInitialized) {
5226                 throw new Error("initializeWasm() must be awaited first!");
5227         }
5228         const nativeResponseValue = wasm.TS_EventHandler_handle_event(this_arg, event);
5229         // debug statements here
5230 }
5231 /* @internal */
5232 export interface LDKEventsProvider {
5233         process_pending_events (handler: number): void;
5234 }
5235
5236 /* @internal */
5237 export function LDKEventsProvider_new(impl: LDKEventsProvider): number {
5238         if(!isWasmInitialized) {
5239                 throw new Error("initializeWasm() must be awaited first!");
5240         }
5241         var new_obj_idx = js_objs.length;
5242         for (var i = 0; i < js_objs.length; i++) {
5243                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5244         }
5245         js_objs[i] = new WeakRef(impl);
5246         return wasm.TS_LDKEventsProvider_new(i);
5247 }
5248         // void EventsProvider_process_pending_events LDKEventsProvider *NONNULL_PTR this_arg, struct LDKEventHandler handler
5249 /* @internal */
5250 export function EventsProvider_process_pending_events(this_arg: number, handler: number): void {
5251         if(!isWasmInitialized) {
5252                 throw new Error("initializeWasm() must be awaited first!");
5253         }
5254         const nativeResponseValue = wasm.TS_EventsProvider_process_pending_events(this_arg, handler);
5255         // debug statements here
5256 }
5257 /* @internal */
5258 export interface LDKListen {
5259         block_connected (block: number, height: number): void;
5260         block_disconnected (header: number, height: number): void;
5261 }
5262
5263 /* @internal */
5264 export function LDKListen_new(impl: LDKListen): number {
5265         if(!isWasmInitialized) {
5266                 throw new Error("initializeWasm() must be awaited first!");
5267         }
5268         var new_obj_idx = js_objs.length;
5269         for (var i = 0; i < js_objs.length; i++) {
5270                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5271         }
5272         js_objs[i] = new WeakRef(impl);
5273         return wasm.TS_LDKListen_new(i);
5274 }
5275         // void Listen_block_connected LDKListen *NONNULL_PTR this_arg, struct LDKu8slice block, uint32_t height
5276 /* @internal */
5277 export function Listen_block_connected(this_arg: number, block: number, height: number): void {
5278         if(!isWasmInitialized) {
5279                 throw new Error("initializeWasm() must be awaited first!");
5280         }
5281         const nativeResponseValue = wasm.TS_Listen_block_connected(this_arg, block, height);
5282         // debug statements here
5283 }
5284         // void Listen_block_disconnected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
5285 /* @internal */
5286 export function Listen_block_disconnected(this_arg: number, header: number, height: number): void {
5287         if(!isWasmInitialized) {
5288                 throw new Error("initializeWasm() must be awaited first!");
5289         }
5290         const nativeResponseValue = wasm.TS_Listen_block_disconnected(this_arg, header, height);
5291         // debug statements here
5292 }
5293 /* @internal */
5294 export interface LDKConfirm {
5295         transactions_confirmed (header: number, txdata: number, height: number): void;
5296         transaction_unconfirmed (txid: number): void;
5297         best_block_updated (header: number, height: number): void;
5298         get_relevant_txids (): number;
5299 }
5300
5301 /* @internal */
5302 export function LDKConfirm_new(impl: LDKConfirm): number {
5303         if(!isWasmInitialized) {
5304                 throw new Error("initializeWasm() must be awaited first!");
5305         }
5306         var new_obj_idx = js_objs.length;
5307         for (var i = 0; i < js_objs.length; i++) {
5308                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5309         }
5310         js_objs[i] = new WeakRef(impl);
5311         return wasm.TS_LDKConfirm_new(i);
5312 }
5313         // void Confirm_transactions_confirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
5314 /* @internal */
5315 export function Confirm_transactions_confirmed(this_arg: number, header: number, txdata: number, height: number): void {
5316         if(!isWasmInitialized) {
5317                 throw new Error("initializeWasm() must be awaited first!");
5318         }
5319         const nativeResponseValue = wasm.TS_Confirm_transactions_confirmed(this_arg, header, txdata, height);
5320         // debug statements here
5321 }
5322         // void Confirm_transaction_unconfirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*txid)[32]
5323 /* @internal */
5324 export function Confirm_transaction_unconfirmed(this_arg: number, txid: number): void {
5325         if(!isWasmInitialized) {
5326                 throw new Error("initializeWasm() must be awaited first!");
5327         }
5328         const nativeResponseValue = wasm.TS_Confirm_transaction_unconfirmed(this_arg, txid);
5329         // debug statements here
5330 }
5331         // void Confirm_best_block_updated LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
5332 /* @internal */
5333 export function Confirm_best_block_updated(this_arg: number, header: number, height: number): void {
5334         if(!isWasmInitialized) {
5335                 throw new Error("initializeWasm() must be awaited first!");
5336         }
5337         const nativeResponseValue = wasm.TS_Confirm_best_block_updated(this_arg, header, height);
5338         // debug statements here
5339 }
5340         // LDKCVec_TxidZ Confirm_get_relevant_txids LDKConfirm *NONNULL_PTR this_arg
5341 /* @internal */
5342 export function Confirm_get_relevant_txids(this_arg: number): number {
5343         if(!isWasmInitialized) {
5344                 throw new Error("initializeWasm() must be awaited first!");
5345         }
5346         const nativeResponseValue = wasm.TS_Confirm_get_relevant_txids(this_arg);
5347         return nativeResponseValue;
5348 }
5349 /* @internal */
5350 export interface LDKPersist {
5351         persist_new_channel (channel_id: number, data: number, update_id: number): number;
5352         update_persisted_channel (channel_id: number, update: number, data: number, update_id: number): number;
5353 }
5354
5355 /* @internal */
5356 export function LDKPersist_new(impl: LDKPersist): number {
5357         if(!isWasmInitialized) {
5358                 throw new Error("initializeWasm() must be awaited first!");
5359         }
5360         var new_obj_idx = js_objs.length;
5361         for (var i = 0; i < js_objs.length; i++) {
5362                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5363         }
5364         js_objs[i] = new WeakRef(impl);
5365         return wasm.TS_LDKPersist_new(i);
5366 }
5367         // LDKCResult_NoneChannelMonitorUpdateErrZ Persist_persist_new_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_id, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id
5368 /* @internal */
5369 export function Persist_persist_new_channel(this_arg: number, channel_id: number, data: number, update_id: number): number {
5370         if(!isWasmInitialized) {
5371                 throw new Error("initializeWasm() must be awaited first!");
5372         }
5373         const nativeResponseValue = wasm.TS_Persist_persist_new_channel(this_arg, channel_id, data, update_id);
5374         return nativeResponseValue;
5375 }
5376         // LDKCResult_NoneChannelMonitorUpdateErrZ Persist_update_persisted_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_id, const struct LDKChannelMonitorUpdate *NONNULL_PTR update, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id
5377 /* @internal */
5378 export function Persist_update_persisted_channel(this_arg: number, channel_id: number, update: number, data: number, update_id: number): number {
5379         if(!isWasmInitialized) {
5380                 throw new Error("initializeWasm() must be awaited first!");
5381         }
5382         const nativeResponseValue = wasm.TS_Persist_update_persisted_channel(this_arg, channel_id, update, data, update_id);
5383         return nativeResponseValue;
5384 }
5385 /* @internal */
5386 export interface LDKChannelMessageHandler {
5387         handle_open_channel (their_node_id: number, their_features: number, msg: number): void;
5388         handle_accept_channel (their_node_id: number, their_features: number, msg: number): void;
5389         handle_funding_created (their_node_id: number, msg: number): void;
5390         handle_funding_signed (their_node_id: number, msg: number): void;
5391         handle_funding_locked (their_node_id: number, msg: number): void;
5392         handle_shutdown (their_node_id: number, their_features: number, msg: number): void;
5393         handle_closing_signed (their_node_id: number, msg: number): void;
5394         handle_update_add_htlc (their_node_id: number, msg: number): void;
5395         handle_update_fulfill_htlc (their_node_id: number, msg: number): void;
5396         handle_update_fail_htlc (their_node_id: number, msg: number): void;
5397         handle_update_fail_malformed_htlc (their_node_id: number, msg: number): void;
5398         handle_commitment_signed (their_node_id: number, msg: number): void;
5399         handle_revoke_and_ack (their_node_id: number, msg: number): void;
5400         handle_update_fee (their_node_id: number, msg: number): void;
5401         handle_announcement_signatures (their_node_id: number, msg: number): void;
5402         peer_disconnected (their_node_id: number, no_connection_possible: boolean): void;
5403         peer_connected (their_node_id: number, msg: number): void;
5404         handle_channel_reestablish (their_node_id: number, msg: number): void;
5405         handle_channel_update (their_node_id: number, msg: number): void;
5406         handle_error (their_node_id: number, msg: number): void;
5407 }
5408
5409 /* @internal */
5410 export function LDKChannelMessageHandler_new(impl: LDKChannelMessageHandler, MessageSendEventsProvider: LDKMessageSendEventsProvider): number {
5411         if(!isWasmInitialized) {
5412                 throw new Error("initializeWasm() must be awaited first!");
5413         }
5414         var new_obj_idx = js_objs.length;
5415         for (var i = 0; i < js_objs.length; i++) {
5416                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5417         }
5418         js_objs[i] = new WeakRef(impl);
5419         return wasm.TS_LDKChannelMessageHandler_new(i);
5420 }
5421         // void ChannelMessageHandler_handle_open_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKInitFeatures their_features, const struct LDKOpenChannel *NONNULL_PTR msg
5422 /* @internal */
5423 export function ChannelMessageHandler_handle_open_channel(this_arg: number, their_node_id: number, their_features: number, msg: number): void {
5424         if(!isWasmInitialized) {
5425                 throw new Error("initializeWasm() must be awaited first!");
5426         }
5427         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_open_channel(this_arg, their_node_id, their_features, msg);
5428         // debug statements here
5429 }
5430         // void ChannelMessageHandler_handle_accept_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKInitFeatures their_features, const struct LDKAcceptChannel *NONNULL_PTR msg
5431 /* @internal */
5432 export function ChannelMessageHandler_handle_accept_channel(this_arg: number, their_node_id: number, their_features: number, msg: number): void {
5433         if(!isWasmInitialized) {
5434                 throw new Error("initializeWasm() must be awaited first!");
5435         }
5436         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_accept_channel(this_arg, their_node_id, their_features, msg);
5437         // debug statements here
5438 }
5439         // void ChannelMessageHandler_handle_funding_created LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingCreated *NONNULL_PTR msg
5440 /* @internal */
5441 export function ChannelMessageHandler_handle_funding_created(this_arg: number, their_node_id: number, msg: number): void {
5442         if(!isWasmInitialized) {
5443                 throw new Error("initializeWasm() must be awaited first!");
5444         }
5445         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_funding_created(this_arg, their_node_id, msg);
5446         // debug statements here
5447 }
5448         // void ChannelMessageHandler_handle_funding_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingSigned *NONNULL_PTR msg
5449 /* @internal */
5450 export function ChannelMessageHandler_handle_funding_signed(this_arg: number, their_node_id: number, msg: number): void {
5451         if(!isWasmInitialized) {
5452                 throw new Error("initializeWasm() must be awaited first!");
5453         }
5454         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_funding_signed(this_arg, their_node_id, msg);
5455         // debug statements here
5456 }
5457         // void ChannelMessageHandler_handle_funding_locked LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingLocked *NONNULL_PTR msg
5458 /* @internal */
5459 export function ChannelMessageHandler_handle_funding_locked(this_arg: number, their_node_id: number, msg: number): void {
5460         if(!isWasmInitialized) {
5461                 throw new Error("initializeWasm() must be awaited first!");
5462         }
5463         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_funding_locked(this_arg, their_node_id, msg);
5464         // debug statements here
5465 }
5466         // void ChannelMessageHandler_handle_shutdown LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInitFeatures *NONNULL_PTR their_features, const struct LDKShutdown *NONNULL_PTR msg
5467 /* @internal */
5468 export function ChannelMessageHandler_handle_shutdown(this_arg: number, their_node_id: number, their_features: number, msg: number): void {
5469         if(!isWasmInitialized) {
5470                 throw new Error("initializeWasm() must be awaited first!");
5471         }
5472         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_shutdown(this_arg, their_node_id, their_features, msg);
5473         // debug statements here
5474 }
5475         // void ChannelMessageHandler_handle_closing_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKClosingSigned *NONNULL_PTR msg
5476 /* @internal */
5477 export function ChannelMessageHandler_handle_closing_signed(this_arg: number, their_node_id: number, msg: number): void {
5478         if(!isWasmInitialized) {
5479                 throw new Error("initializeWasm() must be awaited first!");
5480         }
5481         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_closing_signed(this_arg, their_node_id, msg);
5482         // debug statements here
5483 }
5484         // void ChannelMessageHandler_handle_update_add_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateAddHTLC *NONNULL_PTR msg
5485 /* @internal */
5486 export function ChannelMessageHandler_handle_update_add_htlc(this_arg: number, their_node_id: number, msg: number): void {
5487         if(!isWasmInitialized) {
5488                 throw new Error("initializeWasm() must be awaited first!");
5489         }
5490         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_add_htlc(this_arg, their_node_id, msg);
5491         // debug statements here
5492 }
5493         // void ChannelMessageHandler_handle_update_fulfill_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFulfillHTLC *NONNULL_PTR msg
5494 /* @internal */
5495 export function ChannelMessageHandler_handle_update_fulfill_htlc(this_arg: number, their_node_id: number, msg: number): void {
5496         if(!isWasmInitialized) {
5497                 throw new Error("initializeWasm() must be awaited first!");
5498         }
5499         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fulfill_htlc(this_arg, their_node_id, msg);
5500         // debug statements here
5501 }
5502         // void ChannelMessageHandler_handle_update_fail_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailHTLC *NONNULL_PTR msg
5503 /* @internal */
5504 export function ChannelMessageHandler_handle_update_fail_htlc(this_arg: number, their_node_id: number, msg: number): void {
5505         if(!isWasmInitialized) {
5506                 throw new Error("initializeWasm() must be awaited first!");
5507         }
5508         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fail_htlc(this_arg, their_node_id, msg);
5509         // debug statements here
5510 }
5511         // void ChannelMessageHandler_handle_update_fail_malformed_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR msg
5512 /* @internal */
5513 export function ChannelMessageHandler_handle_update_fail_malformed_htlc(this_arg: number, their_node_id: number, msg: number): void {
5514         if(!isWasmInitialized) {
5515                 throw new Error("initializeWasm() must be awaited first!");
5516         }
5517         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fail_malformed_htlc(this_arg, their_node_id, msg);
5518         // debug statements here
5519 }
5520         // void ChannelMessageHandler_handle_commitment_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKCommitmentSigned *NONNULL_PTR msg
5521 /* @internal */
5522 export function ChannelMessageHandler_handle_commitment_signed(this_arg: number, their_node_id: number, msg: number): void {
5523         if(!isWasmInitialized) {
5524                 throw new Error("initializeWasm() must be awaited first!");
5525         }
5526         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_commitment_signed(this_arg, their_node_id, msg);
5527         // debug statements here
5528 }
5529         // void ChannelMessageHandler_handle_revoke_and_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKRevokeAndACK *NONNULL_PTR msg
5530 /* @internal */
5531 export function ChannelMessageHandler_handle_revoke_and_ack(this_arg: number, their_node_id: number, msg: number): void {
5532         if(!isWasmInitialized) {
5533                 throw new Error("initializeWasm() must be awaited first!");
5534         }
5535         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_revoke_and_ack(this_arg, their_node_id, msg);
5536         // debug statements here
5537 }
5538         // void ChannelMessageHandler_handle_update_fee LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFee *NONNULL_PTR msg
5539 /* @internal */
5540 export function ChannelMessageHandler_handle_update_fee(this_arg: number, their_node_id: number, msg: number): void {
5541         if(!isWasmInitialized) {
5542                 throw new Error("initializeWasm() must be awaited first!");
5543         }
5544         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fee(this_arg, their_node_id, msg);
5545         // debug statements here
5546 }
5547         // void ChannelMessageHandler_handle_announcement_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAnnouncementSignatures *NONNULL_PTR msg
5548 /* @internal */
5549 export function ChannelMessageHandler_handle_announcement_signatures(this_arg: number, their_node_id: number, msg: number): void {
5550         if(!isWasmInitialized) {
5551                 throw new Error("initializeWasm() must be awaited first!");
5552         }
5553         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_announcement_signatures(this_arg, their_node_id, msg);
5554         // debug statements here
5555 }
5556         // void ChannelMessageHandler_peer_disconnected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, bool no_connection_possible
5557 /* @internal */
5558 export function ChannelMessageHandler_peer_disconnected(this_arg: number, their_node_id: number, no_connection_possible: boolean): void {
5559         if(!isWasmInitialized) {
5560                 throw new Error("initializeWasm() must be awaited first!");
5561         }
5562         const nativeResponseValue = wasm.TS_ChannelMessageHandler_peer_disconnected(this_arg, their_node_id, no_connection_possible);
5563         // debug statements here
5564 }
5565         // void ChannelMessageHandler_peer_connected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR msg
5566 /* @internal */
5567 export function ChannelMessageHandler_peer_connected(this_arg: number, their_node_id: number, msg: number): void {
5568         if(!isWasmInitialized) {
5569                 throw new Error("initializeWasm() must be awaited first!");
5570         }
5571         const nativeResponseValue = wasm.TS_ChannelMessageHandler_peer_connected(this_arg, their_node_id, msg);
5572         // debug statements here
5573 }
5574         // void ChannelMessageHandler_handle_channel_reestablish LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReestablish *NONNULL_PTR msg
5575 /* @internal */
5576 export function ChannelMessageHandler_handle_channel_reestablish(this_arg: number, their_node_id: number, msg: number): void {
5577         if(!isWasmInitialized) {
5578                 throw new Error("initializeWasm() must be awaited first!");
5579         }
5580         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_channel_reestablish(this_arg, their_node_id, msg);
5581         // debug statements here
5582 }
5583         // void ChannelMessageHandler_handle_channel_update LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelUpdate *NONNULL_PTR msg
5584 /* @internal */
5585 export function ChannelMessageHandler_handle_channel_update(this_arg: number, their_node_id: number, msg: number): void {
5586         if(!isWasmInitialized) {
5587                 throw new Error("initializeWasm() must be awaited first!");
5588         }
5589         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_channel_update(this_arg, their_node_id, msg);
5590         // debug statements here
5591 }
5592         // void ChannelMessageHandler_handle_error LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKErrorMessage *NONNULL_PTR msg
5593 /* @internal */
5594 export function ChannelMessageHandler_handle_error(this_arg: number, their_node_id: number, msg: number): void {
5595         if(!isWasmInitialized) {
5596                 throw new Error("initializeWasm() must be awaited first!");
5597         }
5598         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_error(this_arg, their_node_id, msg);
5599         // debug statements here
5600 }
5601 /* @internal */
5602 export interface LDKRoutingMessageHandler {
5603         handle_node_announcement (msg: number): number;
5604         handle_channel_announcement (msg: number): number;
5605         handle_channel_update (msg: number): number;
5606         get_next_channel_announcements (starting_point: bigint, batch_amount: number): number;
5607         get_next_node_announcements (starting_point: number, batch_amount: number): number;
5608         sync_routing_table (their_node_id: number, init: number): void;
5609         handle_reply_channel_range (their_node_id: number, msg: number): number;
5610         handle_reply_short_channel_ids_end (their_node_id: number, msg: number): number;
5611         handle_query_channel_range (their_node_id: number, msg: number): number;
5612         handle_query_short_channel_ids (their_node_id: number, msg: number): number;
5613 }
5614
5615 /* @internal */
5616 export function LDKRoutingMessageHandler_new(impl: LDKRoutingMessageHandler, MessageSendEventsProvider: LDKMessageSendEventsProvider): number {
5617         if(!isWasmInitialized) {
5618                 throw new Error("initializeWasm() must be awaited first!");
5619         }
5620         var new_obj_idx = js_objs.length;
5621         for (var i = 0; i < js_objs.length; i++) {
5622                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5623         }
5624         js_objs[i] = new WeakRef(impl);
5625         return wasm.TS_LDKRoutingMessageHandler_new(i);
5626 }
5627         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg
5628 /* @internal */
5629 export function RoutingMessageHandler_handle_node_announcement(this_arg: number, msg: number): number {
5630         if(!isWasmInitialized) {
5631                 throw new Error("initializeWasm() must be awaited first!");
5632         }
5633         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_node_announcement(this_arg, msg);
5634         return nativeResponseValue;
5635 }
5636         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg
5637 /* @internal */
5638 export function RoutingMessageHandler_handle_channel_announcement(this_arg: number, msg: number): number {
5639         if(!isWasmInitialized) {
5640                 throw new Error("initializeWasm() must be awaited first!");
5641         }
5642         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_channel_announcement(this_arg, msg);
5643         return nativeResponseValue;
5644 }
5645         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_update LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg
5646 /* @internal */
5647 export function RoutingMessageHandler_handle_channel_update(this_arg: number, msg: number): number {
5648         if(!isWasmInitialized) {
5649                 throw new Error("initializeWasm() must be awaited first!");
5650         }
5651         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_channel_update(this_arg, msg);
5652         return nativeResponseValue;
5653 }
5654         // LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ RoutingMessageHandler_get_next_channel_announcements LDKRoutingMessageHandler *NONNULL_PTR this_arg, uint64_t starting_point, uint8_t batch_amount
5655 /* @internal */
5656 export function RoutingMessageHandler_get_next_channel_announcements(this_arg: number, starting_point: bigint, batch_amount: number): number {
5657         if(!isWasmInitialized) {
5658                 throw new Error("initializeWasm() must be awaited first!");
5659         }
5660         const nativeResponseValue = wasm.TS_RoutingMessageHandler_get_next_channel_announcements(this_arg, starting_point, batch_amount);
5661         return nativeResponseValue;
5662 }
5663         // LDKCVec_NodeAnnouncementZ RoutingMessageHandler_get_next_node_announcements LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey starting_point, uint8_t batch_amount
5664 /* @internal */
5665 export function RoutingMessageHandler_get_next_node_announcements(this_arg: number, starting_point: number, batch_amount: number): number {
5666         if(!isWasmInitialized) {
5667                 throw new Error("initializeWasm() must be awaited first!");
5668         }
5669         const nativeResponseValue = wasm.TS_RoutingMessageHandler_get_next_node_announcements(this_arg, starting_point, batch_amount);
5670         return nativeResponseValue;
5671 }
5672         // void RoutingMessageHandler_sync_routing_table LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init
5673 /* @internal */
5674 export function RoutingMessageHandler_sync_routing_table(this_arg: number, their_node_id: number, init: number): void {
5675         if(!isWasmInitialized) {
5676                 throw new Error("initializeWasm() must be awaited first!");
5677         }
5678         const nativeResponseValue = wasm.TS_RoutingMessageHandler_sync_routing_table(this_arg, their_node_id, init);
5679         // debug statements here
5680 }
5681         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyChannelRange msg
5682 /* @internal */
5683 export function RoutingMessageHandler_handle_reply_channel_range(this_arg: number, their_node_id: number, msg: number): number {
5684         if(!isWasmInitialized) {
5685                 throw new Error("initializeWasm() must be awaited first!");
5686         }
5687         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_reply_channel_range(this_arg, their_node_id, msg);
5688         return nativeResponseValue;
5689 }
5690         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_short_channel_ids_end LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyShortChannelIdsEnd msg
5691 /* @internal */
5692 export function RoutingMessageHandler_handle_reply_short_channel_ids_end(this_arg: number, their_node_id: number, msg: number): number {
5693         if(!isWasmInitialized) {
5694                 throw new Error("initializeWasm() must be awaited first!");
5695         }
5696         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_reply_short_channel_ids_end(this_arg, their_node_id, msg);
5697         return nativeResponseValue;
5698 }
5699         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryChannelRange msg
5700 /* @internal */
5701 export function RoutingMessageHandler_handle_query_channel_range(this_arg: number, their_node_id: number, msg: number): number {
5702         if(!isWasmInitialized) {
5703                 throw new Error("initializeWasm() must be awaited first!");
5704         }
5705         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_query_channel_range(this_arg, their_node_id, msg);
5706         return nativeResponseValue;
5707 }
5708         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_short_channel_ids LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryShortChannelIds msg
5709 /* @internal */
5710 export function RoutingMessageHandler_handle_query_short_channel_ids(this_arg: number, their_node_id: number, msg: number): number {
5711         if(!isWasmInitialized) {
5712                 throw new Error("initializeWasm() must be awaited first!");
5713         }
5714         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_query_short_channel_ids(this_arg, their_node_id, msg);
5715         return nativeResponseValue;
5716 }
5717 /* @internal */
5718 export interface LDKCustomMessageReader {
5719         read (message_type: number, buffer: number): number;
5720 }
5721
5722 /* @internal */
5723 export function LDKCustomMessageReader_new(impl: LDKCustomMessageReader): number {
5724         if(!isWasmInitialized) {
5725                 throw new Error("initializeWasm() must be awaited first!");
5726         }
5727         var new_obj_idx = js_objs.length;
5728         for (var i = 0; i < js_objs.length; i++) {
5729                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5730         }
5731         js_objs[i] = new WeakRef(impl);
5732         return wasm.TS_LDKCustomMessageReader_new(i);
5733 }
5734         // LDKCResult_COption_TypeZDecodeErrorZ CustomMessageReader_read LDKCustomMessageReader *NONNULL_PTR this_arg, uint16_t message_type, struct LDKu8slice buffer
5735 /* @internal */
5736 export function CustomMessageReader_read(this_arg: number, message_type: number, buffer: number): number {
5737         if(!isWasmInitialized) {
5738                 throw new Error("initializeWasm() must be awaited first!");
5739         }
5740         const nativeResponseValue = wasm.TS_CustomMessageReader_read(this_arg, message_type, buffer);
5741         return nativeResponseValue;
5742 }
5743 /* @internal */
5744 export interface LDKCustomMessageHandler {
5745         handle_custom_message (msg: number, sender_node_id: number): number;
5746         get_and_clear_pending_msg (): number;
5747 }
5748
5749 /* @internal */
5750 export function LDKCustomMessageHandler_new(impl: LDKCustomMessageHandler, CustomMessageReader: LDKCustomMessageReader): number {
5751         if(!isWasmInitialized) {
5752                 throw new Error("initializeWasm() must be awaited first!");
5753         }
5754         var new_obj_idx = js_objs.length;
5755         for (var i = 0; i < js_objs.length; i++) {
5756                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5757         }
5758         js_objs[i] = new WeakRef(impl);
5759         return wasm.TS_LDKCustomMessageHandler_new(i);
5760 }
5761         // LDKCResult_NoneLightningErrorZ CustomMessageHandler_handle_custom_message LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKType msg, struct LDKPublicKey sender_node_id
5762 /* @internal */
5763 export function CustomMessageHandler_handle_custom_message(this_arg: number, msg: number, sender_node_id: number): number {
5764         if(!isWasmInitialized) {
5765                 throw new Error("initializeWasm() must be awaited first!");
5766         }
5767         const nativeResponseValue = wasm.TS_CustomMessageHandler_handle_custom_message(this_arg, msg, sender_node_id);
5768         return nativeResponseValue;
5769 }
5770         // LDKCVec_C2Tuple_PublicKeyTypeZZ CustomMessageHandler_get_and_clear_pending_msg LDKCustomMessageHandler *NONNULL_PTR this_arg
5771 /* @internal */
5772 export function CustomMessageHandler_get_and_clear_pending_msg(this_arg: number): number {
5773         if(!isWasmInitialized) {
5774                 throw new Error("initializeWasm() must be awaited first!");
5775         }
5776         const nativeResponseValue = wasm.TS_CustomMessageHandler_get_and_clear_pending_msg(this_arg);
5777         return nativeResponseValue;
5778 }
5779 /* @internal */
5780 export interface LDKSocketDescriptor {
5781         send_data (data: number, resume_read: boolean): number;
5782         disconnect_socket (): void;
5783         eq (other_arg: number): boolean;
5784         hash (): bigint;
5785 }
5786
5787 /* @internal */
5788 export function LDKSocketDescriptor_new(impl: LDKSocketDescriptor): number {
5789         if(!isWasmInitialized) {
5790                 throw new Error("initializeWasm() must be awaited first!");
5791         }
5792         var new_obj_idx = js_objs.length;
5793         for (var i = 0; i < js_objs.length; i++) {
5794                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5795         }
5796         js_objs[i] = new WeakRef(impl);
5797         return wasm.TS_LDKSocketDescriptor_new(i);
5798 }
5799         // uintptr_t SocketDescriptor_send_data LDKSocketDescriptor *NONNULL_PTR this_arg, struct LDKu8slice data, bool resume_read
5800 /* @internal */
5801 export function SocketDescriptor_send_data(this_arg: number, data: number, resume_read: boolean): number {
5802         if(!isWasmInitialized) {
5803                 throw new Error("initializeWasm() must be awaited first!");
5804         }
5805         const nativeResponseValue = wasm.TS_SocketDescriptor_send_data(this_arg, data, resume_read);
5806         return nativeResponseValue;
5807 }
5808         // void SocketDescriptor_disconnect_socket LDKSocketDescriptor *NONNULL_PTR this_arg
5809 /* @internal */
5810 export function SocketDescriptor_disconnect_socket(this_arg: number): void {
5811         if(!isWasmInitialized) {
5812                 throw new Error("initializeWasm() must be awaited first!");
5813         }
5814         const nativeResponseValue = wasm.TS_SocketDescriptor_disconnect_socket(this_arg);
5815         // debug statements here
5816 }
5817         // uint64_t SocketDescriptor_hash LDKSocketDescriptor *NONNULL_PTR this_arg
5818 /* @internal */
5819 export function SocketDescriptor_hash(this_arg: number): bigint {
5820         if(!isWasmInitialized) {
5821                 throw new Error("initializeWasm() must be awaited first!");
5822         }
5823         const nativeResponseValue = wasm.TS_SocketDescriptor_hash(this_arg);
5824         return nativeResponseValue;
5825 }
5826 /* @internal */
5827 export class LDKEffectiveCapacity {
5828         protected constructor() {}
5829 }
5830 /* @internal */
5831 export function LDKEffectiveCapacity_ty_from_ptr(ptr: number): number {
5832         if(!isWasmInitialized) {
5833                 throw new Error("initializeWasm() must be awaited first!");
5834         }
5835         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_ty_from_ptr(ptr);
5836         return nativeResponseValue;
5837 }
5838 /* @internal */
5839 export function LDKEffectiveCapacity_ExactLiquidity_get_liquidity_msat(ptr: number): bigint {
5840         if(!isWasmInitialized) {
5841                 throw new Error("initializeWasm() must be awaited first!");
5842         }
5843         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_ExactLiquidity_get_liquidity_msat(ptr);
5844         return nativeResponseValue;
5845 }
5846 /* @internal */
5847 export function LDKEffectiveCapacity_MaximumHTLC_get_amount_msat(ptr: number): bigint {
5848         if(!isWasmInitialized) {
5849                 throw new Error("initializeWasm() must be awaited first!");
5850         }
5851         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_MaximumHTLC_get_amount_msat(ptr);
5852         return nativeResponseValue;
5853 }
5854 /* @internal */
5855 export function LDKEffectiveCapacity_Total_get_capacity_msat(ptr: number): bigint {
5856         if(!isWasmInitialized) {
5857                 throw new Error("initializeWasm() must be awaited first!");
5858         }
5859         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_Total_get_capacity_msat(ptr);
5860         return nativeResponseValue;
5861 }
5862 /* @internal */
5863 export interface LDKScore {
5864         channel_penalty_msat (short_channel_id: bigint, send_amt_msat: bigint, capacity_msat: bigint, source: number, target: number): bigint;
5865         payment_path_failed (path: number, short_channel_id: bigint): void;
5866         payment_path_successful (path: number): void;
5867         write (): number;
5868 }
5869
5870 /* @internal */
5871 export function LDKScore_new(impl: LDKScore): number {
5872         if(!isWasmInitialized) {
5873                 throw new Error("initializeWasm() must be awaited first!");
5874         }
5875         var new_obj_idx = js_objs.length;
5876         for (var i = 0; i < js_objs.length; i++) {
5877                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5878         }
5879         js_objs[i] = new WeakRef(impl);
5880         return wasm.TS_LDKScore_new(i);
5881 }
5882         // uint64_t Score_channel_penalty_msat LDKScore *NONNULL_PTR this_arg, uint64_t short_channel_id, uint64_t send_amt_msat, uint64_t capacity_msat, const struct LDKNodeId *NONNULL_PTR source, const struct LDKNodeId *NONNULL_PTR target
5883 /* @internal */
5884 export function Score_channel_penalty_msat(this_arg: number, short_channel_id: bigint, send_amt_msat: bigint, capacity_msat: bigint, source: number, target: number): bigint {
5885         if(!isWasmInitialized) {
5886                 throw new Error("initializeWasm() must be awaited first!");
5887         }
5888         const nativeResponseValue = wasm.TS_Score_channel_penalty_msat(this_arg, short_channel_id, send_amt_msat, capacity_msat, source, target);
5889         return nativeResponseValue;
5890 }
5891         // void Score_payment_path_failed LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path, uint64_t short_channel_id
5892 /* @internal */
5893 export function Score_payment_path_failed(this_arg: number, path: number, short_channel_id: bigint): void {
5894         if(!isWasmInitialized) {
5895                 throw new Error("initializeWasm() must be awaited first!");
5896         }
5897         const nativeResponseValue = wasm.TS_Score_payment_path_failed(this_arg, path, short_channel_id);
5898         // debug statements here
5899 }
5900         // void Score_payment_path_successful LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path
5901 /* @internal */
5902 export function Score_payment_path_successful(this_arg: number, path: number): void {
5903         if(!isWasmInitialized) {
5904                 throw new Error("initializeWasm() must be awaited first!");
5905         }
5906         const nativeResponseValue = wasm.TS_Score_payment_path_successful(this_arg, path);
5907         // debug statements here
5908 }
5909         // LDKCVec_u8Z Score_write LDKScore *NONNULL_PTR this_arg
5910 /* @internal */
5911 export function Score_write(this_arg: number): number {
5912         if(!isWasmInitialized) {
5913                 throw new Error("initializeWasm() must be awaited first!");
5914         }
5915         const nativeResponseValue = wasm.TS_Score_write(this_arg);
5916         return nativeResponseValue;
5917 }
5918 /* @internal */
5919 export interface LDKLockableScore {
5920         lock (): number;
5921 }
5922
5923 /* @internal */
5924 export function LDKLockableScore_new(impl: LDKLockableScore): number {
5925         if(!isWasmInitialized) {
5926                 throw new Error("initializeWasm() must be awaited first!");
5927         }
5928         var new_obj_idx = js_objs.length;
5929         for (var i = 0; i < js_objs.length; i++) {
5930                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5931         }
5932         js_objs[i] = new WeakRef(impl);
5933         return wasm.TS_LDKLockableScore_new(i);
5934 }
5935         // LDKScore LockableScore_lock LDKLockableScore *NONNULL_PTR this_arg
5936 /* @internal */
5937 export function LockableScore_lock(this_arg: number): number {
5938         if(!isWasmInitialized) {
5939                 throw new Error("initializeWasm() must be awaited first!");
5940         }
5941         const nativeResponseValue = wasm.TS_LockableScore_lock(this_arg);
5942         return nativeResponseValue;
5943 }
5944 /* @internal */
5945 export class LDKFallback {
5946         protected constructor() {}
5947 }
5948 /* @internal */
5949 export function LDKFallback_ty_from_ptr(ptr: number): number {
5950         if(!isWasmInitialized) {
5951                 throw new Error("initializeWasm() must be awaited first!");
5952         }
5953         const nativeResponseValue = wasm.TS_LDKFallback_ty_from_ptr(ptr);
5954         return nativeResponseValue;
5955 }
5956 /* @internal */
5957 export function LDKFallback_SegWitProgram_get_version(ptr: number): number {
5958         if(!isWasmInitialized) {
5959                 throw new Error("initializeWasm() must be awaited first!");
5960         }
5961         const nativeResponseValue = wasm.TS_LDKFallback_SegWitProgram_get_version(ptr);
5962         return nativeResponseValue;
5963 }
5964 /* @internal */
5965 export function LDKFallback_SegWitProgram_get_program(ptr: number): number {
5966         if(!isWasmInitialized) {
5967                 throw new Error("initializeWasm() must be awaited first!");
5968         }
5969         const nativeResponseValue = wasm.TS_LDKFallback_SegWitProgram_get_program(ptr);
5970         return nativeResponseValue;
5971 }
5972 /* @internal */
5973 export function LDKFallback_PubKeyHash_get_pub_key_hash(ptr: number): number {
5974         if(!isWasmInitialized) {
5975                 throw new Error("initializeWasm() must be awaited first!");
5976         }
5977         const nativeResponseValue = wasm.TS_LDKFallback_PubKeyHash_get_pub_key_hash(ptr);
5978         return nativeResponseValue;
5979 }
5980 /* @internal */
5981 export function LDKFallback_ScriptHash_get_script_hash(ptr: number): number {
5982         if(!isWasmInitialized) {
5983                 throw new Error("initializeWasm() must be awaited first!");
5984         }
5985         const nativeResponseValue = wasm.TS_LDKFallback_ScriptHash_get_script_hash(ptr);
5986         return nativeResponseValue;
5987 }
5988 /* @internal */
5989 export interface LDKPayer {
5990         node_id (): number;
5991         first_hops (): number;
5992         send_payment (route: number, payment_hash: number, payment_secret: number): number;
5993         send_spontaneous_payment (route: number, payment_preimage: number): number;
5994         retry_payment (route: number, payment_id: number): number;
5995         abandon_payment (payment_id: number): void;
5996 }
5997
5998 /* @internal */
5999 export function LDKPayer_new(impl: LDKPayer): number {
6000         if(!isWasmInitialized) {
6001                 throw new Error("initializeWasm() must be awaited first!");
6002         }
6003         var new_obj_idx = js_objs.length;
6004         for (var i = 0; i < js_objs.length; i++) {
6005                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6006         }
6007         js_objs[i] = new WeakRef(impl);
6008         return wasm.TS_LDKPayer_new(i);
6009 }
6010         // LDKPublicKey Payer_node_id LDKPayer *NONNULL_PTR this_arg
6011 /* @internal */
6012 export function Payer_node_id(this_arg: number): number {
6013         if(!isWasmInitialized) {
6014                 throw new Error("initializeWasm() must be awaited first!");
6015         }
6016         const nativeResponseValue = wasm.TS_Payer_node_id(this_arg);
6017         return nativeResponseValue;
6018 }
6019         // LDKCVec_ChannelDetailsZ Payer_first_hops LDKPayer *NONNULL_PTR this_arg
6020 /* @internal */
6021 export function Payer_first_hops(this_arg: number): number {
6022         if(!isWasmInitialized) {
6023                 throw new Error("initializeWasm() must be awaited first!");
6024         }
6025         const nativeResponseValue = wasm.TS_Payer_first_hops(this_arg);
6026         return nativeResponseValue;
6027 }
6028         // LDKCResult_PaymentIdPaymentSendFailureZ Payer_send_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret
6029 /* @internal */
6030 export function Payer_send_payment(this_arg: number, route: number, payment_hash: number, payment_secret: number): number {
6031         if(!isWasmInitialized) {
6032                 throw new Error("initializeWasm() must be awaited first!");
6033         }
6034         const nativeResponseValue = wasm.TS_Payer_send_payment(this_arg, route, payment_hash, payment_secret);
6035         return nativeResponseValue;
6036 }
6037         // LDKCResult_PaymentIdPaymentSendFailureZ Payer_send_spontaneous_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_preimage
6038 /* @internal */
6039 export function Payer_send_spontaneous_payment(this_arg: number, route: number, payment_preimage: number): number {
6040         if(!isWasmInitialized) {
6041                 throw new Error("initializeWasm() must be awaited first!");
6042         }
6043         const nativeResponseValue = wasm.TS_Payer_send_spontaneous_payment(this_arg, route, payment_preimage);
6044         return nativeResponseValue;
6045 }
6046         // LDKCResult_NonePaymentSendFailureZ Payer_retry_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_id
6047 /* @internal */
6048 export function Payer_retry_payment(this_arg: number, route: number, payment_id: number): number {
6049         if(!isWasmInitialized) {
6050                 throw new Error("initializeWasm() must be awaited first!");
6051         }
6052         const nativeResponseValue = wasm.TS_Payer_retry_payment(this_arg, route, payment_id);
6053         return nativeResponseValue;
6054 }
6055         // void Payer_abandon_payment LDKPayer *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id
6056 /* @internal */
6057 export function Payer_abandon_payment(this_arg: number, payment_id: number): void {
6058         if(!isWasmInitialized) {
6059                 throw new Error("initializeWasm() must be awaited first!");
6060         }
6061         const nativeResponseValue = wasm.TS_Payer_abandon_payment(this_arg, payment_id);
6062         // debug statements here
6063 }
6064 /* @internal */
6065 export interface LDKRouter {
6066         find_route (payer: number, route_params: number, payment_hash: number, first_hops: number, scorer: number): number;
6067 }
6068
6069 /* @internal */
6070 export function LDKRouter_new(impl: LDKRouter): number {
6071         if(!isWasmInitialized) {
6072                 throw new Error("initializeWasm() must be awaited first!");
6073         }
6074         var new_obj_idx = js_objs.length;
6075         for (var i = 0; i < js_objs.length; i++) {
6076                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6077         }
6078         js_objs[i] = new WeakRef(impl);
6079         return wasm.TS_LDKRouter_new(i);
6080 }
6081         // LDKCResult_RouteLightningErrorZ Router_find_route LDKRouter *NONNULL_PTR this_arg, struct LDKPublicKey payer, const struct LDKRouteParameters *NONNULL_PTR route_params, const uint8_t (*payment_hash)[32], struct LDKCVec_ChannelDetailsZ *first_hops, const struct LDKScore *NONNULL_PTR scorer
6082 /* @internal */
6083 export function Router_find_route(this_arg: number, payer: number, route_params: number, payment_hash: number, first_hops: number, scorer: number): number {
6084         if(!isWasmInitialized) {
6085                 throw new Error("initializeWasm() must be awaited first!");
6086         }
6087         const nativeResponseValue = wasm.TS_Router_find_route(this_arg, payer, route_params, payment_hash, first_hops, scorer);
6088         return nativeResponseValue;
6089 }
6090         // struct LDKStr _ldk_get_compiled_version(void);
6091 /* @internal */
6092 export function _ldk_get_compiled_version(): number {
6093         if(!isWasmInitialized) {
6094                 throw new Error("initializeWasm() must be awaited first!");
6095         }
6096         const nativeResponseValue = wasm.TS__ldk_get_compiled_version();
6097         return nativeResponseValue;
6098 }
6099         // struct LDKStr _ldk_c_bindings_get_compiled_version(void);
6100 /* @internal */
6101 export function _ldk_c_bindings_get_compiled_version(): number {
6102         if(!isWasmInitialized) {
6103                 throw new Error("initializeWasm() must be awaited first!");
6104         }
6105         const nativeResponseValue = wasm.TS__ldk_c_bindings_get_compiled_version();
6106         return nativeResponseValue;
6107 }
6108         // void Transaction_free(struct LDKTransaction _res);
6109 /* @internal */
6110 export function Transaction_free(_res: number): void {
6111         if(!isWasmInitialized) {
6112                 throw new Error("initializeWasm() must be awaited first!");
6113         }
6114         const nativeResponseValue = wasm.TS_Transaction_free(_res);
6115         // debug statements here
6116 }
6117         // struct LDKTxOut TxOut_new(struct LDKCVec_u8Z script_pubkey, uint64_t value);
6118 /* @internal */
6119 export function TxOut_new(script_pubkey: number, value: bigint): number {
6120         if(!isWasmInitialized) {
6121                 throw new Error("initializeWasm() must be awaited first!");
6122         }
6123         const nativeResponseValue = wasm.TS_TxOut_new(script_pubkey, value);
6124         return nativeResponseValue;
6125 }
6126         // void TxOut_free(struct LDKTxOut _res);
6127 /* @internal */
6128 export function TxOut_free(_res: number): void {
6129         if(!isWasmInitialized) {
6130                 throw new Error("initializeWasm() must be awaited first!");
6131         }
6132         const nativeResponseValue = wasm.TS_TxOut_free(_res);
6133         // debug statements here
6134 }
6135         // uintptr_t TxOut_clone_ptr(LDKTxOut *NONNULL_PTR arg);
6136 /* @internal */
6137 export function TxOut_clone_ptr(arg: number): number {
6138         if(!isWasmInitialized) {
6139                 throw new Error("initializeWasm() must be awaited first!");
6140         }
6141         const nativeResponseValue = wasm.TS_TxOut_clone_ptr(arg);
6142         return nativeResponseValue;
6143 }
6144         // struct LDKTxOut TxOut_clone(const struct LDKTxOut *NONNULL_PTR orig);
6145 /* @internal */
6146 export function TxOut_clone(orig: number): number {
6147         if(!isWasmInitialized) {
6148                 throw new Error("initializeWasm() must be awaited first!");
6149         }
6150         const nativeResponseValue = wasm.TS_TxOut_clone(orig);
6151         return nativeResponseValue;
6152 }
6153         // void Str_free(struct LDKStr _res);
6154 /* @internal */
6155 export function Str_free(_res: number): void {
6156         if(!isWasmInitialized) {
6157                 throw new Error("initializeWasm() must be awaited first!");
6158         }
6159         const nativeResponseValue = wasm.TS_Str_free(_res);
6160         // debug statements here
6161 }
6162         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_ok(void);
6163 /* @internal */
6164 export function CResult_NoneNoneZ_ok(): number {
6165         if(!isWasmInitialized) {
6166                 throw new Error("initializeWasm() must be awaited first!");
6167         }
6168         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_ok();
6169         return nativeResponseValue;
6170 }
6171         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_err(void);
6172 /* @internal */
6173 export function CResult_NoneNoneZ_err(): number {
6174         if(!isWasmInitialized) {
6175                 throw new Error("initializeWasm() must be awaited first!");
6176         }
6177         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_err();
6178         return nativeResponseValue;
6179 }
6180         // bool CResult_NoneNoneZ_is_ok(const struct LDKCResult_NoneNoneZ *NONNULL_PTR o);
6181 /* @internal */
6182 export function CResult_NoneNoneZ_is_ok(o: number): boolean {
6183         if(!isWasmInitialized) {
6184                 throw new Error("initializeWasm() must be awaited first!");
6185         }
6186         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_is_ok(o);
6187         return nativeResponseValue;
6188 }
6189         // void CResult_NoneNoneZ_free(struct LDKCResult_NoneNoneZ _res);
6190 /* @internal */
6191 export function CResult_NoneNoneZ_free(_res: number): void {
6192         if(!isWasmInitialized) {
6193                 throw new Error("initializeWasm() must be awaited first!");
6194         }
6195         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_free(_res);
6196         // debug statements here
6197 }
6198         // uintptr_t CResult_NoneNoneZ_clone_ptr(LDKCResult_NoneNoneZ *NONNULL_PTR arg);
6199 /* @internal */
6200 export function CResult_NoneNoneZ_clone_ptr(arg: number): number {
6201         if(!isWasmInitialized) {
6202                 throw new Error("initializeWasm() must be awaited first!");
6203         }
6204         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_clone_ptr(arg);
6205         return nativeResponseValue;
6206 }
6207         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_clone(const struct LDKCResult_NoneNoneZ *NONNULL_PTR orig);
6208 /* @internal */
6209 export function CResult_NoneNoneZ_clone(orig: number): number {
6210         if(!isWasmInitialized) {
6211                 throw new Error("initializeWasm() must be awaited first!");
6212         }
6213         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_clone(orig);
6214         return nativeResponseValue;
6215 }
6216         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(struct LDKCounterpartyCommitmentSecrets o);
6217 /* @internal */
6218 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(o: number): number {
6219         if(!isWasmInitialized) {
6220                 throw new Error("initializeWasm() must be awaited first!");
6221         }
6222         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(o);
6223         return nativeResponseValue;
6224 }
6225         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(struct LDKDecodeError e);
6226 /* @internal */
6227 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(e: number): number {
6228         if(!isWasmInitialized) {
6229                 throw new Error("initializeWasm() must be awaited first!");
6230         }
6231         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(e);
6232         return nativeResponseValue;
6233 }
6234         // bool CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR o);
6235 /* @internal */
6236 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(o: number): boolean {
6237         if(!isWasmInitialized) {
6238                 throw new Error("initializeWasm() must be awaited first!");
6239         }
6240         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(o);
6241         return nativeResponseValue;
6242 }
6243         // void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ _res);
6244 /* @internal */
6245 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(_res: number): void {
6246         if(!isWasmInitialized) {
6247                 throw new Error("initializeWasm() must be awaited first!");
6248         }
6249         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(_res);
6250         // debug statements here
6251 }
6252         // uintptr_t CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR arg);
6253 /* @internal */
6254 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(arg: number): number {
6255         if(!isWasmInitialized) {
6256                 throw new Error("initializeWasm() must be awaited first!");
6257         }
6258         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(arg);
6259         return nativeResponseValue;
6260 }
6261         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR orig);
6262 /* @internal */
6263 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(orig: number): number {
6264         if(!isWasmInitialized) {
6265                 throw new Error("initializeWasm() must be awaited first!");
6266         }
6267         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(orig);
6268         return nativeResponseValue;
6269 }
6270         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_ok(struct LDKSecretKey o);
6271 /* @internal */
6272 export function CResult_SecretKeyErrorZ_ok(o: number): number {
6273         if(!isWasmInitialized) {
6274                 throw new Error("initializeWasm() must be awaited first!");
6275         }
6276         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_ok(o);
6277         return nativeResponseValue;
6278 }
6279         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_err(enum LDKSecp256k1Error e);
6280 /* @internal */
6281 export function CResult_SecretKeyErrorZ_err(e: Secp256k1Error): number {
6282         if(!isWasmInitialized) {
6283                 throw new Error("initializeWasm() must be awaited first!");
6284         }
6285         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_err(e);
6286         return nativeResponseValue;
6287 }
6288         // bool CResult_SecretKeyErrorZ_is_ok(const struct LDKCResult_SecretKeyErrorZ *NONNULL_PTR o);
6289 /* @internal */
6290 export function CResult_SecretKeyErrorZ_is_ok(o: number): boolean {
6291         if(!isWasmInitialized) {
6292                 throw new Error("initializeWasm() must be awaited first!");
6293         }
6294         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_is_ok(o);
6295         return nativeResponseValue;
6296 }
6297         // void CResult_SecretKeyErrorZ_free(struct LDKCResult_SecretKeyErrorZ _res);
6298 /* @internal */
6299 export function CResult_SecretKeyErrorZ_free(_res: number): void {
6300         if(!isWasmInitialized) {
6301                 throw new Error("initializeWasm() must be awaited first!");
6302         }
6303         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_free(_res);
6304         // debug statements here
6305 }
6306         // uintptr_t CResult_SecretKeyErrorZ_clone_ptr(LDKCResult_SecretKeyErrorZ *NONNULL_PTR arg);
6307 /* @internal */
6308 export function CResult_SecretKeyErrorZ_clone_ptr(arg: number): number {
6309         if(!isWasmInitialized) {
6310                 throw new Error("initializeWasm() must be awaited first!");
6311         }
6312         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_clone_ptr(arg);
6313         return nativeResponseValue;
6314 }
6315         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_clone(const struct LDKCResult_SecretKeyErrorZ *NONNULL_PTR orig);
6316 /* @internal */
6317 export function CResult_SecretKeyErrorZ_clone(orig: number): number {
6318         if(!isWasmInitialized) {
6319                 throw new Error("initializeWasm() must be awaited first!");
6320         }
6321         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_clone(orig);
6322         return nativeResponseValue;
6323 }
6324         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_ok(struct LDKPublicKey o);
6325 /* @internal */
6326 export function CResult_PublicKeyErrorZ_ok(o: number): number {
6327         if(!isWasmInitialized) {
6328                 throw new Error("initializeWasm() must be awaited first!");
6329         }
6330         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_ok(o);
6331         return nativeResponseValue;
6332 }
6333         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_err(enum LDKSecp256k1Error e);
6334 /* @internal */
6335 export function CResult_PublicKeyErrorZ_err(e: Secp256k1Error): number {
6336         if(!isWasmInitialized) {
6337                 throw new Error("initializeWasm() must be awaited first!");
6338         }
6339         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_err(e);
6340         return nativeResponseValue;
6341 }
6342         // bool CResult_PublicKeyErrorZ_is_ok(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR o);
6343 /* @internal */
6344 export function CResult_PublicKeyErrorZ_is_ok(o: number): boolean {
6345         if(!isWasmInitialized) {
6346                 throw new Error("initializeWasm() must be awaited first!");
6347         }
6348         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_is_ok(o);
6349         return nativeResponseValue;
6350 }
6351         // void CResult_PublicKeyErrorZ_free(struct LDKCResult_PublicKeyErrorZ _res);
6352 /* @internal */
6353 export function CResult_PublicKeyErrorZ_free(_res: number): void {
6354         if(!isWasmInitialized) {
6355                 throw new Error("initializeWasm() must be awaited first!");
6356         }
6357         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_free(_res);
6358         // debug statements here
6359 }
6360         // uintptr_t CResult_PublicKeyErrorZ_clone_ptr(LDKCResult_PublicKeyErrorZ *NONNULL_PTR arg);
6361 /* @internal */
6362 export function CResult_PublicKeyErrorZ_clone_ptr(arg: number): number {
6363         if(!isWasmInitialized) {
6364                 throw new Error("initializeWasm() must be awaited first!");
6365         }
6366         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_clone_ptr(arg);
6367         return nativeResponseValue;
6368 }
6369         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_clone(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR orig);
6370 /* @internal */
6371 export function CResult_PublicKeyErrorZ_clone(orig: number): number {
6372         if(!isWasmInitialized) {
6373                 throw new Error("initializeWasm() must be awaited first!");
6374         }
6375         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_clone(orig);
6376         return nativeResponseValue;
6377 }
6378         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o);
6379 /* @internal */
6380 export function CResult_TxCreationKeysDecodeErrorZ_ok(o: number): number {
6381         if(!isWasmInitialized) {
6382                 throw new Error("initializeWasm() must be awaited first!");
6383         }
6384         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_ok(o);
6385         return nativeResponseValue;
6386 }
6387         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e);
6388 /* @internal */
6389 export function CResult_TxCreationKeysDecodeErrorZ_err(e: number): number {
6390         if(!isWasmInitialized) {
6391                 throw new Error("initializeWasm() must be awaited first!");
6392         }
6393         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_err(e);
6394         return nativeResponseValue;
6395 }
6396         // bool CResult_TxCreationKeysDecodeErrorZ_is_ok(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR o);
6397 /* @internal */
6398 export function CResult_TxCreationKeysDecodeErrorZ_is_ok(o: number): boolean {
6399         if(!isWasmInitialized) {
6400                 throw new Error("initializeWasm() must be awaited first!");
6401         }
6402         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_is_ok(o);
6403         return nativeResponseValue;
6404 }
6405         // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res);
6406 /* @internal */
6407 export function CResult_TxCreationKeysDecodeErrorZ_free(_res: number): void {
6408         if(!isWasmInitialized) {
6409                 throw new Error("initializeWasm() must be awaited first!");
6410         }
6411         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_free(_res);
6412         // debug statements here
6413 }
6414         // uintptr_t CResult_TxCreationKeysDecodeErrorZ_clone_ptr(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR arg);
6415 /* @internal */
6416 export function CResult_TxCreationKeysDecodeErrorZ_clone_ptr(arg: number): number {
6417         if(!isWasmInitialized) {
6418                 throw new Error("initializeWasm() must be awaited first!");
6419         }
6420         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_clone_ptr(arg);
6421         return nativeResponseValue;
6422 }
6423         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig);
6424 /* @internal */
6425 export function CResult_TxCreationKeysDecodeErrorZ_clone(orig: number): number {
6426         if(!isWasmInitialized) {
6427                 throw new Error("initializeWasm() must be awaited first!");
6428         }
6429         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_clone(orig);
6430         return nativeResponseValue;
6431 }
6432         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o);
6433 /* @internal */
6434 export function CResult_ChannelPublicKeysDecodeErrorZ_ok(o: number): number {
6435         if(!isWasmInitialized) {
6436                 throw new Error("initializeWasm() must be awaited first!");
6437         }
6438         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_ok(o);
6439         return nativeResponseValue;
6440 }
6441         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e);
6442 /* @internal */
6443 export function CResult_ChannelPublicKeysDecodeErrorZ_err(e: number): number {
6444         if(!isWasmInitialized) {
6445                 throw new Error("initializeWasm() must be awaited first!");
6446         }
6447         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_err(e);
6448         return nativeResponseValue;
6449 }
6450         // bool CResult_ChannelPublicKeysDecodeErrorZ_is_ok(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR o);
6451 /* @internal */
6452 export function CResult_ChannelPublicKeysDecodeErrorZ_is_ok(o: number): boolean {
6453         if(!isWasmInitialized) {
6454                 throw new Error("initializeWasm() must be awaited first!");
6455         }
6456         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_is_ok(o);
6457         return nativeResponseValue;
6458 }
6459         // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res);
6460 /* @internal */
6461 export function CResult_ChannelPublicKeysDecodeErrorZ_free(_res: number): void {
6462         if(!isWasmInitialized) {
6463                 throw new Error("initializeWasm() must be awaited first!");
6464         }
6465         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_free(_res);
6466         // debug statements here
6467 }
6468         // uintptr_t CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR arg);
6469 /* @internal */
6470 export function CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(arg: number): number {
6471         if(!isWasmInitialized) {
6472                 throw new Error("initializeWasm() must be awaited first!");
6473         }
6474         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(arg);
6475         return nativeResponseValue;
6476 }
6477         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig);
6478 /* @internal */
6479 export function CResult_ChannelPublicKeysDecodeErrorZ_clone(orig: number): number {
6480         if(!isWasmInitialized) {
6481                 throw new Error("initializeWasm() must be awaited first!");
6482         }
6483         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_clone(orig);
6484         return nativeResponseValue;
6485 }
6486         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_ok(struct LDKTxCreationKeys o);
6487 /* @internal */
6488 export function CResult_TxCreationKeysErrorZ_ok(o: number): number {
6489         if(!isWasmInitialized) {
6490                 throw new Error("initializeWasm() must be awaited first!");
6491         }
6492         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_ok(o);
6493         return nativeResponseValue;
6494 }
6495         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_err(enum LDKSecp256k1Error e);
6496 /* @internal */
6497 export function CResult_TxCreationKeysErrorZ_err(e: Secp256k1Error): number {
6498         if(!isWasmInitialized) {
6499                 throw new Error("initializeWasm() must be awaited first!");
6500         }
6501         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_err(e);
6502         return nativeResponseValue;
6503 }
6504         // bool CResult_TxCreationKeysErrorZ_is_ok(const struct LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR o);
6505 /* @internal */
6506 export function CResult_TxCreationKeysErrorZ_is_ok(o: number): boolean {
6507         if(!isWasmInitialized) {
6508                 throw new Error("initializeWasm() must be awaited first!");
6509         }
6510         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_is_ok(o);
6511         return nativeResponseValue;
6512 }
6513         // void CResult_TxCreationKeysErrorZ_free(struct LDKCResult_TxCreationKeysErrorZ _res);
6514 /* @internal */
6515 export function CResult_TxCreationKeysErrorZ_free(_res: number): void {
6516         if(!isWasmInitialized) {
6517                 throw new Error("initializeWasm() must be awaited first!");
6518         }
6519         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_free(_res);
6520         // debug statements here
6521 }
6522         // uintptr_t CResult_TxCreationKeysErrorZ_clone_ptr(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR arg);
6523 /* @internal */
6524 export function CResult_TxCreationKeysErrorZ_clone_ptr(arg: number): number {
6525         if(!isWasmInitialized) {
6526                 throw new Error("initializeWasm() must be awaited first!");
6527         }
6528         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_clone_ptr(arg);
6529         return nativeResponseValue;
6530 }
6531         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_clone(const struct LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR orig);
6532 /* @internal */
6533 export function CResult_TxCreationKeysErrorZ_clone(orig: number): number {
6534         if(!isWasmInitialized) {
6535                 throw new Error("initializeWasm() must be awaited first!");
6536         }
6537         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_clone(orig);
6538         return nativeResponseValue;
6539 }
6540         // struct LDKCOption_u32Z COption_u32Z_some(uint32_t o);
6541 /* @internal */
6542 export function COption_u32Z_some(o: number): number {
6543         if(!isWasmInitialized) {
6544                 throw new Error("initializeWasm() must be awaited first!");
6545         }
6546         const nativeResponseValue = wasm.TS_COption_u32Z_some(o);
6547         return nativeResponseValue;
6548 }
6549         // struct LDKCOption_u32Z COption_u32Z_none(void);
6550 /* @internal */
6551 export function COption_u32Z_none(): number {
6552         if(!isWasmInitialized) {
6553                 throw new Error("initializeWasm() must be awaited first!");
6554         }
6555         const nativeResponseValue = wasm.TS_COption_u32Z_none();
6556         return nativeResponseValue;
6557 }
6558         // void COption_u32Z_free(struct LDKCOption_u32Z _res);
6559 /* @internal */
6560 export function COption_u32Z_free(_res: number): void {
6561         if(!isWasmInitialized) {
6562                 throw new Error("initializeWasm() must be awaited first!");
6563         }
6564         const nativeResponseValue = wasm.TS_COption_u32Z_free(_res);
6565         // debug statements here
6566 }
6567         // uintptr_t COption_u32Z_clone_ptr(LDKCOption_u32Z *NONNULL_PTR arg);
6568 /* @internal */
6569 export function COption_u32Z_clone_ptr(arg: number): number {
6570         if(!isWasmInitialized) {
6571                 throw new Error("initializeWasm() must be awaited first!");
6572         }
6573         const nativeResponseValue = wasm.TS_COption_u32Z_clone_ptr(arg);
6574         return nativeResponseValue;
6575 }
6576         // struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig);
6577 /* @internal */
6578 export function COption_u32Z_clone(orig: number): number {
6579         if(!isWasmInitialized) {
6580                 throw new Error("initializeWasm() must be awaited first!");
6581         }
6582         const nativeResponseValue = wasm.TS_COption_u32Z_clone(orig);
6583         return nativeResponseValue;
6584 }
6585         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o);
6586 /* @internal */
6587 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o: number): number {
6588         if(!isWasmInitialized) {
6589                 throw new Error("initializeWasm() must be awaited first!");
6590         }
6591         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o);
6592         return nativeResponseValue;
6593 }
6594         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e);
6595 /* @internal */
6596 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e: number): number {
6597         if(!isWasmInitialized) {
6598                 throw new Error("initializeWasm() must be awaited first!");
6599         }
6600         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e);
6601         return nativeResponseValue;
6602 }
6603         // bool CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR o);
6604 /* @internal */
6605 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(o: number): boolean {
6606         if(!isWasmInitialized) {
6607                 throw new Error("initializeWasm() must be awaited first!");
6608         }
6609         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(o);
6610         return nativeResponseValue;
6611 }
6612         // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res);
6613 /* @internal */
6614 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_free(_res: number): void {
6615         if(!isWasmInitialized) {
6616                 throw new Error("initializeWasm() must be awaited first!");
6617         }
6618         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_free(_res);
6619         // debug statements here
6620 }
6621         // uintptr_t CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR arg);
6622 /* @internal */
6623 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(arg: number): number {
6624         if(!isWasmInitialized) {
6625                 throw new Error("initializeWasm() must be awaited first!");
6626         }
6627         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(arg);
6628         return nativeResponseValue;
6629 }
6630         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig);
6631 /* @internal */
6632 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(orig: number): number {
6633         if(!isWasmInitialized) {
6634                 throw new Error("initializeWasm() must be awaited first!");
6635         }
6636         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(orig);
6637         return nativeResponseValue;
6638 }
6639         // enum LDKCOption_NoneZ COption_NoneZ_some(void);
6640 /* @internal */
6641 export function COption_NoneZ_some(): COption_NoneZ {
6642         if(!isWasmInitialized) {
6643                 throw new Error("initializeWasm() must be awaited first!");
6644         }
6645         const nativeResponseValue = wasm.TS_COption_NoneZ_some();
6646         return nativeResponseValue;
6647 }
6648         // enum LDKCOption_NoneZ COption_NoneZ_none(void);
6649 /* @internal */
6650 export function COption_NoneZ_none(): COption_NoneZ {
6651         if(!isWasmInitialized) {
6652                 throw new Error("initializeWasm() must be awaited first!");
6653         }
6654         const nativeResponseValue = wasm.TS_COption_NoneZ_none();
6655         return nativeResponseValue;
6656 }
6657         // void COption_NoneZ_free(enum LDKCOption_NoneZ _res);
6658 /* @internal */
6659 export function COption_NoneZ_free(_res: COption_NoneZ): void {
6660         if(!isWasmInitialized) {
6661                 throw new Error("initializeWasm() must be awaited first!");
6662         }
6663         const nativeResponseValue = wasm.TS_COption_NoneZ_free(_res);
6664         // debug statements here
6665 }
6666         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o);
6667 /* @internal */
6668 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o: number): number {
6669         if(!isWasmInitialized) {
6670                 throw new Error("initializeWasm() must be awaited first!");
6671         }
6672         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o);
6673         return nativeResponseValue;
6674 }
6675         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
6676 /* @internal */
6677 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e: number): number {
6678         if(!isWasmInitialized) {
6679                 throw new Error("initializeWasm() must be awaited first!");
6680         }
6681         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e);
6682         return nativeResponseValue;
6683 }
6684         // bool CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
6685 /* @internal */
6686 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(o: number): boolean {
6687         if(!isWasmInitialized) {
6688                 throw new Error("initializeWasm() must be awaited first!");
6689         }
6690         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(o);
6691         return nativeResponseValue;
6692 }
6693         // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res);
6694 /* @internal */
6695 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(_res: number): void {
6696         if(!isWasmInitialized) {
6697                 throw new Error("initializeWasm() must be awaited first!");
6698         }
6699         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(_res);
6700         // debug statements here
6701 }
6702         // uintptr_t CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
6703 /* @internal */
6704 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(arg: number): number {
6705         if(!isWasmInitialized) {
6706                 throw new Error("initializeWasm() must be awaited first!");
6707         }
6708         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(arg);
6709         return nativeResponseValue;
6710 }
6711         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
6712 /* @internal */
6713 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(orig: number): number {
6714         if(!isWasmInitialized) {
6715                 throw new Error("initializeWasm() must be awaited first!");
6716         }
6717         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(orig);
6718         return nativeResponseValue;
6719 }
6720         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o);
6721 /* @internal */
6722 export function CResult_ChannelTransactionParametersDecodeErrorZ_ok(o: number): number {
6723         if(!isWasmInitialized) {
6724                 throw new Error("initializeWasm() must be awaited first!");
6725         }
6726         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_ok(o);
6727         return nativeResponseValue;
6728 }
6729         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
6730 /* @internal */
6731 export function CResult_ChannelTransactionParametersDecodeErrorZ_err(e: number): number {
6732         if(!isWasmInitialized) {
6733                 throw new Error("initializeWasm() must be awaited first!");
6734         }
6735         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_err(e);
6736         return nativeResponseValue;
6737 }
6738         // bool CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
6739 /* @internal */
6740 export function CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(o: number): boolean {
6741         if(!isWasmInitialized) {
6742                 throw new Error("initializeWasm() must be awaited first!");
6743         }
6744         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(o);
6745         return nativeResponseValue;
6746 }
6747         // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res);
6748 /* @internal */
6749 export function CResult_ChannelTransactionParametersDecodeErrorZ_free(_res: number): void {
6750         if(!isWasmInitialized) {
6751                 throw new Error("initializeWasm() must be awaited first!");
6752         }
6753         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_free(_res);
6754         // debug statements here
6755 }
6756         // uintptr_t CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
6757 /* @internal */
6758 export function CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(arg: number): number {
6759         if(!isWasmInitialized) {
6760                 throw new Error("initializeWasm() must be awaited first!");
6761         }
6762         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(arg);
6763         return nativeResponseValue;
6764 }
6765         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
6766 /* @internal */
6767 export function CResult_ChannelTransactionParametersDecodeErrorZ_clone(orig: number): number {
6768         if(!isWasmInitialized) {
6769                 throw new Error("initializeWasm() must be awaited first!");
6770         }
6771         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_clone(orig);
6772         return nativeResponseValue;
6773 }
6774         // void CVec_SignatureZ_free(struct LDKCVec_SignatureZ _res);
6775 /* @internal */
6776 export function CVec_SignatureZ_free(_res: number): void {
6777         if(!isWasmInitialized) {
6778                 throw new Error("initializeWasm() must be awaited first!");
6779         }
6780         const nativeResponseValue = wasm.TS_CVec_SignatureZ_free(_res);
6781         // debug statements here
6782 }
6783         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o);
6784 /* @internal */
6785 export function CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o: number): number {
6786         if(!isWasmInitialized) {
6787                 throw new Error("initializeWasm() must be awaited first!");
6788         }
6789         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o);
6790         return nativeResponseValue;
6791 }
6792         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
6793 /* @internal */
6794 export function CResult_HolderCommitmentTransactionDecodeErrorZ_err(e: number): number {
6795         if(!isWasmInitialized) {
6796                 throw new Error("initializeWasm() must be awaited first!");
6797         }
6798         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_err(e);
6799         return nativeResponseValue;
6800 }
6801         // bool CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
6802 /* @internal */
6803 export function CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(o: number): boolean {
6804         if(!isWasmInitialized) {
6805                 throw new Error("initializeWasm() must be awaited first!");
6806         }
6807         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(o);
6808         return nativeResponseValue;
6809 }
6810         // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res);
6811 /* @internal */
6812 export function CResult_HolderCommitmentTransactionDecodeErrorZ_free(_res: number): void {
6813         if(!isWasmInitialized) {
6814                 throw new Error("initializeWasm() must be awaited first!");
6815         }
6816         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_free(_res);
6817         // debug statements here
6818 }
6819         // uintptr_t CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
6820 /* @internal */
6821 export function CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(arg: number): number {
6822         if(!isWasmInitialized) {
6823                 throw new Error("initializeWasm() must be awaited first!");
6824         }
6825         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(arg);
6826         return nativeResponseValue;
6827 }
6828         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
6829 /* @internal */
6830 export function CResult_HolderCommitmentTransactionDecodeErrorZ_clone(orig: number): number {
6831         if(!isWasmInitialized) {
6832                 throw new Error("initializeWasm() must be awaited first!");
6833         }
6834         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_clone(orig);
6835         return nativeResponseValue;
6836 }
6837         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o);
6838 /* @internal */
6839 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o: number): number {
6840         if(!isWasmInitialized) {
6841                 throw new Error("initializeWasm() must be awaited first!");
6842         }
6843         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o);
6844         return nativeResponseValue;
6845 }
6846         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
6847 /* @internal */
6848 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e: number): number {
6849         if(!isWasmInitialized) {
6850                 throw new Error("initializeWasm() must be awaited first!");
6851         }
6852         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e);
6853         return nativeResponseValue;
6854 }
6855         // bool CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
6856 /* @internal */
6857 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(o: number): boolean {
6858         if(!isWasmInitialized) {
6859                 throw new Error("initializeWasm() must be awaited first!");
6860         }
6861         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(o);
6862         return nativeResponseValue;
6863 }
6864         // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res);
6865 /* @internal */
6866 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_free(_res: number): void {
6867         if(!isWasmInitialized) {
6868                 throw new Error("initializeWasm() must be awaited first!");
6869         }
6870         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_free(_res);
6871         // debug statements here
6872 }
6873         // uintptr_t CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
6874 /* @internal */
6875 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(arg: number): number {
6876         if(!isWasmInitialized) {
6877                 throw new Error("initializeWasm() must be awaited first!");
6878         }
6879         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(arg);
6880         return nativeResponseValue;
6881 }
6882         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
6883 /* @internal */
6884 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(orig: number): number {
6885         if(!isWasmInitialized) {
6886                 throw new Error("initializeWasm() must be awaited first!");
6887         }
6888         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(orig);
6889         return nativeResponseValue;
6890 }
6891         // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_ok(struct LDKTrustedClosingTransaction o);
6892 /* @internal */
6893 export function CResult_TrustedClosingTransactionNoneZ_ok(o: number): number {
6894         if(!isWasmInitialized) {
6895                 throw new Error("initializeWasm() must be awaited first!");
6896         }
6897         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_ok(o);
6898         return nativeResponseValue;
6899 }
6900         // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_err(void);
6901 /* @internal */
6902 export function CResult_TrustedClosingTransactionNoneZ_err(): number {
6903         if(!isWasmInitialized) {
6904                 throw new Error("initializeWasm() must be awaited first!");
6905         }
6906         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_err();
6907         return nativeResponseValue;
6908 }
6909         // bool CResult_TrustedClosingTransactionNoneZ_is_ok(const struct LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR o);
6910 /* @internal */
6911 export function CResult_TrustedClosingTransactionNoneZ_is_ok(o: number): boolean {
6912         if(!isWasmInitialized) {
6913                 throw new Error("initializeWasm() must be awaited first!");
6914         }
6915         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_is_ok(o);
6916         return nativeResponseValue;
6917 }
6918         // void CResult_TrustedClosingTransactionNoneZ_free(struct LDKCResult_TrustedClosingTransactionNoneZ _res);
6919 /* @internal */
6920 export function CResult_TrustedClosingTransactionNoneZ_free(_res: number): void {
6921         if(!isWasmInitialized) {
6922                 throw new Error("initializeWasm() must be awaited first!");
6923         }
6924         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_free(_res);
6925         // debug statements here
6926 }
6927         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o);
6928 /* @internal */
6929 export function CResult_CommitmentTransactionDecodeErrorZ_ok(o: number): number {
6930         if(!isWasmInitialized) {
6931                 throw new Error("initializeWasm() must be awaited first!");
6932         }
6933         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_ok(o);
6934         return nativeResponseValue;
6935 }
6936         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
6937 /* @internal */
6938 export function CResult_CommitmentTransactionDecodeErrorZ_err(e: number): number {
6939         if(!isWasmInitialized) {
6940                 throw new Error("initializeWasm() must be awaited first!");
6941         }
6942         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_err(e);
6943         return nativeResponseValue;
6944 }
6945         // bool CResult_CommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
6946 /* @internal */
6947 export function CResult_CommitmentTransactionDecodeErrorZ_is_ok(o: number): boolean {
6948         if(!isWasmInitialized) {
6949                 throw new Error("initializeWasm() must be awaited first!");
6950         }
6951         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_is_ok(o);
6952         return nativeResponseValue;
6953 }
6954         // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res);
6955 /* @internal */
6956 export function CResult_CommitmentTransactionDecodeErrorZ_free(_res: number): void {
6957         if(!isWasmInitialized) {
6958                 throw new Error("initializeWasm() must be awaited first!");
6959         }
6960         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_free(_res);
6961         // debug statements here
6962 }
6963         // uintptr_t CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
6964 /* @internal */
6965 export function CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(arg: number): number {
6966         if(!isWasmInitialized) {
6967                 throw new Error("initializeWasm() must be awaited first!");
6968         }
6969         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(arg);
6970         return nativeResponseValue;
6971 }
6972         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
6973 /* @internal */
6974 export function CResult_CommitmentTransactionDecodeErrorZ_clone(orig: number): number {
6975         if(!isWasmInitialized) {
6976                 throw new Error("initializeWasm() must be awaited first!");
6977         }
6978         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_clone(orig);
6979         return nativeResponseValue;
6980 }
6981         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o);
6982 /* @internal */
6983 export function CResult_TrustedCommitmentTransactionNoneZ_ok(o: number): number {
6984         if(!isWasmInitialized) {
6985                 throw new Error("initializeWasm() must be awaited first!");
6986         }
6987         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_ok(o);
6988         return nativeResponseValue;
6989 }
6990         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void);
6991 /* @internal */
6992 export function CResult_TrustedCommitmentTransactionNoneZ_err(): number {
6993         if(!isWasmInitialized) {
6994                 throw new Error("initializeWasm() must be awaited first!");
6995         }
6996         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_err();
6997         return nativeResponseValue;
6998 }
6999         // bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR o);
7000 /* @internal */
7001 export function CResult_TrustedCommitmentTransactionNoneZ_is_ok(o: number): boolean {
7002         if(!isWasmInitialized) {
7003                 throw new Error("initializeWasm() must be awaited first!");
7004         }
7005         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_is_ok(o);
7006         return nativeResponseValue;
7007 }
7008         // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res);
7009 /* @internal */
7010 export function CResult_TrustedCommitmentTransactionNoneZ_free(_res: number): void {
7011         if(!isWasmInitialized) {
7012                 throw new Error("initializeWasm() must be awaited first!");
7013         }
7014         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_free(_res);
7015         // debug statements here
7016 }
7017         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_ok(struct LDKCVec_SignatureZ o);
7018 /* @internal */
7019 export function CResult_CVec_SignatureZNoneZ_ok(o: number): number {
7020         if(!isWasmInitialized) {
7021                 throw new Error("initializeWasm() must be awaited first!");
7022         }
7023         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_ok(o);
7024         return nativeResponseValue;
7025 }
7026         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_err(void);
7027 /* @internal */
7028 export function CResult_CVec_SignatureZNoneZ_err(): number {
7029         if(!isWasmInitialized) {
7030                 throw new Error("initializeWasm() must be awaited first!");
7031         }
7032         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_err();
7033         return nativeResponseValue;
7034 }
7035         // bool CResult_CVec_SignatureZNoneZ_is_ok(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR o);
7036 /* @internal */
7037 export function CResult_CVec_SignatureZNoneZ_is_ok(o: number): boolean {
7038         if(!isWasmInitialized) {
7039                 throw new Error("initializeWasm() must be awaited first!");
7040         }
7041         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_is_ok(o);
7042         return nativeResponseValue;
7043 }
7044         // void CResult_CVec_SignatureZNoneZ_free(struct LDKCResult_CVec_SignatureZNoneZ _res);
7045 /* @internal */
7046 export function CResult_CVec_SignatureZNoneZ_free(_res: number): void {
7047         if(!isWasmInitialized) {
7048                 throw new Error("initializeWasm() must be awaited first!");
7049         }
7050         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_free(_res);
7051         // debug statements here
7052 }
7053         // uintptr_t CResult_CVec_SignatureZNoneZ_clone_ptr(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR arg);
7054 /* @internal */
7055 export function CResult_CVec_SignatureZNoneZ_clone_ptr(arg: number): number {
7056         if(!isWasmInitialized) {
7057                 throw new Error("initializeWasm() must be awaited first!");
7058         }
7059         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_clone_ptr(arg);
7060         return nativeResponseValue;
7061 }
7062         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_clone(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR orig);
7063 /* @internal */
7064 export function CResult_CVec_SignatureZNoneZ_clone(orig: number): number {
7065         if(!isWasmInitialized) {
7066                 throw new Error("initializeWasm() must be awaited first!");
7067         }
7068         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_clone(orig);
7069         return nativeResponseValue;
7070 }
7071         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_ok(struct LDKShutdownScript o);
7072 /* @internal */
7073 export function CResult_ShutdownScriptDecodeErrorZ_ok(o: number): number {
7074         if(!isWasmInitialized) {
7075                 throw new Error("initializeWasm() must be awaited first!");
7076         }
7077         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_ok(o);
7078         return nativeResponseValue;
7079 }
7080         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_err(struct LDKDecodeError e);
7081 /* @internal */
7082 export function CResult_ShutdownScriptDecodeErrorZ_err(e: number): number {
7083         if(!isWasmInitialized) {
7084                 throw new Error("initializeWasm() must be awaited first!");
7085         }
7086         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_err(e);
7087         return nativeResponseValue;
7088 }
7089         // bool CResult_ShutdownScriptDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR o);
7090 /* @internal */
7091 export function CResult_ShutdownScriptDecodeErrorZ_is_ok(o: number): boolean {
7092         if(!isWasmInitialized) {
7093                 throw new Error("initializeWasm() must be awaited first!");
7094         }
7095         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_is_ok(o);
7096         return nativeResponseValue;
7097 }
7098         // void CResult_ShutdownScriptDecodeErrorZ_free(struct LDKCResult_ShutdownScriptDecodeErrorZ _res);
7099 /* @internal */
7100 export function CResult_ShutdownScriptDecodeErrorZ_free(_res: number): void {
7101         if(!isWasmInitialized) {
7102                 throw new Error("initializeWasm() must be awaited first!");
7103         }
7104         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_free(_res);
7105         // debug statements here
7106 }
7107         // uintptr_t CResult_ShutdownScriptDecodeErrorZ_clone_ptr(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR arg);
7108 /* @internal */
7109 export function CResult_ShutdownScriptDecodeErrorZ_clone_ptr(arg: number): number {
7110         if(!isWasmInitialized) {
7111                 throw new Error("initializeWasm() must be awaited first!");
7112         }
7113         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_clone_ptr(arg);
7114         return nativeResponseValue;
7115 }
7116         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_clone(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR orig);
7117 /* @internal */
7118 export function CResult_ShutdownScriptDecodeErrorZ_clone(orig: number): number {
7119         if(!isWasmInitialized) {
7120                 throw new Error("initializeWasm() must be awaited first!");
7121         }
7122         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_clone(orig);
7123         return nativeResponseValue;
7124 }
7125         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_ok(struct LDKShutdownScript o);
7126 /* @internal */
7127 export function CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o: number): number {
7128         if(!isWasmInitialized) {
7129                 throw new Error("initializeWasm() must be awaited first!");
7130         }
7131         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o);
7132         return nativeResponseValue;
7133 }
7134         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_err(struct LDKInvalidShutdownScript e);
7135 /* @internal */
7136 export function CResult_ShutdownScriptInvalidShutdownScriptZ_err(e: number): number {
7137         if(!isWasmInitialized) {
7138                 throw new Error("initializeWasm() must be awaited first!");
7139         }
7140         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_err(e);
7141         return nativeResponseValue;
7142 }
7143         // bool CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR o);
7144 /* @internal */
7145 export function CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(o: number): boolean {
7146         if(!isWasmInitialized) {
7147                 throw new Error("initializeWasm() must be awaited first!");
7148         }
7149         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(o);
7150         return nativeResponseValue;
7151 }
7152         // void CResult_ShutdownScriptInvalidShutdownScriptZ_free(struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ _res);
7153 /* @internal */
7154 export function CResult_ShutdownScriptInvalidShutdownScriptZ_free(_res: number): void {
7155         if(!isWasmInitialized) {
7156                 throw new Error("initializeWasm() must be awaited first!");
7157         }
7158         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_free(_res);
7159         // debug statements here
7160 }
7161         // uintptr_t CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR arg);
7162 /* @internal */
7163 export function CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(arg: number): number {
7164         if(!isWasmInitialized) {
7165                 throw new Error("initializeWasm() must be awaited first!");
7166         }
7167         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(arg);
7168         return nativeResponseValue;
7169 }
7170         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_clone(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR orig);
7171 /* @internal */
7172 export function CResult_ShutdownScriptInvalidShutdownScriptZ_clone(orig: number): number {
7173         if(!isWasmInitialized) {
7174                 throw new Error("initializeWasm() must be awaited first!");
7175         }
7176         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_clone(orig);
7177         return nativeResponseValue;
7178 }
7179         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_ok(struct LDKRouteHop o);
7180 /* @internal */
7181 export function CResult_RouteHopDecodeErrorZ_ok(o: number): number {
7182         if(!isWasmInitialized) {
7183                 throw new Error("initializeWasm() must be awaited first!");
7184         }
7185         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_ok(o);
7186         return nativeResponseValue;
7187 }
7188         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_err(struct LDKDecodeError e);
7189 /* @internal */
7190 export function CResult_RouteHopDecodeErrorZ_err(e: number): number {
7191         if(!isWasmInitialized) {
7192                 throw new Error("initializeWasm() must be awaited first!");
7193         }
7194         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_err(e);
7195         return nativeResponseValue;
7196 }
7197         // bool CResult_RouteHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR o);
7198 /* @internal */
7199 export function CResult_RouteHopDecodeErrorZ_is_ok(o: number): boolean {
7200         if(!isWasmInitialized) {
7201                 throw new Error("initializeWasm() must be awaited first!");
7202         }
7203         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_is_ok(o);
7204         return nativeResponseValue;
7205 }
7206         // void CResult_RouteHopDecodeErrorZ_free(struct LDKCResult_RouteHopDecodeErrorZ _res);
7207 /* @internal */
7208 export function CResult_RouteHopDecodeErrorZ_free(_res: number): void {
7209         if(!isWasmInitialized) {
7210                 throw new Error("initializeWasm() must be awaited first!");
7211         }
7212         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_free(_res);
7213         // debug statements here
7214 }
7215         // uintptr_t CResult_RouteHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR arg);
7216 /* @internal */
7217 export function CResult_RouteHopDecodeErrorZ_clone_ptr(arg: number): number {
7218         if(!isWasmInitialized) {
7219                 throw new Error("initializeWasm() must be awaited first!");
7220         }
7221         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_clone_ptr(arg);
7222         return nativeResponseValue;
7223 }
7224         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_clone(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR orig);
7225 /* @internal */
7226 export function CResult_RouteHopDecodeErrorZ_clone(orig: number): number {
7227         if(!isWasmInitialized) {
7228                 throw new Error("initializeWasm() must be awaited first!");
7229         }
7230         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_clone(orig);
7231         return nativeResponseValue;
7232 }
7233         // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res);
7234 /* @internal */
7235 export function CVec_RouteHopZ_free(_res: number): void {
7236         if(!isWasmInitialized) {
7237                 throw new Error("initializeWasm() must be awaited first!");
7238         }
7239         const nativeResponseValue = wasm.TS_CVec_RouteHopZ_free(_res);
7240         // debug statements here
7241 }
7242         // void CVec_CVec_RouteHopZZ_free(struct LDKCVec_CVec_RouteHopZZ _res);
7243 /* @internal */
7244 export function CVec_CVec_RouteHopZZ_free(_res: number): void {
7245         if(!isWasmInitialized) {
7246                 throw new Error("initializeWasm() must be awaited first!");
7247         }
7248         const nativeResponseValue = wasm.TS_CVec_CVec_RouteHopZZ_free(_res);
7249         // debug statements here
7250 }
7251         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o);
7252 /* @internal */
7253 export function CResult_RouteDecodeErrorZ_ok(o: number): number {
7254         if(!isWasmInitialized) {
7255                 throw new Error("initializeWasm() must be awaited first!");
7256         }
7257         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_ok(o);
7258         return nativeResponseValue;
7259 }
7260         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e);
7261 /* @internal */
7262 export function CResult_RouteDecodeErrorZ_err(e: number): number {
7263         if(!isWasmInitialized) {
7264                 throw new Error("initializeWasm() must be awaited first!");
7265         }
7266         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_err(e);
7267         return nativeResponseValue;
7268 }
7269         // bool CResult_RouteDecodeErrorZ_is_ok(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR o);
7270 /* @internal */
7271 export function CResult_RouteDecodeErrorZ_is_ok(o: number): boolean {
7272         if(!isWasmInitialized) {
7273                 throw new Error("initializeWasm() must be awaited first!");
7274         }
7275         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_is_ok(o);
7276         return nativeResponseValue;
7277 }
7278         // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res);
7279 /* @internal */
7280 export function CResult_RouteDecodeErrorZ_free(_res: number): void {
7281         if(!isWasmInitialized) {
7282                 throw new Error("initializeWasm() must be awaited first!");
7283         }
7284         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_free(_res);
7285         // debug statements here
7286 }
7287         // uintptr_t CResult_RouteDecodeErrorZ_clone_ptr(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR arg);
7288 /* @internal */
7289 export function CResult_RouteDecodeErrorZ_clone_ptr(arg: number): number {
7290         if(!isWasmInitialized) {
7291                 throw new Error("initializeWasm() must be awaited first!");
7292         }
7293         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_clone_ptr(arg);
7294         return nativeResponseValue;
7295 }
7296         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_clone(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR orig);
7297 /* @internal */
7298 export function CResult_RouteDecodeErrorZ_clone(orig: number): number {
7299         if(!isWasmInitialized) {
7300                 throw new Error("initializeWasm() must be awaited first!");
7301         }
7302         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_clone(orig);
7303         return nativeResponseValue;
7304 }
7305         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_ok(struct LDKRouteParameters o);
7306 /* @internal */
7307 export function CResult_RouteParametersDecodeErrorZ_ok(o: number): number {
7308         if(!isWasmInitialized) {
7309                 throw new Error("initializeWasm() must be awaited first!");
7310         }
7311         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_ok(o);
7312         return nativeResponseValue;
7313 }
7314         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_err(struct LDKDecodeError e);
7315 /* @internal */
7316 export function CResult_RouteParametersDecodeErrorZ_err(e: number): number {
7317         if(!isWasmInitialized) {
7318                 throw new Error("initializeWasm() must be awaited first!");
7319         }
7320         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_err(e);
7321         return nativeResponseValue;
7322 }
7323         // bool CResult_RouteParametersDecodeErrorZ_is_ok(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR o);
7324 /* @internal */
7325 export function CResult_RouteParametersDecodeErrorZ_is_ok(o: number): boolean {
7326         if(!isWasmInitialized) {
7327                 throw new Error("initializeWasm() must be awaited first!");
7328         }
7329         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_is_ok(o);
7330         return nativeResponseValue;
7331 }
7332         // void CResult_RouteParametersDecodeErrorZ_free(struct LDKCResult_RouteParametersDecodeErrorZ _res);
7333 /* @internal */
7334 export function CResult_RouteParametersDecodeErrorZ_free(_res: number): void {
7335         if(!isWasmInitialized) {
7336                 throw new Error("initializeWasm() must be awaited first!");
7337         }
7338         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_free(_res);
7339         // debug statements here
7340 }
7341         // uintptr_t CResult_RouteParametersDecodeErrorZ_clone_ptr(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR arg);
7342 /* @internal */
7343 export function CResult_RouteParametersDecodeErrorZ_clone_ptr(arg: number): number {
7344         if(!isWasmInitialized) {
7345                 throw new Error("initializeWasm() must be awaited first!");
7346         }
7347         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_clone_ptr(arg);
7348         return nativeResponseValue;
7349 }
7350         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_clone(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR orig);
7351 /* @internal */
7352 export function CResult_RouteParametersDecodeErrorZ_clone(orig: number): number {
7353         if(!isWasmInitialized) {
7354                 throw new Error("initializeWasm() must be awaited first!");
7355         }
7356         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_clone(orig);
7357         return nativeResponseValue;
7358 }
7359         // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res);
7360 /* @internal */
7361 export function CVec_RouteHintZ_free(_res: number): void {
7362         if(!isWasmInitialized) {
7363                 throw new Error("initializeWasm() must be awaited first!");
7364         }
7365         const nativeResponseValue = wasm.TS_CVec_RouteHintZ_free(_res);
7366         // debug statements here
7367 }
7368         // struct LDKCOption_u64Z COption_u64Z_some(uint64_t o);
7369 /* @internal */
7370 export function COption_u64Z_some(o: bigint): number {
7371         if(!isWasmInitialized) {
7372                 throw new Error("initializeWasm() must be awaited first!");
7373         }
7374         const nativeResponseValue = wasm.TS_COption_u64Z_some(o);
7375         return nativeResponseValue;
7376 }
7377         // struct LDKCOption_u64Z COption_u64Z_none(void);
7378 /* @internal */
7379 export function COption_u64Z_none(): number {
7380         if(!isWasmInitialized) {
7381                 throw new Error("initializeWasm() must be awaited first!");
7382         }
7383         const nativeResponseValue = wasm.TS_COption_u64Z_none();
7384         return nativeResponseValue;
7385 }
7386         // void COption_u64Z_free(struct LDKCOption_u64Z _res);
7387 /* @internal */
7388 export function COption_u64Z_free(_res: number): void {
7389         if(!isWasmInitialized) {
7390                 throw new Error("initializeWasm() must be awaited first!");
7391         }
7392         const nativeResponseValue = wasm.TS_COption_u64Z_free(_res);
7393         // debug statements here
7394 }
7395         // uintptr_t COption_u64Z_clone_ptr(LDKCOption_u64Z *NONNULL_PTR arg);
7396 /* @internal */
7397 export function COption_u64Z_clone_ptr(arg: number): number {
7398         if(!isWasmInitialized) {
7399                 throw new Error("initializeWasm() must be awaited first!");
7400         }
7401         const nativeResponseValue = wasm.TS_COption_u64Z_clone_ptr(arg);
7402         return nativeResponseValue;
7403 }
7404         // struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig);
7405 /* @internal */
7406 export function COption_u64Z_clone(orig: number): number {
7407         if(!isWasmInitialized) {
7408                 throw new Error("initializeWasm() must be awaited first!");
7409         }
7410         const nativeResponseValue = wasm.TS_COption_u64Z_clone(orig);
7411         return nativeResponseValue;
7412 }
7413         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_ok(struct LDKPaymentParameters o);
7414 /* @internal */
7415 export function CResult_PaymentParametersDecodeErrorZ_ok(o: number): number {
7416         if(!isWasmInitialized) {
7417                 throw new Error("initializeWasm() must be awaited first!");
7418         }
7419         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_ok(o);
7420         return nativeResponseValue;
7421 }
7422         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_err(struct LDKDecodeError e);
7423 /* @internal */
7424 export function CResult_PaymentParametersDecodeErrorZ_err(e: number): number {
7425         if(!isWasmInitialized) {
7426                 throw new Error("initializeWasm() must be awaited first!");
7427         }
7428         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_err(e);
7429         return nativeResponseValue;
7430 }
7431         // bool CResult_PaymentParametersDecodeErrorZ_is_ok(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR o);
7432 /* @internal */
7433 export function CResult_PaymentParametersDecodeErrorZ_is_ok(o: number): boolean {
7434         if(!isWasmInitialized) {
7435                 throw new Error("initializeWasm() must be awaited first!");
7436         }
7437         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_is_ok(o);
7438         return nativeResponseValue;
7439 }
7440         // void CResult_PaymentParametersDecodeErrorZ_free(struct LDKCResult_PaymentParametersDecodeErrorZ _res);
7441 /* @internal */
7442 export function CResult_PaymentParametersDecodeErrorZ_free(_res: number): void {
7443         if(!isWasmInitialized) {
7444                 throw new Error("initializeWasm() must be awaited first!");
7445         }
7446         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_free(_res);
7447         // debug statements here
7448 }
7449         // uintptr_t CResult_PaymentParametersDecodeErrorZ_clone_ptr(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR arg);
7450 /* @internal */
7451 export function CResult_PaymentParametersDecodeErrorZ_clone_ptr(arg: number): number {
7452         if(!isWasmInitialized) {
7453                 throw new Error("initializeWasm() must be awaited first!");
7454         }
7455         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_clone_ptr(arg);
7456         return nativeResponseValue;
7457 }
7458         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_clone(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR orig);
7459 /* @internal */
7460 export function CResult_PaymentParametersDecodeErrorZ_clone(orig: number): number {
7461         if(!isWasmInitialized) {
7462                 throw new Error("initializeWasm() must be awaited first!");
7463         }
7464         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_clone(orig);
7465         return nativeResponseValue;
7466 }
7467         // void CVec_RouteHintHopZ_free(struct LDKCVec_RouteHintHopZ _res);
7468 /* @internal */
7469 export function CVec_RouteHintHopZ_free(_res: number): void {
7470         if(!isWasmInitialized) {
7471                 throw new Error("initializeWasm() must be awaited first!");
7472         }
7473         const nativeResponseValue = wasm.TS_CVec_RouteHintHopZ_free(_res);
7474         // debug statements here
7475 }
7476         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_ok(struct LDKRouteHint o);
7477 /* @internal */
7478 export function CResult_RouteHintDecodeErrorZ_ok(o: number): number {
7479         if(!isWasmInitialized) {
7480                 throw new Error("initializeWasm() must be awaited first!");
7481         }
7482         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_ok(o);
7483         return nativeResponseValue;
7484 }
7485         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_err(struct LDKDecodeError e);
7486 /* @internal */
7487 export function CResult_RouteHintDecodeErrorZ_err(e: number): number {
7488         if(!isWasmInitialized) {
7489                 throw new Error("initializeWasm() must be awaited first!");
7490         }
7491         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_err(e);
7492         return nativeResponseValue;
7493 }
7494         // bool CResult_RouteHintDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR o);
7495 /* @internal */
7496 export function CResult_RouteHintDecodeErrorZ_is_ok(o: number): boolean {
7497         if(!isWasmInitialized) {
7498                 throw new Error("initializeWasm() must be awaited first!");
7499         }
7500         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_is_ok(o);
7501         return nativeResponseValue;
7502 }
7503         // void CResult_RouteHintDecodeErrorZ_free(struct LDKCResult_RouteHintDecodeErrorZ _res);
7504 /* @internal */
7505 export function CResult_RouteHintDecodeErrorZ_free(_res: number): void {
7506         if(!isWasmInitialized) {
7507                 throw new Error("initializeWasm() must be awaited first!");
7508         }
7509         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_free(_res);
7510         // debug statements here
7511 }
7512         // uintptr_t CResult_RouteHintDecodeErrorZ_clone_ptr(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR arg);
7513 /* @internal */
7514 export function CResult_RouteHintDecodeErrorZ_clone_ptr(arg: number): number {
7515         if(!isWasmInitialized) {
7516                 throw new Error("initializeWasm() must be awaited first!");
7517         }
7518         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_clone_ptr(arg);
7519         return nativeResponseValue;
7520 }
7521         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_clone(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR orig);
7522 /* @internal */
7523 export function CResult_RouteHintDecodeErrorZ_clone(orig: number): number {
7524         if(!isWasmInitialized) {
7525                 throw new Error("initializeWasm() must be awaited first!");
7526         }
7527         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_clone(orig);
7528         return nativeResponseValue;
7529 }
7530         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_ok(struct LDKRouteHintHop o);
7531 /* @internal */
7532 export function CResult_RouteHintHopDecodeErrorZ_ok(o: number): number {
7533         if(!isWasmInitialized) {
7534                 throw new Error("initializeWasm() must be awaited first!");
7535         }
7536         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_ok(o);
7537         return nativeResponseValue;
7538 }
7539         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_err(struct LDKDecodeError e);
7540 /* @internal */
7541 export function CResult_RouteHintHopDecodeErrorZ_err(e: number): number {
7542         if(!isWasmInitialized) {
7543                 throw new Error("initializeWasm() must be awaited first!");
7544         }
7545         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_err(e);
7546         return nativeResponseValue;
7547 }
7548         // bool CResult_RouteHintHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR o);
7549 /* @internal */
7550 export function CResult_RouteHintHopDecodeErrorZ_is_ok(o: number): boolean {
7551         if(!isWasmInitialized) {
7552                 throw new Error("initializeWasm() must be awaited first!");
7553         }
7554         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_is_ok(o);
7555         return nativeResponseValue;
7556 }
7557         // void CResult_RouteHintHopDecodeErrorZ_free(struct LDKCResult_RouteHintHopDecodeErrorZ _res);
7558 /* @internal */
7559 export function CResult_RouteHintHopDecodeErrorZ_free(_res: number): void {
7560         if(!isWasmInitialized) {
7561                 throw new Error("initializeWasm() must be awaited first!");
7562         }
7563         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_free(_res);
7564         // debug statements here
7565 }
7566         // uintptr_t CResult_RouteHintHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR arg);
7567 /* @internal */
7568 export function CResult_RouteHintHopDecodeErrorZ_clone_ptr(arg: number): number {
7569         if(!isWasmInitialized) {
7570                 throw new Error("initializeWasm() must be awaited first!");
7571         }
7572         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_clone_ptr(arg);
7573         return nativeResponseValue;
7574 }
7575         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_clone(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR orig);
7576 /* @internal */
7577 export function CResult_RouteHintHopDecodeErrorZ_clone(orig: number): number {
7578         if(!isWasmInitialized) {
7579                 throw new Error("initializeWasm() must be awaited first!");
7580         }
7581         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_clone(orig);
7582         return nativeResponseValue;
7583 }
7584         // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res);
7585 /* @internal */
7586 export function CVec_ChannelDetailsZ_free(_res: number): void {
7587         if(!isWasmInitialized) {
7588                 throw new Error("initializeWasm() must be awaited first!");
7589         }
7590         const nativeResponseValue = wasm.TS_CVec_ChannelDetailsZ_free(_res);
7591         // debug statements here
7592 }
7593         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o);
7594 /* @internal */
7595 export function CResult_RouteLightningErrorZ_ok(o: number): number {
7596         if(!isWasmInitialized) {
7597                 throw new Error("initializeWasm() must be awaited first!");
7598         }
7599         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_ok(o);
7600         return nativeResponseValue;
7601 }
7602         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e);
7603 /* @internal */
7604 export function CResult_RouteLightningErrorZ_err(e: number): number {
7605         if(!isWasmInitialized) {
7606                 throw new Error("initializeWasm() must be awaited first!");
7607         }
7608         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_err(e);
7609         return nativeResponseValue;
7610 }
7611         // bool CResult_RouteLightningErrorZ_is_ok(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR o);
7612 /* @internal */
7613 export function CResult_RouteLightningErrorZ_is_ok(o: number): boolean {
7614         if(!isWasmInitialized) {
7615                 throw new Error("initializeWasm() must be awaited first!");
7616         }
7617         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_is_ok(o);
7618         return nativeResponseValue;
7619 }
7620         // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res);
7621 /* @internal */
7622 export function CResult_RouteLightningErrorZ_free(_res: number): void {
7623         if(!isWasmInitialized) {
7624                 throw new Error("initializeWasm() must be awaited first!");
7625         }
7626         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_free(_res);
7627         // debug statements here
7628 }
7629         // uintptr_t CResult_RouteLightningErrorZ_clone_ptr(LDKCResult_RouteLightningErrorZ *NONNULL_PTR arg);
7630 /* @internal */
7631 export function CResult_RouteLightningErrorZ_clone_ptr(arg: number): number {
7632         if(!isWasmInitialized) {
7633                 throw new Error("initializeWasm() must be awaited first!");
7634         }
7635         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_clone_ptr(arg);
7636         return nativeResponseValue;
7637 }
7638         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_clone(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR orig);
7639 /* @internal */
7640 export function CResult_RouteLightningErrorZ_clone(orig: number): number {
7641         if(!isWasmInitialized) {
7642                 throw new Error("initializeWasm() must be awaited first!");
7643         }
7644         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_clone(orig);
7645         return nativeResponseValue;
7646 }
7647         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_ok(struct LDKTxOut o);
7648 /* @internal */
7649 export function CResult_TxOutAccessErrorZ_ok(o: number): number {
7650         if(!isWasmInitialized) {
7651                 throw new Error("initializeWasm() must be awaited first!");
7652         }
7653         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_ok(o);
7654         return nativeResponseValue;
7655 }
7656         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_err(enum LDKAccessError e);
7657 /* @internal */
7658 export function CResult_TxOutAccessErrorZ_err(e: AccessError): number {
7659         if(!isWasmInitialized) {
7660                 throw new Error("initializeWasm() must be awaited first!");
7661         }
7662         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_err(e);
7663         return nativeResponseValue;
7664 }
7665         // bool CResult_TxOutAccessErrorZ_is_ok(const struct LDKCResult_TxOutAccessErrorZ *NONNULL_PTR o);
7666 /* @internal */
7667 export function CResult_TxOutAccessErrorZ_is_ok(o: number): boolean {
7668         if(!isWasmInitialized) {
7669                 throw new Error("initializeWasm() must be awaited first!");
7670         }
7671         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_is_ok(o);
7672         return nativeResponseValue;
7673 }
7674         // void CResult_TxOutAccessErrorZ_free(struct LDKCResult_TxOutAccessErrorZ _res);
7675 /* @internal */
7676 export function CResult_TxOutAccessErrorZ_free(_res: number): void {
7677         if(!isWasmInitialized) {
7678                 throw new Error("initializeWasm() must be awaited first!");
7679         }
7680         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_free(_res);
7681         // debug statements here
7682 }
7683         // uintptr_t CResult_TxOutAccessErrorZ_clone_ptr(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR arg);
7684 /* @internal */
7685 export function CResult_TxOutAccessErrorZ_clone_ptr(arg: number): number {
7686         if(!isWasmInitialized) {
7687                 throw new Error("initializeWasm() must be awaited first!");
7688         }
7689         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_clone_ptr(arg);
7690         return nativeResponseValue;
7691 }
7692         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_clone(const struct LDKCResult_TxOutAccessErrorZ *NONNULL_PTR orig);
7693 /* @internal */
7694 export function CResult_TxOutAccessErrorZ_clone(orig: number): number {
7695         if(!isWasmInitialized) {
7696                 throw new Error("initializeWasm() must be awaited first!");
7697         }
7698         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_clone(orig);
7699         return nativeResponseValue;
7700 }
7701         // uintptr_t C2Tuple_usizeTransactionZ_clone_ptr(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR arg);
7702 /* @internal */
7703 export function C2Tuple_usizeTransactionZ_clone_ptr(arg: number): number {
7704         if(!isWasmInitialized) {
7705                 throw new Error("initializeWasm() must be awaited first!");
7706         }
7707         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_clone_ptr(arg);
7708         return nativeResponseValue;
7709 }
7710         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_clone(const struct LDKC2Tuple_usizeTransactionZ *NONNULL_PTR orig);
7711 /* @internal */
7712 export function C2Tuple_usizeTransactionZ_clone(orig: number): number {
7713         if(!isWasmInitialized) {
7714                 throw new Error("initializeWasm() must be awaited first!");
7715         }
7716         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_clone(orig);
7717         return nativeResponseValue;
7718 }
7719         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
7720 /* @internal */
7721 export function C2Tuple_usizeTransactionZ_new(a: number, b: number): number {
7722         if(!isWasmInitialized) {
7723                 throw new Error("initializeWasm() must be awaited first!");
7724         }
7725         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_new(a, b);
7726         return nativeResponseValue;
7727 }
7728         // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
7729 /* @internal */
7730 export function C2Tuple_usizeTransactionZ_free(_res: number): void {
7731         if(!isWasmInitialized) {
7732                 throw new Error("initializeWasm() must be awaited first!");
7733         }
7734         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_free(_res);
7735         // debug statements here
7736 }
7737         // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
7738 /* @internal */
7739 export function CVec_C2Tuple_usizeTransactionZZ_free(_res: number): void {
7740         if(!isWasmInitialized) {
7741                 throw new Error("initializeWasm() must be awaited first!");
7742         }
7743         const nativeResponseValue = wasm.TS_CVec_C2Tuple_usizeTransactionZZ_free(_res);
7744         // debug statements here
7745 }
7746         // void CVec_TxidZ_free(struct LDKCVec_TxidZ _res);
7747 /* @internal */
7748 export function CVec_TxidZ_free(_res: number): void {
7749         if(!isWasmInitialized) {
7750                 throw new Error("initializeWasm() must be awaited first!");
7751         }
7752         const nativeResponseValue = wasm.TS_CVec_TxidZ_free(_res);
7753         // debug statements here
7754 }
7755         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_ok(void);
7756 /* @internal */
7757 export function CResult_NoneChannelMonitorUpdateErrZ_ok(): number {
7758         if(!isWasmInitialized) {
7759                 throw new Error("initializeWasm() must be awaited first!");
7760         }
7761         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_ok();
7762         return nativeResponseValue;
7763 }
7764         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_err(enum LDKChannelMonitorUpdateErr e);
7765 /* @internal */
7766 export function CResult_NoneChannelMonitorUpdateErrZ_err(e: ChannelMonitorUpdateErr): number {
7767         if(!isWasmInitialized) {
7768                 throw new Error("initializeWasm() must be awaited first!");
7769         }
7770         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_err(e);
7771         return nativeResponseValue;
7772 }
7773         // bool CResult_NoneChannelMonitorUpdateErrZ_is_ok(const struct LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR o);
7774 /* @internal */
7775 export function CResult_NoneChannelMonitorUpdateErrZ_is_ok(o: number): boolean {
7776         if(!isWasmInitialized) {
7777                 throw new Error("initializeWasm() must be awaited first!");
7778         }
7779         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_is_ok(o);
7780         return nativeResponseValue;
7781 }
7782         // void CResult_NoneChannelMonitorUpdateErrZ_free(struct LDKCResult_NoneChannelMonitorUpdateErrZ _res);
7783 /* @internal */
7784 export function CResult_NoneChannelMonitorUpdateErrZ_free(_res: number): void {
7785         if(!isWasmInitialized) {
7786                 throw new Error("initializeWasm() must be awaited first!");
7787         }
7788         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_free(_res);
7789         // debug statements here
7790 }
7791         // uintptr_t CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR arg);
7792 /* @internal */
7793 export function CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(arg: number): number {
7794         if(!isWasmInitialized) {
7795                 throw new Error("initializeWasm() must be awaited first!");
7796         }
7797         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(arg);
7798         return nativeResponseValue;
7799 }
7800         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_clone(const struct LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR orig);
7801 /* @internal */
7802 export function CResult_NoneChannelMonitorUpdateErrZ_clone(orig: number): number {
7803         if(!isWasmInitialized) {
7804                 throw new Error("initializeWasm() must be awaited first!");
7805         }
7806         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_clone(orig);
7807         return nativeResponseValue;
7808 }
7809         // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res);
7810 /* @internal */
7811 export function CVec_MonitorEventZ_free(_res: number): void {
7812         if(!isWasmInitialized) {
7813                 throw new Error("initializeWasm() must be awaited first!");
7814         }
7815         const nativeResponseValue = wasm.TS_CVec_MonitorEventZ_free(_res);
7816         // debug statements here
7817 }
7818         // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_some(struct LDKC2Tuple_usizeTransactionZ o);
7819 /* @internal */
7820 export function COption_C2Tuple_usizeTransactionZZ_some(o: number): number {
7821         if(!isWasmInitialized) {
7822                 throw new Error("initializeWasm() must be awaited first!");
7823         }
7824         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_some(o);
7825         return nativeResponseValue;
7826 }
7827         // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_none(void);
7828 /* @internal */
7829 export function COption_C2Tuple_usizeTransactionZZ_none(): number {
7830         if(!isWasmInitialized) {
7831                 throw new Error("initializeWasm() must be awaited first!");
7832         }
7833         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_none();
7834         return nativeResponseValue;
7835 }
7836         // void COption_C2Tuple_usizeTransactionZZ_free(struct LDKCOption_C2Tuple_usizeTransactionZZ _res);
7837 /* @internal */
7838 export function COption_C2Tuple_usizeTransactionZZ_free(_res: number): void {
7839         if(!isWasmInitialized) {
7840                 throw new Error("initializeWasm() must be awaited first!");
7841         }
7842         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_free(_res);
7843         // debug statements here
7844 }
7845         // uintptr_t COption_C2Tuple_usizeTransactionZZ_clone_ptr(LDKCOption_C2Tuple_usizeTransactionZZ *NONNULL_PTR arg);
7846 /* @internal */
7847 export function COption_C2Tuple_usizeTransactionZZ_clone_ptr(arg: number): number {
7848         if(!isWasmInitialized) {
7849                 throw new Error("initializeWasm() must be awaited first!");
7850         }
7851         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_clone_ptr(arg);
7852         return nativeResponseValue;
7853 }
7854         // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_clone(const struct LDKCOption_C2Tuple_usizeTransactionZZ *NONNULL_PTR orig);
7855 /* @internal */
7856 export function COption_C2Tuple_usizeTransactionZZ_clone(orig: number): number {
7857         if(!isWasmInitialized) {
7858                 throw new Error("initializeWasm() must be awaited first!");
7859         }
7860         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_clone(orig);
7861         return nativeResponseValue;
7862 }
7863         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_some(struct LDKClosureReason o);
7864 /* @internal */
7865 export function COption_ClosureReasonZ_some(o: number): number {
7866         if(!isWasmInitialized) {
7867                 throw new Error("initializeWasm() must be awaited first!");
7868         }
7869         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_some(o);
7870         return nativeResponseValue;
7871 }
7872         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_none(void);
7873 /* @internal */
7874 export function COption_ClosureReasonZ_none(): number {
7875         if(!isWasmInitialized) {
7876                 throw new Error("initializeWasm() must be awaited first!");
7877         }
7878         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_none();
7879         return nativeResponseValue;
7880 }
7881         // void COption_ClosureReasonZ_free(struct LDKCOption_ClosureReasonZ _res);
7882 /* @internal */
7883 export function COption_ClosureReasonZ_free(_res: number): void {
7884         if(!isWasmInitialized) {
7885                 throw new Error("initializeWasm() must be awaited first!");
7886         }
7887         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_free(_res);
7888         // debug statements here
7889 }
7890         // uintptr_t COption_ClosureReasonZ_clone_ptr(LDKCOption_ClosureReasonZ *NONNULL_PTR arg);
7891 /* @internal */
7892 export function COption_ClosureReasonZ_clone_ptr(arg: number): number {
7893         if(!isWasmInitialized) {
7894                 throw new Error("initializeWasm() must be awaited first!");
7895         }
7896         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_clone_ptr(arg);
7897         return nativeResponseValue;
7898 }
7899         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_clone(const struct LDKCOption_ClosureReasonZ *NONNULL_PTR orig);
7900 /* @internal */
7901 export function COption_ClosureReasonZ_clone(orig: number): number {
7902         if(!isWasmInitialized) {
7903                 throw new Error("initializeWasm() must be awaited first!");
7904         }
7905         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_clone(orig);
7906         return nativeResponseValue;
7907 }
7908         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_ok(struct LDKCOption_ClosureReasonZ o);
7909 /* @internal */
7910 export function CResult_COption_ClosureReasonZDecodeErrorZ_ok(o: number): number {
7911         if(!isWasmInitialized) {
7912                 throw new Error("initializeWasm() must be awaited first!");
7913         }
7914         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_ok(o);
7915         return nativeResponseValue;
7916 }
7917         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_err(struct LDKDecodeError e);
7918 /* @internal */
7919 export function CResult_COption_ClosureReasonZDecodeErrorZ_err(e: number): number {
7920         if(!isWasmInitialized) {
7921                 throw new Error("initializeWasm() must be awaited first!");
7922         }
7923         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_err(e);
7924         return nativeResponseValue;
7925 }
7926         // bool CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR o);
7927 /* @internal */
7928 export function CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(o: number): boolean {
7929         if(!isWasmInitialized) {
7930                 throw new Error("initializeWasm() must be awaited first!");
7931         }
7932         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(o);
7933         return nativeResponseValue;
7934 }
7935         // void CResult_COption_ClosureReasonZDecodeErrorZ_free(struct LDKCResult_COption_ClosureReasonZDecodeErrorZ _res);
7936 /* @internal */
7937 export function CResult_COption_ClosureReasonZDecodeErrorZ_free(_res: number): void {
7938         if(!isWasmInitialized) {
7939                 throw new Error("initializeWasm() must be awaited first!");
7940         }
7941         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_free(_res);
7942         // debug statements here
7943 }
7944         // uintptr_t CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR arg);
7945 /* @internal */
7946 export function CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(arg: number): number {
7947         if(!isWasmInitialized) {
7948                 throw new Error("initializeWasm() must be awaited first!");
7949         }
7950         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(arg);
7951         return nativeResponseValue;
7952 }
7953         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_clone(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR orig);
7954 /* @internal */
7955 export function CResult_COption_ClosureReasonZDecodeErrorZ_clone(orig: number): number {
7956         if(!isWasmInitialized) {
7957                 throw new Error("initializeWasm() must be awaited first!");
7958         }
7959         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_clone(orig);
7960         return nativeResponseValue;
7961 }
7962         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_some(struct LDKNetworkUpdate o);
7963 /* @internal */
7964 export function COption_NetworkUpdateZ_some(o: number): number {
7965         if(!isWasmInitialized) {
7966                 throw new Error("initializeWasm() must be awaited first!");
7967         }
7968         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_some(o);
7969         return nativeResponseValue;
7970 }
7971         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_none(void);
7972 /* @internal */
7973 export function COption_NetworkUpdateZ_none(): number {
7974         if(!isWasmInitialized) {
7975                 throw new Error("initializeWasm() must be awaited first!");
7976         }
7977         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_none();
7978         return nativeResponseValue;
7979 }
7980         // void COption_NetworkUpdateZ_free(struct LDKCOption_NetworkUpdateZ _res);
7981 /* @internal */
7982 export function COption_NetworkUpdateZ_free(_res: number): void {
7983         if(!isWasmInitialized) {
7984                 throw new Error("initializeWasm() must be awaited first!");
7985         }
7986         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_free(_res);
7987         // debug statements here
7988 }
7989         // uintptr_t COption_NetworkUpdateZ_clone_ptr(LDKCOption_NetworkUpdateZ *NONNULL_PTR arg);
7990 /* @internal */
7991 export function COption_NetworkUpdateZ_clone_ptr(arg: number): number {
7992         if(!isWasmInitialized) {
7993                 throw new Error("initializeWasm() must be awaited first!");
7994         }
7995         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_clone_ptr(arg);
7996         return nativeResponseValue;
7997 }
7998         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_clone(const struct LDKCOption_NetworkUpdateZ *NONNULL_PTR orig);
7999 /* @internal */
8000 export function COption_NetworkUpdateZ_clone(orig: number): number {
8001         if(!isWasmInitialized) {
8002                 throw new Error("initializeWasm() must be awaited first!");
8003         }
8004         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_clone(orig);
8005         return nativeResponseValue;
8006 }
8007         // void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescriptorZ _res);
8008 /* @internal */
8009 export function CVec_SpendableOutputDescriptorZ_free(_res: number): void {
8010         if(!isWasmInitialized) {
8011                 throw new Error("initializeWasm() must be awaited first!");
8012         }
8013         const nativeResponseValue = wasm.TS_CVec_SpendableOutputDescriptorZ_free(_res);
8014         // debug statements here
8015 }
8016         // struct LDKCOption_EventZ COption_EventZ_some(struct LDKEvent o);
8017 /* @internal */
8018 export function COption_EventZ_some(o: number): number {
8019         if(!isWasmInitialized) {
8020                 throw new Error("initializeWasm() must be awaited first!");
8021         }
8022         const nativeResponseValue = wasm.TS_COption_EventZ_some(o);
8023         return nativeResponseValue;
8024 }
8025         // struct LDKCOption_EventZ COption_EventZ_none(void);
8026 /* @internal */
8027 export function COption_EventZ_none(): number {
8028         if(!isWasmInitialized) {
8029                 throw new Error("initializeWasm() must be awaited first!");
8030         }
8031         const nativeResponseValue = wasm.TS_COption_EventZ_none();
8032         return nativeResponseValue;
8033 }
8034         // void COption_EventZ_free(struct LDKCOption_EventZ _res);
8035 /* @internal */
8036 export function COption_EventZ_free(_res: number): void {
8037         if(!isWasmInitialized) {
8038                 throw new Error("initializeWasm() must be awaited first!");
8039         }
8040         const nativeResponseValue = wasm.TS_COption_EventZ_free(_res);
8041         // debug statements here
8042 }
8043         // uintptr_t COption_EventZ_clone_ptr(LDKCOption_EventZ *NONNULL_PTR arg);
8044 /* @internal */
8045 export function COption_EventZ_clone_ptr(arg: number): number {
8046         if(!isWasmInitialized) {
8047                 throw new Error("initializeWasm() must be awaited first!");
8048         }
8049         const nativeResponseValue = wasm.TS_COption_EventZ_clone_ptr(arg);
8050         return nativeResponseValue;
8051 }
8052         // struct LDKCOption_EventZ COption_EventZ_clone(const struct LDKCOption_EventZ *NONNULL_PTR orig);
8053 /* @internal */
8054 export function COption_EventZ_clone(orig: number): number {
8055         if(!isWasmInitialized) {
8056                 throw new Error("initializeWasm() must be awaited first!");
8057         }
8058         const nativeResponseValue = wasm.TS_COption_EventZ_clone(orig);
8059         return nativeResponseValue;
8060 }
8061         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_ok(struct LDKCOption_EventZ o);
8062 /* @internal */
8063 export function CResult_COption_EventZDecodeErrorZ_ok(o: number): number {
8064         if(!isWasmInitialized) {
8065                 throw new Error("initializeWasm() must be awaited first!");
8066         }
8067         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_ok(o);
8068         return nativeResponseValue;
8069 }
8070         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_err(struct LDKDecodeError e);
8071 /* @internal */
8072 export function CResult_COption_EventZDecodeErrorZ_err(e: number): number {
8073         if(!isWasmInitialized) {
8074                 throw new Error("initializeWasm() must be awaited first!");
8075         }
8076         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_err(e);
8077         return nativeResponseValue;
8078 }
8079         // bool CResult_COption_EventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR o);
8080 /* @internal */
8081 export function CResult_COption_EventZDecodeErrorZ_is_ok(o: number): boolean {
8082         if(!isWasmInitialized) {
8083                 throw new Error("initializeWasm() must be awaited first!");
8084         }
8085         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_is_ok(o);
8086         return nativeResponseValue;
8087 }
8088         // void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDecodeErrorZ _res);
8089 /* @internal */
8090 export function CResult_COption_EventZDecodeErrorZ_free(_res: number): void {
8091         if(!isWasmInitialized) {
8092                 throw new Error("initializeWasm() must be awaited first!");
8093         }
8094         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_free(_res);
8095         // debug statements here
8096 }
8097         // uintptr_t CResult_COption_EventZDecodeErrorZ_clone_ptr(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR arg);
8098 /* @internal */
8099 export function CResult_COption_EventZDecodeErrorZ_clone_ptr(arg: number): number {
8100         if(!isWasmInitialized) {
8101                 throw new Error("initializeWasm() must be awaited first!");
8102         }
8103         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_clone_ptr(arg);
8104         return nativeResponseValue;
8105 }
8106         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig);
8107 /* @internal */
8108 export function CResult_COption_EventZDecodeErrorZ_clone(orig: number): number {
8109         if(!isWasmInitialized) {
8110                 throw new Error("initializeWasm() must be awaited first!");
8111         }
8112         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_clone(orig);
8113         return nativeResponseValue;
8114 }
8115         // void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res);
8116 /* @internal */
8117 export function CVec_MessageSendEventZ_free(_res: number): void {
8118         if(!isWasmInitialized) {
8119                 throw new Error("initializeWasm() must be awaited first!");
8120         }
8121         const nativeResponseValue = wasm.TS_CVec_MessageSendEventZ_free(_res);
8122         // debug statements here
8123 }
8124         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_ok(struct LDKFixedPenaltyScorer o);
8125 /* @internal */
8126 export function CResult_FixedPenaltyScorerDecodeErrorZ_ok(o: number): number {
8127         if(!isWasmInitialized) {
8128                 throw new Error("initializeWasm() must be awaited first!");
8129         }
8130         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_ok(o);
8131         return nativeResponseValue;
8132 }
8133         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_err(struct LDKDecodeError e);
8134 /* @internal */
8135 export function CResult_FixedPenaltyScorerDecodeErrorZ_err(e: number): number {
8136         if(!isWasmInitialized) {
8137                 throw new Error("initializeWasm() must be awaited first!");
8138         }
8139         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_err(e);
8140         return nativeResponseValue;
8141 }
8142         // bool CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR o);
8143 /* @internal */
8144 export function CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(o: number): boolean {
8145         if(!isWasmInitialized) {
8146                 throw new Error("initializeWasm() must be awaited first!");
8147         }
8148         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(o);
8149         return nativeResponseValue;
8150 }
8151         // void CResult_FixedPenaltyScorerDecodeErrorZ_free(struct LDKCResult_FixedPenaltyScorerDecodeErrorZ _res);
8152 /* @internal */
8153 export function CResult_FixedPenaltyScorerDecodeErrorZ_free(_res: number): void {
8154         if(!isWasmInitialized) {
8155                 throw new Error("initializeWasm() must be awaited first!");
8156         }
8157         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_free(_res);
8158         // debug statements here
8159 }
8160         // uintptr_t CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR arg);
8161 /* @internal */
8162 export function CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(arg: number): number {
8163         if(!isWasmInitialized) {
8164                 throw new Error("initializeWasm() must be awaited first!");
8165         }
8166         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(arg);
8167         return nativeResponseValue;
8168 }
8169         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_clone(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR orig);
8170 /* @internal */
8171 export function CResult_FixedPenaltyScorerDecodeErrorZ_clone(orig: number): number {
8172         if(!isWasmInitialized) {
8173                 throw new Error("initializeWasm() must be awaited first!");
8174         }
8175         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_clone(orig);
8176         return nativeResponseValue;
8177 }
8178         // struct LDKCResult_ScoringParametersDecodeErrorZ CResult_ScoringParametersDecodeErrorZ_ok(struct LDKScoringParameters o);
8179 /* @internal */
8180 export function CResult_ScoringParametersDecodeErrorZ_ok(o: number): number {
8181         if(!isWasmInitialized) {
8182                 throw new Error("initializeWasm() must be awaited first!");
8183         }
8184         const nativeResponseValue = wasm.TS_CResult_ScoringParametersDecodeErrorZ_ok(o);
8185         return nativeResponseValue;
8186 }
8187         // struct LDKCResult_ScoringParametersDecodeErrorZ CResult_ScoringParametersDecodeErrorZ_err(struct LDKDecodeError e);
8188 /* @internal */
8189 export function CResult_ScoringParametersDecodeErrorZ_err(e: number): number {
8190         if(!isWasmInitialized) {
8191                 throw new Error("initializeWasm() must be awaited first!");
8192         }
8193         const nativeResponseValue = wasm.TS_CResult_ScoringParametersDecodeErrorZ_err(e);
8194         return nativeResponseValue;
8195 }
8196         // bool CResult_ScoringParametersDecodeErrorZ_is_ok(const struct LDKCResult_ScoringParametersDecodeErrorZ *NONNULL_PTR o);
8197 /* @internal */
8198 export function CResult_ScoringParametersDecodeErrorZ_is_ok(o: number): boolean {
8199         if(!isWasmInitialized) {
8200                 throw new Error("initializeWasm() must be awaited first!");
8201         }
8202         const nativeResponseValue = wasm.TS_CResult_ScoringParametersDecodeErrorZ_is_ok(o);
8203         return nativeResponseValue;
8204 }
8205         // void CResult_ScoringParametersDecodeErrorZ_free(struct LDKCResult_ScoringParametersDecodeErrorZ _res);
8206 /* @internal */
8207 export function CResult_ScoringParametersDecodeErrorZ_free(_res: number): void {
8208         if(!isWasmInitialized) {
8209                 throw new Error("initializeWasm() must be awaited first!");
8210         }
8211         const nativeResponseValue = wasm.TS_CResult_ScoringParametersDecodeErrorZ_free(_res);
8212         // debug statements here
8213 }
8214         // uintptr_t CResult_ScoringParametersDecodeErrorZ_clone_ptr(LDKCResult_ScoringParametersDecodeErrorZ *NONNULL_PTR arg);
8215 /* @internal */
8216 export function CResult_ScoringParametersDecodeErrorZ_clone_ptr(arg: number): number {
8217         if(!isWasmInitialized) {
8218                 throw new Error("initializeWasm() must be awaited first!");
8219         }
8220         const nativeResponseValue = wasm.TS_CResult_ScoringParametersDecodeErrorZ_clone_ptr(arg);
8221         return nativeResponseValue;
8222 }
8223         // struct LDKCResult_ScoringParametersDecodeErrorZ CResult_ScoringParametersDecodeErrorZ_clone(const struct LDKCResult_ScoringParametersDecodeErrorZ *NONNULL_PTR orig);
8224 /* @internal */
8225 export function CResult_ScoringParametersDecodeErrorZ_clone(orig: number): number {
8226         if(!isWasmInitialized) {
8227                 throw new Error("initializeWasm() must be awaited first!");
8228         }
8229         const nativeResponseValue = wasm.TS_CResult_ScoringParametersDecodeErrorZ_clone(orig);
8230         return nativeResponseValue;
8231 }
8232         // struct LDKCResult_ScorerDecodeErrorZ CResult_ScorerDecodeErrorZ_ok(struct LDKScorer o);
8233 /* @internal */
8234 export function CResult_ScorerDecodeErrorZ_ok(o: number): number {
8235         if(!isWasmInitialized) {
8236                 throw new Error("initializeWasm() must be awaited first!");
8237         }
8238         const nativeResponseValue = wasm.TS_CResult_ScorerDecodeErrorZ_ok(o);
8239         return nativeResponseValue;
8240 }
8241         // struct LDKCResult_ScorerDecodeErrorZ CResult_ScorerDecodeErrorZ_err(struct LDKDecodeError e);
8242 /* @internal */
8243 export function CResult_ScorerDecodeErrorZ_err(e: number): number {
8244         if(!isWasmInitialized) {
8245                 throw new Error("initializeWasm() must be awaited first!");
8246         }
8247         const nativeResponseValue = wasm.TS_CResult_ScorerDecodeErrorZ_err(e);
8248         return nativeResponseValue;
8249 }
8250         // bool CResult_ScorerDecodeErrorZ_is_ok(const struct LDKCResult_ScorerDecodeErrorZ *NONNULL_PTR o);
8251 /* @internal */
8252 export function CResult_ScorerDecodeErrorZ_is_ok(o: number): boolean {
8253         if(!isWasmInitialized) {
8254                 throw new Error("initializeWasm() must be awaited first!");
8255         }
8256         const nativeResponseValue = wasm.TS_CResult_ScorerDecodeErrorZ_is_ok(o);
8257         return nativeResponseValue;
8258 }
8259         // void CResult_ScorerDecodeErrorZ_free(struct LDKCResult_ScorerDecodeErrorZ _res);
8260 /* @internal */
8261 export function CResult_ScorerDecodeErrorZ_free(_res: number): void {
8262         if(!isWasmInitialized) {
8263                 throw new Error("initializeWasm() must be awaited first!");
8264         }
8265         const nativeResponseValue = wasm.TS_CResult_ScorerDecodeErrorZ_free(_res);
8266         // debug statements here
8267 }
8268         // struct LDKCResult_ProbabilisticScoringParametersDecodeErrorZ CResult_ProbabilisticScoringParametersDecodeErrorZ_ok(struct LDKProbabilisticScoringParameters o);
8269 /* @internal */
8270 export function CResult_ProbabilisticScoringParametersDecodeErrorZ_ok(o: number): number {
8271         if(!isWasmInitialized) {
8272                 throw new Error("initializeWasm() must be awaited first!");
8273         }
8274         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScoringParametersDecodeErrorZ_ok(o);
8275         return nativeResponseValue;
8276 }
8277         // struct LDKCResult_ProbabilisticScoringParametersDecodeErrorZ CResult_ProbabilisticScoringParametersDecodeErrorZ_err(struct LDKDecodeError e);
8278 /* @internal */
8279 export function CResult_ProbabilisticScoringParametersDecodeErrorZ_err(e: number): number {
8280         if(!isWasmInitialized) {
8281                 throw new Error("initializeWasm() must be awaited first!");
8282         }
8283         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScoringParametersDecodeErrorZ_err(e);
8284         return nativeResponseValue;
8285 }
8286         // bool CResult_ProbabilisticScoringParametersDecodeErrorZ_is_ok(const struct LDKCResult_ProbabilisticScoringParametersDecodeErrorZ *NONNULL_PTR o);
8287 /* @internal */
8288 export function CResult_ProbabilisticScoringParametersDecodeErrorZ_is_ok(o: number): boolean {
8289         if(!isWasmInitialized) {
8290                 throw new Error("initializeWasm() must be awaited first!");
8291         }
8292         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScoringParametersDecodeErrorZ_is_ok(o);
8293         return nativeResponseValue;
8294 }
8295         // void CResult_ProbabilisticScoringParametersDecodeErrorZ_free(struct LDKCResult_ProbabilisticScoringParametersDecodeErrorZ _res);
8296 /* @internal */
8297 export function CResult_ProbabilisticScoringParametersDecodeErrorZ_free(_res: number): void {
8298         if(!isWasmInitialized) {
8299                 throw new Error("initializeWasm() must be awaited first!");
8300         }
8301         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScoringParametersDecodeErrorZ_free(_res);
8302         // debug statements here
8303 }
8304         // uintptr_t CResult_ProbabilisticScoringParametersDecodeErrorZ_clone_ptr(LDKCResult_ProbabilisticScoringParametersDecodeErrorZ *NONNULL_PTR arg);
8305 /* @internal */
8306 export function CResult_ProbabilisticScoringParametersDecodeErrorZ_clone_ptr(arg: number): number {
8307         if(!isWasmInitialized) {
8308                 throw new Error("initializeWasm() must be awaited first!");
8309         }
8310         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScoringParametersDecodeErrorZ_clone_ptr(arg);
8311         return nativeResponseValue;
8312 }
8313         // struct LDKCResult_ProbabilisticScoringParametersDecodeErrorZ CResult_ProbabilisticScoringParametersDecodeErrorZ_clone(const struct LDKCResult_ProbabilisticScoringParametersDecodeErrorZ *NONNULL_PTR orig);
8314 /* @internal */
8315 export function CResult_ProbabilisticScoringParametersDecodeErrorZ_clone(orig: number): number {
8316         if(!isWasmInitialized) {
8317                 throw new Error("initializeWasm() must be awaited first!");
8318         }
8319         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScoringParametersDecodeErrorZ_clone(orig);
8320         return nativeResponseValue;
8321 }
8322         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o);
8323 /* @internal */
8324 export function CResult_InitFeaturesDecodeErrorZ_ok(o: number): number {
8325         if(!isWasmInitialized) {
8326                 throw new Error("initializeWasm() must be awaited first!");
8327         }
8328         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_ok(o);
8329         return nativeResponseValue;
8330 }
8331         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8332 /* @internal */
8333 export function CResult_InitFeaturesDecodeErrorZ_err(e: number): number {
8334         if(!isWasmInitialized) {
8335                 throw new Error("initializeWasm() must be awaited first!");
8336         }
8337         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_err(e);
8338         return nativeResponseValue;
8339 }
8340         // bool CResult_InitFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR o);
8341 /* @internal */
8342 export function CResult_InitFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8343         if(!isWasmInitialized) {
8344                 throw new Error("initializeWasm() must be awaited first!");
8345         }
8346         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_is_ok(o);
8347         return nativeResponseValue;
8348 }
8349         // void CResult_InitFeaturesDecodeErrorZ_free(struct LDKCResult_InitFeaturesDecodeErrorZ _res);
8350 /* @internal */
8351 export function CResult_InitFeaturesDecodeErrorZ_free(_res: number): void {
8352         if(!isWasmInitialized) {
8353                 throw new Error("initializeWasm() must be awaited first!");
8354         }
8355         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_free(_res);
8356         // debug statements here
8357 }
8358         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_ok(struct LDKChannelFeatures o);
8359 /* @internal */
8360 export function CResult_ChannelFeaturesDecodeErrorZ_ok(o: number): number {
8361         if(!isWasmInitialized) {
8362                 throw new Error("initializeWasm() must be awaited first!");
8363         }
8364         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_ok(o);
8365         return nativeResponseValue;
8366 }
8367         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8368 /* @internal */
8369 export function CResult_ChannelFeaturesDecodeErrorZ_err(e: number): number {
8370         if(!isWasmInitialized) {
8371                 throw new Error("initializeWasm() must be awaited first!");
8372         }
8373         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_err(e);
8374         return nativeResponseValue;
8375 }
8376         // bool CResult_ChannelFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR o);
8377 /* @internal */
8378 export function CResult_ChannelFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8379         if(!isWasmInitialized) {
8380                 throw new Error("initializeWasm() must be awaited first!");
8381         }
8382         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_is_ok(o);
8383         return nativeResponseValue;
8384 }
8385         // void CResult_ChannelFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelFeaturesDecodeErrorZ _res);
8386 /* @internal */
8387 export function CResult_ChannelFeaturesDecodeErrorZ_free(_res: number): void {
8388         if(!isWasmInitialized) {
8389                 throw new Error("initializeWasm() must be awaited first!");
8390         }
8391         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_free(_res);
8392         // debug statements here
8393 }
8394         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_ok(struct LDKNodeFeatures o);
8395 /* @internal */
8396 export function CResult_NodeFeaturesDecodeErrorZ_ok(o: number): number {
8397         if(!isWasmInitialized) {
8398                 throw new Error("initializeWasm() must be awaited first!");
8399         }
8400         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_ok(o);
8401         return nativeResponseValue;
8402 }
8403         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8404 /* @internal */
8405 export function CResult_NodeFeaturesDecodeErrorZ_err(e: number): number {
8406         if(!isWasmInitialized) {
8407                 throw new Error("initializeWasm() must be awaited first!");
8408         }
8409         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_err(e);
8410         return nativeResponseValue;
8411 }
8412         // bool CResult_NodeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR o);
8413 /* @internal */
8414 export function CResult_NodeFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8415         if(!isWasmInitialized) {
8416                 throw new Error("initializeWasm() must be awaited first!");
8417         }
8418         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_is_ok(o);
8419         return nativeResponseValue;
8420 }
8421         // void CResult_NodeFeaturesDecodeErrorZ_free(struct LDKCResult_NodeFeaturesDecodeErrorZ _res);
8422 /* @internal */
8423 export function CResult_NodeFeaturesDecodeErrorZ_free(_res: number): void {
8424         if(!isWasmInitialized) {
8425                 throw new Error("initializeWasm() must be awaited first!");
8426         }
8427         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_free(_res);
8428         // debug statements here
8429 }
8430         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_ok(struct LDKInvoiceFeatures o);
8431 /* @internal */
8432 export function CResult_InvoiceFeaturesDecodeErrorZ_ok(o: number): number {
8433         if(!isWasmInitialized) {
8434                 throw new Error("initializeWasm() must be awaited first!");
8435         }
8436         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_ok(o);
8437         return nativeResponseValue;
8438 }
8439         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8440 /* @internal */
8441 export function CResult_InvoiceFeaturesDecodeErrorZ_err(e: number): number {
8442         if(!isWasmInitialized) {
8443                 throw new Error("initializeWasm() must be awaited first!");
8444         }
8445         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_err(e);
8446         return nativeResponseValue;
8447 }
8448         // bool CResult_InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
8449 /* @internal */
8450 export function CResult_InvoiceFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8451         if(!isWasmInitialized) {
8452                 throw new Error("initializeWasm() must be awaited first!");
8453         }
8454         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_is_ok(o);
8455         return nativeResponseValue;
8456 }
8457         // void CResult_InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_InvoiceFeaturesDecodeErrorZ _res);
8458 /* @internal */
8459 export function CResult_InvoiceFeaturesDecodeErrorZ_free(_res: number): void {
8460         if(!isWasmInitialized) {
8461                 throw new Error("initializeWasm() must be awaited first!");
8462         }
8463         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_free(_res);
8464         // debug statements here
8465 }
8466         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_ok(struct LDKChannelTypeFeatures o);
8467 /* @internal */
8468 export function CResult_ChannelTypeFeaturesDecodeErrorZ_ok(o: number): number {
8469         if(!isWasmInitialized) {
8470                 throw new Error("initializeWasm() must be awaited first!");
8471         }
8472         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_ok(o);
8473         return nativeResponseValue;
8474 }
8475         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8476 /* @internal */
8477 export function CResult_ChannelTypeFeaturesDecodeErrorZ_err(e: number): number {
8478         if(!isWasmInitialized) {
8479                 throw new Error("initializeWasm() must be awaited first!");
8480         }
8481         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_err(e);
8482         return nativeResponseValue;
8483 }
8484         // bool CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR o);
8485 /* @internal */
8486 export function CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8487         if(!isWasmInitialized) {
8488                 throw new Error("initializeWasm() must be awaited first!");
8489         }
8490         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(o);
8491         return nativeResponseValue;
8492 }
8493         // void CResult_ChannelTypeFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ _res);
8494 /* @internal */
8495 export function CResult_ChannelTypeFeaturesDecodeErrorZ_free(_res: number): void {
8496         if(!isWasmInitialized) {
8497                 throw new Error("initializeWasm() must be awaited first!");
8498         }
8499         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_free(_res);
8500         // debug statements here
8501 }
8502         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKDelayedPaymentOutputDescriptor o);
8503 /* @internal */
8504 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(o: number): number {
8505         if(!isWasmInitialized) {
8506                 throw new Error("initializeWasm() must be awaited first!");
8507         }
8508         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(o);
8509         return nativeResponseValue;
8510 }
8511         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
8512 /* @internal */
8513 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(e: number): number {
8514         if(!isWasmInitialized) {
8515                 throw new Error("initializeWasm() must be awaited first!");
8516         }
8517         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(e);
8518         return nativeResponseValue;
8519 }
8520         // bool CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
8521 /* @internal */
8522 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(o: number): boolean {
8523         if(!isWasmInitialized) {
8524                 throw new Error("initializeWasm() must be awaited first!");
8525         }
8526         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(o);
8527         return nativeResponseValue;
8528 }
8529         // void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ _res);
8530 /* @internal */
8531 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(_res: number): void {
8532         if(!isWasmInitialized) {
8533                 throw new Error("initializeWasm() must be awaited first!");
8534         }
8535         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(_res);
8536         // debug statements here
8537 }
8538         // uintptr_t CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
8539 /* @internal */
8540 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg: number): number {
8541         if(!isWasmInitialized) {
8542                 throw new Error("initializeWasm() must be awaited first!");
8543         }
8544         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg);
8545         return nativeResponseValue;
8546 }
8547         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
8548 /* @internal */
8549 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(orig: number): number {
8550         if(!isWasmInitialized) {
8551                 throw new Error("initializeWasm() must be awaited first!");
8552         }
8553         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(orig);
8554         return nativeResponseValue;
8555 }
8556         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKStaticPaymentOutputDescriptor o);
8557 /* @internal */
8558 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(o: number): number {
8559         if(!isWasmInitialized) {
8560                 throw new Error("initializeWasm() must be awaited first!");
8561         }
8562         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(o);
8563         return nativeResponseValue;
8564 }
8565         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
8566 /* @internal */
8567 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(e: number): number {
8568         if(!isWasmInitialized) {
8569                 throw new Error("initializeWasm() must be awaited first!");
8570         }
8571         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(e);
8572         return nativeResponseValue;
8573 }
8574         // bool CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
8575 /* @internal */
8576 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(o: number): boolean {
8577         if(!isWasmInitialized) {
8578                 throw new Error("initializeWasm() must be awaited first!");
8579         }
8580         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(o);
8581         return nativeResponseValue;
8582 }
8583         // void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ _res);
8584 /* @internal */
8585 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(_res: number): void {
8586         if(!isWasmInitialized) {
8587                 throw new Error("initializeWasm() must be awaited first!");
8588         }
8589         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(_res);
8590         // debug statements here
8591 }
8592         // uintptr_t CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
8593 /* @internal */
8594 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg: number): number {
8595         if(!isWasmInitialized) {
8596                 throw new Error("initializeWasm() must be awaited first!");
8597         }
8598         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg);
8599         return nativeResponseValue;
8600 }
8601         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
8602 /* @internal */
8603 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(orig: number): number {
8604         if(!isWasmInitialized) {
8605                 throw new Error("initializeWasm() must be awaited first!");
8606         }
8607         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(orig);
8608         return nativeResponseValue;
8609 }
8610         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o);
8611 /* @internal */
8612 export function CResult_SpendableOutputDescriptorDecodeErrorZ_ok(o: number): number {
8613         if(!isWasmInitialized) {
8614                 throw new Error("initializeWasm() must be awaited first!");
8615         }
8616         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_ok(o);
8617         return nativeResponseValue;
8618 }
8619         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
8620 /* @internal */
8621 export function CResult_SpendableOutputDescriptorDecodeErrorZ_err(e: number): number {
8622         if(!isWasmInitialized) {
8623                 throw new Error("initializeWasm() must be awaited first!");
8624         }
8625         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_err(e);
8626         return nativeResponseValue;
8627 }
8628         // bool CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
8629 /* @internal */
8630 export function CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(o: number): boolean {
8631         if(!isWasmInitialized) {
8632                 throw new Error("initializeWasm() must be awaited first!");
8633         }
8634         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(o);
8635         return nativeResponseValue;
8636 }
8637         // void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ _res);
8638 /* @internal */
8639 export function CResult_SpendableOutputDescriptorDecodeErrorZ_free(_res: number): void {
8640         if(!isWasmInitialized) {
8641                 throw new Error("initializeWasm() must be awaited first!");
8642         }
8643         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_free(_res);
8644         // debug statements here
8645 }
8646         // uintptr_t CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
8647 /* @internal */
8648 export function CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(arg: number): number {
8649         if(!isWasmInitialized) {
8650                 throw new Error("initializeWasm() must be awaited first!");
8651         }
8652         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(arg);
8653         return nativeResponseValue;
8654 }
8655         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
8656 /* @internal */
8657 export function CResult_SpendableOutputDescriptorDecodeErrorZ_clone(orig: number): number {
8658         if(!isWasmInitialized) {
8659                 throw new Error("initializeWasm() must be awaited first!");
8660         }
8661         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_clone(orig);
8662         return nativeResponseValue;
8663 }
8664         // void CVec_PaymentPreimageZ_free(struct LDKCVec_PaymentPreimageZ _res);
8665 /* @internal */
8666 export function CVec_PaymentPreimageZ_free(_res: number): void {
8667         if(!isWasmInitialized) {
8668                 throw new Error("initializeWasm() must be awaited first!");
8669         }
8670         const nativeResponseValue = wasm.TS_CVec_PaymentPreimageZ_free(_res);
8671         // debug statements here
8672 }
8673         // uintptr_t C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR arg);
8674 /* @internal */
8675 export function C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(arg: number): number {
8676         if(!isWasmInitialized) {
8677                 throw new Error("initializeWasm() must be awaited first!");
8678         }
8679         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(arg);
8680         return nativeResponseValue;
8681 }
8682         // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_clone(const struct LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR orig);
8683 /* @internal */
8684 export function C2Tuple_SignatureCVec_SignatureZZ_clone(orig: number): number {
8685         if(!isWasmInitialized) {
8686                 throw new Error("initializeWasm() must be awaited first!");
8687         }
8688         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_clone(orig);
8689         return nativeResponseValue;
8690 }
8691         // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_new(struct LDKSignature a, struct LDKCVec_SignatureZ b);
8692 /* @internal */
8693 export function C2Tuple_SignatureCVec_SignatureZZ_new(a: number, b: number): number {
8694         if(!isWasmInitialized) {
8695                 throw new Error("initializeWasm() must be awaited first!");
8696         }
8697         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_new(a, b);
8698         return nativeResponseValue;
8699 }
8700         // void C2Tuple_SignatureCVec_SignatureZZ_free(struct LDKC2Tuple_SignatureCVec_SignatureZZ _res);
8701 /* @internal */
8702 export function C2Tuple_SignatureCVec_SignatureZZ_free(_res: number): void {
8703         if(!isWasmInitialized) {
8704                 throw new Error("initializeWasm() must be awaited first!");
8705         }
8706         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_free(_res);
8707         // debug statements here
8708 }
8709         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(struct LDKC2Tuple_SignatureCVec_SignatureZZ o);
8710 /* @internal */
8711 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(o: number): number {
8712         if(!isWasmInitialized) {
8713                 throw new Error("initializeWasm() must be awaited first!");
8714         }
8715         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(o);
8716         return nativeResponseValue;
8717 }
8718         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(void);
8719 /* @internal */
8720 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(): number {
8721         if(!isWasmInitialized) {
8722                 throw new Error("initializeWasm() must be awaited first!");
8723         }
8724         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err();
8725         return nativeResponseValue;
8726 }
8727         // bool CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR o);
8728 /* @internal */
8729 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(o: number): boolean {
8730         if(!isWasmInitialized) {
8731                 throw new Error("initializeWasm() must be awaited first!");
8732         }
8733         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(o);
8734         return nativeResponseValue;
8735 }
8736         // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ _res);
8737 /* @internal */
8738 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(_res: number): void {
8739         if(!isWasmInitialized) {
8740                 throw new Error("initializeWasm() must be awaited first!");
8741         }
8742         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(_res);
8743         // debug statements here
8744 }
8745         // uintptr_t CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR arg);
8746 /* @internal */
8747 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(arg: number): number {
8748         if(!isWasmInitialized) {
8749                 throw new Error("initializeWasm() must be awaited first!");
8750         }
8751         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(arg);
8752         return nativeResponseValue;
8753 }
8754         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR orig);
8755 /* @internal */
8756 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(orig: number): number {
8757         if(!isWasmInitialized) {
8758                 throw new Error("initializeWasm() must be awaited first!");
8759         }
8760         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(orig);
8761         return nativeResponseValue;
8762 }
8763         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_ok(struct LDKSignature o);
8764 /* @internal */
8765 export function CResult_SignatureNoneZ_ok(o: number): number {
8766         if(!isWasmInitialized) {
8767                 throw new Error("initializeWasm() must be awaited first!");
8768         }
8769         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_ok(o);
8770         return nativeResponseValue;
8771 }
8772         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_err(void);
8773 /* @internal */
8774 export function CResult_SignatureNoneZ_err(): number {
8775         if(!isWasmInitialized) {
8776                 throw new Error("initializeWasm() must be awaited first!");
8777         }
8778         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_err();
8779         return nativeResponseValue;
8780 }
8781         // bool CResult_SignatureNoneZ_is_ok(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR o);
8782 /* @internal */
8783 export function CResult_SignatureNoneZ_is_ok(o: number): boolean {
8784         if(!isWasmInitialized) {
8785                 throw new Error("initializeWasm() must be awaited first!");
8786         }
8787         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_is_ok(o);
8788         return nativeResponseValue;
8789 }
8790         // void CResult_SignatureNoneZ_free(struct LDKCResult_SignatureNoneZ _res);
8791 /* @internal */
8792 export function CResult_SignatureNoneZ_free(_res: number): void {
8793         if(!isWasmInitialized) {
8794                 throw new Error("initializeWasm() must be awaited first!");
8795         }
8796         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_free(_res);
8797         // debug statements here
8798 }
8799         // uintptr_t CResult_SignatureNoneZ_clone_ptr(LDKCResult_SignatureNoneZ *NONNULL_PTR arg);
8800 /* @internal */
8801 export function CResult_SignatureNoneZ_clone_ptr(arg: number): number {
8802         if(!isWasmInitialized) {
8803                 throw new Error("initializeWasm() must be awaited first!");
8804         }
8805         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_clone_ptr(arg);
8806         return nativeResponseValue;
8807 }
8808         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_clone(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR orig);
8809 /* @internal */
8810 export function CResult_SignatureNoneZ_clone(orig: number): number {
8811         if(!isWasmInitialized) {
8812                 throw new Error("initializeWasm() must be awaited first!");
8813         }
8814         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_clone(orig);
8815         return nativeResponseValue;
8816 }
8817         // uintptr_t C2Tuple_SignatureSignatureZ_clone_ptr(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR arg);
8818 /* @internal */
8819 export function C2Tuple_SignatureSignatureZ_clone_ptr(arg: number): number {
8820         if(!isWasmInitialized) {
8821                 throw new Error("initializeWasm() must be awaited first!");
8822         }
8823         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_clone_ptr(arg);
8824         return nativeResponseValue;
8825 }
8826         // struct LDKC2Tuple_SignatureSignatureZ C2Tuple_SignatureSignatureZ_clone(const struct LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR orig);
8827 /* @internal */
8828 export function C2Tuple_SignatureSignatureZ_clone(orig: number): number {
8829         if(!isWasmInitialized) {
8830                 throw new Error("initializeWasm() must be awaited first!");
8831         }
8832         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_clone(orig);
8833         return nativeResponseValue;
8834 }
8835         // struct LDKC2Tuple_SignatureSignatureZ C2Tuple_SignatureSignatureZ_new(struct LDKSignature a, struct LDKSignature b);
8836 /* @internal */
8837 export function C2Tuple_SignatureSignatureZ_new(a: number, b: number): number {
8838         if(!isWasmInitialized) {
8839                 throw new Error("initializeWasm() must be awaited first!");
8840         }
8841         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_new(a, b);
8842         return nativeResponseValue;
8843 }
8844         // void C2Tuple_SignatureSignatureZ_free(struct LDKC2Tuple_SignatureSignatureZ _res);
8845 /* @internal */
8846 export function C2Tuple_SignatureSignatureZ_free(_res: number): void {
8847         if(!isWasmInitialized) {
8848                 throw new Error("initializeWasm() must be awaited first!");
8849         }
8850         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_free(_res);
8851         // debug statements here
8852 }
8853         // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_ok(struct LDKC2Tuple_SignatureSignatureZ o);
8854 /* @internal */
8855 export function CResult_C2Tuple_SignatureSignatureZNoneZ_ok(o: number): number {
8856         if(!isWasmInitialized) {
8857                 throw new Error("initializeWasm() must be awaited first!");
8858         }
8859         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_ok(o);
8860         return nativeResponseValue;
8861 }
8862         // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_err(void);
8863 /* @internal */
8864 export function CResult_C2Tuple_SignatureSignatureZNoneZ_err(): number {
8865         if(!isWasmInitialized) {
8866                 throw new Error("initializeWasm() must be awaited first!");
8867         }
8868         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_err();
8869         return nativeResponseValue;
8870 }
8871         // bool CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR o);
8872 /* @internal */
8873 export function CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(o: number): boolean {
8874         if(!isWasmInitialized) {
8875                 throw new Error("initializeWasm() must be awaited first!");
8876         }
8877         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(o);
8878         return nativeResponseValue;
8879 }
8880         // void CResult_C2Tuple_SignatureSignatureZNoneZ_free(struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ _res);
8881 /* @internal */
8882 export function CResult_C2Tuple_SignatureSignatureZNoneZ_free(_res: number): void {
8883         if(!isWasmInitialized) {
8884                 throw new Error("initializeWasm() must be awaited first!");
8885         }
8886         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_free(_res);
8887         // debug statements here
8888 }
8889         // uintptr_t CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR arg);
8890 /* @internal */
8891 export function CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(arg: number): number {
8892         if(!isWasmInitialized) {
8893                 throw new Error("initializeWasm() must be awaited first!");
8894         }
8895         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(arg);
8896         return nativeResponseValue;
8897 }
8898         // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR orig);
8899 /* @internal */
8900 export function CResult_C2Tuple_SignatureSignatureZNoneZ_clone(orig: number): number {
8901         if(!isWasmInitialized) {
8902                 throw new Error("initializeWasm() must be awaited first!");
8903         }
8904         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_clone(orig);
8905         return nativeResponseValue;
8906 }
8907         // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_ok(struct LDKSecretKey o);
8908 /* @internal */
8909 export function CResult_SecretKeyNoneZ_ok(o: number): number {
8910         if(!isWasmInitialized) {
8911                 throw new Error("initializeWasm() must be awaited first!");
8912         }
8913         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_ok(o);
8914         return nativeResponseValue;
8915 }
8916         // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_err(void);
8917 /* @internal */
8918 export function CResult_SecretKeyNoneZ_err(): number {
8919         if(!isWasmInitialized) {
8920                 throw new Error("initializeWasm() must be awaited first!");
8921         }
8922         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_err();
8923         return nativeResponseValue;
8924 }
8925         // bool CResult_SecretKeyNoneZ_is_ok(const struct LDKCResult_SecretKeyNoneZ *NONNULL_PTR o);
8926 /* @internal */
8927 export function CResult_SecretKeyNoneZ_is_ok(o: number): boolean {
8928         if(!isWasmInitialized) {
8929                 throw new Error("initializeWasm() must be awaited first!");
8930         }
8931         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_is_ok(o);
8932         return nativeResponseValue;
8933 }
8934         // void CResult_SecretKeyNoneZ_free(struct LDKCResult_SecretKeyNoneZ _res);
8935 /* @internal */
8936 export function CResult_SecretKeyNoneZ_free(_res: number): void {
8937         if(!isWasmInitialized) {
8938                 throw new Error("initializeWasm() must be awaited first!");
8939         }
8940         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_free(_res);
8941         // debug statements here
8942 }
8943         // uintptr_t CResult_SecretKeyNoneZ_clone_ptr(LDKCResult_SecretKeyNoneZ *NONNULL_PTR arg);
8944 /* @internal */
8945 export function CResult_SecretKeyNoneZ_clone_ptr(arg: number): number {
8946         if(!isWasmInitialized) {
8947                 throw new Error("initializeWasm() must be awaited first!");
8948         }
8949         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_clone_ptr(arg);
8950         return nativeResponseValue;
8951 }
8952         // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_clone(const struct LDKCResult_SecretKeyNoneZ *NONNULL_PTR orig);
8953 /* @internal */
8954 export function CResult_SecretKeyNoneZ_clone(orig: number): number {
8955         if(!isWasmInitialized) {
8956                 throw new Error("initializeWasm() must be awaited first!");
8957         }
8958         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_clone(orig);
8959         return nativeResponseValue;
8960 }
8961         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_ok(struct LDKSign o);
8962 /* @internal */
8963 export function CResult_SignDecodeErrorZ_ok(o: number): number {
8964         if(!isWasmInitialized) {
8965                 throw new Error("initializeWasm() must be awaited first!");
8966         }
8967         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_ok(o);
8968         return nativeResponseValue;
8969 }
8970         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_err(struct LDKDecodeError e);
8971 /* @internal */
8972 export function CResult_SignDecodeErrorZ_err(e: number): number {
8973         if(!isWasmInitialized) {
8974                 throw new Error("initializeWasm() must be awaited first!");
8975         }
8976         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_err(e);
8977         return nativeResponseValue;
8978 }
8979         // bool CResult_SignDecodeErrorZ_is_ok(const struct LDKCResult_SignDecodeErrorZ *NONNULL_PTR o);
8980 /* @internal */
8981 export function CResult_SignDecodeErrorZ_is_ok(o: number): boolean {
8982         if(!isWasmInitialized) {
8983                 throw new Error("initializeWasm() must be awaited first!");
8984         }
8985         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_is_ok(o);
8986         return nativeResponseValue;
8987 }
8988         // void CResult_SignDecodeErrorZ_free(struct LDKCResult_SignDecodeErrorZ _res);
8989 /* @internal */
8990 export function CResult_SignDecodeErrorZ_free(_res: number): void {
8991         if(!isWasmInitialized) {
8992                 throw new Error("initializeWasm() must be awaited first!");
8993         }
8994         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_free(_res);
8995         // debug statements here
8996 }
8997         // uintptr_t CResult_SignDecodeErrorZ_clone_ptr(LDKCResult_SignDecodeErrorZ *NONNULL_PTR arg);
8998 /* @internal */
8999 export function CResult_SignDecodeErrorZ_clone_ptr(arg: number): number {
9000         if(!isWasmInitialized) {
9001                 throw new Error("initializeWasm() must be awaited first!");
9002         }
9003         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_clone_ptr(arg);
9004         return nativeResponseValue;
9005 }
9006         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_clone(const struct LDKCResult_SignDecodeErrorZ *NONNULL_PTR orig);
9007 /* @internal */
9008 export function CResult_SignDecodeErrorZ_clone(orig: number): number {
9009         if(!isWasmInitialized) {
9010                 throw new Error("initializeWasm() must be awaited first!");
9011         }
9012         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_clone(orig);
9013         return nativeResponseValue;
9014 }
9015         // void CVec_u5Z_free(struct LDKCVec_u5Z _res);
9016 /* @internal */
9017 export function CVec_u5Z_free(_res: number): void {
9018         if(!isWasmInitialized) {
9019                 throw new Error("initializeWasm() must be awaited first!");
9020         }
9021         const nativeResponseValue = wasm.TS_CVec_u5Z_free(_res);
9022         // debug statements here
9023 }
9024         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o);
9025 /* @internal */
9026 export function CResult_RecoverableSignatureNoneZ_ok(o: number): number {
9027         if(!isWasmInitialized) {
9028                 throw new Error("initializeWasm() must be awaited first!");
9029         }
9030         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_ok(o);
9031         return nativeResponseValue;
9032 }
9033         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void);
9034 /* @internal */
9035 export function CResult_RecoverableSignatureNoneZ_err(): number {
9036         if(!isWasmInitialized) {
9037                 throw new Error("initializeWasm() must be awaited first!");
9038         }
9039         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_err();
9040         return nativeResponseValue;
9041 }
9042         // bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o);
9043 /* @internal */
9044 export function CResult_RecoverableSignatureNoneZ_is_ok(o: number): boolean {
9045         if(!isWasmInitialized) {
9046                 throw new Error("initializeWasm() must be awaited first!");
9047         }
9048         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_is_ok(o);
9049         return nativeResponseValue;
9050 }
9051         // void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res);
9052 /* @internal */
9053 export function CResult_RecoverableSignatureNoneZ_free(_res: number): void {
9054         if(!isWasmInitialized) {
9055                 throw new Error("initializeWasm() must be awaited first!");
9056         }
9057         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_free(_res);
9058         // debug statements here
9059 }
9060         // uintptr_t CResult_RecoverableSignatureNoneZ_clone_ptr(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR arg);
9061 /* @internal */
9062 export function CResult_RecoverableSignatureNoneZ_clone_ptr(arg: number): number {
9063         if(!isWasmInitialized) {
9064                 throw new Error("initializeWasm() must be awaited first!");
9065         }
9066         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_clone_ptr(arg);
9067         return nativeResponseValue;
9068 }
9069         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig);
9070 /* @internal */
9071 export function CResult_RecoverableSignatureNoneZ_clone(orig: number): number {
9072         if(!isWasmInitialized) {
9073                 throw new Error("initializeWasm() must be awaited first!");
9074         }
9075         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_clone(orig);
9076         return nativeResponseValue;
9077 }
9078         // void CVec_u8Z_free(struct LDKCVec_u8Z _res);
9079 /* @internal */
9080 export function CVec_u8Z_free(_res: number): void {
9081         if(!isWasmInitialized) {
9082                 throw new Error("initializeWasm() must be awaited first!");
9083         }
9084         const nativeResponseValue = wasm.TS_CVec_u8Z_free(_res);
9085         // debug statements here
9086 }
9087         // void CVec_CVec_u8ZZ_free(struct LDKCVec_CVec_u8ZZ _res);
9088 /* @internal */
9089 export function CVec_CVec_u8ZZ_free(_res: number): void {
9090         if(!isWasmInitialized) {
9091                 throw new Error("initializeWasm() must be awaited first!");
9092         }
9093         const nativeResponseValue = wasm.TS_CVec_CVec_u8ZZ_free(_res);
9094         // debug statements here
9095 }
9096         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_ok(struct LDKCVec_CVec_u8ZZ o);
9097 /* @internal */
9098 export function CResult_CVec_CVec_u8ZZNoneZ_ok(o: number): number {
9099         if(!isWasmInitialized) {
9100                 throw new Error("initializeWasm() must be awaited first!");
9101         }
9102         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_ok(o);
9103         return nativeResponseValue;
9104 }
9105         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_err(void);
9106 /* @internal */
9107 export function CResult_CVec_CVec_u8ZZNoneZ_err(): number {
9108         if(!isWasmInitialized) {
9109                 throw new Error("initializeWasm() must be awaited first!");
9110         }
9111         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_err();
9112         return nativeResponseValue;
9113 }
9114         // bool CResult_CVec_CVec_u8ZZNoneZ_is_ok(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR o);
9115 /* @internal */
9116 export function CResult_CVec_CVec_u8ZZNoneZ_is_ok(o: number): boolean {
9117         if(!isWasmInitialized) {
9118                 throw new Error("initializeWasm() must be awaited first!");
9119         }
9120         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_is_ok(o);
9121         return nativeResponseValue;
9122 }
9123         // void CResult_CVec_CVec_u8ZZNoneZ_free(struct LDKCResult_CVec_CVec_u8ZZNoneZ _res);
9124 /* @internal */
9125 export function CResult_CVec_CVec_u8ZZNoneZ_free(_res: number): void {
9126         if(!isWasmInitialized) {
9127                 throw new Error("initializeWasm() must be awaited first!");
9128         }
9129         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_free(_res);
9130         // debug statements here
9131 }
9132         // uintptr_t CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR arg);
9133 /* @internal */
9134 export function CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(arg: number): number {
9135         if(!isWasmInitialized) {
9136                 throw new Error("initializeWasm() must be awaited first!");
9137         }
9138         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(arg);
9139         return nativeResponseValue;
9140 }
9141         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_clone(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR orig);
9142 /* @internal */
9143 export function CResult_CVec_CVec_u8ZZNoneZ_clone(orig: number): number {
9144         if(!isWasmInitialized) {
9145                 throw new Error("initializeWasm() must be awaited first!");
9146         }
9147         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_clone(orig);
9148         return nativeResponseValue;
9149 }
9150         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_ok(struct LDKInMemorySigner o);
9151 /* @internal */
9152 export function CResult_InMemorySignerDecodeErrorZ_ok(o: number): number {
9153         if(!isWasmInitialized) {
9154                 throw new Error("initializeWasm() must be awaited first!");
9155         }
9156         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_ok(o);
9157         return nativeResponseValue;
9158 }
9159         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_err(struct LDKDecodeError e);
9160 /* @internal */
9161 export function CResult_InMemorySignerDecodeErrorZ_err(e: number): number {
9162         if(!isWasmInitialized) {
9163                 throw new Error("initializeWasm() must be awaited first!");
9164         }
9165         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_err(e);
9166         return nativeResponseValue;
9167 }
9168         // bool CResult_InMemorySignerDecodeErrorZ_is_ok(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR o);
9169 /* @internal */
9170 export function CResult_InMemorySignerDecodeErrorZ_is_ok(o: number): boolean {
9171         if(!isWasmInitialized) {
9172                 throw new Error("initializeWasm() must be awaited first!");
9173         }
9174         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_is_ok(o);
9175         return nativeResponseValue;
9176 }
9177         // void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDecodeErrorZ _res);
9178 /* @internal */
9179 export function CResult_InMemorySignerDecodeErrorZ_free(_res: number): void {
9180         if(!isWasmInitialized) {
9181                 throw new Error("initializeWasm() must be awaited first!");
9182         }
9183         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_free(_res);
9184         // debug statements here
9185 }
9186         // uintptr_t CResult_InMemorySignerDecodeErrorZ_clone_ptr(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR arg);
9187 /* @internal */
9188 export function CResult_InMemorySignerDecodeErrorZ_clone_ptr(arg: number): number {
9189         if(!isWasmInitialized) {
9190                 throw new Error("initializeWasm() must be awaited first!");
9191         }
9192         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_clone_ptr(arg);
9193         return nativeResponseValue;
9194 }
9195         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig);
9196 /* @internal */
9197 export function CResult_InMemorySignerDecodeErrorZ_clone(orig: number): number {
9198         if(!isWasmInitialized) {
9199                 throw new Error("initializeWasm() must be awaited first!");
9200         }
9201         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_clone(orig);
9202         return nativeResponseValue;
9203 }
9204         // void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res);
9205 /* @internal */
9206 export function CVec_TxOutZ_free(_res: number): void {
9207         if(!isWasmInitialized) {
9208                 throw new Error("initializeWasm() must be awaited first!");
9209         }
9210         const nativeResponseValue = wasm.TS_CVec_TxOutZ_free(_res);
9211         // debug statements here
9212 }
9213         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o);
9214 /* @internal */
9215 export function CResult_TransactionNoneZ_ok(o: number): number {
9216         if(!isWasmInitialized) {
9217                 throw new Error("initializeWasm() must be awaited first!");
9218         }
9219         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_ok(o);
9220         return nativeResponseValue;
9221 }
9222         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void);
9223 /* @internal */
9224 export function CResult_TransactionNoneZ_err(): number {
9225         if(!isWasmInitialized) {
9226                 throw new Error("initializeWasm() must be awaited first!");
9227         }
9228         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_err();
9229         return nativeResponseValue;
9230 }
9231         // bool CResult_TransactionNoneZ_is_ok(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR o);
9232 /* @internal */
9233 export function CResult_TransactionNoneZ_is_ok(o: number): boolean {
9234         if(!isWasmInitialized) {
9235                 throw new Error("initializeWasm() must be awaited first!");
9236         }
9237         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_is_ok(o);
9238         return nativeResponseValue;
9239 }
9240         // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res);
9241 /* @internal */
9242 export function CResult_TransactionNoneZ_free(_res: number): void {
9243         if(!isWasmInitialized) {
9244                 throw new Error("initializeWasm() must be awaited first!");
9245         }
9246         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_free(_res);
9247         // debug statements here
9248 }
9249         // uintptr_t CResult_TransactionNoneZ_clone_ptr(LDKCResult_TransactionNoneZ *NONNULL_PTR arg);
9250 /* @internal */
9251 export function CResult_TransactionNoneZ_clone_ptr(arg: number): number {
9252         if(!isWasmInitialized) {
9253                 throw new Error("initializeWasm() must be awaited first!");
9254         }
9255         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_clone_ptr(arg);
9256         return nativeResponseValue;
9257 }
9258         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_clone(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR orig);
9259 /* @internal */
9260 export function CResult_TransactionNoneZ_clone(orig: number): number {
9261         if(!isWasmInitialized) {
9262                 throw new Error("initializeWasm() must be awaited first!");
9263         }
9264         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_clone(orig);
9265         return nativeResponseValue;
9266 }
9267         // struct LDKCOption_u16Z COption_u16Z_some(uint16_t o);
9268 /* @internal */
9269 export function COption_u16Z_some(o: number): number {
9270         if(!isWasmInitialized) {
9271                 throw new Error("initializeWasm() must be awaited first!");
9272         }
9273         const nativeResponseValue = wasm.TS_COption_u16Z_some(o);
9274         return nativeResponseValue;
9275 }
9276         // struct LDKCOption_u16Z COption_u16Z_none(void);
9277 /* @internal */
9278 export function COption_u16Z_none(): number {
9279         if(!isWasmInitialized) {
9280                 throw new Error("initializeWasm() must be awaited first!");
9281         }
9282         const nativeResponseValue = wasm.TS_COption_u16Z_none();
9283         return nativeResponseValue;
9284 }
9285         // void COption_u16Z_free(struct LDKCOption_u16Z _res);
9286 /* @internal */
9287 export function COption_u16Z_free(_res: number): void {
9288         if(!isWasmInitialized) {
9289                 throw new Error("initializeWasm() must be awaited first!");
9290         }
9291         const nativeResponseValue = wasm.TS_COption_u16Z_free(_res);
9292         // debug statements here
9293 }
9294         // uintptr_t COption_u16Z_clone_ptr(LDKCOption_u16Z *NONNULL_PTR arg);
9295 /* @internal */
9296 export function COption_u16Z_clone_ptr(arg: number): number {
9297         if(!isWasmInitialized) {
9298                 throw new Error("initializeWasm() must be awaited first!");
9299         }
9300         const nativeResponseValue = wasm.TS_COption_u16Z_clone_ptr(arg);
9301         return nativeResponseValue;
9302 }
9303         // struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig);
9304 /* @internal */
9305 export function COption_u16Z_clone(orig: number): number {
9306         if(!isWasmInitialized) {
9307                 throw new Error("initializeWasm() must be awaited first!");
9308         }
9309         const nativeResponseValue = wasm.TS_COption_u16Z_clone(orig);
9310         return nativeResponseValue;
9311 }
9312         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_ok(void);
9313 /* @internal */
9314 export function CResult_NoneAPIErrorZ_ok(): number {
9315         if(!isWasmInitialized) {
9316                 throw new Error("initializeWasm() must be awaited first!");
9317         }
9318         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_ok();
9319         return nativeResponseValue;
9320 }
9321         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_err(struct LDKAPIError e);
9322 /* @internal */
9323 export function CResult_NoneAPIErrorZ_err(e: number): number {
9324         if(!isWasmInitialized) {
9325                 throw new Error("initializeWasm() must be awaited first!");
9326         }
9327         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_err(e);
9328         return nativeResponseValue;
9329 }
9330         // bool CResult_NoneAPIErrorZ_is_ok(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR o);
9331 /* @internal */
9332 export function CResult_NoneAPIErrorZ_is_ok(o: number): boolean {
9333         if(!isWasmInitialized) {
9334                 throw new Error("initializeWasm() must be awaited first!");
9335         }
9336         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_is_ok(o);
9337         return nativeResponseValue;
9338 }
9339         // void CResult_NoneAPIErrorZ_free(struct LDKCResult_NoneAPIErrorZ _res);
9340 /* @internal */
9341 export function CResult_NoneAPIErrorZ_free(_res: number): void {
9342         if(!isWasmInitialized) {
9343                 throw new Error("initializeWasm() must be awaited first!");
9344         }
9345         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_free(_res);
9346         // debug statements here
9347 }
9348         // uintptr_t CResult_NoneAPIErrorZ_clone_ptr(LDKCResult_NoneAPIErrorZ *NONNULL_PTR arg);
9349 /* @internal */
9350 export function CResult_NoneAPIErrorZ_clone_ptr(arg: number): number {
9351         if(!isWasmInitialized) {
9352                 throw new Error("initializeWasm() must be awaited first!");
9353         }
9354         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_clone_ptr(arg);
9355         return nativeResponseValue;
9356 }
9357         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_clone(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR orig);
9358 /* @internal */
9359 export function CResult_NoneAPIErrorZ_clone(orig: number): number {
9360         if(!isWasmInitialized) {
9361                 throw new Error("initializeWasm() must be awaited first!");
9362         }
9363         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_clone(orig);
9364         return nativeResponseValue;
9365 }
9366         // void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res);
9367 /* @internal */
9368 export function CVec_CResult_NoneAPIErrorZZ_free(_res: number): void {
9369         if(!isWasmInitialized) {
9370                 throw new Error("initializeWasm() must be awaited first!");
9371         }
9372         const nativeResponseValue = wasm.TS_CVec_CResult_NoneAPIErrorZZ_free(_res);
9373         // debug statements here
9374 }
9375         // void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res);
9376 /* @internal */
9377 export function CVec_APIErrorZ_free(_res: number): void {
9378         if(!isWasmInitialized) {
9379                 throw new Error("initializeWasm() must be awaited first!");
9380         }
9381         const nativeResponseValue = wasm.TS_CVec_APIErrorZ_free(_res);
9382         // debug statements here
9383 }
9384         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_ok(struct LDKThirtyTwoBytes o);
9385 /* @internal */
9386 export function CResult__u832APIErrorZ_ok(o: number): number {
9387         if(!isWasmInitialized) {
9388                 throw new Error("initializeWasm() must be awaited first!");
9389         }
9390         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_ok(o);
9391         return nativeResponseValue;
9392 }
9393         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_err(struct LDKAPIError e);
9394 /* @internal */
9395 export function CResult__u832APIErrorZ_err(e: number): number {
9396         if(!isWasmInitialized) {
9397                 throw new Error("initializeWasm() must be awaited first!");
9398         }
9399         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_err(e);
9400         return nativeResponseValue;
9401 }
9402         // bool CResult__u832APIErrorZ_is_ok(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR o);
9403 /* @internal */
9404 export function CResult__u832APIErrorZ_is_ok(o: number): boolean {
9405         if(!isWasmInitialized) {
9406                 throw new Error("initializeWasm() must be awaited first!");
9407         }
9408         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_is_ok(o);
9409         return nativeResponseValue;
9410 }
9411         // void CResult__u832APIErrorZ_free(struct LDKCResult__u832APIErrorZ _res);
9412 /* @internal */
9413 export function CResult__u832APIErrorZ_free(_res: number): void {
9414         if(!isWasmInitialized) {
9415                 throw new Error("initializeWasm() must be awaited first!");
9416         }
9417         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_free(_res);
9418         // debug statements here
9419 }
9420         // uintptr_t CResult__u832APIErrorZ_clone_ptr(LDKCResult__u832APIErrorZ *NONNULL_PTR arg);
9421 /* @internal */
9422 export function CResult__u832APIErrorZ_clone_ptr(arg: number): number {
9423         if(!isWasmInitialized) {
9424                 throw new Error("initializeWasm() must be awaited first!");
9425         }
9426         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_clone_ptr(arg);
9427         return nativeResponseValue;
9428 }
9429         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_clone(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR orig);
9430 /* @internal */
9431 export function CResult__u832APIErrorZ_clone(orig: number): number {
9432         if(!isWasmInitialized) {
9433                 throw new Error("initializeWasm() must be awaited first!");
9434         }
9435         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_clone(orig);
9436         return nativeResponseValue;
9437 }
9438         // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o);
9439 /* @internal */
9440 export function CResult_PaymentIdPaymentSendFailureZ_ok(o: number): number {
9441         if(!isWasmInitialized) {
9442                 throw new Error("initializeWasm() must be awaited first!");
9443         }
9444         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_ok(o);
9445         return nativeResponseValue;
9446 }
9447         // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
9448 /* @internal */
9449 export function CResult_PaymentIdPaymentSendFailureZ_err(e: number): number {
9450         if(!isWasmInitialized) {
9451                 throw new Error("initializeWasm() must be awaited first!");
9452         }
9453         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_err(e);
9454         return nativeResponseValue;
9455 }
9456         // bool CResult_PaymentIdPaymentSendFailureZ_is_ok(const struct LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR o);
9457 /* @internal */
9458 export function CResult_PaymentIdPaymentSendFailureZ_is_ok(o: number): boolean {
9459         if(!isWasmInitialized) {
9460                 throw new Error("initializeWasm() must be awaited first!");
9461         }
9462         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_is_ok(o);
9463         return nativeResponseValue;
9464 }
9465         // void CResult_PaymentIdPaymentSendFailureZ_free(struct LDKCResult_PaymentIdPaymentSendFailureZ _res);
9466 /* @internal */
9467 export function CResult_PaymentIdPaymentSendFailureZ_free(_res: number): void {
9468         if(!isWasmInitialized) {
9469                 throw new Error("initializeWasm() must be awaited first!");
9470         }
9471         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_free(_res);
9472         // debug statements here
9473 }
9474         // uintptr_t CResult_PaymentIdPaymentSendFailureZ_clone_ptr(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR arg);
9475 /* @internal */
9476 export function CResult_PaymentIdPaymentSendFailureZ_clone_ptr(arg: number): number {
9477         if(!isWasmInitialized) {
9478                 throw new Error("initializeWasm() must be awaited first!");
9479         }
9480         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_clone_ptr(arg);
9481         return nativeResponseValue;
9482 }
9483         // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_clone(const struct LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR orig);
9484 /* @internal */
9485 export function CResult_PaymentIdPaymentSendFailureZ_clone(orig: number): number {
9486         if(!isWasmInitialized) {
9487                 throw new Error("initializeWasm() must be awaited first!");
9488         }
9489         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_clone(orig);
9490         return nativeResponseValue;
9491 }
9492         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_ok(void);
9493 /* @internal */
9494 export function CResult_NonePaymentSendFailureZ_ok(): number {
9495         if(!isWasmInitialized) {
9496                 throw new Error("initializeWasm() must be awaited first!");
9497         }
9498         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_ok();
9499         return nativeResponseValue;
9500 }
9501         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
9502 /* @internal */
9503 export function CResult_NonePaymentSendFailureZ_err(e: number): number {
9504         if(!isWasmInitialized) {
9505                 throw new Error("initializeWasm() must be awaited first!");
9506         }
9507         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_err(e);
9508         return nativeResponseValue;
9509 }
9510         // bool CResult_NonePaymentSendFailureZ_is_ok(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR o);
9511 /* @internal */
9512 export function CResult_NonePaymentSendFailureZ_is_ok(o: number): boolean {
9513         if(!isWasmInitialized) {
9514                 throw new Error("initializeWasm() must be awaited first!");
9515         }
9516         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_is_ok(o);
9517         return nativeResponseValue;
9518 }
9519         // void CResult_NonePaymentSendFailureZ_free(struct LDKCResult_NonePaymentSendFailureZ _res);
9520 /* @internal */
9521 export function CResult_NonePaymentSendFailureZ_free(_res: number): void {
9522         if(!isWasmInitialized) {
9523                 throw new Error("initializeWasm() must be awaited first!");
9524         }
9525         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_free(_res);
9526         // debug statements here
9527 }
9528         // uintptr_t CResult_NonePaymentSendFailureZ_clone_ptr(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR arg);
9529 /* @internal */
9530 export function CResult_NonePaymentSendFailureZ_clone_ptr(arg: number): number {
9531         if(!isWasmInitialized) {
9532                 throw new Error("initializeWasm() must be awaited first!");
9533         }
9534         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_clone_ptr(arg);
9535         return nativeResponseValue;
9536 }
9537         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_clone(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR orig);
9538 /* @internal */
9539 export function CResult_NonePaymentSendFailureZ_clone(orig: number): number {
9540         if(!isWasmInitialized) {
9541                 throw new Error("initializeWasm() must be awaited first!");
9542         }
9543         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_clone(orig);
9544         return nativeResponseValue;
9545 }
9546         // uintptr_t C2Tuple_PaymentHashPaymentIdZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR arg);
9547 /* @internal */
9548 export function C2Tuple_PaymentHashPaymentIdZ_clone_ptr(arg: number): number {
9549         if(!isWasmInitialized) {
9550                 throw new Error("initializeWasm() must be awaited first!");
9551         }
9552         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_clone_ptr(arg);
9553         return nativeResponseValue;
9554 }
9555         // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_clone(const struct LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR orig);
9556 /* @internal */
9557 export function C2Tuple_PaymentHashPaymentIdZ_clone(orig: number): number {
9558         if(!isWasmInitialized) {
9559                 throw new Error("initializeWasm() must be awaited first!");
9560         }
9561         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_clone(orig);
9562         return nativeResponseValue;
9563 }
9564         // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
9565 /* @internal */
9566 export function C2Tuple_PaymentHashPaymentIdZ_new(a: number, b: number): number {
9567         if(!isWasmInitialized) {
9568                 throw new Error("initializeWasm() must be awaited first!");
9569         }
9570         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_new(a, b);
9571         return nativeResponseValue;
9572 }
9573         // void C2Tuple_PaymentHashPaymentIdZ_free(struct LDKC2Tuple_PaymentHashPaymentIdZ _res);
9574 /* @internal */
9575 export function C2Tuple_PaymentHashPaymentIdZ_free(_res: number): void {
9576         if(!isWasmInitialized) {
9577                 throw new Error("initializeWasm() must be awaited first!");
9578         }
9579         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_free(_res);
9580         // debug statements here
9581 }
9582         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(struct LDKC2Tuple_PaymentHashPaymentIdZ o);
9583 /* @internal */
9584 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(o: number): number {
9585         if(!isWasmInitialized) {
9586                 throw new Error("initializeWasm() must be awaited first!");
9587         }
9588         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(o);
9589         return nativeResponseValue;
9590 }
9591         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
9592 /* @internal */
9593 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(e: number): number {
9594         if(!isWasmInitialized) {
9595                 throw new Error("initializeWasm() must be awaited first!");
9596         }
9597         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(e);
9598         return nativeResponseValue;
9599 }
9600         // bool CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR o);
9601 /* @internal */
9602 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(o: number): boolean {
9603         if(!isWasmInitialized) {
9604                 throw new Error("initializeWasm() must be awaited first!");
9605         }
9606         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(o);
9607         return nativeResponseValue;
9608 }
9609         // void CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ _res);
9610 /* @internal */
9611 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(_res: number): void {
9612         if(!isWasmInitialized) {
9613                 throw new Error("initializeWasm() must be awaited first!");
9614         }
9615         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(_res);
9616         // debug statements here
9617 }
9618         // uintptr_t CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR arg);
9619 /* @internal */
9620 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(arg: number): number {
9621         if(!isWasmInitialized) {
9622                 throw new Error("initializeWasm() must be awaited first!");
9623         }
9624         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(arg);
9625         return nativeResponseValue;
9626 }
9627         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR orig);
9628 /* @internal */
9629 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(orig: number): number {
9630         if(!isWasmInitialized) {
9631                 throw new Error("initializeWasm() must be awaited first!");
9632         }
9633         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(orig);
9634         return nativeResponseValue;
9635 }
9636         // void CVec_NetAddressZ_free(struct LDKCVec_NetAddressZ _res);
9637 /* @internal */
9638 export function CVec_NetAddressZ_free(_res: number): void {
9639         if(!isWasmInitialized) {
9640                 throw new Error("initializeWasm() must be awaited first!");
9641         }
9642         const nativeResponseValue = wasm.TS_CVec_NetAddressZ_free(_res);
9643         // debug statements here
9644 }
9645         // uintptr_t C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR arg);
9646 /* @internal */
9647 export function C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(arg: number): number {
9648         if(!isWasmInitialized) {
9649                 throw new Error("initializeWasm() must be awaited first!");
9650         }
9651         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(arg);
9652         return nativeResponseValue;
9653 }
9654         // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_clone(const struct LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR orig);
9655 /* @internal */
9656 export function C2Tuple_PaymentHashPaymentSecretZ_clone(orig: number): number {
9657         if(!isWasmInitialized) {
9658                 throw new Error("initializeWasm() must be awaited first!");
9659         }
9660         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_clone(orig);
9661         return nativeResponseValue;
9662 }
9663         // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
9664 /* @internal */
9665 export function C2Tuple_PaymentHashPaymentSecretZ_new(a: number, b: number): number {
9666         if(!isWasmInitialized) {
9667                 throw new Error("initializeWasm() must be awaited first!");
9668         }
9669         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_new(a, b);
9670         return nativeResponseValue;
9671 }
9672         // void C2Tuple_PaymentHashPaymentSecretZ_free(struct LDKC2Tuple_PaymentHashPaymentSecretZ _res);
9673 /* @internal */
9674 export function C2Tuple_PaymentHashPaymentSecretZ_free(_res: number): void {
9675         if(!isWasmInitialized) {
9676                 throw new Error("initializeWasm() must be awaited first!");
9677         }
9678         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_free(_res);
9679         // debug statements here
9680 }
9681         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
9682 /* @internal */
9683 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(o: number): number {
9684         if(!isWasmInitialized) {
9685                 throw new Error("initializeWasm() must be awaited first!");
9686         }
9687         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(o);
9688         return nativeResponseValue;
9689 }
9690         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(void);
9691 /* @internal */
9692 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(): number {
9693         if(!isWasmInitialized) {
9694                 throw new Error("initializeWasm() must be awaited first!");
9695         }
9696         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err();
9697         return nativeResponseValue;
9698 }
9699         // bool CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR o);
9700 /* @internal */
9701 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(o: number): boolean {
9702         if(!isWasmInitialized) {
9703                 throw new Error("initializeWasm() must be awaited first!");
9704         }
9705         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(o);
9706         return nativeResponseValue;
9707 }
9708         // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ _res);
9709 /* @internal */
9710 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(_res: number): void {
9711         if(!isWasmInitialized) {
9712                 throw new Error("initializeWasm() must be awaited first!");
9713         }
9714         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(_res);
9715         // debug statements here
9716 }
9717         // uintptr_t CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR arg);
9718 /* @internal */
9719 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(arg: number): number {
9720         if(!isWasmInitialized) {
9721                 throw new Error("initializeWasm() must be awaited first!");
9722         }
9723         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(arg);
9724         return nativeResponseValue;
9725 }
9726         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR orig);
9727 /* @internal */
9728 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(orig: number): number {
9729         if(!isWasmInitialized) {
9730                 throw new Error("initializeWasm() must be awaited first!");
9731         }
9732         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(orig);
9733         return nativeResponseValue;
9734 }
9735         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
9736 /* @internal */
9737 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(o: number): number {
9738         if(!isWasmInitialized) {
9739                 throw new Error("initializeWasm() must be awaited first!");
9740         }
9741         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(o);
9742         return nativeResponseValue;
9743 }
9744         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(struct LDKAPIError e);
9745 /* @internal */
9746 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(e: number): number {
9747         if(!isWasmInitialized) {
9748                 throw new Error("initializeWasm() must be awaited first!");
9749         }
9750         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(e);
9751         return nativeResponseValue;
9752 }
9753         // bool CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR o);
9754 /* @internal */
9755 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(o: number): boolean {
9756         if(!isWasmInitialized) {
9757                 throw new Error("initializeWasm() must be awaited first!");
9758         }
9759         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(o);
9760         return nativeResponseValue;
9761 }
9762         // void CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ _res);
9763 /* @internal */
9764 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(_res: number): void {
9765         if(!isWasmInitialized) {
9766                 throw new Error("initializeWasm() must be awaited first!");
9767         }
9768         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(_res);
9769         // debug statements here
9770 }
9771         // uintptr_t CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR arg);
9772 /* @internal */
9773 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(arg: number): number {
9774         if(!isWasmInitialized) {
9775                 throw new Error("initializeWasm() must be awaited first!");
9776         }
9777         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(arg);
9778         return nativeResponseValue;
9779 }
9780         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR orig);
9781 /* @internal */
9782 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(orig: number): number {
9783         if(!isWasmInitialized) {
9784                 throw new Error("initializeWasm() must be awaited first!");
9785         }
9786         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(orig);
9787         return nativeResponseValue;
9788 }
9789         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_ok(struct LDKThirtyTwoBytes o);
9790 /* @internal */
9791 export function CResult_PaymentSecretNoneZ_ok(o: number): number {
9792         if(!isWasmInitialized) {
9793                 throw new Error("initializeWasm() must be awaited first!");
9794         }
9795         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_ok(o);
9796         return nativeResponseValue;
9797 }
9798         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_err(void);
9799 /* @internal */
9800 export function CResult_PaymentSecretNoneZ_err(): number {
9801         if(!isWasmInitialized) {
9802                 throw new Error("initializeWasm() must be awaited first!");
9803         }
9804         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_err();
9805         return nativeResponseValue;
9806 }
9807         // bool CResult_PaymentSecretNoneZ_is_ok(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR o);
9808 /* @internal */
9809 export function CResult_PaymentSecretNoneZ_is_ok(o: number): boolean {
9810         if(!isWasmInitialized) {
9811                 throw new Error("initializeWasm() must be awaited first!");
9812         }
9813         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_is_ok(o);
9814         return nativeResponseValue;
9815 }
9816         // void CResult_PaymentSecretNoneZ_free(struct LDKCResult_PaymentSecretNoneZ _res);
9817 /* @internal */
9818 export function CResult_PaymentSecretNoneZ_free(_res: number): void {
9819         if(!isWasmInitialized) {
9820                 throw new Error("initializeWasm() must be awaited first!");
9821         }
9822         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_free(_res);
9823         // debug statements here
9824 }
9825         // uintptr_t CResult_PaymentSecretNoneZ_clone_ptr(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR arg);
9826 /* @internal */
9827 export function CResult_PaymentSecretNoneZ_clone_ptr(arg: number): number {
9828         if(!isWasmInitialized) {
9829                 throw new Error("initializeWasm() must be awaited first!");
9830         }
9831         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_clone_ptr(arg);
9832         return nativeResponseValue;
9833 }
9834         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_clone(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR orig);
9835 /* @internal */
9836 export function CResult_PaymentSecretNoneZ_clone(orig: number): number {
9837         if(!isWasmInitialized) {
9838                 throw new Error("initializeWasm() must be awaited first!");
9839         }
9840         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_clone(orig);
9841         return nativeResponseValue;
9842 }
9843         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
9844 /* @internal */
9845 export function CResult_PaymentSecretAPIErrorZ_ok(o: number): number {
9846         if(!isWasmInitialized) {
9847                 throw new Error("initializeWasm() must be awaited first!");
9848         }
9849         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_ok(o);
9850         return nativeResponseValue;
9851 }
9852         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_err(struct LDKAPIError e);
9853 /* @internal */
9854 export function CResult_PaymentSecretAPIErrorZ_err(e: number): number {
9855         if(!isWasmInitialized) {
9856                 throw new Error("initializeWasm() must be awaited first!");
9857         }
9858         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_err(e);
9859         return nativeResponseValue;
9860 }
9861         // bool CResult_PaymentSecretAPIErrorZ_is_ok(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR o);
9862 /* @internal */
9863 export function CResult_PaymentSecretAPIErrorZ_is_ok(o: number): boolean {
9864         if(!isWasmInitialized) {
9865                 throw new Error("initializeWasm() must be awaited first!");
9866         }
9867         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_is_ok(o);
9868         return nativeResponseValue;
9869 }
9870         // void CResult_PaymentSecretAPIErrorZ_free(struct LDKCResult_PaymentSecretAPIErrorZ _res);
9871 /* @internal */
9872 export function CResult_PaymentSecretAPIErrorZ_free(_res: number): void {
9873         if(!isWasmInitialized) {
9874                 throw new Error("initializeWasm() must be awaited first!");
9875         }
9876         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_free(_res);
9877         // debug statements here
9878 }
9879         // uintptr_t CResult_PaymentSecretAPIErrorZ_clone_ptr(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR arg);
9880 /* @internal */
9881 export function CResult_PaymentSecretAPIErrorZ_clone_ptr(arg: number): number {
9882         if(!isWasmInitialized) {
9883                 throw new Error("initializeWasm() must be awaited first!");
9884         }
9885         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_clone_ptr(arg);
9886         return nativeResponseValue;
9887 }
9888         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_clone(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR orig);
9889 /* @internal */
9890 export function CResult_PaymentSecretAPIErrorZ_clone(orig: number): number {
9891         if(!isWasmInitialized) {
9892                 throw new Error("initializeWasm() must be awaited first!");
9893         }
9894         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_clone(orig);
9895         return nativeResponseValue;
9896 }
9897         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
9898 /* @internal */
9899 export function CResult_PaymentPreimageAPIErrorZ_ok(o: number): number {
9900         if(!isWasmInitialized) {
9901                 throw new Error("initializeWasm() must be awaited first!");
9902         }
9903         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_ok(o);
9904         return nativeResponseValue;
9905 }
9906         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_err(struct LDKAPIError e);
9907 /* @internal */
9908 export function CResult_PaymentPreimageAPIErrorZ_err(e: number): number {
9909         if(!isWasmInitialized) {
9910                 throw new Error("initializeWasm() must be awaited first!");
9911         }
9912         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_err(e);
9913         return nativeResponseValue;
9914 }
9915         // bool CResult_PaymentPreimageAPIErrorZ_is_ok(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR o);
9916 /* @internal */
9917 export function CResult_PaymentPreimageAPIErrorZ_is_ok(o: number): boolean {
9918         if(!isWasmInitialized) {
9919                 throw new Error("initializeWasm() must be awaited first!");
9920         }
9921         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_is_ok(o);
9922         return nativeResponseValue;
9923 }
9924         // void CResult_PaymentPreimageAPIErrorZ_free(struct LDKCResult_PaymentPreimageAPIErrorZ _res);
9925 /* @internal */
9926 export function CResult_PaymentPreimageAPIErrorZ_free(_res: number): void {
9927         if(!isWasmInitialized) {
9928                 throw new Error("initializeWasm() must be awaited first!");
9929         }
9930         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_free(_res);
9931         // debug statements here
9932 }
9933         // uintptr_t CResult_PaymentPreimageAPIErrorZ_clone_ptr(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR arg);
9934 /* @internal */
9935 export function CResult_PaymentPreimageAPIErrorZ_clone_ptr(arg: number): number {
9936         if(!isWasmInitialized) {
9937                 throw new Error("initializeWasm() must be awaited first!");
9938         }
9939         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_clone_ptr(arg);
9940         return nativeResponseValue;
9941 }
9942         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_clone(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR orig);
9943 /* @internal */
9944 export function CResult_PaymentPreimageAPIErrorZ_clone(orig: number): number {
9945         if(!isWasmInitialized) {
9946                 throw new Error("initializeWasm() must be awaited first!");
9947         }
9948         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_clone(orig);
9949         return nativeResponseValue;
9950 }
9951         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(struct LDKCounterpartyForwardingInfo o);
9952 /* @internal */
9953 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(o: number): number {
9954         if(!isWasmInitialized) {
9955                 throw new Error("initializeWasm() must be awaited first!");
9956         }
9957         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(o);
9958         return nativeResponseValue;
9959 }
9960         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_err(struct LDKDecodeError e);
9961 /* @internal */
9962 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_err(e: number): number {
9963         if(!isWasmInitialized) {
9964                 throw new Error("initializeWasm() must be awaited first!");
9965         }
9966         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_err(e);
9967         return nativeResponseValue;
9968 }
9969         // bool CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR o);
9970 /* @internal */
9971 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(o: number): boolean {
9972         if(!isWasmInitialized) {
9973                 throw new Error("initializeWasm() must be awaited first!");
9974         }
9975         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(o);
9976         return nativeResponseValue;
9977 }
9978         // void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ _res);
9979 /* @internal */
9980 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_free(_res: number): void {
9981         if(!isWasmInitialized) {
9982                 throw new Error("initializeWasm() must be awaited first!");
9983         }
9984         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_free(_res);
9985         // debug statements here
9986 }
9987         // uintptr_t CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR arg);
9988 /* @internal */
9989 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(arg: number): number {
9990         if(!isWasmInitialized) {
9991                 throw new Error("initializeWasm() must be awaited first!");
9992         }
9993         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(arg);
9994         return nativeResponseValue;
9995 }
9996         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR orig);
9997 /* @internal */
9998 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(orig: number): number {
9999         if(!isWasmInitialized) {
10000                 throw new Error("initializeWasm() must be awaited first!");
10001         }
10002         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(orig);
10003         return nativeResponseValue;
10004 }
10005         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_ok(struct LDKChannelCounterparty o);
10006 /* @internal */
10007 export function CResult_ChannelCounterpartyDecodeErrorZ_ok(o: number): number {
10008         if(!isWasmInitialized) {
10009                 throw new Error("initializeWasm() must be awaited first!");
10010         }
10011         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_ok(o);
10012         return nativeResponseValue;
10013 }
10014         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_err(struct LDKDecodeError e);
10015 /* @internal */
10016 export function CResult_ChannelCounterpartyDecodeErrorZ_err(e: number): number {
10017         if(!isWasmInitialized) {
10018                 throw new Error("initializeWasm() must be awaited first!");
10019         }
10020         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_err(e);
10021         return nativeResponseValue;
10022 }
10023         // bool CResult_ChannelCounterpartyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR o);
10024 /* @internal */
10025 export function CResult_ChannelCounterpartyDecodeErrorZ_is_ok(o: number): boolean {
10026         if(!isWasmInitialized) {
10027                 throw new Error("initializeWasm() must be awaited first!");
10028         }
10029         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_is_ok(o);
10030         return nativeResponseValue;
10031 }
10032         // void CResult_ChannelCounterpartyDecodeErrorZ_free(struct LDKCResult_ChannelCounterpartyDecodeErrorZ _res);
10033 /* @internal */
10034 export function CResult_ChannelCounterpartyDecodeErrorZ_free(_res: number): void {
10035         if(!isWasmInitialized) {
10036                 throw new Error("initializeWasm() must be awaited first!");
10037         }
10038         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_free(_res);
10039         // debug statements here
10040 }
10041         // uintptr_t CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR arg);
10042 /* @internal */
10043 export function CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(arg: number): number {
10044         if(!isWasmInitialized) {
10045                 throw new Error("initializeWasm() must be awaited first!");
10046         }
10047         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(arg);
10048         return nativeResponseValue;
10049 }
10050         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_clone(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR orig);
10051 /* @internal */
10052 export function CResult_ChannelCounterpartyDecodeErrorZ_clone(orig: number): number {
10053         if(!isWasmInitialized) {
10054                 throw new Error("initializeWasm() must be awaited first!");
10055         }
10056         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_clone(orig);
10057         return nativeResponseValue;
10058 }
10059         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_ok(struct LDKChannelDetails o);
10060 /* @internal */
10061 export function CResult_ChannelDetailsDecodeErrorZ_ok(o: number): number {
10062         if(!isWasmInitialized) {
10063                 throw new Error("initializeWasm() must be awaited first!");
10064         }
10065         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_ok(o);
10066         return nativeResponseValue;
10067 }
10068         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_err(struct LDKDecodeError e);
10069 /* @internal */
10070 export function CResult_ChannelDetailsDecodeErrorZ_err(e: number): number {
10071         if(!isWasmInitialized) {
10072                 throw new Error("initializeWasm() must be awaited first!");
10073         }
10074         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_err(e);
10075         return nativeResponseValue;
10076 }
10077         // bool CResult_ChannelDetailsDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR o);
10078 /* @internal */
10079 export function CResult_ChannelDetailsDecodeErrorZ_is_ok(o: number): boolean {
10080         if(!isWasmInitialized) {
10081                 throw new Error("initializeWasm() must be awaited first!");
10082         }
10083         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_is_ok(o);
10084         return nativeResponseValue;
10085 }
10086         // void CResult_ChannelDetailsDecodeErrorZ_free(struct LDKCResult_ChannelDetailsDecodeErrorZ _res);
10087 /* @internal */
10088 export function CResult_ChannelDetailsDecodeErrorZ_free(_res: number): void {
10089         if(!isWasmInitialized) {
10090                 throw new Error("initializeWasm() must be awaited first!");
10091         }
10092         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_free(_res);
10093         // debug statements here
10094 }
10095         // uintptr_t CResult_ChannelDetailsDecodeErrorZ_clone_ptr(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR arg);
10096 /* @internal */
10097 export function CResult_ChannelDetailsDecodeErrorZ_clone_ptr(arg: number): number {
10098         if(!isWasmInitialized) {
10099                 throw new Error("initializeWasm() must be awaited first!");
10100         }
10101         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_clone_ptr(arg);
10102         return nativeResponseValue;
10103 }
10104         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_clone(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR orig);
10105 /* @internal */
10106 export function CResult_ChannelDetailsDecodeErrorZ_clone(orig: number): number {
10107         if(!isWasmInitialized) {
10108                 throw new Error("initializeWasm() must be awaited first!");
10109         }
10110         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_clone(orig);
10111         return nativeResponseValue;
10112 }
10113         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_ok(struct LDKPhantomRouteHints o);
10114 /* @internal */
10115 export function CResult_PhantomRouteHintsDecodeErrorZ_ok(o: number): number {
10116         if(!isWasmInitialized) {
10117                 throw new Error("initializeWasm() must be awaited first!");
10118         }
10119         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_ok(o);
10120         return nativeResponseValue;
10121 }
10122         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_err(struct LDKDecodeError e);
10123 /* @internal */
10124 export function CResult_PhantomRouteHintsDecodeErrorZ_err(e: number): number {
10125         if(!isWasmInitialized) {
10126                 throw new Error("initializeWasm() must be awaited first!");
10127         }
10128         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_err(e);
10129         return nativeResponseValue;
10130 }
10131         // bool CResult_PhantomRouteHintsDecodeErrorZ_is_ok(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR o);
10132 /* @internal */
10133 export function CResult_PhantomRouteHintsDecodeErrorZ_is_ok(o: number): boolean {
10134         if(!isWasmInitialized) {
10135                 throw new Error("initializeWasm() must be awaited first!");
10136         }
10137         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_is_ok(o);
10138         return nativeResponseValue;
10139 }
10140         // void CResult_PhantomRouteHintsDecodeErrorZ_free(struct LDKCResult_PhantomRouteHintsDecodeErrorZ _res);
10141 /* @internal */
10142 export function CResult_PhantomRouteHintsDecodeErrorZ_free(_res: number): void {
10143         if(!isWasmInitialized) {
10144                 throw new Error("initializeWasm() must be awaited first!");
10145         }
10146         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_free(_res);
10147         // debug statements here
10148 }
10149         // uintptr_t CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR arg);
10150 /* @internal */
10151 export function CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(arg: number): number {
10152         if(!isWasmInitialized) {
10153                 throw new Error("initializeWasm() must be awaited first!");
10154         }
10155         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(arg);
10156         return nativeResponseValue;
10157 }
10158         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_clone(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR orig);
10159 /* @internal */
10160 export function CResult_PhantomRouteHintsDecodeErrorZ_clone(orig: number): number {
10161         if(!isWasmInitialized) {
10162                 throw new Error("initializeWasm() must be awaited first!");
10163         }
10164         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_clone(orig);
10165         return nativeResponseValue;
10166 }
10167         // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res);
10168 /* @internal */
10169 export function CVec_ChannelMonitorZ_free(_res: number): void {
10170         if(!isWasmInitialized) {
10171                 throw new Error("initializeWasm() must be awaited first!");
10172         }
10173         const nativeResponseValue = wasm.TS_CVec_ChannelMonitorZ_free(_res);
10174         // debug statements here
10175 }
10176         // struct LDKC2Tuple_BlockHashChannelManagerZ C2Tuple_BlockHashChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
10177 /* @internal */
10178 export function C2Tuple_BlockHashChannelManagerZ_new(a: number, b: number): number {
10179         if(!isWasmInitialized) {
10180                 throw new Error("initializeWasm() must be awaited first!");
10181         }
10182         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_new(a, b);
10183         return nativeResponseValue;
10184 }
10185         // void C2Tuple_BlockHashChannelManagerZ_free(struct LDKC2Tuple_BlockHashChannelManagerZ _res);
10186 /* @internal */
10187 export function C2Tuple_BlockHashChannelManagerZ_free(_res: number): void {
10188         if(!isWasmInitialized) {
10189                 throw new Error("initializeWasm() must be awaited first!");
10190         }
10191         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_free(_res);
10192         // debug statements here
10193 }
10194         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelManagerZ o);
10195 /* @internal */
10196 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(o: number): number {
10197         if(!isWasmInitialized) {
10198                 throw new Error("initializeWasm() must be awaited first!");
10199         }
10200         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(o);
10201         return nativeResponseValue;
10202 }
10203         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e);
10204 /* @internal */
10205 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(e: number): number {
10206         if(!isWasmInitialized) {
10207                 throw new Error("initializeWasm() must be awaited first!");
10208         }
10209         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(e);
10210         return nativeResponseValue;
10211 }
10212         // bool CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR o);
10213 /* @internal */
10214 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(o: number): boolean {
10215         if(!isWasmInitialized) {
10216                 throw new Error("initializeWasm() must be awaited first!");
10217         }
10218         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(o);
10219         return nativeResponseValue;
10220 }
10221         // void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ _res);
10222 /* @internal */
10223 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(_res: number): void {
10224         if(!isWasmInitialized) {
10225                 throw new Error("initializeWasm() must be awaited first!");
10226         }
10227         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(_res);
10228         // debug statements here
10229 }
10230         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_ok(struct LDKChannelConfig o);
10231 /* @internal */
10232 export function CResult_ChannelConfigDecodeErrorZ_ok(o: number): number {
10233         if(!isWasmInitialized) {
10234                 throw new Error("initializeWasm() must be awaited first!");
10235         }
10236         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_ok(o);
10237         return nativeResponseValue;
10238 }
10239         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_err(struct LDKDecodeError e);
10240 /* @internal */
10241 export function CResult_ChannelConfigDecodeErrorZ_err(e: number): number {
10242         if(!isWasmInitialized) {
10243                 throw new Error("initializeWasm() must be awaited first!");
10244         }
10245         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_err(e);
10246         return nativeResponseValue;
10247 }
10248         // bool CResult_ChannelConfigDecodeErrorZ_is_ok(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR o);
10249 /* @internal */
10250 export function CResult_ChannelConfigDecodeErrorZ_is_ok(o: number): boolean {
10251         if(!isWasmInitialized) {
10252                 throw new Error("initializeWasm() must be awaited first!");
10253         }
10254         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_is_ok(o);
10255         return nativeResponseValue;
10256 }
10257         // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res);
10258 /* @internal */
10259 export function CResult_ChannelConfigDecodeErrorZ_free(_res: number): void {
10260         if(!isWasmInitialized) {
10261                 throw new Error("initializeWasm() must be awaited first!");
10262         }
10263         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_free(_res);
10264         // debug statements here
10265 }
10266         // uintptr_t CResult_ChannelConfigDecodeErrorZ_clone_ptr(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR arg);
10267 /* @internal */
10268 export function CResult_ChannelConfigDecodeErrorZ_clone_ptr(arg: number): number {
10269         if(!isWasmInitialized) {
10270                 throw new Error("initializeWasm() must be awaited first!");
10271         }
10272         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_clone_ptr(arg);
10273         return nativeResponseValue;
10274 }
10275         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig);
10276 /* @internal */
10277 export function CResult_ChannelConfigDecodeErrorZ_clone(orig: number): number {
10278         if(!isWasmInitialized) {
10279                 throw new Error("initializeWasm() must be awaited first!");
10280         }
10281         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_clone(orig);
10282         return nativeResponseValue;
10283 }
10284         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o);
10285 /* @internal */
10286 export function CResult_OutPointDecodeErrorZ_ok(o: number): number {
10287         if(!isWasmInitialized) {
10288                 throw new Error("initializeWasm() must be awaited first!");
10289         }
10290         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_ok(o);
10291         return nativeResponseValue;
10292 }
10293         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e);
10294 /* @internal */
10295 export function CResult_OutPointDecodeErrorZ_err(e: number): number {
10296         if(!isWasmInitialized) {
10297                 throw new Error("initializeWasm() must be awaited first!");
10298         }
10299         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_err(e);
10300         return nativeResponseValue;
10301 }
10302         // bool CResult_OutPointDecodeErrorZ_is_ok(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR o);
10303 /* @internal */
10304 export function CResult_OutPointDecodeErrorZ_is_ok(o: number): boolean {
10305         if(!isWasmInitialized) {
10306                 throw new Error("initializeWasm() must be awaited first!");
10307         }
10308         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_is_ok(o);
10309         return nativeResponseValue;
10310 }
10311         // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res);
10312 /* @internal */
10313 export function CResult_OutPointDecodeErrorZ_free(_res: number): void {
10314         if(!isWasmInitialized) {
10315                 throw new Error("initializeWasm() must be awaited first!");
10316         }
10317         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_free(_res);
10318         // debug statements here
10319 }
10320         // uintptr_t CResult_OutPointDecodeErrorZ_clone_ptr(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR arg);
10321 /* @internal */
10322 export function CResult_OutPointDecodeErrorZ_clone_ptr(arg: number): number {
10323         if(!isWasmInitialized) {
10324                 throw new Error("initializeWasm() must be awaited first!");
10325         }
10326         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_clone_ptr(arg);
10327         return nativeResponseValue;
10328 }
10329         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig);
10330 /* @internal */
10331 export function CResult_OutPointDecodeErrorZ_clone(orig: number): number {
10332         if(!isWasmInitialized) {
10333                 throw new Error("initializeWasm() must be awaited first!");
10334         }
10335         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_clone(orig);
10336         return nativeResponseValue;
10337 }
10338         // struct LDKCOption_TypeZ COption_TypeZ_some(struct LDKType o);
10339 /* @internal */
10340 export function COption_TypeZ_some(o: number): number {
10341         if(!isWasmInitialized) {
10342                 throw new Error("initializeWasm() must be awaited first!");
10343         }
10344         const nativeResponseValue = wasm.TS_COption_TypeZ_some(o);
10345         return nativeResponseValue;
10346 }
10347         // struct LDKCOption_TypeZ COption_TypeZ_none(void);
10348 /* @internal */
10349 export function COption_TypeZ_none(): number {
10350         if(!isWasmInitialized) {
10351                 throw new Error("initializeWasm() must be awaited first!");
10352         }
10353         const nativeResponseValue = wasm.TS_COption_TypeZ_none();
10354         return nativeResponseValue;
10355 }
10356         // void COption_TypeZ_free(struct LDKCOption_TypeZ _res);
10357 /* @internal */
10358 export function COption_TypeZ_free(_res: number): void {
10359         if(!isWasmInitialized) {
10360                 throw new Error("initializeWasm() must be awaited first!");
10361         }
10362         const nativeResponseValue = wasm.TS_COption_TypeZ_free(_res);
10363         // debug statements here
10364 }
10365         // uintptr_t COption_TypeZ_clone_ptr(LDKCOption_TypeZ *NONNULL_PTR arg);
10366 /* @internal */
10367 export function COption_TypeZ_clone_ptr(arg: number): number {
10368         if(!isWasmInitialized) {
10369                 throw new Error("initializeWasm() must be awaited first!");
10370         }
10371         const nativeResponseValue = wasm.TS_COption_TypeZ_clone_ptr(arg);
10372         return nativeResponseValue;
10373 }
10374         // struct LDKCOption_TypeZ COption_TypeZ_clone(const struct LDKCOption_TypeZ *NONNULL_PTR orig);
10375 /* @internal */
10376 export function COption_TypeZ_clone(orig: number): number {
10377         if(!isWasmInitialized) {
10378                 throw new Error("initializeWasm() must be awaited first!");
10379         }
10380         const nativeResponseValue = wasm.TS_COption_TypeZ_clone(orig);
10381         return nativeResponseValue;
10382 }
10383         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_ok(struct LDKCOption_TypeZ o);
10384 /* @internal */
10385 export function CResult_COption_TypeZDecodeErrorZ_ok(o: number): number {
10386         if(!isWasmInitialized) {
10387                 throw new Error("initializeWasm() must be awaited first!");
10388         }
10389         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_ok(o);
10390         return nativeResponseValue;
10391 }
10392         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_err(struct LDKDecodeError e);
10393 /* @internal */
10394 export function CResult_COption_TypeZDecodeErrorZ_err(e: number): number {
10395         if(!isWasmInitialized) {
10396                 throw new Error("initializeWasm() must be awaited first!");
10397         }
10398         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_err(e);
10399         return nativeResponseValue;
10400 }
10401         // bool CResult_COption_TypeZDecodeErrorZ_is_ok(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR o);
10402 /* @internal */
10403 export function CResult_COption_TypeZDecodeErrorZ_is_ok(o: number): boolean {
10404         if(!isWasmInitialized) {
10405                 throw new Error("initializeWasm() must be awaited first!");
10406         }
10407         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_is_ok(o);
10408         return nativeResponseValue;
10409 }
10410         // void CResult_COption_TypeZDecodeErrorZ_free(struct LDKCResult_COption_TypeZDecodeErrorZ _res);
10411 /* @internal */
10412 export function CResult_COption_TypeZDecodeErrorZ_free(_res: number): void {
10413         if(!isWasmInitialized) {
10414                 throw new Error("initializeWasm() must be awaited first!");
10415         }
10416         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_free(_res);
10417         // debug statements here
10418 }
10419         // uintptr_t CResult_COption_TypeZDecodeErrorZ_clone_ptr(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR arg);
10420 /* @internal */
10421 export function CResult_COption_TypeZDecodeErrorZ_clone_ptr(arg: number): number {
10422         if(!isWasmInitialized) {
10423                 throw new Error("initializeWasm() must be awaited first!");
10424         }
10425         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_clone_ptr(arg);
10426         return nativeResponseValue;
10427 }
10428         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_clone(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR orig);
10429 /* @internal */
10430 export function CResult_COption_TypeZDecodeErrorZ_clone(orig: number): number {
10431         if(!isWasmInitialized) {
10432                 throw new Error("initializeWasm() must be awaited first!");
10433         }
10434         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_clone(orig);
10435         return nativeResponseValue;
10436 }
10437         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_ok(struct LDKThirtyTwoBytes o);
10438 /* @internal */
10439 export function CResult_PaymentIdPaymentErrorZ_ok(o: number): number {
10440         if(!isWasmInitialized) {
10441                 throw new Error("initializeWasm() must be awaited first!");
10442         }
10443         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_ok(o);
10444         return nativeResponseValue;
10445 }
10446         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_err(struct LDKPaymentError e);
10447 /* @internal */
10448 export function CResult_PaymentIdPaymentErrorZ_err(e: number): number {
10449         if(!isWasmInitialized) {
10450                 throw new Error("initializeWasm() must be awaited first!");
10451         }
10452         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_err(e);
10453         return nativeResponseValue;
10454 }
10455         // bool CResult_PaymentIdPaymentErrorZ_is_ok(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR o);
10456 /* @internal */
10457 export function CResult_PaymentIdPaymentErrorZ_is_ok(o: number): boolean {
10458         if(!isWasmInitialized) {
10459                 throw new Error("initializeWasm() must be awaited first!");
10460         }
10461         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_is_ok(o);
10462         return nativeResponseValue;
10463 }
10464         // void CResult_PaymentIdPaymentErrorZ_free(struct LDKCResult_PaymentIdPaymentErrorZ _res);
10465 /* @internal */
10466 export function CResult_PaymentIdPaymentErrorZ_free(_res: number): void {
10467         if(!isWasmInitialized) {
10468                 throw new Error("initializeWasm() must be awaited first!");
10469         }
10470         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_free(_res);
10471         // debug statements here
10472 }
10473         // uintptr_t CResult_PaymentIdPaymentErrorZ_clone_ptr(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR arg);
10474 /* @internal */
10475 export function CResult_PaymentIdPaymentErrorZ_clone_ptr(arg: number): number {
10476         if(!isWasmInitialized) {
10477                 throw new Error("initializeWasm() must be awaited first!");
10478         }
10479         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_clone_ptr(arg);
10480         return nativeResponseValue;
10481 }
10482         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_clone(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR orig);
10483 /* @internal */
10484 export function CResult_PaymentIdPaymentErrorZ_clone(orig: number): number {
10485         if(!isWasmInitialized) {
10486                 throw new Error("initializeWasm() must be awaited first!");
10487         }
10488         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_clone(orig);
10489         return nativeResponseValue;
10490 }
10491         // struct LDKCResult_SiPrefixNoneZ CResult_SiPrefixNoneZ_ok(enum LDKSiPrefix o);
10492 /* @internal */
10493 export function CResult_SiPrefixNoneZ_ok(o: SiPrefix): number {
10494         if(!isWasmInitialized) {
10495                 throw new Error("initializeWasm() must be awaited first!");
10496         }
10497         const nativeResponseValue = wasm.TS_CResult_SiPrefixNoneZ_ok(o);
10498         return nativeResponseValue;
10499 }
10500         // struct LDKCResult_SiPrefixNoneZ CResult_SiPrefixNoneZ_err(void);
10501 /* @internal */
10502 export function CResult_SiPrefixNoneZ_err(): number {
10503         if(!isWasmInitialized) {
10504                 throw new Error("initializeWasm() must be awaited first!");
10505         }
10506         const nativeResponseValue = wasm.TS_CResult_SiPrefixNoneZ_err();
10507         return nativeResponseValue;
10508 }
10509         // bool CResult_SiPrefixNoneZ_is_ok(const struct LDKCResult_SiPrefixNoneZ *NONNULL_PTR o);
10510 /* @internal */
10511 export function CResult_SiPrefixNoneZ_is_ok(o: number): boolean {
10512         if(!isWasmInitialized) {
10513                 throw new Error("initializeWasm() must be awaited first!");
10514         }
10515         const nativeResponseValue = wasm.TS_CResult_SiPrefixNoneZ_is_ok(o);
10516         return nativeResponseValue;
10517 }
10518         // void CResult_SiPrefixNoneZ_free(struct LDKCResult_SiPrefixNoneZ _res);
10519 /* @internal */
10520 export function CResult_SiPrefixNoneZ_free(_res: number): void {
10521         if(!isWasmInitialized) {
10522                 throw new Error("initializeWasm() must be awaited first!");
10523         }
10524         const nativeResponseValue = wasm.TS_CResult_SiPrefixNoneZ_free(_res);
10525         // debug statements here
10526 }
10527         // uintptr_t CResult_SiPrefixNoneZ_clone_ptr(LDKCResult_SiPrefixNoneZ *NONNULL_PTR arg);
10528 /* @internal */
10529 export function CResult_SiPrefixNoneZ_clone_ptr(arg: number): number {
10530         if(!isWasmInitialized) {
10531                 throw new Error("initializeWasm() must be awaited first!");
10532         }
10533         const nativeResponseValue = wasm.TS_CResult_SiPrefixNoneZ_clone_ptr(arg);
10534         return nativeResponseValue;
10535 }
10536         // struct LDKCResult_SiPrefixNoneZ CResult_SiPrefixNoneZ_clone(const struct LDKCResult_SiPrefixNoneZ *NONNULL_PTR orig);
10537 /* @internal */
10538 export function CResult_SiPrefixNoneZ_clone(orig: number): number {
10539         if(!isWasmInitialized) {
10540                 throw new Error("initializeWasm() must be awaited first!");
10541         }
10542         const nativeResponseValue = wasm.TS_CResult_SiPrefixNoneZ_clone(orig);
10543         return nativeResponseValue;
10544 }
10545         // struct LDKCResult_InvoiceNoneZ CResult_InvoiceNoneZ_ok(struct LDKInvoice o);
10546 /* @internal */
10547 export function CResult_InvoiceNoneZ_ok(o: number): number {
10548         if(!isWasmInitialized) {
10549                 throw new Error("initializeWasm() must be awaited first!");
10550         }
10551         const nativeResponseValue = wasm.TS_CResult_InvoiceNoneZ_ok(o);
10552         return nativeResponseValue;
10553 }
10554         // struct LDKCResult_InvoiceNoneZ CResult_InvoiceNoneZ_err(void);
10555 /* @internal */
10556 export function CResult_InvoiceNoneZ_err(): number {
10557         if(!isWasmInitialized) {
10558                 throw new Error("initializeWasm() must be awaited first!");
10559         }
10560         const nativeResponseValue = wasm.TS_CResult_InvoiceNoneZ_err();
10561         return nativeResponseValue;
10562 }
10563         // bool CResult_InvoiceNoneZ_is_ok(const struct LDKCResult_InvoiceNoneZ *NONNULL_PTR o);
10564 /* @internal */
10565 export function CResult_InvoiceNoneZ_is_ok(o: number): boolean {
10566         if(!isWasmInitialized) {
10567                 throw new Error("initializeWasm() must be awaited first!");
10568         }
10569         const nativeResponseValue = wasm.TS_CResult_InvoiceNoneZ_is_ok(o);
10570         return nativeResponseValue;
10571 }
10572         // void CResult_InvoiceNoneZ_free(struct LDKCResult_InvoiceNoneZ _res);
10573 /* @internal */
10574 export function CResult_InvoiceNoneZ_free(_res: number): void {
10575         if(!isWasmInitialized) {
10576                 throw new Error("initializeWasm() must be awaited first!");
10577         }
10578         const nativeResponseValue = wasm.TS_CResult_InvoiceNoneZ_free(_res);
10579         // debug statements here
10580 }
10581         // uintptr_t CResult_InvoiceNoneZ_clone_ptr(LDKCResult_InvoiceNoneZ *NONNULL_PTR arg);
10582 /* @internal */
10583 export function CResult_InvoiceNoneZ_clone_ptr(arg: number): number {
10584         if(!isWasmInitialized) {
10585                 throw new Error("initializeWasm() must be awaited first!");
10586         }
10587         const nativeResponseValue = wasm.TS_CResult_InvoiceNoneZ_clone_ptr(arg);
10588         return nativeResponseValue;
10589 }
10590         // struct LDKCResult_InvoiceNoneZ CResult_InvoiceNoneZ_clone(const struct LDKCResult_InvoiceNoneZ *NONNULL_PTR orig);
10591 /* @internal */
10592 export function CResult_InvoiceNoneZ_clone(orig: number): number {
10593         if(!isWasmInitialized) {
10594                 throw new Error("initializeWasm() must be awaited first!");
10595         }
10596         const nativeResponseValue = wasm.TS_CResult_InvoiceNoneZ_clone(orig);
10597         return nativeResponseValue;
10598 }
10599         // struct LDKCResult_SignedRawInvoiceNoneZ CResult_SignedRawInvoiceNoneZ_ok(struct LDKSignedRawInvoice o);
10600 /* @internal */
10601 export function CResult_SignedRawInvoiceNoneZ_ok(o: number): number {
10602         if(!isWasmInitialized) {
10603                 throw new Error("initializeWasm() must be awaited first!");
10604         }
10605         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceNoneZ_ok(o);
10606         return nativeResponseValue;
10607 }
10608         // struct LDKCResult_SignedRawInvoiceNoneZ CResult_SignedRawInvoiceNoneZ_err(void);
10609 /* @internal */
10610 export function CResult_SignedRawInvoiceNoneZ_err(): number {
10611         if(!isWasmInitialized) {
10612                 throw new Error("initializeWasm() must be awaited first!");
10613         }
10614         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceNoneZ_err();
10615         return nativeResponseValue;
10616 }
10617         // bool CResult_SignedRawInvoiceNoneZ_is_ok(const struct LDKCResult_SignedRawInvoiceNoneZ *NONNULL_PTR o);
10618 /* @internal */
10619 export function CResult_SignedRawInvoiceNoneZ_is_ok(o: number): boolean {
10620         if(!isWasmInitialized) {
10621                 throw new Error("initializeWasm() must be awaited first!");
10622         }
10623         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceNoneZ_is_ok(o);
10624         return nativeResponseValue;
10625 }
10626         // void CResult_SignedRawInvoiceNoneZ_free(struct LDKCResult_SignedRawInvoiceNoneZ _res);
10627 /* @internal */
10628 export function CResult_SignedRawInvoiceNoneZ_free(_res: number): void {
10629         if(!isWasmInitialized) {
10630                 throw new Error("initializeWasm() must be awaited first!");
10631         }
10632         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceNoneZ_free(_res);
10633         // debug statements here
10634 }
10635         // uintptr_t CResult_SignedRawInvoiceNoneZ_clone_ptr(LDKCResult_SignedRawInvoiceNoneZ *NONNULL_PTR arg);
10636 /* @internal */
10637 export function CResult_SignedRawInvoiceNoneZ_clone_ptr(arg: number): number {
10638         if(!isWasmInitialized) {
10639                 throw new Error("initializeWasm() must be awaited first!");
10640         }
10641         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceNoneZ_clone_ptr(arg);
10642         return nativeResponseValue;
10643 }
10644         // struct LDKCResult_SignedRawInvoiceNoneZ CResult_SignedRawInvoiceNoneZ_clone(const struct LDKCResult_SignedRawInvoiceNoneZ *NONNULL_PTR orig);
10645 /* @internal */
10646 export function CResult_SignedRawInvoiceNoneZ_clone(orig: number): number {
10647         if(!isWasmInitialized) {
10648                 throw new Error("initializeWasm() must be awaited first!");
10649         }
10650         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceNoneZ_clone(orig);
10651         return nativeResponseValue;
10652 }
10653         // uintptr_t C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR arg);
10654 /* @internal */
10655 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(arg: number): number {
10656         if(!isWasmInitialized) {
10657                 throw new Error("initializeWasm() must be awaited first!");
10658         }
10659         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(arg);
10660         return nativeResponseValue;
10661 }
10662         // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(const struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR orig);
10663 /* @internal */
10664 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(orig: number): number {
10665         if(!isWasmInitialized) {
10666                 throw new Error("initializeWasm() must be awaited first!");
10667         }
10668         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(orig);
10669         return nativeResponseValue;
10670 }
10671         // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(struct LDKRawInvoice a, struct LDKThirtyTwoBytes b, struct LDKInvoiceSignature c);
10672 /* @internal */
10673 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(a: number, b: number, c: number): number {
10674         if(!isWasmInitialized) {
10675                 throw new Error("initializeWasm() must be awaited first!");
10676         }
10677         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(a, b, c);
10678         return nativeResponseValue;
10679 }
10680         // void C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ _res);
10681 /* @internal */
10682 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(_res: number): void {
10683         if(!isWasmInitialized) {
10684                 throw new Error("initializeWasm() must be awaited first!");
10685         }
10686         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(_res);
10687         // debug statements here
10688 }
10689         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_ok(struct LDKPayeePubKey o);
10690 /* @internal */
10691 export function CResult_PayeePubKeyErrorZ_ok(o: number): number {
10692         if(!isWasmInitialized) {
10693                 throw new Error("initializeWasm() must be awaited first!");
10694         }
10695         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_ok(o);
10696         return nativeResponseValue;
10697 }
10698         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_err(enum LDKSecp256k1Error e);
10699 /* @internal */
10700 export function CResult_PayeePubKeyErrorZ_err(e: Secp256k1Error): number {
10701         if(!isWasmInitialized) {
10702                 throw new Error("initializeWasm() must be awaited first!");
10703         }
10704         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_err(e);
10705         return nativeResponseValue;
10706 }
10707         // bool CResult_PayeePubKeyErrorZ_is_ok(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR o);
10708 /* @internal */
10709 export function CResult_PayeePubKeyErrorZ_is_ok(o: number): boolean {
10710         if(!isWasmInitialized) {
10711                 throw new Error("initializeWasm() must be awaited first!");
10712         }
10713         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_is_ok(o);
10714         return nativeResponseValue;
10715 }
10716         // void CResult_PayeePubKeyErrorZ_free(struct LDKCResult_PayeePubKeyErrorZ _res);
10717 /* @internal */
10718 export function CResult_PayeePubKeyErrorZ_free(_res: number): void {
10719         if(!isWasmInitialized) {
10720                 throw new Error("initializeWasm() must be awaited first!");
10721         }
10722         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_free(_res);
10723         // debug statements here
10724 }
10725         // uintptr_t CResult_PayeePubKeyErrorZ_clone_ptr(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR arg);
10726 /* @internal */
10727 export function CResult_PayeePubKeyErrorZ_clone_ptr(arg: number): number {
10728         if(!isWasmInitialized) {
10729                 throw new Error("initializeWasm() must be awaited first!");
10730         }
10731         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_clone_ptr(arg);
10732         return nativeResponseValue;
10733 }
10734         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_clone(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR orig);
10735 /* @internal */
10736 export function CResult_PayeePubKeyErrorZ_clone(orig: number): number {
10737         if(!isWasmInitialized) {
10738                 throw new Error("initializeWasm() must be awaited first!");
10739         }
10740         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_clone(orig);
10741         return nativeResponseValue;
10742 }
10743         // void CVec_PrivateRouteZ_free(struct LDKCVec_PrivateRouteZ _res);
10744 /* @internal */
10745 export function CVec_PrivateRouteZ_free(_res: number): void {
10746         if(!isWasmInitialized) {
10747                 throw new Error("initializeWasm() must be awaited first!");
10748         }
10749         const nativeResponseValue = wasm.TS_CVec_PrivateRouteZ_free(_res);
10750         // debug statements here
10751 }
10752         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_ok(struct LDKPositiveTimestamp o);
10753 /* @internal */
10754 export function CResult_PositiveTimestampCreationErrorZ_ok(o: number): number {
10755         if(!isWasmInitialized) {
10756                 throw new Error("initializeWasm() must be awaited first!");
10757         }
10758         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_ok(o);
10759         return nativeResponseValue;
10760 }
10761         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_err(enum LDKCreationError e);
10762 /* @internal */
10763 export function CResult_PositiveTimestampCreationErrorZ_err(e: CreationError): number {
10764         if(!isWasmInitialized) {
10765                 throw new Error("initializeWasm() must be awaited first!");
10766         }
10767         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_err(e);
10768         return nativeResponseValue;
10769 }
10770         // bool CResult_PositiveTimestampCreationErrorZ_is_ok(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR o);
10771 /* @internal */
10772 export function CResult_PositiveTimestampCreationErrorZ_is_ok(o: number): boolean {
10773         if(!isWasmInitialized) {
10774                 throw new Error("initializeWasm() must be awaited first!");
10775         }
10776         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_is_ok(o);
10777         return nativeResponseValue;
10778 }
10779         // void CResult_PositiveTimestampCreationErrorZ_free(struct LDKCResult_PositiveTimestampCreationErrorZ _res);
10780 /* @internal */
10781 export function CResult_PositiveTimestampCreationErrorZ_free(_res: number): void {
10782         if(!isWasmInitialized) {
10783                 throw new Error("initializeWasm() must be awaited first!");
10784         }
10785         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_free(_res);
10786         // debug statements here
10787 }
10788         // uintptr_t CResult_PositiveTimestampCreationErrorZ_clone_ptr(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR arg);
10789 /* @internal */
10790 export function CResult_PositiveTimestampCreationErrorZ_clone_ptr(arg: number): number {
10791         if(!isWasmInitialized) {
10792                 throw new Error("initializeWasm() must be awaited first!");
10793         }
10794         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_clone_ptr(arg);
10795         return nativeResponseValue;
10796 }
10797         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_clone(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR orig);
10798 /* @internal */
10799 export function CResult_PositiveTimestampCreationErrorZ_clone(orig: number): number {
10800         if(!isWasmInitialized) {
10801                 throw new Error("initializeWasm() must be awaited first!");
10802         }
10803         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_clone(orig);
10804         return nativeResponseValue;
10805 }
10806         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_ok(void);
10807 /* @internal */
10808 export function CResult_NoneSemanticErrorZ_ok(): number {
10809         if(!isWasmInitialized) {
10810                 throw new Error("initializeWasm() must be awaited first!");
10811         }
10812         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_ok();
10813         return nativeResponseValue;
10814 }
10815         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_err(enum LDKSemanticError e);
10816 /* @internal */
10817 export function CResult_NoneSemanticErrorZ_err(e: SemanticError): number {
10818         if(!isWasmInitialized) {
10819                 throw new Error("initializeWasm() must be awaited first!");
10820         }
10821         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_err(e);
10822         return nativeResponseValue;
10823 }
10824         // bool CResult_NoneSemanticErrorZ_is_ok(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR o);
10825 /* @internal */
10826 export function CResult_NoneSemanticErrorZ_is_ok(o: number): boolean {
10827         if(!isWasmInitialized) {
10828                 throw new Error("initializeWasm() must be awaited first!");
10829         }
10830         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_is_ok(o);
10831         return nativeResponseValue;
10832 }
10833         // void CResult_NoneSemanticErrorZ_free(struct LDKCResult_NoneSemanticErrorZ _res);
10834 /* @internal */
10835 export function CResult_NoneSemanticErrorZ_free(_res: number): void {
10836         if(!isWasmInitialized) {
10837                 throw new Error("initializeWasm() must be awaited first!");
10838         }
10839         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_free(_res);
10840         // debug statements here
10841 }
10842         // uintptr_t CResult_NoneSemanticErrorZ_clone_ptr(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR arg);
10843 /* @internal */
10844 export function CResult_NoneSemanticErrorZ_clone_ptr(arg: number): number {
10845         if(!isWasmInitialized) {
10846                 throw new Error("initializeWasm() must be awaited first!");
10847         }
10848         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_clone_ptr(arg);
10849         return nativeResponseValue;
10850 }
10851         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_clone(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR orig);
10852 /* @internal */
10853 export function CResult_NoneSemanticErrorZ_clone(orig: number): number {
10854         if(!isWasmInitialized) {
10855                 throw new Error("initializeWasm() must be awaited first!");
10856         }
10857         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_clone(orig);
10858         return nativeResponseValue;
10859 }
10860         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_ok(struct LDKInvoice o);
10861 /* @internal */
10862 export function CResult_InvoiceSemanticErrorZ_ok(o: number): number {
10863         if(!isWasmInitialized) {
10864                 throw new Error("initializeWasm() must be awaited first!");
10865         }
10866         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_ok(o);
10867         return nativeResponseValue;
10868 }
10869         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_err(enum LDKSemanticError e);
10870 /* @internal */
10871 export function CResult_InvoiceSemanticErrorZ_err(e: SemanticError): number {
10872         if(!isWasmInitialized) {
10873                 throw new Error("initializeWasm() must be awaited first!");
10874         }
10875         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_err(e);
10876         return nativeResponseValue;
10877 }
10878         // bool CResult_InvoiceSemanticErrorZ_is_ok(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR o);
10879 /* @internal */
10880 export function CResult_InvoiceSemanticErrorZ_is_ok(o: number): boolean {
10881         if(!isWasmInitialized) {
10882                 throw new Error("initializeWasm() must be awaited first!");
10883         }
10884         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_is_ok(o);
10885         return nativeResponseValue;
10886 }
10887         // void CResult_InvoiceSemanticErrorZ_free(struct LDKCResult_InvoiceSemanticErrorZ _res);
10888 /* @internal */
10889 export function CResult_InvoiceSemanticErrorZ_free(_res: number): void {
10890         if(!isWasmInitialized) {
10891                 throw new Error("initializeWasm() must be awaited first!");
10892         }
10893         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_free(_res);
10894         // debug statements here
10895 }
10896         // uintptr_t CResult_InvoiceSemanticErrorZ_clone_ptr(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR arg);
10897 /* @internal */
10898 export function CResult_InvoiceSemanticErrorZ_clone_ptr(arg: number): number {
10899         if(!isWasmInitialized) {
10900                 throw new Error("initializeWasm() must be awaited first!");
10901         }
10902         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_clone_ptr(arg);
10903         return nativeResponseValue;
10904 }
10905         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_clone(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR orig);
10906 /* @internal */
10907 export function CResult_InvoiceSemanticErrorZ_clone(orig: number): number {
10908         if(!isWasmInitialized) {
10909                 throw new Error("initializeWasm() must be awaited first!");
10910         }
10911         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_clone(orig);
10912         return nativeResponseValue;
10913 }
10914         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_ok(struct LDKDescription o);
10915 /* @internal */
10916 export function CResult_DescriptionCreationErrorZ_ok(o: number): number {
10917         if(!isWasmInitialized) {
10918                 throw new Error("initializeWasm() must be awaited first!");
10919         }
10920         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_ok(o);
10921         return nativeResponseValue;
10922 }
10923         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_err(enum LDKCreationError e);
10924 /* @internal */
10925 export function CResult_DescriptionCreationErrorZ_err(e: CreationError): number {
10926         if(!isWasmInitialized) {
10927                 throw new Error("initializeWasm() must be awaited first!");
10928         }
10929         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_err(e);
10930         return nativeResponseValue;
10931 }
10932         // bool CResult_DescriptionCreationErrorZ_is_ok(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR o);
10933 /* @internal */
10934 export function CResult_DescriptionCreationErrorZ_is_ok(o: number): boolean {
10935         if(!isWasmInitialized) {
10936                 throw new Error("initializeWasm() must be awaited first!");
10937         }
10938         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_is_ok(o);
10939         return nativeResponseValue;
10940 }
10941         // void CResult_DescriptionCreationErrorZ_free(struct LDKCResult_DescriptionCreationErrorZ _res);
10942 /* @internal */
10943 export function CResult_DescriptionCreationErrorZ_free(_res: number): void {
10944         if(!isWasmInitialized) {
10945                 throw new Error("initializeWasm() must be awaited first!");
10946         }
10947         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_free(_res);
10948         // debug statements here
10949 }
10950         // uintptr_t CResult_DescriptionCreationErrorZ_clone_ptr(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR arg);
10951 /* @internal */
10952 export function CResult_DescriptionCreationErrorZ_clone_ptr(arg: number): number {
10953         if(!isWasmInitialized) {
10954                 throw new Error("initializeWasm() must be awaited first!");
10955         }
10956         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_clone_ptr(arg);
10957         return nativeResponseValue;
10958 }
10959         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_clone(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR orig);
10960 /* @internal */
10961 export function CResult_DescriptionCreationErrorZ_clone(orig: number): number {
10962         if(!isWasmInitialized) {
10963                 throw new Error("initializeWasm() must be awaited first!");
10964         }
10965         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_clone(orig);
10966         return nativeResponseValue;
10967 }
10968         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_ok(struct LDKPrivateRoute o);
10969 /* @internal */
10970 export function CResult_PrivateRouteCreationErrorZ_ok(o: number): number {
10971         if(!isWasmInitialized) {
10972                 throw new Error("initializeWasm() must be awaited first!");
10973         }
10974         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_ok(o);
10975         return nativeResponseValue;
10976 }
10977         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_err(enum LDKCreationError e);
10978 /* @internal */
10979 export function CResult_PrivateRouteCreationErrorZ_err(e: CreationError): number {
10980         if(!isWasmInitialized) {
10981                 throw new Error("initializeWasm() must be awaited first!");
10982         }
10983         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_err(e);
10984         return nativeResponseValue;
10985 }
10986         // bool CResult_PrivateRouteCreationErrorZ_is_ok(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR o);
10987 /* @internal */
10988 export function CResult_PrivateRouteCreationErrorZ_is_ok(o: number): boolean {
10989         if(!isWasmInitialized) {
10990                 throw new Error("initializeWasm() must be awaited first!");
10991         }
10992         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_is_ok(o);
10993         return nativeResponseValue;
10994 }
10995         // void CResult_PrivateRouteCreationErrorZ_free(struct LDKCResult_PrivateRouteCreationErrorZ _res);
10996 /* @internal */
10997 export function CResult_PrivateRouteCreationErrorZ_free(_res: number): void {
10998         if(!isWasmInitialized) {
10999                 throw new Error("initializeWasm() must be awaited first!");
11000         }
11001         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_free(_res);
11002         // debug statements here
11003 }
11004         // uintptr_t CResult_PrivateRouteCreationErrorZ_clone_ptr(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR arg);
11005 /* @internal */
11006 export function CResult_PrivateRouteCreationErrorZ_clone_ptr(arg: number): number {
11007         if(!isWasmInitialized) {
11008                 throw new Error("initializeWasm() must be awaited first!");
11009         }
11010         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_clone_ptr(arg);
11011         return nativeResponseValue;
11012 }
11013         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_clone(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR orig);
11014 /* @internal */
11015 export function CResult_PrivateRouteCreationErrorZ_clone(orig: number): number {
11016         if(!isWasmInitialized) {
11017                 throw new Error("initializeWasm() must be awaited first!");
11018         }
11019         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_clone(orig);
11020         return nativeResponseValue;
11021 }
11022         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_ok(struct LDKStr o);
11023 /* @internal */
11024 export function CResult_StringErrorZ_ok(o: number): number {
11025         if(!isWasmInitialized) {
11026                 throw new Error("initializeWasm() must be awaited first!");
11027         }
11028         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_ok(o);
11029         return nativeResponseValue;
11030 }
11031         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_err(enum LDKSecp256k1Error e);
11032 /* @internal */
11033 export function CResult_StringErrorZ_err(e: Secp256k1Error): number {
11034         if(!isWasmInitialized) {
11035                 throw new Error("initializeWasm() must be awaited first!");
11036         }
11037         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_err(e);
11038         return nativeResponseValue;
11039 }
11040         // bool CResult_StringErrorZ_is_ok(const struct LDKCResult_StringErrorZ *NONNULL_PTR o);
11041 /* @internal */
11042 export function CResult_StringErrorZ_is_ok(o: number): boolean {
11043         if(!isWasmInitialized) {
11044                 throw new Error("initializeWasm() must be awaited first!");
11045         }
11046         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_is_ok(o);
11047         return nativeResponseValue;
11048 }
11049         // void CResult_StringErrorZ_free(struct LDKCResult_StringErrorZ _res);
11050 /* @internal */
11051 export function CResult_StringErrorZ_free(_res: number): void {
11052         if(!isWasmInitialized) {
11053                 throw new Error("initializeWasm() must be awaited first!");
11054         }
11055         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_free(_res);
11056         // debug statements here
11057 }
11058         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o);
11059 /* @internal */
11060 export function CResult_ChannelMonitorUpdateDecodeErrorZ_ok(o: number): number {
11061         if(!isWasmInitialized) {
11062                 throw new Error("initializeWasm() must be awaited first!");
11063         }
11064         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_ok(o);
11065         return nativeResponseValue;
11066 }
11067         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e);
11068 /* @internal */
11069 export function CResult_ChannelMonitorUpdateDecodeErrorZ_err(e: number): number {
11070         if(!isWasmInitialized) {
11071                 throw new Error("initializeWasm() must be awaited first!");
11072         }
11073         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_err(e);
11074         return nativeResponseValue;
11075 }
11076         // bool CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR o);
11077 /* @internal */
11078 export function CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(o: number): boolean {
11079         if(!isWasmInitialized) {
11080                 throw new Error("initializeWasm() must be awaited first!");
11081         }
11082         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(o);
11083         return nativeResponseValue;
11084 }
11085         // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res);
11086 /* @internal */
11087 export function CResult_ChannelMonitorUpdateDecodeErrorZ_free(_res: number): void {
11088         if(!isWasmInitialized) {
11089                 throw new Error("initializeWasm() must be awaited first!");
11090         }
11091         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_free(_res);
11092         // debug statements here
11093 }
11094         // uintptr_t CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR arg);
11095 /* @internal */
11096 export function CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(arg: number): number {
11097         if(!isWasmInitialized) {
11098                 throw new Error("initializeWasm() must be awaited first!");
11099         }
11100         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(arg);
11101         return nativeResponseValue;
11102 }
11103         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR orig);
11104 /* @internal */
11105 export function CResult_ChannelMonitorUpdateDecodeErrorZ_clone(orig: number): number {
11106         if(!isWasmInitialized) {
11107                 throw new Error("initializeWasm() must be awaited first!");
11108         }
11109         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_clone(orig);
11110         return nativeResponseValue;
11111 }
11112         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_some(struct LDKMonitorEvent o);
11113 /* @internal */
11114 export function COption_MonitorEventZ_some(o: number): number {
11115         if(!isWasmInitialized) {
11116                 throw new Error("initializeWasm() must be awaited first!");
11117         }
11118         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_some(o);
11119         return nativeResponseValue;
11120 }
11121         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_none(void);
11122 /* @internal */
11123 export function COption_MonitorEventZ_none(): number {
11124         if(!isWasmInitialized) {
11125                 throw new Error("initializeWasm() must be awaited first!");
11126         }
11127         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_none();
11128         return nativeResponseValue;
11129 }
11130         // void COption_MonitorEventZ_free(struct LDKCOption_MonitorEventZ _res);
11131 /* @internal */
11132 export function COption_MonitorEventZ_free(_res: number): void {
11133         if(!isWasmInitialized) {
11134                 throw new Error("initializeWasm() must be awaited first!");
11135         }
11136         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_free(_res);
11137         // debug statements here
11138 }
11139         // uintptr_t COption_MonitorEventZ_clone_ptr(LDKCOption_MonitorEventZ *NONNULL_PTR arg);
11140 /* @internal */
11141 export function COption_MonitorEventZ_clone_ptr(arg: number): number {
11142         if(!isWasmInitialized) {
11143                 throw new Error("initializeWasm() must be awaited first!");
11144         }
11145         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_clone_ptr(arg);
11146         return nativeResponseValue;
11147 }
11148         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_clone(const struct LDKCOption_MonitorEventZ *NONNULL_PTR orig);
11149 /* @internal */
11150 export function COption_MonitorEventZ_clone(orig: number): number {
11151         if(!isWasmInitialized) {
11152                 throw new Error("initializeWasm() must be awaited first!");
11153         }
11154         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_clone(orig);
11155         return nativeResponseValue;
11156 }
11157         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_ok(struct LDKCOption_MonitorEventZ o);
11158 /* @internal */
11159 export function CResult_COption_MonitorEventZDecodeErrorZ_ok(o: number): number {
11160         if(!isWasmInitialized) {
11161                 throw new Error("initializeWasm() must be awaited first!");
11162         }
11163         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_ok(o);
11164         return nativeResponseValue;
11165 }
11166         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_err(struct LDKDecodeError e);
11167 /* @internal */
11168 export function CResult_COption_MonitorEventZDecodeErrorZ_err(e: number): number {
11169         if(!isWasmInitialized) {
11170                 throw new Error("initializeWasm() must be awaited first!");
11171         }
11172         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_err(e);
11173         return nativeResponseValue;
11174 }
11175         // bool CResult_COption_MonitorEventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR o);
11176 /* @internal */
11177 export function CResult_COption_MonitorEventZDecodeErrorZ_is_ok(o: number): boolean {
11178         if(!isWasmInitialized) {
11179                 throw new Error("initializeWasm() must be awaited first!");
11180         }
11181         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_is_ok(o);
11182         return nativeResponseValue;
11183 }
11184         // void CResult_COption_MonitorEventZDecodeErrorZ_free(struct LDKCResult_COption_MonitorEventZDecodeErrorZ _res);
11185 /* @internal */
11186 export function CResult_COption_MonitorEventZDecodeErrorZ_free(_res: number): void {
11187         if(!isWasmInitialized) {
11188                 throw new Error("initializeWasm() must be awaited first!");
11189         }
11190         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_free(_res);
11191         // debug statements here
11192 }
11193         // uintptr_t CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR arg);
11194 /* @internal */
11195 export function CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(arg: number): number {
11196         if(!isWasmInitialized) {
11197                 throw new Error("initializeWasm() must be awaited first!");
11198         }
11199         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(arg);
11200         return nativeResponseValue;
11201 }
11202         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_clone(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR orig);
11203 /* @internal */
11204 export function CResult_COption_MonitorEventZDecodeErrorZ_clone(orig: number): number {
11205         if(!isWasmInitialized) {
11206                 throw new Error("initializeWasm() must be awaited first!");
11207         }
11208         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_clone(orig);
11209         return nativeResponseValue;
11210 }
11211         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_ok(struct LDKHTLCUpdate o);
11212 /* @internal */
11213 export function CResult_HTLCUpdateDecodeErrorZ_ok(o: number): number {
11214         if(!isWasmInitialized) {
11215                 throw new Error("initializeWasm() must be awaited first!");
11216         }
11217         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_ok(o);
11218         return nativeResponseValue;
11219 }
11220         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_err(struct LDKDecodeError e);
11221 /* @internal */
11222 export function CResult_HTLCUpdateDecodeErrorZ_err(e: number): number {
11223         if(!isWasmInitialized) {
11224                 throw new Error("initializeWasm() must be awaited first!");
11225         }
11226         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_err(e);
11227         return nativeResponseValue;
11228 }
11229         // bool CResult_HTLCUpdateDecodeErrorZ_is_ok(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR o);
11230 /* @internal */
11231 export function CResult_HTLCUpdateDecodeErrorZ_is_ok(o: number): boolean {
11232         if(!isWasmInitialized) {
11233                 throw new Error("initializeWasm() must be awaited first!");
11234         }
11235         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_is_ok(o);
11236         return nativeResponseValue;
11237 }
11238         // void CResult_HTLCUpdateDecodeErrorZ_free(struct LDKCResult_HTLCUpdateDecodeErrorZ _res);
11239 /* @internal */
11240 export function CResult_HTLCUpdateDecodeErrorZ_free(_res: number): void {
11241         if(!isWasmInitialized) {
11242                 throw new Error("initializeWasm() must be awaited first!");
11243         }
11244         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_free(_res);
11245         // debug statements here
11246 }
11247         // uintptr_t CResult_HTLCUpdateDecodeErrorZ_clone_ptr(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR arg);
11248 /* @internal */
11249 export function CResult_HTLCUpdateDecodeErrorZ_clone_ptr(arg: number): number {
11250         if(!isWasmInitialized) {
11251                 throw new Error("initializeWasm() must be awaited first!");
11252         }
11253         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_clone_ptr(arg);
11254         return nativeResponseValue;
11255 }
11256         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR orig);
11257 /* @internal */
11258 export function CResult_HTLCUpdateDecodeErrorZ_clone(orig: number): number {
11259         if(!isWasmInitialized) {
11260                 throw new Error("initializeWasm() must be awaited first!");
11261         }
11262         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_clone(orig);
11263         return nativeResponseValue;
11264 }
11265         // uintptr_t C2Tuple_OutPointScriptZ_clone_ptr(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR arg);
11266 /* @internal */
11267 export function C2Tuple_OutPointScriptZ_clone_ptr(arg: number): number {
11268         if(!isWasmInitialized) {
11269                 throw new Error("initializeWasm() must be awaited first!");
11270         }
11271         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_clone_ptr(arg);
11272         return nativeResponseValue;
11273 }
11274         // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_clone(const struct LDKC2Tuple_OutPointScriptZ *NONNULL_PTR orig);
11275 /* @internal */
11276 export function C2Tuple_OutPointScriptZ_clone(orig: number): number {
11277         if(!isWasmInitialized) {
11278                 throw new Error("initializeWasm() must be awaited first!");
11279         }
11280         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_clone(orig);
11281         return nativeResponseValue;
11282 }
11283         // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
11284 /* @internal */
11285 export function C2Tuple_OutPointScriptZ_new(a: number, b: number): number {
11286         if(!isWasmInitialized) {
11287                 throw new Error("initializeWasm() must be awaited first!");
11288         }
11289         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_new(a, b);
11290         return nativeResponseValue;
11291 }
11292         // void C2Tuple_OutPointScriptZ_free(struct LDKC2Tuple_OutPointScriptZ _res);
11293 /* @internal */
11294 export function C2Tuple_OutPointScriptZ_free(_res: number): void {
11295         if(!isWasmInitialized) {
11296                 throw new Error("initializeWasm() must be awaited first!");
11297         }
11298         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_free(_res);
11299         // debug statements here
11300 }
11301         // uintptr_t C2Tuple_u32ScriptZ_clone_ptr(LDKC2Tuple_u32ScriptZ *NONNULL_PTR arg);
11302 /* @internal */
11303 export function C2Tuple_u32ScriptZ_clone_ptr(arg: number): number {
11304         if(!isWasmInitialized) {
11305                 throw new Error("initializeWasm() must be awaited first!");
11306         }
11307         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_clone_ptr(arg);
11308         return nativeResponseValue;
11309 }
11310         // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_clone(const struct LDKC2Tuple_u32ScriptZ *NONNULL_PTR orig);
11311 /* @internal */
11312 export function C2Tuple_u32ScriptZ_clone(orig: number): number {
11313         if(!isWasmInitialized) {
11314                 throw new Error("initializeWasm() must be awaited first!");
11315         }
11316         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_clone(orig);
11317         return nativeResponseValue;
11318 }
11319         // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_new(uint32_t a, struct LDKCVec_u8Z b);
11320 /* @internal */
11321 export function C2Tuple_u32ScriptZ_new(a: number, b: number): number {
11322         if(!isWasmInitialized) {
11323                 throw new Error("initializeWasm() must be awaited first!");
11324         }
11325         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_new(a, b);
11326         return nativeResponseValue;
11327 }
11328         // void C2Tuple_u32ScriptZ_free(struct LDKC2Tuple_u32ScriptZ _res);
11329 /* @internal */
11330 export function C2Tuple_u32ScriptZ_free(_res: number): void {
11331         if(!isWasmInitialized) {
11332                 throw new Error("initializeWasm() must be awaited first!");
11333         }
11334         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_free(_res);
11335         // debug statements here
11336 }
11337         // void CVec_C2Tuple_u32ScriptZZ_free(struct LDKCVec_C2Tuple_u32ScriptZZ _res);
11338 /* @internal */
11339 export function CVec_C2Tuple_u32ScriptZZ_free(_res: number): void {
11340         if(!isWasmInitialized) {
11341                 throw new Error("initializeWasm() must be awaited first!");
11342         }
11343         const nativeResponseValue = wasm.TS_CVec_C2Tuple_u32ScriptZZ_free(_res);
11344         // debug statements here
11345 }
11346         // uintptr_t C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR arg);
11347 /* @internal */
11348 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(arg: number): number {
11349         if(!isWasmInitialized) {
11350                 throw new Error("initializeWasm() must be awaited first!");
11351         }
11352         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(arg);
11353         return nativeResponseValue;
11354 }
11355         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR orig);
11356 /* @internal */
11357 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(orig: number): number {
11358         if(!isWasmInitialized) {
11359                 throw new Error("initializeWasm() must be awaited first!");
11360         }
11361         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(orig);
11362         return nativeResponseValue;
11363 }
11364         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32ScriptZZ b);
11365 /* @internal */
11366 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(a: number, b: number): number {
11367         if(!isWasmInitialized) {
11368                 throw new Error("initializeWasm() must be awaited first!");
11369         }
11370         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(a, b);
11371         return nativeResponseValue;
11372 }
11373         // void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ _res);
11374 /* @internal */
11375 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(_res: number): void {
11376         if(!isWasmInitialized) {
11377                 throw new Error("initializeWasm() must be awaited first!");
11378         }
11379         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(_res);
11380         // debug statements here
11381 }
11382         // void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ _res);
11383 /* @internal */
11384 export function CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(_res: number): void {
11385         if(!isWasmInitialized) {
11386                 throw new Error("initializeWasm() must be awaited first!");
11387         }
11388         const nativeResponseValue = wasm.TS_CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(_res);
11389         // debug statements here
11390 }
11391         // void CVec_EventZ_free(struct LDKCVec_EventZ _res);
11392 /* @internal */
11393 export function CVec_EventZ_free(_res: number): void {
11394         if(!isWasmInitialized) {
11395                 throw new Error("initializeWasm() must be awaited first!");
11396         }
11397         const nativeResponseValue = wasm.TS_CVec_EventZ_free(_res);
11398         // debug statements here
11399 }
11400         // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res);
11401 /* @internal */
11402 export function CVec_TransactionZ_free(_res: number): void {
11403         if(!isWasmInitialized) {
11404                 throw new Error("initializeWasm() must be awaited first!");
11405         }
11406         const nativeResponseValue = wasm.TS_CVec_TransactionZ_free(_res);
11407         // debug statements here
11408 }
11409         // uintptr_t C2Tuple_u32TxOutZ_clone_ptr(LDKC2Tuple_u32TxOutZ *NONNULL_PTR arg);
11410 /* @internal */
11411 export function C2Tuple_u32TxOutZ_clone_ptr(arg: number): number {
11412         if(!isWasmInitialized) {
11413                 throw new Error("initializeWasm() must be awaited first!");
11414         }
11415         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_clone_ptr(arg);
11416         return nativeResponseValue;
11417 }
11418         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_clone(const struct LDKC2Tuple_u32TxOutZ *NONNULL_PTR orig);
11419 /* @internal */
11420 export function C2Tuple_u32TxOutZ_clone(orig: number): number {
11421         if(!isWasmInitialized) {
11422                 throw new Error("initializeWasm() must be awaited first!");
11423         }
11424         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_clone(orig);
11425         return nativeResponseValue;
11426 }
11427         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
11428 /* @internal */
11429 export function C2Tuple_u32TxOutZ_new(a: number, b: number): number {
11430         if(!isWasmInitialized) {
11431                 throw new Error("initializeWasm() must be awaited first!");
11432         }
11433         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_new(a, b);
11434         return nativeResponseValue;
11435 }
11436         // void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res);
11437 /* @internal */
11438 export function C2Tuple_u32TxOutZ_free(_res: number): void {
11439         if(!isWasmInitialized) {
11440                 throw new Error("initializeWasm() must be awaited first!");
11441         }
11442         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_free(_res);
11443         // debug statements here
11444 }
11445         // void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res);
11446 /* @internal */
11447 export function CVec_C2Tuple_u32TxOutZZ_free(_res: number): void {
11448         if(!isWasmInitialized) {
11449                 throw new Error("initializeWasm() must be awaited first!");
11450         }
11451         const nativeResponseValue = wasm.TS_CVec_C2Tuple_u32TxOutZZ_free(_res);
11452         // debug statements here
11453 }
11454         // uintptr_t C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR arg);
11455 /* @internal */
11456 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(arg: number): number {
11457         if(!isWasmInitialized) {
11458                 throw new Error("initializeWasm() must be awaited first!");
11459         }
11460         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(arg);
11461         return nativeResponseValue;
11462 }
11463         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig);
11464 /* @internal */
11465 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(orig: number): number {
11466         if(!isWasmInitialized) {
11467                 throw new Error("initializeWasm() must be awaited first!");
11468         }
11469         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(orig);
11470         return nativeResponseValue;
11471 }
11472         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
11473 /* @internal */
11474 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(a: number, b: number): number {
11475         if(!isWasmInitialized) {
11476                 throw new Error("initializeWasm() must be awaited first!");
11477         }
11478         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(a, b);
11479         return nativeResponseValue;
11480 }
11481         // void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ _res);
11482 /* @internal */
11483 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(_res: number): void {
11484         if(!isWasmInitialized) {
11485                 throw new Error("initializeWasm() must be awaited first!");
11486         }
11487         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(_res);
11488         // debug statements here
11489 }
11490         // void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ _res);
11491 /* @internal */
11492 export function CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(_res: number): void {
11493         if(!isWasmInitialized) {
11494                 throw new Error("initializeWasm() must be awaited first!");
11495         }
11496         const nativeResponseValue = wasm.TS_CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(_res);
11497         // debug statements here
11498 }
11499         // void CVec_BalanceZ_free(struct LDKCVec_BalanceZ _res);
11500 /* @internal */
11501 export function CVec_BalanceZ_free(_res: number): void {
11502         if(!isWasmInitialized) {
11503                 throw new Error("initializeWasm() must be awaited first!");
11504         }
11505         const nativeResponseValue = wasm.TS_CVec_BalanceZ_free(_res);
11506         // debug statements here
11507 }
11508         // uintptr_t C2Tuple_BlockHashChannelMonitorZ_clone_ptr(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR arg);
11509 /* @internal */
11510 export function C2Tuple_BlockHashChannelMonitorZ_clone_ptr(arg: number): number {
11511         if(!isWasmInitialized) {
11512                 throw new Error("initializeWasm() must be awaited first!");
11513         }
11514         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_clone_ptr(arg);
11515         return nativeResponseValue;
11516 }
11517         // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_clone(const struct LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR orig);
11518 /* @internal */
11519 export function C2Tuple_BlockHashChannelMonitorZ_clone(orig: number): number {
11520         if(!isWasmInitialized) {
11521                 throw new Error("initializeWasm() must be awaited first!");
11522         }
11523         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_clone(orig);
11524         return nativeResponseValue;
11525 }
11526         // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
11527 /* @internal */
11528 export function C2Tuple_BlockHashChannelMonitorZ_new(a: number, b: number): number {
11529         if(!isWasmInitialized) {
11530                 throw new Error("initializeWasm() must be awaited first!");
11531         }
11532         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_new(a, b);
11533         return nativeResponseValue;
11534 }
11535         // void C2Tuple_BlockHashChannelMonitorZ_free(struct LDKC2Tuple_BlockHashChannelMonitorZ _res);
11536 /* @internal */
11537 export function C2Tuple_BlockHashChannelMonitorZ_free(_res: number): void {
11538         if(!isWasmInitialized) {
11539                 throw new Error("initializeWasm() must be awaited first!");
11540         }
11541         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_free(_res);
11542         // debug statements here
11543 }
11544         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelMonitorZ o);
11545 /* @internal */
11546 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(o: number): number {
11547         if(!isWasmInitialized) {
11548                 throw new Error("initializeWasm() must be awaited first!");
11549         }
11550         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(o);
11551         return nativeResponseValue;
11552 }
11553         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e);
11554 /* @internal */
11555 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(e: number): number {
11556         if(!isWasmInitialized) {
11557                 throw new Error("initializeWasm() must be awaited first!");
11558         }
11559         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(e);
11560         return nativeResponseValue;
11561 }
11562         // bool CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR o);
11563 /* @internal */
11564 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(o: number): boolean {
11565         if(!isWasmInitialized) {
11566                 throw new Error("initializeWasm() must be awaited first!");
11567         }
11568         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(o);
11569         return nativeResponseValue;
11570 }
11571         // void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ _res);
11572 /* @internal */
11573 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(_res: number): void {
11574         if(!isWasmInitialized) {
11575                 throw new Error("initializeWasm() must be awaited first!");
11576         }
11577         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(_res);
11578         // debug statements here
11579 }
11580         // uintptr_t CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR arg);
11581 /* @internal */
11582 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(arg: number): number {
11583         if(!isWasmInitialized) {
11584                 throw new Error("initializeWasm() must be awaited first!");
11585         }
11586         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(arg);
11587         return nativeResponseValue;
11588 }
11589         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR orig);
11590 /* @internal */
11591 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(orig: number): number {
11592         if(!isWasmInitialized) {
11593                 throw new Error("initializeWasm() must be awaited first!");
11594         }
11595         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(orig);
11596         return nativeResponseValue;
11597 }
11598         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void);
11599 /* @internal */
11600 export function CResult_NoneLightningErrorZ_ok(): number {
11601         if(!isWasmInitialized) {
11602                 throw new Error("initializeWasm() must be awaited first!");
11603         }
11604         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_ok();
11605         return nativeResponseValue;
11606 }
11607         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e);
11608 /* @internal */
11609 export function CResult_NoneLightningErrorZ_err(e: number): number {
11610         if(!isWasmInitialized) {
11611                 throw new Error("initializeWasm() must be awaited first!");
11612         }
11613         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_err(e);
11614         return nativeResponseValue;
11615 }
11616         // bool CResult_NoneLightningErrorZ_is_ok(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR o);
11617 /* @internal */
11618 export function CResult_NoneLightningErrorZ_is_ok(o: number): boolean {
11619         if(!isWasmInitialized) {
11620                 throw new Error("initializeWasm() must be awaited first!");
11621         }
11622         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_is_ok(o);
11623         return nativeResponseValue;
11624 }
11625         // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res);
11626 /* @internal */
11627 export function CResult_NoneLightningErrorZ_free(_res: number): void {
11628         if(!isWasmInitialized) {
11629                 throw new Error("initializeWasm() must be awaited first!");
11630         }
11631         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_free(_res);
11632         // debug statements here
11633 }
11634         // uintptr_t CResult_NoneLightningErrorZ_clone_ptr(LDKCResult_NoneLightningErrorZ *NONNULL_PTR arg);
11635 /* @internal */
11636 export function CResult_NoneLightningErrorZ_clone_ptr(arg: number): number {
11637         if(!isWasmInitialized) {
11638                 throw new Error("initializeWasm() must be awaited first!");
11639         }
11640         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_clone_ptr(arg);
11641         return nativeResponseValue;
11642 }
11643         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_clone(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR orig);
11644 /* @internal */
11645 export function CResult_NoneLightningErrorZ_clone(orig: number): number {
11646         if(!isWasmInitialized) {
11647                 throw new Error("initializeWasm() must be awaited first!");
11648         }
11649         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_clone(orig);
11650         return nativeResponseValue;
11651 }
11652         // uintptr_t C2Tuple_PublicKeyTypeZ_clone_ptr(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR arg);
11653 /* @internal */
11654 export function C2Tuple_PublicKeyTypeZ_clone_ptr(arg: number): number {
11655         if(!isWasmInitialized) {
11656                 throw new Error("initializeWasm() must be awaited first!");
11657         }
11658         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_clone_ptr(arg);
11659         return nativeResponseValue;
11660 }
11661         // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_clone(const struct LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR orig);
11662 /* @internal */
11663 export function C2Tuple_PublicKeyTypeZ_clone(orig: number): number {
11664         if(!isWasmInitialized) {
11665                 throw new Error("initializeWasm() must be awaited first!");
11666         }
11667         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_clone(orig);
11668         return nativeResponseValue;
11669 }
11670         // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_new(struct LDKPublicKey a, struct LDKType b);
11671 /* @internal */
11672 export function C2Tuple_PublicKeyTypeZ_new(a: number, b: number): number {
11673         if(!isWasmInitialized) {
11674                 throw new Error("initializeWasm() must be awaited first!");
11675         }
11676         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_new(a, b);
11677         return nativeResponseValue;
11678 }
11679         // void C2Tuple_PublicKeyTypeZ_free(struct LDKC2Tuple_PublicKeyTypeZ _res);
11680 /* @internal */
11681 export function C2Tuple_PublicKeyTypeZ_free(_res: number): void {
11682         if(!isWasmInitialized) {
11683                 throw new Error("initializeWasm() must be awaited first!");
11684         }
11685         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_free(_res);
11686         // debug statements here
11687 }
11688         // void CVec_C2Tuple_PublicKeyTypeZZ_free(struct LDKCVec_C2Tuple_PublicKeyTypeZZ _res);
11689 /* @internal */
11690 export function CVec_C2Tuple_PublicKeyTypeZZ_free(_res: number): void {
11691         if(!isWasmInitialized) {
11692                 throw new Error("initializeWasm() must be awaited first!");
11693         }
11694         const nativeResponseValue = wasm.TS_CVec_C2Tuple_PublicKeyTypeZZ_free(_res);
11695         // debug statements here
11696 }
11697         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o);
11698 /* @internal */
11699 export function CResult_boolLightningErrorZ_ok(o: boolean): number {
11700         if(!isWasmInitialized) {
11701                 throw new Error("initializeWasm() must be awaited first!");
11702         }
11703         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_ok(o);
11704         return nativeResponseValue;
11705 }
11706         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e);
11707 /* @internal */
11708 export function CResult_boolLightningErrorZ_err(e: number): number {
11709         if(!isWasmInitialized) {
11710                 throw new Error("initializeWasm() must be awaited first!");
11711         }
11712         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_err(e);
11713         return nativeResponseValue;
11714 }
11715         // bool CResult_boolLightningErrorZ_is_ok(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR o);
11716 /* @internal */
11717 export function CResult_boolLightningErrorZ_is_ok(o: number): boolean {
11718         if(!isWasmInitialized) {
11719                 throw new Error("initializeWasm() must be awaited first!");
11720         }
11721         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_is_ok(o);
11722         return nativeResponseValue;
11723 }
11724         // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
11725 /* @internal */
11726 export function CResult_boolLightningErrorZ_free(_res: number): void {
11727         if(!isWasmInitialized) {
11728                 throw new Error("initializeWasm() must be awaited first!");
11729         }
11730         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_free(_res);
11731         // debug statements here
11732 }
11733         // uintptr_t CResult_boolLightningErrorZ_clone_ptr(LDKCResult_boolLightningErrorZ *NONNULL_PTR arg);
11734 /* @internal */
11735 export function CResult_boolLightningErrorZ_clone_ptr(arg: number): number {
11736         if(!isWasmInitialized) {
11737                 throw new Error("initializeWasm() must be awaited first!");
11738         }
11739         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_clone_ptr(arg);
11740         return nativeResponseValue;
11741 }
11742         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_clone(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR orig);
11743 /* @internal */
11744 export function CResult_boolLightningErrorZ_clone(orig: number): number {
11745         if(!isWasmInitialized) {
11746                 throw new Error("initializeWasm() must be awaited first!");
11747         }
11748         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_clone(orig);
11749         return nativeResponseValue;
11750 }
11751         // uintptr_t C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR arg);
11752 /* @internal */
11753 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(arg: number): number {
11754         if(!isWasmInitialized) {
11755                 throw new Error("initializeWasm() must be awaited first!");
11756         }
11757         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(arg);
11758         return nativeResponseValue;
11759 }
11760         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig);
11761 /* @internal */
11762 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(orig: number): number {
11763         if(!isWasmInitialized) {
11764                 throw new Error("initializeWasm() must be awaited first!");
11765         }
11766         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(orig);
11767         return nativeResponseValue;
11768 }
11769         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
11770 /* @internal */
11771 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(a: number, b: number, c: number): number {
11772         if(!isWasmInitialized) {
11773                 throw new Error("initializeWasm() must be awaited first!");
11774         }
11775         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(a, b, c);
11776         return nativeResponseValue;
11777 }
11778         // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
11779 /* @internal */
11780 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(_res: number): void {
11781         if(!isWasmInitialized) {
11782                 throw new Error("initializeWasm() must be awaited first!");
11783         }
11784         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(_res);
11785         // debug statements here
11786 }
11787         // void CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
11788 /* @internal */
11789 export function CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(_res: number): void {
11790         if(!isWasmInitialized) {
11791                 throw new Error("initializeWasm() must be awaited first!");
11792         }
11793         const nativeResponseValue = wasm.TS_CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(_res);
11794         // debug statements here
11795 }
11796         // void CVec_NodeAnnouncementZ_free(struct LDKCVec_NodeAnnouncementZ _res);
11797 /* @internal */
11798 export function CVec_NodeAnnouncementZ_free(_res: number): void {
11799         if(!isWasmInitialized) {
11800                 throw new Error("initializeWasm() must be awaited first!");
11801         }
11802         const nativeResponseValue = wasm.TS_CVec_NodeAnnouncementZ_free(_res);
11803         // debug statements here
11804 }
11805         // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res);
11806 /* @internal */
11807 export function CVec_PublicKeyZ_free(_res: number): void {
11808         if(!isWasmInitialized) {
11809                 throw new Error("initializeWasm() must be awaited first!");
11810         }
11811         const nativeResponseValue = wasm.TS_CVec_PublicKeyZ_free(_res);
11812         // debug statements here
11813 }
11814         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o);
11815 /* @internal */
11816 export function CResult_CVec_u8ZPeerHandleErrorZ_ok(o: number): number {
11817         if(!isWasmInitialized) {
11818                 throw new Error("initializeWasm() must be awaited first!");
11819         }
11820         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_ok(o);
11821         return nativeResponseValue;
11822 }
11823         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e);
11824 /* @internal */
11825 export function CResult_CVec_u8ZPeerHandleErrorZ_err(e: number): number {
11826         if(!isWasmInitialized) {
11827                 throw new Error("initializeWasm() must be awaited first!");
11828         }
11829         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_err(e);
11830         return nativeResponseValue;
11831 }
11832         // bool CResult_CVec_u8ZPeerHandleErrorZ_is_ok(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR o);
11833 /* @internal */
11834 export function CResult_CVec_u8ZPeerHandleErrorZ_is_ok(o: number): boolean {
11835         if(!isWasmInitialized) {
11836                 throw new Error("initializeWasm() must be awaited first!");
11837         }
11838         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_is_ok(o);
11839         return nativeResponseValue;
11840 }
11841         // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res);
11842 /* @internal */
11843 export function CResult_CVec_u8ZPeerHandleErrorZ_free(_res: number): void {
11844         if(!isWasmInitialized) {
11845                 throw new Error("initializeWasm() must be awaited first!");
11846         }
11847         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_free(_res);
11848         // debug statements here
11849 }
11850         // uintptr_t CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR arg);
11851 /* @internal */
11852 export function CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(arg: number): number {
11853         if(!isWasmInitialized) {
11854                 throw new Error("initializeWasm() must be awaited first!");
11855         }
11856         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(arg);
11857         return nativeResponseValue;
11858 }
11859         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_clone(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR orig);
11860 /* @internal */
11861 export function CResult_CVec_u8ZPeerHandleErrorZ_clone(orig: number): number {
11862         if(!isWasmInitialized) {
11863                 throw new Error("initializeWasm() must be awaited first!");
11864         }
11865         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_clone(orig);
11866         return nativeResponseValue;
11867 }
11868         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
11869 /* @internal */
11870 export function CResult_NonePeerHandleErrorZ_ok(): number {
11871         if(!isWasmInitialized) {
11872                 throw new Error("initializeWasm() must be awaited first!");
11873         }
11874         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_ok();
11875         return nativeResponseValue;
11876 }
11877         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e);
11878 /* @internal */
11879 export function CResult_NonePeerHandleErrorZ_err(e: number): number {
11880         if(!isWasmInitialized) {
11881                 throw new Error("initializeWasm() must be awaited first!");
11882         }
11883         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_err(e);
11884         return nativeResponseValue;
11885 }
11886         // bool CResult_NonePeerHandleErrorZ_is_ok(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR o);
11887 /* @internal */
11888 export function CResult_NonePeerHandleErrorZ_is_ok(o: number): boolean {
11889         if(!isWasmInitialized) {
11890                 throw new Error("initializeWasm() must be awaited first!");
11891         }
11892         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_is_ok(o);
11893         return nativeResponseValue;
11894 }
11895         // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res);
11896 /* @internal */
11897 export function CResult_NonePeerHandleErrorZ_free(_res: number): void {
11898         if(!isWasmInitialized) {
11899                 throw new Error("initializeWasm() must be awaited first!");
11900         }
11901         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_free(_res);
11902         // debug statements here
11903 }
11904         // uintptr_t CResult_NonePeerHandleErrorZ_clone_ptr(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR arg);
11905 /* @internal */
11906 export function CResult_NonePeerHandleErrorZ_clone_ptr(arg: number): number {
11907         if(!isWasmInitialized) {
11908                 throw new Error("initializeWasm() must be awaited first!");
11909         }
11910         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_clone_ptr(arg);
11911         return nativeResponseValue;
11912 }
11913         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_clone(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR orig);
11914 /* @internal */
11915 export function CResult_NonePeerHandleErrorZ_clone(orig: number): number {
11916         if(!isWasmInitialized) {
11917                 throw new Error("initializeWasm() must be awaited first!");
11918         }
11919         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_clone(orig);
11920         return nativeResponseValue;
11921 }
11922         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o);
11923 /* @internal */
11924 export function CResult_boolPeerHandleErrorZ_ok(o: boolean): number {
11925         if(!isWasmInitialized) {
11926                 throw new Error("initializeWasm() must be awaited first!");
11927         }
11928         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_ok(o);
11929         return nativeResponseValue;
11930 }
11931         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e);
11932 /* @internal */
11933 export function CResult_boolPeerHandleErrorZ_err(e: number): number {
11934         if(!isWasmInitialized) {
11935                 throw new Error("initializeWasm() must be awaited first!");
11936         }
11937         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_err(e);
11938         return nativeResponseValue;
11939 }
11940         // bool CResult_boolPeerHandleErrorZ_is_ok(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR o);
11941 /* @internal */
11942 export function CResult_boolPeerHandleErrorZ_is_ok(o: number): boolean {
11943         if(!isWasmInitialized) {
11944                 throw new Error("initializeWasm() must be awaited first!");
11945         }
11946         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_is_ok(o);
11947         return nativeResponseValue;
11948 }
11949         // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res);
11950 /* @internal */
11951 export function CResult_boolPeerHandleErrorZ_free(_res: number): void {
11952         if(!isWasmInitialized) {
11953                 throw new Error("initializeWasm() must be awaited first!");
11954         }
11955         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_free(_res);
11956         // debug statements here
11957 }
11958         // uintptr_t CResult_boolPeerHandleErrorZ_clone_ptr(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR arg);
11959 /* @internal */
11960 export function CResult_boolPeerHandleErrorZ_clone_ptr(arg: number): number {
11961         if(!isWasmInitialized) {
11962                 throw new Error("initializeWasm() must be awaited first!");
11963         }
11964         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_clone_ptr(arg);
11965         return nativeResponseValue;
11966 }
11967         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_clone(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR orig);
11968 /* @internal */
11969 export function CResult_boolPeerHandleErrorZ_clone(orig: number): number {
11970         if(!isWasmInitialized) {
11971                 throw new Error("initializeWasm() must be awaited first!");
11972         }
11973         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_clone(orig);
11974         return nativeResponseValue;
11975 }
11976         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_ok(struct LDKNodeId o);
11977 /* @internal */
11978 export function CResult_NodeIdDecodeErrorZ_ok(o: number): number {
11979         if(!isWasmInitialized) {
11980                 throw new Error("initializeWasm() must be awaited first!");
11981         }
11982         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_ok(o);
11983         return nativeResponseValue;
11984 }
11985         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_err(struct LDKDecodeError e);
11986 /* @internal */
11987 export function CResult_NodeIdDecodeErrorZ_err(e: number): number {
11988         if(!isWasmInitialized) {
11989                 throw new Error("initializeWasm() must be awaited first!");
11990         }
11991         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_err(e);
11992         return nativeResponseValue;
11993 }
11994         // bool CResult_NodeIdDecodeErrorZ_is_ok(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR o);
11995 /* @internal */
11996 export function CResult_NodeIdDecodeErrorZ_is_ok(o: number): boolean {
11997         if(!isWasmInitialized) {
11998                 throw new Error("initializeWasm() must be awaited first!");
11999         }
12000         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_is_ok(o);
12001         return nativeResponseValue;
12002 }
12003         // void CResult_NodeIdDecodeErrorZ_free(struct LDKCResult_NodeIdDecodeErrorZ _res);
12004 /* @internal */
12005 export function CResult_NodeIdDecodeErrorZ_free(_res: number): void {
12006         if(!isWasmInitialized) {
12007                 throw new Error("initializeWasm() must be awaited first!");
12008         }
12009         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_free(_res);
12010         // debug statements here
12011 }
12012         // uintptr_t CResult_NodeIdDecodeErrorZ_clone_ptr(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR arg);
12013 /* @internal */
12014 export function CResult_NodeIdDecodeErrorZ_clone_ptr(arg: number): number {
12015         if(!isWasmInitialized) {
12016                 throw new Error("initializeWasm() must be awaited first!");
12017         }
12018         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_clone_ptr(arg);
12019         return nativeResponseValue;
12020 }
12021         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_clone(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR orig);
12022 /* @internal */
12023 export function CResult_NodeIdDecodeErrorZ_clone(orig: number): number {
12024         if(!isWasmInitialized) {
12025                 throw new Error("initializeWasm() must be awaited first!");
12026         }
12027         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_clone(orig);
12028         return nativeResponseValue;
12029 }
12030         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_ok(struct LDKCOption_NetworkUpdateZ o);
12031 /* @internal */
12032 export function CResult_COption_NetworkUpdateZDecodeErrorZ_ok(o: number): number {
12033         if(!isWasmInitialized) {
12034                 throw new Error("initializeWasm() must be awaited first!");
12035         }
12036         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_ok(o);
12037         return nativeResponseValue;
12038 }
12039         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_err(struct LDKDecodeError e);
12040 /* @internal */
12041 export function CResult_COption_NetworkUpdateZDecodeErrorZ_err(e: number): number {
12042         if(!isWasmInitialized) {
12043                 throw new Error("initializeWasm() must be awaited first!");
12044         }
12045         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_err(e);
12046         return nativeResponseValue;
12047 }
12048         // bool CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR o);
12049 /* @internal */
12050 export function CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(o: number): boolean {
12051         if(!isWasmInitialized) {
12052                 throw new Error("initializeWasm() must be awaited first!");
12053         }
12054         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(o);
12055         return nativeResponseValue;
12056 }
12057         // void CResult_COption_NetworkUpdateZDecodeErrorZ_free(struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ _res);
12058 /* @internal */
12059 export function CResult_COption_NetworkUpdateZDecodeErrorZ_free(_res: number): void {
12060         if(!isWasmInitialized) {
12061                 throw new Error("initializeWasm() must be awaited first!");
12062         }
12063         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_free(_res);
12064         // debug statements here
12065 }
12066         // uintptr_t CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR arg);
12067 /* @internal */
12068 export function CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(arg: number): number {
12069         if(!isWasmInitialized) {
12070                 throw new Error("initializeWasm() must be awaited first!");
12071         }
12072         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(arg);
12073         return nativeResponseValue;
12074 }
12075         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_clone(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR orig);
12076 /* @internal */
12077 export function CResult_COption_NetworkUpdateZDecodeErrorZ_clone(orig: number): number {
12078         if(!isWasmInitialized) {
12079                 throw new Error("initializeWasm() must be awaited first!");
12080         }
12081         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_clone(orig);
12082         return nativeResponseValue;
12083 }
12084         // struct LDKCOption_AccessZ COption_AccessZ_some(struct LDKAccess o);
12085 /* @internal */
12086 export function COption_AccessZ_some(o: number): number {
12087         if(!isWasmInitialized) {
12088                 throw new Error("initializeWasm() must be awaited first!");
12089         }
12090         const nativeResponseValue = wasm.TS_COption_AccessZ_some(o);
12091         return nativeResponseValue;
12092 }
12093         // struct LDKCOption_AccessZ COption_AccessZ_none(void);
12094 /* @internal */
12095 export function COption_AccessZ_none(): number {
12096         if(!isWasmInitialized) {
12097                 throw new Error("initializeWasm() must be awaited first!");
12098         }
12099         const nativeResponseValue = wasm.TS_COption_AccessZ_none();
12100         return nativeResponseValue;
12101 }
12102         // void COption_AccessZ_free(struct LDKCOption_AccessZ _res);
12103 /* @internal */
12104 export function COption_AccessZ_free(_res: number): void {
12105         if(!isWasmInitialized) {
12106                 throw new Error("initializeWasm() must be awaited first!");
12107         }
12108         const nativeResponseValue = wasm.TS_COption_AccessZ_free(_res);
12109         // debug statements here
12110 }
12111         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_ok(struct LDKChannelUpdateInfo o);
12112 /* @internal */
12113 export function CResult_ChannelUpdateInfoDecodeErrorZ_ok(o: number): number {
12114         if(!isWasmInitialized) {
12115                 throw new Error("initializeWasm() must be awaited first!");
12116         }
12117         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_ok(o);
12118         return nativeResponseValue;
12119 }
12120         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_err(struct LDKDecodeError e);
12121 /* @internal */
12122 export function CResult_ChannelUpdateInfoDecodeErrorZ_err(e: number): number {
12123         if(!isWasmInitialized) {
12124                 throw new Error("initializeWasm() must be awaited first!");
12125         }
12126         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_err(e);
12127         return nativeResponseValue;
12128 }
12129         // bool CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR o);
12130 /* @internal */
12131 export function CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(o: number): boolean {
12132         if(!isWasmInitialized) {
12133                 throw new Error("initializeWasm() must be awaited first!");
12134         }
12135         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(o);
12136         return nativeResponseValue;
12137 }
12138         // void CResult_ChannelUpdateInfoDecodeErrorZ_free(struct LDKCResult_ChannelUpdateInfoDecodeErrorZ _res);
12139 /* @internal */
12140 export function CResult_ChannelUpdateInfoDecodeErrorZ_free(_res: number): void {
12141         if(!isWasmInitialized) {
12142                 throw new Error("initializeWasm() must be awaited first!");
12143         }
12144         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_free(_res);
12145         // debug statements here
12146 }
12147         // uintptr_t CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR arg);
12148 /* @internal */
12149 export function CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(arg: number): number {
12150         if(!isWasmInitialized) {
12151                 throw new Error("initializeWasm() must be awaited first!");
12152         }
12153         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(arg);
12154         return nativeResponseValue;
12155 }
12156         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR orig);
12157 /* @internal */
12158 export function CResult_ChannelUpdateInfoDecodeErrorZ_clone(orig: number): number {
12159         if(!isWasmInitialized) {
12160                 throw new Error("initializeWasm() must be awaited first!");
12161         }
12162         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_clone(orig);
12163         return nativeResponseValue;
12164 }
12165         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_ok(struct LDKChannelInfo o);
12166 /* @internal */
12167 export function CResult_ChannelInfoDecodeErrorZ_ok(o: number): number {
12168         if(!isWasmInitialized) {
12169                 throw new Error("initializeWasm() must be awaited first!");
12170         }
12171         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_ok(o);
12172         return nativeResponseValue;
12173 }
12174         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
12175 /* @internal */
12176 export function CResult_ChannelInfoDecodeErrorZ_err(e: number): number {
12177         if(!isWasmInitialized) {
12178                 throw new Error("initializeWasm() must be awaited first!");
12179         }
12180         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_err(e);
12181         return nativeResponseValue;
12182 }
12183         // bool CResult_ChannelInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR o);
12184 /* @internal */
12185 export function CResult_ChannelInfoDecodeErrorZ_is_ok(o: number): boolean {
12186         if(!isWasmInitialized) {
12187                 throw new Error("initializeWasm() must be awaited first!");
12188         }
12189         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_is_ok(o);
12190         return nativeResponseValue;
12191 }
12192         // void CResult_ChannelInfoDecodeErrorZ_free(struct LDKCResult_ChannelInfoDecodeErrorZ _res);
12193 /* @internal */
12194 export function CResult_ChannelInfoDecodeErrorZ_free(_res: number): void {
12195         if(!isWasmInitialized) {
12196                 throw new Error("initializeWasm() must be awaited first!");
12197         }
12198         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_free(_res);
12199         // debug statements here
12200 }
12201         // uintptr_t CResult_ChannelInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR arg);
12202 /* @internal */
12203 export function CResult_ChannelInfoDecodeErrorZ_clone_ptr(arg: number): number {
12204         if(!isWasmInitialized) {
12205                 throw new Error("initializeWasm() must be awaited first!");
12206         }
12207         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_clone_ptr(arg);
12208         return nativeResponseValue;
12209 }
12210         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR orig);
12211 /* @internal */
12212 export function CResult_ChannelInfoDecodeErrorZ_clone(orig: number): number {
12213         if(!isWasmInitialized) {
12214                 throw new Error("initializeWasm() must be awaited first!");
12215         }
12216         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_clone(orig);
12217         return nativeResponseValue;
12218 }
12219         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o);
12220 /* @internal */
12221 export function CResult_RoutingFeesDecodeErrorZ_ok(o: number): number {
12222         if(!isWasmInitialized) {
12223                 throw new Error("initializeWasm() must be awaited first!");
12224         }
12225         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_ok(o);
12226         return nativeResponseValue;
12227 }
12228         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e);
12229 /* @internal */
12230 export function CResult_RoutingFeesDecodeErrorZ_err(e: number): number {
12231         if(!isWasmInitialized) {
12232                 throw new Error("initializeWasm() must be awaited first!");
12233         }
12234         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_err(e);
12235         return nativeResponseValue;
12236 }
12237         // bool CResult_RoutingFeesDecodeErrorZ_is_ok(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR o);
12238 /* @internal */
12239 export function CResult_RoutingFeesDecodeErrorZ_is_ok(o: number): boolean {
12240         if(!isWasmInitialized) {
12241                 throw new Error("initializeWasm() must be awaited first!");
12242         }
12243         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_is_ok(o);
12244         return nativeResponseValue;
12245 }
12246         // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res);
12247 /* @internal */
12248 export function CResult_RoutingFeesDecodeErrorZ_free(_res: number): void {
12249         if(!isWasmInitialized) {
12250                 throw new Error("initializeWasm() must be awaited first!");
12251         }
12252         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_free(_res);
12253         // debug statements here
12254 }
12255         // uintptr_t CResult_RoutingFeesDecodeErrorZ_clone_ptr(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR arg);
12256 /* @internal */
12257 export function CResult_RoutingFeesDecodeErrorZ_clone_ptr(arg: number): number {
12258         if(!isWasmInitialized) {
12259                 throw new Error("initializeWasm() must be awaited first!");
12260         }
12261         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_clone_ptr(arg);
12262         return nativeResponseValue;
12263 }
12264         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR orig);
12265 /* @internal */
12266 export function CResult_RoutingFeesDecodeErrorZ_clone(orig: number): number {
12267         if(!isWasmInitialized) {
12268                 throw new Error("initializeWasm() must be awaited first!");
12269         }
12270         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_clone(orig);
12271         return nativeResponseValue;
12272 }
12273         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o);
12274 /* @internal */
12275 export function CResult_NodeAnnouncementInfoDecodeErrorZ_ok(o: number): number {
12276         if(!isWasmInitialized) {
12277                 throw new Error("initializeWasm() must be awaited first!");
12278         }
12279         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_ok(o);
12280         return nativeResponseValue;
12281 }
12282         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e);
12283 /* @internal */
12284 export function CResult_NodeAnnouncementInfoDecodeErrorZ_err(e: number): number {
12285         if(!isWasmInitialized) {
12286                 throw new Error("initializeWasm() must be awaited first!");
12287         }
12288         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_err(e);
12289         return nativeResponseValue;
12290 }
12291         // bool CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR o);
12292 /* @internal */
12293 export function CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(o: number): boolean {
12294         if(!isWasmInitialized) {
12295                 throw new Error("initializeWasm() must be awaited first!");
12296         }
12297         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(o);
12298         return nativeResponseValue;
12299 }
12300         // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res);
12301 /* @internal */
12302 export function CResult_NodeAnnouncementInfoDecodeErrorZ_free(_res: number): void {
12303         if(!isWasmInitialized) {
12304                 throw new Error("initializeWasm() must be awaited first!");
12305         }
12306         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_free(_res);
12307         // debug statements here
12308 }
12309         // uintptr_t CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR arg);
12310 /* @internal */
12311 export function CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(arg: number): number {
12312         if(!isWasmInitialized) {
12313                 throw new Error("initializeWasm() must be awaited first!");
12314         }
12315         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(arg);
12316         return nativeResponseValue;
12317 }
12318         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR orig);
12319 /* @internal */
12320 export function CResult_NodeAnnouncementInfoDecodeErrorZ_clone(orig: number): number {
12321         if(!isWasmInitialized) {
12322                 throw new Error("initializeWasm() must be awaited first!");
12323         }
12324         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_clone(orig);
12325         return nativeResponseValue;
12326 }
12327         // void CVec_u64Z_free(struct LDKCVec_u64Z _res);
12328 /* @internal */
12329 export function CVec_u64Z_free(_res: number): void {
12330         if(!isWasmInitialized) {
12331                 throw new Error("initializeWasm() must be awaited first!");
12332         }
12333         const nativeResponseValue = wasm.TS_CVec_u64Z_free(_res);
12334         // debug statements here
12335 }
12336         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o);
12337 /* @internal */
12338 export function CResult_NodeInfoDecodeErrorZ_ok(o: number): number {
12339         if(!isWasmInitialized) {
12340                 throw new Error("initializeWasm() must be awaited first!");
12341         }
12342         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_ok(o);
12343         return nativeResponseValue;
12344 }
12345         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e);
12346 /* @internal */
12347 export function CResult_NodeInfoDecodeErrorZ_err(e: number): number {
12348         if(!isWasmInitialized) {
12349                 throw new Error("initializeWasm() must be awaited first!");
12350         }
12351         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_err(e);
12352         return nativeResponseValue;
12353 }
12354         // bool CResult_NodeInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR o);
12355 /* @internal */
12356 export function CResult_NodeInfoDecodeErrorZ_is_ok(o: number): boolean {
12357         if(!isWasmInitialized) {
12358                 throw new Error("initializeWasm() must be awaited first!");
12359         }
12360         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_is_ok(o);
12361         return nativeResponseValue;
12362 }
12363         // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res);
12364 /* @internal */
12365 export function CResult_NodeInfoDecodeErrorZ_free(_res: number): void {
12366         if(!isWasmInitialized) {
12367                 throw new Error("initializeWasm() must be awaited first!");
12368         }
12369         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_free(_res);
12370         // debug statements here
12371 }
12372         // uintptr_t CResult_NodeInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR arg);
12373 /* @internal */
12374 export function CResult_NodeInfoDecodeErrorZ_clone_ptr(arg: number): number {
12375         if(!isWasmInitialized) {
12376                 throw new Error("initializeWasm() must be awaited first!");
12377         }
12378         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_clone_ptr(arg);
12379         return nativeResponseValue;
12380 }
12381         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_clone(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR orig);
12382 /* @internal */
12383 export function CResult_NodeInfoDecodeErrorZ_clone(orig: number): number {
12384         if(!isWasmInitialized) {
12385                 throw new Error("initializeWasm() must be awaited first!");
12386         }
12387         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_clone(orig);
12388         return nativeResponseValue;
12389 }
12390         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o);
12391 /* @internal */
12392 export function CResult_NetworkGraphDecodeErrorZ_ok(o: number): number {
12393         if(!isWasmInitialized) {
12394                 throw new Error("initializeWasm() must be awaited first!");
12395         }
12396         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_ok(o);
12397         return nativeResponseValue;
12398 }
12399         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e);
12400 /* @internal */
12401 export function CResult_NetworkGraphDecodeErrorZ_err(e: number): number {
12402         if(!isWasmInitialized) {
12403                 throw new Error("initializeWasm() must be awaited first!");
12404         }
12405         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_err(e);
12406         return nativeResponseValue;
12407 }
12408         // bool CResult_NetworkGraphDecodeErrorZ_is_ok(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR o);
12409 /* @internal */
12410 export function CResult_NetworkGraphDecodeErrorZ_is_ok(o: number): boolean {
12411         if(!isWasmInitialized) {
12412                 throw new Error("initializeWasm() must be awaited first!");
12413         }
12414         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_is_ok(o);
12415         return nativeResponseValue;
12416 }
12417         // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res);
12418 /* @internal */
12419 export function CResult_NetworkGraphDecodeErrorZ_free(_res: number): void {
12420         if(!isWasmInitialized) {
12421                 throw new Error("initializeWasm() must be awaited first!");
12422         }
12423         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_free(_res);
12424         // debug statements here
12425 }
12426         // uintptr_t CResult_NetworkGraphDecodeErrorZ_clone_ptr(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR arg);
12427 /* @internal */
12428 export function CResult_NetworkGraphDecodeErrorZ_clone_ptr(arg: number): number {
12429         if(!isWasmInitialized) {
12430                 throw new Error("initializeWasm() must be awaited first!");
12431         }
12432         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_clone_ptr(arg);
12433         return nativeResponseValue;
12434 }
12435         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_clone(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR orig);
12436 /* @internal */
12437 export function CResult_NetworkGraphDecodeErrorZ_clone(orig: number): number {
12438         if(!isWasmInitialized) {
12439                 throw new Error("initializeWasm() must be awaited first!");
12440         }
12441         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_clone(orig);
12442         return nativeResponseValue;
12443 }
12444         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_some(struct LDKCVec_NetAddressZ o);
12445 /* @internal */
12446 export function COption_CVec_NetAddressZZ_some(o: number): number {
12447         if(!isWasmInitialized) {
12448                 throw new Error("initializeWasm() must be awaited first!");
12449         }
12450         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_some(o);
12451         return nativeResponseValue;
12452 }
12453         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_none(void);
12454 /* @internal */
12455 export function COption_CVec_NetAddressZZ_none(): number {
12456         if(!isWasmInitialized) {
12457                 throw new Error("initializeWasm() must be awaited first!");
12458         }
12459         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_none();
12460         return nativeResponseValue;
12461 }
12462         // void COption_CVec_NetAddressZZ_free(struct LDKCOption_CVec_NetAddressZZ _res);
12463 /* @internal */
12464 export function COption_CVec_NetAddressZZ_free(_res: number): void {
12465         if(!isWasmInitialized) {
12466                 throw new Error("initializeWasm() must be awaited first!");
12467         }
12468         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_free(_res);
12469         // debug statements here
12470 }
12471         // uintptr_t COption_CVec_NetAddressZZ_clone_ptr(LDKCOption_CVec_NetAddressZZ *NONNULL_PTR arg);
12472 /* @internal */
12473 export function COption_CVec_NetAddressZZ_clone_ptr(arg: number): number {
12474         if(!isWasmInitialized) {
12475                 throw new Error("initializeWasm() must be awaited first!");
12476         }
12477         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_clone_ptr(arg);
12478         return nativeResponseValue;
12479 }
12480         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_clone(const struct LDKCOption_CVec_NetAddressZZ *NONNULL_PTR orig);
12481 /* @internal */
12482 export function COption_CVec_NetAddressZZ_clone(orig: number): number {
12483         if(!isWasmInitialized) {
12484                 throw new Error("initializeWasm() must be awaited first!");
12485         }
12486         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_clone(orig);
12487         return nativeResponseValue;
12488 }
12489         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_ok(struct LDKNetAddress o);
12490 /* @internal */
12491 export function CResult_NetAddressDecodeErrorZ_ok(o: number): number {
12492         if(!isWasmInitialized) {
12493                 throw new Error("initializeWasm() must be awaited first!");
12494         }
12495         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_ok(o);
12496         return nativeResponseValue;
12497 }
12498         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_err(struct LDKDecodeError e);
12499 /* @internal */
12500 export function CResult_NetAddressDecodeErrorZ_err(e: number): number {
12501         if(!isWasmInitialized) {
12502                 throw new Error("initializeWasm() must be awaited first!");
12503         }
12504         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_err(e);
12505         return nativeResponseValue;
12506 }
12507         // bool CResult_NetAddressDecodeErrorZ_is_ok(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR o);
12508 /* @internal */
12509 export function CResult_NetAddressDecodeErrorZ_is_ok(o: number): boolean {
12510         if(!isWasmInitialized) {
12511                 throw new Error("initializeWasm() must be awaited first!");
12512         }
12513         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_is_ok(o);
12514         return nativeResponseValue;
12515 }
12516         // void CResult_NetAddressDecodeErrorZ_free(struct LDKCResult_NetAddressDecodeErrorZ _res);
12517 /* @internal */
12518 export function CResult_NetAddressDecodeErrorZ_free(_res: number): void {
12519         if(!isWasmInitialized) {
12520                 throw new Error("initializeWasm() must be awaited first!");
12521         }
12522         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_free(_res);
12523         // debug statements here
12524 }
12525         // uintptr_t CResult_NetAddressDecodeErrorZ_clone_ptr(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR arg);
12526 /* @internal */
12527 export function CResult_NetAddressDecodeErrorZ_clone_ptr(arg: number): number {
12528         if(!isWasmInitialized) {
12529                 throw new Error("initializeWasm() must be awaited first!");
12530         }
12531         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_clone_ptr(arg);
12532         return nativeResponseValue;
12533 }
12534         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_clone(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR orig);
12535 /* @internal */
12536 export function CResult_NetAddressDecodeErrorZ_clone(orig: number): number {
12537         if(!isWasmInitialized) {
12538                 throw new Error("initializeWasm() must be awaited first!");
12539         }
12540         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_clone(orig);
12541         return nativeResponseValue;
12542 }
12543         // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res);
12544 /* @internal */
12545 export function CVec_UpdateAddHTLCZ_free(_res: number): void {
12546         if(!isWasmInitialized) {
12547                 throw new Error("initializeWasm() must be awaited first!");
12548         }
12549         const nativeResponseValue = wasm.TS_CVec_UpdateAddHTLCZ_free(_res);
12550         // debug statements here
12551 }
12552         // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res);
12553 /* @internal */
12554 export function CVec_UpdateFulfillHTLCZ_free(_res: number): void {
12555         if(!isWasmInitialized) {
12556                 throw new Error("initializeWasm() must be awaited first!");
12557         }
12558         const nativeResponseValue = wasm.TS_CVec_UpdateFulfillHTLCZ_free(_res);
12559         // debug statements here
12560 }
12561         // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res);
12562 /* @internal */
12563 export function CVec_UpdateFailHTLCZ_free(_res: number): void {
12564         if(!isWasmInitialized) {
12565                 throw new Error("initializeWasm() must be awaited first!");
12566         }
12567         const nativeResponseValue = wasm.TS_CVec_UpdateFailHTLCZ_free(_res);
12568         // debug statements here
12569 }
12570         // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res);
12571 /* @internal */
12572 export function CVec_UpdateFailMalformedHTLCZ_free(_res: number): void {
12573         if(!isWasmInitialized) {
12574                 throw new Error("initializeWasm() must be awaited first!");
12575         }
12576         const nativeResponseValue = wasm.TS_CVec_UpdateFailMalformedHTLCZ_free(_res);
12577         // debug statements here
12578 }
12579         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_ok(struct LDKAcceptChannel o);
12580 /* @internal */
12581 export function CResult_AcceptChannelDecodeErrorZ_ok(o: number): number {
12582         if(!isWasmInitialized) {
12583                 throw new Error("initializeWasm() must be awaited first!");
12584         }
12585         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_ok(o);
12586         return nativeResponseValue;
12587 }
12588         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_err(struct LDKDecodeError e);
12589 /* @internal */
12590 export function CResult_AcceptChannelDecodeErrorZ_err(e: number): number {
12591         if(!isWasmInitialized) {
12592                 throw new Error("initializeWasm() must be awaited first!");
12593         }
12594         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_err(e);
12595         return nativeResponseValue;
12596 }
12597         // bool CResult_AcceptChannelDecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR o);
12598 /* @internal */
12599 export function CResult_AcceptChannelDecodeErrorZ_is_ok(o: number): boolean {
12600         if(!isWasmInitialized) {
12601                 throw new Error("initializeWasm() must be awaited first!");
12602         }
12603         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_is_ok(o);
12604         return nativeResponseValue;
12605 }
12606         // void CResult_AcceptChannelDecodeErrorZ_free(struct LDKCResult_AcceptChannelDecodeErrorZ _res);
12607 /* @internal */
12608 export function CResult_AcceptChannelDecodeErrorZ_free(_res: number): void {
12609         if(!isWasmInitialized) {
12610                 throw new Error("initializeWasm() must be awaited first!");
12611         }
12612         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_free(_res);
12613         // debug statements here
12614 }
12615         // uintptr_t CResult_AcceptChannelDecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR arg);
12616 /* @internal */
12617 export function CResult_AcceptChannelDecodeErrorZ_clone_ptr(arg: number): number {
12618         if(!isWasmInitialized) {
12619                 throw new Error("initializeWasm() must be awaited first!");
12620         }
12621         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_clone_ptr(arg);
12622         return nativeResponseValue;
12623 }
12624         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_clone(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR orig);
12625 /* @internal */
12626 export function CResult_AcceptChannelDecodeErrorZ_clone(orig: number): number {
12627         if(!isWasmInitialized) {
12628                 throw new Error("initializeWasm() must be awaited first!");
12629         }
12630         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_clone(orig);
12631         return nativeResponseValue;
12632 }
12633         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_ok(struct LDKAnnouncementSignatures o);
12634 /* @internal */
12635 export function CResult_AnnouncementSignaturesDecodeErrorZ_ok(o: number): number {
12636         if(!isWasmInitialized) {
12637                 throw new Error("initializeWasm() must be awaited first!");
12638         }
12639         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_ok(o);
12640         return nativeResponseValue;
12641 }
12642         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
12643 /* @internal */
12644 export function CResult_AnnouncementSignaturesDecodeErrorZ_err(e: number): number {
12645         if(!isWasmInitialized) {
12646                 throw new Error("initializeWasm() must be awaited first!");
12647         }
12648         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_err(e);
12649         return nativeResponseValue;
12650 }
12651         // bool CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR o);
12652 /* @internal */
12653 export function CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(o: number): boolean {
12654         if(!isWasmInitialized) {
12655                 throw new Error("initializeWasm() must be awaited first!");
12656         }
12657         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(o);
12658         return nativeResponseValue;
12659 }
12660         // void CResult_AnnouncementSignaturesDecodeErrorZ_free(struct LDKCResult_AnnouncementSignaturesDecodeErrorZ _res);
12661 /* @internal */
12662 export function CResult_AnnouncementSignaturesDecodeErrorZ_free(_res: number): void {
12663         if(!isWasmInitialized) {
12664                 throw new Error("initializeWasm() must be awaited first!");
12665         }
12666         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_free(_res);
12667         // debug statements here
12668 }
12669         // uintptr_t CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR arg);
12670 /* @internal */
12671 export function CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(arg: number): number {
12672         if(!isWasmInitialized) {
12673                 throw new Error("initializeWasm() must be awaited first!");
12674         }
12675         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(arg);
12676         return nativeResponseValue;
12677 }
12678         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_clone(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR orig);
12679 /* @internal */
12680 export function CResult_AnnouncementSignaturesDecodeErrorZ_clone(orig: number): number {
12681         if(!isWasmInitialized) {
12682                 throw new Error("initializeWasm() must be awaited first!");
12683         }
12684         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_clone(orig);
12685         return nativeResponseValue;
12686 }
12687         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o);
12688 /* @internal */
12689 export function CResult_ChannelReestablishDecodeErrorZ_ok(o: number): number {
12690         if(!isWasmInitialized) {
12691                 throw new Error("initializeWasm() must be awaited first!");
12692         }
12693         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_ok(o);
12694         return nativeResponseValue;
12695 }
12696         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e);
12697 /* @internal */
12698 export function CResult_ChannelReestablishDecodeErrorZ_err(e: number): number {
12699         if(!isWasmInitialized) {
12700                 throw new Error("initializeWasm() must be awaited first!");
12701         }
12702         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_err(e);
12703         return nativeResponseValue;
12704 }
12705         // bool CResult_ChannelReestablishDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR o);
12706 /* @internal */
12707 export function CResult_ChannelReestablishDecodeErrorZ_is_ok(o: number): boolean {
12708         if(!isWasmInitialized) {
12709                 throw new Error("initializeWasm() must be awaited first!");
12710         }
12711         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_is_ok(o);
12712         return nativeResponseValue;
12713 }
12714         // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res);
12715 /* @internal */
12716 export function CResult_ChannelReestablishDecodeErrorZ_free(_res: number): void {
12717         if(!isWasmInitialized) {
12718                 throw new Error("initializeWasm() must be awaited first!");
12719         }
12720         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_free(_res);
12721         // debug statements here
12722 }
12723         // uintptr_t CResult_ChannelReestablishDecodeErrorZ_clone_ptr(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR arg);
12724 /* @internal */
12725 export function CResult_ChannelReestablishDecodeErrorZ_clone_ptr(arg: number): number {
12726         if(!isWasmInitialized) {
12727                 throw new Error("initializeWasm() must be awaited first!");
12728         }
12729         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_clone_ptr(arg);
12730         return nativeResponseValue;
12731 }
12732         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_clone(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR orig);
12733 /* @internal */
12734 export function CResult_ChannelReestablishDecodeErrorZ_clone(orig: number): number {
12735         if(!isWasmInitialized) {
12736                 throw new Error("initializeWasm() must be awaited first!");
12737         }
12738         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_clone(orig);
12739         return nativeResponseValue;
12740 }
12741         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_ok(struct LDKClosingSigned o);
12742 /* @internal */
12743 export function CResult_ClosingSignedDecodeErrorZ_ok(o: number): number {
12744         if(!isWasmInitialized) {
12745                 throw new Error("initializeWasm() must be awaited first!");
12746         }
12747         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_ok(o);
12748         return nativeResponseValue;
12749 }
12750         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_err(struct LDKDecodeError e);
12751 /* @internal */
12752 export function CResult_ClosingSignedDecodeErrorZ_err(e: number): number {
12753         if(!isWasmInitialized) {
12754                 throw new Error("initializeWasm() must be awaited first!");
12755         }
12756         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_err(e);
12757         return nativeResponseValue;
12758 }
12759         // bool CResult_ClosingSignedDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR o);
12760 /* @internal */
12761 export function CResult_ClosingSignedDecodeErrorZ_is_ok(o: number): boolean {
12762         if(!isWasmInitialized) {
12763                 throw new Error("initializeWasm() must be awaited first!");
12764         }
12765         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_is_ok(o);
12766         return nativeResponseValue;
12767 }
12768         // void CResult_ClosingSignedDecodeErrorZ_free(struct LDKCResult_ClosingSignedDecodeErrorZ _res);
12769 /* @internal */
12770 export function CResult_ClosingSignedDecodeErrorZ_free(_res: number): void {
12771         if(!isWasmInitialized) {
12772                 throw new Error("initializeWasm() must be awaited first!");
12773         }
12774         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_free(_res);
12775         // debug statements here
12776 }
12777         // uintptr_t CResult_ClosingSignedDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR arg);
12778 /* @internal */
12779 export function CResult_ClosingSignedDecodeErrorZ_clone_ptr(arg: number): number {
12780         if(!isWasmInitialized) {
12781                 throw new Error("initializeWasm() must be awaited first!");
12782         }
12783         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_clone_ptr(arg);
12784         return nativeResponseValue;
12785 }
12786         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR orig);
12787 /* @internal */
12788 export function CResult_ClosingSignedDecodeErrorZ_clone(orig: number): number {
12789         if(!isWasmInitialized) {
12790                 throw new Error("initializeWasm() must be awaited first!");
12791         }
12792         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_clone(orig);
12793         return nativeResponseValue;
12794 }
12795         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(struct LDKClosingSignedFeeRange o);
12796 /* @internal */
12797 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(o: number): number {
12798         if(!isWasmInitialized) {
12799                 throw new Error("initializeWasm() must be awaited first!");
12800         }
12801         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(o);
12802         return nativeResponseValue;
12803 }
12804         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_err(struct LDKDecodeError e);
12805 /* @internal */
12806 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_err(e: number): number {
12807         if(!isWasmInitialized) {
12808                 throw new Error("initializeWasm() must be awaited first!");
12809         }
12810         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_err(e);
12811         return nativeResponseValue;
12812 }
12813         // bool CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR o);
12814 /* @internal */
12815 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(o: number): boolean {
12816         if(!isWasmInitialized) {
12817                 throw new Error("initializeWasm() must be awaited first!");
12818         }
12819         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(o);
12820         return nativeResponseValue;
12821 }
12822         // void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ _res);
12823 /* @internal */
12824 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_free(_res: number): void {
12825         if(!isWasmInitialized) {
12826                 throw new Error("initializeWasm() must be awaited first!");
12827         }
12828         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_free(_res);
12829         // debug statements here
12830 }
12831         // uintptr_t CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR arg);
12832 /* @internal */
12833 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(arg: number): number {
12834         if(!isWasmInitialized) {
12835                 throw new Error("initializeWasm() must be awaited first!");
12836         }
12837         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(arg);
12838         return nativeResponseValue;
12839 }
12840         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR orig);
12841 /* @internal */
12842 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(orig: number): number {
12843         if(!isWasmInitialized) {
12844                 throw new Error("initializeWasm() must be awaited first!");
12845         }
12846         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(orig);
12847         return nativeResponseValue;
12848 }
12849         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_ok(struct LDKCommitmentSigned o);
12850 /* @internal */
12851 export function CResult_CommitmentSignedDecodeErrorZ_ok(o: number): number {
12852         if(!isWasmInitialized) {
12853                 throw new Error("initializeWasm() must be awaited first!");
12854         }
12855         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_ok(o);
12856         return nativeResponseValue;
12857 }
12858         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_err(struct LDKDecodeError e);
12859 /* @internal */
12860 export function CResult_CommitmentSignedDecodeErrorZ_err(e: number): number {
12861         if(!isWasmInitialized) {
12862                 throw new Error("initializeWasm() must be awaited first!");
12863         }
12864         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_err(e);
12865         return nativeResponseValue;
12866 }
12867         // bool CResult_CommitmentSignedDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR o);
12868 /* @internal */
12869 export function CResult_CommitmentSignedDecodeErrorZ_is_ok(o: number): boolean {
12870         if(!isWasmInitialized) {
12871                 throw new Error("initializeWasm() must be awaited first!");
12872         }
12873         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_is_ok(o);
12874         return nativeResponseValue;
12875 }
12876         // void CResult_CommitmentSignedDecodeErrorZ_free(struct LDKCResult_CommitmentSignedDecodeErrorZ _res);
12877 /* @internal */
12878 export function CResult_CommitmentSignedDecodeErrorZ_free(_res: number): void {
12879         if(!isWasmInitialized) {
12880                 throw new Error("initializeWasm() must be awaited first!");
12881         }
12882         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_free(_res);
12883         // debug statements here
12884 }
12885         // uintptr_t CResult_CommitmentSignedDecodeErrorZ_clone_ptr(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR arg);
12886 /* @internal */
12887 export function CResult_CommitmentSignedDecodeErrorZ_clone_ptr(arg: number): number {
12888         if(!isWasmInitialized) {
12889                 throw new Error("initializeWasm() must be awaited first!");
12890         }
12891         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_clone_ptr(arg);
12892         return nativeResponseValue;
12893 }
12894         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_clone(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR orig);
12895 /* @internal */
12896 export function CResult_CommitmentSignedDecodeErrorZ_clone(orig: number): number {
12897         if(!isWasmInitialized) {
12898                 throw new Error("initializeWasm() must be awaited first!");
12899         }
12900         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_clone(orig);
12901         return nativeResponseValue;
12902 }
12903         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_ok(struct LDKFundingCreated o);
12904 /* @internal */
12905 export function CResult_FundingCreatedDecodeErrorZ_ok(o: number): number {
12906         if(!isWasmInitialized) {
12907                 throw new Error("initializeWasm() must be awaited first!");
12908         }
12909         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_ok(o);
12910         return nativeResponseValue;
12911 }
12912         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_err(struct LDKDecodeError e);
12913 /* @internal */
12914 export function CResult_FundingCreatedDecodeErrorZ_err(e: number): number {
12915         if(!isWasmInitialized) {
12916                 throw new Error("initializeWasm() must be awaited first!");
12917         }
12918         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_err(e);
12919         return nativeResponseValue;
12920 }
12921         // bool CResult_FundingCreatedDecodeErrorZ_is_ok(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR o);
12922 /* @internal */
12923 export function CResult_FundingCreatedDecodeErrorZ_is_ok(o: number): boolean {
12924         if(!isWasmInitialized) {
12925                 throw new Error("initializeWasm() must be awaited first!");
12926         }
12927         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_is_ok(o);
12928         return nativeResponseValue;
12929 }
12930         // void CResult_FundingCreatedDecodeErrorZ_free(struct LDKCResult_FundingCreatedDecodeErrorZ _res);
12931 /* @internal */
12932 export function CResult_FundingCreatedDecodeErrorZ_free(_res: number): void {
12933         if(!isWasmInitialized) {
12934                 throw new Error("initializeWasm() must be awaited first!");
12935         }
12936         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_free(_res);
12937         // debug statements here
12938 }
12939         // uintptr_t CResult_FundingCreatedDecodeErrorZ_clone_ptr(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR arg);
12940 /* @internal */
12941 export function CResult_FundingCreatedDecodeErrorZ_clone_ptr(arg: number): number {
12942         if(!isWasmInitialized) {
12943                 throw new Error("initializeWasm() must be awaited first!");
12944         }
12945         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_clone_ptr(arg);
12946         return nativeResponseValue;
12947 }
12948         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_clone(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR orig);
12949 /* @internal */
12950 export function CResult_FundingCreatedDecodeErrorZ_clone(orig: number): number {
12951         if(!isWasmInitialized) {
12952                 throw new Error("initializeWasm() must be awaited first!");
12953         }
12954         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_clone(orig);
12955         return nativeResponseValue;
12956 }
12957         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_ok(struct LDKFundingSigned o);
12958 /* @internal */
12959 export function CResult_FundingSignedDecodeErrorZ_ok(o: number): number {
12960         if(!isWasmInitialized) {
12961                 throw new Error("initializeWasm() must be awaited first!");
12962         }
12963         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_ok(o);
12964         return nativeResponseValue;
12965 }
12966         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_err(struct LDKDecodeError e);
12967 /* @internal */
12968 export function CResult_FundingSignedDecodeErrorZ_err(e: number): number {
12969         if(!isWasmInitialized) {
12970                 throw new Error("initializeWasm() must be awaited first!");
12971         }
12972         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_err(e);
12973         return nativeResponseValue;
12974 }
12975         // bool CResult_FundingSignedDecodeErrorZ_is_ok(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR o);
12976 /* @internal */
12977 export function CResult_FundingSignedDecodeErrorZ_is_ok(o: number): boolean {
12978         if(!isWasmInitialized) {
12979                 throw new Error("initializeWasm() must be awaited first!");
12980         }
12981         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_is_ok(o);
12982         return nativeResponseValue;
12983 }
12984         // void CResult_FundingSignedDecodeErrorZ_free(struct LDKCResult_FundingSignedDecodeErrorZ _res);
12985 /* @internal */
12986 export function CResult_FundingSignedDecodeErrorZ_free(_res: number): void {
12987         if(!isWasmInitialized) {
12988                 throw new Error("initializeWasm() must be awaited first!");
12989         }
12990         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_free(_res);
12991         // debug statements here
12992 }
12993         // uintptr_t CResult_FundingSignedDecodeErrorZ_clone_ptr(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR arg);
12994 /* @internal */
12995 export function CResult_FundingSignedDecodeErrorZ_clone_ptr(arg: number): number {
12996         if(!isWasmInitialized) {
12997                 throw new Error("initializeWasm() must be awaited first!");
12998         }
12999         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_clone_ptr(arg);
13000         return nativeResponseValue;
13001 }
13002         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_clone(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR orig);
13003 /* @internal */
13004 export function CResult_FundingSignedDecodeErrorZ_clone(orig: number): number {
13005         if(!isWasmInitialized) {
13006                 throw new Error("initializeWasm() must be awaited first!");
13007         }
13008         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_clone(orig);
13009         return nativeResponseValue;
13010 }
13011         // struct LDKCResult_FundingLockedDecodeErrorZ CResult_FundingLockedDecodeErrorZ_ok(struct LDKFundingLocked o);
13012 /* @internal */
13013 export function CResult_FundingLockedDecodeErrorZ_ok(o: number): number {
13014         if(!isWasmInitialized) {
13015                 throw new Error("initializeWasm() must be awaited first!");
13016         }
13017         const nativeResponseValue = wasm.TS_CResult_FundingLockedDecodeErrorZ_ok(o);
13018         return nativeResponseValue;
13019 }
13020         // struct LDKCResult_FundingLockedDecodeErrorZ CResult_FundingLockedDecodeErrorZ_err(struct LDKDecodeError e);
13021 /* @internal */
13022 export function CResult_FundingLockedDecodeErrorZ_err(e: number): number {
13023         if(!isWasmInitialized) {
13024                 throw new Error("initializeWasm() must be awaited first!");
13025         }
13026         const nativeResponseValue = wasm.TS_CResult_FundingLockedDecodeErrorZ_err(e);
13027         return nativeResponseValue;
13028 }
13029         // bool CResult_FundingLockedDecodeErrorZ_is_ok(const struct LDKCResult_FundingLockedDecodeErrorZ *NONNULL_PTR o);
13030 /* @internal */
13031 export function CResult_FundingLockedDecodeErrorZ_is_ok(o: number): boolean {
13032         if(!isWasmInitialized) {
13033                 throw new Error("initializeWasm() must be awaited first!");
13034         }
13035         const nativeResponseValue = wasm.TS_CResult_FundingLockedDecodeErrorZ_is_ok(o);
13036         return nativeResponseValue;
13037 }
13038         // void CResult_FundingLockedDecodeErrorZ_free(struct LDKCResult_FundingLockedDecodeErrorZ _res);
13039 /* @internal */
13040 export function CResult_FundingLockedDecodeErrorZ_free(_res: number): void {
13041         if(!isWasmInitialized) {
13042                 throw new Error("initializeWasm() must be awaited first!");
13043         }
13044         const nativeResponseValue = wasm.TS_CResult_FundingLockedDecodeErrorZ_free(_res);
13045         // debug statements here
13046 }
13047         // uintptr_t CResult_FundingLockedDecodeErrorZ_clone_ptr(LDKCResult_FundingLockedDecodeErrorZ *NONNULL_PTR arg);
13048 /* @internal */
13049 export function CResult_FundingLockedDecodeErrorZ_clone_ptr(arg: number): number {
13050         if(!isWasmInitialized) {
13051                 throw new Error("initializeWasm() must be awaited first!");
13052         }
13053         const nativeResponseValue = wasm.TS_CResult_FundingLockedDecodeErrorZ_clone_ptr(arg);
13054         return nativeResponseValue;
13055 }
13056         // struct LDKCResult_FundingLockedDecodeErrorZ CResult_FundingLockedDecodeErrorZ_clone(const struct LDKCResult_FundingLockedDecodeErrorZ *NONNULL_PTR orig);
13057 /* @internal */
13058 export function CResult_FundingLockedDecodeErrorZ_clone(orig: number): number {
13059         if(!isWasmInitialized) {
13060                 throw new Error("initializeWasm() must be awaited first!");
13061         }
13062         const nativeResponseValue = wasm.TS_CResult_FundingLockedDecodeErrorZ_clone(orig);
13063         return nativeResponseValue;
13064 }
13065         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o);
13066 /* @internal */
13067 export function CResult_InitDecodeErrorZ_ok(o: number): number {
13068         if(!isWasmInitialized) {
13069                 throw new Error("initializeWasm() must be awaited first!");
13070         }
13071         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_ok(o);
13072         return nativeResponseValue;
13073 }
13074         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e);
13075 /* @internal */
13076 export function CResult_InitDecodeErrorZ_err(e: number): number {
13077         if(!isWasmInitialized) {
13078                 throw new Error("initializeWasm() must be awaited first!");
13079         }
13080         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_err(e);
13081         return nativeResponseValue;
13082 }
13083         // bool CResult_InitDecodeErrorZ_is_ok(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR o);
13084 /* @internal */
13085 export function CResult_InitDecodeErrorZ_is_ok(o: number): boolean {
13086         if(!isWasmInitialized) {
13087                 throw new Error("initializeWasm() must be awaited first!");
13088         }
13089         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_is_ok(o);
13090         return nativeResponseValue;
13091 }
13092         // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res);
13093 /* @internal */
13094 export function CResult_InitDecodeErrorZ_free(_res: number): void {
13095         if(!isWasmInitialized) {
13096                 throw new Error("initializeWasm() must be awaited first!");
13097         }
13098         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_free(_res);
13099         // debug statements here
13100 }
13101         // uintptr_t CResult_InitDecodeErrorZ_clone_ptr(LDKCResult_InitDecodeErrorZ *NONNULL_PTR arg);
13102 /* @internal */
13103 export function CResult_InitDecodeErrorZ_clone_ptr(arg: number): number {
13104         if(!isWasmInitialized) {
13105                 throw new Error("initializeWasm() must be awaited first!");
13106         }
13107         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_clone_ptr(arg);
13108         return nativeResponseValue;
13109 }
13110         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_clone(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR orig);
13111 /* @internal */
13112 export function CResult_InitDecodeErrorZ_clone(orig: number): number {
13113         if(!isWasmInitialized) {
13114                 throw new Error("initializeWasm() must be awaited first!");
13115         }
13116         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_clone(orig);
13117         return nativeResponseValue;
13118 }
13119         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_ok(struct LDKOpenChannel o);
13120 /* @internal */
13121 export function CResult_OpenChannelDecodeErrorZ_ok(o: number): number {
13122         if(!isWasmInitialized) {
13123                 throw new Error("initializeWasm() must be awaited first!");
13124         }
13125         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_ok(o);
13126         return nativeResponseValue;
13127 }
13128         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_err(struct LDKDecodeError e);
13129 /* @internal */
13130 export function CResult_OpenChannelDecodeErrorZ_err(e: number): number {
13131         if(!isWasmInitialized) {
13132                 throw new Error("initializeWasm() must be awaited first!");
13133         }
13134         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_err(e);
13135         return nativeResponseValue;
13136 }
13137         // bool CResult_OpenChannelDecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR o);
13138 /* @internal */
13139 export function CResult_OpenChannelDecodeErrorZ_is_ok(o: number): boolean {
13140         if(!isWasmInitialized) {
13141                 throw new Error("initializeWasm() must be awaited first!");
13142         }
13143         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_is_ok(o);
13144         return nativeResponseValue;
13145 }
13146         // void CResult_OpenChannelDecodeErrorZ_free(struct LDKCResult_OpenChannelDecodeErrorZ _res);
13147 /* @internal */
13148 export function CResult_OpenChannelDecodeErrorZ_free(_res: number): void {
13149         if(!isWasmInitialized) {
13150                 throw new Error("initializeWasm() must be awaited first!");
13151         }
13152         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_free(_res);
13153         // debug statements here
13154 }
13155         // uintptr_t CResult_OpenChannelDecodeErrorZ_clone_ptr(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR arg);
13156 /* @internal */
13157 export function CResult_OpenChannelDecodeErrorZ_clone_ptr(arg: number): number {
13158         if(!isWasmInitialized) {
13159                 throw new Error("initializeWasm() must be awaited first!");
13160         }
13161         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_clone_ptr(arg);
13162         return nativeResponseValue;
13163 }
13164         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_clone(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR orig);
13165 /* @internal */
13166 export function CResult_OpenChannelDecodeErrorZ_clone(orig: number): number {
13167         if(!isWasmInitialized) {
13168                 throw new Error("initializeWasm() must be awaited first!");
13169         }
13170         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_clone(orig);
13171         return nativeResponseValue;
13172 }
13173         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_ok(struct LDKRevokeAndACK o);
13174 /* @internal */
13175 export function CResult_RevokeAndACKDecodeErrorZ_ok(o: number): number {
13176         if(!isWasmInitialized) {
13177                 throw new Error("initializeWasm() must be awaited first!");
13178         }
13179         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_ok(o);
13180         return nativeResponseValue;
13181 }
13182         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_err(struct LDKDecodeError e);
13183 /* @internal */
13184 export function CResult_RevokeAndACKDecodeErrorZ_err(e: number): number {
13185         if(!isWasmInitialized) {
13186                 throw new Error("initializeWasm() must be awaited first!");
13187         }
13188         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_err(e);
13189         return nativeResponseValue;
13190 }
13191         // bool CResult_RevokeAndACKDecodeErrorZ_is_ok(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR o);
13192 /* @internal */
13193 export function CResult_RevokeAndACKDecodeErrorZ_is_ok(o: number): boolean {
13194         if(!isWasmInitialized) {
13195                 throw new Error("initializeWasm() must be awaited first!");
13196         }
13197         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_is_ok(o);
13198         return nativeResponseValue;
13199 }
13200         // void CResult_RevokeAndACKDecodeErrorZ_free(struct LDKCResult_RevokeAndACKDecodeErrorZ _res);
13201 /* @internal */
13202 export function CResult_RevokeAndACKDecodeErrorZ_free(_res: number): void {
13203         if(!isWasmInitialized) {
13204                 throw new Error("initializeWasm() must be awaited first!");
13205         }
13206         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_free(_res);
13207         // debug statements here
13208 }
13209         // uintptr_t CResult_RevokeAndACKDecodeErrorZ_clone_ptr(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR arg);
13210 /* @internal */
13211 export function CResult_RevokeAndACKDecodeErrorZ_clone_ptr(arg: number): number {
13212         if(!isWasmInitialized) {
13213                 throw new Error("initializeWasm() must be awaited first!");
13214         }
13215         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_clone_ptr(arg);
13216         return nativeResponseValue;
13217 }
13218         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_clone(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR orig);
13219 /* @internal */
13220 export function CResult_RevokeAndACKDecodeErrorZ_clone(orig: number): number {
13221         if(!isWasmInitialized) {
13222                 throw new Error("initializeWasm() must be awaited first!");
13223         }
13224         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_clone(orig);
13225         return nativeResponseValue;
13226 }
13227         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_ok(struct LDKShutdown o);
13228 /* @internal */
13229 export function CResult_ShutdownDecodeErrorZ_ok(o: number): number {
13230         if(!isWasmInitialized) {
13231                 throw new Error("initializeWasm() must be awaited first!");
13232         }
13233         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_ok(o);
13234         return nativeResponseValue;
13235 }
13236         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_err(struct LDKDecodeError e);
13237 /* @internal */
13238 export function CResult_ShutdownDecodeErrorZ_err(e: number): number {
13239         if(!isWasmInitialized) {
13240                 throw new Error("initializeWasm() must be awaited first!");
13241         }
13242         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_err(e);
13243         return nativeResponseValue;
13244 }
13245         // bool CResult_ShutdownDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR o);
13246 /* @internal */
13247 export function CResult_ShutdownDecodeErrorZ_is_ok(o: number): boolean {
13248         if(!isWasmInitialized) {
13249                 throw new Error("initializeWasm() must be awaited first!");
13250         }
13251         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_is_ok(o);
13252         return nativeResponseValue;
13253 }
13254         // void CResult_ShutdownDecodeErrorZ_free(struct LDKCResult_ShutdownDecodeErrorZ _res);
13255 /* @internal */
13256 export function CResult_ShutdownDecodeErrorZ_free(_res: number): void {
13257         if(!isWasmInitialized) {
13258                 throw new Error("initializeWasm() must be awaited first!");
13259         }
13260         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_free(_res);
13261         // debug statements here
13262 }
13263         // uintptr_t CResult_ShutdownDecodeErrorZ_clone_ptr(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR arg);
13264 /* @internal */
13265 export function CResult_ShutdownDecodeErrorZ_clone_ptr(arg: number): number {
13266         if(!isWasmInitialized) {
13267                 throw new Error("initializeWasm() must be awaited first!");
13268         }
13269         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_clone_ptr(arg);
13270         return nativeResponseValue;
13271 }
13272         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_clone(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR orig);
13273 /* @internal */
13274 export function CResult_ShutdownDecodeErrorZ_clone(orig: number): number {
13275         if(!isWasmInitialized) {
13276                 throw new Error("initializeWasm() must be awaited first!");
13277         }
13278         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_clone(orig);
13279         return nativeResponseValue;
13280 }
13281         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_ok(struct LDKUpdateFailHTLC o);
13282 /* @internal */
13283 export function CResult_UpdateFailHTLCDecodeErrorZ_ok(o: number): number {
13284         if(!isWasmInitialized) {
13285                 throw new Error("initializeWasm() must be awaited first!");
13286         }
13287         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_ok(o);
13288         return nativeResponseValue;
13289 }
13290         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_err(struct LDKDecodeError e);
13291 /* @internal */
13292 export function CResult_UpdateFailHTLCDecodeErrorZ_err(e: number): number {
13293         if(!isWasmInitialized) {
13294                 throw new Error("initializeWasm() must be awaited first!");
13295         }
13296         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_err(e);
13297         return nativeResponseValue;
13298 }
13299         // bool CResult_UpdateFailHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR o);
13300 /* @internal */
13301 export function CResult_UpdateFailHTLCDecodeErrorZ_is_ok(o: number): boolean {
13302         if(!isWasmInitialized) {
13303                 throw new Error("initializeWasm() must be awaited first!");
13304         }
13305         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_is_ok(o);
13306         return nativeResponseValue;
13307 }
13308         // void CResult_UpdateFailHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailHTLCDecodeErrorZ _res);
13309 /* @internal */
13310 export function CResult_UpdateFailHTLCDecodeErrorZ_free(_res: number): void {
13311         if(!isWasmInitialized) {
13312                 throw new Error("initializeWasm() must be awaited first!");
13313         }
13314         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_free(_res);
13315         // debug statements here
13316 }
13317         // uintptr_t CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR arg);
13318 /* @internal */
13319 export function CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(arg: number): number {
13320         if(!isWasmInitialized) {
13321                 throw new Error("initializeWasm() must be awaited first!");
13322         }
13323         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(arg);
13324         return nativeResponseValue;
13325 }
13326         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR orig);
13327 /* @internal */
13328 export function CResult_UpdateFailHTLCDecodeErrorZ_clone(orig: number): number {
13329         if(!isWasmInitialized) {
13330                 throw new Error("initializeWasm() must be awaited first!");
13331         }
13332         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_clone(orig);
13333         return nativeResponseValue;
13334 }
13335         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(struct LDKUpdateFailMalformedHTLC o);
13336 /* @internal */
13337 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(o: number): number {
13338         if(!isWasmInitialized) {
13339                 throw new Error("initializeWasm() must be awaited first!");
13340         }
13341         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(o);
13342         return nativeResponseValue;
13343 }
13344         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
13345 /* @internal */
13346 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(e: number): number {
13347         if(!isWasmInitialized) {
13348                 throw new Error("initializeWasm() must be awaited first!");
13349         }
13350         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(e);
13351         return nativeResponseValue;
13352 }
13353         // bool CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR o);
13354 /* @internal */
13355 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(o: number): boolean {
13356         if(!isWasmInitialized) {
13357                 throw new Error("initializeWasm() must be awaited first!");
13358         }
13359         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(o);
13360         return nativeResponseValue;
13361 }
13362         // void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ _res);
13363 /* @internal */
13364 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(_res: number): void {
13365         if(!isWasmInitialized) {
13366                 throw new Error("initializeWasm() must be awaited first!");
13367         }
13368         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(_res);
13369         // debug statements here
13370 }
13371         // uintptr_t CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR arg);
13372 /* @internal */
13373 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(arg: number): number {
13374         if(!isWasmInitialized) {
13375                 throw new Error("initializeWasm() must be awaited first!");
13376         }
13377         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(arg);
13378         return nativeResponseValue;
13379 }
13380         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR orig);
13381 /* @internal */
13382 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(orig: number): number {
13383         if(!isWasmInitialized) {
13384                 throw new Error("initializeWasm() must be awaited first!");
13385         }
13386         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(orig);
13387         return nativeResponseValue;
13388 }
13389         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_ok(struct LDKUpdateFee o);
13390 /* @internal */
13391 export function CResult_UpdateFeeDecodeErrorZ_ok(o: number): number {
13392         if(!isWasmInitialized) {
13393                 throw new Error("initializeWasm() must be awaited first!");
13394         }
13395         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_ok(o);
13396         return nativeResponseValue;
13397 }
13398         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_err(struct LDKDecodeError e);
13399 /* @internal */
13400 export function CResult_UpdateFeeDecodeErrorZ_err(e: number): number {
13401         if(!isWasmInitialized) {
13402                 throw new Error("initializeWasm() must be awaited first!");
13403         }
13404         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_err(e);
13405         return nativeResponseValue;
13406 }
13407         // bool CResult_UpdateFeeDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR o);
13408 /* @internal */
13409 export function CResult_UpdateFeeDecodeErrorZ_is_ok(o: number): boolean {
13410         if(!isWasmInitialized) {
13411                 throw new Error("initializeWasm() must be awaited first!");
13412         }
13413         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_is_ok(o);
13414         return nativeResponseValue;
13415 }
13416         // void CResult_UpdateFeeDecodeErrorZ_free(struct LDKCResult_UpdateFeeDecodeErrorZ _res);
13417 /* @internal */
13418 export function CResult_UpdateFeeDecodeErrorZ_free(_res: number): void {
13419         if(!isWasmInitialized) {
13420                 throw new Error("initializeWasm() must be awaited first!");
13421         }
13422         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_free(_res);
13423         // debug statements here
13424 }
13425         // uintptr_t CResult_UpdateFeeDecodeErrorZ_clone_ptr(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR arg);
13426 /* @internal */
13427 export function CResult_UpdateFeeDecodeErrorZ_clone_ptr(arg: number): number {
13428         if(!isWasmInitialized) {
13429                 throw new Error("initializeWasm() must be awaited first!");
13430         }
13431         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_clone_ptr(arg);
13432         return nativeResponseValue;
13433 }
13434         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_clone(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR orig);
13435 /* @internal */
13436 export function CResult_UpdateFeeDecodeErrorZ_clone(orig: number): number {
13437         if(!isWasmInitialized) {
13438                 throw new Error("initializeWasm() must be awaited first!");
13439         }
13440         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_clone(orig);
13441         return nativeResponseValue;
13442 }
13443         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_ok(struct LDKUpdateFulfillHTLC o);
13444 /* @internal */
13445 export function CResult_UpdateFulfillHTLCDecodeErrorZ_ok(o: number): number {
13446         if(!isWasmInitialized) {
13447                 throw new Error("initializeWasm() must be awaited first!");
13448         }
13449         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_ok(o);
13450         return nativeResponseValue;
13451 }
13452         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_err(struct LDKDecodeError e);
13453 /* @internal */
13454 export function CResult_UpdateFulfillHTLCDecodeErrorZ_err(e: number): number {
13455         if(!isWasmInitialized) {
13456                 throw new Error("initializeWasm() must be awaited first!");
13457         }
13458         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_err(e);
13459         return nativeResponseValue;
13460 }
13461         // bool CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR o);
13462 /* @internal */
13463 export function CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(o: number): boolean {
13464         if(!isWasmInitialized) {
13465                 throw new Error("initializeWasm() must be awaited first!");
13466         }
13467         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(o);
13468         return nativeResponseValue;
13469 }
13470         // void CResult_UpdateFulfillHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ _res);
13471 /* @internal */
13472 export function CResult_UpdateFulfillHTLCDecodeErrorZ_free(_res: number): void {
13473         if(!isWasmInitialized) {
13474                 throw new Error("initializeWasm() must be awaited first!");
13475         }
13476         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_free(_res);
13477         // debug statements here
13478 }
13479         // uintptr_t CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR arg);
13480 /* @internal */
13481 export function CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(arg: number): number {
13482         if(!isWasmInitialized) {
13483                 throw new Error("initializeWasm() must be awaited first!");
13484         }
13485         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(arg);
13486         return nativeResponseValue;
13487 }
13488         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR orig);
13489 /* @internal */
13490 export function CResult_UpdateFulfillHTLCDecodeErrorZ_clone(orig: number): number {
13491         if(!isWasmInitialized) {
13492                 throw new Error("initializeWasm() must be awaited first!");
13493         }
13494         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_clone(orig);
13495         return nativeResponseValue;
13496 }
13497         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_ok(struct LDKUpdateAddHTLC o);
13498 /* @internal */
13499 export function CResult_UpdateAddHTLCDecodeErrorZ_ok(o: number): number {
13500         if(!isWasmInitialized) {
13501                 throw new Error("initializeWasm() must be awaited first!");
13502         }
13503         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_ok(o);
13504         return nativeResponseValue;
13505 }
13506         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_err(struct LDKDecodeError e);
13507 /* @internal */
13508 export function CResult_UpdateAddHTLCDecodeErrorZ_err(e: number): number {
13509         if(!isWasmInitialized) {
13510                 throw new Error("initializeWasm() must be awaited first!");
13511         }
13512         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_err(e);
13513         return nativeResponseValue;
13514 }
13515         // bool CResult_UpdateAddHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR o);
13516 /* @internal */
13517 export function CResult_UpdateAddHTLCDecodeErrorZ_is_ok(o: number): boolean {
13518         if(!isWasmInitialized) {
13519                 throw new Error("initializeWasm() must be awaited first!");
13520         }
13521         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_is_ok(o);
13522         return nativeResponseValue;
13523 }
13524         // void CResult_UpdateAddHTLCDecodeErrorZ_free(struct LDKCResult_UpdateAddHTLCDecodeErrorZ _res);
13525 /* @internal */
13526 export function CResult_UpdateAddHTLCDecodeErrorZ_free(_res: number): void {
13527         if(!isWasmInitialized) {
13528                 throw new Error("initializeWasm() must be awaited first!");
13529         }
13530         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_free(_res);
13531         // debug statements here
13532 }
13533         // uintptr_t CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR arg);
13534 /* @internal */
13535 export function CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(arg: number): number {
13536         if(!isWasmInitialized) {
13537                 throw new Error("initializeWasm() must be awaited first!");
13538         }
13539         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(arg);
13540         return nativeResponseValue;
13541 }
13542         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR orig);
13543 /* @internal */
13544 export function CResult_UpdateAddHTLCDecodeErrorZ_clone(orig: number): number {
13545         if(!isWasmInitialized) {
13546                 throw new Error("initializeWasm() must be awaited first!");
13547         }
13548         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_clone(orig);
13549         return nativeResponseValue;
13550 }
13551         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o);
13552 /* @internal */
13553 export function CResult_PingDecodeErrorZ_ok(o: number): number {
13554         if(!isWasmInitialized) {
13555                 throw new Error("initializeWasm() must be awaited first!");
13556         }
13557         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_ok(o);
13558         return nativeResponseValue;
13559 }
13560         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e);
13561 /* @internal */
13562 export function CResult_PingDecodeErrorZ_err(e: number): number {
13563         if(!isWasmInitialized) {
13564                 throw new Error("initializeWasm() must be awaited first!");
13565         }
13566         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_err(e);
13567         return nativeResponseValue;
13568 }
13569         // bool CResult_PingDecodeErrorZ_is_ok(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR o);
13570 /* @internal */
13571 export function CResult_PingDecodeErrorZ_is_ok(o: number): boolean {
13572         if(!isWasmInitialized) {
13573                 throw new Error("initializeWasm() must be awaited first!");
13574         }
13575         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_is_ok(o);
13576         return nativeResponseValue;
13577 }
13578         // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res);
13579 /* @internal */
13580 export function CResult_PingDecodeErrorZ_free(_res: number): void {
13581         if(!isWasmInitialized) {
13582                 throw new Error("initializeWasm() must be awaited first!");
13583         }
13584         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_free(_res);
13585         // debug statements here
13586 }
13587         // uintptr_t CResult_PingDecodeErrorZ_clone_ptr(LDKCResult_PingDecodeErrorZ *NONNULL_PTR arg);
13588 /* @internal */
13589 export function CResult_PingDecodeErrorZ_clone_ptr(arg: number): number {
13590         if(!isWasmInitialized) {
13591                 throw new Error("initializeWasm() must be awaited first!");
13592         }
13593         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_clone_ptr(arg);
13594         return nativeResponseValue;
13595 }
13596         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_clone(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR orig);
13597 /* @internal */
13598 export function CResult_PingDecodeErrorZ_clone(orig: number): number {
13599         if(!isWasmInitialized) {
13600                 throw new Error("initializeWasm() must be awaited first!");
13601         }
13602         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_clone(orig);
13603         return nativeResponseValue;
13604 }
13605         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o);
13606 /* @internal */
13607 export function CResult_PongDecodeErrorZ_ok(o: number): number {
13608         if(!isWasmInitialized) {
13609                 throw new Error("initializeWasm() must be awaited first!");
13610         }
13611         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_ok(o);
13612         return nativeResponseValue;
13613 }
13614         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e);
13615 /* @internal */
13616 export function CResult_PongDecodeErrorZ_err(e: number): number {
13617         if(!isWasmInitialized) {
13618                 throw new Error("initializeWasm() must be awaited first!");
13619         }
13620         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_err(e);
13621         return nativeResponseValue;
13622 }
13623         // bool CResult_PongDecodeErrorZ_is_ok(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR o);
13624 /* @internal */
13625 export function CResult_PongDecodeErrorZ_is_ok(o: number): boolean {
13626         if(!isWasmInitialized) {
13627                 throw new Error("initializeWasm() must be awaited first!");
13628         }
13629         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_is_ok(o);
13630         return nativeResponseValue;
13631 }
13632         // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res);
13633 /* @internal */
13634 export function CResult_PongDecodeErrorZ_free(_res: number): void {
13635         if(!isWasmInitialized) {
13636                 throw new Error("initializeWasm() must be awaited first!");
13637         }
13638         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_free(_res);
13639         // debug statements here
13640 }
13641         // uintptr_t CResult_PongDecodeErrorZ_clone_ptr(LDKCResult_PongDecodeErrorZ *NONNULL_PTR arg);
13642 /* @internal */
13643 export function CResult_PongDecodeErrorZ_clone_ptr(arg: number): number {
13644         if(!isWasmInitialized) {
13645                 throw new Error("initializeWasm() must be awaited first!");
13646         }
13647         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_clone_ptr(arg);
13648         return nativeResponseValue;
13649 }
13650         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_clone(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR orig);
13651 /* @internal */
13652 export function CResult_PongDecodeErrorZ_clone(orig: number): number {
13653         if(!isWasmInitialized) {
13654                 throw new Error("initializeWasm() must be awaited first!");
13655         }
13656         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_clone(orig);
13657         return nativeResponseValue;
13658 }
13659         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o);
13660 /* @internal */
13661 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(o: number): number {
13662         if(!isWasmInitialized) {
13663                 throw new Error("initializeWasm() must be awaited first!");
13664         }
13665         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(o);
13666         return nativeResponseValue;
13667 }
13668         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
13669 /* @internal */
13670 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(e: number): number {
13671         if(!isWasmInitialized) {
13672                 throw new Error("initializeWasm() must be awaited first!");
13673         }
13674         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(e);
13675         return nativeResponseValue;
13676 }
13677         // bool CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
13678 /* @internal */
13679 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
13680         if(!isWasmInitialized) {
13681                 throw new Error("initializeWasm() must be awaited first!");
13682         }
13683         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(o);
13684         return nativeResponseValue;
13685 }
13686         // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res);
13687 /* @internal */
13688 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(_res: number): void {
13689         if(!isWasmInitialized) {
13690                 throw new Error("initializeWasm() must be awaited first!");
13691         }
13692         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(_res);
13693         // debug statements here
13694 }
13695         // uintptr_t CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
13696 /* @internal */
13697 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
13698         if(!isWasmInitialized) {
13699                 throw new Error("initializeWasm() must be awaited first!");
13700         }
13701         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(arg);
13702         return nativeResponseValue;
13703 }
13704         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
13705 /* @internal */
13706 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(orig: number): number {
13707         if(!isWasmInitialized) {
13708                 throw new Error("initializeWasm() must be awaited first!");
13709         }
13710         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(orig);
13711         return nativeResponseValue;
13712 }
13713         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_ok(struct LDKChannelAnnouncement o);
13714 /* @internal */
13715 export function CResult_ChannelAnnouncementDecodeErrorZ_ok(o: number): number {
13716         if(!isWasmInitialized) {
13717                 throw new Error("initializeWasm() must be awaited first!");
13718         }
13719         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_ok(o);
13720         return nativeResponseValue;
13721 }
13722         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
13723 /* @internal */
13724 export function CResult_ChannelAnnouncementDecodeErrorZ_err(e: number): number {
13725         if(!isWasmInitialized) {
13726                 throw new Error("initializeWasm() must be awaited first!");
13727         }
13728         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_err(e);
13729         return nativeResponseValue;
13730 }
13731         // bool CResult_ChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
13732 /* @internal */
13733 export function CResult_ChannelAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
13734         if(!isWasmInitialized) {
13735                 throw new Error("initializeWasm() must be awaited first!");
13736         }
13737         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_is_ok(o);
13738         return nativeResponseValue;
13739 }
13740         // void CResult_ChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_ChannelAnnouncementDecodeErrorZ _res);
13741 /* @internal */
13742 export function CResult_ChannelAnnouncementDecodeErrorZ_free(_res: number): void {
13743         if(!isWasmInitialized) {
13744                 throw new Error("initializeWasm() must be awaited first!");
13745         }
13746         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_free(_res);
13747         // debug statements here
13748 }
13749         // uintptr_t CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
13750 /* @internal */
13751 export function CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
13752         if(!isWasmInitialized) {
13753                 throw new Error("initializeWasm() must be awaited first!");
13754         }
13755         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(arg);
13756         return nativeResponseValue;
13757 }
13758         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
13759 /* @internal */
13760 export function CResult_ChannelAnnouncementDecodeErrorZ_clone(orig: number): number {
13761         if(!isWasmInitialized) {
13762                 throw new Error("initializeWasm() must be awaited first!");
13763         }
13764         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_clone(orig);
13765         return nativeResponseValue;
13766 }
13767         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o);
13768 /* @internal */
13769 export function CResult_UnsignedChannelUpdateDecodeErrorZ_ok(o: number): number {
13770         if(!isWasmInitialized) {
13771                 throw new Error("initializeWasm() must be awaited first!");
13772         }
13773         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_ok(o);
13774         return nativeResponseValue;
13775 }
13776         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
13777 /* @internal */
13778 export function CResult_UnsignedChannelUpdateDecodeErrorZ_err(e: number): number {
13779         if(!isWasmInitialized) {
13780                 throw new Error("initializeWasm() must be awaited first!");
13781         }
13782         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_err(e);
13783         return nativeResponseValue;
13784 }
13785         // bool CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR o);
13786 /* @internal */
13787 export function CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(o: number): boolean {
13788         if(!isWasmInitialized) {
13789                 throw new Error("initializeWasm() must be awaited first!");
13790         }
13791         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(o);
13792         return nativeResponseValue;
13793 }
13794         // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res);
13795 /* @internal */
13796 export function CResult_UnsignedChannelUpdateDecodeErrorZ_free(_res: number): void {
13797         if(!isWasmInitialized) {
13798                 throw new Error("initializeWasm() must be awaited first!");
13799         }
13800         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_free(_res);
13801         // debug statements here
13802 }
13803         // uintptr_t CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
13804 /* @internal */
13805 export function CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(arg: number): number {
13806         if(!isWasmInitialized) {
13807                 throw new Error("initializeWasm() must be awaited first!");
13808         }
13809         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(arg);
13810         return nativeResponseValue;
13811 }
13812         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
13813 /* @internal */
13814 export function CResult_UnsignedChannelUpdateDecodeErrorZ_clone(orig: number): number {
13815         if(!isWasmInitialized) {
13816                 throw new Error("initializeWasm() must be awaited first!");
13817         }
13818         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_clone(orig);
13819         return nativeResponseValue;
13820 }
13821         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_ok(struct LDKChannelUpdate o);
13822 /* @internal */
13823 export function CResult_ChannelUpdateDecodeErrorZ_ok(o: number): number {
13824         if(!isWasmInitialized) {
13825                 throw new Error("initializeWasm() must be awaited first!");
13826         }
13827         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_ok(o);
13828         return nativeResponseValue;
13829 }
13830         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
13831 /* @internal */
13832 export function CResult_ChannelUpdateDecodeErrorZ_err(e: number): number {
13833         if(!isWasmInitialized) {
13834                 throw new Error("initializeWasm() must be awaited first!");
13835         }
13836         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_err(e);
13837         return nativeResponseValue;
13838 }
13839         // bool CResult_ChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR o);
13840 /* @internal */
13841 export function CResult_ChannelUpdateDecodeErrorZ_is_ok(o: number): boolean {
13842         if(!isWasmInitialized) {
13843                 throw new Error("initializeWasm() must be awaited first!");
13844         }
13845         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_is_ok(o);
13846         return nativeResponseValue;
13847 }
13848         // void CResult_ChannelUpdateDecodeErrorZ_free(struct LDKCResult_ChannelUpdateDecodeErrorZ _res);
13849 /* @internal */
13850 export function CResult_ChannelUpdateDecodeErrorZ_free(_res: number): void {
13851         if(!isWasmInitialized) {
13852                 throw new Error("initializeWasm() must be awaited first!");
13853         }
13854         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_free(_res);
13855         // debug statements here
13856 }
13857         // uintptr_t CResult_ChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
13858 /* @internal */
13859 export function CResult_ChannelUpdateDecodeErrorZ_clone_ptr(arg: number): number {
13860         if(!isWasmInitialized) {
13861                 throw new Error("initializeWasm() must be awaited first!");
13862         }
13863         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_clone_ptr(arg);
13864         return nativeResponseValue;
13865 }
13866         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
13867 /* @internal */
13868 export function CResult_ChannelUpdateDecodeErrorZ_clone(orig: number): number {
13869         if(!isWasmInitialized) {
13870                 throw new Error("initializeWasm() must be awaited first!");
13871         }
13872         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_clone(orig);
13873         return nativeResponseValue;
13874 }
13875         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o);
13876 /* @internal */
13877 export function CResult_ErrorMessageDecodeErrorZ_ok(o: number): number {
13878         if(!isWasmInitialized) {
13879                 throw new Error("initializeWasm() must be awaited first!");
13880         }
13881         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_ok(o);
13882         return nativeResponseValue;
13883 }
13884         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e);
13885 /* @internal */
13886 export function CResult_ErrorMessageDecodeErrorZ_err(e: number): number {
13887         if(!isWasmInitialized) {
13888                 throw new Error("initializeWasm() must be awaited first!");
13889         }
13890         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_err(e);
13891         return nativeResponseValue;
13892 }
13893         // bool CResult_ErrorMessageDecodeErrorZ_is_ok(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR o);
13894 /* @internal */
13895 export function CResult_ErrorMessageDecodeErrorZ_is_ok(o: number): boolean {
13896         if(!isWasmInitialized) {
13897                 throw new Error("initializeWasm() must be awaited first!");
13898         }
13899         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_is_ok(o);
13900         return nativeResponseValue;
13901 }
13902         // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res);
13903 /* @internal */
13904 export function CResult_ErrorMessageDecodeErrorZ_free(_res: number): void {
13905         if(!isWasmInitialized) {
13906                 throw new Error("initializeWasm() must be awaited first!");
13907         }
13908         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_free(_res);
13909         // debug statements here
13910 }
13911         // uintptr_t CResult_ErrorMessageDecodeErrorZ_clone_ptr(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR arg);
13912 /* @internal */
13913 export function CResult_ErrorMessageDecodeErrorZ_clone_ptr(arg: number): number {
13914         if(!isWasmInitialized) {
13915                 throw new Error("initializeWasm() must be awaited first!");
13916         }
13917         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_clone_ptr(arg);
13918         return nativeResponseValue;
13919 }
13920         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_clone(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR orig);
13921 /* @internal */
13922 export function CResult_ErrorMessageDecodeErrorZ_clone(orig: number): number {
13923         if(!isWasmInitialized) {
13924                 throw new Error("initializeWasm() must be awaited first!");
13925         }
13926         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_clone(orig);
13927         return nativeResponseValue;
13928 }
13929         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_ok(struct LDKWarningMessage o);
13930 /* @internal */
13931 export function CResult_WarningMessageDecodeErrorZ_ok(o: number): number {
13932         if(!isWasmInitialized) {
13933                 throw new Error("initializeWasm() must be awaited first!");
13934         }
13935         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_ok(o);
13936         return nativeResponseValue;
13937 }
13938         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_err(struct LDKDecodeError e);
13939 /* @internal */
13940 export function CResult_WarningMessageDecodeErrorZ_err(e: number): number {
13941         if(!isWasmInitialized) {
13942                 throw new Error("initializeWasm() must be awaited first!");
13943         }
13944         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_err(e);
13945         return nativeResponseValue;
13946 }
13947         // bool CResult_WarningMessageDecodeErrorZ_is_ok(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR o);
13948 /* @internal */
13949 export function CResult_WarningMessageDecodeErrorZ_is_ok(o: number): boolean {
13950         if(!isWasmInitialized) {
13951                 throw new Error("initializeWasm() must be awaited first!");
13952         }
13953         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_is_ok(o);
13954         return nativeResponseValue;
13955 }
13956         // void CResult_WarningMessageDecodeErrorZ_free(struct LDKCResult_WarningMessageDecodeErrorZ _res);
13957 /* @internal */
13958 export function CResult_WarningMessageDecodeErrorZ_free(_res: number): void {
13959         if(!isWasmInitialized) {
13960                 throw new Error("initializeWasm() must be awaited first!");
13961         }
13962         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_free(_res);
13963         // debug statements here
13964 }
13965         // uintptr_t CResult_WarningMessageDecodeErrorZ_clone_ptr(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR arg);
13966 /* @internal */
13967 export function CResult_WarningMessageDecodeErrorZ_clone_ptr(arg: number): number {
13968         if(!isWasmInitialized) {
13969                 throw new Error("initializeWasm() must be awaited first!");
13970         }
13971         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_clone_ptr(arg);
13972         return nativeResponseValue;
13973 }
13974         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_clone(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR orig);
13975 /* @internal */
13976 export function CResult_WarningMessageDecodeErrorZ_clone(orig: number): number {
13977         if(!isWasmInitialized) {
13978                 throw new Error("initializeWasm() must be awaited first!");
13979         }
13980         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_clone(orig);
13981         return nativeResponseValue;
13982 }
13983         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o);
13984 /* @internal */
13985 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(o: number): number {
13986         if(!isWasmInitialized) {
13987                 throw new Error("initializeWasm() must be awaited first!");
13988         }
13989         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(o);
13990         return nativeResponseValue;
13991 }
13992         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
13993 /* @internal */
13994 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(e: number): number {
13995         if(!isWasmInitialized) {
13996                 throw new Error("initializeWasm() must be awaited first!");
13997         }
13998         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(e);
13999         return nativeResponseValue;
14000 }
14001         // bool CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
14002 /* @internal */
14003 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
14004         if(!isWasmInitialized) {
14005                 throw new Error("initializeWasm() must be awaited first!");
14006         }
14007         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(o);
14008         return nativeResponseValue;
14009 }
14010         // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res);
14011 /* @internal */
14012 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(_res: number): void {
14013         if(!isWasmInitialized) {
14014                 throw new Error("initializeWasm() must be awaited first!");
14015         }
14016         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(_res);
14017         // debug statements here
14018 }
14019         // uintptr_t CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
14020 /* @internal */
14021 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
14022         if(!isWasmInitialized) {
14023                 throw new Error("initializeWasm() must be awaited first!");
14024         }
14025         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(arg);
14026         return nativeResponseValue;
14027 }
14028         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
14029 /* @internal */
14030 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(orig: number): number {
14031         if(!isWasmInitialized) {
14032                 throw new Error("initializeWasm() must be awaited first!");
14033         }
14034         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(orig);
14035         return nativeResponseValue;
14036 }
14037         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_ok(struct LDKNodeAnnouncement o);
14038 /* @internal */
14039 export function CResult_NodeAnnouncementDecodeErrorZ_ok(o: number): number {
14040         if(!isWasmInitialized) {
14041                 throw new Error("initializeWasm() must be awaited first!");
14042         }
14043         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_ok(o);
14044         return nativeResponseValue;
14045 }
14046         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
14047 /* @internal */
14048 export function CResult_NodeAnnouncementDecodeErrorZ_err(e: number): number {
14049         if(!isWasmInitialized) {
14050                 throw new Error("initializeWasm() must be awaited first!");
14051         }
14052         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_err(e);
14053         return nativeResponseValue;
14054 }
14055         // bool CResult_NodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
14056 /* @internal */
14057 export function CResult_NodeAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
14058         if(!isWasmInitialized) {
14059                 throw new Error("initializeWasm() must be awaited first!");
14060         }
14061         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_is_ok(o);
14062         return nativeResponseValue;
14063 }
14064         // void CResult_NodeAnnouncementDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementDecodeErrorZ _res);
14065 /* @internal */
14066 export function CResult_NodeAnnouncementDecodeErrorZ_free(_res: number): void {
14067         if(!isWasmInitialized) {
14068                 throw new Error("initializeWasm() must be awaited first!");
14069         }
14070         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_free(_res);
14071         // debug statements here
14072 }
14073         // uintptr_t CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
14074 /* @internal */
14075 export function CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
14076         if(!isWasmInitialized) {
14077                 throw new Error("initializeWasm() must be awaited first!");
14078         }
14079         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(arg);
14080         return nativeResponseValue;
14081 }
14082         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
14083 /* @internal */
14084 export function CResult_NodeAnnouncementDecodeErrorZ_clone(orig: number): number {
14085         if(!isWasmInitialized) {
14086                 throw new Error("initializeWasm() must be awaited first!");
14087         }
14088         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_clone(orig);
14089         return nativeResponseValue;
14090 }
14091         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o);
14092 /* @internal */
14093 export function CResult_QueryShortChannelIdsDecodeErrorZ_ok(o: number): number {
14094         if(!isWasmInitialized) {
14095                 throw new Error("initializeWasm() must be awaited first!");
14096         }
14097         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_ok(o);
14098         return nativeResponseValue;
14099 }
14100         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e);
14101 /* @internal */
14102 export function CResult_QueryShortChannelIdsDecodeErrorZ_err(e: number): number {
14103         if(!isWasmInitialized) {
14104                 throw new Error("initializeWasm() must be awaited first!");
14105         }
14106         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_err(e);
14107         return nativeResponseValue;
14108 }
14109         // bool CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR o);
14110 /* @internal */
14111 export function CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(o: number): boolean {
14112         if(!isWasmInitialized) {
14113                 throw new Error("initializeWasm() must be awaited first!");
14114         }
14115         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(o);
14116         return nativeResponseValue;
14117 }
14118         // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res);
14119 /* @internal */
14120 export function CResult_QueryShortChannelIdsDecodeErrorZ_free(_res: number): void {
14121         if(!isWasmInitialized) {
14122                 throw new Error("initializeWasm() must be awaited first!");
14123         }
14124         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_free(_res);
14125         // debug statements here
14126 }
14127         // uintptr_t CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR arg);
14128 /* @internal */
14129 export function CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(arg: number): number {
14130         if(!isWasmInitialized) {
14131                 throw new Error("initializeWasm() must be awaited first!");
14132         }
14133         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(arg);
14134         return nativeResponseValue;
14135 }
14136         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_clone(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR orig);
14137 /* @internal */
14138 export function CResult_QueryShortChannelIdsDecodeErrorZ_clone(orig: number): number {
14139         if(!isWasmInitialized) {
14140                 throw new Error("initializeWasm() must be awaited first!");
14141         }
14142         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_clone(orig);
14143         return nativeResponseValue;
14144 }
14145         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o);
14146 /* @internal */
14147 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(o: number): number {
14148         if(!isWasmInitialized) {
14149                 throw new Error("initializeWasm() must be awaited first!");
14150         }
14151         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(o);
14152         return nativeResponseValue;
14153 }
14154         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e);
14155 /* @internal */
14156 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(e: number): number {
14157         if(!isWasmInitialized) {
14158                 throw new Error("initializeWasm() must be awaited first!");
14159         }
14160         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(e);
14161         return nativeResponseValue;
14162 }
14163         // bool CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR o);
14164 /* @internal */
14165 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(o: number): boolean {
14166         if(!isWasmInitialized) {
14167                 throw new Error("initializeWasm() must be awaited first!");
14168         }
14169         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(o);
14170         return nativeResponseValue;
14171 }
14172         // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res);
14173 /* @internal */
14174 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(_res: number): void {
14175         if(!isWasmInitialized) {
14176                 throw new Error("initializeWasm() must be awaited first!");
14177         }
14178         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(_res);
14179         // debug statements here
14180 }
14181         // uintptr_t CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR arg);
14182 /* @internal */
14183 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(arg: number): number {
14184         if(!isWasmInitialized) {
14185                 throw new Error("initializeWasm() must be awaited first!");
14186         }
14187         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(arg);
14188         return nativeResponseValue;
14189 }
14190         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR orig);
14191 /* @internal */
14192 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(orig: number): number {
14193         if(!isWasmInitialized) {
14194                 throw new Error("initializeWasm() must be awaited first!");
14195         }
14196         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(orig);
14197         return nativeResponseValue;
14198 }
14199         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o);
14200 /* @internal */
14201 export function CResult_QueryChannelRangeDecodeErrorZ_ok(o: number): number {
14202         if(!isWasmInitialized) {
14203                 throw new Error("initializeWasm() must be awaited first!");
14204         }
14205         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_ok(o);
14206         return nativeResponseValue;
14207 }
14208         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
14209 /* @internal */
14210 export function CResult_QueryChannelRangeDecodeErrorZ_err(e: number): number {
14211         if(!isWasmInitialized) {
14212                 throw new Error("initializeWasm() must be awaited first!");
14213         }
14214         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_err(e);
14215         return nativeResponseValue;
14216 }
14217         // bool CResult_QueryChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR o);
14218 /* @internal */
14219 export function CResult_QueryChannelRangeDecodeErrorZ_is_ok(o: number): boolean {
14220         if(!isWasmInitialized) {
14221                 throw new Error("initializeWasm() must be awaited first!");
14222         }
14223         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_is_ok(o);
14224         return nativeResponseValue;
14225 }
14226         // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res);
14227 /* @internal */
14228 export function CResult_QueryChannelRangeDecodeErrorZ_free(_res: number): void {
14229         if(!isWasmInitialized) {
14230                 throw new Error("initializeWasm() must be awaited first!");
14231         }
14232         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_free(_res);
14233         // debug statements here
14234 }
14235         // uintptr_t CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR arg);
14236 /* @internal */
14237 export function CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(arg: number): number {
14238         if(!isWasmInitialized) {
14239                 throw new Error("initializeWasm() must be awaited first!");
14240         }
14241         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(arg);
14242         return nativeResponseValue;
14243 }
14244         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_clone(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR orig);
14245 /* @internal */
14246 export function CResult_QueryChannelRangeDecodeErrorZ_clone(orig: number): number {
14247         if(!isWasmInitialized) {
14248                 throw new Error("initializeWasm() must be awaited first!");
14249         }
14250         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_clone(orig);
14251         return nativeResponseValue;
14252 }
14253         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o);
14254 /* @internal */
14255 export function CResult_ReplyChannelRangeDecodeErrorZ_ok(o: number): number {
14256         if(!isWasmInitialized) {
14257                 throw new Error("initializeWasm() must be awaited first!");
14258         }
14259         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_ok(o);
14260         return nativeResponseValue;
14261 }
14262         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
14263 /* @internal */
14264 export function CResult_ReplyChannelRangeDecodeErrorZ_err(e: number): number {
14265         if(!isWasmInitialized) {
14266                 throw new Error("initializeWasm() must be awaited first!");
14267         }
14268         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_err(e);
14269         return nativeResponseValue;
14270 }
14271         // bool CResult_ReplyChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR o);
14272 /* @internal */
14273 export function CResult_ReplyChannelRangeDecodeErrorZ_is_ok(o: number): boolean {
14274         if(!isWasmInitialized) {
14275                 throw new Error("initializeWasm() must be awaited first!");
14276         }
14277         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_is_ok(o);
14278         return nativeResponseValue;
14279 }
14280         // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res);
14281 /* @internal */
14282 export function CResult_ReplyChannelRangeDecodeErrorZ_free(_res: number): void {
14283         if(!isWasmInitialized) {
14284                 throw new Error("initializeWasm() must be awaited first!");
14285         }
14286         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_free(_res);
14287         // debug statements here
14288 }
14289         // uintptr_t CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR arg);
14290 /* @internal */
14291 export function CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(arg: number): number {
14292         if(!isWasmInitialized) {
14293                 throw new Error("initializeWasm() must be awaited first!");
14294         }
14295         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(arg);
14296         return nativeResponseValue;
14297 }
14298         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_clone(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR orig);
14299 /* @internal */
14300 export function CResult_ReplyChannelRangeDecodeErrorZ_clone(orig: number): number {
14301         if(!isWasmInitialized) {
14302                 throw new Error("initializeWasm() must be awaited first!");
14303         }
14304         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_clone(orig);
14305         return nativeResponseValue;
14306 }
14307         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o);
14308 /* @internal */
14309 export function CResult_GossipTimestampFilterDecodeErrorZ_ok(o: number): number {
14310         if(!isWasmInitialized) {
14311                 throw new Error("initializeWasm() must be awaited first!");
14312         }
14313         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_ok(o);
14314         return nativeResponseValue;
14315 }
14316         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e);
14317 /* @internal */
14318 export function CResult_GossipTimestampFilterDecodeErrorZ_err(e: number): number {
14319         if(!isWasmInitialized) {
14320                 throw new Error("initializeWasm() must be awaited first!");
14321         }
14322         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_err(e);
14323         return nativeResponseValue;
14324 }
14325         // bool CResult_GossipTimestampFilterDecodeErrorZ_is_ok(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR o);
14326 /* @internal */
14327 export function CResult_GossipTimestampFilterDecodeErrorZ_is_ok(o: number): boolean {
14328         if(!isWasmInitialized) {
14329                 throw new Error("initializeWasm() must be awaited first!");
14330         }
14331         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_is_ok(o);
14332         return nativeResponseValue;
14333 }
14334         // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res);
14335 /* @internal */
14336 export function CResult_GossipTimestampFilterDecodeErrorZ_free(_res: number): void {
14337         if(!isWasmInitialized) {
14338                 throw new Error("initializeWasm() must be awaited first!");
14339         }
14340         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_free(_res);
14341         // debug statements here
14342 }
14343         // uintptr_t CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR arg);
14344 /* @internal */
14345 export function CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(arg: number): number {
14346         if(!isWasmInitialized) {
14347                 throw new Error("initializeWasm() must be awaited first!");
14348         }
14349         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(arg);
14350         return nativeResponseValue;
14351 }
14352         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_clone(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR orig);
14353 /* @internal */
14354 export function CResult_GossipTimestampFilterDecodeErrorZ_clone(orig: number): number {
14355         if(!isWasmInitialized) {
14356                 throw new Error("initializeWasm() must be awaited first!");
14357         }
14358         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_clone(orig);
14359         return nativeResponseValue;
14360 }
14361         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_ok(struct LDKInvoice o);
14362 /* @internal */
14363 export function CResult_InvoiceSignOrCreationErrorZ_ok(o: number): number {
14364         if(!isWasmInitialized) {
14365                 throw new Error("initializeWasm() must be awaited first!");
14366         }
14367         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_ok(o);
14368         return nativeResponseValue;
14369 }
14370         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_err(struct LDKSignOrCreationError e);
14371 /* @internal */
14372 export function CResult_InvoiceSignOrCreationErrorZ_err(e: number): number {
14373         if(!isWasmInitialized) {
14374                 throw new Error("initializeWasm() must be awaited first!");
14375         }
14376         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_err(e);
14377         return nativeResponseValue;
14378 }
14379         // bool CResult_InvoiceSignOrCreationErrorZ_is_ok(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR o);
14380 /* @internal */
14381 export function CResult_InvoiceSignOrCreationErrorZ_is_ok(o: number): boolean {
14382         if(!isWasmInitialized) {
14383                 throw new Error("initializeWasm() must be awaited first!");
14384         }
14385         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_is_ok(o);
14386         return nativeResponseValue;
14387 }
14388         // void CResult_InvoiceSignOrCreationErrorZ_free(struct LDKCResult_InvoiceSignOrCreationErrorZ _res);
14389 /* @internal */
14390 export function CResult_InvoiceSignOrCreationErrorZ_free(_res: number): void {
14391         if(!isWasmInitialized) {
14392                 throw new Error("initializeWasm() must be awaited first!");
14393         }
14394         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_free(_res);
14395         // debug statements here
14396 }
14397         // uintptr_t CResult_InvoiceSignOrCreationErrorZ_clone_ptr(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR arg);
14398 /* @internal */
14399 export function CResult_InvoiceSignOrCreationErrorZ_clone_ptr(arg: number): number {
14400         if(!isWasmInitialized) {
14401                 throw new Error("initializeWasm() must be awaited first!");
14402         }
14403         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_clone_ptr(arg);
14404         return nativeResponseValue;
14405 }
14406         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_clone(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR orig);
14407 /* @internal */
14408 export function CResult_InvoiceSignOrCreationErrorZ_clone(orig: number): number {
14409         if(!isWasmInitialized) {
14410                 throw new Error("initializeWasm() must be awaited first!");
14411         }
14412         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_clone(orig);
14413         return nativeResponseValue;
14414 }
14415         // struct LDKCOption_FilterZ COption_FilterZ_some(struct LDKFilter o);
14416 /* @internal */
14417 export function COption_FilterZ_some(o: number): number {
14418         if(!isWasmInitialized) {
14419                 throw new Error("initializeWasm() must be awaited first!");
14420         }
14421         const nativeResponseValue = wasm.TS_COption_FilterZ_some(o);
14422         return nativeResponseValue;
14423 }
14424         // struct LDKCOption_FilterZ COption_FilterZ_none(void);
14425 /* @internal */
14426 export function COption_FilterZ_none(): number {
14427         if(!isWasmInitialized) {
14428                 throw new Error("initializeWasm() must be awaited first!");
14429         }
14430         const nativeResponseValue = wasm.TS_COption_FilterZ_none();
14431         return nativeResponseValue;
14432 }
14433         // void COption_FilterZ_free(struct LDKCOption_FilterZ _res);
14434 /* @internal */
14435 export function COption_FilterZ_free(_res: number): void {
14436         if(!isWasmInitialized) {
14437                 throw new Error("initializeWasm() must be awaited first!");
14438         }
14439         const nativeResponseValue = wasm.TS_COption_FilterZ_free(_res);
14440         // debug statements here
14441 }
14442         // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_ok(struct LDKLockedChannelMonitor o);
14443 /* @internal */
14444 export function CResult_LockedChannelMonitorNoneZ_ok(o: number): number {
14445         if(!isWasmInitialized) {
14446                 throw new Error("initializeWasm() must be awaited first!");
14447         }
14448         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_ok(o);
14449         return nativeResponseValue;
14450 }
14451         // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_err(void);
14452 /* @internal */
14453 export function CResult_LockedChannelMonitorNoneZ_err(): number {
14454         if(!isWasmInitialized) {
14455                 throw new Error("initializeWasm() must be awaited first!");
14456         }
14457         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_err();
14458         return nativeResponseValue;
14459 }
14460         // bool CResult_LockedChannelMonitorNoneZ_is_ok(const struct LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR o);
14461 /* @internal */
14462 export function CResult_LockedChannelMonitorNoneZ_is_ok(o: number): boolean {
14463         if(!isWasmInitialized) {
14464                 throw new Error("initializeWasm() must be awaited first!");
14465         }
14466         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_is_ok(o);
14467         return nativeResponseValue;
14468 }
14469         // void CResult_LockedChannelMonitorNoneZ_free(struct LDKCResult_LockedChannelMonitorNoneZ _res);
14470 /* @internal */
14471 export function CResult_LockedChannelMonitorNoneZ_free(_res: number): void {
14472         if(!isWasmInitialized) {
14473                 throw new Error("initializeWasm() must be awaited first!");
14474         }
14475         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_free(_res);
14476         // debug statements here
14477 }
14478         // void CVec_OutPointZ_free(struct LDKCVec_OutPointZ _res);
14479 /* @internal */
14480 export function CVec_OutPointZ_free(_res: number): void {
14481         if(!isWasmInitialized) {
14482                 throw new Error("initializeWasm() must be awaited first!");
14483         }
14484         const nativeResponseValue = wasm.TS_CVec_OutPointZ_free(_res);
14485         // debug statements here
14486 }
14487         // void PaymentPurpose_free(struct LDKPaymentPurpose this_ptr);
14488 /* @internal */
14489 export function PaymentPurpose_free(this_ptr: number): void {
14490         if(!isWasmInitialized) {
14491                 throw new Error("initializeWasm() must be awaited first!");
14492         }
14493         const nativeResponseValue = wasm.TS_PaymentPurpose_free(this_ptr);
14494         // debug statements here
14495 }
14496         // uintptr_t PaymentPurpose_clone_ptr(LDKPaymentPurpose *NONNULL_PTR arg);
14497 /* @internal */
14498 export function PaymentPurpose_clone_ptr(arg: number): number {
14499         if(!isWasmInitialized) {
14500                 throw new Error("initializeWasm() must be awaited first!");
14501         }
14502         const nativeResponseValue = wasm.TS_PaymentPurpose_clone_ptr(arg);
14503         return nativeResponseValue;
14504 }
14505         // struct LDKPaymentPurpose PaymentPurpose_clone(const struct LDKPaymentPurpose *NONNULL_PTR orig);
14506 /* @internal */
14507 export function PaymentPurpose_clone(orig: number): number {
14508         if(!isWasmInitialized) {
14509                 throw new Error("initializeWasm() must be awaited first!");
14510         }
14511         const nativeResponseValue = wasm.TS_PaymentPurpose_clone(orig);
14512         return nativeResponseValue;
14513 }
14514         // struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_secret);
14515 /* @internal */
14516 export function PaymentPurpose_invoice_payment(payment_preimage: number, payment_secret: number): number {
14517         if(!isWasmInitialized) {
14518                 throw new Error("initializeWasm() must be awaited first!");
14519         }
14520         const nativeResponseValue = wasm.TS_PaymentPurpose_invoice_payment(payment_preimage, payment_secret);
14521         return nativeResponseValue;
14522 }
14523         // struct LDKPaymentPurpose PaymentPurpose_spontaneous_payment(struct LDKThirtyTwoBytes a);
14524 /* @internal */
14525 export function PaymentPurpose_spontaneous_payment(a: number): number {
14526         if(!isWasmInitialized) {
14527                 throw new Error("initializeWasm() must be awaited first!");
14528         }
14529         const nativeResponseValue = wasm.TS_PaymentPurpose_spontaneous_payment(a);
14530         return nativeResponseValue;
14531 }
14532         // void ClosureReason_free(struct LDKClosureReason this_ptr);
14533 /* @internal */
14534 export function ClosureReason_free(this_ptr: number): void {
14535         if(!isWasmInitialized) {
14536                 throw new Error("initializeWasm() must be awaited first!");
14537         }
14538         const nativeResponseValue = wasm.TS_ClosureReason_free(this_ptr);
14539         // debug statements here
14540 }
14541         // uintptr_t ClosureReason_clone_ptr(LDKClosureReason *NONNULL_PTR arg);
14542 /* @internal */
14543 export function ClosureReason_clone_ptr(arg: number): number {
14544         if(!isWasmInitialized) {
14545                 throw new Error("initializeWasm() must be awaited first!");
14546         }
14547         const nativeResponseValue = wasm.TS_ClosureReason_clone_ptr(arg);
14548         return nativeResponseValue;
14549 }
14550         // struct LDKClosureReason ClosureReason_clone(const struct LDKClosureReason *NONNULL_PTR orig);
14551 /* @internal */
14552 export function ClosureReason_clone(orig: number): number {
14553         if(!isWasmInitialized) {
14554                 throw new Error("initializeWasm() must be awaited first!");
14555         }
14556         const nativeResponseValue = wasm.TS_ClosureReason_clone(orig);
14557         return nativeResponseValue;
14558 }
14559         // struct LDKClosureReason ClosureReason_counterparty_force_closed(struct LDKStr peer_msg);
14560 /* @internal */
14561 export function ClosureReason_counterparty_force_closed(peer_msg: number): number {
14562         if(!isWasmInitialized) {
14563                 throw new Error("initializeWasm() must be awaited first!");
14564         }
14565         const nativeResponseValue = wasm.TS_ClosureReason_counterparty_force_closed(peer_msg);
14566         return nativeResponseValue;
14567 }
14568         // struct LDKClosureReason ClosureReason_holder_force_closed(void);
14569 /* @internal */
14570 export function ClosureReason_holder_force_closed(): number {
14571         if(!isWasmInitialized) {
14572                 throw new Error("initializeWasm() must be awaited first!");
14573         }
14574         const nativeResponseValue = wasm.TS_ClosureReason_holder_force_closed();
14575         return nativeResponseValue;
14576 }
14577         // struct LDKClosureReason ClosureReason_cooperative_closure(void);
14578 /* @internal */
14579 export function ClosureReason_cooperative_closure(): number {
14580         if(!isWasmInitialized) {
14581                 throw new Error("initializeWasm() must be awaited first!");
14582         }
14583         const nativeResponseValue = wasm.TS_ClosureReason_cooperative_closure();
14584         return nativeResponseValue;
14585 }
14586         // struct LDKClosureReason ClosureReason_commitment_tx_confirmed(void);
14587 /* @internal */
14588 export function ClosureReason_commitment_tx_confirmed(): number {
14589         if(!isWasmInitialized) {
14590                 throw new Error("initializeWasm() must be awaited first!");
14591         }
14592         const nativeResponseValue = wasm.TS_ClosureReason_commitment_tx_confirmed();
14593         return nativeResponseValue;
14594 }
14595         // struct LDKClosureReason ClosureReason_funding_timed_out(void);
14596 /* @internal */
14597 export function ClosureReason_funding_timed_out(): number {
14598         if(!isWasmInitialized) {
14599                 throw new Error("initializeWasm() must be awaited first!");
14600         }
14601         const nativeResponseValue = wasm.TS_ClosureReason_funding_timed_out();
14602         return nativeResponseValue;
14603 }
14604         // struct LDKClosureReason ClosureReason_processing_error(struct LDKStr err);
14605 /* @internal */
14606 export function ClosureReason_processing_error(err: number): number {
14607         if(!isWasmInitialized) {
14608                 throw new Error("initializeWasm() must be awaited first!");
14609         }
14610         const nativeResponseValue = wasm.TS_ClosureReason_processing_error(err);
14611         return nativeResponseValue;
14612 }
14613         // struct LDKClosureReason ClosureReason_disconnected_peer(void);
14614 /* @internal */
14615 export function ClosureReason_disconnected_peer(): number {
14616         if(!isWasmInitialized) {
14617                 throw new Error("initializeWasm() must be awaited first!");
14618         }
14619         const nativeResponseValue = wasm.TS_ClosureReason_disconnected_peer();
14620         return nativeResponseValue;
14621 }
14622         // struct LDKClosureReason ClosureReason_outdated_channel_manager(void);
14623 /* @internal */
14624 export function ClosureReason_outdated_channel_manager(): number {
14625         if(!isWasmInitialized) {
14626                 throw new Error("initializeWasm() must be awaited first!");
14627         }
14628         const nativeResponseValue = wasm.TS_ClosureReason_outdated_channel_manager();
14629         return nativeResponseValue;
14630 }
14631         // struct LDKCVec_u8Z ClosureReason_write(const struct LDKClosureReason *NONNULL_PTR obj);
14632 /* @internal */
14633 export function ClosureReason_write(obj: number): number {
14634         if(!isWasmInitialized) {
14635                 throw new Error("initializeWasm() must be awaited first!");
14636         }
14637         const nativeResponseValue = wasm.TS_ClosureReason_write(obj);
14638         return nativeResponseValue;
14639 }
14640         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ ClosureReason_read(struct LDKu8slice ser);
14641 /* @internal */
14642 export function ClosureReason_read(ser: number): number {
14643         if(!isWasmInitialized) {
14644                 throw new Error("initializeWasm() must be awaited first!");
14645         }
14646         const nativeResponseValue = wasm.TS_ClosureReason_read(ser);
14647         return nativeResponseValue;
14648 }
14649         // void Event_free(struct LDKEvent this_ptr);
14650 /* @internal */
14651 export function Event_free(this_ptr: number): void {
14652         if(!isWasmInitialized) {
14653                 throw new Error("initializeWasm() must be awaited first!");
14654         }
14655         const nativeResponseValue = wasm.TS_Event_free(this_ptr);
14656         // debug statements here
14657 }
14658         // uintptr_t Event_clone_ptr(LDKEvent *NONNULL_PTR arg);
14659 /* @internal */
14660 export function Event_clone_ptr(arg: number): number {
14661         if(!isWasmInitialized) {
14662                 throw new Error("initializeWasm() must be awaited first!");
14663         }
14664         const nativeResponseValue = wasm.TS_Event_clone_ptr(arg);
14665         return nativeResponseValue;
14666 }
14667         // struct LDKEvent Event_clone(const struct LDKEvent *NONNULL_PTR orig);
14668 /* @internal */
14669 export function Event_clone(orig: number): number {
14670         if(!isWasmInitialized) {
14671                 throw new Error("initializeWasm() must be awaited first!");
14672         }
14673         const nativeResponseValue = wasm.TS_Event_clone(orig);
14674         return nativeResponseValue;
14675 }
14676         // struct LDKEvent Event_funding_generation_ready(struct LDKThirtyTwoBytes temporary_channel_id, uint64_t channel_value_satoshis, struct LDKCVec_u8Z output_script, uint64_t user_channel_id);
14677 /* @internal */
14678 export function Event_funding_generation_ready(temporary_channel_id: number, channel_value_satoshis: bigint, output_script: number, user_channel_id: bigint): number {
14679         if(!isWasmInitialized) {
14680                 throw new Error("initializeWasm() must be awaited first!");
14681         }
14682         const nativeResponseValue = wasm.TS_Event_funding_generation_ready(temporary_channel_id, channel_value_satoshis, output_script, user_channel_id);
14683         return nativeResponseValue;
14684 }
14685         // struct LDKEvent Event_payment_received(struct LDKThirtyTwoBytes payment_hash, uint64_t amt, struct LDKPaymentPurpose purpose);
14686 /* @internal */
14687 export function Event_payment_received(payment_hash: number, amt: bigint, purpose: number): number {
14688         if(!isWasmInitialized) {
14689                 throw new Error("initializeWasm() must be awaited first!");
14690         }
14691         const nativeResponseValue = wasm.TS_Event_payment_received(payment_hash, amt, purpose);
14692         return nativeResponseValue;
14693 }
14694         // struct LDKEvent Event_payment_sent(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat);
14695 /* @internal */
14696 export function Event_payment_sent(payment_id: number, payment_preimage: number, payment_hash: number, fee_paid_msat: number): number {
14697         if(!isWasmInitialized) {
14698                 throw new Error("initializeWasm() must be awaited first!");
14699         }
14700         const nativeResponseValue = wasm.TS_Event_payment_sent(payment_id, payment_preimage, payment_hash, fee_paid_msat);
14701         return nativeResponseValue;
14702 }
14703         // struct LDKEvent Event_payment_path_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, bool rejected_by_dest, struct LDKCOption_NetworkUpdateZ network_update, bool all_paths_failed, struct LDKCVec_RouteHopZ path, struct LDKCOption_u64Z short_channel_id, struct LDKRouteParameters retry);
14704 /* @internal */
14705 export function Event_payment_path_failed(payment_id: number, payment_hash: number, rejected_by_dest: boolean, network_update: number, all_paths_failed: boolean, path: number, short_channel_id: number, retry: number): number {
14706         if(!isWasmInitialized) {
14707                 throw new Error("initializeWasm() must be awaited first!");
14708         }
14709         const nativeResponseValue = wasm.TS_Event_payment_path_failed(payment_id, payment_hash, rejected_by_dest, network_update, all_paths_failed, path, short_channel_id, retry);
14710         return nativeResponseValue;
14711 }
14712         // struct LDKEvent Event_payment_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash);
14713 /* @internal */
14714 export function Event_payment_failed(payment_id: number, payment_hash: number): number {
14715         if(!isWasmInitialized) {
14716                 throw new Error("initializeWasm() must be awaited first!");
14717         }
14718         const nativeResponseValue = wasm.TS_Event_payment_failed(payment_id, payment_hash);
14719         return nativeResponseValue;
14720 }
14721         // struct LDKEvent Event_pending_htlcs_forwardable(uint64_t time_forwardable);
14722 /* @internal */
14723 export function Event_pending_htlcs_forwardable(time_forwardable: bigint): number {
14724         if(!isWasmInitialized) {
14725                 throw new Error("initializeWasm() must be awaited first!");
14726         }
14727         const nativeResponseValue = wasm.TS_Event_pending_htlcs_forwardable(time_forwardable);
14728         return nativeResponseValue;
14729 }
14730         // struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs);
14731 /* @internal */
14732 export function Event_spendable_outputs(outputs: number): number {
14733         if(!isWasmInitialized) {
14734                 throw new Error("initializeWasm() must be awaited first!");
14735         }
14736         const nativeResponseValue = wasm.TS_Event_spendable_outputs(outputs);
14737         return nativeResponseValue;
14738 }
14739         // struct LDKEvent Event_payment_forwarded(struct LDKCOption_u64Z fee_earned_msat, bool claim_from_onchain_tx);
14740 /* @internal */
14741 export function Event_payment_forwarded(fee_earned_msat: number, claim_from_onchain_tx: boolean): number {
14742         if(!isWasmInitialized) {
14743                 throw new Error("initializeWasm() must be awaited first!");
14744         }
14745         const nativeResponseValue = wasm.TS_Event_payment_forwarded(fee_earned_msat, claim_from_onchain_tx);
14746         return nativeResponseValue;
14747 }
14748         // struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, uint64_t user_channel_id, struct LDKClosureReason reason);
14749 /* @internal */
14750 export function Event_channel_closed(channel_id: number, user_channel_id: bigint, reason: number): number {
14751         if(!isWasmInitialized) {
14752                 throw new Error("initializeWasm() must be awaited first!");
14753         }
14754         const nativeResponseValue = wasm.TS_Event_channel_closed(channel_id, user_channel_id, reason);
14755         return nativeResponseValue;
14756 }
14757         // struct LDKEvent Event_discard_funding(struct LDKThirtyTwoBytes channel_id, struct LDKTransaction transaction);
14758 /* @internal */
14759 export function Event_discard_funding(channel_id: number, transaction: number): number {
14760         if(!isWasmInitialized) {
14761                 throw new Error("initializeWasm() must be awaited first!");
14762         }
14763         const nativeResponseValue = wasm.TS_Event_discard_funding(channel_id, transaction);
14764         return nativeResponseValue;
14765 }
14766         // struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCVec_RouteHopZ path);
14767 /* @internal */
14768 export function Event_payment_path_successful(payment_id: number, payment_hash: number, path: number): number {
14769         if(!isWasmInitialized) {
14770                 throw new Error("initializeWasm() must be awaited first!");
14771         }
14772         const nativeResponseValue = wasm.TS_Event_payment_path_successful(payment_id, payment_hash, path);
14773         return nativeResponseValue;
14774 }
14775         // struct LDKEvent Event_open_channel_request(struct LDKThirtyTwoBytes temporary_channel_id, struct LDKPublicKey counterparty_node_id, uint64_t funding_satoshis, uint64_t push_msat);
14776 /* @internal */
14777 export function Event_open_channel_request(temporary_channel_id: number, counterparty_node_id: number, funding_satoshis: bigint, push_msat: bigint): number {
14778         if(!isWasmInitialized) {
14779                 throw new Error("initializeWasm() must be awaited first!");
14780         }
14781         const nativeResponseValue = wasm.TS_Event_open_channel_request(temporary_channel_id, counterparty_node_id, funding_satoshis, push_msat);
14782         return nativeResponseValue;
14783 }
14784         // struct LDKCVec_u8Z Event_write(const struct LDKEvent *NONNULL_PTR obj);
14785 /* @internal */
14786 export function Event_write(obj: number): number {
14787         if(!isWasmInitialized) {
14788                 throw new Error("initializeWasm() must be awaited first!");
14789         }
14790         const nativeResponseValue = wasm.TS_Event_write(obj);
14791         return nativeResponseValue;
14792 }
14793         // struct LDKCResult_COption_EventZDecodeErrorZ Event_read(struct LDKu8slice ser);
14794 /* @internal */
14795 export function Event_read(ser: number): number {
14796         if(!isWasmInitialized) {
14797                 throw new Error("initializeWasm() must be awaited first!");
14798         }
14799         const nativeResponseValue = wasm.TS_Event_read(ser);
14800         return nativeResponseValue;
14801 }
14802         // void MessageSendEvent_free(struct LDKMessageSendEvent this_ptr);
14803 /* @internal */
14804 export function MessageSendEvent_free(this_ptr: number): void {
14805         if(!isWasmInitialized) {
14806                 throw new Error("initializeWasm() must be awaited first!");
14807         }
14808         const nativeResponseValue = wasm.TS_MessageSendEvent_free(this_ptr);
14809         // debug statements here
14810 }
14811         // uintptr_t MessageSendEvent_clone_ptr(LDKMessageSendEvent *NONNULL_PTR arg);
14812 /* @internal */
14813 export function MessageSendEvent_clone_ptr(arg: number): number {
14814         if(!isWasmInitialized) {
14815                 throw new Error("initializeWasm() must be awaited first!");
14816         }
14817         const nativeResponseValue = wasm.TS_MessageSendEvent_clone_ptr(arg);
14818         return nativeResponseValue;
14819 }
14820         // struct LDKMessageSendEvent MessageSendEvent_clone(const struct LDKMessageSendEvent *NONNULL_PTR orig);
14821 /* @internal */
14822 export function MessageSendEvent_clone(orig: number): number {
14823         if(!isWasmInitialized) {
14824                 throw new Error("initializeWasm() must be awaited first!");
14825         }
14826         const nativeResponseValue = wasm.TS_MessageSendEvent_clone(orig);
14827         return nativeResponseValue;
14828 }
14829         // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel(struct LDKPublicKey node_id, struct LDKAcceptChannel msg);
14830 /* @internal */
14831 export function MessageSendEvent_send_accept_channel(node_id: number, msg: number): number {
14832         if(!isWasmInitialized) {
14833                 throw new Error("initializeWasm() must be awaited first!");
14834         }
14835         const nativeResponseValue = wasm.TS_MessageSendEvent_send_accept_channel(node_id, msg);
14836         return nativeResponseValue;
14837 }
14838         // struct LDKMessageSendEvent MessageSendEvent_send_open_channel(struct LDKPublicKey node_id, struct LDKOpenChannel msg);
14839 /* @internal */
14840 export function MessageSendEvent_send_open_channel(node_id: number, msg: number): number {
14841         if(!isWasmInitialized) {
14842                 throw new Error("initializeWasm() must be awaited first!");
14843         }
14844         const nativeResponseValue = wasm.TS_MessageSendEvent_send_open_channel(node_id, msg);
14845         return nativeResponseValue;
14846 }
14847         // struct LDKMessageSendEvent MessageSendEvent_send_funding_created(struct LDKPublicKey node_id, struct LDKFundingCreated msg);
14848 /* @internal */
14849 export function MessageSendEvent_send_funding_created(node_id: number, msg: number): number {
14850         if(!isWasmInitialized) {
14851                 throw new Error("initializeWasm() must be awaited first!");
14852         }
14853         const nativeResponseValue = wasm.TS_MessageSendEvent_send_funding_created(node_id, msg);
14854         return nativeResponseValue;
14855 }
14856         // struct LDKMessageSendEvent MessageSendEvent_send_funding_signed(struct LDKPublicKey node_id, struct LDKFundingSigned msg);
14857 /* @internal */
14858 export function MessageSendEvent_send_funding_signed(node_id: number, msg: number): number {
14859         if(!isWasmInitialized) {
14860                 throw new Error("initializeWasm() must be awaited first!");
14861         }
14862         const nativeResponseValue = wasm.TS_MessageSendEvent_send_funding_signed(node_id, msg);
14863         return nativeResponseValue;
14864 }
14865         // struct LDKMessageSendEvent MessageSendEvent_send_funding_locked(struct LDKPublicKey node_id, struct LDKFundingLocked msg);
14866 /* @internal */
14867 export function MessageSendEvent_send_funding_locked(node_id: number, msg: number): number {
14868         if(!isWasmInitialized) {
14869                 throw new Error("initializeWasm() must be awaited first!");
14870         }
14871         const nativeResponseValue = wasm.TS_MessageSendEvent_send_funding_locked(node_id, msg);
14872         return nativeResponseValue;
14873 }
14874         // struct LDKMessageSendEvent MessageSendEvent_send_announcement_signatures(struct LDKPublicKey node_id, struct LDKAnnouncementSignatures msg);
14875 /* @internal */
14876 export function MessageSendEvent_send_announcement_signatures(node_id: number, msg: number): number {
14877         if(!isWasmInitialized) {
14878                 throw new Error("initializeWasm() must be awaited first!");
14879         }
14880         const nativeResponseValue = wasm.TS_MessageSendEvent_send_announcement_signatures(node_id, msg);
14881         return nativeResponseValue;
14882 }
14883         // struct LDKMessageSendEvent MessageSendEvent_update_htlcs(struct LDKPublicKey node_id, struct LDKCommitmentUpdate updates);
14884 /* @internal */
14885 export function MessageSendEvent_update_htlcs(node_id: number, updates: number): number {
14886         if(!isWasmInitialized) {
14887                 throw new Error("initializeWasm() must be awaited first!");
14888         }
14889         const nativeResponseValue = wasm.TS_MessageSendEvent_update_htlcs(node_id, updates);
14890         return nativeResponseValue;
14891 }
14892         // struct LDKMessageSendEvent MessageSendEvent_send_revoke_and_ack(struct LDKPublicKey node_id, struct LDKRevokeAndACK msg);
14893 /* @internal */
14894 export function MessageSendEvent_send_revoke_and_ack(node_id: number, msg: number): number {
14895         if(!isWasmInitialized) {
14896                 throw new Error("initializeWasm() must be awaited first!");
14897         }
14898         const nativeResponseValue = wasm.TS_MessageSendEvent_send_revoke_and_ack(node_id, msg);
14899         return nativeResponseValue;
14900 }
14901         // struct LDKMessageSendEvent MessageSendEvent_send_closing_signed(struct LDKPublicKey node_id, struct LDKClosingSigned msg);
14902 /* @internal */
14903 export function MessageSendEvent_send_closing_signed(node_id: number, msg: number): number {
14904         if(!isWasmInitialized) {
14905                 throw new Error("initializeWasm() must be awaited first!");
14906         }
14907         const nativeResponseValue = wasm.TS_MessageSendEvent_send_closing_signed(node_id, msg);
14908         return nativeResponseValue;
14909 }
14910         // struct LDKMessageSendEvent MessageSendEvent_send_shutdown(struct LDKPublicKey node_id, struct LDKShutdown msg);
14911 /* @internal */
14912 export function MessageSendEvent_send_shutdown(node_id: number, msg: number): number {
14913         if(!isWasmInitialized) {
14914                 throw new Error("initializeWasm() must be awaited first!");
14915         }
14916         const nativeResponseValue = wasm.TS_MessageSendEvent_send_shutdown(node_id, msg);
14917         return nativeResponseValue;
14918 }
14919         // struct LDKMessageSendEvent MessageSendEvent_send_channel_reestablish(struct LDKPublicKey node_id, struct LDKChannelReestablish msg);
14920 /* @internal */
14921 export function MessageSendEvent_send_channel_reestablish(node_id: number, msg: number): number {
14922         if(!isWasmInitialized) {
14923                 throw new Error("initializeWasm() must be awaited first!");
14924         }
14925         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_reestablish(node_id, msg);
14926         return nativeResponseValue;
14927 }
14928         // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_announcement(struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
14929 /* @internal */
14930 export function MessageSendEvent_broadcast_channel_announcement(msg: number, update_msg: number): number {
14931         if(!isWasmInitialized) {
14932                 throw new Error("initializeWasm() must be awaited first!");
14933         }
14934         const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_channel_announcement(msg, update_msg);
14935         return nativeResponseValue;
14936 }
14937         // struct LDKMessageSendEvent MessageSendEvent_broadcast_node_announcement(struct LDKNodeAnnouncement msg);
14938 /* @internal */
14939 export function MessageSendEvent_broadcast_node_announcement(msg: number): number {
14940         if(!isWasmInitialized) {
14941                 throw new Error("initializeWasm() must be awaited first!");
14942         }
14943         const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_node_announcement(msg);
14944         return nativeResponseValue;
14945 }
14946         // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_update(struct LDKChannelUpdate msg);
14947 /* @internal */
14948 export function MessageSendEvent_broadcast_channel_update(msg: number): number {
14949         if(!isWasmInitialized) {
14950                 throw new Error("initializeWasm() must be awaited first!");
14951         }
14952         const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_channel_update(msg);
14953         return nativeResponseValue;
14954 }
14955         // struct LDKMessageSendEvent MessageSendEvent_send_channel_update(struct LDKPublicKey node_id, struct LDKChannelUpdate msg);
14956 /* @internal */
14957 export function MessageSendEvent_send_channel_update(node_id: number, msg: number): number {
14958         if(!isWasmInitialized) {
14959                 throw new Error("initializeWasm() must be awaited first!");
14960         }
14961         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_update(node_id, msg);
14962         return nativeResponseValue;
14963 }
14964         // struct LDKMessageSendEvent MessageSendEvent_handle_error(struct LDKPublicKey node_id, struct LDKErrorAction action);
14965 /* @internal */
14966 export function MessageSendEvent_handle_error(node_id: number, action: number): number {
14967         if(!isWasmInitialized) {
14968                 throw new Error("initializeWasm() must be awaited first!");
14969         }
14970         const nativeResponseValue = wasm.TS_MessageSendEvent_handle_error(node_id, action);
14971         return nativeResponseValue;
14972 }
14973         // struct LDKMessageSendEvent MessageSendEvent_send_channel_range_query(struct LDKPublicKey node_id, struct LDKQueryChannelRange msg);
14974 /* @internal */
14975 export function MessageSendEvent_send_channel_range_query(node_id: number, msg: number): number {
14976         if(!isWasmInitialized) {
14977                 throw new Error("initializeWasm() must be awaited first!");
14978         }
14979         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_range_query(node_id, msg);
14980         return nativeResponseValue;
14981 }
14982         // struct LDKMessageSendEvent MessageSendEvent_send_short_ids_query(struct LDKPublicKey node_id, struct LDKQueryShortChannelIds msg);
14983 /* @internal */
14984 export function MessageSendEvent_send_short_ids_query(node_id: number, msg: number): number {
14985         if(!isWasmInitialized) {
14986                 throw new Error("initializeWasm() must be awaited first!");
14987         }
14988         const nativeResponseValue = wasm.TS_MessageSendEvent_send_short_ids_query(node_id, msg);
14989         return nativeResponseValue;
14990 }
14991         // struct LDKMessageSendEvent MessageSendEvent_send_reply_channel_range(struct LDKPublicKey node_id, struct LDKReplyChannelRange msg);
14992 /* @internal */
14993 export function MessageSendEvent_send_reply_channel_range(node_id: number, msg: number): number {
14994         if(!isWasmInitialized) {
14995                 throw new Error("initializeWasm() must be awaited first!");
14996         }
14997         const nativeResponseValue = wasm.TS_MessageSendEvent_send_reply_channel_range(node_id, msg);
14998         return nativeResponseValue;
14999 }
15000         // void MessageSendEventsProvider_free(struct LDKMessageSendEventsProvider this_ptr);
15001 /* @internal */
15002 export function MessageSendEventsProvider_free(this_ptr: number): void {
15003         if(!isWasmInitialized) {
15004                 throw new Error("initializeWasm() must be awaited first!");
15005         }
15006         const nativeResponseValue = wasm.TS_MessageSendEventsProvider_free(this_ptr);
15007         // debug statements here
15008 }
15009         // void EventsProvider_free(struct LDKEventsProvider this_ptr);
15010 /* @internal */
15011 export function EventsProvider_free(this_ptr: number): void {
15012         if(!isWasmInitialized) {
15013                 throw new Error("initializeWasm() must be awaited first!");
15014         }
15015         const nativeResponseValue = wasm.TS_EventsProvider_free(this_ptr);
15016         // debug statements here
15017 }
15018         // void EventHandler_free(struct LDKEventHandler this_ptr);
15019 /* @internal */
15020 export function EventHandler_free(this_ptr: number): void {
15021         if(!isWasmInitialized) {
15022                 throw new Error("initializeWasm() must be awaited first!");
15023         }
15024         const nativeResponseValue = wasm.TS_EventHandler_free(this_ptr);
15025         // debug statements here
15026 }
15027         // void APIError_free(struct LDKAPIError this_ptr);
15028 /* @internal */
15029 export function APIError_free(this_ptr: number): void {
15030         if(!isWasmInitialized) {
15031                 throw new Error("initializeWasm() must be awaited first!");
15032         }
15033         const nativeResponseValue = wasm.TS_APIError_free(this_ptr);
15034         // debug statements here
15035 }
15036         // uintptr_t APIError_clone_ptr(LDKAPIError *NONNULL_PTR arg);
15037 /* @internal */
15038 export function APIError_clone_ptr(arg: number): number {
15039         if(!isWasmInitialized) {
15040                 throw new Error("initializeWasm() must be awaited first!");
15041         }
15042         const nativeResponseValue = wasm.TS_APIError_clone_ptr(arg);
15043         return nativeResponseValue;
15044 }
15045         // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig);
15046 /* @internal */
15047 export function APIError_clone(orig: number): number {
15048         if(!isWasmInitialized) {
15049                 throw new Error("initializeWasm() must be awaited first!");
15050         }
15051         const nativeResponseValue = wasm.TS_APIError_clone(orig);
15052         return nativeResponseValue;
15053 }
15054         // struct LDKAPIError APIError_apimisuse_error(struct LDKStr err);
15055 /* @internal */
15056 export function APIError_apimisuse_error(err: number): number {
15057         if(!isWasmInitialized) {
15058                 throw new Error("initializeWasm() must be awaited first!");
15059         }
15060         const nativeResponseValue = wasm.TS_APIError_apimisuse_error(err);
15061         return nativeResponseValue;
15062 }
15063         // struct LDKAPIError APIError_fee_rate_too_high(struct LDKStr err, uint32_t feerate);
15064 /* @internal */
15065 export function APIError_fee_rate_too_high(err: number, feerate: number): number {
15066         if(!isWasmInitialized) {
15067                 throw new Error("initializeWasm() must be awaited first!");
15068         }
15069         const nativeResponseValue = wasm.TS_APIError_fee_rate_too_high(err, feerate);
15070         return nativeResponseValue;
15071 }
15072         // struct LDKAPIError APIError_route_error(struct LDKStr err);
15073 /* @internal */
15074 export function APIError_route_error(err: number): number {
15075         if(!isWasmInitialized) {
15076                 throw new Error("initializeWasm() must be awaited first!");
15077         }
15078         const nativeResponseValue = wasm.TS_APIError_route_error(err);
15079         return nativeResponseValue;
15080 }
15081         // struct LDKAPIError APIError_channel_unavailable(struct LDKStr err);
15082 /* @internal */
15083 export function APIError_channel_unavailable(err: number): number {
15084         if(!isWasmInitialized) {
15085                 throw new Error("initializeWasm() must be awaited first!");
15086         }
15087         const nativeResponseValue = wasm.TS_APIError_channel_unavailable(err);
15088         return nativeResponseValue;
15089 }
15090         // struct LDKAPIError APIError_monitor_update_failed(void);
15091 /* @internal */
15092 export function APIError_monitor_update_failed(): number {
15093         if(!isWasmInitialized) {
15094                 throw new Error("initializeWasm() must be awaited first!");
15095         }
15096         const nativeResponseValue = wasm.TS_APIError_monitor_update_failed();
15097         return nativeResponseValue;
15098 }
15099         // struct LDKAPIError APIError_incompatible_shutdown_script(struct LDKShutdownScript script);
15100 /* @internal */
15101 export function APIError_incompatible_shutdown_script(script: number): number {
15102         if(!isWasmInitialized) {
15103                 throw new Error("initializeWasm() must be awaited first!");
15104         }
15105         const nativeResponseValue = wasm.TS_APIError_incompatible_shutdown_script(script);
15106         return nativeResponseValue;
15107 }
15108         // struct LDKCResult_StringErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]);
15109 /* @internal */
15110 export function sign(msg: number, sk: number): number {
15111         if(!isWasmInitialized) {
15112                 throw new Error("initializeWasm() must be awaited first!");
15113         }
15114         const nativeResponseValue = wasm.TS_sign(msg, sk);
15115         return nativeResponseValue;
15116 }
15117         // struct LDKCResult_PublicKeyErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig);
15118 /* @internal */
15119 export function recover_pk(msg: number, sig: number): number {
15120         if(!isWasmInitialized) {
15121                 throw new Error("initializeWasm() must be awaited first!");
15122         }
15123         const nativeResponseValue = wasm.TS_recover_pk(msg, sig);
15124         return nativeResponseValue;
15125 }
15126         // bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk);
15127 /* @internal */
15128 export function verify(msg: number, sig: number, pk: number): boolean {
15129         if(!isWasmInitialized) {
15130                 throw new Error("initializeWasm() must be awaited first!");
15131         }
15132         const nativeResponseValue = wasm.TS_verify(msg, sig, pk);
15133         return nativeResponseValue;
15134 }
15135         // struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_u5Z data_without_signature);
15136 /* @internal */
15137 export function construct_invoice_preimage(hrp_bytes: number, data_without_signature: number): number {
15138         if(!isWasmInitialized) {
15139                 throw new Error("initializeWasm() must be awaited first!");
15140         }
15141         const nativeResponseValue = wasm.TS_construct_invoice_preimage(hrp_bytes, data_without_signature);
15142         return nativeResponseValue;
15143 }
15144         // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig);
15145 /* @internal */
15146 export function Level_clone(orig: number): Level {
15147         if(!isWasmInitialized) {
15148                 throw new Error("initializeWasm() must be awaited first!");
15149         }
15150         const nativeResponseValue = wasm.TS_Level_clone(orig);
15151         return nativeResponseValue;
15152 }
15153         // enum LDKLevel Level_gossip(void);
15154 /* @internal */
15155 export function Level_gossip(): Level {
15156         if(!isWasmInitialized) {
15157                 throw new Error("initializeWasm() must be awaited first!");
15158         }
15159         const nativeResponseValue = wasm.TS_Level_gossip();
15160         return nativeResponseValue;
15161 }
15162         // enum LDKLevel Level_trace(void);
15163 /* @internal */
15164 export function Level_trace(): Level {
15165         if(!isWasmInitialized) {
15166                 throw new Error("initializeWasm() must be awaited first!");
15167         }
15168         const nativeResponseValue = wasm.TS_Level_trace();
15169         return nativeResponseValue;
15170 }
15171         // enum LDKLevel Level_debug(void);
15172 /* @internal */
15173 export function Level_debug(): Level {
15174         if(!isWasmInitialized) {
15175                 throw new Error("initializeWasm() must be awaited first!");
15176         }
15177         const nativeResponseValue = wasm.TS_Level_debug();
15178         return nativeResponseValue;
15179 }
15180         // enum LDKLevel Level_info(void);
15181 /* @internal */
15182 export function Level_info(): Level {
15183         if(!isWasmInitialized) {
15184                 throw new Error("initializeWasm() must be awaited first!");
15185         }
15186         const nativeResponseValue = wasm.TS_Level_info();
15187         return nativeResponseValue;
15188 }
15189         // enum LDKLevel Level_warn(void);
15190 /* @internal */
15191 export function Level_warn(): Level {
15192         if(!isWasmInitialized) {
15193                 throw new Error("initializeWasm() must be awaited first!");
15194         }
15195         const nativeResponseValue = wasm.TS_Level_warn();
15196         return nativeResponseValue;
15197 }
15198         // enum LDKLevel Level_error(void);
15199 /* @internal */
15200 export function Level_error(): Level {
15201         if(!isWasmInitialized) {
15202                 throw new Error("initializeWasm() must be awaited first!");
15203         }
15204         const nativeResponseValue = wasm.TS_Level_error();
15205         return nativeResponseValue;
15206 }
15207         // bool Level_eq(const enum LDKLevel *NONNULL_PTR a, const enum LDKLevel *NONNULL_PTR b);
15208 /* @internal */
15209 export function Level_eq(a: number, b: number): boolean {
15210         if(!isWasmInitialized) {
15211                 throw new Error("initializeWasm() must be awaited first!");
15212         }
15213         const nativeResponseValue = wasm.TS_Level_eq(a, b);
15214         return nativeResponseValue;
15215 }
15216         // uint64_t Level_hash(const enum LDKLevel *NONNULL_PTR o);
15217 /* @internal */
15218 export function Level_hash(o: number): bigint {
15219         if(!isWasmInitialized) {
15220                 throw new Error("initializeWasm() must be awaited first!");
15221         }
15222         const nativeResponseValue = wasm.TS_Level_hash(o);
15223         return nativeResponseValue;
15224 }
15225         // MUST_USE_RES enum LDKLevel Level_max(void);
15226 /* @internal */
15227 export function Level_max(): Level {
15228         if(!isWasmInitialized) {
15229                 throw new Error("initializeWasm() must be awaited first!");
15230         }
15231         const nativeResponseValue = wasm.TS_Level_max();
15232         return nativeResponseValue;
15233 }
15234         // void Record_free(struct LDKRecord this_obj);
15235 /* @internal */
15236 export function Record_free(this_obj: number): void {
15237         if(!isWasmInitialized) {
15238                 throw new Error("initializeWasm() must be awaited first!");
15239         }
15240         const nativeResponseValue = wasm.TS_Record_free(this_obj);
15241         // debug statements here
15242 }
15243         // enum LDKLevel Record_get_level(const struct LDKRecord *NONNULL_PTR this_ptr);
15244 /* @internal */
15245 export function Record_get_level(this_ptr: number): Level {
15246         if(!isWasmInitialized) {
15247                 throw new Error("initializeWasm() must be awaited first!");
15248         }
15249         const nativeResponseValue = wasm.TS_Record_get_level(this_ptr);
15250         return nativeResponseValue;
15251 }
15252         // void Record_set_level(struct LDKRecord *NONNULL_PTR this_ptr, enum LDKLevel val);
15253 /* @internal */
15254 export function Record_set_level(this_ptr: number, val: Level): void {
15255         if(!isWasmInitialized) {
15256                 throw new Error("initializeWasm() must be awaited first!");
15257         }
15258         const nativeResponseValue = wasm.TS_Record_set_level(this_ptr, val);
15259         // debug statements here
15260 }
15261         // struct LDKStr Record_get_args(const struct LDKRecord *NONNULL_PTR this_ptr);
15262 /* @internal */
15263 export function Record_get_args(this_ptr: number): number {
15264         if(!isWasmInitialized) {
15265                 throw new Error("initializeWasm() must be awaited first!");
15266         }
15267         const nativeResponseValue = wasm.TS_Record_get_args(this_ptr);
15268         return nativeResponseValue;
15269 }
15270         // void Record_set_args(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
15271 /* @internal */
15272 export function Record_set_args(this_ptr: number, val: number): void {
15273         if(!isWasmInitialized) {
15274                 throw new Error("initializeWasm() must be awaited first!");
15275         }
15276         const nativeResponseValue = wasm.TS_Record_set_args(this_ptr, val);
15277         // debug statements here
15278 }
15279         // struct LDKStr Record_get_module_path(const struct LDKRecord *NONNULL_PTR this_ptr);
15280 /* @internal */
15281 export function Record_get_module_path(this_ptr: number): number {
15282         if(!isWasmInitialized) {
15283                 throw new Error("initializeWasm() must be awaited first!");
15284         }
15285         const nativeResponseValue = wasm.TS_Record_get_module_path(this_ptr);
15286         return nativeResponseValue;
15287 }
15288         // void Record_set_module_path(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
15289 /* @internal */
15290 export function Record_set_module_path(this_ptr: number, val: number): void {
15291         if(!isWasmInitialized) {
15292                 throw new Error("initializeWasm() must be awaited first!");
15293         }
15294         const nativeResponseValue = wasm.TS_Record_set_module_path(this_ptr, val);
15295         // debug statements here
15296 }
15297         // struct LDKStr Record_get_file(const struct LDKRecord *NONNULL_PTR this_ptr);
15298 /* @internal */
15299 export function Record_get_file(this_ptr: number): number {
15300         if(!isWasmInitialized) {
15301                 throw new Error("initializeWasm() must be awaited first!");
15302         }
15303         const nativeResponseValue = wasm.TS_Record_get_file(this_ptr);
15304         return nativeResponseValue;
15305 }
15306         // void Record_set_file(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
15307 /* @internal */
15308 export function Record_set_file(this_ptr: number, val: number): void {
15309         if(!isWasmInitialized) {
15310                 throw new Error("initializeWasm() must be awaited first!");
15311         }
15312         const nativeResponseValue = wasm.TS_Record_set_file(this_ptr, val);
15313         // debug statements here
15314 }
15315         // uint32_t Record_get_line(const struct LDKRecord *NONNULL_PTR this_ptr);
15316 /* @internal */
15317 export function Record_get_line(this_ptr: number): number {
15318         if(!isWasmInitialized) {
15319                 throw new Error("initializeWasm() must be awaited first!");
15320         }
15321         const nativeResponseValue = wasm.TS_Record_get_line(this_ptr);
15322         return nativeResponseValue;
15323 }
15324         // void Record_set_line(struct LDKRecord *NONNULL_PTR this_ptr, uint32_t val);
15325 /* @internal */
15326 export function Record_set_line(this_ptr: number, val: number): void {
15327         if(!isWasmInitialized) {
15328                 throw new Error("initializeWasm() must be awaited first!");
15329         }
15330         const nativeResponseValue = wasm.TS_Record_set_line(this_ptr, val);
15331         // debug statements here
15332 }
15333         // uintptr_t Record_clone_ptr(LDKRecord *NONNULL_PTR arg);
15334 /* @internal */
15335 export function Record_clone_ptr(arg: number): number {
15336         if(!isWasmInitialized) {
15337                 throw new Error("initializeWasm() must be awaited first!");
15338         }
15339         const nativeResponseValue = wasm.TS_Record_clone_ptr(arg);
15340         return nativeResponseValue;
15341 }
15342         // struct LDKRecord Record_clone(const struct LDKRecord *NONNULL_PTR orig);
15343 /* @internal */
15344 export function Record_clone(orig: number): number {
15345         if(!isWasmInitialized) {
15346                 throw new Error("initializeWasm() must be awaited first!");
15347         }
15348         const nativeResponseValue = wasm.TS_Record_clone(orig);
15349         return nativeResponseValue;
15350 }
15351         // void Logger_free(struct LDKLogger this_ptr);
15352 /* @internal */
15353 export function Logger_free(this_ptr: number): void {
15354         if(!isWasmInitialized) {
15355                 throw new Error("initializeWasm() must be awaited first!");
15356         }
15357         const nativeResponseValue = wasm.TS_Logger_free(this_ptr);
15358         // debug statements here
15359 }
15360         // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj);
15361 /* @internal */
15362 export function ChannelHandshakeConfig_free(this_obj: number): void {
15363         if(!isWasmInitialized) {
15364                 throw new Error("initializeWasm() must be awaited first!");
15365         }
15366         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_free(this_obj);
15367         // debug statements here
15368 }
15369         // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
15370 /* @internal */
15371 export function ChannelHandshakeConfig_get_minimum_depth(this_ptr: number): number {
15372         if(!isWasmInitialized) {
15373                 throw new Error("initializeWasm() must be awaited first!");
15374         }
15375         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_minimum_depth(this_ptr);
15376         return nativeResponseValue;
15377 }
15378         // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
15379 /* @internal */
15380 export function ChannelHandshakeConfig_set_minimum_depth(this_ptr: number, val: number): void {
15381         if(!isWasmInitialized) {
15382                 throw new Error("initializeWasm() must be awaited first!");
15383         }
15384         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_minimum_depth(this_ptr, val);
15385         // debug statements here
15386 }
15387         // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
15388 /* @internal */
15389 export function ChannelHandshakeConfig_get_our_to_self_delay(this_ptr: number): number {
15390         if(!isWasmInitialized) {
15391                 throw new Error("initializeWasm() must be awaited first!");
15392         }
15393         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_to_self_delay(this_ptr);
15394         return nativeResponseValue;
15395 }
15396         // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
15397 /* @internal */
15398 export function ChannelHandshakeConfig_set_our_to_self_delay(this_ptr: number, val: number): void {
15399         if(!isWasmInitialized) {
15400                 throw new Error("initializeWasm() must be awaited first!");
15401         }
15402         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_to_self_delay(this_ptr, val);
15403         // debug statements here
15404 }
15405         // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
15406 /* @internal */
15407 export function ChannelHandshakeConfig_get_our_htlc_minimum_msat(this_ptr: number): bigint {
15408         if(!isWasmInitialized) {
15409                 throw new Error("initializeWasm() must be awaited first!");
15410         }
15411         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_htlc_minimum_msat(this_ptr);
15412         return nativeResponseValue;
15413 }
15414         // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val);
15415 /* @internal */
15416 export function ChannelHandshakeConfig_set_our_htlc_minimum_msat(this_ptr: number, val: bigint): void {
15417         if(!isWasmInitialized) {
15418                 throw new Error("initializeWasm() must be awaited first!");
15419         }
15420         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_htlc_minimum_msat(this_ptr, val);
15421         // debug statements here
15422 }
15423         // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_new(uint32_t minimum_depth_arg, uint16_t our_to_self_delay_arg, uint64_t our_htlc_minimum_msat_arg);
15424 /* @internal */
15425 export function ChannelHandshakeConfig_new(minimum_depth_arg: number, our_to_self_delay_arg: number, our_htlc_minimum_msat_arg: bigint): number {
15426         if(!isWasmInitialized) {
15427                 throw new Error("initializeWasm() must be awaited first!");
15428         }
15429         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_new(minimum_depth_arg, our_to_self_delay_arg, our_htlc_minimum_msat_arg);
15430         return nativeResponseValue;
15431 }
15432         // uintptr_t ChannelHandshakeConfig_clone_ptr(LDKChannelHandshakeConfig *NONNULL_PTR arg);
15433 /* @internal */
15434 export function ChannelHandshakeConfig_clone_ptr(arg: number): number {
15435         if(!isWasmInitialized) {
15436                 throw new Error("initializeWasm() must be awaited first!");
15437         }
15438         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_clone_ptr(arg);
15439         return nativeResponseValue;
15440 }
15441         // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig);
15442 /* @internal */
15443 export function ChannelHandshakeConfig_clone(orig: number): number {
15444         if(!isWasmInitialized) {
15445                 throw new Error("initializeWasm() must be awaited first!");
15446         }
15447         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_clone(orig);
15448         return nativeResponseValue;
15449 }
15450         // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void);
15451 /* @internal */
15452 export function ChannelHandshakeConfig_default(): number {
15453         if(!isWasmInitialized) {
15454                 throw new Error("initializeWasm() must be awaited first!");
15455         }
15456         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_default();
15457         return nativeResponseValue;
15458 }
15459         // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj);
15460 /* @internal */
15461 export function ChannelHandshakeLimits_free(this_obj: number): void {
15462         if(!isWasmInitialized) {
15463                 throw new Error("initializeWasm() must be awaited first!");
15464         }
15465         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_free(this_obj);
15466         // debug statements here
15467 }
15468         // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
15469 /* @internal */
15470 export function ChannelHandshakeLimits_get_min_funding_satoshis(this_ptr: number): bigint {
15471         if(!isWasmInitialized) {
15472                 throw new Error("initializeWasm() must be awaited first!");
15473         }
15474         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_funding_satoshis(this_ptr);
15475         return nativeResponseValue;
15476 }
15477         // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
15478 /* @internal */
15479 export function ChannelHandshakeLimits_set_min_funding_satoshis(this_ptr: number, val: bigint): void {
15480         if(!isWasmInitialized) {
15481                 throw new Error("initializeWasm() must be awaited first!");
15482         }
15483         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_funding_satoshis(this_ptr, val);
15484         // debug statements here
15485 }
15486         // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
15487 /* @internal */
15488 export function ChannelHandshakeLimits_get_max_htlc_minimum_msat(this_ptr: number): bigint {
15489         if(!isWasmInitialized) {
15490                 throw new Error("initializeWasm() must be awaited first!");
15491         }
15492         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_htlc_minimum_msat(this_ptr);
15493         return nativeResponseValue;
15494 }
15495         // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
15496 /* @internal */
15497 export function ChannelHandshakeLimits_set_max_htlc_minimum_msat(this_ptr: number, val: bigint): void {
15498         if(!isWasmInitialized) {
15499                 throw new Error("initializeWasm() must be awaited first!");
15500         }
15501         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_htlc_minimum_msat(this_ptr, val);
15502         // debug statements here
15503 }
15504         // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
15505 /* @internal */
15506 export function ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this_ptr: number): bigint {
15507         if(!isWasmInitialized) {
15508                 throw new Error("initializeWasm() must be awaited first!");
15509         }
15510         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this_ptr);
15511         return nativeResponseValue;
15512 }
15513         // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
15514 /* @internal */
15515 export function ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this_ptr: number, val: bigint): void {
15516         if(!isWasmInitialized) {
15517                 throw new Error("initializeWasm() must be awaited first!");
15518         }
15519         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this_ptr, val);
15520         // debug statements here
15521 }
15522         // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
15523 /* @internal */
15524 export function ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this_ptr: number): bigint {
15525         if(!isWasmInitialized) {
15526                 throw new Error("initializeWasm() must be awaited first!");
15527         }
15528         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this_ptr);
15529         return nativeResponseValue;
15530 }
15531         // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
15532 /* @internal */
15533 export function ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this_ptr: number, val: bigint): void {
15534         if(!isWasmInitialized) {
15535                 throw new Error("initializeWasm() must be awaited first!");
15536         }
15537         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this_ptr, val);
15538         // debug statements here
15539 }
15540         // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
15541 /* @internal */
15542 export function ChannelHandshakeLimits_get_min_max_accepted_htlcs(this_ptr: number): number {
15543         if(!isWasmInitialized) {
15544                 throw new Error("initializeWasm() must be awaited first!");
15545         }
15546         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_max_accepted_htlcs(this_ptr);
15547         return nativeResponseValue;
15548 }
15549         // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
15550 /* @internal */
15551 export function ChannelHandshakeLimits_set_min_max_accepted_htlcs(this_ptr: number, val: number): void {
15552         if(!isWasmInitialized) {
15553                 throw new Error("initializeWasm() must be awaited first!");
15554         }
15555         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_max_accepted_htlcs(this_ptr, val);
15556         // debug statements here
15557 }
15558         // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
15559 /* @internal */
15560 export function ChannelHandshakeLimits_get_max_minimum_depth(this_ptr: number): number {
15561         if(!isWasmInitialized) {
15562                 throw new Error("initializeWasm() must be awaited first!");
15563         }
15564         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_minimum_depth(this_ptr);
15565         return nativeResponseValue;
15566 }
15567         // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val);
15568 /* @internal */
15569 export function ChannelHandshakeLimits_set_max_minimum_depth(this_ptr: number, val: number): void {
15570         if(!isWasmInitialized) {
15571                 throw new Error("initializeWasm() must be awaited first!");
15572         }
15573         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_minimum_depth(this_ptr, val);
15574         // debug statements here
15575 }
15576         // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
15577 /* @internal */
15578 export function ChannelHandshakeLimits_get_force_announced_channel_preference(this_ptr: number): boolean {
15579         if(!isWasmInitialized) {
15580                 throw new Error("initializeWasm() must be awaited first!");
15581         }
15582         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_force_announced_channel_preference(this_ptr);
15583         return nativeResponseValue;
15584 }
15585         // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
15586 /* @internal */
15587 export function ChannelHandshakeLimits_set_force_announced_channel_preference(this_ptr: number, val: boolean): void {
15588         if(!isWasmInitialized) {
15589                 throw new Error("initializeWasm() must be awaited first!");
15590         }
15591         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_force_announced_channel_preference(this_ptr, val);
15592         // debug statements here
15593 }
15594         // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
15595 /* @internal */
15596 export function ChannelHandshakeLimits_get_their_to_self_delay(this_ptr: number): number {
15597         if(!isWasmInitialized) {
15598                 throw new Error("initializeWasm() must be awaited first!");
15599         }
15600         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_their_to_self_delay(this_ptr);
15601         return nativeResponseValue;
15602 }
15603         // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
15604 /* @internal */
15605 export function ChannelHandshakeLimits_set_their_to_self_delay(this_ptr: number, val: number): void {
15606         if(!isWasmInitialized) {
15607                 throw new Error("initializeWasm() must be awaited first!");
15608         }
15609         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_their_to_self_delay(this_ptr, val);
15610         // debug statements here
15611 }
15612         // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_new(uint64_t min_funding_satoshis_arg, uint64_t max_htlc_minimum_msat_arg, uint64_t min_max_htlc_value_in_flight_msat_arg, uint64_t max_channel_reserve_satoshis_arg, uint16_t min_max_accepted_htlcs_arg, uint32_t max_minimum_depth_arg, bool force_announced_channel_preference_arg, uint16_t their_to_self_delay_arg);
15613 /* @internal */
15614 export function ChannelHandshakeLimits_new(min_funding_satoshis_arg: bigint, max_htlc_minimum_msat_arg: bigint, min_max_htlc_value_in_flight_msat_arg: bigint, max_channel_reserve_satoshis_arg: bigint, min_max_accepted_htlcs_arg: number, max_minimum_depth_arg: number, force_announced_channel_preference_arg: boolean, their_to_self_delay_arg: number): number {
15615         if(!isWasmInitialized) {
15616                 throw new Error("initializeWasm() must be awaited first!");
15617         }
15618         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_new(min_funding_satoshis_arg, max_htlc_minimum_msat_arg, min_max_htlc_value_in_flight_msat_arg, max_channel_reserve_satoshis_arg, min_max_accepted_htlcs_arg, max_minimum_depth_arg, force_announced_channel_preference_arg, their_to_self_delay_arg);
15619         return nativeResponseValue;
15620 }
15621         // uintptr_t ChannelHandshakeLimits_clone_ptr(LDKChannelHandshakeLimits *NONNULL_PTR arg);
15622 /* @internal */
15623 export function ChannelHandshakeLimits_clone_ptr(arg: number): number {
15624         if(!isWasmInitialized) {
15625                 throw new Error("initializeWasm() must be awaited first!");
15626         }
15627         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_clone_ptr(arg);
15628         return nativeResponseValue;
15629 }
15630         // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig);
15631 /* @internal */
15632 export function ChannelHandshakeLimits_clone(orig: number): number {
15633         if(!isWasmInitialized) {
15634                 throw new Error("initializeWasm() must be awaited first!");
15635         }
15636         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_clone(orig);
15637         return nativeResponseValue;
15638 }
15639         // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void);
15640 /* @internal */
15641 export function ChannelHandshakeLimits_default(): number {
15642         if(!isWasmInitialized) {
15643                 throw new Error("initializeWasm() must be awaited first!");
15644         }
15645         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_default();
15646         return nativeResponseValue;
15647 }
15648         // void ChannelConfig_free(struct LDKChannelConfig this_obj);
15649 /* @internal */
15650 export function ChannelConfig_free(this_obj: number): void {
15651         if(!isWasmInitialized) {
15652                 throw new Error("initializeWasm() must be awaited first!");
15653         }
15654         const nativeResponseValue = wasm.TS_ChannelConfig_free(this_obj);
15655         // debug statements here
15656 }
15657         // uint32_t ChannelConfig_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
15658 /* @internal */
15659 export function ChannelConfig_get_forwarding_fee_proportional_millionths(this_ptr: number): number {
15660         if(!isWasmInitialized) {
15661                 throw new Error("initializeWasm() must be awaited first!");
15662         }
15663         const nativeResponseValue = wasm.TS_ChannelConfig_get_forwarding_fee_proportional_millionths(this_ptr);
15664         return nativeResponseValue;
15665 }
15666         // void ChannelConfig_set_forwarding_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
15667 /* @internal */
15668 export function ChannelConfig_set_forwarding_fee_proportional_millionths(this_ptr: number, val: number): void {
15669         if(!isWasmInitialized) {
15670                 throw new Error("initializeWasm() must be awaited first!");
15671         }
15672         const nativeResponseValue = wasm.TS_ChannelConfig_set_forwarding_fee_proportional_millionths(this_ptr, val);
15673         // debug statements here
15674 }
15675         // uint32_t ChannelConfig_get_forwarding_fee_base_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
15676 /* @internal */
15677 export function ChannelConfig_get_forwarding_fee_base_msat(this_ptr: number): number {
15678         if(!isWasmInitialized) {
15679                 throw new Error("initializeWasm() must be awaited first!");
15680         }
15681         const nativeResponseValue = wasm.TS_ChannelConfig_get_forwarding_fee_base_msat(this_ptr);
15682         return nativeResponseValue;
15683 }
15684         // void ChannelConfig_set_forwarding_fee_base_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
15685 /* @internal */
15686 export function ChannelConfig_set_forwarding_fee_base_msat(this_ptr: number, val: number): void {
15687         if(!isWasmInitialized) {
15688                 throw new Error("initializeWasm() must be awaited first!");
15689         }
15690         const nativeResponseValue = wasm.TS_ChannelConfig_set_forwarding_fee_base_msat(this_ptr, val);
15691         // debug statements here
15692 }
15693         // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
15694 /* @internal */
15695 export function ChannelConfig_get_cltv_expiry_delta(this_ptr: number): number {
15696         if(!isWasmInitialized) {
15697                 throw new Error("initializeWasm() must be awaited first!");
15698         }
15699         const nativeResponseValue = wasm.TS_ChannelConfig_get_cltv_expiry_delta(this_ptr);
15700         return nativeResponseValue;
15701 }
15702         // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val);
15703 /* @internal */
15704 export function ChannelConfig_set_cltv_expiry_delta(this_ptr: number, val: number): void {
15705         if(!isWasmInitialized) {
15706                 throw new Error("initializeWasm() must be awaited first!");
15707         }
15708         const nativeResponseValue = wasm.TS_ChannelConfig_set_cltv_expiry_delta(this_ptr, val);
15709         // debug statements here
15710 }
15711         // bool ChannelConfig_get_announced_channel(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
15712 /* @internal */
15713 export function ChannelConfig_get_announced_channel(this_ptr: number): boolean {
15714         if(!isWasmInitialized) {
15715                 throw new Error("initializeWasm() must be awaited first!");
15716         }
15717         const nativeResponseValue = wasm.TS_ChannelConfig_get_announced_channel(this_ptr);
15718         return nativeResponseValue;
15719 }
15720         // void ChannelConfig_set_announced_channel(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val);
15721 /* @internal */
15722 export function ChannelConfig_set_announced_channel(this_ptr: number, val: boolean): void {
15723         if(!isWasmInitialized) {
15724                 throw new Error("initializeWasm() must be awaited first!");
15725         }
15726         const nativeResponseValue = wasm.TS_ChannelConfig_set_announced_channel(this_ptr, val);
15727         // debug statements here
15728 }
15729         // bool ChannelConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
15730 /* @internal */
15731 export function ChannelConfig_get_commit_upfront_shutdown_pubkey(this_ptr: number): boolean {
15732         if(!isWasmInitialized) {
15733                 throw new Error("initializeWasm() must be awaited first!");
15734         }
15735         const nativeResponseValue = wasm.TS_ChannelConfig_get_commit_upfront_shutdown_pubkey(this_ptr);
15736         return nativeResponseValue;
15737 }
15738         // void ChannelConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val);
15739 /* @internal */
15740 export function ChannelConfig_set_commit_upfront_shutdown_pubkey(this_ptr: number, val: boolean): void {
15741         if(!isWasmInitialized) {
15742                 throw new Error("initializeWasm() must be awaited first!");
15743         }
15744         const nativeResponseValue = wasm.TS_ChannelConfig_set_commit_upfront_shutdown_pubkey(this_ptr, val);
15745         // debug statements here
15746 }
15747         // uint64_t ChannelConfig_get_max_dust_htlc_exposure_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
15748 /* @internal */
15749 export function ChannelConfig_get_max_dust_htlc_exposure_msat(this_ptr: number): bigint {
15750         if(!isWasmInitialized) {
15751                 throw new Error("initializeWasm() must be awaited first!");
15752         }
15753         const nativeResponseValue = wasm.TS_ChannelConfig_get_max_dust_htlc_exposure_msat(this_ptr);
15754         return nativeResponseValue;
15755 }
15756         // void ChannelConfig_set_max_dust_htlc_exposure_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
15757 /* @internal */
15758 export function ChannelConfig_set_max_dust_htlc_exposure_msat(this_ptr: number, val: bigint): void {
15759         if(!isWasmInitialized) {
15760                 throw new Error("initializeWasm() must be awaited first!");
15761         }
15762         const nativeResponseValue = wasm.TS_ChannelConfig_set_max_dust_htlc_exposure_msat(this_ptr, val);
15763         // debug statements here
15764 }
15765         // uint64_t ChannelConfig_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
15766 /* @internal */
15767 export function ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this_ptr: number): bigint {
15768         if(!isWasmInitialized) {
15769                 throw new Error("initializeWasm() must be awaited first!");
15770         }
15771         const nativeResponseValue = wasm.TS_ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this_ptr);
15772         return nativeResponseValue;
15773 }
15774         // void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
15775 /* @internal */
15776 export function ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this_ptr: number, val: bigint): void {
15777         if(!isWasmInitialized) {
15778                 throw new Error("initializeWasm() must be awaited first!");
15779         }
15780         const nativeResponseValue = wasm.TS_ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this_ptr, val);
15781         // debug statements here
15782 }
15783         // MUST_USE_RES struct LDKChannelConfig ChannelConfig_new(uint32_t forwarding_fee_proportional_millionths_arg, uint32_t forwarding_fee_base_msat_arg, uint16_t cltv_expiry_delta_arg, bool announced_channel_arg, bool commit_upfront_shutdown_pubkey_arg, uint64_t max_dust_htlc_exposure_msat_arg, uint64_t force_close_avoidance_max_fee_satoshis_arg);
15784 /* @internal */
15785 export function ChannelConfig_new(forwarding_fee_proportional_millionths_arg: number, forwarding_fee_base_msat_arg: number, cltv_expiry_delta_arg: number, announced_channel_arg: boolean, commit_upfront_shutdown_pubkey_arg: boolean, max_dust_htlc_exposure_msat_arg: bigint, force_close_avoidance_max_fee_satoshis_arg: bigint): number {
15786         if(!isWasmInitialized) {
15787                 throw new Error("initializeWasm() must be awaited first!");
15788         }
15789         const nativeResponseValue = wasm.TS_ChannelConfig_new(forwarding_fee_proportional_millionths_arg, forwarding_fee_base_msat_arg, cltv_expiry_delta_arg, announced_channel_arg, commit_upfront_shutdown_pubkey_arg, max_dust_htlc_exposure_msat_arg, force_close_avoidance_max_fee_satoshis_arg);
15790         return nativeResponseValue;
15791 }
15792         // uintptr_t ChannelConfig_clone_ptr(LDKChannelConfig *NONNULL_PTR arg);
15793 /* @internal */
15794 export function ChannelConfig_clone_ptr(arg: number): number {
15795         if(!isWasmInitialized) {
15796                 throw new Error("initializeWasm() must be awaited first!");
15797         }
15798         const nativeResponseValue = wasm.TS_ChannelConfig_clone_ptr(arg);
15799         return nativeResponseValue;
15800 }
15801         // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig);
15802 /* @internal */
15803 export function ChannelConfig_clone(orig: number): number {
15804         if(!isWasmInitialized) {
15805                 throw new Error("initializeWasm() must be awaited first!");
15806         }
15807         const nativeResponseValue = wasm.TS_ChannelConfig_clone(orig);
15808         return nativeResponseValue;
15809 }
15810         // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void);
15811 /* @internal */
15812 export function ChannelConfig_default(): number {
15813         if(!isWasmInitialized) {
15814                 throw new Error("initializeWasm() must be awaited first!");
15815         }
15816         const nativeResponseValue = wasm.TS_ChannelConfig_default();
15817         return nativeResponseValue;
15818 }
15819         // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj);
15820 /* @internal */
15821 export function ChannelConfig_write(obj: number): number {
15822         if(!isWasmInitialized) {
15823                 throw new Error("initializeWasm() must be awaited first!");
15824         }
15825         const nativeResponseValue = wasm.TS_ChannelConfig_write(obj);
15826         return nativeResponseValue;
15827 }
15828         // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser);
15829 /* @internal */
15830 export function ChannelConfig_read(ser: number): number {
15831         if(!isWasmInitialized) {
15832                 throw new Error("initializeWasm() must be awaited first!");
15833         }
15834         const nativeResponseValue = wasm.TS_ChannelConfig_read(ser);
15835         return nativeResponseValue;
15836 }
15837         // void UserConfig_free(struct LDKUserConfig this_obj);
15838 /* @internal */
15839 export function UserConfig_free(this_obj: number): void {
15840         if(!isWasmInitialized) {
15841                 throw new Error("initializeWasm() must be awaited first!");
15842         }
15843         const nativeResponseValue = wasm.TS_UserConfig_free(this_obj);
15844         // debug statements here
15845 }
15846         // struct LDKChannelHandshakeConfig UserConfig_get_own_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
15847 /* @internal */
15848 export function UserConfig_get_own_channel_config(this_ptr: number): number {
15849         if(!isWasmInitialized) {
15850                 throw new Error("initializeWasm() must be awaited first!");
15851         }
15852         const nativeResponseValue = wasm.TS_UserConfig_get_own_channel_config(this_ptr);
15853         return nativeResponseValue;
15854 }
15855         // void UserConfig_set_own_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val);
15856 /* @internal */
15857 export function UserConfig_set_own_channel_config(this_ptr: number, val: number): void {
15858         if(!isWasmInitialized) {
15859                 throw new Error("initializeWasm() must be awaited first!");
15860         }
15861         const nativeResponseValue = wasm.TS_UserConfig_set_own_channel_config(this_ptr, val);
15862         // debug statements here
15863 }
15864         // struct LDKChannelHandshakeLimits UserConfig_get_peer_channel_config_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr);
15865 /* @internal */
15866 export function UserConfig_get_peer_channel_config_limits(this_ptr: number): number {
15867         if(!isWasmInitialized) {
15868                 throw new Error("initializeWasm() must be awaited first!");
15869         }
15870         const nativeResponseValue = wasm.TS_UserConfig_get_peer_channel_config_limits(this_ptr);
15871         return nativeResponseValue;
15872 }
15873         // void UserConfig_set_peer_channel_config_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val);
15874 /* @internal */
15875 export function UserConfig_set_peer_channel_config_limits(this_ptr: number, val: number): void {
15876         if(!isWasmInitialized) {
15877                 throw new Error("initializeWasm() must be awaited first!");
15878         }
15879         const nativeResponseValue = wasm.TS_UserConfig_set_peer_channel_config_limits(this_ptr, val);
15880         // debug statements here
15881 }
15882         // struct LDKChannelConfig UserConfig_get_channel_options(const struct LDKUserConfig *NONNULL_PTR this_ptr);
15883 /* @internal */
15884 export function UserConfig_get_channel_options(this_ptr: number): number {
15885         if(!isWasmInitialized) {
15886                 throw new Error("initializeWasm() must be awaited first!");
15887         }
15888         const nativeResponseValue = wasm.TS_UserConfig_get_channel_options(this_ptr);
15889         return nativeResponseValue;
15890 }
15891         // void UserConfig_set_channel_options(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
15892 /* @internal */
15893 export function UserConfig_set_channel_options(this_ptr: number, val: number): void {
15894         if(!isWasmInitialized) {
15895                 throw new Error("initializeWasm() must be awaited first!");
15896         }
15897         const nativeResponseValue = wasm.TS_UserConfig_set_channel_options(this_ptr, val);
15898         // debug statements here
15899 }
15900         // bool UserConfig_get_accept_forwards_to_priv_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
15901 /* @internal */
15902 export function UserConfig_get_accept_forwards_to_priv_channels(this_ptr: number): boolean {
15903         if(!isWasmInitialized) {
15904                 throw new Error("initializeWasm() must be awaited first!");
15905         }
15906         const nativeResponseValue = wasm.TS_UserConfig_get_accept_forwards_to_priv_channels(this_ptr);
15907         return nativeResponseValue;
15908 }
15909         // void UserConfig_set_accept_forwards_to_priv_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
15910 /* @internal */
15911 export function UserConfig_set_accept_forwards_to_priv_channels(this_ptr: number, val: boolean): void {
15912         if(!isWasmInitialized) {
15913                 throw new Error("initializeWasm() must be awaited first!");
15914         }
15915         const nativeResponseValue = wasm.TS_UserConfig_set_accept_forwards_to_priv_channels(this_ptr, val);
15916         // debug statements here
15917 }
15918         // bool UserConfig_get_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
15919 /* @internal */
15920 export function UserConfig_get_accept_inbound_channels(this_ptr: number): boolean {
15921         if(!isWasmInitialized) {
15922                 throw new Error("initializeWasm() must be awaited first!");
15923         }
15924         const nativeResponseValue = wasm.TS_UserConfig_get_accept_inbound_channels(this_ptr);
15925         return nativeResponseValue;
15926 }
15927         // void UserConfig_set_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
15928 /* @internal */
15929 export function UserConfig_set_accept_inbound_channels(this_ptr: number, val: boolean): void {
15930         if(!isWasmInitialized) {
15931                 throw new Error("initializeWasm() must be awaited first!");
15932         }
15933         const nativeResponseValue = wasm.TS_UserConfig_set_accept_inbound_channels(this_ptr, val);
15934         // debug statements here
15935 }
15936         // bool UserConfig_get_manually_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
15937 /* @internal */
15938 export function UserConfig_get_manually_accept_inbound_channels(this_ptr: number): boolean {
15939         if(!isWasmInitialized) {
15940                 throw new Error("initializeWasm() must be awaited first!");
15941         }
15942         const nativeResponseValue = wasm.TS_UserConfig_get_manually_accept_inbound_channels(this_ptr);
15943         return nativeResponseValue;
15944 }
15945         // void UserConfig_set_manually_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
15946 /* @internal */
15947 export function UserConfig_set_manually_accept_inbound_channels(this_ptr: number, val: boolean): void {
15948         if(!isWasmInitialized) {
15949                 throw new Error("initializeWasm() must be awaited first!");
15950         }
15951         const nativeResponseValue = wasm.TS_UserConfig_set_manually_accept_inbound_channels(this_ptr, val);
15952         // debug statements here
15953 }
15954         // MUST_USE_RES struct LDKUserConfig UserConfig_new(struct LDKChannelHandshakeConfig own_channel_config_arg, struct LDKChannelHandshakeLimits peer_channel_config_limits_arg, struct LDKChannelConfig channel_options_arg, bool accept_forwards_to_priv_channels_arg, bool accept_inbound_channels_arg, bool manually_accept_inbound_channels_arg);
15955 /* @internal */
15956 export function UserConfig_new(own_channel_config_arg: number, peer_channel_config_limits_arg: number, channel_options_arg: number, accept_forwards_to_priv_channels_arg: boolean, accept_inbound_channels_arg: boolean, manually_accept_inbound_channels_arg: boolean): number {
15957         if(!isWasmInitialized) {
15958                 throw new Error("initializeWasm() must be awaited first!");
15959         }
15960         const nativeResponseValue = wasm.TS_UserConfig_new(own_channel_config_arg, peer_channel_config_limits_arg, channel_options_arg, accept_forwards_to_priv_channels_arg, accept_inbound_channels_arg, manually_accept_inbound_channels_arg);
15961         return nativeResponseValue;
15962 }
15963         // uintptr_t UserConfig_clone_ptr(LDKUserConfig *NONNULL_PTR arg);
15964 /* @internal */
15965 export function UserConfig_clone_ptr(arg: number): number {
15966         if(!isWasmInitialized) {
15967                 throw new Error("initializeWasm() must be awaited first!");
15968         }
15969         const nativeResponseValue = wasm.TS_UserConfig_clone_ptr(arg);
15970         return nativeResponseValue;
15971 }
15972         // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig);
15973 /* @internal */
15974 export function UserConfig_clone(orig: number): number {
15975         if(!isWasmInitialized) {
15976                 throw new Error("initializeWasm() must be awaited first!");
15977         }
15978         const nativeResponseValue = wasm.TS_UserConfig_clone(orig);
15979         return nativeResponseValue;
15980 }
15981         // MUST_USE_RES struct LDKUserConfig UserConfig_default(void);
15982 /* @internal */
15983 export function UserConfig_default(): number {
15984         if(!isWasmInitialized) {
15985                 throw new Error("initializeWasm() must be awaited first!");
15986         }
15987         const nativeResponseValue = wasm.TS_UserConfig_default();
15988         return nativeResponseValue;
15989 }
15990         // void BestBlock_free(struct LDKBestBlock this_obj);
15991 /* @internal */
15992 export function BestBlock_free(this_obj: number): void {
15993         if(!isWasmInitialized) {
15994                 throw new Error("initializeWasm() must be awaited first!");
15995         }
15996         const nativeResponseValue = wasm.TS_BestBlock_free(this_obj);
15997         // debug statements here
15998 }
15999         // uintptr_t BestBlock_clone_ptr(LDKBestBlock *NONNULL_PTR arg);
16000 /* @internal */
16001 export function BestBlock_clone_ptr(arg: number): number {
16002         if(!isWasmInitialized) {
16003                 throw new Error("initializeWasm() must be awaited first!");
16004         }
16005         const nativeResponseValue = wasm.TS_BestBlock_clone_ptr(arg);
16006         return nativeResponseValue;
16007 }
16008         // struct LDKBestBlock BestBlock_clone(const struct LDKBestBlock *NONNULL_PTR orig);
16009 /* @internal */
16010 export function BestBlock_clone(orig: number): number {
16011         if(!isWasmInitialized) {
16012                 throw new Error("initializeWasm() must be awaited first!");
16013         }
16014         const nativeResponseValue = wasm.TS_BestBlock_clone(orig);
16015         return nativeResponseValue;
16016 }
16017         // MUST_USE_RES struct LDKBestBlock BestBlock_from_genesis(enum LDKNetwork network);
16018 /* @internal */
16019 export function BestBlock_from_genesis(network: Network): number {
16020         if(!isWasmInitialized) {
16021                 throw new Error("initializeWasm() must be awaited first!");
16022         }
16023         const nativeResponseValue = wasm.TS_BestBlock_from_genesis(network);
16024         return nativeResponseValue;
16025 }
16026         // MUST_USE_RES struct LDKBestBlock BestBlock_new(struct LDKThirtyTwoBytes block_hash, uint32_t height);
16027 /* @internal */
16028 export function BestBlock_new(block_hash: number, height: number): number {
16029         if(!isWasmInitialized) {
16030                 throw new Error("initializeWasm() must be awaited first!");
16031         }
16032         const nativeResponseValue = wasm.TS_BestBlock_new(block_hash, height);
16033         return nativeResponseValue;
16034 }
16035         // MUST_USE_RES struct LDKThirtyTwoBytes BestBlock_block_hash(const struct LDKBestBlock *NONNULL_PTR this_arg);
16036 /* @internal */
16037 export function BestBlock_block_hash(this_arg: number): number {
16038         if(!isWasmInitialized) {
16039                 throw new Error("initializeWasm() must be awaited first!");
16040         }
16041         const nativeResponseValue = wasm.TS_BestBlock_block_hash(this_arg);
16042         return nativeResponseValue;
16043 }
16044         // MUST_USE_RES uint32_t BestBlock_height(const struct LDKBestBlock *NONNULL_PTR this_arg);
16045 /* @internal */
16046 export function BestBlock_height(this_arg: number): number {
16047         if(!isWasmInitialized) {
16048                 throw new Error("initializeWasm() must be awaited first!");
16049         }
16050         const nativeResponseValue = wasm.TS_BestBlock_height(this_arg);
16051         return nativeResponseValue;
16052 }
16053         // enum LDKAccessError AccessError_clone(const enum LDKAccessError *NONNULL_PTR orig);
16054 /* @internal */
16055 export function AccessError_clone(orig: number): AccessError {
16056         if(!isWasmInitialized) {
16057                 throw new Error("initializeWasm() must be awaited first!");
16058         }
16059         const nativeResponseValue = wasm.TS_AccessError_clone(orig);
16060         return nativeResponseValue;
16061 }
16062         // enum LDKAccessError AccessError_unknown_chain(void);
16063 /* @internal */
16064 export function AccessError_unknown_chain(): AccessError {
16065         if(!isWasmInitialized) {
16066                 throw new Error("initializeWasm() must be awaited first!");
16067         }
16068         const nativeResponseValue = wasm.TS_AccessError_unknown_chain();
16069         return nativeResponseValue;
16070 }
16071         // enum LDKAccessError AccessError_unknown_tx(void);
16072 /* @internal */
16073 export function AccessError_unknown_tx(): AccessError {
16074         if(!isWasmInitialized) {
16075                 throw new Error("initializeWasm() must be awaited first!");
16076         }
16077         const nativeResponseValue = wasm.TS_AccessError_unknown_tx();
16078         return nativeResponseValue;
16079 }
16080         // void Access_free(struct LDKAccess this_ptr);
16081 /* @internal */
16082 export function Access_free(this_ptr: number): void {
16083         if(!isWasmInitialized) {
16084                 throw new Error("initializeWasm() must be awaited first!");
16085         }
16086         const nativeResponseValue = wasm.TS_Access_free(this_ptr);
16087         // debug statements here
16088 }
16089         // void Listen_free(struct LDKListen this_ptr);
16090 /* @internal */
16091 export function Listen_free(this_ptr: number): void {
16092         if(!isWasmInitialized) {
16093                 throw new Error("initializeWasm() must be awaited first!");
16094         }
16095         const nativeResponseValue = wasm.TS_Listen_free(this_ptr);
16096         // debug statements here
16097 }
16098         // void Confirm_free(struct LDKConfirm this_ptr);
16099 /* @internal */
16100 export function Confirm_free(this_ptr: number): void {
16101         if(!isWasmInitialized) {
16102                 throw new Error("initializeWasm() must be awaited first!");
16103         }
16104         const nativeResponseValue = wasm.TS_Confirm_free(this_ptr);
16105         // debug statements here
16106 }
16107         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_clone(const enum LDKChannelMonitorUpdateErr *NONNULL_PTR orig);
16108 /* @internal */
16109 export function ChannelMonitorUpdateErr_clone(orig: number): ChannelMonitorUpdateErr {
16110         if(!isWasmInitialized) {
16111                 throw new Error("initializeWasm() must be awaited first!");
16112         }
16113         const nativeResponseValue = wasm.TS_ChannelMonitorUpdateErr_clone(orig);
16114         return nativeResponseValue;
16115 }
16116         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_temporary_failure(void);
16117 /* @internal */
16118 export function ChannelMonitorUpdateErr_temporary_failure(): ChannelMonitorUpdateErr {
16119         if(!isWasmInitialized) {
16120                 throw new Error("initializeWasm() must be awaited first!");
16121         }
16122         const nativeResponseValue = wasm.TS_ChannelMonitorUpdateErr_temporary_failure();
16123         return nativeResponseValue;
16124 }
16125         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_permanent_failure(void);
16126 /* @internal */
16127 export function ChannelMonitorUpdateErr_permanent_failure(): ChannelMonitorUpdateErr {
16128         if(!isWasmInitialized) {
16129                 throw new Error("initializeWasm() must be awaited first!");
16130         }
16131         const nativeResponseValue = wasm.TS_ChannelMonitorUpdateErr_permanent_failure();
16132         return nativeResponseValue;
16133 }
16134         // void Watch_free(struct LDKWatch this_ptr);
16135 /* @internal */
16136 export function Watch_free(this_ptr: number): void {
16137         if(!isWasmInitialized) {
16138                 throw new Error("initializeWasm() must be awaited first!");
16139         }
16140         const nativeResponseValue = wasm.TS_Watch_free(this_ptr);
16141         // debug statements here
16142 }
16143         // void Filter_free(struct LDKFilter this_ptr);
16144 /* @internal */
16145 export function Filter_free(this_ptr: number): void {
16146         if(!isWasmInitialized) {
16147                 throw new Error("initializeWasm() must be awaited first!");
16148         }
16149         const nativeResponseValue = wasm.TS_Filter_free(this_ptr);
16150         // debug statements here
16151 }
16152         // void WatchedOutput_free(struct LDKWatchedOutput this_obj);
16153 /* @internal */
16154 export function WatchedOutput_free(this_obj: number): void {
16155         if(!isWasmInitialized) {
16156                 throw new Error("initializeWasm() must be awaited first!");
16157         }
16158         const nativeResponseValue = wasm.TS_WatchedOutput_free(this_obj);
16159         // debug statements here
16160 }
16161         // struct LDKThirtyTwoBytes WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
16162 /* @internal */
16163 export function WatchedOutput_get_block_hash(this_ptr: number): number {
16164         if(!isWasmInitialized) {
16165                 throw new Error("initializeWasm() must be awaited first!");
16166         }
16167         const nativeResponseValue = wasm.TS_WatchedOutput_get_block_hash(this_ptr);
16168         return nativeResponseValue;
16169 }
16170         // void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
16171 /* @internal */
16172 export function WatchedOutput_set_block_hash(this_ptr: number, val: number): void {
16173         if(!isWasmInitialized) {
16174                 throw new Error("initializeWasm() must be awaited first!");
16175         }
16176         const nativeResponseValue = wasm.TS_WatchedOutput_set_block_hash(this_ptr, val);
16177         // debug statements here
16178 }
16179         // struct LDKOutPoint WatchedOutput_get_outpoint(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
16180 /* @internal */
16181 export function WatchedOutput_get_outpoint(this_ptr: number): number {
16182         if(!isWasmInitialized) {
16183                 throw new Error("initializeWasm() must be awaited first!");
16184         }
16185         const nativeResponseValue = wasm.TS_WatchedOutput_get_outpoint(this_ptr);
16186         return nativeResponseValue;
16187 }
16188         // void WatchedOutput_set_outpoint(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
16189 /* @internal */
16190 export function WatchedOutput_set_outpoint(this_ptr: number, val: number): void {
16191         if(!isWasmInitialized) {
16192                 throw new Error("initializeWasm() must be awaited first!");
16193         }
16194         const nativeResponseValue = wasm.TS_WatchedOutput_set_outpoint(this_ptr, val);
16195         // debug statements here
16196 }
16197         // struct LDKu8slice WatchedOutput_get_script_pubkey(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
16198 /* @internal */
16199 export function WatchedOutput_get_script_pubkey(this_ptr: number): number {
16200         if(!isWasmInitialized) {
16201                 throw new Error("initializeWasm() must be awaited first!");
16202         }
16203         const nativeResponseValue = wasm.TS_WatchedOutput_get_script_pubkey(this_ptr);
16204         return nativeResponseValue;
16205 }
16206         // void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
16207 /* @internal */
16208 export function WatchedOutput_set_script_pubkey(this_ptr: number, val: number): void {
16209         if(!isWasmInitialized) {
16210                 throw new Error("initializeWasm() must be awaited first!");
16211         }
16212         const nativeResponseValue = wasm.TS_WatchedOutput_set_script_pubkey(this_ptr, val);
16213         // debug statements here
16214 }
16215         // MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKThirtyTwoBytes block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg);
16216 /* @internal */
16217 export function WatchedOutput_new(block_hash_arg: number, outpoint_arg: number, script_pubkey_arg: number): number {
16218         if(!isWasmInitialized) {
16219                 throw new Error("initializeWasm() must be awaited first!");
16220         }
16221         const nativeResponseValue = wasm.TS_WatchedOutput_new(block_hash_arg, outpoint_arg, script_pubkey_arg);
16222         return nativeResponseValue;
16223 }
16224         // uintptr_t WatchedOutput_clone_ptr(LDKWatchedOutput *NONNULL_PTR arg);
16225 /* @internal */
16226 export function WatchedOutput_clone_ptr(arg: number): number {
16227         if(!isWasmInitialized) {
16228                 throw new Error("initializeWasm() must be awaited first!");
16229         }
16230         const nativeResponseValue = wasm.TS_WatchedOutput_clone_ptr(arg);
16231         return nativeResponseValue;
16232 }
16233         // struct LDKWatchedOutput WatchedOutput_clone(const struct LDKWatchedOutput *NONNULL_PTR orig);
16234 /* @internal */
16235 export function WatchedOutput_clone(orig: number): number {
16236         if(!isWasmInitialized) {
16237                 throw new Error("initializeWasm() must be awaited first!");
16238         }
16239         const nativeResponseValue = wasm.TS_WatchedOutput_clone(orig);
16240         return nativeResponseValue;
16241 }
16242         // uint64_t WatchedOutput_hash(const struct LDKWatchedOutput *NONNULL_PTR o);
16243 /* @internal */
16244 export function WatchedOutput_hash(o: number): bigint {
16245         if(!isWasmInitialized) {
16246                 throw new Error("initializeWasm() must be awaited first!");
16247         }
16248         const nativeResponseValue = wasm.TS_WatchedOutput_hash(o);
16249         return nativeResponseValue;
16250 }
16251         // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr);
16252 /* @internal */
16253 export function BroadcasterInterface_free(this_ptr: number): void {
16254         if(!isWasmInitialized) {
16255                 throw new Error("initializeWasm() must be awaited first!");
16256         }
16257         const nativeResponseValue = wasm.TS_BroadcasterInterface_free(this_ptr);
16258         // debug statements here
16259 }
16260         // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig);
16261 /* @internal */
16262 export function ConfirmationTarget_clone(orig: number): ConfirmationTarget {
16263         if(!isWasmInitialized) {
16264                 throw new Error("initializeWasm() must be awaited first!");
16265         }
16266         const nativeResponseValue = wasm.TS_ConfirmationTarget_clone(orig);
16267         return nativeResponseValue;
16268 }
16269         // enum LDKConfirmationTarget ConfirmationTarget_background(void);
16270 /* @internal */
16271 export function ConfirmationTarget_background(): ConfirmationTarget {
16272         if(!isWasmInitialized) {
16273                 throw new Error("initializeWasm() must be awaited first!");
16274         }
16275         const nativeResponseValue = wasm.TS_ConfirmationTarget_background();
16276         return nativeResponseValue;
16277 }
16278         // enum LDKConfirmationTarget ConfirmationTarget_normal(void);
16279 /* @internal */
16280 export function ConfirmationTarget_normal(): ConfirmationTarget {
16281         if(!isWasmInitialized) {
16282                 throw new Error("initializeWasm() must be awaited first!");
16283         }
16284         const nativeResponseValue = wasm.TS_ConfirmationTarget_normal();
16285         return nativeResponseValue;
16286 }
16287         // enum LDKConfirmationTarget ConfirmationTarget_high_priority(void);
16288 /* @internal */
16289 export function ConfirmationTarget_high_priority(): ConfirmationTarget {
16290         if(!isWasmInitialized) {
16291                 throw new Error("initializeWasm() must be awaited first!");
16292         }
16293         const nativeResponseValue = wasm.TS_ConfirmationTarget_high_priority();
16294         return nativeResponseValue;
16295 }
16296         // bool ConfirmationTarget_eq(const enum LDKConfirmationTarget *NONNULL_PTR a, const enum LDKConfirmationTarget *NONNULL_PTR b);
16297 /* @internal */
16298 export function ConfirmationTarget_eq(a: number, b: number): boolean {
16299         if(!isWasmInitialized) {
16300                 throw new Error("initializeWasm() must be awaited first!");
16301         }
16302         const nativeResponseValue = wasm.TS_ConfirmationTarget_eq(a, b);
16303         return nativeResponseValue;
16304 }
16305         // void FeeEstimator_free(struct LDKFeeEstimator this_ptr);
16306 /* @internal */
16307 export function FeeEstimator_free(this_ptr: number): void {
16308         if(!isWasmInitialized) {
16309                 throw new Error("initializeWasm() must be awaited first!");
16310         }
16311         const nativeResponseValue = wasm.TS_FeeEstimator_free(this_ptr);
16312         // debug statements here
16313 }
16314         // void MonitorUpdateId_free(struct LDKMonitorUpdateId this_obj);
16315 /* @internal */
16316 export function MonitorUpdateId_free(this_obj: number): void {
16317         if(!isWasmInitialized) {
16318                 throw new Error("initializeWasm() must be awaited first!");
16319         }
16320         const nativeResponseValue = wasm.TS_MonitorUpdateId_free(this_obj);
16321         // debug statements here
16322 }
16323         // uintptr_t MonitorUpdateId_clone_ptr(LDKMonitorUpdateId *NONNULL_PTR arg);
16324 /* @internal */
16325 export function MonitorUpdateId_clone_ptr(arg: number): number {
16326         if(!isWasmInitialized) {
16327                 throw new Error("initializeWasm() must be awaited first!");
16328         }
16329         const nativeResponseValue = wasm.TS_MonitorUpdateId_clone_ptr(arg);
16330         return nativeResponseValue;
16331 }
16332         // struct LDKMonitorUpdateId MonitorUpdateId_clone(const struct LDKMonitorUpdateId *NONNULL_PTR orig);
16333 /* @internal */
16334 export function MonitorUpdateId_clone(orig: number): number {
16335         if(!isWasmInitialized) {
16336                 throw new Error("initializeWasm() must be awaited first!");
16337         }
16338         const nativeResponseValue = wasm.TS_MonitorUpdateId_clone(orig);
16339         return nativeResponseValue;
16340 }
16341         // uint64_t MonitorUpdateId_hash(const struct LDKMonitorUpdateId *NONNULL_PTR o);
16342 /* @internal */
16343 export function MonitorUpdateId_hash(o: number): bigint {
16344         if(!isWasmInitialized) {
16345                 throw new Error("initializeWasm() must be awaited first!");
16346         }
16347         const nativeResponseValue = wasm.TS_MonitorUpdateId_hash(o);
16348         return nativeResponseValue;
16349 }
16350         // bool MonitorUpdateId_eq(const struct LDKMonitorUpdateId *NONNULL_PTR a, const struct LDKMonitorUpdateId *NONNULL_PTR b);
16351 /* @internal */
16352 export function MonitorUpdateId_eq(a: number, b: number): boolean {
16353         if(!isWasmInitialized) {
16354                 throw new Error("initializeWasm() must be awaited first!");
16355         }
16356         const nativeResponseValue = wasm.TS_MonitorUpdateId_eq(a, b);
16357         return nativeResponseValue;
16358 }
16359         // void Persist_free(struct LDKPersist this_ptr);
16360 /* @internal */
16361 export function Persist_free(this_ptr: number): void {
16362         if(!isWasmInitialized) {
16363                 throw new Error("initializeWasm() must be awaited first!");
16364         }
16365         const nativeResponseValue = wasm.TS_Persist_free(this_ptr);
16366         // debug statements here
16367 }
16368         // void LockedChannelMonitor_free(struct LDKLockedChannelMonitor this_obj);
16369 /* @internal */
16370 export function LockedChannelMonitor_free(this_obj: number): void {
16371         if(!isWasmInitialized) {
16372                 throw new Error("initializeWasm() must be awaited first!");
16373         }
16374         const nativeResponseValue = wasm.TS_LockedChannelMonitor_free(this_obj);
16375         // debug statements here
16376 }
16377         // void ChainMonitor_free(struct LDKChainMonitor this_obj);
16378 /* @internal */
16379 export function ChainMonitor_free(this_obj: number): void {
16380         if(!isWasmInitialized) {
16381                 throw new Error("initializeWasm() must be awaited first!");
16382         }
16383         const nativeResponseValue = wasm.TS_ChainMonitor_free(this_obj);
16384         // debug statements here
16385 }
16386         // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKCOption_FilterZ chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister);
16387 /* @internal */
16388 export function ChainMonitor_new(chain_source: number, broadcaster: number, logger: number, feeest: number, persister: number): number {
16389         if(!isWasmInitialized) {
16390                 throw new Error("initializeWasm() must be awaited first!");
16391         }
16392         const nativeResponseValue = wasm.TS_ChainMonitor_new(chain_source, broadcaster, logger, feeest, persister);
16393         return nativeResponseValue;
16394 }
16395         // MUST_USE_RES struct LDKCVec_BalanceZ ChainMonitor_get_claimable_balances(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKCVec_ChannelDetailsZ ignored_channels);
16396 /* @internal */
16397 export function ChainMonitor_get_claimable_balances(this_arg: number, ignored_channels: number): number {
16398         if(!isWasmInitialized) {
16399                 throw new Error("initializeWasm() must be awaited first!");
16400         }
16401         const nativeResponseValue = wasm.TS_ChainMonitor_get_claimable_balances(this_arg, ignored_channels);
16402         return nativeResponseValue;
16403 }
16404         // MUST_USE_RES struct LDKCResult_LockedChannelMonitorNoneZ ChainMonitor_get_monitor(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo);
16405 /* @internal */
16406 export function ChainMonitor_get_monitor(this_arg: number, funding_txo: number): number {
16407         if(!isWasmInitialized) {
16408                 throw new Error("initializeWasm() must be awaited first!");
16409         }
16410         const nativeResponseValue = wasm.TS_ChainMonitor_get_monitor(this_arg, funding_txo);
16411         return nativeResponseValue;
16412 }
16413         // MUST_USE_RES struct LDKCVec_OutPointZ ChainMonitor_list_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg);
16414 /* @internal */
16415 export function ChainMonitor_list_monitors(this_arg: number): number {
16416         if(!isWasmInitialized) {
16417                 throw new Error("initializeWasm() must be awaited first!");
16418         }
16419         const nativeResponseValue = wasm.TS_ChainMonitor_list_monitors(this_arg);
16420         return nativeResponseValue;
16421 }
16422         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChainMonitor_channel_monitor_updated(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKMonitorUpdateId completed_update_id);
16423 /* @internal */
16424 export function ChainMonitor_channel_monitor_updated(this_arg: number, funding_txo: number, completed_update_id: number): number {
16425         if(!isWasmInitialized) {
16426                 throw new Error("initializeWasm() must be awaited first!");
16427         }
16428         const nativeResponseValue = wasm.TS_ChainMonitor_channel_monitor_updated(this_arg, funding_txo, completed_update_id);
16429         return nativeResponseValue;
16430 }
16431         // struct LDKListen ChainMonitor_as_Listen(const struct LDKChainMonitor *NONNULL_PTR this_arg);
16432 /* @internal */
16433 export function ChainMonitor_as_Listen(this_arg: number): number {
16434         if(!isWasmInitialized) {
16435                 throw new Error("initializeWasm() must be awaited first!");
16436         }
16437         const nativeResponseValue = wasm.TS_ChainMonitor_as_Listen(this_arg);
16438         return nativeResponseValue;
16439 }
16440         // struct LDKConfirm ChainMonitor_as_Confirm(const struct LDKChainMonitor *NONNULL_PTR this_arg);
16441 /* @internal */
16442 export function ChainMonitor_as_Confirm(this_arg: number): number {
16443         if(!isWasmInitialized) {
16444                 throw new Error("initializeWasm() must be awaited first!");
16445         }
16446         const nativeResponseValue = wasm.TS_ChainMonitor_as_Confirm(this_arg);
16447         return nativeResponseValue;
16448 }
16449         // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg);
16450 /* @internal */
16451 export function ChainMonitor_as_Watch(this_arg: number): number {
16452         if(!isWasmInitialized) {
16453                 throw new Error("initializeWasm() must be awaited first!");
16454         }
16455         const nativeResponseValue = wasm.TS_ChainMonitor_as_Watch(this_arg);
16456         return nativeResponseValue;
16457 }
16458         // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg);
16459 /* @internal */
16460 export function ChainMonitor_as_EventsProvider(this_arg: number): number {
16461         if(!isWasmInitialized) {
16462                 throw new Error("initializeWasm() must be awaited first!");
16463         }
16464         const nativeResponseValue = wasm.TS_ChainMonitor_as_EventsProvider(this_arg);
16465         return nativeResponseValue;
16466 }
16467         // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj);
16468 /* @internal */
16469 export function ChannelMonitorUpdate_free(this_obj: number): void {
16470         if(!isWasmInitialized) {
16471                 throw new Error("initializeWasm() must be awaited first!");
16472         }
16473         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_free(this_obj);
16474         // debug statements here
16475 }
16476         // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr);
16477 /* @internal */
16478 export function ChannelMonitorUpdate_get_update_id(this_ptr: number): bigint {
16479         if(!isWasmInitialized) {
16480                 throw new Error("initializeWasm() must be awaited first!");
16481         }
16482         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_get_update_id(this_ptr);
16483         return nativeResponseValue;
16484 }
16485         // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val);
16486 /* @internal */
16487 export function ChannelMonitorUpdate_set_update_id(this_ptr: number, val: bigint): void {
16488         if(!isWasmInitialized) {
16489                 throw new Error("initializeWasm() must be awaited first!");
16490         }
16491         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_set_update_id(this_ptr, val);
16492         // debug statements here
16493 }
16494         // uintptr_t ChannelMonitorUpdate_clone_ptr(LDKChannelMonitorUpdate *NONNULL_PTR arg);
16495 /* @internal */
16496 export function ChannelMonitorUpdate_clone_ptr(arg: number): number {
16497         if(!isWasmInitialized) {
16498                 throw new Error("initializeWasm() must be awaited first!");
16499         }
16500         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_clone_ptr(arg);
16501         return nativeResponseValue;
16502 }
16503         // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig);
16504 /* @internal */
16505 export function ChannelMonitorUpdate_clone(orig: number): number {
16506         if(!isWasmInitialized) {
16507                 throw new Error("initializeWasm() must be awaited first!");
16508         }
16509         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_clone(orig);
16510         return nativeResponseValue;
16511 }
16512         // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj);
16513 /* @internal */
16514 export function ChannelMonitorUpdate_write(obj: number): number {
16515         if(!isWasmInitialized) {
16516                 throw new Error("initializeWasm() must be awaited first!");
16517         }
16518         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_write(obj);
16519         return nativeResponseValue;
16520 }
16521         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser);
16522 /* @internal */
16523 export function ChannelMonitorUpdate_read(ser: number): number {
16524         if(!isWasmInitialized) {
16525                 throw new Error("initializeWasm() must be awaited first!");
16526         }
16527         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_read(ser);
16528         return nativeResponseValue;
16529 }
16530         // void MonitorEvent_free(struct LDKMonitorEvent this_ptr);
16531 /* @internal */
16532 export function MonitorEvent_free(this_ptr: number): void {
16533         if(!isWasmInitialized) {
16534                 throw new Error("initializeWasm() must be awaited first!");
16535         }
16536         const nativeResponseValue = wasm.TS_MonitorEvent_free(this_ptr);
16537         // debug statements here
16538 }
16539         // uintptr_t MonitorEvent_clone_ptr(LDKMonitorEvent *NONNULL_PTR arg);
16540 /* @internal */
16541 export function MonitorEvent_clone_ptr(arg: number): number {
16542         if(!isWasmInitialized) {
16543                 throw new Error("initializeWasm() must be awaited first!");
16544         }
16545         const nativeResponseValue = wasm.TS_MonitorEvent_clone_ptr(arg);
16546         return nativeResponseValue;
16547 }
16548         // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig);
16549 /* @internal */
16550 export function MonitorEvent_clone(orig: number): number {
16551         if(!isWasmInitialized) {
16552                 throw new Error("initializeWasm() must be awaited first!");
16553         }
16554         const nativeResponseValue = wasm.TS_MonitorEvent_clone(orig);
16555         return nativeResponseValue;
16556 }
16557         // struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a);
16558 /* @internal */
16559 export function MonitorEvent_htlcevent(a: number): number {
16560         if(!isWasmInitialized) {
16561                 throw new Error("initializeWasm() must be awaited first!");
16562         }
16563         const nativeResponseValue = wasm.TS_MonitorEvent_htlcevent(a);
16564         return nativeResponseValue;
16565 }
16566         // struct LDKMonitorEvent MonitorEvent_commitment_tx_confirmed(struct LDKOutPoint a);
16567 /* @internal */
16568 export function MonitorEvent_commitment_tx_confirmed(a: number): number {
16569         if(!isWasmInitialized) {
16570                 throw new Error("initializeWasm() must be awaited first!");
16571         }
16572         const nativeResponseValue = wasm.TS_MonitorEvent_commitment_tx_confirmed(a);
16573         return nativeResponseValue;
16574 }
16575         // struct LDKMonitorEvent MonitorEvent_update_completed(struct LDKOutPoint funding_txo, uint64_t monitor_update_id);
16576 /* @internal */
16577 export function MonitorEvent_update_completed(funding_txo: number, monitor_update_id: bigint): number {
16578         if(!isWasmInitialized) {
16579                 throw new Error("initializeWasm() must be awaited first!");
16580         }
16581         const nativeResponseValue = wasm.TS_MonitorEvent_update_completed(funding_txo, monitor_update_id);
16582         return nativeResponseValue;
16583 }
16584         // struct LDKMonitorEvent MonitorEvent_update_failed(struct LDKOutPoint a);
16585 /* @internal */
16586 export function MonitorEvent_update_failed(a: number): number {
16587         if(!isWasmInitialized) {
16588                 throw new Error("initializeWasm() must be awaited first!");
16589         }
16590         const nativeResponseValue = wasm.TS_MonitorEvent_update_failed(a);
16591         return nativeResponseValue;
16592 }
16593         // struct LDKCVec_u8Z MonitorEvent_write(const struct LDKMonitorEvent *NONNULL_PTR obj);
16594 /* @internal */
16595 export function MonitorEvent_write(obj: number): number {
16596         if(!isWasmInitialized) {
16597                 throw new Error("initializeWasm() must be awaited first!");
16598         }
16599         const nativeResponseValue = wasm.TS_MonitorEvent_write(obj);
16600         return nativeResponseValue;
16601 }
16602         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(struct LDKu8slice ser);
16603 /* @internal */
16604 export function MonitorEvent_read(ser: number): number {
16605         if(!isWasmInitialized) {
16606                 throw new Error("initializeWasm() must be awaited first!");
16607         }
16608         const nativeResponseValue = wasm.TS_MonitorEvent_read(ser);
16609         return nativeResponseValue;
16610 }
16611         // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj);
16612 /* @internal */
16613 export function HTLCUpdate_free(this_obj: number): void {
16614         if(!isWasmInitialized) {
16615                 throw new Error("initializeWasm() must be awaited first!");
16616         }
16617         const nativeResponseValue = wasm.TS_HTLCUpdate_free(this_obj);
16618         // debug statements here
16619 }
16620         // uintptr_t HTLCUpdate_clone_ptr(LDKHTLCUpdate *NONNULL_PTR arg);
16621 /* @internal */
16622 export function HTLCUpdate_clone_ptr(arg: number): number {
16623         if(!isWasmInitialized) {
16624                 throw new Error("initializeWasm() must be awaited first!");
16625         }
16626         const nativeResponseValue = wasm.TS_HTLCUpdate_clone_ptr(arg);
16627         return nativeResponseValue;
16628 }
16629         // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig);
16630 /* @internal */
16631 export function HTLCUpdate_clone(orig: number): number {
16632         if(!isWasmInitialized) {
16633                 throw new Error("initializeWasm() must be awaited first!");
16634         }
16635         const nativeResponseValue = wasm.TS_HTLCUpdate_clone(orig);
16636         return nativeResponseValue;
16637 }
16638         // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj);
16639 /* @internal */
16640 export function HTLCUpdate_write(obj: number): number {
16641         if(!isWasmInitialized) {
16642                 throw new Error("initializeWasm() must be awaited first!");
16643         }
16644         const nativeResponseValue = wasm.TS_HTLCUpdate_write(obj);
16645         return nativeResponseValue;
16646 }
16647         // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser);
16648 /* @internal */
16649 export function HTLCUpdate_read(ser: number): number {
16650         if(!isWasmInitialized) {
16651                 throw new Error("initializeWasm() must be awaited first!");
16652         }
16653         const nativeResponseValue = wasm.TS_HTLCUpdate_read(ser);
16654         return nativeResponseValue;
16655 }
16656         // void Balance_free(struct LDKBalance this_ptr);
16657 /* @internal */
16658 export function Balance_free(this_ptr: number): void {
16659         if(!isWasmInitialized) {
16660                 throw new Error("initializeWasm() must be awaited first!");
16661         }
16662         const nativeResponseValue = wasm.TS_Balance_free(this_ptr);
16663         // debug statements here
16664 }
16665         // uintptr_t Balance_clone_ptr(LDKBalance *NONNULL_PTR arg);
16666 /* @internal */
16667 export function Balance_clone_ptr(arg: number): number {
16668         if(!isWasmInitialized) {
16669                 throw new Error("initializeWasm() must be awaited first!");
16670         }
16671         const nativeResponseValue = wasm.TS_Balance_clone_ptr(arg);
16672         return nativeResponseValue;
16673 }
16674         // struct LDKBalance Balance_clone(const struct LDKBalance *NONNULL_PTR orig);
16675 /* @internal */
16676 export function Balance_clone(orig: number): number {
16677         if(!isWasmInitialized) {
16678                 throw new Error("initializeWasm() must be awaited first!");
16679         }
16680         const nativeResponseValue = wasm.TS_Balance_clone(orig);
16681         return nativeResponseValue;
16682 }
16683         // struct LDKBalance Balance_claimable_on_channel_close(uint64_t claimable_amount_satoshis);
16684 /* @internal */
16685 export function Balance_claimable_on_channel_close(claimable_amount_satoshis: bigint): number {
16686         if(!isWasmInitialized) {
16687                 throw new Error("initializeWasm() must be awaited first!");
16688         }
16689         const nativeResponseValue = wasm.TS_Balance_claimable_on_channel_close(claimable_amount_satoshis);
16690         return nativeResponseValue;
16691 }
16692         // struct LDKBalance Balance_claimable_awaiting_confirmations(uint64_t claimable_amount_satoshis, uint32_t confirmation_height);
16693 /* @internal */
16694 export function Balance_claimable_awaiting_confirmations(claimable_amount_satoshis: bigint, confirmation_height: number): number {
16695         if(!isWasmInitialized) {
16696                 throw new Error("initializeWasm() must be awaited first!");
16697         }
16698         const nativeResponseValue = wasm.TS_Balance_claimable_awaiting_confirmations(claimable_amount_satoshis, confirmation_height);
16699         return nativeResponseValue;
16700 }
16701         // struct LDKBalance Balance_contentious_claimable(uint64_t claimable_amount_satoshis, uint32_t timeout_height);
16702 /* @internal */
16703 export function Balance_contentious_claimable(claimable_amount_satoshis: bigint, timeout_height: number): number {
16704         if(!isWasmInitialized) {
16705                 throw new Error("initializeWasm() must be awaited first!");
16706         }
16707         const nativeResponseValue = wasm.TS_Balance_contentious_claimable(claimable_amount_satoshis, timeout_height);
16708         return nativeResponseValue;
16709 }
16710         // struct LDKBalance Balance_maybe_claimable_htlcawaiting_timeout(uint64_t claimable_amount_satoshis, uint32_t claimable_height);
16711 /* @internal */
16712 export function Balance_maybe_claimable_htlcawaiting_timeout(claimable_amount_satoshis: bigint, claimable_height: number): number {
16713         if(!isWasmInitialized) {
16714                 throw new Error("initializeWasm() must be awaited first!");
16715         }
16716         const nativeResponseValue = wasm.TS_Balance_maybe_claimable_htlcawaiting_timeout(claimable_amount_satoshis, claimable_height);
16717         return nativeResponseValue;
16718 }
16719         // bool Balance_eq(const struct LDKBalance *NONNULL_PTR a, const struct LDKBalance *NONNULL_PTR b);
16720 /* @internal */
16721 export function Balance_eq(a: number, b: number): boolean {
16722         if(!isWasmInitialized) {
16723                 throw new Error("initializeWasm() must be awaited first!");
16724         }
16725         const nativeResponseValue = wasm.TS_Balance_eq(a, b);
16726         return nativeResponseValue;
16727 }
16728         // void ChannelMonitor_free(struct LDKChannelMonitor this_obj);
16729 /* @internal */
16730 export function ChannelMonitor_free(this_obj: number): void {
16731         if(!isWasmInitialized) {
16732                 throw new Error("initializeWasm() must be awaited first!");
16733         }
16734         const nativeResponseValue = wasm.TS_ChannelMonitor_free(this_obj);
16735         // debug statements here
16736 }
16737         // uintptr_t ChannelMonitor_clone_ptr(LDKChannelMonitor *NONNULL_PTR arg);
16738 /* @internal */
16739 export function ChannelMonitor_clone_ptr(arg: number): number {
16740         if(!isWasmInitialized) {
16741                 throw new Error("initializeWasm() must be awaited first!");
16742         }
16743         const nativeResponseValue = wasm.TS_ChannelMonitor_clone_ptr(arg);
16744         return nativeResponseValue;
16745 }
16746         // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig);
16747 /* @internal */
16748 export function ChannelMonitor_clone(orig: number): number {
16749         if(!isWasmInitialized) {
16750                 throw new Error("initializeWasm() must be awaited first!");
16751         }
16752         const nativeResponseValue = wasm.TS_ChannelMonitor_clone(orig);
16753         return nativeResponseValue;
16754 }
16755         // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj);
16756 /* @internal */
16757 export function ChannelMonitor_write(obj: number): number {
16758         if(!isWasmInitialized) {
16759                 throw new Error("initializeWasm() must be awaited first!");
16760         }
16761         const nativeResponseValue = wasm.TS_ChannelMonitor_write(obj);
16762         return nativeResponseValue;
16763 }
16764         // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelMonitor_update_monitor(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR updates, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, const struct LDKLogger *NONNULL_PTR logger);
16765 /* @internal */
16766 export function ChannelMonitor_update_monitor(this_arg: number, updates: number, broadcaster: number, fee_estimator: number, logger: number): number {
16767         if(!isWasmInitialized) {
16768                 throw new Error("initializeWasm() must be awaited first!");
16769         }
16770         const nativeResponseValue = wasm.TS_ChannelMonitor_update_monitor(this_arg, updates, broadcaster, fee_estimator, logger);
16771         return nativeResponseValue;
16772 }
16773         // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
16774 /* @internal */
16775 export function ChannelMonitor_get_latest_update_id(this_arg: number): bigint {
16776         if(!isWasmInitialized) {
16777                 throw new Error("initializeWasm() must be awaited first!");
16778         }
16779         const nativeResponseValue = wasm.TS_ChannelMonitor_get_latest_update_id(this_arg);
16780         return nativeResponseValue;
16781 }
16782         // MUST_USE_RES struct LDKC2Tuple_OutPointScriptZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
16783 /* @internal */
16784 export function ChannelMonitor_get_funding_txo(this_arg: number): number {
16785         if(!isWasmInitialized) {
16786                 throw new Error("initializeWasm() must be awaited first!");
16787         }
16788         const nativeResponseValue = wasm.TS_ChannelMonitor_get_funding_txo(this_arg);
16789         return nativeResponseValue;
16790 }
16791         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
16792 /* @internal */
16793 export function ChannelMonitor_get_outputs_to_watch(this_arg: number): number {
16794         if(!isWasmInitialized) {
16795                 throw new Error("initializeWasm() must be awaited first!");
16796         }
16797         const nativeResponseValue = wasm.TS_ChannelMonitor_get_outputs_to_watch(this_arg);
16798         return nativeResponseValue;
16799 }
16800         // void ChannelMonitor_load_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKFilter *NONNULL_PTR filter);
16801 /* @internal */
16802 export function ChannelMonitor_load_outputs_to_watch(this_arg: number, filter: number): void {
16803         if(!isWasmInitialized) {
16804                 throw new Error("initializeWasm() must be awaited first!");
16805         }
16806         const nativeResponseValue = wasm.TS_ChannelMonitor_load_outputs_to_watch(this_arg, filter);
16807         // debug statements here
16808 }
16809         // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
16810 /* @internal */
16811 export function ChannelMonitor_get_and_clear_pending_monitor_events(this_arg: number): number {
16812         if(!isWasmInitialized) {
16813                 throw new Error("initializeWasm() must be awaited first!");
16814         }
16815         const nativeResponseValue = wasm.TS_ChannelMonitor_get_and_clear_pending_monitor_events(this_arg);
16816         return nativeResponseValue;
16817 }
16818         // MUST_USE_RES struct LDKCVec_EventZ ChannelMonitor_get_and_clear_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
16819 /* @internal */
16820 export function ChannelMonitor_get_and_clear_pending_events(this_arg: number): number {
16821         if(!isWasmInitialized) {
16822                 throw new Error("initializeWasm() must be awaited first!");
16823         }
16824         const nativeResponseValue = wasm.TS_ChannelMonitor_get_and_clear_pending_events(this_arg);
16825         return nativeResponseValue;
16826 }
16827         // MUST_USE_RES struct LDKCVec_TransactionZ ChannelMonitor_get_latest_holder_commitment_txn(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKLogger *NONNULL_PTR logger);
16828 /* @internal */
16829 export function ChannelMonitor_get_latest_holder_commitment_txn(this_arg: number, logger: number): number {
16830         if(!isWasmInitialized) {
16831                 throw new Error("initializeWasm() must be awaited first!");
16832         }
16833         const nativeResponseValue = wasm.TS_ChannelMonitor_get_latest_holder_commitment_txn(this_arg, logger);
16834         return nativeResponseValue;
16835 }
16836         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_block_connected(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
16837 /* @internal */
16838 export function ChannelMonitor_block_connected(this_arg: number, header: number, txdata: number, height: number, broadcaster: number, fee_estimator: number, logger: number): number {
16839         if(!isWasmInitialized) {
16840                 throw new Error("initializeWasm() must be awaited first!");
16841         }
16842         const nativeResponseValue = wasm.TS_ChannelMonitor_block_connected(this_arg, header, txdata, height, broadcaster, fee_estimator, logger);
16843         return nativeResponseValue;
16844 }
16845         // void ChannelMonitor_block_disconnected(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
16846 /* @internal */
16847 export function ChannelMonitor_block_disconnected(this_arg: number, header: number, height: number, broadcaster: number, fee_estimator: number, logger: number): void {
16848         if(!isWasmInitialized) {
16849                 throw new Error("initializeWasm() must be awaited first!");
16850         }
16851         const nativeResponseValue = wasm.TS_ChannelMonitor_block_disconnected(this_arg, header, height, broadcaster, fee_estimator, logger);
16852         // debug statements here
16853 }
16854         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_transactions_confirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
16855 /* @internal */
16856 export function ChannelMonitor_transactions_confirmed(this_arg: number, header: number, txdata: number, height: number, broadcaster: number, fee_estimator: number, logger: number): number {
16857         if(!isWasmInitialized) {
16858                 throw new Error("initializeWasm() must be awaited first!");
16859         }
16860         const nativeResponseValue = wasm.TS_ChannelMonitor_transactions_confirmed(this_arg, header, txdata, height, broadcaster, fee_estimator, logger);
16861         return nativeResponseValue;
16862 }
16863         // void ChannelMonitor_transaction_unconfirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
16864 /* @internal */
16865 export function ChannelMonitor_transaction_unconfirmed(this_arg: number, txid: number, broadcaster: number, fee_estimator: number, logger: number): void {
16866         if(!isWasmInitialized) {
16867                 throw new Error("initializeWasm() must be awaited first!");
16868         }
16869         const nativeResponseValue = wasm.TS_ChannelMonitor_transaction_unconfirmed(this_arg, txid, broadcaster, fee_estimator, logger);
16870         // debug statements here
16871 }
16872         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_best_block_updated(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
16873 /* @internal */
16874 export function ChannelMonitor_best_block_updated(this_arg: number, header: number, height: number, broadcaster: number, fee_estimator: number, logger: number): number {
16875         if(!isWasmInitialized) {
16876                 throw new Error("initializeWasm() must be awaited first!");
16877         }
16878         const nativeResponseValue = wasm.TS_ChannelMonitor_best_block_updated(this_arg, header, height, broadcaster, fee_estimator, logger);
16879         return nativeResponseValue;
16880 }
16881         // MUST_USE_RES struct LDKCVec_TxidZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
16882 /* @internal */
16883 export function ChannelMonitor_get_relevant_txids(this_arg: number): number {
16884         if(!isWasmInitialized) {
16885                 throw new Error("initializeWasm() must be awaited first!");
16886         }
16887         const nativeResponseValue = wasm.TS_ChannelMonitor_get_relevant_txids(this_arg);
16888         return nativeResponseValue;
16889 }
16890         // MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
16891 /* @internal */
16892 export function ChannelMonitor_current_best_block(this_arg: number): number {
16893         if(!isWasmInitialized) {
16894                 throw new Error("initializeWasm() must be awaited first!");
16895         }
16896         const nativeResponseValue = wasm.TS_ChannelMonitor_current_best_block(this_arg);
16897         return nativeResponseValue;
16898 }
16899         // MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
16900 /* @internal */
16901 export function ChannelMonitor_get_claimable_balances(this_arg: number): number {
16902         if(!isWasmInitialized) {
16903                 throw new Error("initializeWasm() must be awaited first!");
16904         }
16905         const nativeResponseValue = wasm.TS_ChannelMonitor_get_claimable_balances(this_arg);
16906         return nativeResponseValue;
16907 }
16908         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ C2Tuple_BlockHashChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKKeysInterface *NONNULL_PTR arg);
16909 /* @internal */
16910 export function C2Tuple_BlockHashChannelMonitorZ_read(ser: number, arg: number): number {
16911         if(!isWasmInitialized) {
16912                 throw new Error("initializeWasm() must be awaited first!");
16913         }
16914         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_read(ser, arg);
16915         return nativeResponseValue;
16916 }
16917         // void OutPoint_free(struct LDKOutPoint this_obj);
16918 /* @internal */
16919 export function OutPoint_free(this_obj: number): void {
16920         if(!isWasmInitialized) {
16921                 throw new Error("initializeWasm() must be awaited first!");
16922         }
16923         const nativeResponseValue = wasm.TS_OutPoint_free(this_obj);
16924         // debug statements here
16925 }
16926         // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32];
16927 /* @internal */
16928 export function OutPoint_get_txid(this_ptr: number): number {
16929         if(!isWasmInitialized) {
16930                 throw new Error("initializeWasm() must be awaited first!");
16931         }
16932         const nativeResponseValue = wasm.TS_OutPoint_get_txid(this_ptr);
16933         return nativeResponseValue;
16934 }
16935         // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
16936 /* @internal */
16937 export function OutPoint_set_txid(this_ptr: number, val: number): void {
16938         if(!isWasmInitialized) {
16939                 throw new Error("initializeWasm() must be awaited first!");
16940         }
16941         const nativeResponseValue = wasm.TS_OutPoint_set_txid(this_ptr, val);
16942         // debug statements here
16943 }
16944         // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr);
16945 /* @internal */
16946 export function OutPoint_get_index(this_ptr: number): number {
16947         if(!isWasmInitialized) {
16948                 throw new Error("initializeWasm() must be awaited first!");
16949         }
16950         const nativeResponseValue = wasm.TS_OutPoint_get_index(this_ptr);
16951         return nativeResponseValue;
16952 }
16953         // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val);
16954 /* @internal */
16955 export function OutPoint_set_index(this_ptr: number, val: number): void {
16956         if(!isWasmInitialized) {
16957                 throw new Error("initializeWasm() must be awaited first!");
16958         }
16959         const nativeResponseValue = wasm.TS_OutPoint_set_index(this_ptr, val);
16960         // debug statements here
16961 }
16962         // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg);
16963 /* @internal */
16964 export function OutPoint_new(txid_arg: number, index_arg: number): number {
16965         if(!isWasmInitialized) {
16966                 throw new Error("initializeWasm() must be awaited first!");
16967         }
16968         const nativeResponseValue = wasm.TS_OutPoint_new(txid_arg, index_arg);
16969         return nativeResponseValue;
16970 }
16971         // uintptr_t OutPoint_clone_ptr(LDKOutPoint *NONNULL_PTR arg);
16972 /* @internal */
16973 export function OutPoint_clone_ptr(arg: number): number {
16974         if(!isWasmInitialized) {
16975                 throw new Error("initializeWasm() must be awaited first!");
16976         }
16977         const nativeResponseValue = wasm.TS_OutPoint_clone_ptr(arg);
16978         return nativeResponseValue;
16979 }
16980         // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig);
16981 /* @internal */
16982 export function OutPoint_clone(orig: number): number {
16983         if(!isWasmInitialized) {
16984                 throw new Error("initializeWasm() must be awaited first!");
16985         }
16986         const nativeResponseValue = wasm.TS_OutPoint_clone(orig);
16987         return nativeResponseValue;
16988 }
16989         // bool OutPoint_eq(const struct LDKOutPoint *NONNULL_PTR a, const struct LDKOutPoint *NONNULL_PTR b);
16990 /* @internal */
16991 export function OutPoint_eq(a: number, b: number): boolean {
16992         if(!isWasmInitialized) {
16993                 throw new Error("initializeWasm() must be awaited first!");
16994         }
16995         const nativeResponseValue = wasm.TS_OutPoint_eq(a, b);
16996         return nativeResponseValue;
16997 }
16998         // uint64_t OutPoint_hash(const struct LDKOutPoint *NONNULL_PTR o);
16999 /* @internal */
17000 export function OutPoint_hash(o: number): bigint {
17001         if(!isWasmInitialized) {
17002                 throw new Error("initializeWasm() must be awaited first!");
17003         }
17004         const nativeResponseValue = wasm.TS_OutPoint_hash(o);
17005         return nativeResponseValue;
17006 }
17007         // MUST_USE_RES struct LDKThirtyTwoBytes OutPoint_to_channel_id(const struct LDKOutPoint *NONNULL_PTR this_arg);
17008 /* @internal */
17009 export function OutPoint_to_channel_id(this_arg: number): number {
17010         if(!isWasmInitialized) {
17011                 throw new Error("initializeWasm() must be awaited first!");
17012         }
17013         const nativeResponseValue = wasm.TS_OutPoint_to_channel_id(this_arg);
17014         return nativeResponseValue;
17015 }
17016         // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj);
17017 /* @internal */
17018 export function OutPoint_write(obj: number): number {
17019         if(!isWasmInitialized) {
17020                 throw new Error("initializeWasm() must be awaited first!");
17021         }
17022         const nativeResponseValue = wasm.TS_OutPoint_write(obj);
17023         return nativeResponseValue;
17024 }
17025         // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser);
17026 /* @internal */
17027 export function OutPoint_read(ser: number): number {
17028         if(!isWasmInitialized) {
17029                 throw new Error("initializeWasm() must be awaited first!");
17030         }
17031         const nativeResponseValue = wasm.TS_OutPoint_read(ser);
17032         return nativeResponseValue;
17033 }
17034         // void DelayedPaymentOutputDescriptor_free(struct LDKDelayedPaymentOutputDescriptor this_obj);
17035 /* @internal */
17036 export function DelayedPaymentOutputDescriptor_free(this_obj: number): void {
17037         if(!isWasmInitialized) {
17038                 throw new Error("initializeWasm() must be awaited first!");
17039         }
17040         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_free(this_obj);
17041         // debug statements here
17042 }
17043         // struct LDKOutPoint DelayedPaymentOutputDescriptor_get_outpoint(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17044 /* @internal */
17045 export function DelayedPaymentOutputDescriptor_get_outpoint(this_ptr: number): number {
17046         if(!isWasmInitialized) {
17047                 throw new Error("initializeWasm() must be awaited first!");
17048         }
17049         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_outpoint(this_ptr);
17050         return nativeResponseValue;
17051 }
17052         // void DelayedPaymentOutputDescriptor_set_outpoint(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
17053 /* @internal */
17054 export function DelayedPaymentOutputDescriptor_set_outpoint(this_ptr: number, val: number): void {
17055         if(!isWasmInitialized) {
17056                 throw new Error("initializeWasm() must be awaited first!");
17057         }
17058         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_outpoint(this_ptr, val);
17059         // debug statements here
17060 }
17061         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_per_commitment_point(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17062 /* @internal */
17063 export function DelayedPaymentOutputDescriptor_get_per_commitment_point(this_ptr: number): number {
17064         if(!isWasmInitialized) {
17065                 throw new Error("initializeWasm() must be awaited first!");
17066         }
17067         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_per_commitment_point(this_ptr);
17068         return nativeResponseValue;
17069 }
17070         // void DelayedPaymentOutputDescriptor_set_per_commitment_point(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
17071 /* @internal */
17072 export function DelayedPaymentOutputDescriptor_set_per_commitment_point(this_ptr: number, val: number): void {
17073         if(!isWasmInitialized) {
17074                 throw new Error("initializeWasm() must be awaited first!");
17075         }
17076         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_per_commitment_point(this_ptr, val);
17077         // debug statements here
17078 }
17079         // uint16_t DelayedPaymentOutputDescriptor_get_to_self_delay(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17080 /* @internal */
17081 export function DelayedPaymentOutputDescriptor_get_to_self_delay(this_ptr: number): number {
17082         if(!isWasmInitialized) {
17083                 throw new Error("initializeWasm() must be awaited first!");
17084         }
17085         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_to_self_delay(this_ptr);
17086         return nativeResponseValue;
17087 }
17088         // void DelayedPaymentOutputDescriptor_set_to_self_delay(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint16_t val);
17089 /* @internal */
17090 export function DelayedPaymentOutputDescriptor_set_to_self_delay(this_ptr: number, val: number): void {
17091         if(!isWasmInitialized) {
17092                 throw new Error("initializeWasm() must be awaited first!");
17093         }
17094         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_to_self_delay(this_ptr, val);
17095         // debug statements here
17096 }
17097         // void DelayedPaymentOutputDescriptor_set_output(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
17098 /* @internal */
17099 export function DelayedPaymentOutputDescriptor_set_output(this_ptr: number, val: number): void {
17100         if(!isWasmInitialized) {
17101                 throw new Error("initializeWasm() must be awaited first!");
17102         }
17103         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_output(this_ptr, val);
17104         // debug statements here
17105 }
17106         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_revocation_pubkey(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17107 /* @internal */
17108 export function DelayedPaymentOutputDescriptor_get_revocation_pubkey(this_ptr: number): number {
17109         if(!isWasmInitialized) {
17110                 throw new Error("initializeWasm() must be awaited first!");
17111         }
17112         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_revocation_pubkey(this_ptr);
17113         return nativeResponseValue;
17114 }
17115         // void DelayedPaymentOutputDescriptor_set_revocation_pubkey(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
17116 /* @internal */
17117 export function DelayedPaymentOutputDescriptor_set_revocation_pubkey(this_ptr: number, val: number): void {
17118         if(!isWasmInitialized) {
17119                 throw new Error("initializeWasm() must be awaited first!");
17120         }
17121         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_revocation_pubkey(this_ptr, val);
17122         // debug statements here
17123 }
17124         // const uint8_t (*DelayedPaymentOutputDescriptor_get_channel_keys_id(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
17125 /* @internal */
17126 export function DelayedPaymentOutputDescriptor_get_channel_keys_id(this_ptr: number): number {
17127         if(!isWasmInitialized) {
17128                 throw new Error("initializeWasm() must be awaited first!");
17129         }
17130         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_channel_keys_id(this_ptr);
17131         return nativeResponseValue;
17132 }
17133         // void DelayedPaymentOutputDescriptor_set_channel_keys_id(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
17134 /* @internal */
17135 export function DelayedPaymentOutputDescriptor_set_channel_keys_id(this_ptr: number, val: number): void {
17136         if(!isWasmInitialized) {
17137                 throw new Error("initializeWasm() must be awaited first!");
17138         }
17139         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_channel_keys_id(this_ptr, val);
17140         // debug statements here
17141 }
17142         // uint64_t DelayedPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17143 /* @internal */
17144 export function DelayedPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr: number): bigint {
17145         if(!isWasmInitialized) {
17146                 throw new Error("initializeWasm() must be awaited first!");
17147         }
17148         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr);
17149         return nativeResponseValue;
17150 }
17151         // void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
17152 /* @internal */
17153 export function DelayedPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr: number, val: bigint): void {
17154         if(!isWasmInitialized) {
17155                 throw new Error("initializeWasm() must be awaited first!");
17156         }
17157         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr, val);
17158         // debug statements here
17159 }
17160         // MUST_USE_RES struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_new(struct LDKOutPoint outpoint_arg, struct LDKPublicKey per_commitment_point_arg, uint16_t to_self_delay_arg, struct LDKTxOut output_arg, struct LDKPublicKey revocation_pubkey_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg);
17161 /* @internal */
17162 export function DelayedPaymentOutputDescriptor_new(outpoint_arg: number, per_commitment_point_arg: number, to_self_delay_arg: number, output_arg: number, revocation_pubkey_arg: number, channel_keys_id_arg: number, channel_value_satoshis_arg: bigint): number {
17163         if(!isWasmInitialized) {
17164                 throw new Error("initializeWasm() must be awaited first!");
17165         }
17166         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_new(outpoint_arg, per_commitment_point_arg, to_self_delay_arg, output_arg, revocation_pubkey_arg, channel_keys_id_arg, channel_value_satoshis_arg);
17167         return nativeResponseValue;
17168 }
17169         // uintptr_t DelayedPaymentOutputDescriptor_clone_ptr(LDKDelayedPaymentOutputDescriptor *NONNULL_PTR arg);
17170 /* @internal */
17171 export function DelayedPaymentOutputDescriptor_clone_ptr(arg: number): number {
17172         if(!isWasmInitialized) {
17173                 throw new Error("initializeWasm() must be awaited first!");
17174         }
17175         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_clone_ptr(arg);
17176         return nativeResponseValue;
17177 }
17178         // struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_clone(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR orig);
17179 /* @internal */
17180 export function DelayedPaymentOutputDescriptor_clone(orig: number): number {
17181         if(!isWasmInitialized) {
17182                 throw new Error("initializeWasm() must be awaited first!");
17183         }
17184         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_clone(orig);
17185         return nativeResponseValue;
17186 }
17187         // struct LDKCVec_u8Z DelayedPaymentOutputDescriptor_write(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR obj);
17188 /* @internal */
17189 export function DelayedPaymentOutputDescriptor_write(obj: number): number {
17190         if(!isWasmInitialized) {
17191                 throw new Error("initializeWasm() must be awaited first!");
17192         }
17193         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_write(obj);
17194         return nativeResponseValue;
17195 }
17196         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ DelayedPaymentOutputDescriptor_read(struct LDKu8slice ser);
17197 /* @internal */
17198 export function DelayedPaymentOutputDescriptor_read(ser: number): number {
17199         if(!isWasmInitialized) {
17200                 throw new Error("initializeWasm() must be awaited first!");
17201         }
17202         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_read(ser);
17203         return nativeResponseValue;
17204 }
17205         // void StaticPaymentOutputDescriptor_free(struct LDKStaticPaymentOutputDescriptor this_obj);
17206 /* @internal */
17207 export function StaticPaymentOutputDescriptor_free(this_obj: number): void {
17208         if(!isWasmInitialized) {
17209                 throw new Error("initializeWasm() must be awaited first!");
17210         }
17211         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_free(this_obj);
17212         // debug statements here
17213 }
17214         // struct LDKOutPoint StaticPaymentOutputDescriptor_get_outpoint(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17215 /* @internal */
17216 export function StaticPaymentOutputDescriptor_get_outpoint(this_ptr: number): number {
17217         if(!isWasmInitialized) {
17218                 throw new Error("initializeWasm() must be awaited first!");
17219         }
17220         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_outpoint(this_ptr);
17221         return nativeResponseValue;
17222 }
17223         // void StaticPaymentOutputDescriptor_set_outpoint(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
17224 /* @internal */
17225 export function StaticPaymentOutputDescriptor_set_outpoint(this_ptr: number, val: number): void {
17226         if(!isWasmInitialized) {
17227                 throw new Error("initializeWasm() must be awaited first!");
17228         }
17229         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_outpoint(this_ptr, val);
17230         // debug statements here
17231 }
17232         // void StaticPaymentOutputDescriptor_set_output(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
17233 /* @internal */
17234 export function StaticPaymentOutputDescriptor_set_output(this_ptr: number, val: number): void {
17235         if(!isWasmInitialized) {
17236                 throw new Error("initializeWasm() must be awaited first!");
17237         }
17238         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_output(this_ptr, val);
17239         // debug statements here
17240 }
17241         // const uint8_t (*StaticPaymentOutputDescriptor_get_channel_keys_id(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
17242 /* @internal */
17243 export function StaticPaymentOutputDescriptor_get_channel_keys_id(this_ptr: number): number {
17244         if(!isWasmInitialized) {
17245                 throw new Error("initializeWasm() must be awaited first!");
17246         }
17247         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_channel_keys_id(this_ptr);
17248         return nativeResponseValue;
17249 }
17250         // void StaticPaymentOutputDescriptor_set_channel_keys_id(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
17251 /* @internal */
17252 export function StaticPaymentOutputDescriptor_set_channel_keys_id(this_ptr: number, val: number): void {
17253         if(!isWasmInitialized) {
17254                 throw new Error("initializeWasm() must be awaited first!");
17255         }
17256         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_channel_keys_id(this_ptr, val);
17257         // debug statements here
17258 }
17259         // uint64_t StaticPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17260 /* @internal */
17261 export function StaticPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr: number): bigint {
17262         if(!isWasmInitialized) {
17263                 throw new Error("initializeWasm() must be awaited first!");
17264         }
17265         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr);
17266         return nativeResponseValue;
17267 }
17268         // void StaticPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
17269 /* @internal */
17270 export function StaticPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr: number, val: bigint): void {
17271         if(!isWasmInitialized) {
17272                 throw new Error("initializeWasm() must be awaited first!");
17273         }
17274         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr, val);
17275         // debug statements here
17276 }
17277         // MUST_USE_RES struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut output_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg);
17278 /* @internal */
17279 export function StaticPaymentOutputDescriptor_new(outpoint_arg: number, output_arg: number, channel_keys_id_arg: number, channel_value_satoshis_arg: bigint): number {
17280         if(!isWasmInitialized) {
17281                 throw new Error("initializeWasm() must be awaited first!");
17282         }
17283         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_new(outpoint_arg, output_arg, channel_keys_id_arg, channel_value_satoshis_arg);
17284         return nativeResponseValue;
17285 }
17286         // uintptr_t StaticPaymentOutputDescriptor_clone_ptr(LDKStaticPaymentOutputDescriptor *NONNULL_PTR arg);
17287 /* @internal */
17288 export function StaticPaymentOutputDescriptor_clone_ptr(arg: number): number {
17289         if(!isWasmInitialized) {
17290                 throw new Error("initializeWasm() must be awaited first!");
17291         }
17292         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_clone_ptr(arg);
17293         return nativeResponseValue;
17294 }
17295         // struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR orig);
17296 /* @internal */
17297 export function StaticPaymentOutputDescriptor_clone(orig: number): number {
17298         if(!isWasmInitialized) {
17299                 throw new Error("initializeWasm() must be awaited first!");
17300         }
17301         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_clone(orig);
17302         return nativeResponseValue;
17303 }
17304         // struct LDKCVec_u8Z StaticPaymentOutputDescriptor_write(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR obj);
17305 /* @internal */
17306 export function StaticPaymentOutputDescriptor_write(obj: number): number {
17307         if(!isWasmInitialized) {
17308                 throw new Error("initializeWasm() must be awaited first!");
17309         }
17310         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_write(obj);
17311         return nativeResponseValue;
17312 }
17313         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ StaticPaymentOutputDescriptor_read(struct LDKu8slice ser);
17314 /* @internal */
17315 export function StaticPaymentOutputDescriptor_read(ser: number): number {
17316         if(!isWasmInitialized) {
17317                 throw new Error("initializeWasm() must be awaited first!");
17318         }
17319         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_read(ser);
17320         return nativeResponseValue;
17321 }
17322         // void SpendableOutputDescriptor_free(struct LDKSpendableOutputDescriptor this_ptr);
17323 /* @internal */
17324 export function SpendableOutputDescriptor_free(this_ptr: number): void {
17325         if(!isWasmInitialized) {
17326                 throw new Error("initializeWasm() must be awaited first!");
17327         }
17328         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_free(this_ptr);
17329         // debug statements here
17330 }
17331         // uintptr_t SpendableOutputDescriptor_clone_ptr(LDKSpendableOutputDescriptor *NONNULL_PTR arg);
17332 /* @internal */
17333 export function SpendableOutputDescriptor_clone_ptr(arg: number): number {
17334         if(!isWasmInitialized) {
17335                 throw new Error("initializeWasm() must be awaited first!");
17336         }
17337         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_clone_ptr(arg);
17338         return nativeResponseValue;
17339 }
17340         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_clone(const struct LDKSpendableOutputDescriptor *NONNULL_PTR orig);
17341 /* @internal */
17342 export function SpendableOutputDescriptor_clone(orig: number): number {
17343         if(!isWasmInitialized) {
17344                 throw new Error("initializeWasm() must be awaited first!");
17345         }
17346         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_clone(orig);
17347         return nativeResponseValue;
17348 }
17349         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_output(struct LDKOutPoint outpoint, struct LDKTxOut output);
17350 /* @internal */
17351 export function SpendableOutputDescriptor_static_output(outpoint: number, output: number): number {
17352         if(!isWasmInitialized) {
17353                 throw new Error("initializeWasm() must be awaited first!");
17354         }
17355         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_static_output(outpoint, output);
17356         return nativeResponseValue;
17357 }
17358         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_delayed_payment_output(struct LDKDelayedPaymentOutputDescriptor a);
17359 /* @internal */
17360 export function SpendableOutputDescriptor_delayed_payment_output(a: number): number {
17361         if(!isWasmInitialized) {
17362                 throw new Error("initializeWasm() must be awaited first!");
17363         }
17364         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_delayed_payment_output(a);
17365         return nativeResponseValue;
17366 }
17367         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_payment_output(struct LDKStaticPaymentOutputDescriptor a);
17368 /* @internal */
17369 export function SpendableOutputDescriptor_static_payment_output(a: number): number {
17370         if(!isWasmInitialized) {
17371                 throw new Error("initializeWasm() must be awaited first!");
17372         }
17373         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_static_payment_output(a);
17374         return nativeResponseValue;
17375 }
17376         // struct LDKCVec_u8Z SpendableOutputDescriptor_write(const struct LDKSpendableOutputDescriptor *NONNULL_PTR obj);
17377 /* @internal */
17378 export function SpendableOutputDescriptor_write(obj: number): number {
17379         if(!isWasmInitialized) {
17380                 throw new Error("initializeWasm() must be awaited first!");
17381         }
17382         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_write(obj);
17383         return nativeResponseValue;
17384 }
17385         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescriptor_read(struct LDKu8slice ser);
17386 /* @internal */
17387 export function SpendableOutputDescriptor_read(ser: number): number {
17388         if(!isWasmInitialized) {
17389                 throw new Error("initializeWasm() must be awaited first!");
17390         }
17391         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_read(ser);
17392         return nativeResponseValue;
17393 }
17394         // void BaseSign_free(struct LDKBaseSign this_ptr);
17395 /* @internal */
17396 export function BaseSign_free(this_ptr: number): void {
17397         if(!isWasmInitialized) {
17398                 throw new Error("initializeWasm() must be awaited first!");
17399         }
17400         const nativeResponseValue = wasm.TS_BaseSign_free(this_ptr);
17401         // debug statements here
17402 }
17403         // uintptr_t Sign_clone_ptr(LDKSign *NONNULL_PTR arg);
17404 /* @internal */
17405 export function Sign_clone_ptr(arg: number): number {
17406         if(!isWasmInitialized) {
17407                 throw new Error("initializeWasm() must be awaited first!");
17408         }
17409         const nativeResponseValue = wasm.TS_Sign_clone_ptr(arg);
17410         return nativeResponseValue;
17411 }
17412         // struct LDKSign Sign_clone(const struct LDKSign *NONNULL_PTR orig);
17413 /* @internal */
17414 export function Sign_clone(orig: number): number {
17415         if(!isWasmInitialized) {
17416                 throw new Error("initializeWasm() must be awaited first!");
17417         }
17418         const nativeResponseValue = wasm.TS_Sign_clone(orig);
17419         return nativeResponseValue;
17420 }
17421         // void Sign_free(struct LDKSign this_ptr);
17422 /* @internal */
17423 export function Sign_free(this_ptr: number): void {
17424         if(!isWasmInitialized) {
17425                 throw new Error("initializeWasm() must be awaited first!");
17426         }
17427         const nativeResponseValue = wasm.TS_Sign_free(this_ptr);
17428         // debug statements here
17429 }
17430         // enum LDKRecipient Recipient_clone(const enum LDKRecipient *NONNULL_PTR orig);
17431 /* @internal */
17432 export function Recipient_clone(orig: number): Recipient {
17433         if(!isWasmInitialized) {
17434                 throw new Error("initializeWasm() must be awaited first!");
17435         }
17436         const nativeResponseValue = wasm.TS_Recipient_clone(orig);
17437         return nativeResponseValue;
17438 }
17439         // enum LDKRecipient Recipient_node(void);
17440 /* @internal */
17441 export function Recipient_node(): Recipient {
17442         if(!isWasmInitialized) {
17443                 throw new Error("initializeWasm() must be awaited first!");
17444         }
17445         const nativeResponseValue = wasm.TS_Recipient_node();
17446         return nativeResponseValue;
17447 }
17448         // enum LDKRecipient Recipient_phantom_node(void);
17449 /* @internal */
17450 export function Recipient_phantom_node(): Recipient {
17451         if(!isWasmInitialized) {
17452                 throw new Error("initializeWasm() must be awaited first!");
17453         }
17454         const nativeResponseValue = wasm.TS_Recipient_phantom_node();
17455         return nativeResponseValue;
17456 }
17457         // void KeysInterface_free(struct LDKKeysInterface this_ptr);
17458 /* @internal */
17459 export function KeysInterface_free(this_ptr: number): void {
17460         if(!isWasmInitialized) {
17461                 throw new Error("initializeWasm() must be awaited first!");
17462         }
17463         const nativeResponseValue = wasm.TS_KeysInterface_free(this_ptr);
17464         // debug statements here
17465 }
17466         // void InMemorySigner_free(struct LDKInMemorySigner this_obj);
17467 /* @internal */
17468 export function InMemorySigner_free(this_obj: number): void {
17469         if(!isWasmInitialized) {
17470                 throw new Error("initializeWasm() must be awaited first!");
17471         }
17472         const nativeResponseValue = wasm.TS_InMemorySigner_free(this_obj);
17473         // debug statements here
17474 }
17475         // const uint8_t (*InMemorySigner_get_funding_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
17476 /* @internal */
17477 export function InMemorySigner_get_funding_key(this_ptr: number): number {
17478         if(!isWasmInitialized) {
17479                 throw new Error("initializeWasm() must be awaited first!");
17480         }
17481         const nativeResponseValue = wasm.TS_InMemorySigner_get_funding_key(this_ptr);
17482         return nativeResponseValue;
17483 }
17484         // void InMemorySigner_set_funding_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
17485 /* @internal */
17486 export function InMemorySigner_set_funding_key(this_ptr: number, val: number): void {
17487         if(!isWasmInitialized) {
17488                 throw new Error("initializeWasm() must be awaited first!");
17489         }
17490         const nativeResponseValue = wasm.TS_InMemorySigner_set_funding_key(this_ptr, val);
17491         // debug statements here
17492 }
17493         // const uint8_t (*InMemorySigner_get_revocation_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
17494 /* @internal */
17495 export function InMemorySigner_get_revocation_base_key(this_ptr: number): number {
17496         if(!isWasmInitialized) {
17497                 throw new Error("initializeWasm() must be awaited first!");
17498         }
17499         const nativeResponseValue = wasm.TS_InMemorySigner_get_revocation_base_key(this_ptr);
17500         return nativeResponseValue;
17501 }
17502         // void InMemorySigner_set_revocation_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
17503 /* @internal */
17504 export function InMemorySigner_set_revocation_base_key(this_ptr: number, val: number): void {
17505         if(!isWasmInitialized) {
17506                 throw new Error("initializeWasm() must be awaited first!");
17507         }
17508         const nativeResponseValue = wasm.TS_InMemorySigner_set_revocation_base_key(this_ptr, val);
17509         // debug statements here
17510 }
17511         // const uint8_t (*InMemorySigner_get_payment_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
17512 /* @internal */
17513 export function InMemorySigner_get_payment_key(this_ptr: number): number {
17514         if(!isWasmInitialized) {
17515                 throw new Error("initializeWasm() must be awaited first!");
17516         }
17517         const nativeResponseValue = wasm.TS_InMemorySigner_get_payment_key(this_ptr);
17518         return nativeResponseValue;
17519 }
17520         // void InMemorySigner_set_payment_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
17521 /* @internal */
17522 export function InMemorySigner_set_payment_key(this_ptr: number, val: number): void {
17523         if(!isWasmInitialized) {
17524                 throw new Error("initializeWasm() must be awaited first!");
17525         }
17526         const nativeResponseValue = wasm.TS_InMemorySigner_set_payment_key(this_ptr, val);
17527         // debug statements here
17528 }
17529         // const uint8_t (*InMemorySigner_get_delayed_payment_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
17530 /* @internal */
17531 export function InMemorySigner_get_delayed_payment_base_key(this_ptr: number): number {
17532         if(!isWasmInitialized) {
17533                 throw new Error("initializeWasm() must be awaited first!");
17534         }
17535         const nativeResponseValue = wasm.TS_InMemorySigner_get_delayed_payment_base_key(this_ptr);
17536         return nativeResponseValue;
17537 }
17538         // void InMemorySigner_set_delayed_payment_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
17539 /* @internal */
17540 export function InMemorySigner_set_delayed_payment_base_key(this_ptr: number, val: number): void {
17541         if(!isWasmInitialized) {
17542                 throw new Error("initializeWasm() must be awaited first!");
17543         }
17544         const nativeResponseValue = wasm.TS_InMemorySigner_set_delayed_payment_base_key(this_ptr, val);
17545         // debug statements here
17546 }
17547         // const uint8_t (*InMemorySigner_get_htlc_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
17548 /* @internal */
17549 export function InMemorySigner_get_htlc_base_key(this_ptr: number): number {
17550         if(!isWasmInitialized) {
17551                 throw new Error("initializeWasm() must be awaited first!");
17552         }
17553         const nativeResponseValue = wasm.TS_InMemorySigner_get_htlc_base_key(this_ptr);
17554         return nativeResponseValue;
17555 }
17556         // void InMemorySigner_set_htlc_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
17557 /* @internal */
17558 export function InMemorySigner_set_htlc_base_key(this_ptr: number, val: number): void {
17559         if(!isWasmInitialized) {
17560                 throw new Error("initializeWasm() must be awaited first!");
17561         }
17562         const nativeResponseValue = wasm.TS_InMemorySigner_set_htlc_base_key(this_ptr, val);
17563         // debug statements here
17564 }
17565         // const uint8_t (*InMemorySigner_get_commitment_seed(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
17566 /* @internal */
17567 export function InMemorySigner_get_commitment_seed(this_ptr: number): number {
17568         if(!isWasmInitialized) {
17569                 throw new Error("initializeWasm() must be awaited first!");
17570         }
17571         const nativeResponseValue = wasm.TS_InMemorySigner_get_commitment_seed(this_ptr);
17572         return nativeResponseValue;
17573 }
17574         // void InMemorySigner_set_commitment_seed(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
17575 /* @internal */
17576 export function InMemorySigner_set_commitment_seed(this_ptr: number, val: number): void {
17577         if(!isWasmInitialized) {
17578                 throw new Error("initializeWasm() must be awaited first!");
17579         }
17580         const nativeResponseValue = wasm.TS_InMemorySigner_set_commitment_seed(this_ptr, val);
17581         // debug statements here
17582 }
17583         // uintptr_t InMemorySigner_clone_ptr(LDKInMemorySigner *NONNULL_PTR arg);
17584 /* @internal */
17585 export function InMemorySigner_clone_ptr(arg: number): number {
17586         if(!isWasmInitialized) {
17587                 throw new Error("initializeWasm() must be awaited first!");
17588         }
17589         const nativeResponseValue = wasm.TS_InMemorySigner_clone_ptr(arg);
17590         return nativeResponseValue;
17591 }
17592         // struct LDKInMemorySigner InMemorySigner_clone(const struct LDKInMemorySigner *NONNULL_PTR orig);
17593 /* @internal */
17594 export function InMemorySigner_clone(orig: number): number {
17595         if(!isWasmInitialized) {
17596                 throw new Error("initializeWasm() must be awaited first!");
17597         }
17598         const nativeResponseValue = wasm.TS_InMemorySigner_clone(orig);
17599         return nativeResponseValue;
17600 }
17601         // MUST_USE_RES struct LDKInMemorySigner InMemorySigner_new(struct LDKSecretKey node_secret, struct LDKSecretKey funding_key, struct LDKSecretKey revocation_base_key, struct LDKSecretKey payment_key, struct LDKSecretKey delayed_payment_base_key, struct LDKSecretKey htlc_base_key, struct LDKThirtyTwoBytes commitment_seed, uint64_t channel_value_satoshis, struct LDKThirtyTwoBytes channel_keys_id);
17602 /* @internal */
17603 export function InMemorySigner_new(node_secret: number, funding_key: number, revocation_base_key: number, payment_key: number, delayed_payment_base_key: number, htlc_base_key: number, commitment_seed: number, channel_value_satoshis: bigint, channel_keys_id: number): number {
17604         if(!isWasmInitialized) {
17605                 throw new Error("initializeWasm() must be awaited first!");
17606         }
17607         const nativeResponseValue = wasm.TS_InMemorySigner_new(node_secret, funding_key, revocation_base_key, payment_key, delayed_payment_base_key, htlc_base_key, commitment_seed, channel_value_satoshis, channel_keys_id);
17608         return nativeResponseValue;
17609 }
17610         // MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
17611 /* @internal */
17612 export function InMemorySigner_counterparty_pubkeys(this_arg: number): number {
17613         if(!isWasmInitialized) {
17614                 throw new Error("initializeWasm() must be awaited first!");
17615         }
17616         const nativeResponseValue = wasm.TS_InMemorySigner_counterparty_pubkeys(this_arg);
17617         return nativeResponseValue;
17618 }
17619         // MUST_USE_RES uint16_t InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
17620 /* @internal */
17621 export function InMemorySigner_counterparty_selected_contest_delay(this_arg: number): number {
17622         if(!isWasmInitialized) {
17623                 throw new Error("initializeWasm() must be awaited first!");
17624         }
17625         const nativeResponseValue = wasm.TS_InMemorySigner_counterparty_selected_contest_delay(this_arg);
17626         return nativeResponseValue;
17627 }
17628         // MUST_USE_RES uint16_t InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
17629 /* @internal */
17630 export function InMemorySigner_holder_selected_contest_delay(this_arg: number): number {
17631         if(!isWasmInitialized) {
17632                 throw new Error("initializeWasm() must be awaited first!");
17633         }
17634         const nativeResponseValue = wasm.TS_InMemorySigner_holder_selected_contest_delay(this_arg);
17635         return nativeResponseValue;
17636 }
17637         // MUST_USE_RES bool InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
17638 /* @internal */
17639 export function InMemorySigner_is_outbound(this_arg: number): boolean {
17640         if(!isWasmInitialized) {
17641                 throw new Error("initializeWasm() must be awaited first!");
17642         }
17643         const nativeResponseValue = wasm.TS_InMemorySigner_is_outbound(this_arg);
17644         return nativeResponseValue;
17645 }
17646         // MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
17647 /* @internal */
17648 export function InMemorySigner_funding_outpoint(this_arg: number): number {
17649         if(!isWasmInitialized) {
17650                 throw new Error("initializeWasm() must be awaited first!");
17651         }
17652         const nativeResponseValue = wasm.TS_InMemorySigner_funding_outpoint(this_arg);
17653         return nativeResponseValue;
17654 }
17655         // MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_parameters(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
17656 /* @internal */
17657 export function InMemorySigner_get_channel_parameters(this_arg: number): number {
17658         if(!isWasmInitialized) {
17659                 throw new Error("initializeWasm() must be awaited first!");
17660         }
17661         const nativeResponseValue = wasm.TS_InMemorySigner_get_channel_parameters(this_arg);
17662         return nativeResponseValue;
17663 }
17664         // MUST_USE_RES bool InMemorySigner_opt_anchors(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
17665 /* @internal */
17666 export function InMemorySigner_opt_anchors(this_arg: number): boolean {
17667         if(!isWasmInitialized) {
17668                 throw new Error("initializeWasm() must be awaited first!");
17669         }
17670         const nativeResponseValue = wasm.TS_InMemorySigner_opt_anchors(this_arg);
17671         return nativeResponseValue;
17672 }
17673         // MUST_USE_RES struct LDKCResult_CVec_CVec_u8ZZNoneZ InMemorySigner_sign_counterparty_payment_input(const struct LDKInMemorySigner *NONNULL_PTR this_arg, struct LDKTransaction spend_tx, uintptr_t input_idx, const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR descriptor);
17674 /* @internal */
17675 export function InMemorySigner_sign_counterparty_payment_input(this_arg: number, spend_tx: number, input_idx: number, descriptor: number): number {
17676         if(!isWasmInitialized) {
17677                 throw new Error("initializeWasm() must be awaited first!");
17678         }
17679         const nativeResponseValue = wasm.TS_InMemorySigner_sign_counterparty_payment_input(this_arg, spend_tx, input_idx, descriptor);
17680         return nativeResponseValue;
17681 }
17682         // MUST_USE_RES struct LDKCResult_CVec_CVec_u8ZZNoneZ InMemorySigner_sign_dynamic_p2wsh_input(const struct LDKInMemorySigner *NONNULL_PTR this_arg, struct LDKTransaction spend_tx, uintptr_t input_idx, const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR descriptor);
17683 /* @internal */
17684 export function InMemorySigner_sign_dynamic_p2wsh_input(this_arg: number, spend_tx: number, input_idx: number, descriptor: number): number {
17685         if(!isWasmInitialized) {
17686                 throw new Error("initializeWasm() must be awaited first!");
17687         }
17688         const nativeResponseValue = wasm.TS_InMemorySigner_sign_dynamic_p2wsh_input(this_arg, spend_tx, input_idx, descriptor);
17689         return nativeResponseValue;
17690 }
17691         // struct LDKBaseSign InMemorySigner_as_BaseSign(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
17692 /* @internal */
17693 export function InMemorySigner_as_BaseSign(this_arg: number): number {
17694         if(!isWasmInitialized) {
17695                 throw new Error("initializeWasm() must be awaited first!");
17696         }
17697         const nativeResponseValue = wasm.TS_InMemorySigner_as_BaseSign(this_arg);
17698         return nativeResponseValue;
17699 }
17700         // struct LDKSign InMemorySigner_as_Sign(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
17701 /* @internal */
17702 export function InMemorySigner_as_Sign(this_arg: number): number {
17703         if(!isWasmInitialized) {
17704                 throw new Error("initializeWasm() must be awaited first!");
17705         }
17706         const nativeResponseValue = wasm.TS_InMemorySigner_as_Sign(this_arg);
17707         return nativeResponseValue;
17708 }
17709         // struct LDKCVec_u8Z InMemorySigner_write(const struct LDKInMemorySigner *NONNULL_PTR obj);
17710 /* @internal */
17711 export function InMemorySigner_write(obj: number): number {
17712         if(!isWasmInitialized) {
17713                 throw new Error("initializeWasm() must be awaited first!");
17714         }
17715         const nativeResponseValue = wasm.TS_InMemorySigner_write(obj);
17716         return nativeResponseValue;
17717 }
17718         // struct LDKCResult_InMemorySignerDecodeErrorZ InMemorySigner_read(struct LDKu8slice ser, struct LDKSecretKey arg);
17719 /* @internal */
17720 export function InMemorySigner_read(ser: number, arg: number): number {
17721         if(!isWasmInitialized) {
17722                 throw new Error("initializeWasm() must be awaited first!");
17723         }
17724         const nativeResponseValue = wasm.TS_InMemorySigner_read(ser, arg);
17725         return nativeResponseValue;
17726 }
17727         // void KeysManager_free(struct LDKKeysManager this_obj);
17728 /* @internal */
17729 export function KeysManager_free(this_obj: number): void {
17730         if(!isWasmInitialized) {
17731                 throw new Error("initializeWasm() must be awaited first!");
17732         }
17733         const nativeResponseValue = wasm.TS_KeysManager_free(this_obj);
17734         // debug statements here
17735 }
17736         // MUST_USE_RES struct LDKKeysManager KeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos);
17737 /* @internal */
17738 export function KeysManager_new(seed: number, starting_time_secs: bigint, starting_time_nanos: number): number {
17739         if(!isWasmInitialized) {
17740                 throw new Error("initializeWasm() must be awaited first!");
17741         }
17742         const nativeResponseValue = wasm.TS_KeysManager_new(seed, starting_time_secs, starting_time_nanos);
17743         return nativeResponseValue;
17744 }
17745         // MUST_USE_RES struct LDKInMemorySigner KeysManager_derive_channel_keys(const struct LDKKeysManager *NONNULL_PTR this_arg, uint64_t channel_value_satoshis, const uint8_t (*params)[32]);
17746 /* @internal */
17747 export function KeysManager_derive_channel_keys(this_arg: number, channel_value_satoshis: bigint, params: number): number {
17748         if(!isWasmInitialized) {
17749                 throw new Error("initializeWasm() must be awaited first!");
17750         }
17751         const nativeResponseValue = wasm.TS_KeysManager_derive_channel_keys(this_arg, channel_value_satoshis, params);
17752         return nativeResponseValue;
17753 }
17754         // MUST_USE_RES struct LDKCResult_TransactionNoneZ KeysManager_spend_spendable_outputs(const struct LDKKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight);
17755 /* @internal */
17756 export function KeysManager_spend_spendable_outputs(this_arg: number, descriptors: number, outputs: number, change_destination_script: number, feerate_sat_per_1000_weight: number): number {
17757         if(!isWasmInitialized) {
17758                 throw new Error("initializeWasm() must be awaited first!");
17759         }
17760         const nativeResponseValue = wasm.TS_KeysManager_spend_spendable_outputs(this_arg, descriptors, outputs, change_destination_script, feerate_sat_per_1000_weight);
17761         return nativeResponseValue;
17762 }
17763         // struct LDKKeysInterface KeysManager_as_KeysInterface(const struct LDKKeysManager *NONNULL_PTR this_arg);
17764 /* @internal */
17765 export function KeysManager_as_KeysInterface(this_arg: number): number {
17766         if(!isWasmInitialized) {
17767                 throw new Error("initializeWasm() must be awaited first!");
17768         }
17769         const nativeResponseValue = wasm.TS_KeysManager_as_KeysInterface(this_arg);
17770         return nativeResponseValue;
17771 }
17772         // void PhantomKeysManager_free(struct LDKPhantomKeysManager this_obj);
17773 /* @internal */
17774 export function PhantomKeysManager_free(this_obj: number): void {
17775         if(!isWasmInitialized) {
17776                 throw new Error("initializeWasm() must be awaited first!");
17777         }
17778         const nativeResponseValue = wasm.TS_PhantomKeysManager_free(this_obj);
17779         // debug statements here
17780 }
17781         // struct LDKKeysInterface PhantomKeysManager_as_KeysInterface(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
17782 /* @internal */
17783 export function PhantomKeysManager_as_KeysInterface(this_arg: number): number {
17784         if(!isWasmInitialized) {
17785                 throw new Error("initializeWasm() must be awaited first!");
17786         }
17787         const nativeResponseValue = wasm.TS_PhantomKeysManager_as_KeysInterface(this_arg);
17788         return nativeResponseValue;
17789 }
17790         // MUST_USE_RES struct LDKPhantomKeysManager PhantomKeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos, const uint8_t (*cross_node_seed)[32]);
17791 /* @internal */
17792 export function PhantomKeysManager_new(seed: number, starting_time_secs: bigint, starting_time_nanos: number, cross_node_seed: number): number {
17793         if(!isWasmInitialized) {
17794                 throw new Error("initializeWasm() must be awaited first!");
17795         }
17796         const nativeResponseValue = wasm.TS_PhantomKeysManager_new(seed, starting_time_secs, starting_time_nanos, cross_node_seed);
17797         return nativeResponseValue;
17798 }
17799         // MUST_USE_RES struct LDKCResult_TransactionNoneZ PhantomKeysManager_spend_spendable_outputs(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight);
17800 /* @internal */
17801 export function PhantomKeysManager_spend_spendable_outputs(this_arg: number, descriptors: number, outputs: number, change_destination_script: number, feerate_sat_per_1000_weight: number): number {
17802         if(!isWasmInitialized) {
17803                 throw new Error("initializeWasm() must be awaited first!");
17804         }
17805         const nativeResponseValue = wasm.TS_PhantomKeysManager_spend_spendable_outputs(this_arg, descriptors, outputs, change_destination_script, feerate_sat_per_1000_weight);
17806         return nativeResponseValue;
17807 }
17808         // MUST_USE_RES struct LDKInMemorySigner PhantomKeysManager_derive_channel_keys(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg, uint64_t channel_value_satoshis, const uint8_t (*params)[32]);
17809 /* @internal */
17810 export function PhantomKeysManager_derive_channel_keys(this_arg: number, channel_value_satoshis: bigint, params: number): number {
17811         if(!isWasmInitialized) {
17812                 throw new Error("initializeWasm() must be awaited first!");
17813         }
17814         const nativeResponseValue = wasm.TS_PhantomKeysManager_derive_channel_keys(this_arg, channel_value_satoshis, params);
17815         return nativeResponseValue;
17816 }
17817         // void ChannelManager_free(struct LDKChannelManager this_obj);
17818 /* @internal */
17819 export function ChannelManager_free(this_obj: number): void {
17820         if(!isWasmInitialized) {
17821                 throw new Error("initializeWasm() must be awaited first!");
17822         }
17823         const nativeResponseValue = wasm.TS_ChannelManager_free(this_obj);
17824         // debug statements here
17825 }
17826         // void ChainParameters_free(struct LDKChainParameters this_obj);
17827 /* @internal */
17828 export function ChainParameters_free(this_obj: number): void {
17829         if(!isWasmInitialized) {
17830                 throw new Error("initializeWasm() must be awaited first!");
17831         }
17832         const nativeResponseValue = wasm.TS_ChainParameters_free(this_obj);
17833         // debug statements here
17834 }
17835         // enum LDKNetwork ChainParameters_get_network(const struct LDKChainParameters *NONNULL_PTR this_ptr);
17836 /* @internal */
17837 export function ChainParameters_get_network(this_ptr: number): Network {
17838         if(!isWasmInitialized) {
17839                 throw new Error("initializeWasm() must be awaited first!");
17840         }
17841         const nativeResponseValue = wasm.TS_ChainParameters_get_network(this_ptr);
17842         return nativeResponseValue;
17843 }
17844         // void ChainParameters_set_network(struct LDKChainParameters *NONNULL_PTR this_ptr, enum LDKNetwork val);
17845 /* @internal */
17846 export function ChainParameters_set_network(this_ptr: number, val: Network): void {
17847         if(!isWasmInitialized) {
17848                 throw new Error("initializeWasm() must be awaited first!");
17849         }
17850         const nativeResponseValue = wasm.TS_ChainParameters_set_network(this_ptr, val);
17851         // debug statements here
17852 }
17853         // struct LDKBestBlock ChainParameters_get_best_block(const struct LDKChainParameters *NONNULL_PTR this_ptr);
17854 /* @internal */
17855 export function ChainParameters_get_best_block(this_ptr: number): number {
17856         if(!isWasmInitialized) {
17857                 throw new Error("initializeWasm() must be awaited first!");
17858         }
17859         const nativeResponseValue = wasm.TS_ChainParameters_get_best_block(this_ptr);
17860         return nativeResponseValue;
17861 }
17862         // void ChainParameters_set_best_block(struct LDKChainParameters *NONNULL_PTR this_ptr, struct LDKBestBlock val);
17863 /* @internal */
17864 export function ChainParameters_set_best_block(this_ptr: number, val: number): void {
17865         if(!isWasmInitialized) {
17866                 throw new Error("initializeWasm() must be awaited first!");
17867         }
17868         const nativeResponseValue = wasm.TS_ChainParameters_set_best_block(this_ptr, val);
17869         // debug statements here
17870 }
17871         // MUST_USE_RES struct LDKChainParameters ChainParameters_new(enum LDKNetwork network_arg, struct LDKBestBlock best_block_arg);
17872 /* @internal */
17873 export function ChainParameters_new(network_arg: Network, best_block_arg: number): number {
17874         if(!isWasmInitialized) {
17875                 throw new Error("initializeWasm() must be awaited first!");
17876         }
17877         const nativeResponseValue = wasm.TS_ChainParameters_new(network_arg, best_block_arg);
17878         return nativeResponseValue;
17879 }
17880         // uintptr_t ChainParameters_clone_ptr(LDKChainParameters *NONNULL_PTR arg);
17881 /* @internal */
17882 export function ChainParameters_clone_ptr(arg: number): number {
17883         if(!isWasmInitialized) {
17884                 throw new Error("initializeWasm() must be awaited first!");
17885         }
17886         const nativeResponseValue = wasm.TS_ChainParameters_clone_ptr(arg);
17887         return nativeResponseValue;
17888 }
17889         // struct LDKChainParameters ChainParameters_clone(const struct LDKChainParameters *NONNULL_PTR orig);
17890 /* @internal */
17891 export function ChainParameters_clone(orig: number): number {
17892         if(!isWasmInitialized) {
17893                 throw new Error("initializeWasm() must be awaited first!");
17894         }
17895         const nativeResponseValue = wasm.TS_ChainParameters_clone(orig);
17896         return nativeResponseValue;
17897 }
17898         // void CounterpartyForwardingInfo_free(struct LDKCounterpartyForwardingInfo this_obj);
17899 /* @internal */
17900 export function CounterpartyForwardingInfo_free(this_obj: number): void {
17901         if(!isWasmInitialized) {
17902                 throw new Error("initializeWasm() must be awaited first!");
17903         }
17904         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_free(this_obj);
17905         // debug statements here
17906 }
17907         // uint32_t CounterpartyForwardingInfo_get_fee_base_msat(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
17908 /* @internal */
17909 export function CounterpartyForwardingInfo_get_fee_base_msat(this_ptr: number): number {
17910         if(!isWasmInitialized) {
17911                 throw new Error("initializeWasm() must be awaited first!");
17912         }
17913         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_fee_base_msat(this_ptr);
17914         return nativeResponseValue;
17915 }
17916         // void CounterpartyForwardingInfo_set_fee_base_msat(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
17917 /* @internal */
17918 export function CounterpartyForwardingInfo_set_fee_base_msat(this_ptr: number, val: number): void {
17919         if(!isWasmInitialized) {
17920                 throw new Error("initializeWasm() must be awaited first!");
17921         }
17922         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_fee_base_msat(this_ptr, val);
17923         // debug statements here
17924 }
17925         // uint32_t CounterpartyForwardingInfo_get_fee_proportional_millionths(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
17926 /* @internal */
17927 export function CounterpartyForwardingInfo_get_fee_proportional_millionths(this_ptr: number): number {
17928         if(!isWasmInitialized) {
17929                 throw new Error("initializeWasm() must be awaited first!");
17930         }
17931         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_fee_proportional_millionths(this_ptr);
17932         return nativeResponseValue;
17933 }
17934         // void CounterpartyForwardingInfo_set_fee_proportional_millionths(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
17935 /* @internal */
17936 export function CounterpartyForwardingInfo_set_fee_proportional_millionths(this_ptr: number, val: number): void {
17937         if(!isWasmInitialized) {
17938                 throw new Error("initializeWasm() must be awaited first!");
17939         }
17940         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_fee_proportional_millionths(this_ptr, val);
17941         // debug statements here
17942 }
17943         // uint16_t CounterpartyForwardingInfo_get_cltv_expiry_delta(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
17944 /* @internal */
17945 export function CounterpartyForwardingInfo_get_cltv_expiry_delta(this_ptr: number): number {
17946         if(!isWasmInitialized) {
17947                 throw new Error("initializeWasm() must be awaited first!");
17948         }
17949         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_cltv_expiry_delta(this_ptr);
17950         return nativeResponseValue;
17951 }
17952         // void CounterpartyForwardingInfo_set_cltv_expiry_delta(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint16_t val);
17953 /* @internal */
17954 export function CounterpartyForwardingInfo_set_cltv_expiry_delta(this_ptr: number, val: number): void {
17955         if(!isWasmInitialized) {
17956                 throw new Error("initializeWasm() must be awaited first!");
17957         }
17958         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_cltv_expiry_delta(this_ptr, val);
17959         // debug statements here
17960 }
17961         // MUST_USE_RES struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_new(uint32_t fee_base_msat_arg, uint32_t fee_proportional_millionths_arg, uint16_t cltv_expiry_delta_arg);
17962 /* @internal */
17963 export function CounterpartyForwardingInfo_new(fee_base_msat_arg: number, fee_proportional_millionths_arg: number, cltv_expiry_delta_arg: number): number {
17964         if(!isWasmInitialized) {
17965                 throw new Error("initializeWasm() must be awaited first!");
17966         }
17967         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_new(fee_base_msat_arg, fee_proportional_millionths_arg, cltv_expiry_delta_arg);
17968         return nativeResponseValue;
17969 }
17970         // uintptr_t CounterpartyForwardingInfo_clone_ptr(LDKCounterpartyForwardingInfo *NONNULL_PTR arg);
17971 /* @internal */
17972 export function CounterpartyForwardingInfo_clone_ptr(arg: number): number {
17973         if(!isWasmInitialized) {
17974                 throw new Error("initializeWasm() must be awaited first!");
17975         }
17976         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_clone_ptr(arg);
17977         return nativeResponseValue;
17978 }
17979         // struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_clone(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR orig);
17980 /* @internal */
17981 export function CounterpartyForwardingInfo_clone(orig: number): number {
17982         if(!isWasmInitialized) {
17983                 throw new Error("initializeWasm() must be awaited first!");
17984         }
17985         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_clone(orig);
17986         return nativeResponseValue;
17987 }
17988         // void ChannelCounterparty_free(struct LDKChannelCounterparty this_obj);
17989 /* @internal */
17990 export function ChannelCounterparty_free(this_obj: number): void {
17991         if(!isWasmInitialized) {
17992                 throw new Error("initializeWasm() must be awaited first!");
17993         }
17994         const nativeResponseValue = wasm.TS_ChannelCounterparty_free(this_obj);
17995         // debug statements here
17996 }
17997         // struct LDKPublicKey ChannelCounterparty_get_node_id(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
17998 /* @internal */
17999 export function ChannelCounterparty_get_node_id(this_ptr: number): number {
18000         if(!isWasmInitialized) {
18001                 throw new Error("initializeWasm() must be awaited first!");
18002         }
18003         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_node_id(this_ptr);
18004         return nativeResponseValue;
18005 }
18006         // void ChannelCounterparty_set_node_id(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKPublicKey val);
18007 /* @internal */
18008 export function ChannelCounterparty_set_node_id(this_ptr: number, val: number): void {
18009         if(!isWasmInitialized) {
18010                 throw new Error("initializeWasm() must be awaited first!");
18011         }
18012         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_node_id(this_ptr, val);
18013         // debug statements here
18014 }
18015         // struct LDKInitFeatures ChannelCounterparty_get_features(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18016 /* @internal */
18017 export function ChannelCounterparty_get_features(this_ptr: number): number {
18018         if(!isWasmInitialized) {
18019                 throw new Error("initializeWasm() must be awaited first!");
18020         }
18021         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_features(this_ptr);
18022         return nativeResponseValue;
18023 }
18024         // void ChannelCounterparty_set_features(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
18025 /* @internal */
18026 export function ChannelCounterparty_set_features(this_ptr: number, val: number): void {
18027         if(!isWasmInitialized) {
18028                 throw new Error("initializeWasm() must be awaited first!");
18029         }
18030         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_features(this_ptr, val);
18031         // debug statements here
18032 }
18033         // uint64_t ChannelCounterparty_get_unspendable_punishment_reserve(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18034 /* @internal */
18035 export function ChannelCounterparty_get_unspendable_punishment_reserve(this_ptr: number): bigint {
18036         if(!isWasmInitialized) {
18037                 throw new Error("initializeWasm() must be awaited first!");
18038         }
18039         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_unspendable_punishment_reserve(this_ptr);
18040         return nativeResponseValue;
18041 }
18042         // void ChannelCounterparty_set_unspendable_punishment_reserve(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, uint64_t val);
18043 /* @internal */
18044 export function ChannelCounterparty_set_unspendable_punishment_reserve(this_ptr: number, val: bigint): void {
18045         if(!isWasmInitialized) {
18046                 throw new Error("initializeWasm() must be awaited first!");
18047         }
18048         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_unspendable_punishment_reserve(this_ptr, val);
18049         // debug statements here
18050 }
18051         // struct LDKCounterpartyForwardingInfo ChannelCounterparty_get_forwarding_info(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18052 /* @internal */
18053 export function ChannelCounterparty_get_forwarding_info(this_ptr: number): number {
18054         if(!isWasmInitialized) {
18055                 throw new Error("initializeWasm() must be awaited first!");
18056         }
18057         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_forwarding_info(this_ptr);
18058         return nativeResponseValue;
18059 }
18060         // void ChannelCounterparty_set_forwarding_info(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCounterpartyForwardingInfo val);
18061 /* @internal */
18062 export function ChannelCounterparty_set_forwarding_info(this_ptr: number, val: number): void {
18063         if(!isWasmInitialized) {
18064                 throw new Error("initializeWasm() must be awaited first!");
18065         }
18066         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_forwarding_info(this_ptr, val);
18067         // debug statements here
18068 }
18069         // MUST_USE_RES struct LDKChannelCounterparty ChannelCounterparty_new(struct LDKPublicKey node_id_arg, struct LDKInitFeatures features_arg, uint64_t unspendable_punishment_reserve_arg, struct LDKCounterpartyForwardingInfo forwarding_info_arg);
18070 /* @internal */
18071 export function ChannelCounterparty_new(node_id_arg: number, features_arg: number, unspendable_punishment_reserve_arg: bigint, forwarding_info_arg: number): number {
18072         if(!isWasmInitialized) {
18073                 throw new Error("initializeWasm() must be awaited first!");
18074         }
18075         const nativeResponseValue = wasm.TS_ChannelCounterparty_new(node_id_arg, features_arg, unspendable_punishment_reserve_arg, forwarding_info_arg);
18076         return nativeResponseValue;
18077 }
18078         // uintptr_t ChannelCounterparty_clone_ptr(LDKChannelCounterparty *NONNULL_PTR arg);
18079 /* @internal */
18080 export function ChannelCounterparty_clone_ptr(arg: number): number {
18081         if(!isWasmInitialized) {
18082                 throw new Error("initializeWasm() must be awaited first!");
18083         }
18084         const nativeResponseValue = wasm.TS_ChannelCounterparty_clone_ptr(arg);
18085         return nativeResponseValue;
18086 }
18087         // struct LDKChannelCounterparty ChannelCounterparty_clone(const struct LDKChannelCounterparty *NONNULL_PTR orig);
18088 /* @internal */
18089 export function ChannelCounterparty_clone(orig: number): number {
18090         if(!isWasmInitialized) {
18091                 throw new Error("initializeWasm() must be awaited first!");
18092         }
18093         const nativeResponseValue = wasm.TS_ChannelCounterparty_clone(orig);
18094         return nativeResponseValue;
18095 }
18096         // void ChannelDetails_free(struct LDKChannelDetails this_obj);
18097 /* @internal */
18098 export function ChannelDetails_free(this_obj: number): void {
18099         if(!isWasmInitialized) {
18100                 throw new Error("initializeWasm() must be awaited first!");
18101         }
18102         const nativeResponseValue = wasm.TS_ChannelDetails_free(this_obj);
18103         // debug statements here
18104 }
18105         // const uint8_t (*ChannelDetails_get_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr))[32];
18106 /* @internal */
18107 export function ChannelDetails_get_channel_id(this_ptr: number): number {
18108         if(!isWasmInitialized) {
18109                 throw new Error("initializeWasm() must be awaited first!");
18110         }
18111         const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_id(this_ptr);
18112         return nativeResponseValue;
18113 }
18114         // void ChannelDetails_set_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
18115 /* @internal */
18116 export function ChannelDetails_set_channel_id(this_ptr: number, val: number): void {
18117         if(!isWasmInitialized) {
18118                 throw new Error("initializeWasm() must be awaited first!");
18119         }
18120         const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_id(this_ptr, val);
18121         // debug statements here
18122 }
18123         // struct LDKChannelCounterparty ChannelDetails_get_counterparty(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18124 /* @internal */
18125 export function ChannelDetails_get_counterparty(this_ptr: number): number {
18126         if(!isWasmInitialized) {
18127                 throw new Error("initializeWasm() must be awaited first!");
18128         }
18129         const nativeResponseValue = wasm.TS_ChannelDetails_get_counterparty(this_ptr);
18130         return nativeResponseValue;
18131 }
18132         // void ChannelDetails_set_counterparty(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelCounterparty val);
18133 /* @internal */
18134 export function ChannelDetails_set_counterparty(this_ptr: number, val: number): void {
18135         if(!isWasmInitialized) {
18136                 throw new Error("initializeWasm() must be awaited first!");
18137         }
18138         const nativeResponseValue = wasm.TS_ChannelDetails_set_counterparty(this_ptr, val);
18139         // debug statements here
18140 }
18141         // struct LDKOutPoint ChannelDetails_get_funding_txo(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18142 /* @internal */
18143 export function ChannelDetails_get_funding_txo(this_ptr: number): number {
18144         if(!isWasmInitialized) {
18145                 throw new Error("initializeWasm() must be awaited first!");
18146         }
18147         const nativeResponseValue = wasm.TS_ChannelDetails_get_funding_txo(this_ptr);
18148         return nativeResponseValue;
18149 }
18150         // void ChannelDetails_set_funding_txo(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKOutPoint val);
18151 /* @internal */
18152 export function ChannelDetails_set_funding_txo(this_ptr: number, val: number): void {
18153         if(!isWasmInitialized) {
18154                 throw new Error("initializeWasm() must be awaited first!");
18155         }
18156         const nativeResponseValue = wasm.TS_ChannelDetails_set_funding_txo(this_ptr, val);
18157         // debug statements here
18158 }
18159         // struct LDKCOption_u64Z ChannelDetails_get_short_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18160 /* @internal */
18161 export function ChannelDetails_get_short_channel_id(this_ptr: number): number {
18162         if(!isWasmInitialized) {
18163                 throw new Error("initializeWasm() must be awaited first!");
18164         }
18165         const nativeResponseValue = wasm.TS_ChannelDetails_get_short_channel_id(this_ptr);
18166         return nativeResponseValue;
18167 }
18168         // void ChannelDetails_set_short_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
18169 /* @internal */
18170 export function ChannelDetails_set_short_channel_id(this_ptr: number, val: number): void {
18171         if(!isWasmInitialized) {
18172                 throw new Error("initializeWasm() must be awaited first!");
18173         }
18174         const nativeResponseValue = wasm.TS_ChannelDetails_set_short_channel_id(this_ptr, val);
18175         // debug statements here
18176 }
18177         // uint64_t ChannelDetails_get_channel_value_satoshis(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18178 /* @internal */
18179 export function ChannelDetails_get_channel_value_satoshis(this_ptr: number): bigint {
18180         if(!isWasmInitialized) {
18181                 throw new Error("initializeWasm() must be awaited first!");
18182         }
18183         const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_value_satoshis(this_ptr);
18184         return nativeResponseValue;
18185 }
18186         // void ChannelDetails_set_channel_value_satoshis(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
18187 /* @internal */
18188 export function ChannelDetails_set_channel_value_satoshis(this_ptr: number, val: bigint): void {
18189         if(!isWasmInitialized) {
18190                 throw new Error("initializeWasm() must be awaited first!");
18191         }
18192         const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_value_satoshis(this_ptr, val);
18193         // debug statements here
18194 }
18195         // struct LDKCOption_u64Z ChannelDetails_get_unspendable_punishment_reserve(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18196 /* @internal */
18197 export function ChannelDetails_get_unspendable_punishment_reserve(this_ptr: number): number {
18198         if(!isWasmInitialized) {
18199                 throw new Error("initializeWasm() must be awaited first!");
18200         }
18201         const nativeResponseValue = wasm.TS_ChannelDetails_get_unspendable_punishment_reserve(this_ptr);
18202         return nativeResponseValue;
18203 }
18204         // void ChannelDetails_set_unspendable_punishment_reserve(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
18205 /* @internal */
18206 export function ChannelDetails_set_unspendable_punishment_reserve(this_ptr: number, val: number): void {
18207         if(!isWasmInitialized) {
18208                 throw new Error("initializeWasm() must be awaited first!");
18209         }
18210         const nativeResponseValue = wasm.TS_ChannelDetails_set_unspendable_punishment_reserve(this_ptr, val);
18211         // debug statements here
18212 }
18213         // uint64_t ChannelDetails_get_user_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18214 /* @internal */
18215 export function ChannelDetails_get_user_channel_id(this_ptr: number): bigint {
18216         if(!isWasmInitialized) {
18217                 throw new Error("initializeWasm() must be awaited first!");
18218         }
18219         const nativeResponseValue = wasm.TS_ChannelDetails_get_user_channel_id(this_ptr);
18220         return nativeResponseValue;
18221 }
18222         // void ChannelDetails_set_user_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
18223 /* @internal */
18224 export function ChannelDetails_set_user_channel_id(this_ptr: number, val: bigint): void {
18225         if(!isWasmInitialized) {
18226                 throw new Error("initializeWasm() must be awaited first!");
18227         }
18228         const nativeResponseValue = wasm.TS_ChannelDetails_set_user_channel_id(this_ptr, val);
18229         // debug statements here
18230 }
18231         // uint64_t ChannelDetails_get_balance_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18232 /* @internal */
18233 export function ChannelDetails_get_balance_msat(this_ptr: number): bigint {
18234         if(!isWasmInitialized) {
18235                 throw new Error("initializeWasm() must be awaited first!");
18236         }
18237         const nativeResponseValue = wasm.TS_ChannelDetails_get_balance_msat(this_ptr);
18238         return nativeResponseValue;
18239 }
18240         // void ChannelDetails_set_balance_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
18241 /* @internal */
18242 export function ChannelDetails_set_balance_msat(this_ptr: number, val: bigint): void {
18243         if(!isWasmInitialized) {
18244                 throw new Error("initializeWasm() must be awaited first!");
18245         }
18246         const nativeResponseValue = wasm.TS_ChannelDetails_set_balance_msat(this_ptr, val);
18247         // debug statements here
18248 }
18249         // uint64_t ChannelDetails_get_outbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18250 /* @internal */
18251 export function ChannelDetails_get_outbound_capacity_msat(this_ptr: number): bigint {
18252         if(!isWasmInitialized) {
18253                 throw new Error("initializeWasm() must be awaited first!");
18254         }
18255         const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_capacity_msat(this_ptr);
18256         return nativeResponseValue;
18257 }
18258         // void ChannelDetails_set_outbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
18259 /* @internal */
18260 export function ChannelDetails_set_outbound_capacity_msat(this_ptr: number, val: bigint): void {
18261         if(!isWasmInitialized) {
18262                 throw new Error("initializeWasm() must be awaited first!");
18263         }
18264         const nativeResponseValue = wasm.TS_ChannelDetails_set_outbound_capacity_msat(this_ptr, val);
18265         // debug statements here
18266 }
18267         // uint64_t ChannelDetails_get_inbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18268 /* @internal */
18269 export function ChannelDetails_get_inbound_capacity_msat(this_ptr: number): bigint {
18270         if(!isWasmInitialized) {
18271                 throw new Error("initializeWasm() must be awaited first!");
18272         }
18273         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_capacity_msat(this_ptr);
18274         return nativeResponseValue;
18275 }
18276         // void ChannelDetails_set_inbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
18277 /* @internal */
18278 export function ChannelDetails_set_inbound_capacity_msat(this_ptr: number, val: bigint): void {
18279         if(!isWasmInitialized) {
18280                 throw new Error("initializeWasm() must be awaited first!");
18281         }
18282         const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_capacity_msat(this_ptr, val);
18283         // debug statements here
18284 }
18285         // struct LDKCOption_u32Z ChannelDetails_get_confirmations_required(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18286 /* @internal */
18287 export function ChannelDetails_get_confirmations_required(this_ptr: number): number {
18288         if(!isWasmInitialized) {
18289                 throw new Error("initializeWasm() must be awaited first!");
18290         }
18291         const nativeResponseValue = wasm.TS_ChannelDetails_get_confirmations_required(this_ptr);
18292         return nativeResponseValue;
18293 }
18294         // void ChannelDetails_set_confirmations_required(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
18295 /* @internal */
18296 export function ChannelDetails_set_confirmations_required(this_ptr: number, val: number): void {
18297         if(!isWasmInitialized) {
18298                 throw new Error("initializeWasm() must be awaited first!");
18299         }
18300         const nativeResponseValue = wasm.TS_ChannelDetails_set_confirmations_required(this_ptr, val);
18301         // debug statements here
18302 }
18303         // struct LDKCOption_u16Z ChannelDetails_get_force_close_spend_delay(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18304 /* @internal */
18305 export function ChannelDetails_get_force_close_spend_delay(this_ptr: number): number {
18306         if(!isWasmInitialized) {
18307                 throw new Error("initializeWasm() must be awaited first!");
18308         }
18309         const nativeResponseValue = wasm.TS_ChannelDetails_get_force_close_spend_delay(this_ptr);
18310         return nativeResponseValue;
18311 }
18312         // void ChannelDetails_set_force_close_spend_delay(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val);
18313 /* @internal */
18314 export function ChannelDetails_set_force_close_spend_delay(this_ptr: number, val: number): void {
18315         if(!isWasmInitialized) {
18316                 throw new Error("initializeWasm() must be awaited first!");
18317         }
18318         const nativeResponseValue = wasm.TS_ChannelDetails_set_force_close_spend_delay(this_ptr, val);
18319         // debug statements here
18320 }
18321         // bool ChannelDetails_get_is_outbound(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18322 /* @internal */
18323 export function ChannelDetails_get_is_outbound(this_ptr: number): boolean {
18324         if(!isWasmInitialized) {
18325                 throw new Error("initializeWasm() must be awaited first!");
18326         }
18327         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_outbound(this_ptr);
18328         return nativeResponseValue;
18329 }
18330         // void ChannelDetails_set_is_outbound(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
18331 /* @internal */
18332 export function ChannelDetails_set_is_outbound(this_ptr: number, val: boolean): void {
18333         if(!isWasmInitialized) {
18334                 throw new Error("initializeWasm() must be awaited first!");
18335         }
18336         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_outbound(this_ptr, val);
18337         // debug statements here
18338 }
18339         // bool ChannelDetails_get_is_funding_locked(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18340 /* @internal */
18341 export function ChannelDetails_get_is_funding_locked(this_ptr: number): boolean {
18342         if(!isWasmInitialized) {
18343                 throw new Error("initializeWasm() must be awaited first!");
18344         }
18345         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_funding_locked(this_ptr);
18346         return nativeResponseValue;
18347 }
18348         // void ChannelDetails_set_is_funding_locked(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
18349 /* @internal */
18350 export function ChannelDetails_set_is_funding_locked(this_ptr: number, val: boolean): void {
18351         if(!isWasmInitialized) {
18352                 throw new Error("initializeWasm() must be awaited first!");
18353         }
18354         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_funding_locked(this_ptr, val);
18355         // debug statements here
18356 }
18357         // bool ChannelDetails_get_is_usable(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18358 /* @internal */
18359 export function ChannelDetails_get_is_usable(this_ptr: number): boolean {
18360         if(!isWasmInitialized) {
18361                 throw new Error("initializeWasm() must be awaited first!");
18362         }
18363         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_usable(this_ptr);
18364         return nativeResponseValue;
18365 }
18366         // void ChannelDetails_set_is_usable(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
18367 /* @internal */
18368 export function ChannelDetails_set_is_usable(this_ptr: number, val: boolean): void {
18369         if(!isWasmInitialized) {
18370                 throw new Error("initializeWasm() must be awaited first!");
18371         }
18372         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_usable(this_ptr, val);
18373         // debug statements here
18374 }
18375         // bool ChannelDetails_get_is_public(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18376 /* @internal */
18377 export function ChannelDetails_get_is_public(this_ptr: number): boolean {
18378         if(!isWasmInitialized) {
18379                 throw new Error("initializeWasm() must be awaited first!");
18380         }
18381         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_public(this_ptr);
18382         return nativeResponseValue;
18383 }
18384         // void ChannelDetails_set_is_public(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
18385 /* @internal */
18386 export function ChannelDetails_set_is_public(this_ptr: number, val: boolean): void {
18387         if(!isWasmInitialized) {
18388                 throw new Error("initializeWasm() must be awaited first!");
18389         }
18390         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_public(this_ptr, val);
18391         // debug statements here
18392 }
18393         // MUST_USE_RES struct LDKChannelDetails ChannelDetails_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKChannelCounterparty counterparty_arg, struct LDKOutPoint funding_txo_arg, struct LDKCOption_u64Z short_channel_id_arg, uint64_t channel_value_satoshis_arg, struct LDKCOption_u64Z unspendable_punishment_reserve_arg, uint64_t user_channel_id_arg, uint64_t balance_msat_arg, uint64_t outbound_capacity_msat_arg, uint64_t inbound_capacity_msat_arg, struct LDKCOption_u32Z confirmations_required_arg, struct LDKCOption_u16Z force_close_spend_delay_arg, bool is_outbound_arg, bool is_funding_locked_arg, bool is_usable_arg, bool is_public_arg);
18394 /* @internal */
18395 export function ChannelDetails_new(channel_id_arg: number, counterparty_arg: number, funding_txo_arg: number, short_channel_id_arg: number, channel_value_satoshis_arg: bigint, unspendable_punishment_reserve_arg: number, user_channel_id_arg: bigint, balance_msat_arg: bigint, outbound_capacity_msat_arg: bigint, inbound_capacity_msat_arg: bigint, confirmations_required_arg: number, force_close_spend_delay_arg: number, is_outbound_arg: boolean, is_funding_locked_arg: boolean, is_usable_arg: boolean, is_public_arg: boolean): number {
18396         if(!isWasmInitialized) {
18397                 throw new Error("initializeWasm() must be awaited first!");
18398         }
18399         const nativeResponseValue = wasm.TS_ChannelDetails_new(channel_id_arg, counterparty_arg, funding_txo_arg, short_channel_id_arg, channel_value_satoshis_arg, unspendable_punishment_reserve_arg, user_channel_id_arg, balance_msat_arg, outbound_capacity_msat_arg, inbound_capacity_msat_arg, confirmations_required_arg, force_close_spend_delay_arg, is_outbound_arg, is_funding_locked_arg, is_usable_arg, is_public_arg);
18400         return nativeResponseValue;
18401 }
18402         // uintptr_t ChannelDetails_clone_ptr(LDKChannelDetails *NONNULL_PTR arg);
18403 /* @internal */
18404 export function ChannelDetails_clone_ptr(arg: number): number {
18405         if(!isWasmInitialized) {
18406                 throw new Error("initializeWasm() must be awaited first!");
18407         }
18408         const nativeResponseValue = wasm.TS_ChannelDetails_clone_ptr(arg);
18409         return nativeResponseValue;
18410 }
18411         // struct LDKChannelDetails ChannelDetails_clone(const struct LDKChannelDetails *NONNULL_PTR orig);
18412 /* @internal */
18413 export function ChannelDetails_clone(orig: number): number {
18414         if(!isWasmInitialized) {
18415                 throw new Error("initializeWasm() must be awaited first!");
18416         }
18417         const nativeResponseValue = wasm.TS_ChannelDetails_clone(orig);
18418         return nativeResponseValue;
18419 }
18420         // void PaymentSendFailure_free(struct LDKPaymentSendFailure this_ptr);
18421 /* @internal */
18422 export function PaymentSendFailure_free(this_ptr: number): void {
18423         if(!isWasmInitialized) {
18424                 throw new Error("initializeWasm() must be awaited first!");
18425         }
18426         const nativeResponseValue = wasm.TS_PaymentSendFailure_free(this_ptr);
18427         // debug statements here
18428 }
18429         // uintptr_t PaymentSendFailure_clone_ptr(LDKPaymentSendFailure *NONNULL_PTR arg);
18430 /* @internal */
18431 export function PaymentSendFailure_clone_ptr(arg: number): number {
18432         if(!isWasmInitialized) {
18433                 throw new Error("initializeWasm() must be awaited first!");
18434         }
18435         const nativeResponseValue = wasm.TS_PaymentSendFailure_clone_ptr(arg);
18436         return nativeResponseValue;
18437 }
18438         // struct LDKPaymentSendFailure PaymentSendFailure_clone(const struct LDKPaymentSendFailure *NONNULL_PTR orig);
18439 /* @internal */
18440 export function PaymentSendFailure_clone(orig: number): number {
18441         if(!isWasmInitialized) {
18442                 throw new Error("initializeWasm() must be awaited first!");
18443         }
18444         const nativeResponseValue = wasm.TS_PaymentSendFailure_clone(orig);
18445         return nativeResponseValue;
18446 }
18447         // struct LDKPaymentSendFailure PaymentSendFailure_parameter_error(struct LDKAPIError a);
18448 /* @internal */
18449 export function PaymentSendFailure_parameter_error(a: number): number {
18450         if(!isWasmInitialized) {
18451                 throw new Error("initializeWasm() must be awaited first!");
18452         }
18453         const nativeResponseValue = wasm.TS_PaymentSendFailure_parameter_error(a);
18454         return nativeResponseValue;
18455 }
18456         // struct LDKPaymentSendFailure PaymentSendFailure_path_parameter_error(struct LDKCVec_CResult_NoneAPIErrorZZ a);
18457 /* @internal */
18458 export function PaymentSendFailure_path_parameter_error(a: number): number {
18459         if(!isWasmInitialized) {
18460                 throw new Error("initializeWasm() must be awaited first!");
18461         }
18462         const nativeResponseValue = wasm.TS_PaymentSendFailure_path_parameter_error(a);
18463         return nativeResponseValue;
18464 }
18465         // struct LDKPaymentSendFailure PaymentSendFailure_all_failed_retry_safe(struct LDKCVec_APIErrorZ a);
18466 /* @internal */
18467 export function PaymentSendFailure_all_failed_retry_safe(a: number): number {
18468         if(!isWasmInitialized) {
18469                 throw new Error("initializeWasm() must be awaited first!");
18470         }
18471         const nativeResponseValue = wasm.TS_PaymentSendFailure_all_failed_retry_safe(a);
18472         return nativeResponseValue;
18473 }
18474         // struct LDKPaymentSendFailure PaymentSendFailure_partial_failure(struct LDKCVec_CResult_NoneAPIErrorZZ results, struct LDKRouteParameters failed_paths_retry, struct LDKThirtyTwoBytes payment_id);
18475 /* @internal */
18476 export function PaymentSendFailure_partial_failure(results: number, failed_paths_retry: number, payment_id: number): number {
18477         if(!isWasmInitialized) {
18478                 throw new Error("initializeWasm() must be awaited first!");
18479         }
18480         const nativeResponseValue = wasm.TS_PaymentSendFailure_partial_failure(results, failed_paths_retry, payment_id);
18481         return nativeResponseValue;
18482 }
18483         // void PhantomRouteHints_free(struct LDKPhantomRouteHints this_obj);
18484 /* @internal */
18485 export function PhantomRouteHints_free(this_obj: number): void {
18486         if(!isWasmInitialized) {
18487                 throw new Error("initializeWasm() must be awaited first!");
18488         }
18489         const nativeResponseValue = wasm.TS_PhantomRouteHints_free(this_obj);
18490         // debug statements here
18491 }
18492         // struct LDKCVec_ChannelDetailsZ PhantomRouteHints_get_channels(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
18493 /* @internal */
18494 export function PhantomRouteHints_get_channels(this_ptr: number): number {
18495         if(!isWasmInitialized) {
18496                 throw new Error("initializeWasm() must be awaited first!");
18497         }
18498         const nativeResponseValue = wasm.TS_PhantomRouteHints_get_channels(this_ptr);
18499         return nativeResponseValue;
18500 }
18501         // void PhantomRouteHints_set_channels(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKCVec_ChannelDetailsZ val);
18502 /* @internal */
18503 export function PhantomRouteHints_set_channels(this_ptr: number, val: number): void {
18504         if(!isWasmInitialized) {
18505                 throw new Error("initializeWasm() must be awaited first!");
18506         }
18507         const nativeResponseValue = wasm.TS_PhantomRouteHints_set_channels(this_ptr, val);
18508         // debug statements here
18509 }
18510         // uint64_t PhantomRouteHints_get_phantom_scid(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
18511 /* @internal */
18512 export function PhantomRouteHints_get_phantom_scid(this_ptr: number): bigint {
18513         if(!isWasmInitialized) {
18514                 throw new Error("initializeWasm() must be awaited first!");
18515         }
18516         const nativeResponseValue = wasm.TS_PhantomRouteHints_get_phantom_scid(this_ptr);
18517         return nativeResponseValue;
18518 }
18519         // void PhantomRouteHints_set_phantom_scid(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, uint64_t val);
18520 /* @internal */
18521 export function PhantomRouteHints_set_phantom_scid(this_ptr: number, val: bigint): void {
18522         if(!isWasmInitialized) {
18523                 throw new Error("initializeWasm() must be awaited first!");
18524         }
18525         const nativeResponseValue = wasm.TS_PhantomRouteHints_set_phantom_scid(this_ptr, val);
18526         // debug statements here
18527 }
18528         // struct LDKPublicKey PhantomRouteHints_get_real_node_pubkey(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
18529 /* @internal */
18530 export function PhantomRouteHints_get_real_node_pubkey(this_ptr: number): number {
18531         if(!isWasmInitialized) {
18532                 throw new Error("initializeWasm() must be awaited first!");
18533         }
18534         const nativeResponseValue = wasm.TS_PhantomRouteHints_get_real_node_pubkey(this_ptr);
18535         return nativeResponseValue;
18536 }
18537         // void PhantomRouteHints_set_real_node_pubkey(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKPublicKey val);
18538 /* @internal */
18539 export function PhantomRouteHints_set_real_node_pubkey(this_ptr: number, val: number): void {
18540         if(!isWasmInitialized) {
18541                 throw new Error("initializeWasm() must be awaited first!");
18542         }
18543         const nativeResponseValue = wasm.TS_PhantomRouteHints_set_real_node_pubkey(this_ptr, val);
18544         // debug statements here
18545 }
18546         // MUST_USE_RES struct LDKPhantomRouteHints PhantomRouteHints_new(struct LDKCVec_ChannelDetailsZ channels_arg, uint64_t phantom_scid_arg, struct LDKPublicKey real_node_pubkey_arg);
18547 /* @internal */
18548 export function PhantomRouteHints_new(channels_arg: number, phantom_scid_arg: bigint, real_node_pubkey_arg: number): number {
18549         if(!isWasmInitialized) {
18550                 throw new Error("initializeWasm() must be awaited first!");
18551         }
18552         const nativeResponseValue = wasm.TS_PhantomRouteHints_new(channels_arg, phantom_scid_arg, real_node_pubkey_arg);
18553         return nativeResponseValue;
18554 }
18555         // uintptr_t PhantomRouteHints_clone_ptr(LDKPhantomRouteHints *NONNULL_PTR arg);
18556 /* @internal */
18557 export function PhantomRouteHints_clone_ptr(arg: number): number {
18558         if(!isWasmInitialized) {
18559                 throw new Error("initializeWasm() must be awaited first!");
18560         }
18561         const nativeResponseValue = wasm.TS_PhantomRouteHints_clone_ptr(arg);
18562         return nativeResponseValue;
18563 }
18564         // struct LDKPhantomRouteHints PhantomRouteHints_clone(const struct LDKPhantomRouteHints *NONNULL_PTR orig);
18565 /* @internal */
18566 export function PhantomRouteHints_clone(orig: number): number {
18567         if(!isWasmInitialized) {
18568                 throw new Error("initializeWasm() must be awaited first!");
18569         }
18570         const nativeResponseValue = wasm.TS_PhantomRouteHints_clone(orig);
18571         return nativeResponseValue;
18572 }
18573         // MUST_USE_RES struct LDKChannelManager ChannelManager_new(struct LDKFeeEstimator fee_est, struct LDKWatch chain_monitor, struct LDKBroadcasterInterface tx_broadcaster, struct LDKLogger logger, struct LDKKeysInterface keys_manager, struct LDKUserConfig config, struct LDKChainParameters params);
18574 /* @internal */
18575 export function ChannelManager_new(fee_est: number, chain_monitor: number, tx_broadcaster: number, logger: number, keys_manager: number, config: number, params: number): number {
18576         if(!isWasmInitialized) {
18577                 throw new Error("initializeWasm() must be awaited first!");
18578         }
18579         const nativeResponseValue = wasm.TS_ChannelManager_new(fee_est, chain_monitor, tx_broadcaster, logger, keys_manager, config, params);
18580         return nativeResponseValue;
18581 }
18582         // MUST_USE_RES struct LDKUserConfig ChannelManager_get_current_default_configuration(const struct LDKChannelManager *NONNULL_PTR this_arg);
18583 /* @internal */
18584 export function ChannelManager_get_current_default_configuration(this_arg: number): number {
18585         if(!isWasmInitialized) {
18586                 throw new Error("initializeWasm() must be awaited first!");
18587         }
18588         const nativeResponseValue = wasm.TS_ChannelManager_get_current_default_configuration(this_arg);
18589         return nativeResponseValue;
18590 }
18591         // MUST_USE_RES struct LDKCResult__u832APIErrorZ ChannelManager_create_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey their_network_key, uint64_t channel_value_satoshis, uint64_t push_msat, uint64_t user_channel_id, struct LDKUserConfig override_config);
18592 /* @internal */
18593 export function ChannelManager_create_channel(this_arg: number, their_network_key: number, channel_value_satoshis: bigint, push_msat: bigint, user_channel_id: bigint, override_config: number): number {
18594         if(!isWasmInitialized) {
18595                 throw new Error("initializeWasm() must be awaited first!");
18596         }
18597         const nativeResponseValue = wasm.TS_ChannelManager_create_channel(this_arg, their_network_key, channel_value_satoshis, push_msat, user_channel_id, override_config);
18598         return nativeResponseValue;
18599 }
18600         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
18601 /* @internal */
18602 export function ChannelManager_list_channels(this_arg: number): number {
18603         if(!isWasmInitialized) {
18604                 throw new Error("initializeWasm() must be awaited first!");
18605         }
18606         const nativeResponseValue = wasm.TS_ChannelManager_list_channels(this_arg);
18607         return nativeResponseValue;
18608 }
18609         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
18610 /* @internal */
18611 export function ChannelManager_list_usable_channels(this_arg: number): number {
18612         if(!isWasmInitialized) {
18613                 throw new Error("initializeWasm() must be awaited first!");
18614         }
18615         const nativeResponseValue = wasm.TS_ChannelManager_list_usable_channels(this_arg);
18616         return nativeResponseValue;
18617 }
18618         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32]);
18619 /* @internal */
18620 export function ChannelManager_close_channel(this_arg: number, channel_id: number): number {
18621         if(!isWasmInitialized) {
18622                 throw new Error("initializeWasm() must be awaited first!");
18623         }
18624         const nativeResponseValue = wasm.TS_ChannelManager_close_channel(this_arg, channel_id);
18625         return nativeResponseValue;
18626 }
18627         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel_with_target_feerate(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], uint32_t target_feerate_sats_per_1000_weight);
18628 /* @internal */
18629 export function ChannelManager_close_channel_with_target_feerate(this_arg: number, channel_id: number, target_feerate_sats_per_1000_weight: number): number {
18630         if(!isWasmInitialized) {
18631                 throw new Error("initializeWasm() must be awaited first!");
18632         }
18633         const nativeResponseValue = wasm.TS_ChannelManager_close_channel_with_target_feerate(this_arg, channel_id, target_feerate_sats_per_1000_weight);
18634         return nativeResponseValue;
18635 }
18636         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32]);
18637 /* @internal */
18638 export function ChannelManager_force_close_channel(this_arg: number, channel_id: number): number {
18639         if(!isWasmInitialized) {
18640                 throw new Error("initializeWasm() must be awaited first!");
18641         }
18642         const nativeResponseValue = wasm.TS_ChannelManager_force_close_channel(this_arg, channel_id);
18643         return nativeResponseValue;
18644 }
18645         // void ChannelManager_force_close_all_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
18646 /* @internal */
18647 export function ChannelManager_force_close_all_channels(this_arg: number): void {
18648         if(!isWasmInitialized) {
18649                 throw new Error("initializeWasm() must be awaited first!");
18650         }
18651         const nativeResponseValue = wasm.TS_ChannelManager_force_close_all_channels(this_arg);
18652         // debug statements here
18653 }
18654         // MUST_USE_RES struct LDKCResult_PaymentIdPaymentSendFailureZ ChannelManager_send_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret);
18655 /* @internal */
18656 export function ChannelManager_send_payment(this_arg: number, route: number, payment_hash: number, payment_secret: number): number {
18657         if(!isWasmInitialized) {
18658                 throw new Error("initializeWasm() must be awaited first!");
18659         }
18660         const nativeResponseValue = wasm.TS_ChannelManager_send_payment(this_arg, route, payment_hash, payment_secret);
18661         return nativeResponseValue;
18662 }
18663         // MUST_USE_RES struct LDKCResult_NonePaymentSendFailureZ ChannelManager_retry_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_id);
18664 /* @internal */
18665 export function ChannelManager_retry_payment(this_arg: number, route: number, payment_id: number): number {
18666         if(!isWasmInitialized) {
18667                 throw new Error("initializeWasm() must be awaited first!");
18668         }
18669         const nativeResponseValue = wasm.TS_ChannelManager_retry_payment(this_arg, route, payment_id);
18670         return nativeResponseValue;
18671 }
18672         // void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id);
18673 /* @internal */
18674 export function ChannelManager_abandon_payment(this_arg: number, payment_id: number): void {
18675         if(!isWasmInitialized) {
18676                 throw new Error("initializeWasm() must be awaited first!");
18677         }
18678         const nativeResponseValue = wasm.TS_ChannelManager_abandon_payment(this_arg, payment_id);
18679         // debug statements here
18680 }
18681         // MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ ChannelManager_send_spontaneous_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_preimage);
18682 /* @internal */
18683 export function ChannelManager_send_spontaneous_payment(this_arg: number, route: number, payment_preimage: number): number {
18684         if(!isWasmInitialized) {
18685                 throw new Error("initializeWasm() must be awaited first!");
18686         }
18687         const nativeResponseValue = wasm.TS_ChannelManager_send_spontaneous_payment(this_arg, route, payment_preimage);
18688         return nativeResponseValue;
18689 }
18690         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKTransaction funding_transaction);
18691 /* @internal */
18692 export function ChannelManager_funding_transaction_generated(this_arg: number, temporary_channel_id: number, funding_transaction: number): number {
18693         if(!isWasmInitialized) {
18694                 throw new Error("initializeWasm() must be awaited first!");
18695         }
18696         const nativeResponseValue = wasm.TS_ChannelManager_funding_transaction_generated(this_arg, temporary_channel_id, funding_transaction);
18697         return nativeResponseValue;
18698 }
18699         // void ChannelManager_broadcast_node_announcement(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_NetAddressZ addresses);
18700 /* @internal */
18701 export function ChannelManager_broadcast_node_announcement(this_arg: number, rgb: number, alias: number, addresses: number): void {
18702         if(!isWasmInitialized) {
18703                 throw new Error("initializeWasm() must be awaited first!");
18704         }
18705         const nativeResponseValue = wasm.TS_ChannelManager_broadcast_node_announcement(this_arg, rgb, alias, addresses);
18706         // debug statements here
18707 }
18708         // void ChannelManager_process_pending_htlc_forwards(const struct LDKChannelManager *NONNULL_PTR this_arg);
18709 /* @internal */
18710 export function ChannelManager_process_pending_htlc_forwards(this_arg: number): void {
18711         if(!isWasmInitialized) {
18712                 throw new Error("initializeWasm() must be awaited first!");
18713         }
18714         const nativeResponseValue = wasm.TS_ChannelManager_process_pending_htlc_forwards(this_arg);
18715         // debug statements here
18716 }
18717         // void ChannelManager_timer_tick_occurred(const struct LDKChannelManager *NONNULL_PTR this_arg);
18718 /* @internal */
18719 export function ChannelManager_timer_tick_occurred(this_arg: number): void {
18720         if(!isWasmInitialized) {
18721                 throw new Error("initializeWasm() must be awaited first!");
18722         }
18723         const nativeResponseValue = wasm.TS_ChannelManager_timer_tick_occurred(this_arg);
18724         // debug statements here
18725 }
18726         // MUST_USE_RES bool ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
18727 /* @internal */
18728 export function ChannelManager_fail_htlc_backwards(this_arg: number, payment_hash: number): boolean {
18729         if(!isWasmInitialized) {
18730                 throw new Error("initializeWasm() must be awaited first!");
18731         }
18732         const nativeResponseValue = wasm.TS_ChannelManager_fail_htlc_backwards(this_arg, payment_hash);
18733         return nativeResponseValue;
18734 }
18735         // MUST_USE_RES bool ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage);
18736 /* @internal */
18737 export function ChannelManager_claim_funds(this_arg: number, payment_preimage: number): boolean {
18738         if(!isWasmInitialized) {
18739                 throw new Error("initializeWasm() must be awaited first!");
18740         }
18741         const nativeResponseValue = wasm.TS_ChannelManager_claim_funds(this_arg, payment_preimage);
18742         return nativeResponseValue;
18743 }
18744         // MUST_USE_RES struct LDKPublicKey ChannelManager_get_our_node_id(const struct LDKChannelManager *NONNULL_PTR this_arg);
18745 /* @internal */
18746 export function ChannelManager_get_our_node_id(this_arg: number): number {
18747         if(!isWasmInitialized) {
18748                 throw new Error("initializeWasm() must be awaited first!");
18749         }
18750         const nativeResponseValue = wasm.TS_ChannelManager_get_our_node_id(this_arg);
18751         return nativeResponseValue;
18752 }
18753         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_accept_inbound_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32]);
18754 /* @internal */
18755 export function ChannelManager_accept_inbound_channel(this_arg: number, temporary_channel_id: number): number {
18756         if(!isWasmInitialized) {
18757                 throw new Error("initializeWasm() must be awaited first!");
18758         }
18759         const nativeResponseValue = wasm.TS_ChannelManager_accept_inbound_channel(this_arg, temporary_channel_id);
18760         return nativeResponseValue;
18761 }
18762         // MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ ChannelManager_create_inbound_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs);
18763 /* @internal */
18764 export function ChannelManager_create_inbound_payment(this_arg: number, min_value_msat: number, invoice_expiry_delta_secs: number): number {
18765         if(!isWasmInitialized) {
18766                 throw new Error("initializeWasm() must be awaited first!");
18767         }
18768         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment(this_arg, min_value_msat, invoice_expiry_delta_secs);
18769         return nativeResponseValue;
18770 }
18771         // MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ ChannelManager_create_inbound_payment_legacy(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs);
18772 /* @internal */
18773 export function ChannelManager_create_inbound_payment_legacy(this_arg: number, min_value_msat: number, invoice_expiry_delta_secs: number): number {
18774         if(!isWasmInitialized) {
18775                 throw new Error("initializeWasm() must be awaited first!");
18776         }
18777         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_legacy(this_arg, min_value_msat, invoice_expiry_delta_secs);
18778         return nativeResponseValue;
18779 }
18780         // MUST_USE_RES struct LDKCResult_PaymentSecretNoneZ ChannelManager_create_inbound_payment_for_hash(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs);
18781 /* @internal */
18782 export function ChannelManager_create_inbound_payment_for_hash(this_arg: number, payment_hash: number, min_value_msat: number, invoice_expiry_delta_secs: number): number {
18783         if(!isWasmInitialized) {
18784                 throw new Error("initializeWasm() must be awaited first!");
18785         }
18786         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_for_hash(this_arg, payment_hash, min_value_msat, invoice_expiry_delta_secs);
18787         return nativeResponseValue;
18788 }
18789         // MUST_USE_RES struct LDKCResult_PaymentSecretAPIErrorZ ChannelManager_create_inbound_payment_for_hash_legacy(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs);
18790 /* @internal */
18791 export function ChannelManager_create_inbound_payment_for_hash_legacy(this_arg: number, payment_hash: number, min_value_msat: number, invoice_expiry_delta_secs: number): number {
18792         if(!isWasmInitialized) {
18793                 throw new Error("initializeWasm() must be awaited first!");
18794         }
18795         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_for_hash_legacy(this_arg, payment_hash, min_value_msat, invoice_expiry_delta_secs);
18796         return nativeResponseValue;
18797 }
18798         // MUST_USE_RES struct LDKCResult_PaymentPreimageAPIErrorZ ChannelManager_get_payment_preimage(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret);
18799 /* @internal */
18800 export function ChannelManager_get_payment_preimage(this_arg: number, payment_hash: number, payment_secret: number): number {
18801         if(!isWasmInitialized) {
18802                 throw new Error("initializeWasm() must be awaited first!");
18803         }
18804         const nativeResponseValue = wasm.TS_ChannelManager_get_payment_preimage(this_arg, payment_hash, payment_secret);
18805         return nativeResponseValue;
18806 }
18807         // MUST_USE_RES uint64_t ChannelManager_get_phantom_scid(const struct LDKChannelManager *NONNULL_PTR this_arg);
18808 /* @internal */
18809 export function ChannelManager_get_phantom_scid(this_arg: number): bigint {
18810         if(!isWasmInitialized) {
18811                 throw new Error("initializeWasm() must be awaited first!");
18812         }
18813         const nativeResponseValue = wasm.TS_ChannelManager_get_phantom_scid(this_arg);
18814         return nativeResponseValue;
18815 }
18816         // MUST_USE_RES struct LDKPhantomRouteHints ChannelManager_get_phantom_route_hints(const struct LDKChannelManager *NONNULL_PTR this_arg);
18817 /* @internal */
18818 export function ChannelManager_get_phantom_route_hints(this_arg: number): number {
18819         if(!isWasmInitialized) {
18820                 throw new Error("initializeWasm() must be awaited first!");
18821         }
18822         const nativeResponseValue = wasm.TS_ChannelManager_get_phantom_route_hints(this_arg);
18823         return nativeResponseValue;
18824 }
18825         // struct LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
18826 /* @internal */
18827 export function ChannelManager_as_MessageSendEventsProvider(this_arg: number): number {
18828         if(!isWasmInitialized) {
18829                 throw new Error("initializeWasm() must be awaited first!");
18830         }
18831         const nativeResponseValue = wasm.TS_ChannelManager_as_MessageSendEventsProvider(this_arg);
18832         return nativeResponseValue;
18833 }
18834         // struct LDKEventsProvider ChannelManager_as_EventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
18835 /* @internal */
18836 export function ChannelManager_as_EventsProvider(this_arg: number): number {
18837         if(!isWasmInitialized) {
18838                 throw new Error("initializeWasm() must be awaited first!");
18839         }
18840         const nativeResponseValue = wasm.TS_ChannelManager_as_EventsProvider(this_arg);
18841         return nativeResponseValue;
18842 }
18843         // struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNULL_PTR this_arg);
18844 /* @internal */
18845 export function ChannelManager_as_Listen(this_arg: number): number {
18846         if(!isWasmInitialized) {
18847                 throw new Error("initializeWasm() must be awaited first!");
18848         }
18849         const nativeResponseValue = wasm.TS_ChannelManager_as_Listen(this_arg);
18850         return nativeResponseValue;
18851 }
18852         // struct LDKConfirm ChannelManager_as_Confirm(const struct LDKChannelManager *NONNULL_PTR this_arg);
18853 /* @internal */
18854 export function ChannelManager_as_Confirm(this_arg: number): number {
18855         if(!isWasmInitialized) {
18856                 throw new Error("initializeWasm() must be awaited first!");
18857         }
18858         const nativeResponseValue = wasm.TS_ChannelManager_as_Confirm(this_arg);
18859         return nativeResponseValue;
18860 }
18861         // void ChannelManager_await_persistable_update(const struct LDKChannelManager *NONNULL_PTR this_arg);
18862 /* @internal */
18863 export function ChannelManager_await_persistable_update(this_arg: number): void {
18864         if(!isWasmInitialized) {
18865                 throw new Error("initializeWasm() must be awaited first!");
18866         }
18867         const nativeResponseValue = wasm.TS_ChannelManager_await_persistable_update(this_arg);
18868         // debug statements here
18869 }
18870         // MUST_USE_RES struct LDKBestBlock ChannelManager_current_best_block(const struct LDKChannelManager *NONNULL_PTR this_arg);
18871 /* @internal */
18872 export function ChannelManager_current_best_block(this_arg: number): number {
18873         if(!isWasmInitialized) {
18874                 throw new Error("initializeWasm() must be awaited first!");
18875         }
18876         const nativeResponseValue = wasm.TS_ChannelManager_current_best_block(this_arg);
18877         return nativeResponseValue;
18878 }
18879         // struct LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg);
18880 /* @internal */
18881 export function ChannelManager_as_ChannelMessageHandler(this_arg: number): number {
18882         if(!isWasmInitialized) {
18883                 throw new Error("initializeWasm() must be awaited first!");
18884         }
18885         const nativeResponseValue = wasm.TS_ChannelManager_as_ChannelMessageHandler(this_arg);
18886         return nativeResponseValue;
18887 }
18888         // struct LDKCVec_u8Z CounterpartyForwardingInfo_write(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR obj);
18889 /* @internal */
18890 export function CounterpartyForwardingInfo_write(obj: number): number {
18891         if(!isWasmInitialized) {
18892                 throw new Error("initializeWasm() must be awaited first!");
18893         }
18894         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_write(obj);
18895         return nativeResponseValue;
18896 }
18897         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CounterpartyForwardingInfo_read(struct LDKu8slice ser);
18898 /* @internal */
18899 export function CounterpartyForwardingInfo_read(ser: number): number {
18900         if(!isWasmInitialized) {
18901                 throw new Error("initializeWasm() must be awaited first!");
18902         }
18903         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_read(ser);
18904         return nativeResponseValue;
18905 }
18906         // struct LDKCVec_u8Z ChannelCounterparty_write(const struct LDKChannelCounterparty *NONNULL_PTR obj);
18907 /* @internal */
18908 export function ChannelCounterparty_write(obj: number): number {
18909         if(!isWasmInitialized) {
18910                 throw new Error("initializeWasm() must be awaited first!");
18911         }
18912         const nativeResponseValue = wasm.TS_ChannelCounterparty_write(obj);
18913         return nativeResponseValue;
18914 }
18915         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ ChannelCounterparty_read(struct LDKu8slice ser);
18916 /* @internal */
18917 export function ChannelCounterparty_read(ser: number): number {
18918         if(!isWasmInitialized) {
18919                 throw new Error("initializeWasm() must be awaited first!");
18920         }
18921         const nativeResponseValue = wasm.TS_ChannelCounterparty_read(ser);
18922         return nativeResponseValue;
18923 }
18924         // struct LDKCVec_u8Z ChannelDetails_write(const struct LDKChannelDetails *NONNULL_PTR obj);
18925 /* @internal */
18926 export function ChannelDetails_write(obj: number): number {
18927         if(!isWasmInitialized) {
18928                 throw new Error("initializeWasm() must be awaited first!");
18929         }
18930         const nativeResponseValue = wasm.TS_ChannelDetails_write(obj);
18931         return nativeResponseValue;
18932 }
18933         // struct LDKCResult_ChannelDetailsDecodeErrorZ ChannelDetails_read(struct LDKu8slice ser);
18934 /* @internal */
18935 export function ChannelDetails_read(ser: number): number {
18936         if(!isWasmInitialized) {
18937                 throw new Error("initializeWasm() must be awaited first!");
18938         }
18939         const nativeResponseValue = wasm.TS_ChannelDetails_read(ser);
18940         return nativeResponseValue;
18941 }
18942         // struct LDKCVec_u8Z PhantomRouteHints_write(const struct LDKPhantomRouteHints *NONNULL_PTR obj);
18943 /* @internal */
18944 export function PhantomRouteHints_write(obj: number): number {
18945         if(!isWasmInitialized) {
18946                 throw new Error("initializeWasm() must be awaited first!");
18947         }
18948         const nativeResponseValue = wasm.TS_PhantomRouteHints_write(obj);
18949         return nativeResponseValue;
18950 }
18951         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ PhantomRouteHints_read(struct LDKu8slice ser);
18952 /* @internal */
18953 export function PhantomRouteHints_read(ser: number): number {
18954         if(!isWasmInitialized) {
18955                 throw new Error("initializeWasm() must be awaited first!");
18956         }
18957         const nativeResponseValue = wasm.TS_PhantomRouteHints_read(ser);
18958         return nativeResponseValue;
18959 }
18960         // struct LDKCVec_u8Z ChannelManager_write(const struct LDKChannelManager *NONNULL_PTR obj);
18961 /* @internal */
18962 export function ChannelManager_write(obj: number): number {
18963         if(!isWasmInitialized) {
18964                 throw new Error("initializeWasm() must be awaited first!");
18965         }
18966         const nativeResponseValue = wasm.TS_ChannelManager_write(obj);
18967         return nativeResponseValue;
18968 }
18969         // void ChannelManagerReadArgs_free(struct LDKChannelManagerReadArgs this_obj);
18970 /* @internal */
18971 export function ChannelManagerReadArgs_free(this_obj: number): void {
18972         if(!isWasmInitialized) {
18973                 throw new Error("initializeWasm() must be awaited first!");
18974         }
18975         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_free(this_obj);
18976         // debug statements here
18977 }
18978         // const struct LDKKeysInterface *ChannelManagerReadArgs_get_keys_manager(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
18979 /* @internal */
18980 export function ChannelManagerReadArgs_get_keys_manager(this_ptr: number): number {
18981         if(!isWasmInitialized) {
18982                 throw new Error("initializeWasm() must be awaited first!");
18983         }
18984         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_keys_manager(this_ptr);
18985         return nativeResponseValue;
18986 }
18987         // void ChannelManagerReadArgs_set_keys_manager(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKKeysInterface val);
18988 /* @internal */
18989 export function ChannelManagerReadArgs_set_keys_manager(this_ptr: number, val: number): void {
18990         if(!isWasmInitialized) {
18991                 throw new Error("initializeWasm() must be awaited first!");
18992         }
18993         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_keys_manager(this_ptr, val);
18994         // debug statements here
18995 }
18996         // const struct LDKFeeEstimator *ChannelManagerReadArgs_get_fee_estimator(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
18997 /* @internal */
18998 export function ChannelManagerReadArgs_get_fee_estimator(this_ptr: number): number {
18999         if(!isWasmInitialized) {
19000                 throw new Error("initializeWasm() must be awaited first!");
19001         }
19002         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_fee_estimator(this_ptr);
19003         return nativeResponseValue;
19004 }
19005         // void ChannelManagerReadArgs_set_fee_estimator(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKFeeEstimator val);
19006 /* @internal */
19007 export function ChannelManagerReadArgs_set_fee_estimator(this_ptr: number, val: number): void {
19008         if(!isWasmInitialized) {
19009                 throw new Error("initializeWasm() must be awaited first!");
19010         }
19011         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_fee_estimator(this_ptr, val);
19012         // debug statements here
19013 }
19014         // const struct LDKWatch *ChannelManagerReadArgs_get_chain_monitor(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
19015 /* @internal */
19016 export function ChannelManagerReadArgs_get_chain_monitor(this_ptr: number): number {
19017         if(!isWasmInitialized) {
19018                 throw new Error("initializeWasm() must be awaited first!");
19019         }
19020         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_chain_monitor(this_ptr);
19021         return nativeResponseValue;
19022 }
19023         // void ChannelManagerReadArgs_set_chain_monitor(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKWatch val);
19024 /* @internal */
19025 export function ChannelManagerReadArgs_set_chain_monitor(this_ptr: number, val: number): void {
19026         if(!isWasmInitialized) {
19027                 throw new Error("initializeWasm() must be awaited first!");
19028         }
19029         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_chain_monitor(this_ptr, val);
19030         // debug statements here
19031 }
19032         // const struct LDKBroadcasterInterface *ChannelManagerReadArgs_get_tx_broadcaster(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
19033 /* @internal */
19034 export function ChannelManagerReadArgs_get_tx_broadcaster(this_ptr: number): number {
19035         if(!isWasmInitialized) {
19036                 throw new Error("initializeWasm() must be awaited first!");
19037         }
19038         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_tx_broadcaster(this_ptr);
19039         return nativeResponseValue;
19040 }
19041         // void ChannelManagerReadArgs_set_tx_broadcaster(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKBroadcasterInterface val);
19042 /* @internal */
19043 export function ChannelManagerReadArgs_set_tx_broadcaster(this_ptr: number, val: number): void {
19044         if(!isWasmInitialized) {
19045                 throw new Error("initializeWasm() must be awaited first!");
19046         }
19047         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_tx_broadcaster(this_ptr, val);
19048         // debug statements here
19049 }
19050         // const struct LDKLogger *ChannelManagerReadArgs_get_logger(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
19051 /* @internal */
19052 export function ChannelManagerReadArgs_get_logger(this_ptr: number): number {
19053         if(!isWasmInitialized) {
19054                 throw new Error("initializeWasm() must be awaited first!");
19055         }
19056         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_logger(this_ptr);
19057         return nativeResponseValue;
19058 }
19059         // void ChannelManagerReadArgs_set_logger(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKLogger val);
19060 /* @internal */
19061 export function ChannelManagerReadArgs_set_logger(this_ptr: number, val: number): void {
19062         if(!isWasmInitialized) {
19063                 throw new Error("initializeWasm() must be awaited first!");
19064         }
19065         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_logger(this_ptr, val);
19066         // debug statements here
19067 }
19068         // struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
19069 /* @internal */
19070 export function ChannelManagerReadArgs_get_default_config(this_ptr: number): number {
19071         if(!isWasmInitialized) {
19072                 throw new Error("initializeWasm() must be awaited first!");
19073         }
19074         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_default_config(this_ptr);
19075         return nativeResponseValue;
19076 }
19077         // void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKUserConfig val);
19078 /* @internal */
19079 export function ChannelManagerReadArgs_set_default_config(this_ptr: number, val: number): void {
19080         if(!isWasmInitialized) {
19081                 throw new Error("initializeWasm() must be awaited first!");
19082         }
19083         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_default_config(this_ptr, val);
19084         // debug statements here
19085 }
19086         // MUST_USE_RES struct LDKChannelManagerReadArgs ChannelManagerReadArgs_new(struct LDKKeysInterface keys_manager, struct LDKFeeEstimator fee_estimator, struct LDKWatch chain_monitor, struct LDKBroadcasterInterface tx_broadcaster, struct LDKLogger logger, struct LDKUserConfig default_config, struct LDKCVec_ChannelMonitorZ channel_monitors);
19087 /* @internal */
19088 export function ChannelManagerReadArgs_new(keys_manager: number, fee_estimator: number, chain_monitor: number, tx_broadcaster: number, logger: number, default_config: number, channel_monitors: number): number {
19089         if(!isWasmInitialized) {
19090                 throw new Error("initializeWasm() must be awaited first!");
19091         }
19092         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_new(keys_manager, fee_estimator, chain_monitor, tx_broadcaster, logger, default_config, channel_monitors);
19093         return nativeResponseValue;
19094 }
19095         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ C2Tuple_BlockHashChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg);
19096 /* @internal */
19097 export function C2Tuple_BlockHashChannelManagerZ_read(ser: number, arg: number): number {
19098         if(!isWasmInitialized) {
19099                 throw new Error("initializeWasm() must be awaited first!");
19100         }
19101         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_read(ser, arg);
19102         return nativeResponseValue;
19103 }
19104         // void DecodeError_free(struct LDKDecodeError this_obj);
19105 /* @internal */
19106 export function DecodeError_free(this_obj: number): void {
19107         if(!isWasmInitialized) {
19108                 throw new Error("initializeWasm() must be awaited first!");
19109         }
19110         const nativeResponseValue = wasm.TS_DecodeError_free(this_obj);
19111         // debug statements here
19112 }
19113         // uintptr_t DecodeError_clone_ptr(LDKDecodeError *NONNULL_PTR arg);
19114 /* @internal */
19115 export function DecodeError_clone_ptr(arg: number): number {
19116         if(!isWasmInitialized) {
19117                 throw new Error("initializeWasm() must be awaited first!");
19118         }
19119         const nativeResponseValue = wasm.TS_DecodeError_clone_ptr(arg);
19120         return nativeResponseValue;
19121 }
19122         // struct LDKDecodeError DecodeError_clone(const struct LDKDecodeError *NONNULL_PTR orig);
19123 /* @internal */
19124 export function DecodeError_clone(orig: number): number {
19125         if(!isWasmInitialized) {
19126                 throw new Error("initializeWasm() must be awaited first!");
19127         }
19128         const nativeResponseValue = wasm.TS_DecodeError_clone(orig);
19129         return nativeResponseValue;
19130 }
19131         // void Init_free(struct LDKInit this_obj);
19132 /* @internal */
19133 export function Init_free(this_obj: number): void {
19134         if(!isWasmInitialized) {
19135                 throw new Error("initializeWasm() must be awaited first!");
19136         }
19137         const nativeResponseValue = wasm.TS_Init_free(this_obj);
19138         // debug statements here
19139 }
19140         // struct LDKInitFeatures Init_get_features(const struct LDKInit *NONNULL_PTR this_ptr);
19141 /* @internal */
19142 export function Init_get_features(this_ptr: number): number {
19143         if(!isWasmInitialized) {
19144                 throw new Error("initializeWasm() must be awaited first!");
19145         }
19146         const nativeResponseValue = wasm.TS_Init_get_features(this_ptr);
19147         return nativeResponseValue;
19148 }
19149         // void Init_set_features(struct LDKInit *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
19150 /* @internal */
19151 export function Init_set_features(this_ptr: number, val: number): void {
19152         if(!isWasmInitialized) {
19153                 throw new Error("initializeWasm() must be awaited first!");
19154         }
19155         const nativeResponseValue = wasm.TS_Init_set_features(this_ptr, val);
19156         // debug statements here
19157 }
19158         // MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg);
19159 /* @internal */
19160 export function Init_new(features_arg: number): number {
19161         if(!isWasmInitialized) {
19162                 throw new Error("initializeWasm() must be awaited first!");
19163         }
19164         const nativeResponseValue = wasm.TS_Init_new(features_arg);
19165         return nativeResponseValue;
19166 }
19167         // uintptr_t Init_clone_ptr(LDKInit *NONNULL_PTR arg);
19168 /* @internal */
19169 export function Init_clone_ptr(arg: number): number {
19170         if(!isWasmInitialized) {
19171                 throw new Error("initializeWasm() must be awaited first!");
19172         }
19173         const nativeResponseValue = wasm.TS_Init_clone_ptr(arg);
19174         return nativeResponseValue;
19175 }
19176         // struct LDKInit Init_clone(const struct LDKInit *NONNULL_PTR orig);
19177 /* @internal */
19178 export function Init_clone(orig: number): number {
19179         if(!isWasmInitialized) {
19180                 throw new Error("initializeWasm() must be awaited first!");
19181         }
19182         const nativeResponseValue = wasm.TS_Init_clone(orig);
19183         return nativeResponseValue;
19184 }
19185         // void ErrorMessage_free(struct LDKErrorMessage this_obj);
19186 /* @internal */
19187 export function ErrorMessage_free(this_obj: number): void {
19188         if(!isWasmInitialized) {
19189                 throw new Error("initializeWasm() must be awaited first!");
19190         }
19191         const nativeResponseValue = wasm.TS_ErrorMessage_free(this_obj);
19192         // debug statements here
19193 }
19194         // const uint8_t (*ErrorMessage_get_channel_id(const struct LDKErrorMessage *NONNULL_PTR this_ptr))[32];
19195 /* @internal */
19196 export function ErrorMessage_get_channel_id(this_ptr: number): number {
19197         if(!isWasmInitialized) {
19198                 throw new Error("initializeWasm() must be awaited first!");
19199         }
19200         const nativeResponseValue = wasm.TS_ErrorMessage_get_channel_id(this_ptr);
19201         return nativeResponseValue;
19202 }
19203         // void ErrorMessage_set_channel_id(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
19204 /* @internal */
19205 export function ErrorMessage_set_channel_id(this_ptr: number, val: number): void {
19206         if(!isWasmInitialized) {
19207                 throw new Error("initializeWasm() must be awaited first!");
19208         }
19209         const nativeResponseValue = wasm.TS_ErrorMessage_set_channel_id(this_ptr, val);
19210         // debug statements here
19211 }
19212         // struct LDKStr ErrorMessage_get_data(const struct LDKErrorMessage *NONNULL_PTR this_ptr);
19213 /* @internal */
19214 export function ErrorMessage_get_data(this_ptr: number): number {
19215         if(!isWasmInitialized) {
19216                 throw new Error("initializeWasm() must be awaited first!");
19217         }
19218         const nativeResponseValue = wasm.TS_ErrorMessage_get_data(this_ptr);
19219         return nativeResponseValue;
19220 }
19221         // void ErrorMessage_set_data(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKStr val);
19222 /* @internal */
19223 export function ErrorMessage_set_data(this_ptr: number, val: number): void {
19224         if(!isWasmInitialized) {
19225                 throw new Error("initializeWasm() must be awaited first!");
19226         }
19227         const nativeResponseValue = wasm.TS_ErrorMessage_set_data(this_ptr, val);
19228         // debug statements here
19229 }
19230         // MUST_USE_RES struct LDKErrorMessage ErrorMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
19231 /* @internal */
19232 export function ErrorMessage_new(channel_id_arg: number, data_arg: number): number {
19233         if(!isWasmInitialized) {
19234                 throw new Error("initializeWasm() must be awaited first!");
19235         }
19236         const nativeResponseValue = wasm.TS_ErrorMessage_new(channel_id_arg, data_arg);
19237         return nativeResponseValue;
19238 }
19239         // uintptr_t ErrorMessage_clone_ptr(LDKErrorMessage *NONNULL_PTR arg);
19240 /* @internal */
19241 export function ErrorMessage_clone_ptr(arg: number): number {
19242         if(!isWasmInitialized) {
19243                 throw new Error("initializeWasm() must be awaited first!");
19244         }
19245         const nativeResponseValue = wasm.TS_ErrorMessage_clone_ptr(arg);
19246         return nativeResponseValue;
19247 }
19248         // struct LDKErrorMessage ErrorMessage_clone(const struct LDKErrorMessage *NONNULL_PTR orig);
19249 /* @internal */
19250 export function ErrorMessage_clone(orig: number): number {
19251         if(!isWasmInitialized) {
19252                 throw new Error("initializeWasm() must be awaited first!");
19253         }
19254         const nativeResponseValue = wasm.TS_ErrorMessage_clone(orig);
19255         return nativeResponseValue;
19256 }
19257         // void WarningMessage_free(struct LDKWarningMessage this_obj);
19258 /* @internal */
19259 export function WarningMessage_free(this_obj: number): void {
19260         if(!isWasmInitialized) {
19261                 throw new Error("initializeWasm() must be awaited first!");
19262         }
19263         const nativeResponseValue = wasm.TS_WarningMessage_free(this_obj);
19264         // debug statements here
19265 }
19266         // const uint8_t (*WarningMessage_get_channel_id(const struct LDKWarningMessage *NONNULL_PTR this_ptr))[32];
19267 /* @internal */
19268 export function WarningMessage_get_channel_id(this_ptr: number): number {
19269         if(!isWasmInitialized) {
19270                 throw new Error("initializeWasm() must be awaited first!");
19271         }
19272         const nativeResponseValue = wasm.TS_WarningMessage_get_channel_id(this_ptr);
19273         return nativeResponseValue;
19274 }
19275         // void WarningMessage_set_channel_id(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
19276 /* @internal */
19277 export function WarningMessage_set_channel_id(this_ptr: number, val: number): void {
19278         if(!isWasmInitialized) {
19279                 throw new Error("initializeWasm() must be awaited first!");
19280         }
19281         const nativeResponseValue = wasm.TS_WarningMessage_set_channel_id(this_ptr, val);
19282         // debug statements here
19283 }
19284         // struct LDKStr WarningMessage_get_data(const struct LDKWarningMessage *NONNULL_PTR this_ptr);
19285 /* @internal */
19286 export function WarningMessage_get_data(this_ptr: number): number {
19287         if(!isWasmInitialized) {
19288                 throw new Error("initializeWasm() must be awaited first!");
19289         }
19290         const nativeResponseValue = wasm.TS_WarningMessage_get_data(this_ptr);
19291         return nativeResponseValue;
19292 }
19293         // void WarningMessage_set_data(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKStr val);
19294 /* @internal */
19295 export function WarningMessage_set_data(this_ptr: number, val: number): void {
19296         if(!isWasmInitialized) {
19297                 throw new Error("initializeWasm() must be awaited first!");
19298         }
19299         const nativeResponseValue = wasm.TS_WarningMessage_set_data(this_ptr, val);
19300         // debug statements here
19301 }
19302         // MUST_USE_RES struct LDKWarningMessage WarningMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
19303 /* @internal */
19304 export function WarningMessage_new(channel_id_arg: number, data_arg: number): number {
19305         if(!isWasmInitialized) {
19306                 throw new Error("initializeWasm() must be awaited first!");
19307         }
19308         const nativeResponseValue = wasm.TS_WarningMessage_new(channel_id_arg, data_arg);
19309         return nativeResponseValue;
19310 }
19311         // uintptr_t WarningMessage_clone_ptr(LDKWarningMessage *NONNULL_PTR arg);
19312 /* @internal */
19313 export function WarningMessage_clone_ptr(arg: number): number {
19314         if(!isWasmInitialized) {
19315                 throw new Error("initializeWasm() must be awaited first!");
19316         }
19317         const nativeResponseValue = wasm.TS_WarningMessage_clone_ptr(arg);
19318         return nativeResponseValue;
19319 }
19320         // struct LDKWarningMessage WarningMessage_clone(const struct LDKWarningMessage *NONNULL_PTR orig);
19321 /* @internal */
19322 export function WarningMessage_clone(orig: number): number {
19323         if(!isWasmInitialized) {
19324                 throw new Error("initializeWasm() must be awaited first!");
19325         }
19326         const nativeResponseValue = wasm.TS_WarningMessage_clone(orig);
19327         return nativeResponseValue;
19328 }
19329         // void Ping_free(struct LDKPing this_obj);
19330 /* @internal */
19331 export function Ping_free(this_obj: number): void {
19332         if(!isWasmInitialized) {
19333                 throw new Error("initializeWasm() must be awaited first!");
19334         }
19335         const nativeResponseValue = wasm.TS_Ping_free(this_obj);
19336         // debug statements here
19337 }
19338         // uint16_t Ping_get_ponglen(const struct LDKPing *NONNULL_PTR this_ptr);
19339 /* @internal */
19340 export function Ping_get_ponglen(this_ptr: number): number {
19341         if(!isWasmInitialized) {
19342                 throw new Error("initializeWasm() must be awaited first!");
19343         }
19344         const nativeResponseValue = wasm.TS_Ping_get_ponglen(this_ptr);
19345         return nativeResponseValue;
19346 }
19347         // void Ping_set_ponglen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
19348 /* @internal */
19349 export function Ping_set_ponglen(this_ptr: number, val: number): void {
19350         if(!isWasmInitialized) {
19351                 throw new Error("initializeWasm() must be awaited first!");
19352         }
19353         const nativeResponseValue = wasm.TS_Ping_set_ponglen(this_ptr, val);
19354         // debug statements here
19355 }
19356         // uint16_t Ping_get_byteslen(const struct LDKPing *NONNULL_PTR this_ptr);
19357 /* @internal */
19358 export function Ping_get_byteslen(this_ptr: number): number {
19359         if(!isWasmInitialized) {
19360                 throw new Error("initializeWasm() must be awaited first!");
19361         }
19362         const nativeResponseValue = wasm.TS_Ping_get_byteslen(this_ptr);
19363         return nativeResponseValue;
19364 }
19365         // void Ping_set_byteslen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
19366 /* @internal */
19367 export function Ping_set_byteslen(this_ptr: number, val: number): void {
19368         if(!isWasmInitialized) {
19369                 throw new Error("initializeWasm() must be awaited first!");
19370         }
19371         const nativeResponseValue = wasm.TS_Ping_set_byteslen(this_ptr, val);
19372         // debug statements here
19373 }
19374         // MUST_USE_RES struct LDKPing Ping_new(uint16_t ponglen_arg, uint16_t byteslen_arg);
19375 /* @internal */
19376 export function Ping_new(ponglen_arg: number, byteslen_arg: number): number {
19377         if(!isWasmInitialized) {
19378                 throw new Error("initializeWasm() must be awaited first!");
19379         }
19380         const nativeResponseValue = wasm.TS_Ping_new(ponglen_arg, byteslen_arg);
19381         return nativeResponseValue;
19382 }
19383         // uintptr_t Ping_clone_ptr(LDKPing *NONNULL_PTR arg);
19384 /* @internal */
19385 export function Ping_clone_ptr(arg: number): number {
19386         if(!isWasmInitialized) {
19387                 throw new Error("initializeWasm() must be awaited first!");
19388         }
19389         const nativeResponseValue = wasm.TS_Ping_clone_ptr(arg);
19390         return nativeResponseValue;
19391 }
19392         // struct LDKPing Ping_clone(const struct LDKPing *NONNULL_PTR orig);
19393 /* @internal */
19394 export function Ping_clone(orig: number): number {
19395         if(!isWasmInitialized) {
19396                 throw new Error("initializeWasm() must be awaited first!");
19397         }
19398         const nativeResponseValue = wasm.TS_Ping_clone(orig);
19399         return nativeResponseValue;
19400 }
19401         // void Pong_free(struct LDKPong this_obj);
19402 /* @internal */
19403 export function Pong_free(this_obj: number): void {
19404         if(!isWasmInitialized) {
19405                 throw new Error("initializeWasm() must be awaited first!");
19406         }
19407         const nativeResponseValue = wasm.TS_Pong_free(this_obj);
19408         // debug statements here
19409 }
19410         // uint16_t Pong_get_byteslen(const struct LDKPong *NONNULL_PTR this_ptr);
19411 /* @internal */
19412 export function Pong_get_byteslen(this_ptr: number): number {
19413         if(!isWasmInitialized) {
19414                 throw new Error("initializeWasm() must be awaited first!");
19415         }
19416         const nativeResponseValue = wasm.TS_Pong_get_byteslen(this_ptr);
19417         return nativeResponseValue;
19418 }
19419         // void Pong_set_byteslen(struct LDKPong *NONNULL_PTR this_ptr, uint16_t val);
19420 /* @internal */
19421 export function Pong_set_byteslen(this_ptr: number, val: number): void {
19422         if(!isWasmInitialized) {
19423                 throw new Error("initializeWasm() must be awaited first!");
19424         }
19425         const nativeResponseValue = wasm.TS_Pong_set_byteslen(this_ptr, val);
19426         // debug statements here
19427 }
19428         // MUST_USE_RES struct LDKPong Pong_new(uint16_t byteslen_arg);
19429 /* @internal */
19430 export function Pong_new(byteslen_arg: number): number {
19431         if(!isWasmInitialized) {
19432                 throw new Error("initializeWasm() must be awaited first!");
19433         }
19434         const nativeResponseValue = wasm.TS_Pong_new(byteslen_arg);
19435         return nativeResponseValue;
19436 }
19437         // uintptr_t Pong_clone_ptr(LDKPong *NONNULL_PTR arg);
19438 /* @internal */
19439 export function Pong_clone_ptr(arg: number): number {
19440         if(!isWasmInitialized) {
19441                 throw new Error("initializeWasm() must be awaited first!");
19442         }
19443         const nativeResponseValue = wasm.TS_Pong_clone_ptr(arg);
19444         return nativeResponseValue;
19445 }
19446         // struct LDKPong Pong_clone(const struct LDKPong *NONNULL_PTR orig);
19447 /* @internal */
19448 export function Pong_clone(orig: number): number {
19449         if(!isWasmInitialized) {
19450                 throw new Error("initializeWasm() must be awaited first!");
19451         }
19452         const nativeResponseValue = wasm.TS_Pong_clone(orig);
19453         return nativeResponseValue;
19454 }
19455         // void OpenChannel_free(struct LDKOpenChannel this_obj);
19456 /* @internal */
19457 export function OpenChannel_free(this_obj: number): void {
19458         if(!isWasmInitialized) {
19459                 throw new Error("initializeWasm() must be awaited first!");
19460         }
19461         const nativeResponseValue = wasm.TS_OpenChannel_free(this_obj);
19462         // debug statements here
19463 }
19464         // const uint8_t (*OpenChannel_get_chain_hash(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
19465 /* @internal */
19466 export function OpenChannel_get_chain_hash(this_ptr: number): number {
19467         if(!isWasmInitialized) {
19468                 throw new Error("initializeWasm() must be awaited first!");
19469         }
19470         const nativeResponseValue = wasm.TS_OpenChannel_get_chain_hash(this_ptr);
19471         return nativeResponseValue;
19472 }
19473         // void OpenChannel_set_chain_hash(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
19474 /* @internal */
19475 export function OpenChannel_set_chain_hash(this_ptr: number, val: number): void {
19476         if(!isWasmInitialized) {
19477                 throw new Error("initializeWasm() must be awaited first!");
19478         }
19479         const nativeResponseValue = wasm.TS_OpenChannel_set_chain_hash(this_ptr, val);
19480         // debug statements here
19481 }
19482         // const uint8_t (*OpenChannel_get_temporary_channel_id(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
19483 /* @internal */
19484 export function OpenChannel_get_temporary_channel_id(this_ptr: number): number {
19485         if(!isWasmInitialized) {
19486                 throw new Error("initializeWasm() must be awaited first!");
19487         }
19488         const nativeResponseValue = wasm.TS_OpenChannel_get_temporary_channel_id(this_ptr);
19489         return nativeResponseValue;
19490 }
19491         // void OpenChannel_set_temporary_channel_id(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
19492 /* @internal */
19493 export function OpenChannel_set_temporary_channel_id(this_ptr: number, val: number): void {
19494         if(!isWasmInitialized) {
19495                 throw new Error("initializeWasm() must be awaited first!");
19496         }
19497         const nativeResponseValue = wasm.TS_OpenChannel_set_temporary_channel_id(this_ptr, val);
19498         // debug statements here
19499 }
19500         // uint64_t OpenChannel_get_funding_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19501 /* @internal */
19502 export function OpenChannel_get_funding_satoshis(this_ptr: number): bigint {
19503         if(!isWasmInitialized) {
19504                 throw new Error("initializeWasm() must be awaited first!");
19505         }
19506         const nativeResponseValue = wasm.TS_OpenChannel_get_funding_satoshis(this_ptr);
19507         return nativeResponseValue;
19508 }
19509         // void OpenChannel_set_funding_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
19510 /* @internal */
19511 export function OpenChannel_set_funding_satoshis(this_ptr: number, val: bigint): void {
19512         if(!isWasmInitialized) {
19513                 throw new Error("initializeWasm() must be awaited first!");
19514         }
19515         const nativeResponseValue = wasm.TS_OpenChannel_set_funding_satoshis(this_ptr, val);
19516         // debug statements here
19517 }
19518         // uint64_t OpenChannel_get_push_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19519 /* @internal */
19520 export function OpenChannel_get_push_msat(this_ptr: number): bigint {
19521         if(!isWasmInitialized) {
19522                 throw new Error("initializeWasm() must be awaited first!");
19523         }
19524         const nativeResponseValue = wasm.TS_OpenChannel_get_push_msat(this_ptr);
19525         return nativeResponseValue;
19526 }
19527         // void OpenChannel_set_push_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
19528 /* @internal */
19529 export function OpenChannel_set_push_msat(this_ptr: number, val: bigint): void {
19530         if(!isWasmInitialized) {
19531                 throw new Error("initializeWasm() must be awaited first!");
19532         }
19533         const nativeResponseValue = wasm.TS_OpenChannel_set_push_msat(this_ptr, val);
19534         // debug statements here
19535 }
19536         // uint64_t OpenChannel_get_dust_limit_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19537 /* @internal */
19538 export function OpenChannel_get_dust_limit_satoshis(this_ptr: number): bigint {
19539         if(!isWasmInitialized) {
19540                 throw new Error("initializeWasm() must be awaited first!");
19541         }
19542         const nativeResponseValue = wasm.TS_OpenChannel_get_dust_limit_satoshis(this_ptr);
19543         return nativeResponseValue;
19544 }
19545         // void OpenChannel_set_dust_limit_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
19546 /* @internal */
19547 export function OpenChannel_set_dust_limit_satoshis(this_ptr: number, val: bigint): void {
19548         if(!isWasmInitialized) {
19549                 throw new Error("initializeWasm() must be awaited first!");
19550         }
19551         const nativeResponseValue = wasm.TS_OpenChannel_set_dust_limit_satoshis(this_ptr, val);
19552         // debug statements here
19553 }
19554         // uint64_t OpenChannel_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19555 /* @internal */
19556 export function OpenChannel_get_max_htlc_value_in_flight_msat(this_ptr: number): bigint {
19557         if(!isWasmInitialized) {
19558                 throw new Error("initializeWasm() must be awaited first!");
19559         }
19560         const nativeResponseValue = wasm.TS_OpenChannel_get_max_htlc_value_in_flight_msat(this_ptr);
19561         return nativeResponseValue;
19562 }
19563         // void OpenChannel_set_max_htlc_value_in_flight_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
19564 /* @internal */
19565 export function OpenChannel_set_max_htlc_value_in_flight_msat(this_ptr: number, val: bigint): void {
19566         if(!isWasmInitialized) {
19567                 throw new Error("initializeWasm() must be awaited first!");
19568         }
19569         const nativeResponseValue = wasm.TS_OpenChannel_set_max_htlc_value_in_flight_msat(this_ptr, val);
19570         // debug statements here
19571 }
19572         // uint64_t OpenChannel_get_channel_reserve_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19573 /* @internal */
19574 export function OpenChannel_get_channel_reserve_satoshis(this_ptr: number): bigint {
19575         if(!isWasmInitialized) {
19576                 throw new Error("initializeWasm() must be awaited first!");
19577         }
19578         const nativeResponseValue = wasm.TS_OpenChannel_get_channel_reserve_satoshis(this_ptr);
19579         return nativeResponseValue;
19580 }
19581         // void OpenChannel_set_channel_reserve_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
19582 /* @internal */
19583 export function OpenChannel_set_channel_reserve_satoshis(this_ptr: number, val: bigint): void {
19584         if(!isWasmInitialized) {
19585                 throw new Error("initializeWasm() must be awaited first!");
19586         }
19587         const nativeResponseValue = wasm.TS_OpenChannel_set_channel_reserve_satoshis(this_ptr, val);
19588         // debug statements here
19589 }
19590         // uint64_t OpenChannel_get_htlc_minimum_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19591 /* @internal */
19592 export function OpenChannel_get_htlc_minimum_msat(this_ptr: number): bigint {
19593         if(!isWasmInitialized) {
19594                 throw new Error("initializeWasm() must be awaited first!");
19595         }
19596         const nativeResponseValue = wasm.TS_OpenChannel_get_htlc_minimum_msat(this_ptr);
19597         return nativeResponseValue;
19598 }
19599         // void OpenChannel_set_htlc_minimum_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
19600 /* @internal */
19601 export function OpenChannel_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
19602         if(!isWasmInitialized) {
19603                 throw new Error("initializeWasm() must be awaited first!");
19604         }
19605         const nativeResponseValue = wasm.TS_OpenChannel_set_htlc_minimum_msat(this_ptr, val);
19606         // debug statements here
19607 }
19608         // uint32_t OpenChannel_get_feerate_per_kw(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19609 /* @internal */
19610 export function OpenChannel_get_feerate_per_kw(this_ptr: number): number {
19611         if(!isWasmInitialized) {
19612                 throw new Error("initializeWasm() must be awaited first!");
19613         }
19614         const nativeResponseValue = wasm.TS_OpenChannel_get_feerate_per_kw(this_ptr);
19615         return nativeResponseValue;
19616 }
19617         // void OpenChannel_set_feerate_per_kw(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint32_t val);
19618 /* @internal */
19619 export function OpenChannel_set_feerate_per_kw(this_ptr: number, val: number): void {
19620         if(!isWasmInitialized) {
19621                 throw new Error("initializeWasm() must be awaited first!");
19622         }
19623         const nativeResponseValue = wasm.TS_OpenChannel_set_feerate_per_kw(this_ptr, val);
19624         // debug statements here
19625 }
19626         // uint16_t OpenChannel_get_to_self_delay(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19627 /* @internal */
19628 export function OpenChannel_get_to_self_delay(this_ptr: number): number {
19629         if(!isWasmInitialized) {
19630                 throw new Error("initializeWasm() must be awaited first!");
19631         }
19632         const nativeResponseValue = wasm.TS_OpenChannel_get_to_self_delay(this_ptr);
19633         return nativeResponseValue;
19634 }
19635         // void OpenChannel_set_to_self_delay(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
19636 /* @internal */
19637 export function OpenChannel_set_to_self_delay(this_ptr: number, val: number): void {
19638         if(!isWasmInitialized) {
19639                 throw new Error("initializeWasm() must be awaited first!");
19640         }
19641         const nativeResponseValue = wasm.TS_OpenChannel_set_to_self_delay(this_ptr, val);
19642         // debug statements here
19643 }
19644         // uint16_t OpenChannel_get_max_accepted_htlcs(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19645 /* @internal */
19646 export function OpenChannel_get_max_accepted_htlcs(this_ptr: number): number {
19647         if(!isWasmInitialized) {
19648                 throw new Error("initializeWasm() must be awaited first!");
19649         }
19650         const nativeResponseValue = wasm.TS_OpenChannel_get_max_accepted_htlcs(this_ptr);
19651         return nativeResponseValue;
19652 }
19653         // void OpenChannel_set_max_accepted_htlcs(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
19654 /* @internal */
19655 export function OpenChannel_set_max_accepted_htlcs(this_ptr: number, val: number): void {
19656         if(!isWasmInitialized) {
19657                 throw new Error("initializeWasm() must be awaited first!");
19658         }
19659         const nativeResponseValue = wasm.TS_OpenChannel_set_max_accepted_htlcs(this_ptr, val);
19660         // debug statements here
19661 }
19662         // struct LDKPublicKey OpenChannel_get_funding_pubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19663 /* @internal */
19664 export function OpenChannel_get_funding_pubkey(this_ptr: number): number {
19665         if(!isWasmInitialized) {
19666                 throw new Error("initializeWasm() must be awaited first!");
19667         }
19668         const nativeResponseValue = wasm.TS_OpenChannel_get_funding_pubkey(this_ptr);
19669         return nativeResponseValue;
19670 }
19671         // void OpenChannel_set_funding_pubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
19672 /* @internal */
19673 export function OpenChannel_set_funding_pubkey(this_ptr: number, val: number): void {
19674         if(!isWasmInitialized) {
19675                 throw new Error("initializeWasm() must be awaited first!");
19676         }
19677         const nativeResponseValue = wasm.TS_OpenChannel_set_funding_pubkey(this_ptr, val);
19678         // debug statements here
19679 }
19680         // struct LDKPublicKey OpenChannel_get_revocation_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19681 /* @internal */
19682 export function OpenChannel_get_revocation_basepoint(this_ptr: number): number {
19683         if(!isWasmInitialized) {
19684                 throw new Error("initializeWasm() must be awaited first!");
19685         }
19686         const nativeResponseValue = wasm.TS_OpenChannel_get_revocation_basepoint(this_ptr);
19687         return nativeResponseValue;
19688 }
19689         // void OpenChannel_set_revocation_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
19690 /* @internal */
19691 export function OpenChannel_set_revocation_basepoint(this_ptr: number, val: number): void {
19692         if(!isWasmInitialized) {
19693                 throw new Error("initializeWasm() must be awaited first!");
19694         }
19695         const nativeResponseValue = wasm.TS_OpenChannel_set_revocation_basepoint(this_ptr, val);
19696         // debug statements here
19697 }
19698         // struct LDKPublicKey OpenChannel_get_payment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19699 /* @internal */
19700 export function OpenChannel_get_payment_point(this_ptr: number): number {
19701         if(!isWasmInitialized) {
19702                 throw new Error("initializeWasm() must be awaited first!");
19703         }
19704         const nativeResponseValue = wasm.TS_OpenChannel_get_payment_point(this_ptr);
19705         return nativeResponseValue;
19706 }
19707         // void OpenChannel_set_payment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
19708 /* @internal */
19709 export function OpenChannel_set_payment_point(this_ptr: number, val: number): void {
19710         if(!isWasmInitialized) {
19711                 throw new Error("initializeWasm() must be awaited first!");
19712         }
19713         const nativeResponseValue = wasm.TS_OpenChannel_set_payment_point(this_ptr, val);
19714         // debug statements here
19715 }
19716         // struct LDKPublicKey OpenChannel_get_delayed_payment_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19717 /* @internal */
19718 export function OpenChannel_get_delayed_payment_basepoint(this_ptr: number): number {
19719         if(!isWasmInitialized) {
19720                 throw new Error("initializeWasm() must be awaited first!");
19721         }
19722         const nativeResponseValue = wasm.TS_OpenChannel_get_delayed_payment_basepoint(this_ptr);
19723         return nativeResponseValue;
19724 }
19725         // void OpenChannel_set_delayed_payment_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
19726 /* @internal */
19727 export function OpenChannel_set_delayed_payment_basepoint(this_ptr: number, val: number): void {
19728         if(!isWasmInitialized) {
19729                 throw new Error("initializeWasm() must be awaited first!");
19730         }
19731         const nativeResponseValue = wasm.TS_OpenChannel_set_delayed_payment_basepoint(this_ptr, val);
19732         // debug statements here
19733 }
19734         // struct LDKPublicKey OpenChannel_get_htlc_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19735 /* @internal */
19736 export function OpenChannel_get_htlc_basepoint(this_ptr: number): number {
19737         if(!isWasmInitialized) {
19738                 throw new Error("initializeWasm() must be awaited first!");
19739         }
19740         const nativeResponseValue = wasm.TS_OpenChannel_get_htlc_basepoint(this_ptr);
19741         return nativeResponseValue;
19742 }
19743         // void OpenChannel_set_htlc_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
19744 /* @internal */
19745 export function OpenChannel_set_htlc_basepoint(this_ptr: number, val: number): void {
19746         if(!isWasmInitialized) {
19747                 throw new Error("initializeWasm() must be awaited first!");
19748         }
19749         const nativeResponseValue = wasm.TS_OpenChannel_set_htlc_basepoint(this_ptr, val);
19750         // debug statements here
19751 }
19752         // struct LDKPublicKey OpenChannel_get_first_per_commitment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19753 /* @internal */
19754 export function OpenChannel_get_first_per_commitment_point(this_ptr: number): number {
19755         if(!isWasmInitialized) {
19756                 throw new Error("initializeWasm() must be awaited first!");
19757         }
19758         const nativeResponseValue = wasm.TS_OpenChannel_get_first_per_commitment_point(this_ptr);
19759         return nativeResponseValue;
19760 }
19761         // void OpenChannel_set_first_per_commitment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
19762 /* @internal */
19763 export function OpenChannel_set_first_per_commitment_point(this_ptr: number, val: number): void {
19764         if(!isWasmInitialized) {
19765                 throw new Error("initializeWasm() must be awaited first!");
19766         }
19767         const nativeResponseValue = wasm.TS_OpenChannel_set_first_per_commitment_point(this_ptr, val);
19768         // debug statements here
19769 }
19770         // uint8_t OpenChannel_get_channel_flags(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19771 /* @internal */
19772 export function OpenChannel_get_channel_flags(this_ptr: number): number {
19773         if(!isWasmInitialized) {
19774                 throw new Error("initializeWasm() must be awaited first!");
19775         }
19776         const nativeResponseValue = wasm.TS_OpenChannel_get_channel_flags(this_ptr);
19777         return nativeResponseValue;
19778 }
19779         // void OpenChannel_set_channel_flags(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint8_t val);
19780 /* @internal */
19781 export function OpenChannel_set_channel_flags(this_ptr: number, val: number): void {
19782         if(!isWasmInitialized) {
19783                 throw new Error("initializeWasm() must be awaited first!");
19784         }
19785         const nativeResponseValue = wasm.TS_OpenChannel_set_channel_flags(this_ptr, val);
19786         // debug statements here
19787 }
19788         // struct LDKChannelTypeFeatures OpenChannel_get_channel_type(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19789 /* @internal */
19790 export function OpenChannel_get_channel_type(this_ptr: number): number {
19791         if(!isWasmInitialized) {
19792                 throw new Error("initializeWasm() must be awaited first!");
19793         }
19794         const nativeResponseValue = wasm.TS_OpenChannel_get_channel_type(this_ptr);
19795         return nativeResponseValue;
19796 }
19797         // void OpenChannel_set_channel_type(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
19798 /* @internal */
19799 export function OpenChannel_set_channel_type(this_ptr: number, val: number): void {
19800         if(!isWasmInitialized) {
19801                 throw new Error("initializeWasm() must be awaited first!");
19802         }
19803         const nativeResponseValue = wasm.TS_OpenChannel_set_channel_type(this_ptr, val);
19804         // debug statements here
19805 }
19806         // uintptr_t OpenChannel_clone_ptr(LDKOpenChannel *NONNULL_PTR arg);
19807 /* @internal */
19808 export function OpenChannel_clone_ptr(arg: number): number {
19809         if(!isWasmInitialized) {
19810                 throw new Error("initializeWasm() must be awaited first!");
19811         }
19812         const nativeResponseValue = wasm.TS_OpenChannel_clone_ptr(arg);
19813         return nativeResponseValue;
19814 }
19815         // struct LDKOpenChannel OpenChannel_clone(const struct LDKOpenChannel *NONNULL_PTR orig);
19816 /* @internal */
19817 export function OpenChannel_clone(orig: number): number {
19818         if(!isWasmInitialized) {
19819                 throw new Error("initializeWasm() must be awaited first!");
19820         }
19821         const nativeResponseValue = wasm.TS_OpenChannel_clone(orig);
19822         return nativeResponseValue;
19823 }
19824         // void AcceptChannel_free(struct LDKAcceptChannel this_obj);
19825 /* @internal */
19826 export function AcceptChannel_free(this_obj: number): void {
19827         if(!isWasmInitialized) {
19828                 throw new Error("initializeWasm() must be awaited first!");
19829         }
19830         const nativeResponseValue = wasm.TS_AcceptChannel_free(this_obj);
19831         // debug statements here
19832 }
19833         // const uint8_t (*AcceptChannel_get_temporary_channel_id(const struct LDKAcceptChannel *NONNULL_PTR this_ptr))[32];
19834 /* @internal */
19835 export function AcceptChannel_get_temporary_channel_id(this_ptr: number): number {
19836         if(!isWasmInitialized) {
19837                 throw new Error("initializeWasm() must be awaited first!");
19838         }
19839         const nativeResponseValue = wasm.TS_AcceptChannel_get_temporary_channel_id(this_ptr);
19840         return nativeResponseValue;
19841 }
19842         // void AcceptChannel_set_temporary_channel_id(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
19843 /* @internal */
19844 export function AcceptChannel_set_temporary_channel_id(this_ptr: number, val: number): void {
19845         if(!isWasmInitialized) {
19846                 throw new Error("initializeWasm() must be awaited first!");
19847         }
19848         const nativeResponseValue = wasm.TS_AcceptChannel_set_temporary_channel_id(this_ptr, val);
19849         // debug statements here
19850 }
19851         // uint64_t AcceptChannel_get_dust_limit_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
19852 /* @internal */
19853 export function AcceptChannel_get_dust_limit_satoshis(this_ptr: number): bigint {
19854         if(!isWasmInitialized) {
19855                 throw new Error("initializeWasm() must be awaited first!");
19856         }
19857         const nativeResponseValue = wasm.TS_AcceptChannel_get_dust_limit_satoshis(this_ptr);
19858         return nativeResponseValue;
19859 }
19860         // void AcceptChannel_set_dust_limit_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
19861 /* @internal */
19862 export function AcceptChannel_set_dust_limit_satoshis(this_ptr: number, val: bigint): void {
19863         if(!isWasmInitialized) {
19864                 throw new Error("initializeWasm() must be awaited first!");
19865         }
19866         const nativeResponseValue = wasm.TS_AcceptChannel_set_dust_limit_satoshis(this_ptr, val);
19867         // debug statements here
19868 }
19869         // uint64_t AcceptChannel_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
19870 /* @internal */
19871 export function AcceptChannel_get_max_htlc_value_in_flight_msat(this_ptr: number): bigint {
19872         if(!isWasmInitialized) {
19873                 throw new Error("initializeWasm() must be awaited first!");
19874         }
19875         const nativeResponseValue = wasm.TS_AcceptChannel_get_max_htlc_value_in_flight_msat(this_ptr);
19876         return nativeResponseValue;
19877 }
19878         // void AcceptChannel_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
19879 /* @internal */
19880 export function AcceptChannel_set_max_htlc_value_in_flight_msat(this_ptr: number, val: bigint): void {
19881         if(!isWasmInitialized) {
19882                 throw new Error("initializeWasm() must be awaited first!");
19883         }
19884         const nativeResponseValue = wasm.TS_AcceptChannel_set_max_htlc_value_in_flight_msat(this_ptr, val);
19885         // debug statements here
19886 }
19887         // uint64_t AcceptChannel_get_channel_reserve_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
19888 /* @internal */
19889 export function AcceptChannel_get_channel_reserve_satoshis(this_ptr: number): bigint {
19890         if(!isWasmInitialized) {
19891                 throw new Error("initializeWasm() must be awaited first!");
19892         }
19893         const nativeResponseValue = wasm.TS_AcceptChannel_get_channel_reserve_satoshis(this_ptr);
19894         return nativeResponseValue;
19895 }
19896         // void AcceptChannel_set_channel_reserve_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
19897 /* @internal */
19898 export function AcceptChannel_set_channel_reserve_satoshis(this_ptr: number, val: bigint): void {
19899         if(!isWasmInitialized) {
19900                 throw new Error("initializeWasm() must be awaited first!");
19901         }
19902         const nativeResponseValue = wasm.TS_AcceptChannel_set_channel_reserve_satoshis(this_ptr, val);
19903         // debug statements here
19904 }
19905         // uint64_t AcceptChannel_get_htlc_minimum_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
19906 /* @internal */
19907 export function AcceptChannel_get_htlc_minimum_msat(this_ptr: number): bigint {
19908         if(!isWasmInitialized) {
19909                 throw new Error("initializeWasm() must be awaited first!");
19910         }
19911         const nativeResponseValue = wasm.TS_AcceptChannel_get_htlc_minimum_msat(this_ptr);
19912         return nativeResponseValue;
19913 }
19914         // void AcceptChannel_set_htlc_minimum_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
19915 /* @internal */
19916 export function AcceptChannel_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
19917         if(!isWasmInitialized) {
19918                 throw new Error("initializeWasm() must be awaited first!");
19919         }
19920         const nativeResponseValue = wasm.TS_AcceptChannel_set_htlc_minimum_msat(this_ptr, val);
19921         // debug statements here
19922 }
19923         // uint32_t AcceptChannel_get_minimum_depth(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
19924 /* @internal */
19925 export function AcceptChannel_get_minimum_depth(this_ptr: number): number {
19926         if(!isWasmInitialized) {
19927                 throw new Error("initializeWasm() must be awaited first!");
19928         }
19929         const nativeResponseValue = wasm.TS_AcceptChannel_get_minimum_depth(this_ptr);
19930         return nativeResponseValue;
19931 }
19932         // void AcceptChannel_set_minimum_depth(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint32_t val);
19933 /* @internal */
19934 export function AcceptChannel_set_minimum_depth(this_ptr: number, val: number): void {
19935         if(!isWasmInitialized) {
19936                 throw new Error("initializeWasm() must be awaited first!");
19937         }
19938         const nativeResponseValue = wasm.TS_AcceptChannel_set_minimum_depth(this_ptr, val);
19939         // debug statements here
19940 }
19941         // uint16_t AcceptChannel_get_to_self_delay(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
19942 /* @internal */
19943 export function AcceptChannel_get_to_self_delay(this_ptr: number): number {
19944         if(!isWasmInitialized) {
19945                 throw new Error("initializeWasm() must be awaited first!");
19946         }
19947         const nativeResponseValue = wasm.TS_AcceptChannel_get_to_self_delay(this_ptr);
19948         return nativeResponseValue;
19949 }
19950         // void AcceptChannel_set_to_self_delay(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
19951 /* @internal */
19952 export function AcceptChannel_set_to_self_delay(this_ptr: number, val: number): void {
19953         if(!isWasmInitialized) {
19954                 throw new Error("initializeWasm() must be awaited first!");
19955         }
19956         const nativeResponseValue = wasm.TS_AcceptChannel_set_to_self_delay(this_ptr, val);
19957         // debug statements here
19958 }
19959         // uint16_t AcceptChannel_get_max_accepted_htlcs(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
19960 /* @internal */
19961 export function AcceptChannel_get_max_accepted_htlcs(this_ptr: number): number {
19962         if(!isWasmInitialized) {
19963                 throw new Error("initializeWasm() must be awaited first!");
19964         }
19965         const nativeResponseValue = wasm.TS_AcceptChannel_get_max_accepted_htlcs(this_ptr);
19966         return nativeResponseValue;
19967 }
19968         // void AcceptChannel_set_max_accepted_htlcs(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
19969 /* @internal */
19970 export function AcceptChannel_set_max_accepted_htlcs(this_ptr: number, val: number): void {
19971         if(!isWasmInitialized) {
19972                 throw new Error("initializeWasm() must be awaited first!");
19973         }
19974         const nativeResponseValue = wasm.TS_AcceptChannel_set_max_accepted_htlcs(this_ptr, val);
19975         // debug statements here
19976 }
19977         // struct LDKPublicKey AcceptChannel_get_funding_pubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
19978 /* @internal */
19979 export function AcceptChannel_get_funding_pubkey(this_ptr: number): number {
19980         if(!isWasmInitialized) {
19981                 throw new Error("initializeWasm() must be awaited first!");
19982         }
19983         const nativeResponseValue = wasm.TS_AcceptChannel_get_funding_pubkey(this_ptr);
19984         return nativeResponseValue;
19985 }
19986         // void AcceptChannel_set_funding_pubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
19987 /* @internal */
19988 export function AcceptChannel_set_funding_pubkey(this_ptr: number, val: number): void {
19989         if(!isWasmInitialized) {
19990                 throw new Error("initializeWasm() must be awaited first!");
19991         }
19992         const nativeResponseValue = wasm.TS_AcceptChannel_set_funding_pubkey(this_ptr, val);
19993         // debug statements here
19994 }
19995         // struct LDKPublicKey AcceptChannel_get_revocation_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
19996 /* @internal */
19997 export function AcceptChannel_get_revocation_basepoint(this_ptr: number): number {
19998         if(!isWasmInitialized) {
19999                 throw new Error("initializeWasm() must be awaited first!");
20000         }
20001         const nativeResponseValue = wasm.TS_AcceptChannel_get_revocation_basepoint(this_ptr);
20002         return nativeResponseValue;
20003 }
20004         // void AcceptChannel_set_revocation_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20005 /* @internal */
20006 export function AcceptChannel_set_revocation_basepoint(this_ptr: number, val: number): void {
20007         if(!isWasmInitialized) {
20008                 throw new Error("initializeWasm() must be awaited first!");
20009         }
20010         const nativeResponseValue = wasm.TS_AcceptChannel_set_revocation_basepoint(this_ptr, val);
20011         // debug statements here
20012 }
20013         // struct LDKPublicKey AcceptChannel_get_payment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20014 /* @internal */
20015 export function AcceptChannel_get_payment_point(this_ptr: number): number {
20016         if(!isWasmInitialized) {
20017                 throw new Error("initializeWasm() must be awaited first!");
20018         }
20019         const nativeResponseValue = wasm.TS_AcceptChannel_get_payment_point(this_ptr);
20020         return nativeResponseValue;
20021 }
20022         // void AcceptChannel_set_payment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20023 /* @internal */
20024 export function AcceptChannel_set_payment_point(this_ptr: number, val: number): void {
20025         if(!isWasmInitialized) {
20026                 throw new Error("initializeWasm() must be awaited first!");
20027         }
20028         const nativeResponseValue = wasm.TS_AcceptChannel_set_payment_point(this_ptr, val);
20029         // debug statements here
20030 }
20031         // struct LDKPublicKey AcceptChannel_get_delayed_payment_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20032 /* @internal */
20033 export function AcceptChannel_get_delayed_payment_basepoint(this_ptr: number): number {
20034         if(!isWasmInitialized) {
20035                 throw new Error("initializeWasm() must be awaited first!");
20036         }
20037         const nativeResponseValue = wasm.TS_AcceptChannel_get_delayed_payment_basepoint(this_ptr);
20038         return nativeResponseValue;
20039 }
20040         // void AcceptChannel_set_delayed_payment_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20041 /* @internal */
20042 export function AcceptChannel_set_delayed_payment_basepoint(this_ptr: number, val: number): void {
20043         if(!isWasmInitialized) {
20044                 throw new Error("initializeWasm() must be awaited first!");
20045         }
20046         const nativeResponseValue = wasm.TS_AcceptChannel_set_delayed_payment_basepoint(this_ptr, val);
20047         // debug statements here
20048 }
20049         // struct LDKPublicKey AcceptChannel_get_htlc_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20050 /* @internal */
20051 export function AcceptChannel_get_htlc_basepoint(this_ptr: number): number {
20052         if(!isWasmInitialized) {
20053                 throw new Error("initializeWasm() must be awaited first!");
20054         }
20055         const nativeResponseValue = wasm.TS_AcceptChannel_get_htlc_basepoint(this_ptr);
20056         return nativeResponseValue;
20057 }
20058         // void AcceptChannel_set_htlc_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20059 /* @internal */
20060 export function AcceptChannel_set_htlc_basepoint(this_ptr: number, val: number): void {
20061         if(!isWasmInitialized) {
20062                 throw new Error("initializeWasm() must be awaited first!");
20063         }
20064         const nativeResponseValue = wasm.TS_AcceptChannel_set_htlc_basepoint(this_ptr, val);
20065         // debug statements here
20066 }
20067         // struct LDKPublicKey AcceptChannel_get_first_per_commitment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20068 /* @internal */
20069 export function AcceptChannel_get_first_per_commitment_point(this_ptr: number): number {
20070         if(!isWasmInitialized) {
20071                 throw new Error("initializeWasm() must be awaited first!");
20072         }
20073         const nativeResponseValue = wasm.TS_AcceptChannel_get_first_per_commitment_point(this_ptr);
20074         return nativeResponseValue;
20075 }
20076         // void AcceptChannel_set_first_per_commitment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20077 /* @internal */
20078 export function AcceptChannel_set_first_per_commitment_point(this_ptr: number, val: number): void {
20079         if(!isWasmInitialized) {
20080                 throw new Error("initializeWasm() must be awaited first!");
20081         }
20082         const nativeResponseValue = wasm.TS_AcceptChannel_set_first_per_commitment_point(this_ptr, val);
20083         // debug statements here
20084 }
20085         // struct LDKChannelTypeFeatures AcceptChannel_get_channel_type(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20086 /* @internal */
20087 export function AcceptChannel_get_channel_type(this_ptr: number): number {
20088         if(!isWasmInitialized) {
20089                 throw new Error("initializeWasm() must be awaited first!");
20090         }
20091         const nativeResponseValue = wasm.TS_AcceptChannel_get_channel_type(this_ptr);
20092         return nativeResponseValue;
20093 }
20094         // void AcceptChannel_set_channel_type(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
20095 /* @internal */
20096 export function AcceptChannel_set_channel_type(this_ptr: number, val: number): void {
20097         if(!isWasmInitialized) {
20098                 throw new Error("initializeWasm() must be awaited first!");
20099         }
20100         const nativeResponseValue = wasm.TS_AcceptChannel_set_channel_type(this_ptr, val);
20101         // debug statements here
20102 }
20103         // uintptr_t AcceptChannel_clone_ptr(LDKAcceptChannel *NONNULL_PTR arg);
20104 /* @internal */
20105 export function AcceptChannel_clone_ptr(arg: number): number {
20106         if(!isWasmInitialized) {
20107                 throw new Error("initializeWasm() must be awaited first!");
20108         }
20109         const nativeResponseValue = wasm.TS_AcceptChannel_clone_ptr(arg);
20110         return nativeResponseValue;
20111 }
20112         // struct LDKAcceptChannel AcceptChannel_clone(const struct LDKAcceptChannel *NONNULL_PTR orig);
20113 /* @internal */
20114 export function AcceptChannel_clone(orig: number): number {
20115         if(!isWasmInitialized) {
20116                 throw new Error("initializeWasm() must be awaited first!");
20117         }
20118         const nativeResponseValue = wasm.TS_AcceptChannel_clone(orig);
20119         return nativeResponseValue;
20120 }
20121         // void FundingCreated_free(struct LDKFundingCreated this_obj);
20122 /* @internal */
20123 export function FundingCreated_free(this_obj: number): void {
20124         if(!isWasmInitialized) {
20125                 throw new Error("initializeWasm() must be awaited first!");
20126         }
20127         const nativeResponseValue = wasm.TS_FundingCreated_free(this_obj);
20128         // debug statements here
20129 }
20130         // const uint8_t (*FundingCreated_get_temporary_channel_id(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
20131 /* @internal */
20132 export function FundingCreated_get_temporary_channel_id(this_ptr: number): number {
20133         if(!isWasmInitialized) {
20134                 throw new Error("initializeWasm() must be awaited first!");
20135         }
20136         const nativeResponseValue = wasm.TS_FundingCreated_get_temporary_channel_id(this_ptr);
20137         return nativeResponseValue;
20138 }
20139         // void FundingCreated_set_temporary_channel_id(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20140 /* @internal */
20141 export function FundingCreated_set_temporary_channel_id(this_ptr: number, val: number): void {
20142         if(!isWasmInitialized) {
20143                 throw new Error("initializeWasm() must be awaited first!");
20144         }
20145         const nativeResponseValue = wasm.TS_FundingCreated_set_temporary_channel_id(this_ptr, val);
20146         // debug statements here
20147 }
20148         // const uint8_t (*FundingCreated_get_funding_txid(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
20149 /* @internal */
20150 export function FundingCreated_get_funding_txid(this_ptr: number): number {
20151         if(!isWasmInitialized) {
20152                 throw new Error("initializeWasm() must be awaited first!");
20153         }
20154         const nativeResponseValue = wasm.TS_FundingCreated_get_funding_txid(this_ptr);
20155         return nativeResponseValue;
20156 }
20157         // void FundingCreated_set_funding_txid(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20158 /* @internal */
20159 export function FundingCreated_set_funding_txid(this_ptr: number, val: number): void {
20160         if(!isWasmInitialized) {
20161                 throw new Error("initializeWasm() must be awaited first!");
20162         }
20163         const nativeResponseValue = wasm.TS_FundingCreated_set_funding_txid(this_ptr, val);
20164         // debug statements here
20165 }
20166         // uint16_t FundingCreated_get_funding_output_index(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
20167 /* @internal */
20168 export function FundingCreated_get_funding_output_index(this_ptr: number): number {
20169         if(!isWasmInitialized) {
20170                 throw new Error("initializeWasm() must be awaited first!");
20171         }
20172         const nativeResponseValue = wasm.TS_FundingCreated_get_funding_output_index(this_ptr);
20173         return nativeResponseValue;
20174 }
20175         // void FundingCreated_set_funding_output_index(struct LDKFundingCreated *NONNULL_PTR this_ptr, uint16_t val);
20176 /* @internal */
20177 export function FundingCreated_set_funding_output_index(this_ptr: number, val: number): void {
20178         if(!isWasmInitialized) {
20179                 throw new Error("initializeWasm() must be awaited first!");
20180         }
20181         const nativeResponseValue = wasm.TS_FundingCreated_set_funding_output_index(this_ptr, val);
20182         // debug statements here
20183 }
20184         // struct LDKSignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
20185 /* @internal */
20186 export function FundingCreated_get_signature(this_ptr: number): number {
20187         if(!isWasmInitialized) {
20188                 throw new Error("initializeWasm() must be awaited first!");
20189         }
20190         const nativeResponseValue = wasm.TS_FundingCreated_get_signature(this_ptr);
20191         return nativeResponseValue;
20192 }
20193         // void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKSignature val);
20194 /* @internal */
20195 export function FundingCreated_set_signature(this_ptr: number, val: number): void {
20196         if(!isWasmInitialized) {
20197                 throw new Error("initializeWasm() must be awaited first!");
20198         }
20199         const nativeResponseValue = wasm.TS_FundingCreated_set_signature(this_ptr, val);
20200         // debug statements here
20201 }
20202         // MUST_USE_RES struct LDKFundingCreated FundingCreated_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, struct LDKThirtyTwoBytes funding_txid_arg, uint16_t funding_output_index_arg, struct LDKSignature signature_arg);
20203 /* @internal */
20204 export function FundingCreated_new(temporary_channel_id_arg: number, funding_txid_arg: number, funding_output_index_arg: number, signature_arg: number): number {
20205         if(!isWasmInitialized) {
20206                 throw new Error("initializeWasm() must be awaited first!");
20207         }
20208         const nativeResponseValue = wasm.TS_FundingCreated_new(temporary_channel_id_arg, funding_txid_arg, funding_output_index_arg, signature_arg);
20209         return nativeResponseValue;
20210 }
20211         // uintptr_t FundingCreated_clone_ptr(LDKFundingCreated *NONNULL_PTR arg);
20212 /* @internal */
20213 export function FundingCreated_clone_ptr(arg: number): number {
20214         if(!isWasmInitialized) {
20215                 throw new Error("initializeWasm() must be awaited first!");
20216         }
20217         const nativeResponseValue = wasm.TS_FundingCreated_clone_ptr(arg);
20218         return nativeResponseValue;
20219 }
20220         // struct LDKFundingCreated FundingCreated_clone(const struct LDKFundingCreated *NONNULL_PTR orig);
20221 /* @internal */
20222 export function FundingCreated_clone(orig: number): number {
20223         if(!isWasmInitialized) {
20224                 throw new Error("initializeWasm() must be awaited first!");
20225         }
20226         const nativeResponseValue = wasm.TS_FundingCreated_clone(orig);
20227         return nativeResponseValue;
20228 }
20229         // void FundingSigned_free(struct LDKFundingSigned this_obj);
20230 /* @internal */
20231 export function FundingSigned_free(this_obj: number): void {
20232         if(!isWasmInitialized) {
20233                 throw new Error("initializeWasm() must be awaited first!");
20234         }
20235         const nativeResponseValue = wasm.TS_FundingSigned_free(this_obj);
20236         // debug statements here
20237 }
20238         // const uint8_t (*FundingSigned_get_channel_id(const struct LDKFundingSigned *NONNULL_PTR this_ptr))[32];
20239 /* @internal */
20240 export function FundingSigned_get_channel_id(this_ptr: number): number {
20241         if(!isWasmInitialized) {
20242                 throw new Error("initializeWasm() must be awaited first!");
20243         }
20244         const nativeResponseValue = wasm.TS_FundingSigned_get_channel_id(this_ptr);
20245         return nativeResponseValue;
20246 }
20247         // void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20248 /* @internal */
20249 export function FundingSigned_set_channel_id(this_ptr: number, val: number): void {
20250         if(!isWasmInitialized) {
20251                 throw new Error("initializeWasm() must be awaited first!");
20252         }
20253         const nativeResponseValue = wasm.TS_FundingSigned_set_channel_id(this_ptr, val);
20254         // debug statements here
20255 }
20256         // struct LDKSignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr);
20257 /* @internal */
20258 export function FundingSigned_get_signature(this_ptr: number): number {
20259         if(!isWasmInitialized) {
20260                 throw new Error("initializeWasm() must be awaited first!");
20261         }
20262         const nativeResponseValue = wasm.TS_FundingSigned_get_signature(this_ptr);
20263         return nativeResponseValue;
20264 }
20265         // void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
20266 /* @internal */
20267 export function FundingSigned_set_signature(this_ptr: number, val: number): void {
20268         if(!isWasmInitialized) {
20269                 throw new Error("initializeWasm() must be awaited first!");
20270         }
20271         const nativeResponseValue = wasm.TS_FundingSigned_set_signature(this_ptr, val);
20272         // debug statements here
20273 }
20274         // MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg);
20275 /* @internal */
20276 export function FundingSigned_new(channel_id_arg: number, signature_arg: number): number {
20277         if(!isWasmInitialized) {
20278                 throw new Error("initializeWasm() must be awaited first!");
20279         }
20280         const nativeResponseValue = wasm.TS_FundingSigned_new(channel_id_arg, signature_arg);
20281         return nativeResponseValue;
20282 }
20283         // uintptr_t FundingSigned_clone_ptr(LDKFundingSigned *NONNULL_PTR arg);
20284 /* @internal */
20285 export function FundingSigned_clone_ptr(arg: number): number {
20286         if(!isWasmInitialized) {
20287                 throw new Error("initializeWasm() must be awaited first!");
20288         }
20289         const nativeResponseValue = wasm.TS_FundingSigned_clone_ptr(arg);
20290         return nativeResponseValue;
20291 }
20292         // struct LDKFundingSigned FundingSigned_clone(const struct LDKFundingSigned *NONNULL_PTR orig);
20293 /* @internal */
20294 export function FundingSigned_clone(orig: number): number {
20295         if(!isWasmInitialized) {
20296                 throw new Error("initializeWasm() must be awaited first!");
20297         }
20298         const nativeResponseValue = wasm.TS_FundingSigned_clone(orig);
20299         return nativeResponseValue;
20300 }
20301         // void FundingLocked_free(struct LDKFundingLocked this_obj);
20302 /* @internal */
20303 export function FundingLocked_free(this_obj: number): void {
20304         if(!isWasmInitialized) {
20305                 throw new Error("initializeWasm() must be awaited first!");
20306         }
20307         const nativeResponseValue = wasm.TS_FundingLocked_free(this_obj);
20308         // debug statements here
20309 }
20310         // const uint8_t (*FundingLocked_get_channel_id(const struct LDKFundingLocked *NONNULL_PTR this_ptr))[32];
20311 /* @internal */
20312 export function FundingLocked_get_channel_id(this_ptr: number): number {
20313         if(!isWasmInitialized) {
20314                 throw new Error("initializeWasm() must be awaited first!");
20315         }
20316         const nativeResponseValue = wasm.TS_FundingLocked_get_channel_id(this_ptr);
20317         return nativeResponseValue;
20318 }
20319         // void FundingLocked_set_channel_id(struct LDKFundingLocked *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20320 /* @internal */
20321 export function FundingLocked_set_channel_id(this_ptr: number, val: number): void {
20322         if(!isWasmInitialized) {
20323                 throw new Error("initializeWasm() must be awaited first!");
20324         }
20325         const nativeResponseValue = wasm.TS_FundingLocked_set_channel_id(this_ptr, val);
20326         // debug statements here
20327 }
20328         // struct LDKPublicKey FundingLocked_get_next_per_commitment_point(const struct LDKFundingLocked *NONNULL_PTR this_ptr);
20329 /* @internal */
20330 export function FundingLocked_get_next_per_commitment_point(this_ptr: number): number {
20331         if(!isWasmInitialized) {
20332                 throw new Error("initializeWasm() must be awaited first!");
20333         }
20334         const nativeResponseValue = wasm.TS_FundingLocked_get_next_per_commitment_point(this_ptr);
20335         return nativeResponseValue;
20336 }
20337         // void FundingLocked_set_next_per_commitment_point(struct LDKFundingLocked *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20338 /* @internal */
20339 export function FundingLocked_set_next_per_commitment_point(this_ptr: number, val: number): void {
20340         if(!isWasmInitialized) {
20341                 throw new Error("initializeWasm() must be awaited first!");
20342         }
20343         const nativeResponseValue = wasm.TS_FundingLocked_set_next_per_commitment_point(this_ptr, val);
20344         // debug statements here
20345 }
20346         // MUST_USE_RES struct LDKFundingLocked FundingLocked_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKPublicKey next_per_commitment_point_arg);
20347 /* @internal */
20348 export function FundingLocked_new(channel_id_arg: number, next_per_commitment_point_arg: number): number {
20349         if(!isWasmInitialized) {
20350                 throw new Error("initializeWasm() must be awaited first!");
20351         }
20352         const nativeResponseValue = wasm.TS_FundingLocked_new(channel_id_arg, next_per_commitment_point_arg);
20353         return nativeResponseValue;
20354 }
20355         // uintptr_t FundingLocked_clone_ptr(LDKFundingLocked *NONNULL_PTR arg);
20356 /* @internal */
20357 export function FundingLocked_clone_ptr(arg: number): number {
20358         if(!isWasmInitialized) {
20359                 throw new Error("initializeWasm() must be awaited first!");
20360         }
20361         const nativeResponseValue = wasm.TS_FundingLocked_clone_ptr(arg);
20362         return nativeResponseValue;
20363 }
20364         // struct LDKFundingLocked FundingLocked_clone(const struct LDKFundingLocked *NONNULL_PTR orig);
20365 /* @internal */
20366 export function FundingLocked_clone(orig: number): number {
20367         if(!isWasmInitialized) {
20368                 throw new Error("initializeWasm() must be awaited first!");
20369         }
20370         const nativeResponseValue = wasm.TS_FundingLocked_clone(orig);
20371         return nativeResponseValue;
20372 }
20373         // void Shutdown_free(struct LDKShutdown this_obj);
20374 /* @internal */
20375 export function Shutdown_free(this_obj: number): void {
20376         if(!isWasmInitialized) {
20377                 throw new Error("initializeWasm() must be awaited first!");
20378         }
20379         const nativeResponseValue = wasm.TS_Shutdown_free(this_obj);
20380         // debug statements here
20381 }
20382         // const uint8_t (*Shutdown_get_channel_id(const struct LDKShutdown *NONNULL_PTR this_ptr))[32];
20383 /* @internal */
20384 export function Shutdown_get_channel_id(this_ptr: number): number {
20385         if(!isWasmInitialized) {
20386                 throw new Error("initializeWasm() must be awaited first!");
20387         }
20388         const nativeResponseValue = wasm.TS_Shutdown_get_channel_id(this_ptr);
20389         return nativeResponseValue;
20390 }
20391         // void Shutdown_set_channel_id(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20392 /* @internal */
20393 export function Shutdown_set_channel_id(this_ptr: number, val: number): void {
20394         if(!isWasmInitialized) {
20395                 throw new Error("initializeWasm() must be awaited first!");
20396         }
20397         const nativeResponseValue = wasm.TS_Shutdown_set_channel_id(this_ptr, val);
20398         // debug statements here
20399 }
20400         // struct LDKu8slice Shutdown_get_scriptpubkey(const struct LDKShutdown *NONNULL_PTR this_ptr);
20401 /* @internal */
20402 export function Shutdown_get_scriptpubkey(this_ptr: number): number {
20403         if(!isWasmInitialized) {
20404                 throw new Error("initializeWasm() must be awaited first!");
20405         }
20406         const nativeResponseValue = wasm.TS_Shutdown_get_scriptpubkey(this_ptr);
20407         return nativeResponseValue;
20408 }
20409         // void Shutdown_set_scriptpubkey(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
20410 /* @internal */
20411 export function Shutdown_set_scriptpubkey(this_ptr: number, val: number): void {
20412         if(!isWasmInitialized) {
20413                 throw new Error("initializeWasm() must be awaited first!");
20414         }
20415         const nativeResponseValue = wasm.TS_Shutdown_set_scriptpubkey(this_ptr, val);
20416         // debug statements here
20417 }
20418         // MUST_USE_RES struct LDKShutdown Shutdown_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z scriptpubkey_arg);
20419 /* @internal */
20420 export function Shutdown_new(channel_id_arg: number, scriptpubkey_arg: number): number {
20421         if(!isWasmInitialized) {
20422                 throw new Error("initializeWasm() must be awaited first!");
20423         }
20424         const nativeResponseValue = wasm.TS_Shutdown_new(channel_id_arg, scriptpubkey_arg);
20425         return nativeResponseValue;
20426 }
20427         // uintptr_t Shutdown_clone_ptr(LDKShutdown *NONNULL_PTR arg);
20428 /* @internal */
20429 export function Shutdown_clone_ptr(arg: number): number {
20430         if(!isWasmInitialized) {
20431                 throw new Error("initializeWasm() must be awaited first!");
20432         }
20433         const nativeResponseValue = wasm.TS_Shutdown_clone_ptr(arg);
20434         return nativeResponseValue;
20435 }
20436         // struct LDKShutdown Shutdown_clone(const struct LDKShutdown *NONNULL_PTR orig);
20437 /* @internal */
20438 export function Shutdown_clone(orig: number): number {
20439         if(!isWasmInitialized) {
20440                 throw new Error("initializeWasm() must be awaited first!");
20441         }
20442         const nativeResponseValue = wasm.TS_Shutdown_clone(orig);
20443         return nativeResponseValue;
20444 }
20445         // void ClosingSignedFeeRange_free(struct LDKClosingSignedFeeRange this_obj);
20446 /* @internal */
20447 export function ClosingSignedFeeRange_free(this_obj: number): void {
20448         if(!isWasmInitialized) {
20449                 throw new Error("initializeWasm() must be awaited first!");
20450         }
20451         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_free(this_obj);
20452         // debug statements here
20453 }
20454         // uint64_t ClosingSignedFeeRange_get_min_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
20455 /* @internal */
20456 export function ClosingSignedFeeRange_get_min_fee_satoshis(this_ptr: number): bigint {
20457         if(!isWasmInitialized) {
20458                 throw new Error("initializeWasm() must be awaited first!");
20459         }
20460         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_get_min_fee_satoshis(this_ptr);
20461         return nativeResponseValue;
20462 }
20463         // void ClosingSignedFeeRange_set_min_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
20464 /* @internal */
20465 export function ClosingSignedFeeRange_set_min_fee_satoshis(this_ptr: number, val: bigint): void {
20466         if(!isWasmInitialized) {
20467                 throw new Error("initializeWasm() must be awaited first!");
20468         }
20469         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_set_min_fee_satoshis(this_ptr, val);
20470         // debug statements here
20471 }
20472         // uint64_t ClosingSignedFeeRange_get_max_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
20473 /* @internal */
20474 export function ClosingSignedFeeRange_get_max_fee_satoshis(this_ptr: number): bigint {
20475         if(!isWasmInitialized) {
20476                 throw new Error("initializeWasm() must be awaited first!");
20477         }
20478         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_get_max_fee_satoshis(this_ptr);
20479         return nativeResponseValue;
20480 }
20481         // void ClosingSignedFeeRange_set_max_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
20482 /* @internal */
20483 export function ClosingSignedFeeRange_set_max_fee_satoshis(this_ptr: number, val: bigint): void {
20484         if(!isWasmInitialized) {
20485                 throw new Error("initializeWasm() must be awaited first!");
20486         }
20487         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_set_max_fee_satoshis(this_ptr, val);
20488         // debug statements here
20489 }
20490         // MUST_USE_RES struct LDKClosingSignedFeeRange ClosingSignedFeeRange_new(uint64_t min_fee_satoshis_arg, uint64_t max_fee_satoshis_arg);
20491 /* @internal */
20492 export function ClosingSignedFeeRange_new(min_fee_satoshis_arg: bigint, max_fee_satoshis_arg: bigint): number {
20493         if(!isWasmInitialized) {
20494                 throw new Error("initializeWasm() must be awaited first!");
20495         }
20496         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_new(min_fee_satoshis_arg, max_fee_satoshis_arg);
20497         return nativeResponseValue;
20498 }
20499         // uintptr_t ClosingSignedFeeRange_clone_ptr(LDKClosingSignedFeeRange *NONNULL_PTR arg);
20500 /* @internal */
20501 export function ClosingSignedFeeRange_clone_ptr(arg: number): number {
20502         if(!isWasmInitialized) {
20503                 throw new Error("initializeWasm() must be awaited first!");
20504         }
20505         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_clone_ptr(arg);
20506         return nativeResponseValue;
20507 }
20508         // struct LDKClosingSignedFeeRange ClosingSignedFeeRange_clone(const struct LDKClosingSignedFeeRange *NONNULL_PTR orig);
20509 /* @internal */
20510 export function ClosingSignedFeeRange_clone(orig: number): number {
20511         if(!isWasmInitialized) {
20512                 throw new Error("initializeWasm() must be awaited first!");
20513         }
20514         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_clone(orig);
20515         return nativeResponseValue;
20516 }
20517         // void ClosingSigned_free(struct LDKClosingSigned this_obj);
20518 /* @internal */
20519 export function ClosingSigned_free(this_obj: number): void {
20520         if(!isWasmInitialized) {
20521                 throw new Error("initializeWasm() must be awaited first!");
20522         }
20523         const nativeResponseValue = wasm.TS_ClosingSigned_free(this_obj);
20524         // debug statements here
20525 }
20526         // const uint8_t (*ClosingSigned_get_channel_id(const struct LDKClosingSigned *NONNULL_PTR this_ptr))[32];
20527 /* @internal */
20528 export function ClosingSigned_get_channel_id(this_ptr: number): number {
20529         if(!isWasmInitialized) {
20530                 throw new Error("initializeWasm() must be awaited first!");
20531         }
20532         const nativeResponseValue = wasm.TS_ClosingSigned_get_channel_id(this_ptr);
20533         return nativeResponseValue;
20534 }
20535         // void ClosingSigned_set_channel_id(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20536 /* @internal */
20537 export function ClosingSigned_set_channel_id(this_ptr: number, val: number): void {
20538         if(!isWasmInitialized) {
20539                 throw new Error("initializeWasm() must be awaited first!");
20540         }
20541         const nativeResponseValue = wasm.TS_ClosingSigned_set_channel_id(this_ptr, val);
20542         // debug statements here
20543 }
20544         // uint64_t ClosingSigned_get_fee_satoshis(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
20545 /* @internal */
20546 export function ClosingSigned_get_fee_satoshis(this_ptr: number): bigint {
20547         if(!isWasmInitialized) {
20548                 throw new Error("initializeWasm() must be awaited first!");
20549         }
20550         const nativeResponseValue = wasm.TS_ClosingSigned_get_fee_satoshis(this_ptr);
20551         return nativeResponseValue;
20552 }
20553         // void ClosingSigned_set_fee_satoshis(struct LDKClosingSigned *NONNULL_PTR this_ptr, uint64_t val);
20554 /* @internal */
20555 export function ClosingSigned_set_fee_satoshis(this_ptr: number, val: bigint): void {
20556         if(!isWasmInitialized) {
20557                 throw new Error("initializeWasm() must be awaited first!");
20558         }
20559         const nativeResponseValue = wasm.TS_ClosingSigned_set_fee_satoshis(this_ptr, val);
20560         // debug statements here
20561 }
20562         // struct LDKSignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
20563 /* @internal */
20564 export function ClosingSigned_get_signature(this_ptr: number): number {
20565         if(!isWasmInitialized) {
20566                 throw new Error("initializeWasm() must be awaited first!");
20567         }
20568         const nativeResponseValue = wasm.TS_ClosingSigned_get_signature(this_ptr);
20569         return nativeResponseValue;
20570 }
20571         // void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
20572 /* @internal */
20573 export function ClosingSigned_set_signature(this_ptr: number, val: number): void {
20574         if(!isWasmInitialized) {
20575                 throw new Error("initializeWasm() must be awaited first!");
20576         }
20577         const nativeResponseValue = wasm.TS_ClosingSigned_set_signature(this_ptr, val);
20578         // debug statements here
20579 }
20580         // struct LDKClosingSignedFeeRange ClosingSigned_get_fee_range(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
20581 /* @internal */
20582 export function ClosingSigned_get_fee_range(this_ptr: number): number {
20583         if(!isWasmInitialized) {
20584                 throw new Error("initializeWasm() must be awaited first!");
20585         }
20586         const nativeResponseValue = wasm.TS_ClosingSigned_get_fee_range(this_ptr);
20587         return nativeResponseValue;
20588 }
20589         // void ClosingSigned_set_fee_range(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKClosingSignedFeeRange val);
20590 /* @internal */
20591 export function ClosingSigned_set_fee_range(this_ptr: number, val: number): void {
20592         if(!isWasmInitialized) {
20593                 throw new Error("initializeWasm() must be awaited first!");
20594         }
20595         const nativeResponseValue = wasm.TS_ClosingSigned_set_fee_range(this_ptr, val);
20596         // debug statements here
20597 }
20598         // MUST_USE_RES struct LDKClosingSigned ClosingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t fee_satoshis_arg, struct LDKSignature signature_arg, struct LDKClosingSignedFeeRange fee_range_arg);
20599 /* @internal */
20600 export function ClosingSigned_new(channel_id_arg: number, fee_satoshis_arg: bigint, signature_arg: number, fee_range_arg: number): number {
20601         if(!isWasmInitialized) {
20602                 throw new Error("initializeWasm() must be awaited first!");
20603         }
20604         const nativeResponseValue = wasm.TS_ClosingSigned_new(channel_id_arg, fee_satoshis_arg, signature_arg, fee_range_arg);
20605         return nativeResponseValue;
20606 }
20607         // uintptr_t ClosingSigned_clone_ptr(LDKClosingSigned *NONNULL_PTR arg);
20608 /* @internal */
20609 export function ClosingSigned_clone_ptr(arg: number): number {
20610         if(!isWasmInitialized) {
20611                 throw new Error("initializeWasm() must be awaited first!");
20612         }
20613         const nativeResponseValue = wasm.TS_ClosingSigned_clone_ptr(arg);
20614         return nativeResponseValue;
20615 }
20616         // struct LDKClosingSigned ClosingSigned_clone(const struct LDKClosingSigned *NONNULL_PTR orig);
20617 /* @internal */
20618 export function ClosingSigned_clone(orig: number): number {
20619         if(!isWasmInitialized) {
20620                 throw new Error("initializeWasm() must be awaited first!");
20621         }
20622         const nativeResponseValue = wasm.TS_ClosingSigned_clone(orig);
20623         return nativeResponseValue;
20624 }
20625         // void UpdateAddHTLC_free(struct LDKUpdateAddHTLC this_obj);
20626 /* @internal */
20627 export function UpdateAddHTLC_free(this_obj: number): void {
20628         if(!isWasmInitialized) {
20629                 throw new Error("initializeWasm() must be awaited first!");
20630         }
20631         const nativeResponseValue = wasm.TS_UpdateAddHTLC_free(this_obj);
20632         // debug statements here
20633 }
20634         // const uint8_t (*UpdateAddHTLC_get_channel_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
20635 /* @internal */
20636 export function UpdateAddHTLC_get_channel_id(this_ptr: number): number {
20637         if(!isWasmInitialized) {
20638                 throw new Error("initializeWasm() must be awaited first!");
20639         }
20640         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_channel_id(this_ptr);
20641         return nativeResponseValue;
20642 }
20643         // void UpdateAddHTLC_set_channel_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20644 /* @internal */
20645 export function UpdateAddHTLC_set_channel_id(this_ptr: number, val: number): void {
20646         if(!isWasmInitialized) {
20647                 throw new Error("initializeWasm() must be awaited first!");
20648         }
20649         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_channel_id(this_ptr, val);
20650         // debug statements here
20651 }
20652         // uint64_t UpdateAddHTLC_get_htlc_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
20653 /* @internal */
20654 export function UpdateAddHTLC_get_htlc_id(this_ptr: number): bigint {
20655         if(!isWasmInitialized) {
20656                 throw new Error("initializeWasm() must be awaited first!");
20657         }
20658         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_htlc_id(this_ptr);
20659         return nativeResponseValue;
20660 }
20661         // void UpdateAddHTLC_set_htlc_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
20662 /* @internal */
20663 export function UpdateAddHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
20664         if(!isWasmInitialized) {
20665                 throw new Error("initializeWasm() must be awaited first!");
20666         }
20667         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_htlc_id(this_ptr, val);
20668         // debug statements here
20669 }
20670         // uint64_t UpdateAddHTLC_get_amount_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
20671 /* @internal */
20672 export function UpdateAddHTLC_get_amount_msat(this_ptr: number): bigint {
20673         if(!isWasmInitialized) {
20674                 throw new Error("initializeWasm() must be awaited first!");
20675         }
20676         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_amount_msat(this_ptr);
20677         return nativeResponseValue;
20678 }
20679         // void UpdateAddHTLC_set_amount_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
20680 /* @internal */
20681 export function UpdateAddHTLC_set_amount_msat(this_ptr: number, val: bigint): void {
20682         if(!isWasmInitialized) {
20683                 throw new Error("initializeWasm() must be awaited first!");
20684         }
20685         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_amount_msat(this_ptr, val);
20686         // debug statements here
20687 }
20688         // const uint8_t (*UpdateAddHTLC_get_payment_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
20689 /* @internal */
20690 export function UpdateAddHTLC_get_payment_hash(this_ptr: number): number {
20691         if(!isWasmInitialized) {
20692                 throw new Error("initializeWasm() must be awaited first!");
20693         }
20694         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_payment_hash(this_ptr);
20695         return nativeResponseValue;
20696 }
20697         // void UpdateAddHTLC_set_payment_hash(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20698 /* @internal */
20699 export function UpdateAddHTLC_set_payment_hash(this_ptr: number, val: number): void {
20700         if(!isWasmInitialized) {
20701                 throw new Error("initializeWasm() must be awaited first!");
20702         }
20703         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_payment_hash(this_ptr, val);
20704         // debug statements here
20705 }
20706         // uint32_t UpdateAddHTLC_get_cltv_expiry(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
20707 /* @internal */
20708 export function UpdateAddHTLC_get_cltv_expiry(this_ptr: number): number {
20709         if(!isWasmInitialized) {
20710                 throw new Error("initializeWasm() must be awaited first!");
20711         }
20712         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_cltv_expiry(this_ptr);
20713         return nativeResponseValue;
20714 }
20715         // void UpdateAddHTLC_set_cltv_expiry(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint32_t val);
20716 /* @internal */
20717 export function UpdateAddHTLC_set_cltv_expiry(this_ptr: number, val: number): void {
20718         if(!isWasmInitialized) {
20719                 throw new Error("initializeWasm() must be awaited first!");
20720         }
20721         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_cltv_expiry(this_ptr, val);
20722         // debug statements here
20723 }
20724         // uintptr_t UpdateAddHTLC_clone_ptr(LDKUpdateAddHTLC *NONNULL_PTR arg);
20725 /* @internal */
20726 export function UpdateAddHTLC_clone_ptr(arg: number): number {
20727         if(!isWasmInitialized) {
20728                 throw new Error("initializeWasm() must be awaited first!");
20729         }
20730         const nativeResponseValue = wasm.TS_UpdateAddHTLC_clone_ptr(arg);
20731         return nativeResponseValue;
20732 }
20733         // struct LDKUpdateAddHTLC UpdateAddHTLC_clone(const struct LDKUpdateAddHTLC *NONNULL_PTR orig);
20734 /* @internal */
20735 export function UpdateAddHTLC_clone(orig: number): number {
20736         if(!isWasmInitialized) {
20737                 throw new Error("initializeWasm() must be awaited first!");
20738         }
20739         const nativeResponseValue = wasm.TS_UpdateAddHTLC_clone(orig);
20740         return nativeResponseValue;
20741 }
20742         // void UpdateFulfillHTLC_free(struct LDKUpdateFulfillHTLC this_obj);
20743 /* @internal */
20744 export function UpdateFulfillHTLC_free(this_obj: number): void {
20745         if(!isWasmInitialized) {
20746                 throw new Error("initializeWasm() must be awaited first!");
20747         }
20748         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_free(this_obj);
20749         // debug statements here
20750 }
20751         // const uint8_t (*UpdateFulfillHTLC_get_channel_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
20752 /* @internal */
20753 export function UpdateFulfillHTLC_get_channel_id(this_ptr: number): number {
20754         if(!isWasmInitialized) {
20755                 throw new Error("initializeWasm() must be awaited first!");
20756         }
20757         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_channel_id(this_ptr);
20758         return nativeResponseValue;
20759 }
20760         // void UpdateFulfillHTLC_set_channel_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20761 /* @internal */
20762 export function UpdateFulfillHTLC_set_channel_id(this_ptr: number, val: number): void {
20763         if(!isWasmInitialized) {
20764                 throw new Error("initializeWasm() must be awaited first!");
20765         }
20766         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_channel_id(this_ptr, val);
20767         // debug statements here
20768 }
20769         // uint64_t UpdateFulfillHTLC_get_htlc_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr);
20770 /* @internal */
20771 export function UpdateFulfillHTLC_get_htlc_id(this_ptr: number): bigint {
20772         if(!isWasmInitialized) {
20773                 throw new Error("initializeWasm() must be awaited first!");
20774         }
20775         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_htlc_id(this_ptr);
20776         return nativeResponseValue;
20777 }
20778         // void UpdateFulfillHTLC_set_htlc_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, uint64_t val);
20779 /* @internal */
20780 export function UpdateFulfillHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
20781         if(!isWasmInitialized) {
20782                 throw new Error("initializeWasm() must be awaited first!");
20783         }
20784         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_htlc_id(this_ptr, val);
20785         // debug statements here
20786 }
20787         // const uint8_t (*UpdateFulfillHTLC_get_payment_preimage(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
20788 /* @internal */
20789 export function UpdateFulfillHTLC_get_payment_preimage(this_ptr: number): number {
20790         if(!isWasmInitialized) {
20791                 throw new Error("initializeWasm() must be awaited first!");
20792         }
20793         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_payment_preimage(this_ptr);
20794         return nativeResponseValue;
20795 }
20796         // void UpdateFulfillHTLC_set_payment_preimage(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20797 /* @internal */
20798 export function UpdateFulfillHTLC_set_payment_preimage(this_ptr: number, val: number): void {
20799         if(!isWasmInitialized) {
20800                 throw new Error("initializeWasm() must be awaited first!");
20801         }
20802         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_payment_preimage(this_ptr, val);
20803         // debug statements here
20804 }
20805         // MUST_USE_RES struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t htlc_id_arg, struct LDKThirtyTwoBytes payment_preimage_arg);
20806 /* @internal */
20807 export function UpdateFulfillHTLC_new(channel_id_arg: number, htlc_id_arg: bigint, payment_preimage_arg: number): number {
20808         if(!isWasmInitialized) {
20809                 throw new Error("initializeWasm() must be awaited first!");
20810         }
20811         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_new(channel_id_arg, htlc_id_arg, payment_preimage_arg);
20812         return nativeResponseValue;
20813 }
20814         // uintptr_t UpdateFulfillHTLC_clone_ptr(LDKUpdateFulfillHTLC *NONNULL_PTR arg);
20815 /* @internal */
20816 export function UpdateFulfillHTLC_clone_ptr(arg: number): number {
20817         if(!isWasmInitialized) {
20818                 throw new Error("initializeWasm() must be awaited first!");
20819         }
20820         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_clone_ptr(arg);
20821         return nativeResponseValue;
20822 }
20823         // struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_clone(const struct LDKUpdateFulfillHTLC *NONNULL_PTR orig);
20824 /* @internal */
20825 export function UpdateFulfillHTLC_clone(orig: number): number {
20826         if(!isWasmInitialized) {
20827                 throw new Error("initializeWasm() must be awaited first!");
20828         }
20829         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_clone(orig);
20830         return nativeResponseValue;
20831 }
20832         // void UpdateFailHTLC_free(struct LDKUpdateFailHTLC this_obj);
20833 /* @internal */
20834 export function UpdateFailHTLC_free(this_obj: number): void {
20835         if(!isWasmInitialized) {
20836                 throw new Error("initializeWasm() must be awaited first!");
20837         }
20838         const nativeResponseValue = wasm.TS_UpdateFailHTLC_free(this_obj);
20839         // debug statements here
20840 }
20841         // const uint8_t (*UpdateFailHTLC_get_channel_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr))[32];
20842 /* @internal */
20843 export function UpdateFailHTLC_get_channel_id(this_ptr: number): number {
20844         if(!isWasmInitialized) {
20845                 throw new Error("initializeWasm() must be awaited first!");
20846         }
20847         const nativeResponseValue = wasm.TS_UpdateFailHTLC_get_channel_id(this_ptr);
20848         return nativeResponseValue;
20849 }
20850         // void UpdateFailHTLC_set_channel_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20851 /* @internal */
20852 export function UpdateFailHTLC_set_channel_id(this_ptr: number, val: number): void {
20853         if(!isWasmInitialized) {
20854                 throw new Error("initializeWasm() must be awaited first!");
20855         }
20856         const nativeResponseValue = wasm.TS_UpdateFailHTLC_set_channel_id(this_ptr, val);
20857         // debug statements here
20858 }
20859         // uint64_t UpdateFailHTLC_get_htlc_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr);
20860 /* @internal */
20861 export function UpdateFailHTLC_get_htlc_id(this_ptr: number): bigint {
20862         if(!isWasmInitialized) {
20863                 throw new Error("initializeWasm() must be awaited first!");
20864         }
20865         const nativeResponseValue = wasm.TS_UpdateFailHTLC_get_htlc_id(this_ptr);
20866         return nativeResponseValue;
20867 }
20868         // void UpdateFailHTLC_set_htlc_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, uint64_t val);
20869 /* @internal */
20870 export function UpdateFailHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
20871         if(!isWasmInitialized) {
20872                 throw new Error("initializeWasm() must be awaited first!");
20873         }
20874         const nativeResponseValue = wasm.TS_UpdateFailHTLC_set_htlc_id(this_ptr, val);
20875         // debug statements here
20876 }
20877         // uintptr_t UpdateFailHTLC_clone_ptr(LDKUpdateFailHTLC *NONNULL_PTR arg);
20878 /* @internal */
20879 export function UpdateFailHTLC_clone_ptr(arg: number): number {
20880         if(!isWasmInitialized) {
20881                 throw new Error("initializeWasm() must be awaited first!");
20882         }
20883         const nativeResponseValue = wasm.TS_UpdateFailHTLC_clone_ptr(arg);
20884         return nativeResponseValue;
20885 }
20886         // struct LDKUpdateFailHTLC UpdateFailHTLC_clone(const struct LDKUpdateFailHTLC *NONNULL_PTR orig);
20887 /* @internal */
20888 export function UpdateFailHTLC_clone(orig: number): number {
20889         if(!isWasmInitialized) {
20890                 throw new Error("initializeWasm() must be awaited first!");
20891         }
20892         const nativeResponseValue = wasm.TS_UpdateFailHTLC_clone(orig);
20893         return nativeResponseValue;
20894 }
20895         // void UpdateFailMalformedHTLC_free(struct LDKUpdateFailMalformedHTLC this_obj);
20896 /* @internal */
20897 export function UpdateFailMalformedHTLC_free(this_obj: number): void {
20898         if(!isWasmInitialized) {
20899                 throw new Error("initializeWasm() must be awaited first!");
20900         }
20901         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_free(this_obj);
20902         // debug statements here
20903 }
20904         // const uint8_t (*UpdateFailMalformedHTLC_get_channel_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr))[32];
20905 /* @internal */
20906 export function UpdateFailMalformedHTLC_get_channel_id(this_ptr: number): number {
20907         if(!isWasmInitialized) {
20908                 throw new Error("initializeWasm() must be awaited first!");
20909         }
20910         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_channel_id(this_ptr);
20911         return nativeResponseValue;
20912 }
20913         // void UpdateFailMalformedHTLC_set_channel_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20914 /* @internal */
20915 export function UpdateFailMalformedHTLC_set_channel_id(this_ptr: number, val: number): void {
20916         if(!isWasmInitialized) {
20917                 throw new Error("initializeWasm() must be awaited first!");
20918         }
20919         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_channel_id(this_ptr, val);
20920         // debug statements here
20921 }
20922         // uint64_t UpdateFailMalformedHTLC_get_htlc_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
20923 /* @internal */
20924 export function UpdateFailMalformedHTLC_get_htlc_id(this_ptr: number): bigint {
20925         if(!isWasmInitialized) {
20926                 throw new Error("initializeWasm() must be awaited first!");
20927         }
20928         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_htlc_id(this_ptr);
20929         return nativeResponseValue;
20930 }
20931         // void UpdateFailMalformedHTLC_set_htlc_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint64_t val);
20932 /* @internal */
20933 export function UpdateFailMalformedHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
20934         if(!isWasmInitialized) {
20935                 throw new Error("initializeWasm() must be awaited first!");
20936         }
20937         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_htlc_id(this_ptr, val);
20938         // debug statements here
20939 }
20940         // uint16_t UpdateFailMalformedHTLC_get_failure_code(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
20941 /* @internal */
20942 export function UpdateFailMalformedHTLC_get_failure_code(this_ptr: number): number {
20943         if(!isWasmInitialized) {
20944                 throw new Error("initializeWasm() must be awaited first!");
20945         }
20946         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_failure_code(this_ptr);
20947         return nativeResponseValue;
20948 }
20949         // void UpdateFailMalformedHTLC_set_failure_code(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint16_t val);
20950 /* @internal */
20951 export function UpdateFailMalformedHTLC_set_failure_code(this_ptr: number, val: number): void {
20952         if(!isWasmInitialized) {
20953                 throw new Error("initializeWasm() must be awaited first!");
20954         }
20955         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_failure_code(this_ptr, val);
20956         // debug statements here
20957 }
20958         // uintptr_t UpdateFailMalformedHTLC_clone_ptr(LDKUpdateFailMalformedHTLC *NONNULL_PTR arg);
20959 /* @internal */
20960 export function UpdateFailMalformedHTLC_clone_ptr(arg: number): number {
20961         if(!isWasmInitialized) {
20962                 throw new Error("initializeWasm() must be awaited first!");
20963         }
20964         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_clone_ptr(arg);
20965         return nativeResponseValue;
20966 }
20967         // struct LDKUpdateFailMalformedHTLC UpdateFailMalformedHTLC_clone(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR orig);
20968 /* @internal */
20969 export function UpdateFailMalformedHTLC_clone(orig: number): number {
20970         if(!isWasmInitialized) {
20971                 throw new Error("initializeWasm() must be awaited first!");
20972         }
20973         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_clone(orig);
20974         return nativeResponseValue;
20975 }
20976         // void CommitmentSigned_free(struct LDKCommitmentSigned this_obj);
20977 /* @internal */
20978 export function CommitmentSigned_free(this_obj: number): void {
20979         if(!isWasmInitialized) {
20980                 throw new Error("initializeWasm() must be awaited first!");
20981         }
20982         const nativeResponseValue = wasm.TS_CommitmentSigned_free(this_obj);
20983         // debug statements here
20984 }
20985         // const uint8_t (*CommitmentSigned_get_channel_id(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr))[32];
20986 /* @internal */
20987 export function CommitmentSigned_get_channel_id(this_ptr: number): number {
20988         if(!isWasmInitialized) {
20989                 throw new Error("initializeWasm() must be awaited first!");
20990         }
20991         const nativeResponseValue = wasm.TS_CommitmentSigned_get_channel_id(this_ptr);
20992         return nativeResponseValue;
20993 }
20994         // void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20995 /* @internal */
20996 export function CommitmentSigned_set_channel_id(this_ptr: number, val: number): void {
20997         if(!isWasmInitialized) {
20998                 throw new Error("initializeWasm() must be awaited first!");
20999         }
21000         const nativeResponseValue = wasm.TS_CommitmentSigned_set_channel_id(this_ptr, val);
21001         // debug statements here
21002 }
21003         // struct LDKSignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
21004 /* @internal */
21005 export function CommitmentSigned_get_signature(this_ptr: number): number {
21006         if(!isWasmInitialized) {
21007                 throw new Error("initializeWasm() must be awaited first!");
21008         }
21009         const nativeResponseValue = wasm.TS_CommitmentSigned_get_signature(this_ptr);
21010         return nativeResponseValue;
21011 }
21012         // void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
21013 /* @internal */
21014 export function CommitmentSigned_set_signature(this_ptr: number, val: number): void {
21015         if(!isWasmInitialized) {
21016                 throw new Error("initializeWasm() must be awaited first!");
21017         }
21018         const nativeResponseValue = wasm.TS_CommitmentSigned_set_signature(this_ptr, val);
21019         // debug statements here
21020 }
21021         // void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
21022 /* @internal */
21023 export function CommitmentSigned_set_htlc_signatures(this_ptr: number, val: number): void {
21024         if(!isWasmInitialized) {
21025                 throw new Error("initializeWasm() must be awaited first!");
21026         }
21027         const nativeResponseValue = wasm.TS_CommitmentSigned_set_htlc_signatures(this_ptr, val);
21028         // debug statements here
21029 }
21030         // MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg, struct LDKCVec_SignatureZ htlc_signatures_arg);
21031 /* @internal */
21032 export function CommitmentSigned_new(channel_id_arg: number, signature_arg: number, htlc_signatures_arg: number): number {
21033         if(!isWasmInitialized) {
21034                 throw new Error("initializeWasm() must be awaited first!");
21035         }
21036         const nativeResponseValue = wasm.TS_CommitmentSigned_new(channel_id_arg, signature_arg, htlc_signatures_arg);
21037         return nativeResponseValue;
21038 }
21039         // uintptr_t CommitmentSigned_clone_ptr(LDKCommitmentSigned *NONNULL_PTR arg);
21040 /* @internal */
21041 export function CommitmentSigned_clone_ptr(arg: number): number {
21042         if(!isWasmInitialized) {
21043                 throw new Error("initializeWasm() must be awaited first!");
21044         }
21045         const nativeResponseValue = wasm.TS_CommitmentSigned_clone_ptr(arg);
21046         return nativeResponseValue;
21047 }
21048         // struct LDKCommitmentSigned CommitmentSigned_clone(const struct LDKCommitmentSigned *NONNULL_PTR orig);
21049 /* @internal */
21050 export function CommitmentSigned_clone(orig: number): number {
21051         if(!isWasmInitialized) {
21052                 throw new Error("initializeWasm() must be awaited first!");
21053         }
21054         const nativeResponseValue = wasm.TS_CommitmentSigned_clone(orig);
21055         return nativeResponseValue;
21056 }
21057         // void RevokeAndACK_free(struct LDKRevokeAndACK this_obj);
21058 /* @internal */
21059 export function RevokeAndACK_free(this_obj: number): void {
21060         if(!isWasmInitialized) {
21061                 throw new Error("initializeWasm() must be awaited first!");
21062         }
21063         const nativeResponseValue = wasm.TS_RevokeAndACK_free(this_obj);
21064         // debug statements here
21065 }
21066         // const uint8_t (*RevokeAndACK_get_channel_id(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
21067 /* @internal */
21068 export function RevokeAndACK_get_channel_id(this_ptr: number): number {
21069         if(!isWasmInitialized) {
21070                 throw new Error("initializeWasm() must be awaited first!");
21071         }
21072         const nativeResponseValue = wasm.TS_RevokeAndACK_get_channel_id(this_ptr);
21073         return nativeResponseValue;
21074 }
21075         // void RevokeAndACK_set_channel_id(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21076 /* @internal */
21077 export function RevokeAndACK_set_channel_id(this_ptr: number, val: number): void {
21078         if(!isWasmInitialized) {
21079                 throw new Error("initializeWasm() must be awaited first!");
21080         }
21081         const nativeResponseValue = wasm.TS_RevokeAndACK_set_channel_id(this_ptr, val);
21082         // debug statements here
21083 }
21084         // const uint8_t (*RevokeAndACK_get_per_commitment_secret(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
21085 /* @internal */
21086 export function RevokeAndACK_get_per_commitment_secret(this_ptr: number): number {
21087         if(!isWasmInitialized) {
21088                 throw new Error("initializeWasm() must be awaited first!");
21089         }
21090         const nativeResponseValue = wasm.TS_RevokeAndACK_get_per_commitment_secret(this_ptr);
21091         return nativeResponseValue;
21092 }
21093         // void RevokeAndACK_set_per_commitment_secret(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21094 /* @internal */
21095 export function RevokeAndACK_set_per_commitment_secret(this_ptr: number, val: number): void {
21096         if(!isWasmInitialized) {
21097                 throw new Error("initializeWasm() must be awaited first!");
21098         }
21099         const nativeResponseValue = wasm.TS_RevokeAndACK_set_per_commitment_secret(this_ptr, val);
21100         // debug statements here
21101 }
21102         // struct LDKPublicKey RevokeAndACK_get_next_per_commitment_point(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr);
21103 /* @internal */
21104 export function RevokeAndACK_get_next_per_commitment_point(this_ptr: number): number {
21105         if(!isWasmInitialized) {
21106                 throw new Error("initializeWasm() must be awaited first!");
21107         }
21108         const nativeResponseValue = wasm.TS_RevokeAndACK_get_next_per_commitment_point(this_ptr);
21109         return nativeResponseValue;
21110 }
21111         // void RevokeAndACK_set_next_per_commitment_point(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21112 /* @internal */
21113 export function RevokeAndACK_set_next_per_commitment_point(this_ptr: number, val: number): void {
21114         if(!isWasmInitialized) {
21115                 throw new Error("initializeWasm() must be awaited first!");
21116         }
21117         const nativeResponseValue = wasm.TS_RevokeAndACK_set_next_per_commitment_point(this_ptr, val);
21118         // debug statements here
21119 }
21120         // MUST_USE_RES struct LDKRevokeAndACK RevokeAndACK_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKThirtyTwoBytes per_commitment_secret_arg, struct LDKPublicKey next_per_commitment_point_arg);
21121 /* @internal */
21122 export function RevokeAndACK_new(channel_id_arg: number, per_commitment_secret_arg: number, next_per_commitment_point_arg: number): number {
21123         if(!isWasmInitialized) {
21124                 throw new Error("initializeWasm() must be awaited first!");
21125         }
21126         const nativeResponseValue = wasm.TS_RevokeAndACK_new(channel_id_arg, per_commitment_secret_arg, next_per_commitment_point_arg);
21127         return nativeResponseValue;
21128 }
21129         // uintptr_t RevokeAndACK_clone_ptr(LDKRevokeAndACK *NONNULL_PTR arg);
21130 /* @internal */
21131 export function RevokeAndACK_clone_ptr(arg: number): number {
21132         if(!isWasmInitialized) {
21133                 throw new Error("initializeWasm() must be awaited first!");
21134         }
21135         const nativeResponseValue = wasm.TS_RevokeAndACK_clone_ptr(arg);
21136         return nativeResponseValue;
21137 }
21138         // struct LDKRevokeAndACK RevokeAndACK_clone(const struct LDKRevokeAndACK *NONNULL_PTR orig);
21139 /* @internal */
21140 export function RevokeAndACK_clone(orig: number): number {
21141         if(!isWasmInitialized) {
21142                 throw new Error("initializeWasm() must be awaited first!");
21143         }
21144         const nativeResponseValue = wasm.TS_RevokeAndACK_clone(orig);
21145         return nativeResponseValue;
21146 }
21147         // void UpdateFee_free(struct LDKUpdateFee this_obj);
21148 /* @internal */
21149 export function UpdateFee_free(this_obj: number): void {
21150         if(!isWasmInitialized) {
21151                 throw new Error("initializeWasm() must be awaited first!");
21152         }
21153         const nativeResponseValue = wasm.TS_UpdateFee_free(this_obj);
21154         // debug statements here
21155 }
21156         // const uint8_t (*UpdateFee_get_channel_id(const struct LDKUpdateFee *NONNULL_PTR this_ptr))[32];
21157 /* @internal */
21158 export function UpdateFee_get_channel_id(this_ptr: number): number {
21159         if(!isWasmInitialized) {
21160                 throw new Error("initializeWasm() must be awaited first!");
21161         }
21162         const nativeResponseValue = wasm.TS_UpdateFee_get_channel_id(this_ptr);
21163         return nativeResponseValue;
21164 }
21165         // void UpdateFee_set_channel_id(struct LDKUpdateFee *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21166 /* @internal */
21167 export function UpdateFee_set_channel_id(this_ptr: number, val: number): void {
21168         if(!isWasmInitialized) {
21169                 throw new Error("initializeWasm() must be awaited first!");
21170         }
21171         const nativeResponseValue = wasm.TS_UpdateFee_set_channel_id(this_ptr, val);
21172         // debug statements here
21173 }
21174         // uint32_t UpdateFee_get_feerate_per_kw(const struct LDKUpdateFee *NONNULL_PTR this_ptr);
21175 /* @internal */
21176 export function UpdateFee_get_feerate_per_kw(this_ptr: number): number {
21177         if(!isWasmInitialized) {
21178                 throw new Error("initializeWasm() must be awaited first!");
21179         }
21180         const nativeResponseValue = wasm.TS_UpdateFee_get_feerate_per_kw(this_ptr);
21181         return nativeResponseValue;
21182 }
21183         // void UpdateFee_set_feerate_per_kw(struct LDKUpdateFee *NONNULL_PTR this_ptr, uint32_t val);
21184 /* @internal */
21185 export function UpdateFee_set_feerate_per_kw(this_ptr: number, val: number): void {
21186         if(!isWasmInitialized) {
21187                 throw new Error("initializeWasm() must be awaited first!");
21188         }
21189         const nativeResponseValue = wasm.TS_UpdateFee_set_feerate_per_kw(this_ptr, val);
21190         // debug statements here
21191 }
21192         // MUST_USE_RES struct LDKUpdateFee UpdateFee_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t feerate_per_kw_arg);
21193 /* @internal */
21194 export function UpdateFee_new(channel_id_arg: number, feerate_per_kw_arg: number): number {
21195         if(!isWasmInitialized) {
21196                 throw new Error("initializeWasm() must be awaited first!");
21197         }
21198         const nativeResponseValue = wasm.TS_UpdateFee_new(channel_id_arg, feerate_per_kw_arg);
21199         return nativeResponseValue;
21200 }
21201         // uintptr_t UpdateFee_clone_ptr(LDKUpdateFee *NONNULL_PTR arg);
21202 /* @internal */
21203 export function UpdateFee_clone_ptr(arg: number): number {
21204         if(!isWasmInitialized) {
21205                 throw new Error("initializeWasm() must be awaited first!");
21206         }
21207         const nativeResponseValue = wasm.TS_UpdateFee_clone_ptr(arg);
21208         return nativeResponseValue;
21209 }
21210         // struct LDKUpdateFee UpdateFee_clone(const struct LDKUpdateFee *NONNULL_PTR orig);
21211 /* @internal */
21212 export function UpdateFee_clone(orig: number): number {
21213         if(!isWasmInitialized) {
21214                 throw new Error("initializeWasm() must be awaited first!");
21215         }
21216         const nativeResponseValue = wasm.TS_UpdateFee_clone(orig);
21217         return nativeResponseValue;
21218 }
21219         // void DataLossProtect_free(struct LDKDataLossProtect this_obj);
21220 /* @internal */
21221 export function DataLossProtect_free(this_obj: number): void {
21222         if(!isWasmInitialized) {
21223                 throw new Error("initializeWasm() must be awaited first!");
21224         }
21225         const nativeResponseValue = wasm.TS_DataLossProtect_free(this_obj);
21226         // debug statements here
21227 }
21228         // const uint8_t (*DataLossProtect_get_your_last_per_commitment_secret(const struct LDKDataLossProtect *NONNULL_PTR this_ptr))[32];
21229 /* @internal */
21230 export function DataLossProtect_get_your_last_per_commitment_secret(this_ptr: number): number {
21231         if(!isWasmInitialized) {
21232                 throw new Error("initializeWasm() must be awaited first!");
21233         }
21234         const nativeResponseValue = wasm.TS_DataLossProtect_get_your_last_per_commitment_secret(this_ptr);
21235         return nativeResponseValue;
21236 }
21237         // void DataLossProtect_set_your_last_per_commitment_secret(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21238 /* @internal */
21239 export function DataLossProtect_set_your_last_per_commitment_secret(this_ptr: number, val: number): void {
21240         if(!isWasmInitialized) {
21241                 throw new Error("initializeWasm() must be awaited first!");
21242         }
21243         const nativeResponseValue = wasm.TS_DataLossProtect_set_your_last_per_commitment_secret(this_ptr, val);
21244         // debug statements here
21245 }
21246         // struct LDKPublicKey DataLossProtect_get_my_current_per_commitment_point(const struct LDKDataLossProtect *NONNULL_PTR this_ptr);
21247 /* @internal */
21248 export function DataLossProtect_get_my_current_per_commitment_point(this_ptr: number): number {
21249         if(!isWasmInitialized) {
21250                 throw new Error("initializeWasm() must be awaited first!");
21251         }
21252         const nativeResponseValue = wasm.TS_DataLossProtect_get_my_current_per_commitment_point(this_ptr);
21253         return nativeResponseValue;
21254 }
21255         // void DataLossProtect_set_my_current_per_commitment_point(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21256 /* @internal */
21257 export function DataLossProtect_set_my_current_per_commitment_point(this_ptr: number, val: number): void {
21258         if(!isWasmInitialized) {
21259                 throw new Error("initializeWasm() must be awaited first!");
21260         }
21261         const nativeResponseValue = wasm.TS_DataLossProtect_set_my_current_per_commitment_point(this_ptr, val);
21262         // debug statements here
21263 }
21264         // MUST_USE_RES struct LDKDataLossProtect DataLossProtect_new(struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg);
21265 /* @internal */
21266 export function DataLossProtect_new(your_last_per_commitment_secret_arg: number, my_current_per_commitment_point_arg: number): number {
21267         if(!isWasmInitialized) {
21268                 throw new Error("initializeWasm() must be awaited first!");
21269         }
21270         const nativeResponseValue = wasm.TS_DataLossProtect_new(your_last_per_commitment_secret_arg, my_current_per_commitment_point_arg);
21271         return nativeResponseValue;
21272 }
21273         // uintptr_t DataLossProtect_clone_ptr(LDKDataLossProtect *NONNULL_PTR arg);
21274 /* @internal */
21275 export function DataLossProtect_clone_ptr(arg: number): number {
21276         if(!isWasmInitialized) {
21277                 throw new Error("initializeWasm() must be awaited first!");
21278         }
21279         const nativeResponseValue = wasm.TS_DataLossProtect_clone_ptr(arg);
21280         return nativeResponseValue;
21281 }
21282         // struct LDKDataLossProtect DataLossProtect_clone(const struct LDKDataLossProtect *NONNULL_PTR orig);
21283 /* @internal */
21284 export function DataLossProtect_clone(orig: number): number {
21285         if(!isWasmInitialized) {
21286                 throw new Error("initializeWasm() must be awaited first!");
21287         }
21288         const nativeResponseValue = wasm.TS_DataLossProtect_clone(orig);
21289         return nativeResponseValue;
21290 }
21291         // void ChannelReestablish_free(struct LDKChannelReestablish this_obj);
21292 /* @internal */
21293 export function ChannelReestablish_free(this_obj: number): void {
21294         if(!isWasmInitialized) {
21295                 throw new Error("initializeWasm() must be awaited first!");
21296         }
21297         const nativeResponseValue = wasm.TS_ChannelReestablish_free(this_obj);
21298         // debug statements here
21299 }
21300         // const uint8_t (*ChannelReestablish_get_channel_id(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32];
21301 /* @internal */
21302 export function ChannelReestablish_get_channel_id(this_ptr: number): number {
21303         if(!isWasmInitialized) {
21304                 throw new Error("initializeWasm() must be awaited first!");
21305         }
21306         const nativeResponseValue = wasm.TS_ChannelReestablish_get_channel_id(this_ptr);
21307         return nativeResponseValue;
21308 }
21309         // void ChannelReestablish_set_channel_id(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21310 /* @internal */
21311 export function ChannelReestablish_set_channel_id(this_ptr: number, val: number): void {
21312         if(!isWasmInitialized) {
21313                 throw new Error("initializeWasm() must be awaited first!");
21314         }
21315         const nativeResponseValue = wasm.TS_ChannelReestablish_set_channel_id(this_ptr, val);
21316         // debug statements here
21317 }
21318         // uint64_t ChannelReestablish_get_next_local_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
21319 /* @internal */
21320 export function ChannelReestablish_get_next_local_commitment_number(this_ptr: number): bigint {
21321         if(!isWasmInitialized) {
21322                 throw new Error("initializeWasm() must be awaited first!");
21323         }
21324         const nativeResponseValue = wasm.TS_ChannelReestablish_get_next_local_commitment_number(this_ptr);
21325         return nativeResponseValue;
21326 }
21327         // void ChannelReestablish_set_next_local_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
21328 /* @internal */
21329 export function ChannelReestablish_set_next_local_commitment_number(this_ptr: number, val: bigint): void {
21330         if(!isWasmInitialized) {
21331                 throw new Error("initializeWasm() must be awaited first!");
21332         }
21333         const nativeResponseValue = wasm.TS_ChannelReestablish_set_next_local_commitment_number(this_ptr, val);
21334         // debug statements here
21335 }
21336         // uint64_t ChannelReestablish_get_next_remote_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
21337 /* @internal */
21338 export function ChannelReestablish_get_next_remote_commitment_number(this_ptr: number): bigint {
21339         if(!isWasmInitialized) {
21340                 throw new Error("initializeWasm() must be awaited first!");
21341         }
21342         const nativeResponseValue = wasm.TS_ChannelReestablish_get_next_remote_commitment_number(this_ptr);
21343         return nativeResponseValue;
21344 }
21345         // void ChannelReestablish_set_next_remote_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
21346 /* @internal */
21347 export function ChannelReestablish_set_next_remote_commitment_number(this_ptr: number, val: bigint): void {
21348         if(!isWasmInitialized) {
21349                 throw new Error("initializeWasm() must be awaited first!");
21350         }
21351         const nativeResponseValue = wasm.TS_ChannelReestablish_set_next_remote_commitment_number(this_ptr, val);
21352         // debug statements here
21353 }
21354         // uintptr_t ChannelReestablish_clone_ptr(LDKChannelReestablish *NONNULL_PTR arg);
21355 /* @internal */
21356 export function ChannelReestablish_clone_ptr(arg: number): number {
21357         if(!isWasmInitialized) {
21358                 throw new Error("initializeWasm() must be awaited first!");
21359         }
21360         const nativeResponseValue = wasm.TS_ChannelReestablish_clone_ptr(arg);
21361         return nativeResponseValue;
21362 }
21363         // struct LDKChannelReestablish ChannelReestablish_clone(const struct LDKChannelReestablish *NONNULL_PTR orig);
21364 /* @internal */
21365 export function ChannelReestablish_clone(orig: number): number {
21366         if(!isWasmInitialized) {
21367                 throw new Error("initializeWasm() must be awaited first!");
21368         }
21369         const nativeResponseValue = wasm.TS_ChannelReestablish_clone(orig);
21370         return nativeResponseValue;
21371 }
21372         // void AnnouncementSignatures_free(struct LDKAnnouncementSignatures this_obj);
21373 /* @internal */
21374 export function AnnouncementSignatures_free(this_obj: number): void {
21375         if(!isWasmInitialized) {
21376                 throw new Error("initializeWasm() must be awaited first!");
21377         }
21378         const nativeResponseValue = wasm.TS_AnnouncementSignatures_free(this_obj);
21379         // debug statements here
21380 }
21381         // const uint8_t (*AnnouncementSignatures_get_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr))[32];
21382 /* @internal */
21383 export function AnnouncementSignatures_get_channel_id(this_ptr: number): number {
21384         if(!isWasmInitialized) {
21385                 throw new Error("initializeWasm() must be awaited first!");
21386         }
21387         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_channel_id(this_ptr);
21388         return nativeResponseValue;
21389 }
21390         // void AnnouncementSignatures_set_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21391 /* @internal */
21392 export function AnnouncementSignatures_set_channel_id(this_ptr: number, val: number): void {
21393         if(!isWasmInitialized) {
21394                 throw new Error("initializeWasm() must be awaited first!");
21395         }
21396         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_channel_id(this_ptr, val);
21397         // debug statements here
21398 }
21399         // uint64_t AnnouncementSignatures_get_short_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
21400 /* @internal */
21401 export function AnnouncementSignatures_get_short_channel_id(this_ptr: number): bigint {
21402         if(!isWasmInitialized) {
21403                 throw new Error("initializeWasm() must be awaited first!");
21404         }
21405         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_short_channel_id(this_ptr);
21406         return nativeResponseValue;
21407 }
21408         // void AnnouncementSignatures_set_short_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, uint64_t val);
21409 /* @internal */
21410 export function AnnouncementSignatures_set_short_channel_id(this_ptr: number, val: bigint): void {
21411         if(!isWasmInitialized) {
21412                 throw new Error("initializeWasm() must be awaited first!");
21413         }
21414         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_short_channel_id(this_ptr, val);
21415         // debug statements here
21416 }
21417         // struct LDKSignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
21418 /* @internal */
21419 export function AnnouncementSignatures_get_node_signature(this_ptr: number): number {
21420         if(!isWasmInitialized) {
21421                 throw new Error("initializeWasm() must be awaited first!");
21422         }
21423         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_node_signature(this_ptr);
21424         return nativeResponseValue;
21425 }
21426         // void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
21427 /* @internal */
21428 export function AnnouncementSignatures_set_node_signature(this_ptr: number, val: number): void {
21429         if(!isWasmInitialized) {
21430                 throw new Error("initializeWasm() must be awaited first!");
21431         }
21432         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_node_signature(this_ptr, val);
21433         // debug statements here
21434 }
21435         // struct LDKSignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
21436 /* @internal */
21437 export function AnnouncementSignatures_get_bitcoin_signature(this_ptr: number): number {
21438         if(!isWasmInitialized) {
21439                 throw new Error("initializeWasm() must be awaited first!");
21440         }
21441         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_bitcoin_signature(this_ptr);
21442         return nativeResponseValue;
21443 }
21444         // void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
21445 /* @internal */
21446 export function AnnouncementSignatures_set_bitcoin_signature(this_ptr: number, val: number): void {
21447         if(!isWasmInitialized) {
21448                 throw new Error("initializeWasm() must be awaited first!");
21449         }
21450         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_bitcoin_signature(this_ptr, val);
21451         // debug statements here
21452 }
21453         // MUST_USE_RES struct LDKAnnouncementSignatures AnnouncementSignatures_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t short_channel_id_arg, struct LDKSignature node_signature_arg, struct LDKSignature bitcoin_signature_arg);
21454 /* @internal */
21455 export function AnnouncementSignatures_new(channel_id_arg: number, short_channel_id_arg: bigint, node_signature_arg: number, bitcoin_signature_arg: number): number {
21456         if(!isWasmInitialized) {
21457                 throw new Error("initializeWasm() must be awaited first!");
21458         }
21459         const nativeResponseValue = wasm.TS_AnnouncementSignatures_new(channel_id_arg, short_channel_id_arg, node_signature_arg, bitcoin_signature_arg);
21460         return nativeResponseValue;
21461 }
21462         // uintptr_t AnnouncementSignatures_clone_ptr(LDKAnnouncementSignatures *NONNULL_PTR arg);
21463 /* @internal */
21464 export function AnnouncementSignatures_clone_ptr(arg: number): number {
21465         if(!isWasmInitialized) {
21466                 throw new Error("initializeWasm() must be awaited first!");
21467         }
21468         const nativeResponseValue = wasm.TS_AnnouncementSignatures_clone_ptr(arg);
21469         return nativeResponseValue;
21470 }
21471         // struct LDKAnnouncementSignatures AnnouncementSignatures_clone(const struct LDKAnnouncementSignatures *NONNULL_PTR orig);
21472 /* @internal */
21473 export function AnnouncementSignatures_clone(orig: number): number {
21474         if(!isWasmInitialized) {
21475                 throw new Error("initializeWasm() must be awaited first!");
21476         }
21477         const nativeResponseValue = wasm.TS_AnnouncementSignatures_clone(orig);
21478         return nativeResponseValue;
21479 }
21480         // void NetAddress_free(struct LDKNetAddress this_ptr);
21481 /* @internal */
21482 export function NetAddress_free(this_ptr: number): void {
21483         if(!isWasmInitialized) {
21484                 throw new Error("initializeWasm() must be awaited first!");
21485         }
21486         const nativeResponseValue = wasm.TS_NetAddress_free(this_ptr);
21487         // debug statements here
21488 }
21489         // uintptr_t NetAddress_clone_ptr(LDKNetAddress *NONNULL_PTR arg);
21490 /* @internal */
21491 export function NetAddress_clone_ptr(arg: number): number {
21492         if(!isWasmInitialized) {
21493                 throw new Error("initializeWasm() must be awaited first!");
21494         }
21495         const nativeResponseValue = wasm.TS_NetAddress_clone_ptr(arg);
21496         return nativeResponseValue;
21497 }
21498         // struct LDKNetAddress NetAddress_clone(const struct LDKNetAddress *NONNULL_PTR orig);
21499 /* @internal */
21500 export function NetAddress_clone(orig: number): number {
21501         if(!isWasmInitialized) {
21502                 throw new Error("initializeWasm() must be awaited first!");
21503         }
21504         const nativeResponseValue = wasm.TS_NetAddress_clone(orig);
21505         return nativeResponseValue;
21506 }
21507         // struct LDKNetAddress NetAddress_ipv4(struct LDKFourBytes addr, uint16_t port);
21508 /* @internal */
21509 export function NetAddress_ipv4(addr: number, port: number): number {
21510         if(!isWasmInitialized) {
21511                 throw new Error("initializeWasm() must be awaited first!");
21512         }
21513         const nativeResponseValue = wasm.TS_NetAddress_ipv4(addr, port);
21514         return nativeResponseValue;
21515 }
21516         // struct LDKNetAddress NetAddress_ipv6(struct LDKSixteenBytes addr, uint16_t port);
21517 /* @internal */
21518 export function NetAddress_ipv6(addr: number, port: number): number {
21519         if(!isWasmInitialized) {
21520                 throw new Error("initializeWasm() must be awaited first!");
21521         }
21522         const nativeResponseValue = wasm.TS_NetAddress_ipv6(addr, port);
21523         return nativeResponseValue;
21524 }
21525         // struct LDKNetAddress NetAddress_onion_v2(struct LDKTwelveBytes a);
21526 /* @internal */
21527 export function NetAddress_onion_v2(a: number): number {
21528         if(!isWasmInitialized) {
21529                 throw new Error("initializeWasm() must be awaited first!");
21530         }
21531         const nativeResponseValue = wasm.TS_NetAddress_onion_v2(a);
21532         return nativeResponseValue;
21533 }
21534         // struct LDKNetAddress NetAddress_onion_v3(struct LDKThirtyTwoBytes ed25519_pubkey, uint16_t checksum, uint8_t version, uint16_t port);
21535 /* @internal */
21536 export function NetAddress_onion_v3(ed25519_pubkey: number, checksum: number, version: number, port: number): number {
21537         if(!isWasmInitialized) {
21538                 throw new Error("initializeWasm() must be awaited first!");
21539         }
21540         const nativeResponseValue = wasm.TS_NetAddress_onion_v3(ed25519_pubkey, checksum, version, port);
21541         return nativeResponseValue;
21542 }
21543         // struct LDKCVec_u8Z NetAddress_write(const struct LDKNetAddress *NONNULL_PTR obj);
21544 /* @internal */
21545 export function NetAddress_write(obj: number): number {
21546         if(!isWasmInitialized) {
21547                 throw new Error("initializeWasm() must be awaited first!");
21548         }
21549         const nativeResponseValue = wasm.TS_NetAddress_write(obj);
21550         return nativeResponseValue;
21551 }
21552         // struct LDKCResult_NetAddressDecodeErrorZ NetAddress_read(struct LDKu8slice ser);
21553 /* @internal */
21554 export function NetAddress_read(ser: number): number {
21555         if(!isWasmInitialized) {
21556                 throw new Error("initializeWasm() must be awaited first!");
21557         }
21558         const nativeResponseValue = wasm.TS_NetAddress_read(ser);
21559         return nativeResponseValue;
21560 }
21561         // void UnsignedNodeAnnouncement_free(struct LDKUnsignedNodeAnnouncement this_obj);
21562 /* @internal */
21563 export function UnsignedNodeAnnouncement_free(this_obj: number): void {
21564         if(!isWasmInitialized) {
21565                 throw new Error("initializeWasm() must be awaited first!");
21566         }
21567         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_free(this_obj);
21568         // debug statements here
21569 }
21570         // struct LDKNodeFeatures UnsignedNodeAnnouncement_get_features(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
21571 /* @internal */
21572 export function UnsignedNodeAnnouncement_get_features(this_ptr: number): number {
21573         if(!isWasmInitialized) {
21574                 throw new Error("initializeWasm() must be awaited first!");
21575         }
21576         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_features(this_ptr);
21577         return nativeResponseValue;
21578 }
21579         // void UnsignedNodeAnnouncement_set_features(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
21580 /* @internal */
21581 export function UnsignedNodeAnnouncement_set_features(this_ptr: number, val: number): void {
21582         if(!isWasmInitialized) {
21583                 throw new Error("initializeWasm() must be awaited first!");
21584         }
21585         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_features(this_ptr, val);
21586         // debug statements here
21587 }
21588         // uint32_t UnsignedNodeAnnouncement_get_timestamp(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
21589 /* @internal */
21590 export function UnsignedNodeAnnouncement_get_timestamp(this_ptr: number): number {
21591         if(!isWasmInitialized) {
21592                 throw new Error("initializeWasm() must be awaited first!");
21593         }
21594         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_timestamp(this_ptr);
21595         return nativeResponseValue;
21596 }
21597         // void UnsignedNodeAnnouncement_set_timestamp(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, uint32_t val);
21598 /* @internal */
21599 export function UnsignedNodeAnnouncement_set_timestamp(this_ptr: number, val: number): void {
21600         if(!isWasmInitialized) {
21601                 throw new Error("initializeWasm() must be awaited first!");
21602         }
21603         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_timestamp(this_ptr, val);
21604         // debug statements here
21605 }
21606         // struct LDKPublicKey UnsignedNodeAnnouncement_get_node_id(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
21607 /* @internal */
21608 export function UnsignedNodeAnnouncement_get_node_id(this_ptr: number): number {
21609         if(!isWasmInitialized) {
21610                 throw new Error("initializeWasm() must be awaited first!");
21611         }
21612         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_node_id(this_ptr);
21613         return nativeResponseValue;
21614 }
21615         // void UnsignedNodeAnnouncement_set_node_id(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21616 /* @internal */
21617 export function UnsignedNodeAnnouncement_set_node_id(this_ptr: number, val: number): void {
21618         if(!isWasmInitialized) {
21619                 throw new Error("initializeWasm() must be awaited first!");
21620         }
21621         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_node_id(this_ptr, val);
21622         // debug statements here
21623 }
21624         // const uint8_t (*UnsignedNodeAnnouncement_get_rgb(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[3];
21625 /* @internal */
21626 export function UnsignedNodeAnnouncement_get_rgb(this_ptr: number): number {
21627         if(!isWasmInitialized) {
21628                 throw new Error("initializeWasm() must be awaited first!");
21629         }
21630         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_rgb(this_ptr);
21631         return nativeResponseValue;
21632 }
21633         // void UnsignedNodeAnnouncement_set_rgb(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
21634 /* @internal */
21635 export function UnsignedNodeAnnouncement_set_rgb(this_ptr: number, val: number): void {
21636         if(!isWasmInitialized) {
21637                 throw new Error("initializeWasm() must be awaited first!");
21638         }
21639         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_rgb(this_ptr, val);
21640         // debug statements here
21641 }
21642         // const uint8_t (*UnsignedNodeAnnouncement_get_alias(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[32];
21643 /* @internal */
21644 export function UnsignedNodeAnnouncement_get_alias(this_ptr: number): number {
21645         if(!isWasmInitialized) {
21646                 throw new Error("initializeWasm() must be awaited first!");
21647         }
21648         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_alias(this_ptr);
21649         return nativeResponseValue;
21650 }
21651         // void UnsignedNodeAnnouncement_set_alias(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21652 /* @internal */
21653 export function UnsignedNodeAnnouncement_set_alias(this_ptr: number, val: number): void {
21654         if(!isWasmInitialized) {
21655                 throw new Error("initializeWasm() must be awaited first!");
21656         }
21657         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_alias(this_ptr, val);
21658         // debug statements here
21659 }
21660         // void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
21661 /* @internal */
21662 export function UnsignedNodeAnnouncement_set_addresses(this_ptr: number, val: number): void {
21663         if(!isWasmInitialized) {
21664                 throw new Error("initializeWasm() must be awaited first!");
21665         }
21666         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_addresses(this_ptr, val);
21667         // debug statements here
21668 }
21669         // uintptr_t UnsignedNodeAnnouncement_clone_ptr(LDKUnsignedNodeAnnouncement *NONNULL_PTR arg);
21670 /* @internal */
21671 export function UnsignedNodeAnnouncement_clone_ptr(arg: number): number {
21672         if(!isWasmInitialized) {
21673                 throw new Error("initializeWasm() must be awaited first!");
21674         }
21675         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_clone_ptr(arg);
21676         return nativeResponseValue;
21677 }
21678         // struct LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_clone(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR orig);
21679 /* @internal */
21680 export function UnsignedNodeAnnouncement_clone(orig: number): number {
21681         if(!isWasmInitialized) {
21682                 throw new Error("initializeWasm() must be awaited first!");
21683         }
21684         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_clone(orig);
21685         return nativeResponseValue;
21686 }
21687         // void NodeAnnouncement_free(struct LDKNodeAnnouncement this_obj);
21688 /* @internal */
21689 export function NodeAnnouncement_free(this_obj: number): void {
21690         if(!isWasmInitialized) {
21691                 throw new Error("initializeWasm() must be awaited first!");
21692         }
21693         const nativeResponseValue = wasm.TS_NodeAnnouncement_free(this_obj);
21694         // debug statements here
21695 }
21696         // struct LDKSignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
21697 /* @internal */
21698 export function NodeAnnouncement_get_signature(this_ptr: number): number {
21699         if(!isWasmInitialized) {
21700                 throw new Error("initializeWasm() must be awaited first!");
21701         }
21702         const nativeResponseValue = wasm.TS_NodeAnnouncement_get_signature(this_ptr);
21703         return nativeResponseValue;
21704 }
21705         // void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
21706 /* @internal */
21707 export function NodeAnnouncement_set_signature(this_ptr: number, val: number): void {
21708         if(!isWasmInitialized) {
21709                 throw new Error("initializeWasm() must be awaited first!");
21710         }
21711         const nativeResponseValue = wasm.TS_NodeAnnouncement_set_signature(this_ptr, val);
21712         // debug statements here
21713 }
21714         // struct LDKUnsignedNodeAnnouncement NodeAnnouncement_get_contents(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
21715 /* @internal */
21716 export function NodeAnnouncement_get_contents(this_ptr: number): number {
21717         if(!isWasmInitialized) {
21718                 throw new Error("initializeWasm() must be awaited first!");
21719         }
21720         const nativeResponseValue = wasm.TS_NodeAnnouncement_get_contents(this_ptr);
21721         return nativeResponseValue;
21722 }
21723         // void NodeAnnouncement_set_contents(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedNodeAnnouncement val);
21724 /* @internal */
21725 export function NodeAnnouncement_set_contents(this_ptr: number, val: number): void {
21726         if(!isWasmInitialized) {
21727                 throw new Error("initializeWasm() must be awaited first!");
21728         }
21729         const nativeResponseValue = wasm.TS_NodeAnnouncement_set_contents(this_ptr, val);
21730         // debug statements here
21731 }
21732         // MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKSignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg);
21733 /* @internal */
21734 export function NodeAnnouncement_new(signature_arg: number, contents_arg: number): number {
21735         if(!isWasmInitialized) {
21736                 throw new Error("initializeWasm() must be awaited first!");
21737         }
21738         const nativeResponseValue = wasm.TS_NodeAnnouncement_new(signature_arg, contents_arg);
21739         return nativeResponseValue;
21740 }
21741         // uintptr_t NodeAnnouncement_clone_ptr(LDKNodeAnnouncement *NONNULL_PTR arg);
21742 /* @internal */
21743 export function NodeAnnouncement_clone_ptr(arg: number): number {
21744         if(!isWasmInitialized) {
21745                 throw new Error("initializeWasm() must be awaited first!");
21746         }
21747         const nativeResponseValue = wasm.TS_NodeAnnouncement_clone_ptr(arg);
21748         return nativeResponseValue;
21749 }
21750         // struct LDKNodeAnnouncement NodeAnnouncement_clone(const struct LDKNodeAnnouncement *NONNULL_PTR orig);
21751 /* @internal */
21752 export function NodeAnnouncement_clone(orig: number): number {
21753         if(!isWasmInitialized) {
21754                 throw new Error("initializeWasm() must be awaited first!");
21755         }
21756         const nativeResponseValue = wasm.TS_NodeAnnouncement_clone(orig);
21757         return nativeResponseValue;
21758 }
21759         // void UnsignedChannelAnnouncement_free(struct LDKUnsignedChannelAnnouncement this_obj);
21760 /* @internal */
21761 export function UnsignedChannelAnnouncement_free(this_obj: number): void {
21762         if(!isWasmInitialized) {
21763                 throw new Error("initializeWasm() must be awaited first!");
21764         }
21765         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_free(this_obj);
21766         // debug statements here
21767 }
21768         // struct LDKChannelFeatures UnsignedChannelAnnouncement_get_features(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
21769 /* @internal */
21770 export function UnsignedChannelAnnouncement_get_features(this_ptr: number): number {
21771         if(!isWasmInitialized) {
21772                 throw new Error("initializeWasm() must be awaited first!");
21773         }
21774         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_features(this_ptr);
21775         return nativeResponseValue;
21776 }
21777         // void UnsignedChannelAnnouncement_set_features(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
21778 /* @internal */
21779 export function UnsignedChannelAnnouncement_set_features(this_ptr: number, val: number): void {
21780         if(!isWasmInitialized) {
21781                 throw new Error("initializeWasm() must be awaited first!");
21782         }
21783         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_features(this_ptr, val);
21784         // debug statements here
21785 }
21786         // const uint8_t (*UnsignedChannelAnnouncement_get_chain_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr))[32];
21787 /* @internal */
21788 export function UnsignedChannelAnnouncement_get_chain_hash(this_ptr: number): number {
21789         if(!isWasmInitialized) {
21790                 throw new Error("initializeWasm() must be awaited first!");
21791         }
21792         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_chain_hash(this_ptr);
21793         return nativeResponseValue;
21794 }
21795         // void UnsignedChannelAnnouncement_set_chain_hash(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21796 /* @internal */
21797 export function UnsignedChannelAnnouncement_set_chain_hash(this_ptr: number, val: number): void {
21798         if(!isWasmInitialized) {
21799                 throw new Error("initializeWasm() must be awaited first!");
21800         }
21801         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_chain_hash(this_ptr, val);
21802         // debug statements here
21803 }
21804         // uint64_t UnsignedChannelAnnouncement_get_short_channel_id(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
21805 /* @internal */
21806 export function UnsignedChannelAnnouncement_get_short_channel_id(this_ptr: number): bigint {
21807         if(!isWasmInitialized) {
21808                 throw new Error("initializeWasm() must be awaited first!");
21809         }
21810         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_short_channel_id(this_ptr);
21811         return nativeResponseValue;
21812 }
21813         // void UnsignedChannelAnnouncement_set_short_channel_id(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, uint64_t val);
21814 /* @internal */
21815 export function UnsignedChannelAnnouncement_set_short_channel_id(this_ptr: number, val: bigint): void {
21816         if(!isWasmInitialized) {
21817                 throw new Error("initializeWasm() must be awaited first!");
21818         }
21819         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_short_channel_id(this_ptr, val);
21820         // debug statements here
21821 }
21822         // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
21823 /* @internal */
21824 export function UnsignedChannelAnnouncement_get_node_id_1(this_ptr: number): number {
21825         if(!isWasmInitialized) {
21826                 throw new Error("initializeWasm() must be awaited first!");
21827         }
21828         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_node_id_1(this_ptr);
21829         return nativeResponseValue;
21830 }
21831         // void UnsignedChannelAnnouncement_set_node_id_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21832 /* @internal */
21833 export function UnsignedChannelAnnouncement_set_node_id_1(this_ptr: number, val: number): void {
21834         if(!isWasmInitialized) {
21835                 throw new Error("initializeWasm() must be awaited first!");
21836         }
21837         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_node_id_1(this_ptr, val);
21838         // debug statements here
21839 }
21840         // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
21841 /* @internal */
21842 export function UnsignedChannelAnnouncement_get_node_id_2(this_ptr: number): number {
21843         if(!isWasmInitialized) {
21844                 throw new Error("initializeWasm() must be awaited first!");
21845         }
21846         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_node_id_2(this_ptr);
21847         return nativeResponseValue;
21848 }
21849         // void UnsignedChannelAnnouncement_set_node_id_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21850 /* @internal */
21851 export function UnsignedChannelAnnouncement_set_node_id_2(this_ptr: number, val: number): void {
21852         if(!isWasmInitialized) {
21853                 throw new Error("initializeWasm() must be awaited first!");
21854         }
21855         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_node_id_2(this_ptr, val);
21856         // debug statements here
21857 }
21858         // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
21859 /* @internal */
21860 export function UnsignedChannelAnnouncement_get_bitcoin_key_1(this_ptr: number): number {
21861         if(!isWasmInitialized) {
21862                 throw new Error("initializeWasm() must be awaited first!");
21863         }
21864         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_bitcoin_key_1(this_ptr);
21865         return nativeResponseValue;
21866 }
21867         // void UnsignedChannelAnnouncement_set_bitcoin_key_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21868 /* @internal */
21869 export function UnsignedChannelAnnouncement_set_bitcoin_key_1(this_ptr: number, val: number): void {
21870         if(!isWasmInitialized) {
21871                 throw new Error("initializeWasm() must be awaited first!");
21872         }
21873         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_bitcoin_key_1(this_ptr, val);
21874         // debug statements here
21875 }
21876         // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
21877 /* @internal */
21878 export function UnsignedChannelAnnouncement_get_bitcoin_key_2(this_ptr: number): number {
21879         if(!isWasmInitialized) {
21880                 throw new Error("initializeWasm() must be awaited first!");
21881         }
21882         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_bitcoin_key_2(this_ptr);
21883         return nativeResponseValue;
21884 }
21885         // void UnsignedChannelAnnouncement_set_bitcoin_key_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21886 /* @internal */
21887 export function UnsignedChannelAnnouncement_set_bitcoin_key_2(this_ptr: number, val: number): void {
21888         if(!isWasmInitialized) {
21889                 throw new Error("initializeWasm() must be awaited first!");
21890         }
21891         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_bitcoin_key_2(this_ptr, val);
21892         // debug statements here
21893 }
21894         // uintptr_t UnsignedChannelAnnouncement_clone_ptr(LDKUnsignedChannelAnnouncement *NONNULL_PTR arg);
21895 /* @internal */
21896 export function UnsignedChannelAnnouncement_clone_ptr(arg: number): number {
21897         if(!isWasmInitialized) {
21898                 throw new Error("initializeWasm() must be awaited first!");
21899         }
21900         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_clone_ptr(arg);
21901         return nativeResponseValue;
21902 }
21903         // struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_clone(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR orig);
21904 /* @internal */
21905 export function UnsignedChannelAnnouncement_clone(orig: number): number {
21906         if(!isWasmInitialized) {
21907                 throw new Error("initializeWasm() must be awaited first!");
21908         }
21909         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_clone(orig);
21910         return nativeResponseValue;
21911 }
21912         // void ChannelAnnouncement_free(struct LDKChannelAnnouncement this_obj);
21913 /* @internal */
21914 export function ChannelAnnouncement_free(this_obj: number): void {
21915         if(!isWasmInitialized) {
21916                 throw new Error("initializeWasm() must be awaited first!");
21917         }
21918         const nativeResponseValue = wasm.TS_ChannelAnnouncement_free(this_obj);
21919         // debug statements here
21920 }
21921         // struct LDKSignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
21922 /* @internal */
21923 export function ChannelAnnouncement_get_node_signature_1(this_ptr: number): number {
21924         if(!isWasmInitialized) {
21925                 throw new Error("initializeWasm() must be awaited first!");
21926         }
21927         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_node_signature_1(this_ptr);
21928         return nativeResponseValue;
21929 }
21930         // void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
21931 /* @internal */
21932 export function ChannelAnnouncement_set_node_signature_1(this_ptr: number, val: number): void {
21933         if(!isWasmInitialized) {
21934                 throw new Error("initializeWasm() must be awaited first!");
21935         }
21936         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_node_signature_1(this_ptr, val);
21937         // debug statements here
21938 }
21939         // struct LDKSignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
21940 /* @internal */
21941 export function ChannelAnnouncement_get_node_signature_2(this_ptr: number): number {
21942         if(!isWasmInitialized) {
21943                 throw new Error("initializeWasm() must be awaited first!");
21944         }
21945         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_node_signature_2(this_ptr);
21946         return nativeResponseValue;
21947 }
21948         // void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
21949 /* @internal */
21950 export function ChannelAnnouncement_set_node_signature_2(this_ptr: number, val: number): void {
21951         if(!isWasmInitialized) {
21952                 throw new Error("initializeWasm() must be awaited first!");
21953         }
21954         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_node_signature_2(this_ptr, val);
21955         // debug statements here
21956 }
21957         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
21958 /* @internal */
21959 export function ChannelAnnouncement_get_bitcoin_signature_1(this_ptr: number): number {
21960         if(!isWasmInitialized) {
21961                 throw new Error("initializeWasm() must be awaited first!");
21962         }
21963         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_bitcoin_signature_1(this_ptr);
21964         return nativeResponseValue;
21965 }
21966         // void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
21967 /* @internal */
21968 export function ChannelAnnouncement_set_bitcoin_signature_1(this_ptr: number, val: number): void {
21969         if(!isWasmInitialized) {
21970                 throw new Error("initializeWasm() must be awaited first!");
21971         }
21972         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_bitcoin_signature_1(this_ptr, val);
21973         // debug statements here
21974 }
21975         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
21976 /* @internal */
21977 export function ChannelAnnouncement_get_bitcoin_signature_2(this_ptr: number): number {
21978         if(!isWasmInitialized) {
21979                 throw new Error("initializeWasm() must be awaited first!");
21980         }
21981         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_bitcoin_signature_2(this_ptr);
21982         return nativeResponseValue;
21983 }
21984         // void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
21985 /* @internal */
21986 export function ChannelAnnouncement_set_bitcoin_signature_2(this_ptr: number, val: number): void {
21987         if(!isWasmInitialized) {
21988                 throw new Error("initializeWasm() must be awaited first!");
21989         }
21990         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_bitcoin_signature_2(this_ptr, val);
21991         // debug statements here
21992 }
21993         // struct LDKUnsignedChannelAnnouncement ChannelAnnouncement_get_contents(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
21994 /* @internal */
21995 export function ChannelAnnouncement_get_contents(this_ptr: number): number {
21996         if(!isWasmInitialized) {
21997                 throw new Error("initializeWasm() must be awaited first!");
21998         }
21999         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_contents(this_ptr);
22000         return nativeResponseValue;
22001 }
22002         // void ChannelAnnouncement_set_contents(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedChannelAnnouncement val);
22003 /* @internal */
22004 export function ChannelAnnouncement_set_contents(this_ptr: number, val: number): void {
22005         if(!isWasmInitialized) {
22006                 throw new Error("initializeWasm() must be awaited first!");
22007         }
22008         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_contents(this_ptr, val);
22009         // debug statements here
22010 }
22011         // MUST_USE_RES struct LDKChannelAnnouncement ChannelAnnouncement_new(struct LDKSignature node_signature_1_arg, struct LDKSignature node_signature_2_arg, struct LDKSignature bitcoin_signature_1_arg, struct LDKSignature bitcoin_signature_2_arg, struct LDKUnsignedChannelAnnouncement contents_arg);
22012 /* @internal */
22013 export function ChannelAnnouncement_new(node_signature_1_arg: number, node_signature_2_arg: number, bitcoin_signature_1_arg: number, bitcoin_signature_2_arg: number, contents_arg: number): number {
22014         if(!isWasmInitialized) {
22015                 throw new Error("initializeWasm() must be awaited first!");
22016         }
22017         const nativeResponseValue = wasm.TS_ChannelAnnouncement_new(node_signature_1_arg, node_signature_2_arg, bitcoin_signature_1_arg, bitcoin_signature_2_arg, contents_arg);
22018         return nativeResponseValue;
22019 }
22020         // uintptr_t ChannelAnnouncement_clone_ptr(LDKChannelAnnouncement *NONNULL_PTR arg);
22021 /* @internal */
22022 export function ChannelAnnouncement_clone_ptr(arg: number): number {
22023         if(!isWasmInitialized) {
22024                 throw new Error("initializeWasm() must be awaited first!");
22025         }
22026         const nativeResponseValue = wasm.TS_ChannelAnnouncement_clone_ptr(arg);
22027         return nativeResponseValue;
22028 }
22029         // struct LDKChannelAnnouncement ChannelAnnouncement_clone(const struct LDKChannelAnnouncement *NONNULL_PTR orig);
22030 /* @internal */
22031 export function ChannelAnnouncement_clone(orig: number): number {
22032         if(!isWasmInitialized) {
22033                 throw new Error("initializeWasm() must be awaited first!");
22034         }
22035         const nativeResponseValue = wasm.TS_ChannelAnnouncement_clone(orig);
22036         return nativeResponseValue;
22037 }
22038         // void UnsignedChannelUpdate_free(struct LDKUnsignedChannelUpdate this_obj);
22039 /* @internal */
22040 export function UnsignedChannelUpdate_free(this_obj: number): void {
22041         if(!isWasmInitialized) {
22042                 throw new Error("initializeWasm() must be awaited first!");
22043         }
22044         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_free(this_obj);
22045         // debug statements here
22046 }
22047         // const uint8_t (*UnsignedChannelUpdate_get_chain_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr))[32];
22048 /* @internal */
22049 export function UnsignedChannelUpdate_get_chain_hash(this_ptr: number): number {
22050         if(!isWasmInitialized) {
22051                 throw new Error("initializeWasm() must be awaited first!");
22052         }
22053         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_chain_hash(this_ptr);
22054         return nativeResponseValue;
22055 }
22056         // void UnsignedChannelUpdate_set_chain_hash(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22057 /* @internal */
22058 export function UnsignedChannelUpdate_set_chain_hash(this_ptr: number, val: number): void {
22059         if(!isWasmInitialized) {
22060                 throw new Error("initializeWasm() must be awaited first!");
22061         }
22062         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_chain_hash(this_ptr, val);
22063         // debug statements here
22064 }
22065         // uint64_t UnsignedChannelUpdate_get_short_channel_id(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
22066 /* @internal */
22067 export function UnsignedChannelUpdate_get_short_channel_id(this_ptr: number): bigint {
22068         if(!isWasmInitialized) {
22069                 throw new Error("initializeWasm() must be awaited first!");
22070         }
22071         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_short_channel_id(this_ptr);
22072         return nativeResponseValue;
22073 }
22074         // void UnsignedChannelUpdate_set_short_channel_id(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
22075 /* @internal */
22076 export function UnsignedChannelUpdate_set_short_channel_id(this_ptr: number, val: bigint): void {
22077         if(!isWasmInitialized) {
22078                 throw new Error("initializeWasm() must be awaited first!");
22079         }
22080         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_short_channel_id(this_ptr, val);
22081         // debug statements here
22082 }
22083         // uint32_t UnsignedChannelUpdate_get_timestamp(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
22084 /* @internal */
22085 export function UnsignedChannelUpdate_get_timestamp(this_ptr: number): number {
22086         if(!isWasmInitialized) {
22087                 throw new Error("initializeWasm() must be awaited first!");
22088         }
22089         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_timestamp(this_ptr);
22090         return nativeResponseValue;
22091 }
22092         // void UnsignedChannelUpdate_set_timestamp(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
22093 /* @internal */
22094 export function UnsignedChannelUpdate_set_timestamp(this_ptr: number, val: number): void {
22095         if(!isWasmInitialized) {
22096                 throw new Error("initializeWasm() must be awaited first!");
22097         }
22098         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_timestamp(this_ptr, val);
22099         // debug statements here
22100 }
22101         // uint8_t UnsignedChannelUpdate_get_flags(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
22102 /* @internal */
22103 export function UnsignedChannelUpdate_get_flags(this_ptr: number): number {
22104         if(!isWasmInitialized) {
22105                 throw new Error("initializeWasm() must be awaited first!");
22106         }
22107         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_flags(this_ptr);
22108         return nativeResponseValue;
22109 }
22110         // void UnsignedChannelUpdate_set_flags(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint8_t val);
22111 /* @internal */
22112 export function UnsignedChannelUpdate_set_flags(this_ptr: number, val: number): void {
22113         if(!isWasmInitialized) {
22114                 throw new Error("initializeWasm() must be awaited first!");
22115         }
22116         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_flags(this_ptr, val);
22117         // debug statements here
22118 }
22119         // uint16_t UnsignedChannelUpdate_get_cltv_expiry_delta(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
22120 /* @internal */
22121 export function UnsignedChannelUpdate_get_cltv_expiry_delta(this_ptr: number): number {
22122         if(!isWasmInitialized) {
22123                 throw new Error("initializeWasm() must be awaited first!");
22124         }
22125         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_cltv_expiry_delta(this_ptr);
22126         return nativeResponseValue;
22127 }
22128         // void UnsignedChannelUpdate_set_cltv_expiry_delta(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint16_t val);
22129 /* @internal */
22130 export function UnsignedChannelUpdate_set_cltv_expiry_delta(this_ptr: number, val: number): void {
22131         if(!isWasmInitialized) {
22132                 throw new Error("initializeWasm() must be awaited first!");
22133         }
22134         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_cltv_expiry_delta(this_ptr, val);
22135         // debug statements here
22136 }
22137         // uint64_t UnsignedChannelUpdate_get_htlc_minimum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
22138 /* @internal */
22139 export function UnsignedChannelUpdate_get_htlc_minimum_msat(this_ptr: number): bigint {
22140         if(!isWasmInitialized) {
22141                 throw new Error("initializeWasm() must be awaited first!");
22142         }
22143         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_htlc_minimum_msat(this_ptr);
22144         return nativeResponseValue;
22145 }
22146         // void UnsignedChannelUpdate_set_htlc_minimum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
22147 /* @internal */
22148 export function UnsignedChannelUpdate_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
22149         if(!isWasmInitialized) {
22150                 throw new Error("initializeWasm() must be awaited first!");
22151         }
22152         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_htlc_minimum_msat(this_ptr, val);
22153         // debug statements here
22154 }
22155         // uint32_t UnsignedChannelUpdate_get_fee_base_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
22156 /* @internal */
22157 export function UnsignedChannelUpdate_get_fee_base_msat(this_ptr: number): number {
22158         if(!isWasmInitialized) {
22159                 throw new Error("initializeWasm() must be awaited first!");
22160         }
22161         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_fee_base_msat(this_ptr);
22162         return nativeResponseValue;
22163 }
22164         // void UnsignedChannelUpdate_set_fee_base_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
22165 /* @internal */
22166 export function UnsignedChannelUpdate_set_fee_base_msat(this_ptr: number, val: number): void {
22167         if(!isWasmInitialized) {
22168                 throw new Error("initializeWasm() must be awaited first!");
22169         }
22170         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_fee_base_msat(this_ptr, val);
22171         // debug statements here
22172 }
22173         // uint32_t UnsignedChannelUpdate_get_fee_proportional_millionths(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
22174 /* @internal */
22175 export function UnsignedChannelUpdate_get_fee_proportional_millionths(this_ptr: number): number {
22176         if(!isWasmInitialized) {
22177                 throw new Error("initializeWasm() must be awaited first!");
22178         }
22179         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_fee_proportional_millionths(this_ptr);
22180         return nativeResponseValue;
22181 }
22182         // void UnsignedChannelUpdate_set_fee_proportional_millionths(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
22183 /* @internal */
22184 export function UnsignedChannelUpdate_set_fee_proportional_millionths(this_ptr: number, val: number): void {
22185         if(!isWasmInitialized) {
22186                 throw new Error("initializeWasm() must be awaited first!");
22187         }
22188         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_fee_proportional_millionths(this_ptr, val);
22189         // debug statements here
22190 }
22191         // uintptr_t UnsignedChannelUpdate_clone_ptr(LDKUnsignedChannelUpdate *NONNULL_PTR arg);
22192 /* @internal */
22193 export function UnsignedChannelUpdate_clone_ptr(arg: number): number {
22194         if(!isWasmInitialized) {
22195                 throw new Error("initializeWasm() must be awaited first!");
22196         }
22197         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_clone_ptr(arg);
22198         return nativeResponseValue;
22199 }
22200         // struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_clone(const struct LDKUnsignedChannelUpdate *NONNULL_PTR orig);
22201 /* @internal */
22202 export function UnsignedChannelUpdate_clone(orig: number): number {
22203         if(!isWasmInitialized) {
22204                 throw new Error("initializeWasm() must be awaited first!");
22205         }
22206         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_clone(orig);
22207         return nativeResponseValue;
22208 }
22209         // void ChannelUpdate_free(struct LDKChannelUpdate this_obj);
22210 /* @internal */
22211 export function ChannelUpdate_free(this_obj: number): void {
22212         if(!isWasmInitialized) {
22213                 throw new Error("initializeWasm() must be awaited first!");
22214         }
22215         const nativeResponseValue = wasm.TS_ChannelUpdate_free(this_obj);
22216         // debug statements here
22217 }
22218         // struct LDKSignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
22219 /* @internal */
22220 export function ChannelUpdate_get_signature(this_ptr: number): number {
22221         if(!isWasmInitialized) {
22222                 throw new Error("initializeWasm() must be awaited first!");
22223         }
22224         const nativeResponseValue = wasm.TS_ChannelUpdate_get_signature(this_ptr);
22225         return nativeResponseValue;
22226 }
22227         // void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKSignature val);
22228 /* @internal */
22229 export function ChannelUpdate_set_signature(this_ptr: number, val: number): void {
22230         if(!isWasmInitialized) {
22231                 throw new Error("initializeWasm() must be awaited first!");
22232         }
22233         const nativeResponseValue = wasm.TS_ChannelUpdate_set_signature(this_ptr, val);
22234         // debug statements here
22235 }
22236         // struct LDKUnsignedChannelUpdate ChannelUpdate_get_contents(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
22237 /* @internal */
22238 export function ChannelUpdate_get_contents(this_ptr: number): number {
22239         if(!isWasmInitialized) {
22240                 throw new Error("initializeWasm() must be awaited first!");
22241         }
22242         const nativeResponseValue = wasm.TS_ChannelUpdate_get_contents(this_ptr);
22243         return nativeResponseValue;
22244 }
22245         // void ChannelUpdate_set_contents(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKUnsignedChannelUpdate val);
22246 /* @internal */
22247 export function ChannelUpdate_set_contents(this_ptr: number, val: number): void {
22248         if(!isWasmInitialized) {
22249                 throw new Error("initializeWasm() must be awaited first!");
22250         }
22251         const nativeResponseValue = wasm.TS_ChannelUpdate_set_contents(this_ptr, val);
22252         // debug statements here
22253 }
22254         // MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKSignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg);
22255 /* @internal */
22256 export function ChannelUpdate_new(signature_arg: number, contents_arg: number): number {
22257         if(!isWasmInitialized) {
22258                 throw new Error("initializeWasm() must be awaited first!");
22259         }
22260         const nativeResponseValue = wasm.TS_ChannelUpdate_new(signature_arg, contents_arg);
22261         return nativeResponseValue;
22262 }
22263         // uintptr_t ChannelUpdate_clone_ptr(LDKChannelUpdate *NONNULL_PTR arg);
22264 /* @internal */
22265 export function ChannelUpdate_clone_ptr(arg: number): number {
22266         if(!isWasmInitialized) {
22267                 throw new Error("initializeWasm() must be awaited first!");
22268         }
22269         const nativeResponseValue = wasm.TS_ChannelUpdate_clone_ptr(arg);
22270         return nativeResponseValue;
22271 }
22272         // struct LDKChannelUpdate ChannelUpdate_clone(const struct LDKChannelUpdate *NONNULL_PTR orig);
22273 /* @internal */
22274 export function ChannelUpdate_clone(orig: number): number {
22275         if(!isWasmInitialized) {
22276                 throw new Error("initializeWasm() must be awaited first!");
22277         }
22278         const nativeResponseValue = wasm.TS_ChannelUpdate_clone(orig);
22279         return nativeResponseValue;
22280 }
22281         // void QueryChannelRange_free(struct LDKQueryChannelRange this_obj);
22282 /* @internal */
22283 export function QueryChannelRange_free(this_obj: number): void {
22284         if(!isWasmInitialized) {
22285                 throw new Error("initializeWasm() must be awaited first!");
22286         }
22287         const nativeResponseValue = wasm.TS_QueryChannelRange_free(this_obj);
22288         // debug statements here
22289 }
22290         // const uint8_t (*QueryChannelRange_get_chain_hash(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr))[32];
22291 /* @internal */
22292 export function QueryChannelRange_get_chain_hash(this_ptr: number): number {
22293         if(!isWasmInitialized) {
22294                 throw new Error("initializeWasm() must be awaited first!");
22295         }
22296         const nativeResponseValue = wasm.TS_QueryChannelRange_get_chain_hash(this_ptr);
22297         return nativeResponseValue;
22298 }
22299         // void QueryChannelRange_set_chain_hash(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22300 /* @internal */
22301 export function QueryChannelRange_set_chain_hash(this_ptr: number, val: number): void {
22302         if(!isWasmInitialized) {
22303                 throw new Error("initializeWasm() must be awaited first!");
22304         }
22305         const nativeResponseValue = wasm.TS_QueryChannelRange_set_chain_hash(this_ptr, val);
22306         // debug statements here
22307 }
22308         // uint32_t QueryChannelRange_get_first_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
22309 /* @internal */
22310 export function QueryChannelRange_get_first_blocknum(this_ptr: number): number {
22311         if(!isWasmInitialized) {
22312                 throw new Error("initializeWasm() must be awaited first!");
22313         }
22314         const nativeResponseValue = wasm.TS_QueryChannelRange_get_first_blocknum(this_ptr);
22315         return nativeResponseValue;
22316 }
22317         // void QueryChannelRange_set_first_blocknum(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
22318 /* @internal */
22319 export function QueryChannelRange_set_first_blocknum(this_ptr: number, val: number): void {
22320         if(!isWasmInitialized) {
22321                 throw new Error("initializeWasm() must be awaited first!");
22322         }
22323         const nativeResponseValue = wasm.TS_QueryChannelRange_set_first_blocknum(this_ptr, val);
22324         // debug statements here
22325 }
22326         // uint32_t QueryChannelRange_get_number_of_blocks(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
22327 /* @internal */
22328 export function QueryChannelRange_get_number_of_blocks(this_ptr: number): number {
22329         if(!isWasmInitialized) {
22330                 throw new Error("initializeWasm() must be awaited first!");
22331         }
22332         const nativeResponseValue = wasm.TS_QueryChannelRange_get_number_of_blocks(this_ptr);
22333         return nativeResponseValue;
22334 }
22335         // void QueryChannelRange_set_number_of_blocks(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
22336 /* @internal */
22337 export function QueryChannelRange_set_number_of_blocks(this_ptr: number, val: number): void {
22338         if(!isWasmInitialized) {
22339                 throw new Error("initializeWasm() must be awaited first!");
22340         }
22341         const nativeResponseValue = wasm.TS_QueryChannelRange_set_number_of_blocks(this_ptr, val);
22342         // debug statements here
22343 }
22344         // MUST_USE_RES struct LDKQueryChannelRange QueryChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg);
22345 /* @internal */
22346 export function QueryChannelRange_new(chain_hash_arg: number, first_blocknum_arg: number, number_of_blocks_arg: number): number {
22347         if(!isWasmInitialized) {
22348                 throw new Error("initializeWasm() must be awaited first!");
22349         }
22350         const nativeResponseValue = wasm.TS_QueryChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg);
22351         return nativeResponseValue;
22352 }
22353         // uintptr_t QueryChannelRange_clone_ptr(LDKQueryChannelRange *NONNULL_PTR arg);
22354 /* @internal */
22355 export function QueryChannelRange_clone_ptr(arg: number): number {
22356         if(!isWasmInitialized) {
22357                 throw new Error("initializeWasm() must be awaited first!");
22358         }
22359         const nativeResponseValue = wasm.TS_QueryChannelRange_clone_ptr(arg);
22360         return nativeResponseValue;
22361 }
22362         // struct LDKQueryChannelRange QueryChannelRange_clone(const struct LDKQueryChannelRange *NONNULL_PTR orig);
22363 /* @internal */
22364 export function QueryChannelRange_clone(orig: number): number {
22365         if(!isWasmInitialized) {
22366                 throw new Error("initializeWasm() must be awaited first!");
22367         }
22368         const nativeResponseValue = wasm.TS_QueryChannelRange_clone(orig);
22369         return nativeResponseValue;
22370 }
22371         // void ReplyChannelRange_free(struct LDKReplyChannelRange this_obj);
22372 /* @internal */
22373 export function ReplyChannelRange_free(this_obj: number): void {
22374         if(!isWasmInitialized) {
22375                 throw new Error("initializeWasm() must be awaited first!");
22376         }
22377         const nativeResponseValue = wasm.TS_ReplyChannelRange_free(this_obj);
22378         // debug statements here
22379 }
22380         // const uint8_t (*ReplyChannelRange_get_chain_hash(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr))[32];
22381 /* @internal */
22382 export function ReplyChannelRange_get_chain_hash(this_ptr: number): number {
22383         if(!isWasmInitialized) {
22384                 throw new Error("initializeWasm() must be awaited first!");
22385         }
22386         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_chain_hash(this_ptr);
22387         return nativeResponseValue;
22388 }
22389         // void ReplyChannelRange_set_chain_hash(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22390 /* @internal */
22391 export function ReplyChannelRange_set_chain_hash(this_ptr: number, val: number): void {
22392         if(!isWasmInitialized) {
22393                 throw new Error("initializeWasm() must be awaited first!");
22394         }
22395         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_chain_hash(this_ptr, val);
22396         // debug statements here
22397 }
22398         // uint32_t ReplyChannelRange_get_first_blocknum(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
22399 /* @internal */
22400 export function ReplyChannelRange_get_first_blocknum(this_ptr: number): number {
22401         if(!isWasmInitialized) {
22402                 throw new Error("initializeWasm() must be awaited first!");
22403         }
22404         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_first_blocknum(this_ptr);
22405         return nativeResponseValue;
22406 }
22407         // void ReplyChannelRange_set_first_blocknum(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
22408 /* @internal */
22409 export function ReplyChannelRange_set_first_blocknum(this_ptr: number, val: number): void {
22410         if(!isWasmInitialized) {
22411                 throw new Error("initializeWasm() must be awaited first!");
22412         }
22413         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_first_blocknum(this_ptr, val);
22414         // debug statements here
22415 }
22416         // uint32_t ReplyChannelRange_get_number_of_blocks(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
22417 /* @internal */
22418 export function ReplyChannelRange_get_number_of_blocks(this_ptr: number): number {
22419         if(!isWasmInitialized) {
22420                 throw new Error("initializeWasm() must be awaited first!");
22421         }
22422         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_number_of_blocks(this_ptr);
22423         return nativeResponseValue;
22424 }
22425         // void ReplyChannelRange_set_number_of_blocks(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
22426 /* @internal */
22427 export function ReplyChannelRange_set_number_of_blocks(this_ptr: number, val: number): void {
22428         if(!isWasmInitialized) {
22429                 throw new Error("initializeWasm() must be awaited first!");
22430         }
22431         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_number_of_blocks(this_ptr, val);
22432         // debug statements here
22433 }
22434         // bool ReplyChannelRange_get_sync_complete(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
22435 /* @internal */
22436 export function ReplyChannelRange_get_sync_complete(this_ptr: number): boolean {
22437         if(!isWasmInitialized) {
22438                 throw new Error("initializeWasm() must be awaited first!");
22439         }
22440         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_sync_complete(this_ptr);
22441         return nativeResponseValue;
22442 }
22443         // void ReplyChannelRange_set_sync_complete(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, bool val);
22444 /* @internal */
22445 export function ReplyChannelRange_set_sync_complete(this_ptr: number, val: boolean): void {
22446         if(!isWasmInitialized) {
22447                 throw new Error("initializeWasm() must be awaited first!");
22448         }
22449         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_sync_complete(this_ptr, val);
22450         // debug statements here
22451 }
22452         // void ReplyChannelRange_set_short_channel_ids(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
22453 /* @internal */
22454 export function ReplyChannelRange_set_short_channel_ids(this_ptr: number, val: number): void {
22455         if(!isWasmInitialized) {
22456                 throw new Error("initializeWasm() must be awaited first!");
22457         }
22458         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_short_channel_ids(this_ptr, val);
22459         // debug statements here
22460 }
22461         // MUST_USE_RES struct LDKReplyChannelRange ReplyChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg, bool sync_complete_arg, struct LDKCVec_u64Z short_channel_ids_arg);
22462 /* @internal */
22463 export function ReplyChannelRange_new(chain_hash_arg: number, first_blocknum_arg: number, number_of_blocks_arg: number, sync_complete_arg: boolean, short_channel_ids_arg: number): number {
22464         if(!isWasmInitialized) {
22465                 throw new Error("initializeWasm() must be awaited first!");
22466         }
22467         const nativeResponseValue = wasm.TS_ReplyChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg, sync_complete_arg, short_channel_ids_arg);
22468         return nativeResponseValue;
22469 }
22470         // uintptr_t ReplyChannelRange_clone_ptr(LDKReplyChannelRange *NONNULL_PTR arg);
22471 /* @internal */
22472 export function ReplyChannelRange_clone_ptr(arg: number): number {
22473         if(!isWasmInitialized) {
22474                 throw new Error("initializeWasm() must be awaited first!");
22475         }
22476         const nativeResponseValue = wasm.TS_ReplyChannelRange_clone_ptr(arg);
22477         return nativeResponseValue;
22478 }
22479         // struct LDKReplyChannelRange ReplyChannelRange_clone(const struct LDKReplyChannelRange *NONNULL_PTR orig);
22480 /* @internal */
22481 export function ReplyChannelRange_clone(orig: number): number {
22482         if(!isWasmInitialized) {
22483                 throw new Error("initializeWasm() must be awaited first!");
22484         }
22485         const nativeResponseValue = wasm.TS_ReplyChannelRange_clone(orig);
22486         return nativeResponseValue;
22487 }
22488         // void QueryShortChannelIds_free(struct LDKQueryShortChannelIds this_obj);
22489 /* @internal */
22490 export function QueryShortChannelIds_free(this_obj: number): void {
22491         if(!isWasmInitialized) {
22492                 throw new Error("initializeWasm() must be awaited first!");
22493         }
22494         const nativeResponseValue = wasm.TS_QueryShortChannelIds_free(this_obj);
22495         // debug statements here
22496 }
22497         // const uint8_t (*QueryShortChannelIds_get_chain_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr))[32];
22498 /* @internal */
22499 export function QueryShortChannelIds_get_chain_hash(this_ptr: number): number {
22500         if(!isWasmInitialized) {
22501                 throw new Error("initializeWasm() must be awaited first!");
22502         }
22503         const nativeResponseValue = wasm.TS_QueryShortChannelIds_get_chain_hash(this_ptr);
22504         return nativeResponseValue;
22505 }
22506         // void QueryShortChannelIds_set_chain_hash(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22507 /* @internal */
22508 export function QueryShortChannelIds_set_chain_hash(this_ptr: number, val: number): void {
22509         if(!isWasmInitialized) {
22510                 throw new Error("initializeWasm() must be awaited first!");
22511         }
22512         const nativeResponseValue = wasm.TS_QueryShortChannelIds_set_chain_hash(this_ptr, val);
22513         // debug statements here
22514 }
22515         // void QueryShortChannelIds_set_short_channel_ids(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
22516 /* @internal */
22517 export function QueryShortChannelIds_set_short_channel_ids(this_ptr: number, val: number): void {
22518         if(!isWasmInitialized) {
22519                 throw new Error("initializeWasm() must be awaited first!");
22520         }
22521         const nativeResponseValue = wasm.TS_QueryShortChannelIds_set_short_channel_ids(this_ptr, val);
22522         // debug statements here
22523 }
22524         // MUST_USE_RES struct LDKQueryShortChannelIds QueryShortChannelIds_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKCVec_u64Z short_channel_ids_arg);
22525 /* @internal */
22526 export function QueryShortChannelIds_new(chain_hash_arg: number, short_channel_ids_arg: number): number {
22527         if(!isWasmInitialized) {
22528                 throw new Error("initializeWasm() must be awaited first!");
22529         }
22530         const nativeResponseValue = wasm.TS_QueryShortChannelIds_new(chain_hash_arg, short_channel_ids_arg);
22531         return nativeResponseValue;
22532 }
22533         // uintptr_t QueryShortChannelIds_clone_ptr(LDKQueryShortChannelIds *NONNULL_PTR arg);
22534 /* @internal */
22535 export function QueryShortChannelIds_clone_ptr(arg: number): number {
22536         if(!isWasmInitialized) {
22537                 throw new Error("initializeWasm() must be awaited first!");
22538         }
22539         const nativeResponseValue = wasm.TS_QueryShortChannelIds_clone_ptr(arg);
22540         return nativeResponseValue;
22541 }
22542         // struct LDKQueryShortChannelIds QueryShortChannelIds_clone(const struct LDKQueryShortChannelIds *NONNULL_PTR orig);
22543 /* @internal */
22544 export function QueryShortChannelIds_clone(orig: number): number {
22545         if(!isWasmInitialized) {
22546                 throw new Error("initializeWasm() must be awaited first!");
22547         }
22548         const nativeResponseValue = wasm.TS_QueryShortChannelIds_clone(orig);
22549         return nativeResponseValue;
22550 }
22551         // void ReplyShortChannelIdsEnd_free(struct LDKReplyShortChannelIdsEnd this_obj);
22552 /* @internal */
22553 export function ReplyShortChannelIdsEnd_free(this_obj: number): void {
22554         if(!isWasmInitialized) {
22555                 throw new Error("initializeWasm() must be awaited first!");
22556         }
22557         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_free(this_obj);
22558         // debug statements here
22559 }
22560         // const uint8_t (*ReplyShortChannelIdsEnd_get_chain_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr))[32];
22561 /* @internal */
22562 export function ReplyShortChannelIdsEnd_get_chain_hash(this_ptr: number): number {
22563         if(!isWasmInitialized) {
22564                 throw new Error("initializeWasm() must be awaited first!");
22565         }
22566         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_get_chain_hash(this_ptr);
22567         return nativeResponseValue;
22568 }
22569         // void ReplyShortChannelIdsEnd_set_chain_hash(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22570 /* @internal */
22571 export function ReplyShortChannelIdsEnd_set_chain_hash(this_ptr: number, val: number): void {
22572         if(!isWasmInitialized) {
22573                 throw new Error("initializeWasm() must be awaited first!");
22574         }
22575         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_set_chain_hash(this_ptr, val);
22576         // debug statements here
22577 }
22578         // bool ReplyShortChannelIdsEnd_get_full_information(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr);
22579 /* @internal */
22580 export function ReplyShortChannelIdsEnd_get_full_information(this_ptr: number): boolean {
22581         if(!isWasmInitialized) {
22582                 throw new Error("initializeWasm() must be awaited first!");
22583         }
22584         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_get_full_information(this_ptr);
22585         return nativeResponseValue;
22586 }
22587         // void ReplyShortChannelIdsEnd_set_full_information(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, bool val);
22588 /* @internal */
22589 export function ReplyShortChannelIdsEnd_set_full_information(this_ptr: number, val: boolean): void {
22590         if(!isWasmInitialized) {
22591                 throw new Error("initializeWasm() must be awaited first!");
22592         }
22593         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_set_full_information(this_ptr, val);
22594         // debug statements here
22595 }
22596         // MUST_USE_RES struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_new(struct LDKThirtyTwoBytes chain_hash_arg, bool full_information_arg);
22597 /* @internal */
22598 export function ReplyShortChannelIdsEnd_new(chain_hash_arg: number, full_information_arg: boolean): number {
22599         if(!isWasmInitialized) {
22600                 throw new Error("initializeWasm() must be awaited first!");
22601         }
22602         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_new(chain_hash_arg, full_information_arg);
22603         return nativeResponseValue;
22604 }
22605         // uintptr_t ReplyShortChannelIdsEnd_clone_ptr(LDKReplyShortChannelIdsEnd *NONNULL_PTR arg);
22606 /* @internal */
22607 export function ReplyShortChannelIdsEnd_clone_ptr(arg: number): number {
22608         if(!isWasmInitialized) {
22609                 throw new Error("initializeWasm() must be awaited first!");
22610         }
22611         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_clone_ptr(arg);
22612         return nativeResponseValue;
22613 }
22614         // struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_clone(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR orig);
22615 /* @internal */
22616 export function ReplyShortChannelIdsEnd_clone(orig: number): number {
22617         if(!isWasmInitialized) {
22618                 throw new Error("initializeWasm() must be awaited first!");
22619         }
22620         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_clone(orig);
22621         return nativeResponseValue;
22622 }
22623         // void GossipTimestampFilter_free(struct LDKGossipTimestampFilter this_obj);
22624 /* @internal */
22625 export function GossipTimestampFilter_free(this_obj: number): void {
22626         if(!isWasmInitialized) {
22627                 throw new Error("initializeWasm() must be awaited first!");
22628         }
22629         const nativeResponseValue = wasm.TS_GossipTimestampFilter_free(this_obj);
22630         // debug statements here
22631 }
22632         // const uint8_t (*GossipTimestampFilter_get_chain_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr))[32];
22633 /* @internal */
22634 export function GossipTimestampFilter_get_chain_hash(this_ptr: number): number {
22635         if(!isWasmInitialized) {
22636                 throw new Error("initializeWasm() must be awaited first!");
22637         }
22638         const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_chain_hash(this_ptr);
22639         return nativeResponseValue;
22640 }
22641         // void GossipTimestampFilter_set_chain_hash(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22642 /* @internal */
22643 export function GossipTimestampFilter_set_chain_hash(this_ptr: number, val: number): void {
22644         if(!isWasmInitialized) {
22645                 throw new Error("initializeWasm() must be awaited first!");
22646         }
22647         const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_chain_hash(this_ptr, val);
22648         // debug statements here
22649 }
22650         // uint32_t GossipTimestampFilter_get_first_timestamp(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
22651 /* @internal */
22652 export function GossipTimestampFilter_get_first_timestamp(this_ptr: number): number {
22653         if(!isWasmInitialized) {
22654                 throw new Error("initializeWasm() must be awaited first!");
22655         }
22656         const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_first_timestamp(this_ptr);
22657         return nativeResponseValue;
22658 }
22659         // void GossipTimestampFilter_set_first_timestamp(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
22660 /* @internal */
22661 export function GossipTimestampFilter_set_first_timestamp(this_ptr: number, val: number): void {
22662         if(!isWasmInitialized) {
22663                 throw new Error("initializeWasm() must be awaited first!");
22664         }
22665         const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_first_timestamp(this_ptr, val);
22666         // debug statements here
22667 }
22668         // uint32_t GossipTimestampFilter_get_timestamp_range(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
22669 /* @internal */
22670 export function GossipTimestampFilter_get_timestamp_range(this_ptr: number): number {
22671         if(!isWasmInitialized) {
22672                 throw new Error("initializeWasm() must be awaited first!");
22673         }
22674         const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_timestamp_range(this_ptr);
22675         return nativeResponseValue;
22676 }
22677         // void GossipTimestampFilter_set_timestamp_range(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
22678 /* @internal */
22679 export function GossipTimestampFilter_set_timestamp_range(this_ptr: number, val: number): void {
22680         if(!isWasmInitialized) {
22681                 throw new Error("initializeWasm() must be awaited first!");
22682         }
22683         const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_timestamp_range(this_ptr, val);
22684         // debug statements here
22685 }
22686         // MUST_USE_RES struct LDKGossipTimestampFilter GossipTimestampFilter_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_timestamp_arg, uint32_t timestamp_range_arg);
22687 /* @internal */
22688 export function GossipTimestampFilter_new(chain_hash_arg: number, first_timestamp_arg: number, timestamp_range_arg: number): number {
22689         if(!isWasmInitialized) {
22690                 throw new Error("initializeWasm() must be awaited first!");
22691         }
22692         const nativeResponseValue = wasm.TS_GossipTimestampFilter_new(chain_hash_arg, first_timestamp_arg, timestamp_range_arg);
22693         return nativeResponseValue;
22694 }
22695         // uintptr_t GossipTimestampFilter_clone_ptr(LDKGossipTimestampFilter *NONNULL_PTR arg);
22696 /* @internal */
22697 export function GossipTimestampFilter_clone_ptr(arg: number): number {
22698         if(!isWasmInitialized) {
22699                 throw new Error("initializeWasm() must be awaited first!");
22700         }
22701         const nativeResponseValue = wasm.TS_GossipTimestampFilter_clone_ptr(arg);
22702         return nativeResponseValue;
22703 }
22704         // struct LDKGossipTimestampFilter GossipTimestampFilter_clone(const struct LDKGossipTimestampFilter *NONNULL_PTR orig);
22705 /* @internal */
22706 export function GossipTimestampFilter_clone(orig: number): number {
22707         if(!isWasmInitialized) {
22708                 throw new Error("initializeWasm() must be awaited first!");
22709         }
22710         const nativeResponseValue = wasm.TS_GossipTimestampFilter_clone(orig);
22711         return nativeResponseValue;
22712 }
22713         // void ErrorAction_free(struct LDKErrorAction this_ptr);
22714 /* @internal */
22715 export function ErrorAction_free(this_ptr: number): void {
22716         if(!isWasmInitialized) {
22717                 throw new Error("initializeWasm() must be awaited first!");
22718         }
22719         const nativeResponseValue = wasm.TS_ErrorAction_free(this_ptr);
22720         // debug statements here
22721 }
22722         // uintptr_t ErrorAction_clone_ptr(LDKErrorAction *NONNULL_PTR arg);
22723 /* @internal */
22724 export function ErrorAction_clone_ptr(arg: number): number {
22725         if(!isWasmInitialized) {
22726                 throw new Error("initializeWasm() must be awaited first!");
22727         }
22728         const nativeResponseValue = wasm.TS_ErrorAction_clone_ptr(arg);
22729         return nativeResponseValue;
22730 }
22731         // struct LDKErrorAction ErrorAction_clone(const struct LDKErrorAction *NONNULL_PTR orig);
22732 /* @internal */
22733 export function ErrorAction_clone(orig: number): number {
22734         if(!isWasmInitialized) {
22735                 throw new Error("initializeWasm() must be awaited first!");
22736         }
22737         const nativeResponseValue = wasm.TS_ErrorAction_clone(orig);
22738         return nativeResponseValue;
22739 }
22740         // struct LDKErrorAction ErrorAction_disconnect_peer(struct LDKErrorMessage msg);
22741 /* @internal */
22742 export function ErrorAction_disconnect_peer(msg: number): number {
22743         if(!isWasmInitialized) {
22744                 throw new Error("initializeWasm() must be awaited first!");
22745         }
22746         const nativeResponseValue = wasm.TS_ErrorAction_disconnect_peer(msg);
22747         return nativeResponseValue;
22748 }
22749         // struct LDKErrorAction ErrorAction_ignore_error(void);
22750 /* @internal */
22751 export function ErrorAction_ignore_error(): number {
22752         if(!isWasmInitialized) {
22753                 throw new Error("initializeWasm() must be awaited first!");
22754         }
22755         const nativeResponseValue = wasm.TS_ErrorAction_ignore_error();
22756         return nativeResponseValue;
22757 }
22758         // struct LDKErrorAction ErrorAction_ignore_and_log(enum LDKLevel a);
22759 /* @internal */
22760 export function ErrorAction_ignore_and_log(a: Level): number {
22761         if(!isWasmInitialized) {
22762                 throw new Error("initializeWasm() must be awaited first!");
22763         }
22764         const nativeResponseValue = wasm.TS_ErrorAction_ignore_and_log(a);
22765         return nativeResponseValue;
22766 }
22767         // struct LDKErrorAction ErrorAction_ignore_duplicate_gossip(void);
22768 /* @internal */
22769 export function ErrorAction_ignore_duplicate_gossip(): number {
22770         if(!isWasmInitialized) {
22771                 throw new Error("initializeWasm() must be awaited first!");
22772         }
22773         const nativeResponseValue = wasm.TS_ErrorAction_ignore_duplicate_gossip();
22774         return nativeResponseValue;
22775 }
22776         // struct LDKErrorAction ErrorAction_send_error_message(struct LDKErrorMessage msg);
22777 /* @internal */
22778 export function ErrorAction_send_error_message(msg: number): number {
22779         if(!isWasmInitialized) {
22780                 throw new Error("initializeWasm() must be awaited first!");
22781         }
22782         const nativeResponseValue = wasm.TS_ErrorAction_send_error_message(msg);
22783         return nativeResponseValue;
22784 }
22785         // struct LDKErrorAction ErrorAction_send_warning_message(struct LDKWarningMessage msg, enum LDKLevel log_level);
22786 /* @internal */
22787 export function ErrorAction_send_warning_message(msg: number, log_level: Level): number {
22788         if(!isWasmInitialized) {
22789                 throw new Error("initializeWasm() must be awaited first!");
22790         }
22791         const nativeResponseValue = wasm.TS_ErrorAction_send_warning_message(msg, log_level);
22792         return nativeResponseValue;
22793 }
22794         // void LightningError_free(struct LDKLightningError this_obj);
22795 /* @internal */
22796 export function LightningError_free(this_obj: number): void {
22797         if(!isWasmInitialized) {
22798                 throw new Error("initializeWasm() must be awaited first!");
22799         }
22800         const nativeResponseValue = wasm.TS_LightningError_free(this_obj);
22801         // debug statements here
22802 }
22803         // struct LDKStr LightningError_get_err(const struct LDKLightningError *NONNULL_PTR this_ptr);
22804 /* @internal */
22805 export function LightningError_get_err(this_ptr: number): number {
22806         if(!isWasmInitialized) {
22807                 throw new Error("initializeWasm() must be awaited first!");
22808         }
22809         const nativeResponseValue = wasm.TS_LightningError_get_err(this_ptr);
22810         return nativeResponseValue;
22811 }
22812         // void LightningError_set_err(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKStr val);
22813 /* @internal */
22814 export function LightningError_set_err(this_ptr: number, val: number): void {
22815         if(!isWasmInitialized) {
22816                 throw new Error("initializeWasm() must be awaited first!");
22817         }
22818         const nativeResponseValue = wasm.TS_LightningError_set_err(this_ptr, val);
22819         // debug statements here
22820 }
22821         // struct LDKErrorAction LightningError_get_action(const struct LDKLightningError *NONNULL_PTR this_ptr);
22822 /* @internal */
22823 export function LightningError_get_action(this_ptr: number): number {
22824         if(!isWasmInitialized) {
22825                 throw new Error("initializeWasm() must be awaited first!");
22826         }
22827         const nativeResponseValue = wasm.TS_LightningError_get_action(this_ptr);
22828         return nativeResponseValue;
22829 }
22830         // void LightningError_set_action(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKErrorAction val);
22831 /* @internal */
22832 export function LightningError_set_action(this_ptr: number, val: number): void {
22833         if(!isWasmInitialized) {
22834                 throw new Error("initializeWasm() must be awaited first!");
22835         }
22836         const nativeResponseValue = wasm.TS_LightningError_set_action(this_ptr, val);
22837         // debug statements here
22838 }
22839         // MUST_USE_RES struct LDKLightningError LightningError_new(struct LDKStr err_arg, struct LDKErrorAction action_arg);
22840 /* @internal */
22841 export function LightningError_new(err_arg: number, action_arg: number): number {
22842         if(!isWasmInitialized) {
22843                 throw new Error("initializeWasm() must be awaited first!");
22844         }
22845         const nativeResponseValue = wasm.TS_LightningError_new(err_arg, action_arg);
22846         return nativeResponseValue;
22847 }
22848         // uintptr_t LightningError_clone_ptr(LDKLightningError *NONNULL_PTR arg);
22849 /* @internal */
22850 export function LightningError_clone_ptr(arg: number): number {
22851         if(!isWasmInitialized) {
22852                 throw new Error("initializeWasm() must be awaited first!");
22853         }
22854         const nativeResponseValue = wasm.TS_LightningError_clone_ptr(arg);
22855         return nativeResponseValue;
22856 }
22857         // struct LDKLightningError LightningError_clone(const struct LDKLightningError *NONNULL_PTR orig);
22858 /* @internal */
22859 export function LightningError_clone(orig: number): number {
22860         if(!isWasmInitialized) {
22861                 throw new Error("initializeWasm() must be awaited first!");
22862         }
22863         const nativeResponseValue = wasm.TS_LightningError_clone(orig);
22864         return nativeResponseValue;
22865 }
22866         // void CommitmentUpdate_free(struct LDKCommitmentUpdate this_obj);
22867 /* @internal */
22868 export function CommitmentUpdate_free(this_obj: number): void {
22869         if(!isWasmInitialized) {
22870                 throw new Error("initializeWasm() must be awaited first!");
22871         }
22872         const nativeResponseValue = wasm.TS_CommitmentUpdate_free(this_obj);
22873         // debug statements here
22874 }
22875         // struct LDKCVec_UpdateAddHTLCZ CommitmentUpdate_get_update_add_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
22876 /* @internal */
22877 export function CommitmentUpdate_get_update_add_htlcs(this_ptr: number): number {
22878         if(!isWasmInitialized) {
22879                 throw new Error("initializeWasm() must be awaited first!");
22880         }
22881         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_add_htlcs(this_ptr);
22882         return nativeResponseValue;
22883 }
22884         // void CommitmentUpdate_set_update_add_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateAddHTLCZ val);
22885 /* @internal */
22886 export function CommitmentUpdate_set_update_add_htlcs(this_ptr: number, val: number): void {
22887         if(!isWasmInitialized) {
22888                 throw new Error("initializeWasm() must be awaited first!");
22889         }
22890         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_add_htlcs(this_ptr, val);
22891         // debug statements here
22892 }
22893         // struct LDKCVec_UpdateFulfillHTLCZ CommitmentUpdate_get_update_fulfill_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
22894 /* @internal */
22895 export function CommitmentUpdate_get_update_fulfill_htlcs(this_ptr: number): number {
22896         if(!isWasmInitialized) {
22897                 throw new Error("initializeWasm() must be awaited first!");
22898         }
22899         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fulfill_htlcs(this_ptr);
22900         return nativeResponseValue;
22901 }
22902         // void CommitmentUpdate_set_update_fulfill_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFulfillHTLCZ val);
22903 /* @internal */
22904 export function CommitmentUpdate_set_update_fulfill_htlcs(this_ptr: number, val: number): void {
22905         if(!isWasmInitialized) {
22906                 throw new Error("initializeWasm() must be awaited first!");
22907         }
22908         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fulfill_htlcs(this_ptr, val);
22909         // debug statements here
22910 }
22911         // struct LDKCVec_UpdateFailHTLCZ CommitmentUpdate_get_update_fail_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
22912 /* @internal */
22913 export function CommitmentUpdate_get_update_fail_htlcs(this_ptr: number): number {
22914         if(!isWasmInitialized) {
22915                 throw new Error("initializeWasm() must be awaited first!");
22916         }
22917         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fail_htlcs(this_ptr);
22918         return nativeResponseValue;
22919 }
22920         // void CommitmentUpdate_set_update_fail_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailHTLCZ val);
22921 /* @internal */
22922 export function CommitmentUpdate_set_update_fail_htlcs(this_ptr: number, val: number): void {
22923         if(!isWasmInitialized) {
22924                 throw new Error("initializeWasm() must be awaited first!");
22925         }
22926         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fail_htlcs(this_ptr, val);
22927         // debug statements here
22928 }
22929         // struct LDKCVec_UpdateFailMalformedHTLCZ CommitmentUpdate_get_update_fail_malformed_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
22930 /* @internal */
22931 export function CommitmentUpdate_get_update_fail_malformed_htlcs(this_ptr: number): number {
22932         if(!isWasmInitialized) {
22933                 throw new Error("initializeWasm() must be awaited first!");
22934         }
22935         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fail_malformed_htlcs(this_ptr);
22936         return nativeResponseValue;
22937 }
22938         // void CommitmentUpdate_set_update_fail_malformed_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailMalformedHTLCZ val);
22939 /* @internal */
22940 export function CommitmentUpdate_set_update_fail_malformed_htlcs(this_ptr: number, val: number): void {
22941         if(!isWasmInitialized) {
22942                 throw new Error("initializeWasm() must be awaited first!");
22943         }
22944         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fail_malformed_htlcs(this_ptr, val);
22945         // debug statements here
22946 }
22947         // struct LDKUpdateFee CommitmentUpdate_get_update_fee(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
22948 /* @internal */
22949 export function CommitmentUpdate_get_update_fee(this_ptr: number): number {
22950         if(!isWasmInitialized) {
22951                 throw new Error("initializeWasm() must be awaited first!");
22952         }
22953         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fee(this_ptr);
22954         return nativeResponseValue;
22955 }
22956         // void CommitmentUpdate_set_update_fee(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKUpdateFee val);
22957 /* @internal */
22958 export function CommitmentUpdate_set_update_fee(this_ptr: number, val: number): void {
22959         if(!isWasmInitialized) {
22960                 throw new Error("initializeWasm() must be awaited first!");
22961         }
22962         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fee(this_ptr, val);
22963         // debug statements here
22964 }
22965         // struct LDKCommitmentSigned CommitmentUpdate_get_commitment_signed(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
22966 /* @internal */
22967 export function CommitmentUpdate_get_commitment_signed(this_ptr: number): number {
22968         if(!isWasmInitialized) {
22969                 throw new Error("initializeWasm() must be awaited first!");
22970         }
22971         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_commitment_signed(this_ptr);
22972         return nativeResponseValue;
22973 }
22974         // void CommitmentUpdate_set_commitment_signed(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCommitmentSigned val);
22975 /* @internal */
22976 export function CommitmentUpdate_set_commitment_signed(this_ptr: number, val: number): void {
22977         if(!isWasmInitialized) {
22978                 throw new Error("initializeWasm() must be awaited first!");
22979         }
22980         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_commitment_signed(this_ptr, val);
22981         // debug statements here
22982 }
22983         // MUST_USE_RES struct LDKCommitmentUpdate CommitmentUpdate_new(struct LDKCVec_UpdateAddHTLCZ update_add_htlcs_arg, struct LDKCVec_UpdateFulfillHTLCZ update_fulfill_htlcs_arg, struct LDKCVec_UpdateFailHTLCZ update_fail_htlcs_arg, struct LDKCVec_UpdateFailMalformedHTLCZ update_fail_malformed_htlcs_arg, struct LDKUpdateFee update_fee_arg, struct LDKCommitmentSigned commitment_signed_arg);
22984 /* @internal */
22985 export function CommitmentUpdate_new(update_add_htlcs_arg: number, update_fulfill_htlcs_arg: number, update_fail_htlcs_arg: number, update_fail_malformed_htlcs_arg: number, update_fee_arg: number, commitment_signed_arg: number): number {
22986         if(!isWasmInitialized) {
22987                 throw new Error("initializeWasm() must be awaited first!");
22988         }
22989         const nativeResponseValue = wasm.TS_CommitmentUpdate_new(update_add_htlcs_arg, update_fulfill_htlcs_arg, update_fail_htlcs_arg, update_fail_malformed_htlcs_arg, update_fee_arg, commitment_signed_arg);
22990         return nativeResponseValue;
22991 }
22992         // uintptr_t CommitmentUpdate_clone_ptr(LDKCommitmentUpdate *NONNULL_PTR arg);
22993 /* @internal */
22994 export function CommitmentUpdate_clone_ptr(arg: number): number {
22995         if(!isWasmInitialized) {
22996                 throw new Error("initializeWasm() must be awaited first!");
22997         }
22998         const nativeResponseValue = wasm.TS_CommitmentUpdate_clone_ptr(arg);
22999         return nativeResponseValue;
23000 }
23001         // struct LDKCommitmentUpdate CommitmentUpdate_clone(const struct LDKCommitmentUpdate *NONNULL_PTR orig);
23002 /* @internal */
23003 export function CommitmentUpdate_clone(orig: number): number {
23004         if(!isWasmInitialized) {
23005                 throw new Error("initializeWasm() must be awaited first!");
23006         }
23007         const nativeResponseValue = wasm.TS_CommitmentUpdate_clone(orig);
23008         return nativeResponseValue;
23009 }
23010         // void ChannelMessageHandler_free(struct LDKChannelMessageHandler this_ptr);
23011 /* @internal */
23012 export function ChannelMessageHandler_free(this_ptr: number): void {
23013         if(!isWasmInitialized) {
23014                 throw new Error("initializeWasm() must be awaited first!");
23015         }
23016         const nativeResponseValue = wasm.TS_ChannelMessageHandler_free(this_ptr);
23017         // debug statements here
23018 }
23019         // void RoutingMessageHandler_free(struct LDKRoutingMessageHandler this_ptr);
23020 /* @internal */
23021 export function RoutingMessageHandler_free(this_ptr: number): void {
23022         if(!isWasmInitialized) {
23023                 throw new Error("initializeWasm() must be awaited first!");
23024         }
23025         const nativeResponseValue = wasm.TS_RoutingMessageHandler_free(this_ptr);
23026         // debug statements here
23027 }
23028         // struct LDKCVec_u8Z AcceptChannel_write(const struct LDKAcceptChannel *NONNULL_PTR obj);
23029 /* @internal */
23030 export function AcceptChannel_write(obj: number): number {
23031         if(!isWasmInitialized) {
23032                 throw new Error("initializeWasm() must be awaited first!");
23033         }
23034         const nativeResponseValue = wasm.TS_AcceptChannel_write(obj);
23035         return nativeResponseValue;
23036 }
23037         // struct LDKCResult_AcceptChannelDecodeErrorZ AcceptChannel_read(struct LDKu8slice ser);
23038 /* @internal */
23039 export function AcceptChannel_read(ser: number): number {
23040         if(!isWasmInitialized) {
23041                 throw new Error("initializeWasm() must be awaited first!");
23042         }
23043         const nativeResponseValue = wasm.TS_AcceptChannel_read(ser);
23044         return nativeResponseValue;
23045 }
23046         // struct LDKCVec_u8Z AnnouncementSignatures_write(const struct LDKAnnouncementSignatures *NONNULL_PTR obj);
23047 /* @internal */
23048 export function AnnouncementSignatures_write(obj: number): number {
23049         if(!isWasmInitialized) {
23050                 throw new Error("initializeWasm() must be awaited first!");
23051         }
23052         const nativeResponseValue = wasm.TS_AnnouncementSignatures_write(obj);
23053         return nativeResponseValue;
23054 }
23055         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ AnnouncementSignatures_read(struct LDKu8slice ser);
23056 /* @internal */
23057 export function AnnouncementSignatures_read(ser: number): number {
23058         if(!isWasmInitialized) {
23059                 throw new Error("initializeWasm() must be awaited first!");
23060         }
23061         const nativeResponseValue = wasm.TS_AnnouncementSignatures_read(ser);
23062         return nativeResponseValue;
23063 }
23064         // struct LDKCVec_u8Z ChannelReestablish_write(const struct LDKChannelReestablish *NONNULL_PTR obj);
23065 /* @internal */
23066 export function ChannelReestablish_write(obj: number): number {
23067         if(!isWasmInitialized) {
23068                 throw new Error("initializeWasm() must be awaited first!");
23069         }
23070         const nativeResponseValue = wasm.TS_ChannelReestablish_write(obj);
23071         return nativeResponseValue;
23072 }
23073         // struct LDKCResult_ChannelReestablishDecodeErrorZ ChannelReestablish_read(struct LDKu8slice ser);
23074 /* @internal */
23075 export function ChannelReestablish_read(ser: number): number {
23076         if(!isWasmInitialized) {
23077                 throw new Error("initializeWasm() must be awaited first!");
23078         }
23079         const nativeResponseValue = wasm.TS_ChannelReestablish_read(ser);
23080         return nativeResponseValue;
23081 }
23082         // struct LDKCVec_u8Z ClosingSigned_write(const struct LDKClosingSigned *NONNULL_PTR obj);
23083 /* @internal */
23084 export function ClosingSigned_write(obj: number): number {
23085         if(!isWasmInitialized) {
23086                 throw new Error("initializeWasm() must be awaited first!");
23087         }
23088         const nativeResponseValue = wasm.TS_ClosingSigned_write(obj);
23089         return nativeResponseValue;
23090 }
23091         // struct LDKCResult_ClosingSignedDecodeErrorZ ClosingSigned_read(struct LDKu8slice ser);
23092 /* @internal */
23093 export function ClosingSigned_read(ser: number): number {
23094         if(!isWasmInitialized) {
23095                 throw new Error("initializeWasm() must be awaited first!");
23096         }
23097         const nativeResponseValue = wasm.TS_ClosingSigned_read(ser);
23098         return nativeResponseValue;
23099 }
23100         // struct LDKCVec_u8Z ClosingSignedFeeRange_write(const struct LDKClosingSignedFeeRange *NONNULL_PTR obj);
23101 /* @internal */
23102 export function ClosingSignedFeeRange_write(obj: number): number {
23103         if(!isWasmInitialized) {
23104                 throw new Error("initializeWasm() must be awaited first!");
23105         }
23106         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_write(obj);
23107         return nativeResponseValue;
23108 }
23109         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ ClosingSignedFeeRange_read(struct LDKu8slice ser);
23110 /* @internal */
23111 export function ClosingSignedFeeRange_read(ser: number): number {
23112         if(!isWasmInitialized) {
23113                 throw new Error("initializeWasm() must be awaited first!");
23114         }
23115         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_read(ser);
23116         return nativeResponseValue;
23117 }
23118         // struct LDKCVec_u8Z CommitmentSigned_write(const struct LDKCommitmentSigned *NONNULL_PTR obj);
23119 /* @internal */
23120 export function CommitmentSigned_write(obj: number): number {
23121         if(!isWasmInitialized) {
23122                 throw new Error("initializeWasm() must be awaited first!");
23123         }
23124         const nativeResponseValue = wasm.TS_CommitmentSigned_write(obj);
23125         return nativeResponseValue;
23126 }
23127         // struct LDKCResult_CommitmentSignedDecodeErrorZ CommitmentSigned_read(struct LDKu8slice ser);
23128 /* @internal */
23129 export function CommitmentSigned_read(ser: number): number {
23130         if(!isWasmInitialized) {
23131                 throw new Error("initializeWasm() must be awaited first!");
23132         }
23133         const nativeResponseValue = wasm.TS_CommitmentSigned_read(ser);
23134         return nativeResponseValue;
23135 }
23136         // struct LDKCVec_u8Z FundingCreated_write(const struct LDKFundingCreated *NONNULL_PTR obj);
23137 /* @internal */
23138 export function FundingCreated_write(obj: number): number {
23139         if(!isWasmInitialized) {
23140                 throw new Error("initializeWasm() must be awaited first!");
23141         }
23142         const nativeResponseValue = wasm.TS_FundingCreated_write(obj);
23143         return nativeResponseValue;
23144 }
23145         // struct LDKCResult_FundingCreatedDecodeErrorZ FundingCreated_read(struct LDKu8slice ser);
23146 /* @internal */
23147 export function FundingCreated_read(ser: number): number {
23148         if(!isWasmInitialized) {
23149                 throw new Error("initializeWasm() must be awaited first!");
23150         }
23151         const nativeResponseValue = wasm.TS_FundingCreated_read(ser);
23152         return nativeResponseValue;
23153 }
23154         // struct LDKCVec_u8Z FundingSigned_write(const struct LDKFundingSigned *NONNULL_PTR obj);
23155 /* @internal */
23156 export function FundingSigned_write(obj: number): number {
23157         if(!isWasmInitialized) {
23158                 throw new Error("initializeWasm() must be awaited first!");
23159         }
23160         const nativeResponseValue = wasm.TS_FundingSigned_write(obj);
23161         return nativeResponseValue;
23162 }
23163         // struct LDKCResult_FundingSignedDecodeErrorZ FundingSigned_read(struct LDKu8slice ser);
23164 /* @internal */
23165 export function FundingSigned_read(ser: number): number {
23166         if(!isWasmInitialized) {
23167                 throw new Error("initializeWasm() must be awaited first!");
23168         }
23169         const nativeResponseValue = wasm.TS_FundingSigned_read(ser);
23170         return nativeResponseValue;
23171 }
23172         // struct LDKCVec_u8Z FundingLocked_write(const struct LDKFundingLocked *NONNULL_PTR obj);
23173 /* @internal */
23174 export function FundingLocked_write(obj: number): number {
23175         if(!isWasmInitialized) {
23176                 throw new Error("initializeWasm() must be awaited first!");
23177         }
23178         const nativeResponseValue = wasm.TS_FundingLocked_write(obj);
23179         return nativeResponseValue;
23180 }
23181         // struct LDKCResult_FundingLockedDecodeErrorZ FundingLocked_read(struct LDKu8slice ser);
23182 /* @internal */
23183 export function FundingLocked_read(ser: number): number {
23184         if(!isWasmInitialized) {
23185                 throw new Error("initializeWasm() must be awaited first!");
23186         }
23187         const nativeResponseValue = wasm.TS_FundingLocked_read(ser);
23188         return nativeResponseValue;
23189 }
23190         // struct LDKCVec_u8Z Init_write(const struct LDKInit *NONNULL_PTR obj);
23191 /* @internal */
23192 export function Init_write(obj: number): number {
23193         if(!isWasmInitialized) {
23194                 throw new Error("initializeWasm() must be awaited first!");
23195         }
23196         const nativeResponseValue = wasm.TS_Init_write(obj);
23197         return nativeResponseValue;
23198 }
23199         // struct LDKCResult_InitDecodeErrorZ Init_read(struct LDKu8slice ser);
23200 /* @internal */
23201 export function Init_read(ser: number): number {
23202         if(!isWasmInitialized) {
23203                 throw new Error("initializeWasm() must be awaited first!");
23204         }
23205         const nativeResponseValue = wasm.TS_Init_read(ser);
23206         return nativeResponseValue;
23207 }
23208         // struct LDKCVec_u8Z OpenChannel_write(const struct LDKOpenChannel *NONNULL_PTR obj);
23209 /* @internal */
23210 export function OpenChannel_write(obj: number): number {
23211         if(!isWasmInitialized) {
23212                 throw new Error("initializeWasm() must be awaited first!");
23213         }
23214         const nativeResponseValue = wasm.TS_OpenChannel_write(obj);
23215         return nativeResponseValue;
23216 }
23217         // struct LDKCResult_OpenChannelDecodeErrorZ OpenChannel_read(struct LDKu8slice ser);
23218 /* @internal */
23219 export function OpenChannel_read(ser: number): number {
23220         if(!isWasmInitialized) {
23221                 throw new Error("initializeWasm() must be awaited first!");
23222         }
23223         const nativeResponseValue = wasm.TS_OpenChannel_read(ser);
23224         return nativeResponseValue;
23225 }
23226         // struct LDKCVec_u8Z RevokeAndACK_write(const struct LDKRevokeAndACK *NONNULL_PTR obj);
23227 /* @internal */
23228 export function RevokeAndACK_write(obj: number): number {
23229         if(!isWasmInitialized) {
23230                 throw new Error("initializeWasm() must be awaited first!");
23231         }
23232         const nativeResponseValue = wasm.TS_RevokeAndACK_write(obj);
23233         return nativeResponseValue;
23234 }
23235         // struct LDKCResult_RevokeAndACKDecodeErrorZ RevokeAndACK_read(struct LDKu8slice ser);
23236 /* @internal */
23237 export function RevokeAndACK_read(ser: number): number {
23238         if(!isWasmInitialized) {
23239                 throw new Error("initializeWasm() must be awaited first!");
23240         }
23241         const nativeResponseValue = wasm.TS_RevokeAndACK_read(ser);
23242         return nativeResponseValue;
23243 }
23244         // struct LDKCVec_u8Z Shutdown_write(const struct LDKShutdown *NONNULL_PTR obj);
23245 /* @internal */
23246 export function Shutdown_write(obj: number): number {
23247         if(!isWasmInitialized) {
23248                 throw new Error("initializeWasm() must be awaited first!");
23249         }
23250         const nativeResponseValue = wasm.TS_Shutdown_write(obj);
23251         return nativeResponseValue;
23252 }
23253         // struct LDKCResult_ShutdownDecodeErrorZ Shutdown_read(struct LDKu8slice ser);
23254 /* @internal */
23255 export function Shutdown_read(ser: number): number {
23256         if(!isWasmInitialized) {
23257                 throw new Error("initializeWasm() must be awaited first!");
23258         }
23259         const nativeResponseValue = wasm.TS_Shutdown_read(ser);
23260         return nativeResponseValue;
23261 }
23262         // struct LDKCVec_u8Z UpdateFailHTLC_write(const struct LDKUpdateFailHTLC *NONNULL_PTR obj);
23263 /* @internal */
23264 export function UpdateFailHTLC_write(obj: number): number {
23265         if(!isWasmInitialized) {
23266                 throw new Error("initializeWasm() must be awaited first!");
23267         }
23268         const nativeResponseValue = wasm.TS_UpdateFailHTLC_write(obj);
23269         return nativeResponseValue;
23270 }
23271         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ UpdateFailHTLC_read(struct LDKu8slice ser);
23272 /* @internal */
23273 export function UpdateFailHTLC_read(ser: number): number {
23274         if(!isWasmInitialized) {
23275                 throw new Error("initializeWasm() must be awaited first!");
23276         }
23277         const nativeResponseValue = wasm.TS_UpdateFailHTLC_read(ser);
23278         return nativeResponseValue;
23279 }
23280         // struct LDKCVec_u8Z UpdateFailMalformedHTLC_write(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR obj);
23281 /* @internal */
23282 export function UpdateFailMalformedHTLC_write(obj: number): number {
23283         if(!isWasmInitialized) {
23284                 throw new Error("initializeWasm() must be awaited first!");
23285         }
23286         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_write(obj);
23287         return nativeResponseValue;
23288 }
23289         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ UpdateFailMalformedHTLC_read(struct LDKu8slice ser);
23290 /* @internal */
23291 export function UpdateFailMalformedHTLC_read(ser: number): number {
23292         if(!isWasmInitialized) {
23293                 throw new Error("initializeWasm() must be awaited first!");
23294         }
23295         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_read(ser);
23296         return nativeResponseValue;
23297 }
23298         // struct LDKCVec_u8Z UpdateFee_write(const struct LDKUpdateFee *NONNULL_PTR obj);
23299 /* @internal */
23300 export function UpdateFee_write(obj: number): number {
23301         if(!isWasmInitialized) {
23302                 throw new Error("initializeWasm() must be awaited first!");
23303         }
23304         const nativeResponseValue = wasm.TS_UpdateFee_write(obj);
23305         return nativeResponseValue;
23306 }
23307         // struct LDKCResult_UpdateFeeDecodeErrorZ UpdateFee_read(struct LDKu8slice ser);
23308 /* @internal */
23309 export function UpdateFee_read(ser: number): number {
23310         if(!isWasmInitialized) {
23311                 throw new Error("initializeWasm() must be awaited first!");
23312         }
23313         const nativeResponseValue = wasm.TS_UpdateFee_read(ser);
23314         return nativeResponseValue;
23315 }
23316         // struct LDKCVec_u8Z UpdateFulfillHTLC_write(const struct LDKUpdateFulfillHTLC *NONNULL_PTR obj);
23317 /* @internal */
23318 export function UpdateFulfillHTLC_write(obj: number): number {
23319         if(!isWasmInitialized) {
23320                 throw new Error("initializeWasm() must be awaited first!");
23321         }
23322         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_write(obj);
23323         return nativeResponseValue;
23324 }
23325         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ UpdateFulfillHTLC_read(struct LDKu8slice ser);
23326 /* @internal */
23327 export function UpdateFulfillHTLC_read(ser: number): number {
23328         if(!isWasmInitialized) {
23329                 throw new Error("initializeWasm() must be awaited first!");
23330         }
23331         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_read(ser);
23332         return nativeResponseValue;
23333 }
23334         // struct LDKCVec_u8Z UpdateAddHTLC_write(const struct LDKUpdateAddHTLC *NONNULL_PTR obj);
23335 /* @internal */
23336 export function UpdateAddHTLC_write(obj: number): number {
23337         if(!isWasmInitialized) {
23338                 throw new Error("initializeWasm() must be awaited first!");
23339         }
23340         const nativeResponseValue = wasm.TS_UpdateAddHTLC_write(obj);
23341         return nativeResponseValue;
23342 }
23343         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ UpdateAddHTLC_read(struct LDKu8slice ser);
23344 /* @internal */
23345 export function UpdateAddHTLC_read(ser: number): number {
23346         if(!isWasmInitialized) {
23347                 throw new Error("initializeWasm() must be awaited first!");
23348         }
23349         const nativeResponseValue = wasm.TS_UpdateAddHTLC_read(ser);
23350         return nativeResponseValue;
23351 }
23352         // struct LDKCVec_u8Z Ping_write(const struct LDKPing *NONNULL_PTR obj);
23353 /* @internal */
23354 export function Ping_write(obj: number): number {
23355         if(!isWasmInitialized) {
23356                 throw new Error("initializeWasm() must be awaited first!");
23357         }
23358         const nativeResponseValue = wasm.TS_Ping_write(obj);
23359         return nativeResponseValue;
23360 }
23361         // struct LDKCResult_PingDecodeErrorZ Ping_read(struct LDKu8slice ser);
23362 /* @internal */
23363 export function Ping_read(ser: number): number {
23364         if(!isWasmInitialized) {
23365                 throw new Error("initializeWasm() must be awaited first!");
23366         }
23367         const nativeResponseValue = wasm.TS_Ping_read(ser);
23368         return nativeResponseValue;
23369 }
23370         // struct LDKCVec_u8Z Pong_write(const struct LDKPong *NONNULL_PTR obj);
23371 /* @internal */
23372 export function Pong_write(obj: number): number {
23373         if(!isWasmInitialized) {
23374                 throw new Error("initializeWasm() must be awaited first!");
23375         }
23376         const nativeResponseValue = wasm.TS_Pong_write(obj);
23377         return nativeResponseValue;
23378 }
23379         // struct LDKCResult_PongDecodeErrorZ Pong_read(struct LDKu8slice ser);
23380 /* @internal */
23381 export function Pong_read(ser: number): number {
23382         if(!isWasmInitialized) {
23383                 throw new Error("initializeWasm() must be awaited first!");
23384         }
23385         const nativeResponseValue = wasm.TS_Pong_read(ser);
23386         return nativeResponseValue;
23387 }
23388         // struct LDKCVec_u8Z UnsignedChannelAnnouncement_write(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR obj);
23389 /* @internal */
23390 export function UnsignedChannelAnnouncement_write(obj: number): number {
23391         if(!isWasmInitialized) {
23392                 throw new Error("initializeWasm() must be awaited first!");
23393         }
23394         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_write(obj);
23395         return nativeResponseValue;
23396 }
23397         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ UnsignedChannelAnnouncement_read(struct LDKu8slice ser);
23398 /* @internal */
23399 export function UnsignedChannelAnnouncement_read(ser: number): number {
23400         if(!isWasmInitialized) {
23401                 throw new Error("initializeWasm() must be awaited first!");
23402         }
23403         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_read(ser);
23404         return nativeResponseValue;
23405 }
23406         // struct LDKCVec_u8Z ChannelAnnouncement_write(const struct LDKChannelAnnouncement *NONNULL_PTR obj);
23407 /* @internal */
23408 export function ChannelAnnouncement_write(obj: number): number {
23409         if(!isWasmInitialized) {
23410                 throw new Error("initializeWasm() must be awaited first!");
23411         }
23412         const nativeResponseValue = wasm.TS_ChannelAnnouncement_write(obj);
23413         return nativeResponseValue;
23414 }
23415         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ ChannelAnnouncement_read(struct LDKu8slice ser);
23416 /* @internal */
23417 export function ChannelAnnouncement_read(ser: number): number {
23418         if(!isWasmInitialized) {
23419                 throw new Error("initializeWasm() must be awaited first!");
23420         }
23421         const nativeResponseValue = wasm.TS_ChannelAnnouncement_read(ser);
23422         return nativeResponseValue;
23423 }
23424         // struct LDKCVec_u8Z UnsignedChannelUpdate_write(const struct LDKUnsignedChannelUpdate *NONNULL_PTR obj);
23425 /* @internal */
23426 export function UnsignedChannelUpdate_write(obj: number): number {
23427         if(!isWasmInitialized) {
23428                 throw new Error("initializeWasm() must be awaited first!");
23429         }
23430         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_write(obj);
23431         return nativeResponseValue;
23432 }
23433         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ UnsignedChannelUpdate_read(struct LDKu8slice ser);
23434 /* @internal */
23435 export function UnsignedChannelUpdate_read(ser: number): number {
23436         if(!isWasmInitialized) {
23437                 throw new Error("initializeWasm() must be awaited first!");
23438         }
23439         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_read(ser);
23440         return nativeResponseValue;
23441 }
23442         // struct LDKCVec_u8Z ChannelUpdate_write(const struct LDKChannelUpdate *NONNULL_PTR obj);
23443 /* @internal */
23444 export function ChannelUpdate_write(obj: number): number {
23445         if(!isWasmInitialized) {
23446                 throw new Error("initializeWasm() must be awaited first!");
23447         }
23448         const nativeResponseValue = wasm.TS_ChannelUpdate_write(obj);
23449         return nativeResponseValue;
23450 }
23451         // struct LDKCResult_ChannelUpdateDecodeErrorZ ChannelUpdate_read(struct LDKu8slice ser);
23452 /* @internal */
23453 export function ChannelUpdate_read(ser: number): number {
23454         if(!isWasmInitialized) {
23455                 throw new Error("initializeWasm() must be awaited first!");
23456         }
23457         const nativeResponseValue = wasm.TS_ChannelUpdate_read(ser);
23458         return nativeResponseValue;
23459 }
23460         // struct LDKCVec_u8Z ErrorMessage_write(const struct LDKErrorMessage *NONNULL_PTR obj);
23461 /* @internal */
23462 export function ErrorMessage_write(obj: number): number {
23463         if(!isWasmInitialized) {
23464                 throw new Error("initializeWasm() must be awaited first!");
23465         }
23466         const nativeResponseValue = wasm.TS_ErrorMessage_write(obj);
23467         return nativeResponseValue;
23468 }
23469         // struct LDKCResult_ErrorMessageDecodeErrorZ ErrorMessage_read(struct LDKu8slice ser);
23470 /* @internal */
23471 export function ErrorMessage_read(ser: number): number {
23472         if(!isWasmInitialized) {
23473                 throw new Error("initializeWasm() must be awaited first!");
23474         }
23475         const nativeResponseValue = wasm.TS_ErrorMessage_read(ser);
23476         return nativeResponseValue;
23477 }
23478         // struct LDKCVec_u8Z WarningMessage_write(const struct LDKWarningMessage *NONNULL_PTR obj);
23479 /* @internal */
23480 export function WarningMessage_write(obj: number): number {
23481         if(!isWasmInitialized) {
23482                 throw new Error("initializeWasm() must be awaited first!");
23483         }
23484         const nativeResponseValue = wasm.TS_WarningMessage_write(obj);
23485         return nativeResponseValue;
23486 }
23487         // struct LDKCResult_WarningMessageDecodeErrorZ WarningMessage_read(struct LDKu8slice ser);
23488 /* @internal */
23489 export function WarningMessage_read(ser: number): number {
23490         if(!isWasmInitialized) {
23491                 throw new Error("initializeWasm() must be awaited first!");
23492         }
23493         const nativeResponseValue = wasm.TS_WarningMessage_read(ser);
23494         return nativeResponseValue;
23495 }
23496         // struct LDKCVec_u8Z UnsignedNodeAnnouncement_write(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR obj);
23497 /* @internal */
23498 export function UnsignedNodeAnnouncement_write(obj: number): number {
23499         if(!isWasmInitialized) {
23500                 throw new Error("initializeWasm() must be awaited first!");
23501         }
23502         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_write(obj);
23503         return nativeResponseValue;
23504 }
23505         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ UnsignedNodeAnnouncement_read(struct LDKu8slice ser);
23506 /* @internal */
23507 export function UnsignedNodeAnnouncement_read(ser: number): number {
23508         if(!isWasmInitialized) {
23509                 throw new Error("initializeWasm() must be awaited first!");
23510         }
23511         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_read(ser);
23512         return nativeResponseValue;
23513 }
23514         // struct LDKCVec_u8Z NodeAnnouncement_write(const struct LDKNodeAnnouncement *NONNULL_PTR obj);
23515 /* @internal */
23516 export function NodeAnnouncement_write(obj: number): number {
23517         if(!isWasmInitialized) {
23518                 throw new Error("initializeWasm() must be awaited first!");
23519         }
23520         const nativeResponseValue = wasm.TS_NodeAnnouncement_write(obj);
23521         return nativeResponseValue;
23522 }
23523         // struct LDKCResult_NodeAnnouncementDecodeErrorZ NodeAnnouncement_read(struct LDKu8slice ser);
23524 /* @internal */
23525 export function NodeAnnouncement_read(ser: number): number {
23526         if(!isWasmInitialized) {
23527                 throw new Error("initializeWasm() must be awaited first!");
23528         }
23529         const nativeResponseValue = wasm.TS_NodeAnnouncement_read(ser);
23530         return nativeResponseValue;
23531 }
23532         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ QueryShortChannelIds_read(struct LDKu8slice ser);
23533 /* @internal */
23534 export function QueryShortChannelIds_read(ser: number): number {
23535         if(!isWasmInitialized) {
23536                 throw new Error("initializeWasm() must be awaited first!");
23537         }
23538         const nativeResponseValue = wasm.TS_QueryShortChannelIds_read(ser);
23539         return nativeResponseValue;
23540 }
23541         // struct LDKCVec_u8Z QueryShortChannelIds_write(const struct LDKQueryShortChannelIds *NONNULL_PTR obj);
23542 /* @internal */
23543 export function QueryShortChannelIds_write(obj: number): number {
23544         if(!isWasmInitialized) {
23545                 throw new Error("initializeWasm() must be awaited first!");
23546         }
23547         const nativeResponseValue = wasm.TS_QueryShortChannelIds_write(obj);
23548         return nativeResponseValue;
23549 }
23550         // struct LDKCVec_u8Z ReplyShortChannelIdsEnd_write(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR obj);
23551 /* @internal */
23552 export function ReplyShortChannelIdsEnd_write(obj: number): number {
23553         if(!isWasmInitialized) {
23554                 throw new Error("initializeWasm() must be awaited first!");
23555         }
23556         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_write(obj);
23557         return nativeResponseValue;
23558 }
23559         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ ReplyShortChannelIdsEnd_read(struct LDKu8slice ser);
23560 /* @internal */
23561 export function ReplyShortChannelIdsEnd_read(ser: number): number {
23562         if(!isWasmInitialized) {
23563                 throw new Error("initializeWasm() must be awaited first!");
23564         }
23565         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_read(ser);
23566         return nativeResponseValue;
23567 }
23568         // MUST_USE_RES uint32_t QueryChannelRange_end_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_arg);
23569 /* @internal */
23570 export function QueryChannelRange_end_blocknum(this_arg: number): number {
23571         if(!isWasmInitialized) {
23572                 throw new Error("initializeWasm() must be awaited first!");
23573         }
23574         const nativeResponseValue = wasm.TS_QueryChannelRange_end_blocknum(this_arg);
23575         return nativeResponseValue;
23576 }
23577         // struct LDKCVec_u8Z QueryChannelRange_write(const struct LDKQueryChannelRange *NONNULL_PTR obj);
23578 /* @internal */
23579 export function QueryChannelRange_write(obj: number): number {
23580         if(!isWasmInitialized) {
23581                 throw new Error("initializeWasm() must be awaited first!");
23582         }
23583         const nativeResponseValue = wasm.TS_QueryChannelRange_write(obj);
23584         return nativeResponseValue;
23585 }
23586         // struct LDKCResult_QueryChannelRangeDecodeErrorZ QueryChannelRange_read(struct LDKu8slice ser);
23587 /* @internal */
23588 export function QueryChannelRange_read(ser: number): number {
23589         if(!isWasmInitialized) {
23590                 throw new Error("initializeWasm() must be awaited first!");
23591         }
23592         const nativeResponseValue = wasm.TS_QueryChannelRange_read(ser);
23593         return nativeResponseValue;
23594 }
23595         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ ReplyChannelRange_read(struct LDKu8slice ser);
23596 /* @internal */
23597 export function ReplyChannelRange_read(ser: number): number {
23598         if(!isWasmInitialized) {
23599                 throw new Error("initializeWasm() must be awaited first!");
23600         }
23601         const nativeResponseValue = wasm.TS_ReplyChannelRange_read(ser);
23602         return nativeResponseValue;
23603 }
23604         // struct LDKCVec_u8Z ReplyChannelRange_write(const struct LDKReplyChannelRange *NONNULL_PTR obj);
23605 /* @internal */
23606 export function ReplyChannelRange_write(obj: number): number {
23607         if(!isWasmInitialized) {
23608                 throw new Error("initializeWasm() must be awaited first!");
23609         }
23610         const nativeResponseValue = wasm.TS_ReplyChannelRange_write(obj);
23611         return nativeResponseValue;
23612 }
23613         // struct LDKCVec_u8Z GossipTimestampFilter_write(const struct LDKGossipTimestampFilter *NONNULL_PTR obj);
23614 /* @internal */
23615 export function GossipTimestampFilter_write(obj: number): number {
23616         if(!isWasmInitialized) {
23617                 throw new Error("initializeWasm() must be awaited first!");
23618         }
23619         const nativeResponseValue = wasm.TS_GossipTimestampFilter_write(obj);
23620         return nativeResponseValue;
23621 }
23622         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ GossipTimestampFilter_read(struct LDKu8slice ser);
23623 /* @internal */
23624 export function GossipTimestampFilter_read(ser: number): number {
23625         if(!isWasmInitialized) {
23626                 throw new Error("initializeWasm() must be awaited first!");
23627         }
23628         const nativeResponseValue = wasm.TS_GossipTimestampFilter_read(ser);
23629         return nativeResponseValue;
23630 }
23631         // void CustomMessageHandler_free(struct LDKCustomMessageHandler this_ptr);
23632 /* @internal */
23633 export function CustomMessageHandler_free(this_ptr: number): void {
23634         if(!isWasmInitialized) {
23635                 throw new Error("initializeWasm() must be awaited first!");
23636         }
23637         const nativeResponseValue = wasm.TS_CustomMessageHandler_free(this_ptr);
23638         // debug statements here
23639 }
23640         // void IgnoringMessageHandler_free(struct LDKIgnoringMessageHandler this_obj);
23641 /* @internal */
23642 export function IgnoringMessageHandler_free(this_obj: number): void {
23643         if(!isWasmInitialized) {
23644                 throw new Error("initializeWasm() must be awaited first!");
23645         }
23646         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_free(this_obj);
23647         // debug statements here
23648 }
23649         // MUST_USE_RES struct LDKIgnoringMessageHandler IgnoringMessageHandler_new(void);
23650 /* @internal */
23651 export function IgnoringMessageHandler_new(): number {
23652         if(!isWasmInitialized) {
23653                 throw new Error("initializeWasm() must be awaited first!");
23654         }
23655         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_new();
23656         return nativeResponseValue;
23657 }
23658         // struct LDKMessageSendEventsProvider IgnoringMessageHandler_as_MessageSendEventsProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
23659 /* @internal */
23660 export function IgnoringMessageHandler_as_MessageSendEventsProvider(this_arg: number): number {
23661         if(!isWasmInitialized) {
23662                 throw new Error("initializeWasm() must be awaited first!");
23663         }
23664         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_MessageSendEventsProvider(this_arg);
23665         return nativeResponseValue;
23666 }
23667         // struct LDKRoutingMessageHandler IgnoringMessageHandler_as_RoutingMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
23668 /* @internal */
23669 export function IgnoringMessageHandler_as_RoutingMessageHandler(this_arg: number): number {
23670         if(!isWasmInitialized) {
23671                 throw new Error("initializeWasm() must be awaited first!");
23672         }
23673         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_RoutingMessageHandler(this_arg);
23674         return nativeResponseValue;
23675 }
23676         // struct LDKCustomMessageReader IgnoringMessageHandler_as_CustomMessageReader(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
23677 /* @internal */
23678 export function IgnoringMessageHandler_as_CustomMessageReader(this_arg: number): number {
23679         if(!isWasmInitialized) {
23680                 throw new Error("initializeWasm() must be awaited first!");
23681         }
23682         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_CustomMessageReader(this_arg);
23683         return nativeResponseValue;
23684 }
23685         // struct LDKCustomMessageHandler IgnoringMessageHandler_as_CustomMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
23686 /* @internal */
23687 export function IgnoringMessageHandler_as_CustomMessageHandler(this_arg: number): number {
23688         if(!isWasmInitialized) {
23689                 throw new Error("initializeWasm() must be awaited first!");
23690         }
23691         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_CustomMessageHandler(this_arg);
23692         return nativeResponseValue;
23693 }
23694         // void ErroringMessageHandler_free(struct LDKErroringMessageHandler this_obj);
23695 /* @internal */
23696 export function ErroringMessageHandler_free(this_obj: number): void {
23697         if(!isWasmInitialized) {
23698                 throw new Error("initializeWasm() must be awaited first!");
23699         }
23700         const nativeResponseValue = wasm.TS_ErroringMessageHandler_free(this_obj);
23701         // debug statements here
23702 }
23703         // MUST_USE_RES struct LDKErroringMessageHandler ErroringMessageHandler_new(void);
23704 /* @internal */
23705 export function ErroringMessageHandler_new(): number {
23706         if(!isWasmInitialized) {
23707                 throw new Error("initializeWasm() must be awaited first!");
23708         }
23709         const nativeResponseValue = wasm.TS_ErroringMessageHandler_new();
23710         return nativeResponseValue;
23711 }
23712         // struct LDKMessageSendEventsProvider ErroringMessageHandler_as_MessageSendEventsProvider(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
23713 /* @internal */
23714 export function ErroringMessageHandler_as_MessageSendEventsProvider(this_arg: number): number {
23715         if(!isWasmInitialized) {
23716                 throw new Error("initializeWasm() must be awaited first!");
23717         }
23718         const nativeResponseValue = wasm.TS_ErroringMessageHandler_as_MessageSendEventsProvider(this_arg);
23719         return nativeResponseValue;
23720 }
23721         // struct LDKChannelMessageHandler ErroringMessageHandler_as_ChannelMessageHandler(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
23722 /* @internal */
23723 export function ErroringMessageHandler_as_ChannelMessageHandler(this_arg: number): number {
23724         if(!isWasmInitialized) {
23725                 throw new Error("initializeWasm() must be awaited first!");
23726         }
23727         const nativeResponseValue = wasm.TS_ErroringMessageHandler_as_ChannelMessageHandler(this_arg);
23728         return nativeResponseValue;
23729 }
23730         // void MessageHandler_free(struct LDKMessageHandler this_obj);
23731 /* @internal */
23732 export function MessageHandler_free(this_obj: number): void {
23733         if(!isWasmInitialized) {
23734                 throw new Error("initializeWasm() must be awaited first!");
23735         }
23736         const nativeResponseValue = wasm.TS_MessageHandler_free(this_obj);
23737         // debug statements here
23738 }
23739         // const struct LDKChannelMessageHandler *MessageHandler_get_chan_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
23740 /* @internal */
23741 export function MessageHandler_get_chan_handler(this_ptr: number): number {
23742         if(!isWasmInitialized) {
23743                 throw new Error("initializeWasm() must be awaited first!");
23744         }
23745         const nativeResponseValue = wasm.TS_MessageHandler_get_chan_handler(this_ptr);
23746         return nativeResponseValue;
23747 }
23748         // void MessageHandler_set_chan_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKChannelMessageHandler val);
23749 /* @internal */
23750 export function MessageHandler_set_chan_handler(this_ptr: number, val: number): void {
23751         if(!isWasmInitialized) {
23752                 throw new Error("initializeWasm() must be awaited first!");
23753         }
23754         const nativeResponseValue = wasm.TS_MessageHandler_set_chan_handler(this_ptr, val);
23755         // debug statements here
23756 }
23757         // const struct LDKRoutingMessageHandler *MessageHandler_get_route_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
23758 /* @internal */
23759 export function MessageHandler_get_route_handler(this_ptr: number): number {
23760         if(!isWasmInitialized) {
23761                 throw new Error("initializeWasm() must be awaited first!");
23762         }
23763         const nativeResponseValue = wasm.TS_MessageHandler_get_route_handler(this_ptr);
23764         return nativeResponseValue;
23765 }
23766         // void MessageHandler_set_route_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKRoutingMessageHandler val);
23767 /* @internal */
23768 export function MessageHandler_set_route_handler(this_ptr: number, val: number): void {
23769         if(!isWasmInitialized) {
23770                 throw new Error("initializeWasm() must be awaited first!");
23771         }
23772         const nativeResponseValue = wasm.TS_MessageHandler_set_route_handler(this_ptr, val);
23773         // debug statements here
23774 }
23775         // MUST_USE_RES struct LDKMessageHandler MessageHandler_new(struct LDKChannelMessageHandler chan_handler_arg, struct LDKRoutingMessageHandler route_handler_arg);
23776 /* @internal */
23777 export function MessageHandler_new(chan_handler_arg: number, route_handler_arg: number): number {
23778         if(!isWasmInitialized) {
23779                 throw new Error("initializeWasm() must be awaited first!");
23780         }
23781         const nativeResponseValue = wasm.TS_MessageHandler_new(chan_handler_arg, route_handler_arg);
23782         return nativeResponseValue;
23783 }
23784         // uintptr_t SocketDescriptor_clone_ptr(LDKSocketDescriptor *NONNULL_PTR arg);
23785 /* @internal */
23786 export function SocketDescriptor_clone_ptr(arg: number): number {
23787         if(!isWasmInitialized) {
23788                 throw new Error("initializeWasm() must be awaited first!");
23789         }
23790         const nativeResponseValue = wasm.TS_SocketDescriptor_clone_ptr(arg);
23791         return nativeResponseValue;
23792 }
23793         // struct LDKSocketDescriptor SocketDescriptor_clone(const struct LDKSocketDescriptor *NONNULL_PTR orig);
23794 /* @internal */
23795 export function SocketDescriptor_clone(orig: number): number {
23796         if(!isWasmInitialized) {
23797                 throw new Error("initializeWasm() must be awaited first!");
23798         }
23799         const nativeResponseValue = wasm.TS_SocketDescriptor_clone(orig);
23800         return nativeResponseValue;
23801 }
23802         // void SocketDescriptor_free(struct LDKSocketDescriptor this_ptr);
23803 /* @internal */
23804 export function SocketDescriptor_free(this_ptr: number): void {
23805         if(!isWasmInitialized) {
23806                 throw new Error("initializeWasm() must be awaited first!");
23807         }
23808         const nativeResponseValue = wasm.TS_SocketDescriptor_free(this_ptr);
23809         // debug statements here
23810 }
23811         // void PeerHandleError_free(struct LDKPeerHandleError this_obj);
23812 /* @internal */
23813 export function PeerHandleError_free(this_obj: number): void {
23814         if(!isWasmInitialized) {
23815                 throw new Error("initializeWasm() must be awaited first!");
23816         }
23817         const nativeResponseValue = wasm.TS_PeerHandleError_free(this_obj);
23818         // debug statements here
23819 }
23820         // bool PeerHandleError_get_no_connection_possible(const struct LDKPeerHandleError *NONNULL_PTR this_ptr);
23821 /* @internal */
23822 export function PeerHandleError_get_no_connection_possible(this_ptr: number): boolean {
23823         if(!isWasmInitialized) {
23824                 throw new Error("initializeWasm() must be awaited first!");
23825         }
23826         const nativeResponseValue = wasm.TS_PeerHandleError_get_no_connection_possible(this_ptr);
23827         return nativeResponseValue;
23828 }
23829         // void PeerHandleError_set_no_connection_possible(struct LDKPeerHandleError *NONNULL_PTR this_ptr, bool val);
23830 /* @internal */
23831 export function PeerHandleError_set_no_connection_possible(this_ptr: number, val: boolean): void {
23832         if(!isWasmInitialized) {
23833                 throw new Error("initializeWasm() must be awaited first!");
23834         }
23835         const nativeResponseValue = wasm.TS_PeerHandleError_set_no_connection_possible(this_ptr, val);
23836         // debug statements here
23837 }
23838         // MUST_USE_RES struct LDKPeerHandleError PeerHandleError_new(bool no_connection_possible_arg);
23839 /* @internal */
23840 export function PeerHandleError_new(no_connection_possible_arg: boolean): number {
23841         if(!isWasmInitialized) {
23842                 throw new Error("initializeWasm() must be awaited first!");
23843         }
23844         const nativeResponseValue = wasm.TS_PeerHandleError_new(no_connection_possible_arg);
23845         return nativeResponseValue;
23846 }
23847         // uintptr_t PeerHandleError_clone_ptr(LDKPeerHandleError *NONNULL_PTR arg);
23848 /* @internal */
23849 export function PeerHandleError_clone_ptr(arg: number): number {
23850         if(!isWasmInitialized) {
23851                 throw new Error("initializeWasm() must be awaited first!");
23852         }
23853         const nativeResponseValue = wasm.TS_PeerHandleError_clone_ptr(arg);
23854         return nativeResponseValue;
23855 }
23856         // struct LDKPeerHandleError PeerHandleError_clone(const struct LDKPeerHandleError *NONNULL_PTR orig);
23857 /* @internal */
23858 export function PeerHandleError_clone(orig: number): number {
23859         if(!isWasmInitialized) {
23860                 throw new Error("initializeWasm() must be awaited first!");
23861         }
23862         const nativeResponseValue = wasm.TS_PeerHandleError_clone(orig);
23863         return nativeResponseValue;
23864 }
23865         // void PeerManager_free(struct LDKPeerManager this_obj);
23866 /* @internal */
23867 export function PeerManager_free(this_obj: number): void {
23868         if(!isWasmInitialized) {
23869                 throw new Error("initializeWasm() must be awaited first!");
23870         }
23871         const nativeResponseValue = wasm.TS_PeerManager_free(this_obj);
23872         // debug statements here
23873 }
23874         // MUST_USE_RES struct LDKPeerManager PeerManager_new(struct LDKMessageHandler message_handler, struct LDKSecretKey our_node_secret, const uint8_t (*ephemeral_random_data)[32], struct LDKLogger logger, struct LDKCustomMessageHandler custom_message_handler);
23875 /* @internal */
23876 export function PeerManager_new(message_handler: number, our_node_secret: number, ephemeral_random_data: number, logger: number, custom_message_handler: number): number {
23877         if(!isWasmInitialized) {
23878                 throw new Error("initializeWasm() must be awaited first!");
23879         }
23880         const nativeResponseValue = wasm.TS_PeerManager_new(message_handler, our_node_secret, ephemeral_random_data, logger, custom_message_handler);
23881         return nativeResponseValue;
23882 }
23883         // MUST_USE_RES struct LDKCVec_PublicKeyZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg);
23884 /* @internal */
23885 export function PeerManager_get_peer_node_ids(this_arg: number): number {
23886         if(!isWasmInitialized) {
23887                 throw new Error("initializeWasm() must be awaited first!");
23888         }
23889         const nativeResponseValue = wasm.TS_PeerManager_get_peer_node_ids(this_arg);
23890         return nativeResponseValue;
23891 }
23892         // MUST_USE_RES struct LDKCResult_CVec_u8ZPeerHandleErrorZ PeerManager_new_outbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKSocketDescriptor descriptor);
23893 /* @internal */
23894 export function PeerManager_new_outbound_connection(this_arg: number, their_node_id: number, descriptor: number): number {
23895         if(!isWasmInitialized) {
23896                 throw new Error("initializeWasm() must be awaited first!");
23897         }
23898         const nativeResponseValue = wasm.TS_PeerManager_new_outbound_connection(this_arg, their_node_id, descriptor);
23899         return nativeResponseValue;
23900 }
23901         // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_new_inbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor descriptor);
23902 /* @internal */
23903 export function PeerManager_new_inbound_connection(this_arg: number, descriptor: number): number {
23904         if(!isWasmInitialized) {
23905                 throw new Error("initializeWasm() must be awaited first!");
23906         }
23907         const nativeResponseValue = wasm.TS_PeerManager_new_inbound_connection(this_arg, descriptor);
23908         return nativeResponseValue;
23909 }
23910         // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_write_buffer_space_avail(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR descriptor);
23911 /* @internal */
23912 export function PeerManager_write_buffer_space_avail(this_arg: number, descriptor: number): number {
23913         if(!isWasmInitialized) {
23914                 throw new Error("initializeWasm() must be awaited first!");
23915         }
23916         const nativeResponseValue = wasm.TS_PeerManager_write_buffer_space_avail(this_arg, descriptor);
23917         return nativeResponseValue;
23918 }
23919         // MUST_USE_RES struct LDKCResult_boolPeerHandleErrorZ PeerManager_read_event(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR peer_descriptor, struct LDKu8slice data);
23920 /* @internal */
23921 export function PeerManager_read_event(this_arg: number, peer_descriptor: number, data: number): number {
23922         if(!isWasmInitialized) {
23923                 throw new Error("initializeWasm() must be awaited first!");
23924         }
23925         const nativeResponseValue = wasm.TS_PeerManager_read_event(this_arg, peer_descriptor, data);
23926         return nativeResponseValue;
23927 }
23928         // void PeerManager_process_events(const struct LDKPeerManager *NONNULL_PTR this_arg);
23929 /* @internal */
23930 export function PeerManager_process_events(this_arg: number): void {
23931         if(!isWasmInitialized) {
23932                 throw new Error("initializeWasm() must be awaited first!");
23933         }
23934         const nativeResponseValue = wasm.TS_PeerManager_process_events(this_arg);
23935         // debug statements here
23936 }
23937         // void PeerManager_socket_disconnected(const struct LDKPeerManager *NONNULL_PTR this_arg, const struct LDKSocketDescriptor *NONNULL_PTR descriptor);
23938 /* @internal */
23939 export function PeerManager_socket_disconnected(this_arg: number, descriptor: number): void {
23940         if(!isWasmInitialized) {
23941                 throw new Error("initializeWasm() must be awaited first!");
23942         }
23943         const nativeResponseValue = wasm.TS_PeerManager_socket_disconnected(this_arg, descriptor);
23944         // debug statements here
23945 }
23946         // void PeerManager_disconnect_by_node_id(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id, bool no_connection_possible);
23947 /* @internal */
23948 export function PeerManager_disconnect_by_node_id(this_arg: number, node_id: number, no_connection_possible: boolean): void {
23949         if(!isWasmInitialized) {
23950                 throw new Error("initializeWasm() must be awaited first!");
23951         }
23952         const nativeResponseValue = wasm.TS_PeerManager_disconnect_by_node_id(this_arg, node_id, no_connection_possible);
23953         // debug statements here
23954 }
23955         // void PeerManager_disconnect_all_peers(const struct LDKPeerManager *NONNULL_PTR this_arg);
23956 /* @internal */
23957 export function PeerManager_disconnect_all_peers(this_arg: number): void {
23958         if(!isWasmInitialized) {
23959                 throw new Error("initializeWasm() must be awaited first!");
23960         }
23961         const nativeResponseValue = wasm.TS_PeerManager_disconnect_all_peers(this_arg);
23962         // debug statements here
23963 }
23964         // void PeerManager_timer_tick_occurred(const struct LDKPeerManager *NONNULL_PTR this_arg);
23965 /* @internal */
23966 export function PeerManager_timer_tick_occurred(this_arg: number): void {
23967         if(!isWasmInitialized) {
23968                 throw new Error("initializeWasm() must be awaited first!");
23969         }
23970         const nativeResponseValue = wasm.TS_PeerManager_timer_tick_occurred(this_arg);
23971         // debug statements here
23972 }
23973         // uint64_t htlc_success_tx_weight(bool opt_anchors);
23974 /* @internal */
23975 export function htlc_success_tx_weight(opt_anchors: boolean): bigint {
23976         if(!isWasmInitialized) {
23977                 throw new Error("initializeWasm() must be awaited first!");
23978         }
23979         const nativeResponseValue = wasm.TS_htlc_success_tx_weight(opt_anchors);
23980         return nativeResponseValue;
23981 }
23982         // uint64_t htlc_timeout_tx_weight(bool opt_anchors);
23983 /* @internal */
23984 export function htlc_timeout_tx_weight(opt_anchors: boolean): bigint {
23985         if(!isWasmInitialized) {
23986                 throw new Error("initializeWasm() must be awaited first!");
23987         }
23988         const nativeResponseValue = wasm.TS_htlc_timeout_tx_weight(opt_anchors);
23989         return nativeResponseValue;
23990 }
23991         // struct LDKThirtyTwoBytes build_commitment_secret(const uint8_t (*commitment_seed)[32], uint64_t idx);
23992 /* @internal */
23993 export function build_commitment_secret(commitment_seed: number, idx: bigint): number {
23994         if(!isWasmInitialized) {
23995                 throw new Error("initializeWasm() must be awaited first!");
23996         }
23997         const nativeResponseValue = wasm.TS_build_commitment_secret(commitment_seed, idx);
23998         return nativeResponseValue;
23999 }
24000         // struct LDKTransaction build_closing_transaction(uint64_t to_holder_value_sat, uint64_t to_counterparty_value_sat, struct LDKCVec_u8Z to_holder_script, struct LDKCVec_u8Z to_counterparty_script, struct LDKOutPoint funding_outpoint);
24001 /* @internal */
24002 export function build_closing_transaction(to_holder_value_sat: bigint, to_counterparty_value_sat: bigint, to_holder_script: number, to_counterparty_script: number, funding_outpoint: number): number {
24003         if(!isWasmInitialized) {
24004                 throw new Error("initializeWasm() must be awaited first!");
24005         }
24006         const nativeResponseValue = wasm.TS_build_closing_transaction(to_holder_value_sat, to_counterparty_value_sat, to_holder_script, to_counterparty_script, funding_outpoint);
24007         return nativeResponseValue;
24008 }
24009         // void CounterpartyCommitmentSecrets_free(struct LDKCounterpartyCommitmentSecrets this_obj);
24010 /* @internal */
24011 export function CounterpartyCommitmentSecrets_free(this_obj: number): void {
24012         if(!isWasmInitialized) {
24013                 throw new Error("initializeWasm() must be awaited first!");
24014         }
24015         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_free(this_obj);
24016         // debug statements here
24017 }
24018         // uintptr_t CounterpartyCommitmentSecrets_clone_ptr(LDKCounterpartyCommitmentSecrets *NONNULL_PTR arg);
24019 /* @internal */
24020 export function CounterpartyCommitmentSecrets_clone_ptr(arg: number): number {
24021         if(!isWasmInitialized) {
24022                 throw new Error("initializeWasm() must be awaited first!");
24023         }
24024         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_clone_ptr(arg);
24025         return nativeResponseValue;
24026 }
24027         // struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_clone(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR orig);
24028 /* @internal */
24029 export function CounterpartyCommitmentSecrets_clone(orig: number): number {
24030         if(!isWasmInitialized) {
24031                 throw new Error("initializeWasm() must be awaited first!");
24032         }
24033         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_clone(orig);
24034         return nativeResponseValue;
24035 }
24036         // MUST_USE_RES struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_new(void);
24037 /* @internal */
24038 export function CounterpartyCommitmentSecrets_new(): number {
24039         if(!isWasmInitialized) {
24040                 throw new Error("initializeWasm() must be awaited first!");
24041         }
24042         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_new();
24043         return nativeResponseValue;
24044 }
24045         // MUST_USE_RES uint64_t CounterpartyCommitmentSecrets_get_min_seen_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg);
24046 /* @internal */
24047 export function CounterpartyCommitmentSecrets_get_min_seen_secret(this_arg: number): bigint {
24048         if(!isWasmInitialized) {
24049                 throw new Error("initializeWasm() must be awaited first!");
24050         }
24051         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_get_min_seen_secret(this_arg);
24052         return nativeResponseValue;
24053 }
24054         // MUST_USE_RES struct LDKCResult_NoneNoneZ CounterpartyCommitmentSecrets_provide_secret(struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx, struct LDKThirtyTwoBytes secret);
24055 /* @internal */
24056 export function CounterpartyCommitmentSecrets_provide_secret(this_arg: number, idx: bigint, secret: number): number {
24057         if(!isWasmInitialized) {
24058                 throw new Error("initializeWasm() must be awaited first!");
24059         }
24060         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_provide_secret(this_arg, idx, secret);
24061         return nativeResponseValue;
24062 }
24063         // MUST_USE_RES struct LDKThirtyTwoBytes CounterpartyCommitmentSecrets_get_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx);
24064 /* @internal */
24065 export function CounterpartyCommitmentSecrets_get_secret(this_arg: number, idx: bigint): number {
24066         if(!isWasmInitialized) {
24067                 throw new Error("initializeWasm() must be awaited first!");
24068         }
24069         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_get_secret(this_arg, idx);
24070         return nativeResponseValue;
24071 }
24072         // struct LDKCVec_u8Z CounterpartyCommitmentSecrets_write(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR obj);
24073 /* @internal */
24074 export function CounterpartyCommitmentSecrets_write(obj: number): number {
24075         if(!isWasmInitialized) {
24076                 throw new Error("initializeWasm() must be awaited first!");
24077         }
24078         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_write(obj);
24079         return nativeResponseValue;
24080 }
24081         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CounterpartyCommitmentSecrets_read(struct LDKu8slice ser);
24082 /* @internal */
24083 export function CounterpartyCommitmentSecrets_read(ser: number): number {
24084         if(!isWasmInitialized) {
24085                 throw new Error("initializeWasm() must be awaited first!");
24086         }
24087         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_read(ser);
24088         return nativeResponseValue;
24089 }
24090         // struct LDKCResult_SecretKeyErrorZ derive_private_key(struct LDKPublicKey per_commitment_point, const uint8_t (*base_secret)[32]);
24091 /* @internal */
24092 export function derive_private_key(per_commitment_point: number, base_secret: number): number {
24093         if(!isWasmInitialized) {
24094                 throw new Error("initializeWasm() must be awaited first!");
24095         }
24096         const nativeResponseValue = wasm.TS_derive_private_key(per_commitment_point, base_secret);
24097         return nativeResponseValue;
24098 }
24099         // struct LDKCResult_PublicKeyErrorZ derive_public_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey base_point);
24100 /* @internal */
24101 export function derive_public_key(per_commitment_point: number, base_point: number): number {
24102         if(!isWasmInitialized) {
24103                 throw new Error("initializeWasm() must be awaited first!");
24104         }
24105         const nativeResponseValue = wasm.TS_derive_public_key(per_commitment_point, base_point);
24106         return nativeResponseValue;
24107 }
24108         // struct LDKCResult_SecretKeyErrorZ derive_private_revocation_key(const uint8_t (*per_commitment_secret)[32], const uint8_t (*countersignatory_revocation_base_secret)[32]);
24109 /* @internal */
24110 export function derive_private_revocation_key(per_commitment_secret: number, countersignatory_revocation_base_secret: number): number {
24111         if(!isWasmInitialized) {
24112                 throw new Error("initializeWasm() must be awaited first!");
24113         }
24114         const nativeResponseValue = wasm.TS_derive_private_revocation_key(per_commitment_secret, countersignatory_revocation_base_secret);
24115         return nativeResponseValue;
24116 }
24117         // struct LDKCResult_PublicKeyErrorZ derive_public_revocation_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey countersignatory_revocation_base_point);
24118 /* @internal */
24119 export function derive_public_revocation_key(per_commitment_point: number, countersignatory_revocation_base_point: number): number {
24120         if(!isWasmInitialized) {
24121                 throw new Error("initializeWasm() must be awaited first!");
24122         }
24123         const nativeResponseValue = wasm.TS_derive_public_revocation_key(per_commitment_point, countersignatory_revocation_base_point);
24124         return nativeResponseValue;
24125 }
24126         // void TxCreationKeys_free(struct LDKTxCreationKeys this_obj);
24127 /* @internal */
24128 export function TxCreationKeys_free(this_obj: number): void {
24129         if(!isWasmInitialized) {
24130                 throw new Error("initializeWasm() must be awaited first!");
24131         }
24132         const nativeResponseValue = wasm.TS_TxCreationKeys_free(this_obj);
24133         // debug statements here
24134 }
24135         // struct LDKPublicKey TxCreationKeys_get_per_commitment_point(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
24136 /* @internal */
24137 export function TxCreationKeys_get_per_commitment_point(this_ptr: number): number {
24138         if(!isWasmInitialized) {
24139                 throw new Error("initializeWasm() must be awaited first!");
24140         }
24141         const nativeResponseValue = wasm.TS_TxCreationKeys_get_per_commitment_point(this_ptr);
24142         return nativeResponseValue;
24143 }
24144         // void TxCreationKeys_set_per_commitment_point(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24145 /* @internal */
24146 export function TxCreationKeys_set_per_commitment_point(this_ptr: number, val: number): void {
24147         if(!isWasmInitialized) {
24148                 throw new Error("initializeWasm() must be awaited first!");
24149         }
24150         const nativeResponseValue = wasm.TS_TxCreationKeys_set_per_commitment_point(this_ptr, val);
24151         // debug statements here
24152 }
24153         // struct LDKPublicKey TxCreationKeys_get_revocation_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
24154 /* @internal */
24155 export function TxCreationKeys_get_revocation_key(this_ptr: number): number {
24156         if(!isWasmInitialized) {
24157                 throw new Error("initializeWasm() must be awaited first!");
24158         }
24159         const nativeResponseValue = wasm.TS_TxCreationKeys_get_revocation_key(this_ptr);
24160         return nativeResponseValue;
24161 }
24162         // void TxCreationKeys_set_revocation_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24163 /* @internal */
24164 export function TxCreationKeys_set_revocation_key(this_ptr: number, val: number): void {
24165         if(!isWasmInitialized) {
24166                 throw new Error("initializeWasm() must be awaited first!");
24167         }
24168         const nativeResponseValue = wasm.TS_TxCreationKeys_set_revocation_key(this_ptr, val);
24169         // debug statements here
24170 }
24171         // struct LDKPublicKey TxCreationKeys_get_broadcaster_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
24172 /* @internal */
24173 export function TxCreationKeys_get_broadcaster_htlc_key(this_ptr: number): number {
24174         if(!isWasmInitialized) {
24175                 throw new Error("initializeWasm() must be awaited first!");
24176         }
24177         const nativeResponseValue = wasm.TS_TxCreationKeys_get_broadcaster_htlc_key(this_ptr);
24178         return nativeResponseValue;
24179 }
24180         // void TxCreationKeys_set_broadcaster_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24181 /* @internal */
24182 export function TxCreationKeys_set_broadcaster_htlc_key(this_ptr: number, val: number): void {
24183         if(!isWasmInitialized) {
24184                 throw new Error("initializeWasm() must be awaited first!");
24185         }
24186         const nativeResponseValue = wasm.TS_TxCreationKeys_set_broadcaster_htlc_key(this_ptr, val);
24187         // debug statements here
24188 }
24189         // struct LDKPublicKey TxCreationKeys_get_countersignatory_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
24190 /* @internal */
24191 export function TxCreationKeys_get_countersignatory_htlc_key(this_ptr: number): number {
24192         if(!isWasmInitialized) {
24193                 throw new Error("initializeWasm() must be awaited first!");
24194         }
24195         const nativeResponseValue = wasm.TS_TxCreationKeys_get_countersignatory_htlc_key(this_ptr);
24196         return nativeResponseValue;
24197 }
24198         // void TxCreationKeys_set_countersignatory_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24199 /* @internal */
24200 export function TxCreationKeys_set_countersignatory_htlc_key(this_ptr: number, val: number): void {
24201         if(!isWasmInitialized) {
24202                 throw new Error("initializeWasm() must be awaited first!");
24203         }
24204         const nativeResponseValue = wasm.TS_TxCreationKeys_set_countersignatory_htlc_key(this_ptr, val);
24205         // debug statements here
24206 }
24207         // struct LDKPublicKey TxCreationKeys_get_broadcaster_delayed_payment_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
24208 /* @internal */
24209 export function TxCreationKeys_get_broadcaster_delayed_payment_key(this_ptr: number): number {
24210         if(!isWasmInitialized) {
24211                 throw new Error("initializeWasm() must be awaited first!");
24212         }
24213         const nativeResponseValue = wasm.TS_TxCreationKeys_get_broadcaster_delayed_payment_key(this_ptr);
24214         return nativeResponseValue;
24215 }
24216         // void TxCreationKeys_set_broadcaster_delayed_payment_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24217 /* @internal */
24218 export function TxCreationKeys_set_broadcaster_delayed_payment_key(this_ptr: number, val: number): void {
24219         if(!isWasmInitialized) {
24220                 throw new Error("initializeWasm() must be awaited first!");
24221         }
24222         const nativeResponseValue = wasm.TS_TxCreationKeys_set_broadcaster_delayed_payment_key(this_ptr, val);
24223         // debug statements here
24224 }
24225         // MUST_USE_RES struct LDKTxCreationKeys TxCreationKeys_new(struct LDKPublicKey per_commitment_point_arg, struct LDKPublicKey revocation_key_arg, struct LDKPublicKey broadcaster_htlc_key_arg, struct LDKPublicKey countersignatory_htlc_key_arg, struct LDKPublicKey broadcaster_delayed_payment_key_arg);
24226 /* @internal */
24227 export function TxCreationKeys_new(per_commitment_point_arg: number, revocation_key_arg: number, broadcaster_htlc_key_arg: number, countersignatory_htlc_key_arg: number, broadcaster_delayed_payment_key_arg: number): number {
24228         if(!isWasmInitialized) {
24229                 throw new Error("initializeWasm() must be awaited first!");
24230         }
24231         const nativeResponseValue = wasm.TS_TxCreationKeys_new(per_commitment_point_arg, revocation_key_arg, broadcaster_htlc_key_arg, countersignatory_htlc_key_arg, broadcaster_delayed_payment_key_arg);
24232         return nativeResponseValue;
24233 }
24234         // uintptr_t TxCreationKeys_clone_ptr(LDKTxCreationKeys *NONNULL_PTR arg);
24235 /* @internal */
24236 export function TxCreationKeys_clone_ptr(arg: number): number {
24237         if(!isWasmInitialized) {
24238                 throw new Error("initializeWasm() must be awaited first!");
24239         }
24240         const nativeResponseValue = wasm.TS_TxCreationKeys_clone_ptr(arg);
24241         return nativeResponseValue;
24242 }
24243         // struct LDKTxCreationKeys TxCreationKeys_clone(const struct LDKTxCreationKeys *NONNULL_PTR orig);
24244 /* @internal */
24245 export function TxCreationKeys_clone(orig: number): number {
24246         if(!isWasmInitialized) {
24247                 throw new Error("initializeWasm() must be awaited first!");
24248         }
24249         const nativeResponseValue = wasm.TS_TxCreationKeys_clone(orig);
24250         return nativeResponseValue;
24251 }
24252         // struct LDKCVec_u8Z TxCreationKeys_write(const struct LDKTxCreationKeys *NONNULL_PTR obj);
24253 /* @internal */
24254 export function TxCreationKeys_write(obj: number): number {
24255         if(!isWasmInitialized) {
24256                 throw new Error("initializeWasm() must be awaited first!");
24257         }
24258         const nativeResponseValue = wasm.TS_TxCreationKeys_write(obj);
24259         return nativeResponseValue;
24260 }
24261         // struct LDKCResult_TxCreationKeysDecodeErrorZ TxCreationKeys_read(struct LDKu8slice ser);
24262 /* @internal */
24263 export function TxCreationKeys_read(ser: number): number {
24264         if(!isWasmInitialized) {
24265                 throw new Error("initializeWasm() must be awaited first!");
24266         }
24267         const nativeResponseValue = wasm.TS_TxCreationKeys_read(ser);
24268         return nativeResponseValue;
24269 }
24270         // void ChannelPublicKeys_free(struct LDKChannelPublicKeys this_obj);
24271 /* @internal */
24272 export function ChannelPublicKeys_free(this_obj: number): void {
24273         if(!isWasmInitialized) {
24274                 throw new Error("initializeWasm() must be awaited first!");
24275         }
24276         const nativeResponseValue = wasm.TS_ChannelPublicKeys_free(this_obj);
24277         // debug statements here
24278 }
24279         // struct LDKPublicKey ChannelPublicKeys_get_funding_pubkey(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
24280 /* @internal */
24281 export function ChannelPublicKeys_get_funding_pubkey(this_ptr: number): number {
24282         if(!isWasmInitialized) {
24283                 throw new Error("initializeWasm() must be awaited first!");
24284         }
24285         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_funding_pubkey(this_ptr);
24286         return nativeResponseValue;
24287 }
24288         // void ChannelPublicKeys_set_funding_pubkey(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24289 /* @internal */
24290 export function ChannelPublicKeys_set_funding_pubkey(this_ptr: number, val: number): void {
24291         if(!isWasmInitialized) {
24292                 throw new Error("initializeWasm() must be awaited first!");
24293         }
24294         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_funding_pubkey(this_ptr, val);
24295         // debug statements here
24296 }
24297         // struct LDKPublicKey ChannelPublicKeys_get_revocation_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
24298 /* @internal */
24299 export function ChannelPublicKeys_get_revocation_basepoint(this_ptr: number): number {
24300         if(!isWasmInitialized) {
24301                 throw new Error("initializeWasm() must be awaited first!");
24302         }
24303         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_revocation_basepoint(this_ptr);
24304         return nativeResponseValue;
24305 }
24306         // void ChannelPublicKeys_set_revocation_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24307 /* @internal */
24308 export function ChannelPublicKeys_set_revocation_basepoint(this_ptr: number, val: number): void {
24309         if(!isWasmInitialized) {
24310                 throw new Error("initializeWasm() must be awaited first!");
24311         }
24312         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_revocation_basepoint(this_ptr, val);
24313         // debug statements here
24314 }
24315         // struct LDKPublicKey ChannelPublicKeys_get_payment_point(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
24316 /* @internal */
24317 export function ChannelPublicKeys_get_payment_point(this_ptr: number): number {
24318         if(!isWasmInitialized) {
24319                 throw new Error("initializeWasm() must be awaited first!");
24320         }
24321         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_payment_point(this_ptr);
24322         return nativeResponseValue;
24323 }
24324         // void ChannelPublicKeys_set_payment_point(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24325 /* @internal */
24326 export function ChannelPublicKeys_set_payment_point(this_ptr: number, val: number): void {
24327         if(!isWasmInitialized) {
24328                 throw new Error("initializeWasm() must be awaited first!");
24329         }
24330         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_payment_point(this_ptr, val);
24331         // debug statements here
24332 }
24333         // struct LDKPublicKey ChannelPublicKeys_get_delayed_payment_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
24334 /* @internal */
24335 export function ChannelPublicKeys_get_delayed_payment_basepoint(this_ptr: number): number {
24336         if(!isWasmInitialized) {
24337                 throw new Error("initializeWasm() must be awaited first!");
24338         }
24339         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_delayed_payment_basepoint(this_ptr);
24340         return nativeResponseValue;
24341 }
24342         // void ChannelPublicKeys_set_delayed_payment_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24343 /* @internal */
24344 export function ChannelPublicKeys_set_delayed_payment_basepoint(this_ptr: number, val: number): void {
24345         if(!isWasmInitialized) {
24346                 throw new Error("initializeWasm() must be awaited first!");
24347         }
24348         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_delayed_payment_basepoint(this_ptr, val);
24349         // debug statements here
24350 }
24351         // struct LDKPublicKey ChannelPublicKeys_get_htlc_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
24352 /* @internal */
24353 export function ChannelPublicKeys_get_htlc_basepoint(this_ptr: number): number {
24354         if(!isWasmInitialized) {
24355                 throw new Error("initializeWasm() must be awaited first!");
24356         }
24357         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_htlc_basepoint(this_ptr);
24358         return nativeResponseValue;
24359 }
24360         // void ChannelPublicKeys_set_htlc_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24361 /* @internal */
24362 export function ChannelPublicKeys_set_htlc_basepoint(this_ptr: number, val: number): void {
24363         if(!isWasmInitialized) {
24364                 throw new Error("initializeWasm() must be awaited first!");
24365         }
24366         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_htlc_basepoint(this_ptr, val);
24367         // debug statements here
24368 }
24369         // MUST_USE_RES struct LDKChannelPublicKeys ChannelPublicKeys_new(struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg);
24370 /* @internal */
24371 export function ChannelPublicKeys_new(funding_pubkey_arg: number, revocation_basepoint_arg: number, payment_point_arg: number, delayed_payment_basepoint_arg: number, htlc_basepoint_arg: number): number {
24372         if(!isWasmInitialized) {
24373                 throw new Error("initializeWasm() must be awaited first!");
24374         }
24375         const nativeResponseValue = wasm.TS_ChannelPublicKeys_new(funding_pubkey_arg, revocation_basepoint_arg, payment_point_arg, delayed_payment_basepoint_arg, htlc_basepoint_arg);
24376         return nativeResponseValue;
24377 }
24378         // uintptr_t ChannelPublicKeys_clone_ptr(LDKChannelPublicKeys *NONNULL_PTR arg);
24379 /* @internal */
24380 export function ChannelPublicKeys_clone_ptr(arg: number): number {
24381         if(!isWasmInitialized) {
24382                 throw new Error("initializeWasm() must be awaited first!");
24383         }
24384         const nativeResponseValue = wasm.TS_ChannelPublicKeys_clone_ptr(arg);
24385         return nativeResponseValue;
24386 }
24387         // struct LDKChannelPublicKeys ChannelPublicKeys_clone(const struct LDKChannelPublicKeys *NONNULL_PTR orig);
24388 /* @internal */
24389 export function ChannelPublicKeys_clone(orig: number): number {
24390         if(!isWasmInitialized) {
24391                 throw new Error("initializeWasm() must be awaited first!");
24392         }
24393         const nativeResponseValue = wasm.TS_ChannelPublicKeys_clone(orig);
24394         return nativeResponseValue;
24395 }
24396         // struct LDKCVec_u8Z ChannelPublicKeys_write(const struct LDKChannelPublicKeys *NONNULL_PTR obj);
24397 /* @internal */
24398 export function ChannelPublicKeys_write(obj: number): number {
24399         if(!isWasmInitialized) {
24400                 throw new Error("initializeWasm() must be awaited first!");
24401         }
24402         const nativeResponseValue = wasm.TS_ChannelPublicKeys_write(obj);
24403         return nativeResponseValue;
24404 }
24405         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ ChannelPublicKeys_read(struct LDKu8slice ser);
24406 /* @internal */
24407 export function ChannelPublicKeys_read(ser: number): number {
24408         if(!isWasmInitialized) {
24409                 throw new Error("initializeWasm() must be awaited first!");
24410         }
24411         const nativeResponseValue = wasm.TS_ChannelPublicKeys_read(ser);
24412         return nativeResponseValue;
24413 }
24414         // MUST_USE_RES struct LDKCResult_TxCreationKeysErrorZ TxCreationKeys_derive_new(struct LDKPublicKey per_commitment_point, struct LDKPublicKey broadcaster_delayed_payment_base, struct LDKPublicKey broadcaster_htlc_base, struct LDKPublicKey countersignatory_revocation_base, struct LDKPublicKey countersignatory_htlc_base);
24415 /* @internal */
24416 export function TxCreationKeys_derive_new(per_commitment_point: number, broadcaster_delayed_payment_base: number, broadcaster_htlc_base: number, countersignatory_revocation_base: number, countersignatory_htlc_base: number): number {
24417         if(!isWasmInitialized) {
24418                 throw new Error("initializeWasm() must be awaited first!");
24419         }
24420         const nativeResponseValue = wasm.TS_TxCreationKeys_derive_new(per_commitment_point, broadcaster_delayed_payment_base, broadcaster_htlc_base, countersignatory_revocation_base, countersignatory_htlc_base);
24421         return nativeResponseValue;
24422 }
24423         // MUST_USE_RES struct LDKCResult_TxCreationKeysErrorZ TxCreationKeys_from_channel_static_keys(struct LDKPublicKey per_commitment_point, const struct LDKChannelPublicKeys *NONNULL_PTR broadcaster_keys, const struct LDKChannelPublicKeys *NONNULL_PTR countersignatory_keys);
24424 /* @internal */
24425 export function TxCreationKeys_from_channel_static_keys(per_commitment_point: number, broadcaster_keys: number, countersignatory_keys: number): number {
24426         if(!isWasmInitialized) {
24427                 throw new Error("initializeWasm() must be awaited first!");
24428         }
24429         const nativeResponseValue = wasm.TS_TxCreationKeys_from_channel_static_keys(per_commitment_point, broadcaster_keys, countersignatory_keys);
24430         return nativeResponseValue;
24431 }
24432         // struct LDKCVec_u8Z get_revokeable_redeemscript(struct LDKPublicKey revocation_key, uint16_t contest_delay, struct LDKPublicKey broadcaster_delayed_payment_key);
24433 /* @internal */
24434 export function get_revokeable_redeemscript(revocation_key: number, contest_delay: number, broadcaster_delayed_payment_key: number): number {
24435         if(!isWasmInitialized) {
24436                 throw new Error("initializeWasm() must be awaited first!");
24437         }
24438         const nativeResponseValue = wasm.TS_get_revokeable_redeemscript(revocation_key, contest_delay, broadcaster_delayed_payment_key);
24439         return nativeResponseValue;
24440 }
24441         // void HTLCOutputInCommitment_free(struct LDKHTLCOutputInCommitment this_obj);
24442 /* @internal */
24443 export function HTLCOutputInCommitment_free(this_obj: number): void {
24444         if(!isWasmInitialized) {
24445                 throw new Error("initializeWasm() must be awaited first!");
24446         }
24447         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_free(this_obj);
24448         // debug statements here
24449 }
24450         // bool HTLCOutputInCommitment_get_offered(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
24451 /* @internal */
24452 export function HTLCOutputInCommitment_get_offered(this_ptr: number): boolean {
24453         if(!isWasmInitialized) {
24454                 throw new Error("initializeWasm() must be awaited first!");
24455         }
24456         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_offered(this_ptr);
24457         return nativeResponseValue;
24458 }
24459         // void HTLCOutputInCommitment_set_offered(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, bool val);
24460 /* @internal */
24461 export function HTLCOutputInCommitment_set_offered(this_ptr: number, val: boolean): void {
24462         if(!isWasmInitialized) {
24463                 throw new Error("initializeWasm() must be awaited first!");
24464         }
24465         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_offered(this_ptr, val);
24466         // debug statements here
24467 }
24468         // uint64_t HTLCOutputInCommitment_get_amount_msat(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
24469 /* @internal */
24470 export function HTLCOutputInCommitment_get_amount_msat(this_ptr: number): bigint {
24471         if(!isWasmInitialized) {
24472                 throw new Error("initializeWasm() must be awaited first!");
24473         }
24474         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_amount_msat(this_ptr);
24475         return nativeResponseValue;
24476 }
24477         // void HTLCOutputInCommitment_set_amount_msat(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint64_t val);
24478 /* @internal */
24479 export function HTLCOutputInCommitment_set_amount_msat(this_ptr: number, val: bigint): void {
24480         if(!isWasmInitialized) {
24481                 throw new Error("initializeWasm() must be awaited first!");
24482         }
24483         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_amount_msat(this_ptr, val);
24484         // debug statements here
24485 }
24486         // uint32_t HTLCOutputInCommitment_get_cltv_expiry(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
24487 /* @internal */
24488 export function HTLCOutputInCommitment_get_cltv_expiry(this_ptr: number): number {
24489         if(!isWasmInitialized) {
24490                 throw new Error("initializeWasm() must be awaited first!");
24491         }
24492         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_cltv_expiry(this_ptr);
24493         return nativeResponseValue;
24494 }
24495         // void HTLCOutputInCommitment_set_cltv_expiry(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint32_t val);
24496 /* @internal */
24497 export function HTLCOutputInCommitment_set_cltv_expiry(this_ptr: number, val: number): void {
24498         if(!isWasmInitialized) {
24499                 throw new Error("initializeWasm() must be awaited first!");
24500         }
24501         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_cltv_expiry(this_ptr, val);
24502         // debug statements here
24503 }
24504         // const uint8_t (*HTLCOutputInCommitment_get_payment_hash(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr))[32];
24505 /* @internal */
24506 export function HTLCOutputInCommitment_get_payment_hash(this_ptr: number): number {
24507         if(!isWasmInitialized) {
24508                 throw new Error("initializeWasm() must be awaited first!");
24509         }
24510         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_payment_hash(this_ptr);
24511         return nativeResponseValue;
24512 }
24513         // void HTLCOutputInCommitment_set_payment_hash(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
24514 /* @internal */
24515 export function HTLCOutputInCommitment_set_payment_hash(this_ptr: number, val: number): void {
24516         if(!isWasmInitialized) {
24517                 throw new Error("initializeWasm() must be awaited first!");
24518         }
24519         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_payment_hash(this_ptr, val);
24520         // debug statements here
24521 }
24522         // struct LDKCOption_u32Z HTLCOutputInCommitment_get_transaction_output_index(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
24523 /* @internal */
24524 export function HTLCOutputInCommitment_get_transaction_output_index(this_ptr: number): number {
24525         if(!isWasmInitialized) {
24526                 throw new Error("initializeWasm() must be awaited first!");
24527         }
24528         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_transaction_output_index(this_ptr);
24529         return nativeResponseValue;
24530 }
24531         // void HTLCOutputInCommitment_set_transaction_output_index(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
24532 /* @internal */
24533 export function HTLCOutputInCommitment_set_transaction_output_index(this_ptr: number, val: number): void {
24534         if(!isWasmInitialized) {
24535                 throw new Error("initializeWasm() must be awaited first!");
24536         }
24537         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_transaction_output_index(this_ptr, val);
24538         // debug statements here
24539 }
24540         // MUST_USE_RES struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_new(bool offered_arg, uint64_t amount_msat_arg, uint32_t cltv_expiry_arg, struct LDKThirtyTwoBytes payment_hash_arg, struct LDKCOption_u32Z transaction_output_index_arg);
24541 /* @internal */
24542 export function HTLCOutputInCommitment_new(offered_arg: boolean, amount_msat_arg: bigint, cltv_expiry_arg: number, payment_hash_arg: number, transaction_output_index_arg: number): number {
24543         if(!isWasmInitialized) {
24544                 throw new Error("initializeWasm() must be awaited first!");
24545         }
24546         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_new(offered_arg, amount_msat_arg, cltv_expiry_arg, payment_hash_arg, transaction_output_index_arg);
24547         return nativeResponseValue;
24548 }
24549         // uintptr_t HTLCOutputInCommitment_clone_ptr(LDKHTLCOutputInCommitment *NONNULL_PTR arg);
24550 /* @internal */
24551 export function HTLCOutputInCommitment_clone_ptr(arg: number): number {
24552         if(!isWasmInitialized) {
24553                 throw new Error("initializeWasm() must be awaited first!");
24554         }
24555         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_clone_ptr(arg);
24556         return nativeResponseValue;
24557 }
24558         // struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_clone(const struct LDKHTLCOutputInCommitment *NONNULL_PTR orig);
24559 /* @internal */
24560 export function HTLCOutputInCommitment_clone(orig: number): number {
24561         if(!isWasmInitialized) {
24562                 throw new Error("initializeWasm() must be awaited first!");
24563         }
24564         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_clone(orig);
24565         return nativeResponseValue;
24566 }
24567         // struct LDKCVec_u8Z HTLCOutputInCommitment_write(const struct LDKHTLCOutputInCommitment *NONNULL_PTR obj);
24568 /* @internal */
24569 export function HTLCOutputInCommitment_write(obj: number): number {
24570         if(!isWasmInitialized) {
24571                 throw new Error("initializeWasm() must be awaited first!");
24572         }
24573         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_write(obj);
24574         return nativeResponseValue;
24575 }
24576         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ HTLCOutputInCommitment_read(struct LDKu8slice ser);
24577 /* @internal */
24578 export function HTLCOutputInCommitment_read(ser: number): number {
24579         if(!isWasmInitialized) {
24580                 throw new Error("initializeWasm() must be awaited first!");
24581         }
24582         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_read(ser);
24583         return nativeResponseValue;
24584 }
24585         // struct LDKCVec_u8Z get_htlc_redeemscript(const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, bool opt_anchors, const struct LDKTxCreationKeys *NONNULL_PTR keys);
24586 /* @internal */
24587 export function get_htlc_redeemscript(htlc: number, opt_anchors: boolean, keys: number): number {
24588         if(!isWasmInitialized) {
24589                 throw new Error("initializeWasm() must be awaited first!");
24590         }
24591         const nativeResponseValue = wasm.TS_get_htlc_redeemscript(htlc, opt_anchors, keys);
24592         return nativeResponseValue;
24593 }
24594         // struct LDKCVec_u8Z make_funding_redeemscript(struct LDKPublicKey broadcaster, struct LDKPublicKey countersignatory);
24595 /* @internal */
24596 export function make_funding_redeemscript(broadcaster: number, countersignatory: number): number {
24597         if(!isWasmInitialized) {
24598                 throw new Error("initializeWasm() must be awaited first!");
24599         }
24600         const nativeResponseValue = wasm.TS_make_funding_redeemscript(broadcaster, countersignatory);
24601         return nativeResponseValue;
24602 }
24603         // struct LDKTransaction build_htlc_transaction(const uint8_t (*commitment_txid)[32], uint32_t feerate_per_kw, uint16_t contest_delay, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, bool opt_anchors, struct LDKPublicKey broadcaster_delayed_payment_key, struct LDKPublicKey revocation_key);
24604 /* @internal */
24605 export function build_htlc_transaction(commitment_txid: number, feerate_per_kw: number, contest_delay: number, htlc: number, opt_anchors: boolean, broadcaster_delayed_payment_key: number, revocation_key: number): number {
24606         if(!isWasmInitialized) {
24607                 throw new Error("initializeWasm() must be awaited first!");
24608         }
24609         const nativeResponseValue = wasm.TS_build_htlc_transaction(commitment_txid, feerate_per_kw, contest_delay, htlc, opt_anchors, broadcaster_delayed_payment_key, revocation_key);
24610         return nativeResponseValue;
24611 }
24612         // struct LDKCVec_u8Z get_anchor_redeemscript(struct LDKPublicKey funding_pubkey);
24613 /* @internal */
24614 export function get_anchor_redeemscript(funding_pubkey: number): number {
24615         if(!isWasmInitialized) {
24616                 throw new Error("initializeWasm() must be awaited first!");
24617         }
24618         const nativeResponseValue = wasm.TS_get_anchor_redeemscript(funding_pubkey);
24619         return nativeResponseValue;
24620 }
24621         // void ChannelTransactionParameters_free(struct LDKChannelTransactionParameters this_obj);
24622 /* @internal */
24623 export function ChannelTransactionParameters_free(this_obj: number): void {
24624         if(!isWasmInitialized) {
24625                 throw new Error("initializeWasm() must be awaited first!");
24626         }
24627         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_free(this_obj);
24628         // debug statements here
24629 }
24630         // struct LDKChannelPublicKeys ChannelTransactionParameters_get_holder_pubkeys(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
24631 /* @internal */
24632 export function ChannelTransactionParameters_get_holder_pubkeys(this_ptr: number): number {
24633         if(!isWasmInitialized) {
24634                 throw new Error("initializeWasm() must be awaited first!");
24635         }
24636         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_holder_pubkeys(this_ptr);
24637         return nativeResponseValue;
24638 }
24639         // void ChannelTransactionParameters_set_holder_pubkeys(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
24640 /* @internal */
24641 export function ChannelTransactionParameters_set_holder_pubkeys(this_ptr: number, val: number): void {
24642         if(!isWasmInitialized) {
24643                 throw new Error("initializeWasm() must be awaited first!");
24644         }
24645         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_holder_pubkeys(this_ptr, val);
24646         // debug statements here
24647 }
24648         // uint16_t ChannelTransactionParameters_get_holder_selected_contest_delay(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
24649 /* @internal */
24650 export function ChannelTransactionParameters_get_holder_selected_contest_delay(this_ptr: number): number {
24651         if(!isWasmInitialized) {
24652                 throw new Error("initializeWasm() must be awaited first!");
24653         }
24654         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_holder_selected_contest_delay(this_ptr);
24655         return nativeResponseValue;
24656 }
24657         // void ChannelTransactionParameters_set_holder_selected_contest_delay(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
24658 /* @internal */
24659 export function ChannelTransactionParameters_set_holder_selected_contest_delay(this_ptr: number, val: number): void {
24660         if(!isWasmInitialized) {
24661                 throw new Error("initializeWasm() must be awaited first!");
24662         }
24663         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_holder_selected_contest_delay(this_ptr, val);
24664         // debug statements here
24665 }
24666         // bool ChannelTransactionParameters_get_is_outbound_from_holder(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
24667 /* @internal */
24668 export function ChannelTransactionParameters_get_is_outbound_from_holder(this_ptr: number): boolean {
24669         if(!isWasmInitialized) {
24670                 throw new Error("initializeWasm() must be awaited first!");
24671         }
24672         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_is_outbound_from_holder(this_ptr);
24673         return nativeResponseValue;
24674 }
24675         // void ChannelTransactionParameters_set_is_outbound_from_holder(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, bool val);
24676 /* @internal */
24677 export function ChannelTransactionParameters_set_is_outbound_from_holder(this_ptr: number, val: boolean): void {
24678         if(!isWasmInitialized) {
24679                 throw new Error("initializeWasm() must be awaited first!");
24680         }
24681         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_is_outbound_from_holder(this_ptr, val);
24682         // debug statements here
24683 }
24684         // struct LDKCounterpartyChannelTransactionParameters ChannelTransactionParameters_get_counterparty_parameters(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
24685 /* @internal */
24686 export function ChannelTransactionParameters_get_counterparty_parameters(this_ptr: number): number {
24687         if(!isWasmInitialized) {
24688                 throw new Error("initializeWasm() must be awaited first!");
24689         }
24690         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_counterparty_parameters(this_ptr);
24691         return nativeResponseValue;
24692 }
24693         // void ChannelTransactionParameters_set_counterparty_parameters(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKCounterpartyChannelTransactionParameters val);
24694 /* @internal */
24695 export function ChannelTransactionParameters_set_counterparty_parameters(this_ptr: number, val: number): void {
24696         if(!isWasmInitialized) {
24697                 throw new Error("initializeWasm() must be awaited first!");
24698         }
24699         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_counterparty_parameters(this_ptr, val);
24700         // debug statements here
24701 }
24702         // struct LDKOutPoint ChannelTransactionParameters_get_funding_outpoint(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
24703 /* @internal */
24704 export function ChannelTransactionParameters_get_funding_outpoint(this_ptr: number): number {
24705         if(!isWasmInitialized) {
24706                 throw new Error("initializeWasm() must be awaited first!");
24707         }
24708         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_funding_outpoint(this_ptr);
24709         return nativeResponseValue;
24710 }
24711         // void ChannelTransactionParameters_set_funding_outpoint(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKOutPoint val);
24712 /* @internal */
24713 export function ChannelTransactionParameters_set_funding_outpoint(this_ptr: number, val: number): void {
24714         if(!isWasmInitialized) {
24715                 throw new Error("initializeWasm() must be awaited first!");
24716         }
24717         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_funding_outpoint(this_ptr, val);
24718         // debug statements here
24719 }
24720         // enum LDKCOption_NoneZ ChannelTransactionParameters_get_opt_anchors(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
24721 /* @internal */
24722 export function ChannelTransactionParameters_get_opt_anchors(this_ptr: number): COption_NoneZ {
24723         if(!isWasmInitialized) {
24724                 throw new Error("initializeWasm() must be awaited first!");
24725         }
24726         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_opt_anchors(this_ptr);
24727         return nativeResponseValue;
24728 }
24729         // void ChannelTransactionParameters_set_opt_anchors(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val);
24730 /* @internal */
24731 export function ChannelTransactionParameters_set_opt_anchors(this_ptr: number, val: COption_NoneZ): void {
24732         if(!isWasmInitialized) {
24733                 throw new Error("initializeWasm() must be awaited first!");
24734         }
24735         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_opt_anchors(this_ptr, val);
24736         // debug statements here
24737 }
24738         // MUST_USE_RES struct LDKChannelTransactionParameters ChannelTransactionParameters_new(struct LDKChannelPublicKeys holder_pubkeys_arg, uint16_t holder_selected_contest_delay_arg, bool is_outbound_from_holder_arg, struct LDKCounterpartyChannelTransactionParameters counterparty_parameters_arg, struct LDKOutPoint funding_outpoint_arg, enum LDKCOption_NoneZ opt_anchors_arg);
24739 /* @internal */
24740 export function ChannelTransactionParameters_new(holder_pubkeys_arg: number, holder_selected_contest_delay_arg: number, is_outbound_from_holder_arg: boolean, counterparty_parameters_arg: number, funding_outpoint_arg: number, opt_anchors_arg: COption_NoneZ): number {
24741         if(!isWasmInitialized) {
24742                 throw new Error("initializeWasm() must be awaited first!");
24743         }
24744         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_new(holder_pubkeys_arg, holder_selected_contest_delay_arg, is_outbound_from_holder_arg, counterparty_parameters_arg, funding_outpoint_arg, opt_anchors_arg);
24745         return nativeResponseValue;
24746 }
24747         // uintptr_t ChannelTransactionParameters_clone_ptr(LDKChannelTransactionParameters *NONNULL_PTR arg);
24748 /* @internal */
24749 export function ChannelTransactionParameters_clone_ptr(arg: number): number {
24750         if(!isWasmInitialized) {
24751                 throw new Error("initializeWasm() must be awaited first!");
24752         }
24753         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_clone_ptr(arg);
24754         return nativeResponseValue;
24755 }
24756         // struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig);
24757 /* @internal */
24758 export function ChannelTransactionParameters_clone(orig: number): number {
24759         if(!isWasmInitialized) {
24760                 throw new Error("initializeWasm() must be awaited first!");
24761         }
24762         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_clone(orig);
24763         return nativeResponseValue;
24764 }
24765         // void CounterpartyChannelTransactionParameters_free(struct LDKCounterpartyChannelTransactionParameters this_obj);
24766 /* @internal */
24767 export function CounterpartyChannelTransactionParameters_free(this_obj: number): void {
24768         if(!isWasmInitialized) {
24769                 throw new Error("initializeWasm() must be awaited first!");
24770         }
24771         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_free(this_obj);
24772         // debug statements here
24773 }
24774         // struct LDKChannelPublicKeys CounterpartyChannelTransactionParameters_get_pubkeys(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
24775 /* @internal */
24776 export function CounterpartyChannelTransactionParameters_get_pubkeys(this_ptr: number): number {
24777         if(!isWasmInitialized) {
24778                 throw new Error("initializeWasm() must be awaited first!");
24779         }
24780         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_get_pubkeys(this_ptr);
24781         return nativeResponseValue;
24782 }
24783         // void CounterpartyChannelTransactionParameters_set_pubkeys(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
24784 /* @internal */
24785 export function CounterpartyChannelTransactionParameters_set_pubkeys(this_ptr: number, val: number): void {
24786         if(!isWasmInitialized) {
24787                 throw new Error("initializeWasm() must be awaited first!");
24788         }
24789         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_set_pubkeys(this_ptr, val);
24790         // debug statements here
24791 }
24792         // uint16_t CounterpartyChannelTransactionParameters_get_selected_contest_delay(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
24793 /* @internal */
24794 export function CounterpartyChannelTransactionParameters_get_selected_contest_delay(this_ptr: number): number {
24795         if(!isWasmInitialized) {
24796                 throw new Error("initializeWasm() must be awaited first!");
24797         }
24798         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_get_selected_contest_delay(this_ptr);
24799         return nativeResponseValue;
24800 }
24801         // void CounterpartyChannelTransactionParameters_set_selected_contest_delay(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
24802 /* @internal */
24803 export function CounterpartyChannelTransactionParameters_set_selected_contest_delay(this_ptr: number, val: number): void {
24804         if(!isWasmInitialized) {
24805                 throw new Error("initializeWasm() must be awaited first!");
24806         }
24807         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_set_selected_contest_delay(this_ptr, val);
24808         // debug statements here
24809 }
24810         // MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_new(struct LDKChannelPublicKeys pubkeys_arg, uint16_t selected_contest_delay_arg);
24811 /* @internal */
24812 export function CounterpartyChannelTransactionParameters_new(pubkeys_arg: number, selected_contest_delay_arg: number): number {
24813         if(!isWasmInitialized) {
24814                 throw new Error("initializeWasm() must be awaited first!");
24815         }
24816         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_new(pubkeys_arg, selected_contest_delay_arg);
24817         return nativeResponseValue;
24818 }
24819         // uintptr_t CounterpartyChannelTransactionParameters_clone_ptr(LDKCounterpartyChannelTransactionParameters *NONNULL_PTR arg);
24820 /* @internal */
24821 export function CounterpartyChannelTransactionParameters_clone_ptr(arg: number): number {
24822         if(!isWasmInitialized) {
24823                 throw new Error("initializeWasm() must be awaited first!");
24824         }
24825         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_clone_ptr(arg);
24826         return nativeResponseValue;
24827 }
24828         // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig);
24829 /* @internal */
24830 export function CounterpartyChannelTransactionParameters_clone(orig: number): number {
24831         if(!isWasmInitialized) {
24832                 throw new Error("initializeWasm() must be awaited first!");
24833         }
24834         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_clone(orig);
24835         return nativeResponseValue;
24836 }
24837         // MUST_USE_RES bool ChannelTransactionParameters_is_populated(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
24838 /* @internal */
24839 export function ChannelTransactionParameters_is_populated(this_arg: number): boolean {
24840         if(!isWasmInitialized) {
24841                 throw new Error("initializeWasm() must be awaited first!");
24842         }
24843         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_is_populated(this_arg);
24844         return nativeResponseValue;
24845 }
24846         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_holder_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
24847 /* @internal */
24848 export function ChannelTransactionParameters_as_holder_broadcastable(this_arg: number): number {
24849         if(!isWasmInitialized) {
24850                 throw new Error("initializeWasm() must be awaited first!");
24851         }
24852         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_as_holder_broadcastable(this_arg);
24853         return nativeResponseValue;
24854 }
24855         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_counterparty_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
24856 /* @internal */
24857 export function ChannelTransactionParameters_as_counterparty_broadcastable(this_arg: number): number {
24858         if(!isWasmInitialized) {
24859                 throw new Error("initializeWasm() must be awaited first!");
24860         }
24861         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_as_counterparty_broadcastable(this_arg);
24862         return nativeResponseValue;
24863 }
24864         // struct LDKCVec_u8Z CounterpartyChannelTransactionParameters_write(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR obj);
24865 /* @internal */
24866 export function CounterpartyChannelTransactionParameters_write(obj: number): number {
24867         if(!isWasmInitialized) {
24868                 throw new Error("initializeWasm() must be awaited first!");
24869         }
24870         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_write(obj);
24871         return nativeResponseValue;
24872 }
24873         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CounterpartyChannelTransactionParameters_read(struct LDKu8slice ser);
24874 /* @internal */
24875 export function CounterpartyChannelTransactionParameters_read(ser: number): number {
24876         if(!isWasmInitialized) {
24877                 throw new Error("initializeWasm() must be awaited first!");
24878         }
24879         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_read(ser);
24880         return nativeResponseValue;
24881 }
24882         // struct LDKCVec_u8Z ChannelTransactionParameters_write(const struct LDKChannelTransactionParameters *NONNULL_PTR obj);
24883 /* @internal */
24884 export function ChannelTransactionParameters_write(obj: number): number {
24885         if(!isWasmInitialized) {
24886                 throw new Error("initializeWasm() must be awaited first!");
24887         }
24888         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_write(obj);
24889         return nativeResponseValue;
24890 }
24891         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ ChannelTransactionParameters_read(struct LDKu8slice ser);
24892 /* @internal */
24893 export function ChannelTransactionParameters_read(ser: number): number {
24894         if(!isWasmInitialized) {
24895                 throw new Error("initializeWasm() must be awaited first!");
24896         }
24897         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_read(ser);
24898         return nativeResponseValue;
24899 }
24900         // void DirectedChannelTransactionParameters_free(struct LDKDirectedChannelTransactionParameters this_obj);
24901 /* @internal */
24902 export function DirectedChannelTransactionParameters_free(this_obj: number): void {
24903         if(!isWasmInitialized) {
24904                 throw new Error("initializeWasm() must be awaited first!");
24905         }
24906         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_free(this_obj);
24907         // debug statements here
24908 }
24909         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_broadcaster_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
24910 /* @internal */
24911 export function DirectedChannelTransactionParameters_broadcaster_pubkeys(this_arg: number): number {
24912         if(!isWasmInitialized) {
24913                 throw new Error("initializeWasm() must be awaited first!");
24914         }
24915         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_broadcaster_pubkeys(this_arg);
24916         return nativeResponseValue;
24917 }
24918         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_countersignatory_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
24919 /* @internal */
24920 export function DirectedChannelTransactionParameters_countersignatory_pubkeys(this_arg: number): number {
24921         if(!isWasmInitialized) {
24922                 throw new Error("initializeWasm() must be awaited first!");
24923         }
24924         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_countersignatory_pubkeys(this_arg);
24925         return nativeResponseValue;
24926 }
24927         // MUST_USE_RES uint16_t DirectedChannelTransactionParameters_contest_delay(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
24928 /* @internal */
24929 export function DirectedChannelTransactionParameters_contest_delay(this_arg: number): number {
24930         if(!isWasmInitialized) {
24931                 throw new Error("initializeWasm() must be awaited first!");
24932         }
24933         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_contest_delay(this_arg);
24934         return nativeResponseValue;
24935 }
24936         // MUST_USE_RES bool DirectedChannelTransactionParameters_is_outbound(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
24937 /* @internal */
24938 export function DirectedChannelTransactionParameters_is_outbound(this_arg: number): boolean {
24939         if(!isWasmInitialized) {
24940                 throw new Error("initializeWasm() must be awaited first!");
24941         }
24942         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_is_outbound(this_arg);
24943         return nativeResponseValue;
24944 }
24945         // MUST_USE_RES struct LDKOutPoint DirectedChannelTransactionParameters_funding_outpoint(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
24946 /* @internal */
24947 export function DirectedChannelTransactionParameters_funding_outpoint(this_arg: number): number {
24948         if(!isWasmInitialized) {
24949                 throw new Error("initializeWasm() must be awaited first!");
24950         }
24951         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_funding_outpoint(this_arg);
24952         return nativeResponseValue;
24953 }
24954         // MUST_USE_RES bool DirectedChannelTransactionParameters_opt_anchors(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
24955 /* @internal */
24956 export function DirectedChannelTransactionParameters_opt_anchors(this_arg: number): boolean {
24957         if(!isWasmInitialized) {
24958                 throw new Error("initializeWasm() must be awaited first!");
24959         }
24960         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_opt_anchors(this_arg);
24961         return nativeResponseValue;
24962 }
24963         // void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this_obj);
24964 /* @internal */
24965 export function HolderCommitmentTransaction_free(this_obj: number): void {
24966         if(!isWasmInitialized) {
24967                 throw new Error("initializeWasm() must be awaited first!");
24968         }
24969         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_free(this_obj);
24970         // debug statements here
24971 }
24972         // struct LDKSignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
24973 /* @internal */
24974 export function HolderCommitmentTransaction_get_counterparty_sig(this_ptr: number): number {
24975         if(!isWasmInitialized) {
24976                 throw new Error("initializeWasm() must be awaited first!");
24977         }
24978         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_get_counterparty_sig(this_ptr);
24979         return nativeResponseValue;
24980 }
24981         // void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKSignature val);
24982 /* @internal */
24983 export function HolderCommitmentTransaction_set_counterparty_sig(this_ptr: number, val: number): void {
24984         if(!isWasmInitialized) {
24985                 throw new Error("initializeWasm() must be awaited first!");
24986         }
24987         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_set_counterparty_sig(this_ptr, val);
24988         // debug statements here
24989 }
24990         // void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
24991 /* @internal */
24992 export function HolderCommitmentTransaction_set_counterparty_htlc_sigs(this_ptr: number, val: number): void {
24993         if(!isWasmInitialized) {
24994                 throw new Error("initializeWasm() must be awaited first!");
24995         }
24996         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_set_counterparty_htlc_sigs(this_ptr, val);
24997         // debug statements here
24998 }
24999         // uintptr_t HolderCommitmentTransaction_clone_ptr(LDKHolderCommitmentTransaction *NONNULL_PTR arg);
25000 /* @internal */
25001 export function HolderCommitmentTransaction_clone_ptr(arg: number): number {
25002         if(!isWasmInitialized) {
25003                 throw new Error("initializeWasm() must be awaited first!");
25004         }
25005         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_clone_ptr(arg);
25006         return nativeResponseValue;
25007 }
25008         // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_clone(const struct LDKHolderCommitmentTransaction *NONNULL_PTR orig);
25009 /* @internal */
25010 export function HolderCommitmentTransaction_clone(orig: number): number {
25011         if(!isWasmInitialized) {
25012                 throw new Error("initializeWasm() must be awaited first!");
25013         }
25014         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_clone(orig);
25015         return nativeResponseValue;
25016 }
25017         // struct LDKCVec_u8Z HolderCommitmentTransaction_write(const struct LDKHolderCommitmentTransaction *NONNULL_PTR obj);
25018 /* @internal */
25019 export function HolderCommitmentTransaction_write(obj: number): number {
25020         if(!isWasmInitialized) {
25021                 throw new Error("initializeWasm() must be awaited first!");
25022         }
25023         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_write(obj);
25024         return nativeResponseValue;
25025 }
25026         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ HolderCommitmentTransaction_read(struct LDKu8slice ser);
25027 /* @internal */
25028 export function HolderCommitmentTransaction_read(ser: number): number {
25029         if(!isWasmInitialized) {
25030                 throw new Error("initializeWasm() must be awaited first!");
25031         }
25032         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_read(ser);
25033         return nativeResponseValue;
25034 }
25035         // MUST_USE_RES struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_new(struct LDKCommitmentTransaction commitment_tx, struct LDKSignature counterparty_sig, struct LDKCVec_SignatureZ counterparty_htlc_sigs, struct LDKPublicKey holder_funding_key, struct LDKPublicKey counterparty_funding_key);
25036 /* @internal */
25037 export function HolderCommitmentTransaction_new(commitment_tx: number, counterparty_sig: number, counterparty_htlc_sigs: number, holder_funding_key: number, counterparty_funding_key: number): number {
25038         if(!isWasmInitialized) {
25039                 throw new Error("initializeWasm() must be awaited first!");
25040         }
25041         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_new(commitment_tx, counterparty_sig, counterparty_htlc_sigs, holder_funding_key, counterparty_funding_key);
25042         return nativeResponseValue;
25043 }
25044         // void BuiltCommitmentTransaction_free(struct LDKBuiltCommitmentTransaction this_obj);
25045 /* @internal */
25046 export function BuiltCommitmentTransaction_free(this_obj: number): void {
25047         if(!isWasmInitialized) {
25048                 throw new Error("initializeWasm() must be awaited first!");
25049         }
25050         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_free(this_obj);
25051         // debug statements here
25052 }
25053         // struct LDKTransaction BuiltCommitmentTransaction_get_transaction(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr);
25054 /* @internal */
25055 export function BuiltCommitmentTransaction_get_transaction(this_ptr: number): number {
25056         if(!isWasmInitialized) {
25057                 throw new Error("initializeWasm() must be awaited first!");
25058         }
25059         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_transaction(this_ptr);
25060         return nativeResponseValue;
25061 }
25062         // void BuiltCommitmentTransaction_set_transaction(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKTransaction val);
25063 /* @internal */
25064 export function BuiltCommitmentTransaction_set_transaction(this_ptr: number, val: number): void {
25065         if(!isWasmInitialized) {
25066                 throw new Error("initializeWasm() must be awaited first!");
25067         }
25068         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_set_transaction(this_ptr, val);
25069         // debug statements here
25070 }
25071         // const uint8_t (*BuiltCommitmentTransaction_get_txid(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr))[32];
25072 /* @internal */
25073 export function BuiltCommitmentTransaction_get_txid(this_ptr: number): number {
25074         if(!isWasmInitialized) {
25075                 throw new Error("initializeWasm() must be awaited first!");
25076         }
25077         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_txid(this_ptr);
25078         return nativeResponseValue;
25079 }
25080         // void BuiltCommitmentTransaction_set_txid(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25081 /* @internal */
25082 export function BuiltCommitmentTransaction_set_txid(this_ptr: number, val: number): void {
25083         if(!isWasmInitialized) {
25084                 throw new Error("initializeWasm() must be awaited first!");
25085         }
25086         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_set_txid(this_ptr, val);
25087         // debug statements here
25088 }
25089         // MUST_USE_RES struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_new(struct LDKTransaction transaction_arg, struct LDKThirtyTwoBytes txid_arg);
25090 /* @internal */
25091 export function BuiltCommitmentTransaction_new(transaction_arg: number, txid_arg: number): number {
25092         if(!isWasmInitialized) {
25093                 throw new Error("initializeWasm() must be awaited first!");
25094         }
25095         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_new(transaction_arg, txid_arg);
25096         return nativeResponseValue;
25097 }
25098         // uintptr_t BuiltCommitmentTransaction_clone_ptr(LDKBuiltCommitmentTransaction *NONNULL_PTR arg);
25099 /* @internal */
25100 export function BuiltCommitmentTransaction_clone_ptr(arg: number): number {
25101         if(!isWasmInitialized) {
25102                 throw new Error("initializeWasm() must be awaited first!");
25103         }
25104         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_clone_ptr(arg);
25105         return nativeResponseValue;
25106 }
25107         // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_clone(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR orig);
25108 /* @internal */
25109 export function BuiltCommitmentTransaction_clone(orig: number): number {
25110         if(!isWasmInitialized) {
25111                 throw new Error("initializeWasm() must be awaited first!");
25112         }
25113         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_clone(orig);
25114         return nativeResponseValue;
25115 }
25116         // struct LDKCVec_u8Z BuiltCommitmentTransaction_write(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR obj);
25117 /* @internal */
25118 export function BuiltCommitmentTransaction_write(obj: number): number {
25119         if(!isWasmInitialized) {
25120                 throw new Error("initializeWasm() must be awaited first!");
25121         }
25122         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_write(obj);
25123         return nativeResponseValue;
25124 }
25125         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ BuiltCommitmentTransaction_read(struct LDKu8slice ser);
25126 /* @internal */
25127 export function BuiltCommitmentTransaction_read(ser: number): number {
25128         if(!isWasmInitialized) {
25129                 throw new Error("initializeWasm() must be awaited first!");
25130         }
25131         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_read(ser);
25132         return nativeResponseValue;
25133 }
25134         // MUST_USE_RES struct LDKThirtyTwoBytes BuiltCommitmentTransaction_get_sighash_all(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
25135 /* @internal */
25136 export function BuiltCommitmentTransaction_get_sighash_all(this_arg: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
25137         if(!isWasmInitialized) {
25138                 throw new Error("initializeWasm() must be awaited first!");
25139         }
25140         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_sighash_all(this_arg, funding_redeemscript, channel_value_satoshis);
25141         return nativeResponseValue;
25142 }
25143         // MUST_USE_RES struct LDKSignature BuiltCommitmentTransaction_sign(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
25144 /* @internal */
25145 export function BuiltCommitmentTransaction_sign(this_arg: number, funding_key: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
25146         if(!isWasmInitialized) {
25147                 throw new Error("initializeWasm() must be awaited first!");
25148         }
25149         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_sign(this_arg, funding_key, funding_redeemscript, channel_value_satoshis);
25150         return nativeResponseValue;
25151 }
25152         // void ClosingTransaction_free(struct LDKClosingTransaction this_obj);
25153 /* @internal */
25154 export function ClosingTransaction_free(this_obj: number): void {
25155         if(!isWasmInitialized) {
25156                 throw new Error("initializeWasm() must be awaited first!");
25157         }
25158         const nativeResponseValue = wasm.TS_ClosingTransaction_free(this_obj);
25159         // debug statements here
25160 }
25161         // uintptr_t ClosingTransaction_clone_ptr(LDKClosingTransaction *NONNULL_PTR arg);
25162 /* @internal */
25163 export function ClosingTransaction_clone_ptr(arg: number): number {
25164         if(!isWasmInitialized) {
25165                 throw new Error("initializeWasm() must be awaited first!");
25166         }
25167         const nativeResponseValue = wasm.TS_ClosingTransaction_clone_ptr(arg);
25168         return nativeResponseValue;
25169 }
25170         // struct LDKClosingTransaction ClosingTransaction_clone(const struct LDKClosingTransaction *NONNULL_PTR orig);
25171 /* @internal */
25172 export function ClosingTransaction_clone(orig: number): number {
25173         if(!isWasmInitialized) {
25174                 throw new Error("initializeWasm() must be awaited first!");
25175         }
25176         const nativeResponseValue = wasm.TS_ClosingTransaction_clone(orig);
25177         return nativeResponseValue;
25178 }
25179         // uint64_t ClosingTransaction_hash(const struct LDKClosingTransaction *NONNULL_PTR o);
25180 /* @internal */
25181 export function ClosingTransaction_hash(o: number): bigint {
25182         if(!isWasmInitialized) {
25183                 throw new Error("initializeWasm() must be awaited first!");
25184         }
25185         const nativeResponseValue = wasm.TS_ClosingTransaction_hash(o);
25186         return nativeResponseValue;
25187 }
25188         // MUST_USE_RES struct LDKClosingTransaction ClosingTransaction_new(uint64_t to_holder_value_sat, uint64_t to_counterparty_value_sat, struct LDKCVec_u8Z to_holder_script, struct LDKCVec_u8Z to_counterparty_script, struct LDKOutPoint funding_outpoint);
25189 /* @internal */
25190 export function ClosingTransaction_new(to_holder_value_sat: bigint, to_counterparty_value_sat: bigint, to_holder_script: number, to_counterparty_script: number, funding_outpoint: number): number {
25191         if(!isWasmInitialized) {
25192                 throw new Error("initializeWasm() must be awaited first!");
25193         }
25194         const nativeResponseValue = wasm.TS_ClosingTransaction_new(to_holder_value_sat, to_counterparty_value_sat, to_holder_script, to_counterparty_script, funding_outpoint);
25195         return nativeResponseValue;
25196 }
25197         // MUST_USE_RES struct LDKTrustedClosingTransaction ClosingTransaction_trust(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
25198 /* @internal */
25199 export function ClosingTransaction_trust(this_arg: number): number {
25200         if(!isWasmInitialized) {
25201                 throw new Error("initializeWasm() must be awaited first!");
25202         }
25203         const nativeResponseValue = wasm.TS_ClosingTransaction_trust(this_arg);
25204         return nativeResponseValue;
25205 }
25206         // MUST_USE_RES struct LDKCResult_TrustedClosingTransactionNoneZ ClosingTransaction_verify(const struct LDKClosingTransaction *NONNULL_PTR this_arg, struct LDKOutPoint funding_outpoint);
25207 /* @internal */
25208 export function ClosingTransaction_verify(this_arg: number, funding_outpoint: number): number {
25209         if(!isWasmInitialized) {
25210                 throw new Error("initializeWasm() must be awaited first!");
25211         }
25212         const nativeResponseValue = wasm.TS_ClosingTransaction_verify(this_arg, funding_outpoint);
25213         return nativeResponseValue;
25214 }
25215         // MUST_USE_RES uint64_t ClosingTransaction_to_holder_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
25216 /* @internal */
25217 export function ClosingTransaction_to_holder_value_sat(this_arg: number): bigint {
25218         if(!isWasmInitialized) {
25219                 throw new Error("initializeWasm() must be awaited first!");
25220         }
25221         const nativeResponseValue = wasm.TS_ClosingTransaction_to_holder_value_sat(this_arg);
25222         return nativeResponseValue;
25223 }
25224         // MUST_USE_RES uint64_t ClosingTransaction_to_counterparty_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
25225 /* @internal */
25226 export function ClosingTransaction_to_counterparty_value_sat(this_arg: number): bigint {
25227         if(!isWasmInitialized) {
25228                 throw new Error("initializeWasm() must be awaited first!");
25229         }
25230         const nativeResponseValue = wasm.TS_ClosingTransaction_to_counterparty_value_sat(this_arg);
25231         return nativeResponseValue;
25232 }
25233         // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_holder_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
25234 /* @internal */
25235 export function ClosingTransaction_to_holder_script(this_arg: number): number {
25236         if(!isWasmInitialized) {
25237                 throw new Error("initializeWasm() must be awaited first!");
25238         }
25239         const nativeResponseValue = wasm.TS_ClosingTransaction_to_holder_script(this_arg);
25240         return nativeResponseValue;
25241 }
25242         // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_counterparty_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
25243 /* @internal */
25244 export function ClosingTransaction_to_counterparty_script(this_arg: number): number {
25245         if(!isWasmInitialized) {
25246                 throw new Error("initializeWasm() must be awaited first!");
25247         }
25248         const nativeResponseValue = wasm.TS_ClosingTransaction_to_counterparty_script(this_arg);
25249         return nativeResponseValue;
25250 }
25251         // void TrustedClosingTransaction_free(struct LDKTrustedClosingTransaction this_obj);
25252 /* @internal */
25253 export function TrustedClosingTransaction_free(this_obj: number): void {
25254         if(!isWasmInitialized) {
25255                 throw new Error("initializeWasm() must be awaited first!");
25256         }
25257         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_free(this_obj);
25258         // debug statements here
25259 }
25260         // MUST_USE_RES struct LDKTransaction TrustedClosingTransaction_built_transaction(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg);
25261 /* @internal */
25262 export function TrustedClosingTransaction_built_transaction(this_arg: number): number {
25263         if(!isWasmInitialized) {
25264                 throw new Error("initializeWasm() must be awaited first!");
25265         }
25266         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_built_transaction(this_arg);
25267         return nativeResponseValue;
25268 }
25269         // MUST_USE_RES struct LDKThirtyTwoBytes TrustedClosingTransaction_get_sighash_all(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg, struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
25270 /* @internal */
25271 export function TrustedClosingTransaction_get_sighash_all(this_arg: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
25272         if(!isWasmInitialized) {
25273                 throw new Error("initializeWasm() must be awaited first!");
25274         }
25275         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_get_sighash_all(this_arg, funding_redeemscript, channel_value_satoshis);
25276         return nativeResponseValue;
25277 }
25278         // MUST_USE_RES struct LDKSignature TrustedClosingTransaction_sign(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
25279 /* @internal */
25280 export function TrustedClosingTransaction_sign(this_arg: number, funding_key: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
25281         if(!isWasmInitialized) {
25282                 throw new Error("initializeWasm() must be awaited first!");
25283         }
25284         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_sign(this_arg, funding_key, funding_redeemscript, channel_value_satoshis);
25285         return nativeResponseValue;
25286 }
25287         // void CommitmentTransaction_free(struct LDKCommitmentTransaction this_obj);
25288 /* @internal */
25289 export function CommitmentTransaction_free(this_obj: number): void {
25290         if(!isWasmInitialized) {
25291                 throw new Error("initializeWasm() must be awaited first!");
25292         }
25293         const nativeResponseValue = wasm.TS_CommitmentTransaction_free(this_obj);
25294         // debug statements here
25295 }
25296         // uintptr_t CommitmentTransaction_clone_ptr(LDKCommitmentTransaction *NONNULL_PTR arg);
25297 /* @internal */
25298 export function CommitmentTransaction_clone_ptr(arg: number): number {
25299         if(!isWasmInitialized) {
25300                 throw new Error("initializeWasm() must be awaited first!");
25301         }
25302         const nativeResponseValue = wasm.TS_CommitmentTransaction_clone_ptr(arg);
25303         return nativeResponseValue;
25304 }
25305         // struct LDKCommitmentTransaction CommitmentTransaction_clone(const struct LDKCommitmentTransaction *NONNULL_PTR orig);
25306 /* @internal */
25307 export function CommitmentTransaction_clone(orig: number): number {
25308         if(!isWasmInitialized) {
25309                 throw new Error("initializeWasm() must be awaited first!");
25310         }
25311         const nativeResponseValue = wasm.TS_CommitmentTransaction_clone(orig);
25312         return nativeResponseValue;
25313 }
25314         // struct LDKCVec_u8Z CommitmentTransaction_write(const struct LDKCommitmentTransaction *NONNULL_PTR obj);
25315 /* @internal */
25316 export function CommitmentTransaction_write(obj: number): number {
25317         if(!isWasmInitialized) {
25318                 throw new Error("initializeWasm() must be awaited first!");
25319         }
25320         const nativeResponseValue = wasm.TS_CommitmentTransaction_write(obj);
25321         return nativeResponseValue;
25322 }
25323         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CommitmentTransaction_read(struct LDKu8slice ser);
25324 /* @internal */
25325 export function CommitmentTransaction_read(ser: number): number {
25326         if(!isWasmInitialized) {
25327                 throw new Error("initializeWasm() must be awaited first!");
25328         }
25329         const nativeResponseValue = wasm.TS_CommitmentTransaction_read(ser);
25330         return nativeResponseValue;
25331 }
25332         // MUST_USE_RES uint64_t CommitmentTransaction_commitment_number(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
25333 /* @internal */
25334 export function CommitmentTransaction_commitment_number(this_arg: number): bigint {
25335         if(!isWasmInitialized) {
25336                 throw new Error("initializeWasm() must be awaited first!");
25337         }
25338         const nativeResponseValue = wasm.TS_CommitmentTransaction_commitment_number(this_arg);
25339         return nativeResponseValue;
25340 }
25341         // MUST_USE_RES uint64_t CommitmentTransaction_to_broadcaster_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
25342 /* @internal */
25343 export function CommitmentTransaction_to_broadcaster_value_sat(this_arg: number): bigint {
25344         if(!isWasmInitialized) {
25345                 throw new Error("initializeWasm() must be awaited first!");
25346         }
25347         const nativeResponseValue = wasm.TS_CommitmentTransaction_to_broadcaster_value_sat(this_arg);
25348         return nativeResponseValue;
25349 }
25350         // MUST_USE_RES uint64_t CommitmentTransaction_to_countersignatory_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
25351 /* @internal */
25352 export function CommitmentTransaction_to_countersignatory_value_sat(this_arg: number): bigint {
25353         if(!isWasmInitialized) {
25354                 throw new Error("initializeWasm() must be awaited first!");
25355         }
25356         const nativeResponseValue = wasm.TS_CommitmentTransaction_to_countersignatory_value_sat(this_arg);
25357         return nativeResponseValue;
25358 }
25359         // MUST_USE_RES uint32_t CommitmentTransaction_feerate_per_kw(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
25360 /* @internal */
25361 export function CommitmentTransaction_feerate_per_kw(this_arg: number): number {
25362         if(!isWasmInitialized) {
25363                 throw new Error("initializeWasm() must be awaited first!");
25364         }
25365         const nativeResponseValue = wasm.TS_CommitmentTransaction_feerate_per_kw(this_arg);
25366         return nativeResponseValue;
25367 }
25368         // MUST_USE_RES struct LDKTrustedCommitmentTransaction CommitmentTransaction_trust(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
25369 /* @internal */
25370 export function CommitmentTransaction_trust(this_arg: number): number {
25371         if(!isWasmInitialized) {
25372                 throw new Error("initializeWasm() must be awaited first!");
25373         }
25374         const nativeResponseValue = wasm.TS_CommitmentTransaction_trust(this_arg);
25375         return nativeResponseValue;
25376 }
25377         // MUST_USE_RES struct LDKCResult_TrustedCommitmentTransactionNoneZ CommitmentTransaction_verify(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg, const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR channel_parameters, const struct LDKChannelPublicKeys *NONNULL_PTR broadcaster_keys, const struct LDKChannelPublicKeys *NONNULL_PTR countersignatory_keys);
25378 /* @internal */
25379 export function CommitmentTransaction_verify(this_arg: number, channel_parameters: number, broadcaster_keys: number, countersignatory_keys: number): number {
25380         if(!isWasmInitialized) {
25381                 throw new Error("initializeWasm() must be awaited first!");
25382         }
25383         const nativeResponseValue = wasm.TS_CommitmentTransaction_verify(this_arg, channel_parameters, broadcaster_keys, countersignatory_keys);
25384         return nativeResponseValue;
25385 }
25386         // void TrustedCommitmentTransaction_free(struct LDKTrustedCommitmentTransaction this_obj);
25387 /* @internal */
25388 export function TrustedCommitmentTransaction_free(this_obj: number): void {
25389         if(!isWasmInitialized) {
25390                 throw new Error("initializeWasm() must be awaited first!");
25391         }
25392         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_free(this_obj);
25393         // debug statements here
25394 }
25395         // MUST_USE_RES struct LDKThirtyTwoBytes TrustedCommitmentTransaction_txid(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
25396 /* @internal */
25397 export function TrustedCommitmentTransaction_txid(this_arg: number): number {
25398         if(!isWasmInitialized) {
25399                 throw new Error("initializeWasm() must be awaited first!");
25400         }
25401         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_txid(this_arg);
25402         return nativeResponseValue;
25403 }
25404         // MUST_USE_RES struct LDKBuiltCommitmentTransaction TrustedCommitmentTransaction_built_transaction(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
25405 /* @internal */
25406 export function TrustedCommitmentTransaction_built_transaction(this_arg: number): number {
25407         if(!isWasmInitialized) {
25408                 throw new Error("initializeWasm() must be awaited first!");
25409         }
25410         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_built_transaction(this_arg);
25411         return nativeResponseValue;
25412 }
25413         // MUST_USE_RES struct LDKTxCreationKeys TrustedCommitmentTransaction_keys(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
25414 /* @internal */
25415 export function TrustedCommitmentTransaction_keys(this_arg: number): number {
25416         if(!isWasmInitialized) {
25417                 throw new Error("initializeWasm() must be awaited first!");
25418         }
25419         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_keys(this_arg);
25420         return nativeResponseValue;
25421 }
25422         // MUST_USE_RES bool TrustedCommitmentTransaction_opt_anchors(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
25423 /* @internal */
25424 export function TrustedCommitmentTransaction_opt_anchors(this_arg: number): boolean {
25425         if(!isWasmInitialized) {
25426                 throw new Error("initializeWasm() must be awaited first!");
25427         }
25428         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_opt_anchors(this_arg);
25429         return nativeResponseValue;
25430 }
25431         // MUST_USE_RES struct LDKCResult_CVec_SignatureZNoneZ TrustedCommitmentTransaction_get_htlc_sigs(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*htlc_base_key)[32], const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR channel_parameters);
25432 /* @internal */
25433 export function TrustedCommitmentTransaction_get_htlc_sigs(this_arg: number, htlc_base_key: number, channel_parameters: number): number {
25434         if(!isWasmInitialized) {
25435                 throw new Error("initializeWasm() must be awaited first!");
25436         }
25437         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_get_htlc_sigs(this_arg, htlc_base_key, channel_parameters);
25438         return nativeResponseValue;
25439 }
25440         // uint64_t get_commitment_transaction_number_obscure_factor(struct LDKPublicKey broadcaster_payment_basepoint, struct LDKPublicKey countersignatory_payment_basepoint, bool outbound_from_broadcaster);
25441 /* @internal */
25442 export function get_commitment_transaction_number_obscure_factor(broadcaster_payment_basepoint: number, countersignatory_payment_basepoint: number, outbound_from_broadcaster: boolean): bigint {
25443         if(!isWasmInitialized) {
25444                 throw new Error("initializeWasm() must be awaited first!");
25445         }
25446         const nativeResponseValue = wasm.TS_get_commitment_transaction_number_obscure_factor(broadcaster_payment_basepoint, countersignatory_payment_basepoint, outbound_from_broadcaster);
25447         return nativeResponseValue;
25448 }
25449         // bool InitFeatures_eq(const struct LDKInitFeatures *NONNULL_PTR a, const struct LDKInitFeatures *NONNULL_PTR b);
25450 /* @internal */
25451 export function InitFeatures_eq(a: number, b: number): boolean {
25452         if(!isWasmInitialized) {
25453                 throw new Error("initializeWasm() must be awaited first!");
25454         }
25455         const nativeResponseValue = wasm.TS_InitFeatures_eq(a, b);
25456         return nativeResponseValue;
25457 }
25458         // bool NodeFeatures_eq(const struct LDKNodeFeatures *NONNULL_PTR a, const struct LDKNodeFeatures *NONNULL_PTR b);
25459 /* @internal */
25460 export function NodeFeatures_eq(a: number, b: number): boolean {
25461         if(!isWasmInitialized) {
25462                 throw new Error("initializeWasm() must be awaited first!");
25463         }
25464         const nativeResponseValue = wasm.TS_NodeFeatures_eq(a, b);
25465         return nativeResponseValue;
25466 }
25467         // bool ChannelFeatures_eq(const struct LDKChannelFeatures *NONNULL_PTR a, const struct LDKChannelFeatures *NONNULL_PTR b);
25468 /* @internal */
25469 export function ChannelFeatures_eq(a: number, b: number): boolean {
25470         if(!isWasmInitialized) {
25471                 throw new Error("initializeWasm() must be awaited first!");
25472         }
25473         const nativeResponseValue = wasm.TS_ChannelFeatures_eq(a, b);
25474         return nativeResponseValue;
25475 }
25476         // bool InvoiceFeatures_eq(const struct LDKInvoiceFeatures *NONNULL_PTR a, const struct LDKInvoiceFeatures *NONNULL_PTR b);
25477 /* @internal */
25478 export function InvoiceFeatures_eq(a: number, b: number): boolean {
25479         if(!isWasmInitialized) {
25480                 throw new Error("initializeWasm() must be awaited first!");
25481         }
25482         const nativeResponseValue = wasm.TS_InvoiceFeatures_eq(a, b);
25483         return nativeResponseValue;
25484 }
25485         // bool ChannelTypeFeatures_eq(const struct LDKChannelTypeFeatures *NONNULL_PTR a, const struct LDKChannelTypeFeatures *NONNULL_PTR b);
25486 /* @internal */
25487 export function ChannelTypeFeatures_eq(a: number, b: number): boolean {
25488         if(!isWasmInitialized) {
25489                 throw new Error("initializeWasm() must be awaited first!");
25490         }
25491         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_eq(a, b);
25492         return nativeResponseValue;
25493 }
25494         // uintptr_t InitFeatures_clone_ptr(LDKInitFeatures *NONNULL_PTR arg);
25495 /* @internal */
25496 export function InitFeatures_clone_ptr(arg: number): number {
25497         if(!isWasmInitialized) {
25498                 throw new Error("initializeWasm() must be awaited first!");
25499         }
25500         const nativeResponseValue = wasm.TS_InitFeatures_clone_ptr(arg);
25501         return nativeResponseValue;
25502 }
25503         // struct LDKInitFeatures InitFeatures_clone(const struct LDKInitFeatures *NONNULL_PTR orig);
25504 /* @internal */
25505 export function InitFeatures_clone(orig: number): number {
25506         if(!isWasmInitialized) {
25507                 throw new Error("initializeWasm() must be awaited first!");
25508         }
25509         const nativeResponseValue = wasm.TS_InitFeatures_clone(orig);
25510         return nativeResponseValue;
25511 }
25512         // uintptr_t NodeFeatures_clone_ptr(LDKNodeFeatures *NONNULL_PTR arg);
25513 /* @internal */
25514 export function NodeFeatures_clone_ptr(arg: number): number {
25515         if(!isWasmInitialized) {
25516                 throw new Error("initializeWasm() must be awaited first!");
25517         }
25518         const nativeResponseValue = wasm.TS_NodeFeatures_clone_ptr(arg);
25519         return nativeResponseValue;
25520 }
25521         // struct LDKNodeFeatures NodeFeatures_clone(const struct LDKNodeFeatures *NONNULL_PTR orig);
25522 /* @internal */
25523 export function NodeFeatures_clone(orig: number): number {
25524         if(!isWasmInitialized) {
25525                 throw new Error("initializeWasm() must be awaited first!");
25526         }
25527         const nativeResponseValue = wasm.TS_NodeFeatures_clone(orig);
25528         return nativeResponseValue;
25529 }
25530         // uintptr_t ChannelFeatures_clone_ptr(LDKChannelFeatures *NONNULL_PTR arg);
25531 /* @internal */
25532 export function ChannelFeatures_clone_ptr(arg: number): number {
25533         if(!isWasmInitialized) {
25534                 throw new Error("initializeWasm() must be awaited first!");
25535         }
25536         const nativeResponseValue = wasm.TS_ChannelFeatures_clone_ptr(arg);
25537         return nativeResponseValue;
25538 }
25539         // struct LDKChannelFeatures ChannelFeatures_clone(const struct LDKChannelFeatures *NONNULL_PTR orig);
25540 /* @internal */
25541 export function ChannelFeatures_clone(orig: number): number {
25542         if(!isWasmInitialized) {
25543                 throw new Error("initializeWasm() must be awaited first!");
25544         }
25545         const nativeResponseValue = wasm.TS_ChannelFeatures_clone(orig);
25546         return nativeResponseValue;
25547 }
25548         // uintptr_t InvoiceFeatures_clone_ptr(LDKInvoiceFeatures *NONNULL_PTR arg);
25549 /* @internal */
25550 export function InvoiceFeatures_clone_ptr(arg: number): number {
25551         if(!isWasmInitialized) {
25552                 throw new Error("initializeWasm() must be awaited first!");
25553         }
25554         const nativeResponseValue = wasm.TS_InvoiceFeatures_clone_ptr(arg);
25555         return nativeResponseValue;
25556 }
25557         // struct LDKInvoiceFeatures InvoiceFeatures_clone(const struct LDKInvoiceFeatures *NONNULL_PTR orig);
25558 /* @internal */
25559 export function InvoiceFeatures_clone(orig: number): number {
25560         if(!isWasmInitialized) {
25561                 throw new Error("initializeWasm() must be awaited first!");
25562         }
25563         const nativeResponseValue = wasm.TS_InvoiceFeatures_clone(orig);
25564         return nativeResponseValue;
25565 }
25566         // uintptr_t ChannelTypeFeatures_clone_ptr(LDKChannelTypeFeatures *NONNULL_PTR arg);
25567 /* @internal */
25568 export function ChannelTypeFeatures_clone_ptr(arg: number): number {
25569         if(!isWasmInitialized) {
25570                 throw new Error("initializeWasm() must be awaited first!");
25571         }
25572         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_clone_ptr(arg);
25573         return nativeResponseValue;
25574 }
25575         // struct LDKChannelTypeFeatures ChannelTypeFeatures_clone(const struct LDKChannelTypeFeatures *NONNULL_PTR orig);
25576 /* @internal */
25577 export function ChannelTypeFeatures_clone(orig: number): number {
25578         if(!isWasmInitialized) {
25579                 throw new Error("initializeWasm() must be awaited first!");
25580         }
25581         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_clone(orig);
25582         return nativeResponseValue;
25583 }
25584         // void InitFeatures_free(struct LDKInitFeatures this_obj);
25585 /* @internal */
25586 export function InitFeatures_free(this_obj: number): void {
25587         if(!isWasmInitialized) {
25588                 throw new Error("initializeWasm() must be awaited first!");
25589         }
25590         const nativeResponseValue = wasm.TS_InitFeatures_free(this_obj);
25591         // debug statements here
25592 }
25593         // void NodeFeatures_free(struct LDKNodeFeatures this_obj);
25594 /* @internal */
25595 export function NodeFeatures_free(this_obj: number): void {
25596         if(!isWasmInitialized) {
25597                 throw new Error("initializeWasm() must be awaited first!");
25598         }
25599         const nativeResponseValue = wasm.TS_NodeFeatures_free(this_obj);
25600         // debug statements here
25601 }
25602         // void ChannelFeatures_free(struct LDKChannelFeatures this_obj);
25603 /* @internal */
25604 export function ChannelFeatures_free(this_obj: number): void {
25605         if(!isWasmInitialized) {
25606                 throw new Error("initializeWasm() must be awaited first!");
25607         }
25608         const nativeResponseValue = wasm.TS_ChannelFeatures_free(this_obj);
25609         // debug statements here
25610 }
25611         // void InvoiceFeatures_free(struct LDKInvoiceFeatures this_obj);
25612 /* @internal */
25613 export function InvoiceFeatures_free(this_obj: number): void {
25614         if(!isWasmInitialized) {
25615                 throw new Error("initializeWasm() must be awaited first!");
25616         }
25617         const nativeResponseValue = wasm.TS_InvoiceFeatures_free(this_obj);
25618         // debug statements here
25619 }
25620         // void ChannelTypeFeatures_free(struct LDKChannelTypeFeatures this_obj);
25621 /* @internal */
25622 export function ChannelTypeFeatures_free(this_obj: number): void {
25623         if(!isWasmInitialized) {
25624                 throw new Error("initializeWasm() must be awaited first!");
25625         }
25626         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_free(this_obj);
25627         // debug statements here
25628 }
25629         // MUST_USE_RES struct LDKInitFeatures InitFeatures_empty(void);
25630 /* @internal */
25631 export function InitFeatures_empty(): number {
25632         if(!isWasmInitialized) {
25633                 throw new Error("initializeWasm() must be awaited first!");
25634         }
25635         const nativeResponseValue = wasm.TS_InitFeatures_empty();
25636         return nativeResponseValue;
25637 }
25638         // MUST_USE_RES struct LDKInitFeatures InitFeatures_known(void);
25639 /* @internal */
25640 export function InitFeatures_known(): number {
25641         if(!isWasmInitialized) {
25642                 throw new Error("initializeWasm() must be awaited first!");
25643         }
25644         const nativeResponseValue = wasm.TS_InitFeatures_known();
25645         return nativeResponseValue;
25646 }
25647         // MUST_USE_RES bool InitFeatures_requires_unknown_bits(const struct LDKInitFeatures *NONNULL_PTR this_arg);
25648 /* @internal */
25649 export function InitFeatures_requires_unknown_bits(this_arg: number): boolean {
25650         if(!isWasmInitialized) {
25651                 throw new Error("initializeWasm() must be awaited first!");
25652         }
25653         const nativeResponseValue = wasm.TS_InitFeatures_requires_unknown_bits(this_arg);
25654         return nativeResponseValue;
25655 }
25656         // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_empty(void);
25657 /* @internal */
25658 export function NodeFeatures_empty(): number {
25659         if(!isWasmInitialized) {
25660                 throw new Error("initializeWasm() must be awaited first!");
25661         }
25662         const nativeResponseValue = wasm.TS_NodeFeatures_empty();
25663         return nativeResponseValue;
25664 }
25665         // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_known(void);
25666 /* @internal */
25667 export function NodeFeatures_known(): number {
25668         if(!isWasmInitialized) {
25669                 throw new Error("initializeWasm() must be awaited first!");
25670         }
25671         const nativeResponseValue = wasm.TS_NodeFeatures_known();
25672         return nativeResponseValue;
25673 }
25674         // MUST_USE_RES bool NodeFeatures_requires_unknown_bits(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
25675 /* @internal */
25676 export function NodeFeatures_requires_unknown_bits(this_arg: number): boolean {
25677         if(!isWasmInitialized) {
25678                 throw new Error("initializeWasm() must be awaited first!");
25679         }
25680         const nativeResponseValue = wasm.TS_NodeFeatures_requires_unknown_bits(this_arg);
25681         return nativeResponseValue;
25682 }
25683         // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_empty(void);
25684 /* @internal */
25685 export function ChannelFeatures_empty(): number {
25686         if(!isWasmInitialized) {
25687                 throw new Error("initializeWasm() must be awaited first!");
25688         }
25689         const nativeResponseValue = wasm.TS_ChannelFeatures_empty();
25690         return nativeResponseValue;
25691 }
25692         // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_known(void);
25693 /* @internal */
25694 export function ChannelFeatures_known(): number {
25695         if(!isWasmInitialized) {
25696                 throw new Error("initializeWasm() must be awaited first!");
25697         }
25698         const nativeResponseValue = wasm.TS_ChannelFeatures_known();
25699         return nativeResponseValue;
25700 }
25701         // MUST_USE_RES bool ChannelFeatures_requires_unknown_bits(const struct LDKChannelFeatures *NONNULL_PTR this_arg);
25702 /* @internal */
25703 export function ChannelFeatures_requires_unknown_bits(this_arg: number): boolean {
25704         if(!isWasmInitialized) {
25705                 throw new Error("initializeWasm() must be awaited first!");
25706         }
25707         const nativeResponseValue = wasm.TS_ChannelFeatures_requires_unknown_bits(this_arg);
25708         return nativeResponseValue;
25709 }
25710         // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_empty(void);
25711 /* @internal */
25712 export function InvoiceFeatures_empty(): number {
25713         if(!isWasmInitialized) {
25714                 throw new Error("initializeWasm() must be awaited first!");
25715         }
25716         const nativeResponseValue = wasm.TS_InvoiceFeatures_empty();
25717         return nativeResponseValue;
25718 }
25719         // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_known(void);
25720 /* @internal */
25721 export function InvoiceFeatures_known(): number {
25722         if(!isWasmInitialized) {
25723                 throw new Error("initializeWasm() must be awaited first!");
25724         }
25725         const nativeResponseValue = wasm.TS_InvoiceFeatures_known();
25726         return nativeResponseValue;
25727 }
25728         // MUST_USE_RES bool InvoiceFeatures_requires_unknown_bits(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
25729 /* @internal */
25730 export function InvoiceFeatures_requires_unknown_bits(this_arg: number): boolean {
25731         if(!isWasmInitialized) {
25732                 throw new Error("initializeWasm() must be awaited first!");
25733         }
25734         const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_unknown_bits(this_arg);
25735         return nativeResponseValue;
25736 }
25737         // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_empty(void);
25738 /* @internal */
25739 export function ChannelTypeFeatures_empty(): number {
25740         if(!isWasmInitialized) {
25741                 throw new Error("initializeWasm() must be awaited first!");
25742         }
25743         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_empty();
25744         return nativeResponseValue;
25745 }
25746         // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_known(void);
25747 /* @internal */
25748 export function ChannelTypeFeatures_known(): number {
25749         if(!isWasmInitialized) {
25750                 throw new Error("initializeWasm() must be awaited first!");
25751         }
25752         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_known();
25753         return nativeResponseValue;
25754 }
25755         // MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
25756 /* @internal */
25757 export function ChannelTypeFeatures_requires_unknown_bits(this_arg: number): boolean {
25758         if(!isWasmInitialized) {
25759                 throw new Error("initializeWasm() must be awaited first!");
25760         }
25761         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_unknown_bits(this_arg);
25762         return nativeResponseValue;
25763 }
25764         // struct LDKCVec_u8Z InitFeatures_write(const struct LDKInitFeatures *NONNULL_PTR obj);
25765 /* @internal */
25766 export function InitFeatures_write(obj: number): number {
25767         if(!isWasmInitialized) {
25768                 throw new Error("initializeWasm() must be awaited first!");
25769         }
25770         const nativeResponseValue = wasm.TS_InitFeatures_write(obj);
25771         return nativeResponseValue;
25772 }
25773         // struct LDKCResult_InitFeaturesDecodeErrorZ InitFeatures_read(struct LDKu8slice ser);
25774 /* @internal */
25775 export function InitFeatures_read(ser: number): number {
25776         if(!isWasmInitialized) {
25777                 throw new Error("initializeWasm() must be awaited first!");
25778         }
25779         const nativeResponseValue = wasm.TS_InitFeatures_read(ser);
25780         return nativeResponseValue;
25781 }
25782         // struct LDKCVec_u8Z ChannelFeatures_write(const struct LDKChannelFeatures *NONNULL_PTR obj);
25783 /* @internal */
25784 export function ChannelFeatures_write(obj: number): number {
25785         if(!isWasmInitialized) {
25786                 throw new Error("initializeWasm() must be awaited first!");
25787         }
25788         const nativeResponseValue = wasm.TS_ChannelFeatures_write(obj);
25789         return nativeResponseValue;
25790 }
25791         // struct LDKCResult_ChannelFeaturesDecodeErrorZ ChannelFeatures_read(struct LDKu8slice ser);
25792 /* @internal */
25793 export function ChannelFeatures_read(ser: number): number {
25794         if(!isWasmInitialized) {
25795                 throw new Error("initializeWasm() must be awaited first!");
25796         }
25797         const nativeResponseValue = wasm.TS_ChannelFeatures_read(ser);
25798         return nativeResponseValue;
25799 }
25800         // struct LDKCVec_u8Z NodeFeatures_write(const struct LDKNodeFeatures *NONNULL_PTR obj);
25801 /* @internal */
25802 export function NodeFeatures_write(obj: number): number {
25803         if(!isWasmInitialized) {
25804                 throw new Error("initializeWasm() must be awaited first!");
25805         }
25806         const nativeResponseValue = wasm.TS_NodeFeatures_write(obj);
25807         return nativeResponseValue;
25808 }
25809         // struct LDKCResult_NodeFeaturesDecodeErrorZ NodeFeatures_read(struct LDKu8slice ser);
25810 /* @internal */
25811 export function NodeFeatures_read(ser: number): number {
25812         if(!isWasmInitialized) {
25813                 throw new Error("initializeWasm() must be awaited first!");
25814         }
25815         const nativeResponseValue = wasm.TS_NodeFeatures_read(ser);
25816         return nativeResponseValue;
25817 }
25818         // struct LDKCVec_u8Z InvoiceFeatures_write(const struct LDKInvoiceFeatures *NONNULL_PTR obj);
25819 /* @internal */
25820 export function InvoiceFeatures_write(obj: number): number {
25821         if(!isWasmInitialized) {
25822                 throw new Error("initializeWasm() must be awaited first!");
25823         }
25824         const nativeResponseValue = wasm.TS_InvoiceFeatures_write(obj);
25825         return nativeResponseValue;
25826 }
25827         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ InvoiceFeatures_read(struct LDKu8slice ser);
25828 /* @internal */
25829 export function InvoiceFeatures_read(ser: number): number {
25830         if(!isWasmInitialized) {
25831                 throw new Error("initializeWasm() must be awaited first!");
25832         }
25833         const nativeResponseValue = wasm.TS_InvoiceFeatures_read(ser);
25834         return nativeResponseValue;
25835 }
25836         // struct LDKCVec_u8Z ChannelTypeFeatures_write(const struct LDKChannelTypeFeatures *NONNULL_PTR obj);
25837 /* @internal */
25838 export function ChannelTypeFeatures_write(obj: number): number {
25839         if(!isWasmInitialized) {
25840                 throw new Error("initializeWasm() must be awaited first!");
25841         }
25842         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_write(obj);
25843         return nativeResponseValue;
25844 }
25845         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ ChannelTypeFeatures_read(struct LDKu8slice ser);
25846 /* @internal */
25847 export function ChannelTypeFeatures_read(ser: number): number {
25848         if(!isWasmInitialized) {
25849                 throw new Error("initializeWasm() must be awaited first!");
25850         }
25851         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_read(ser);
25852         return nativeResponseValue;
25853 }
25854         // void ShutdownScript_free(struct LDKShutdownScript this_obj);
25855 /* @internal */
25856 export function ShutdownScript_free(this_obj: number): void {
25857         if(!isWasmInitialized) {
25858                 throw new Error("initializeWasm() must be awaited first!");
25859         }
25860         const nativeResponseValue = wasm.TS_ShutdownScript_free(this_obj);
25861         // debug statements here
25862 }
25863         // uintptr_t ShutdownScript_clone_ptr(LDKShutdownScript *NONNULL_PTR arg);
25864 /* @internal */
25865 export function ShutdownScript_clone_ptr(arg: number): number {
25866         if(!isWasmInitialized) {
25867                 throw new Error("initializeWasm() must be awaited first!");
25868         }
25869         const nativeResponseValue = wasm.TS_ShutdownScript_clone_ptr(arg);
25870         return nativeResponseValue;
25871 }
25872         // struct LDKShutdownScript ShutdownScript_clone(const struct LDKShutdownScript *NONNULL_PTR orig);
25873 /* @internal */
25874 export function ShutdownScript_clone(orig: number): number {
25875         if(!isWasmInitialized) {
25876                 throw new Error("initializeWasm() must be awaited first!");
25877         }
25878         const nativeResponseValue = wasm.TS_ShutdownScript_clone(orig);
25879         return nativeResponseValue;
25880 }
25881         // void InvalidShutdownScript_free(struct LDKInvalidShutdownScript this_obj);
25882 /* @internal */
25883 export function InvalidShutdownScript_free(this_obj: number): void {
25884         if(!isWasmInitialized) {
25885                 throw new Error("initializeWasm() must be awaited first!");
25886         }
25887         const nativeResponseValue = wasm.TS_InvalidShutdownScript_free(this_obj);
25888         // debug statements here
25889 }
25890         // struct LDKu8slice InvalidShutdownScript_get_script(const struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr);
25891 /* @internal */
25892 export function InvalidShutdownScript_get_script(this_ptr: number): number {
25893         if(!isWasmInitialized) {
25894                 throw new Error("initializeWasm() must be awaited first!");
25895         }
25896         const nativeResponseValue = wasm.TS_InvalidShutdownScript_get_script(this_ptr);
25897         return nativeResponseValue;
25898 }
25899         // void InvalidShutdownScript_set_script(struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
25900 /* @internal */
25901 export function InvalidShutdownScript_set_script(this_ptr: number, val: number): void {
25902         if(!isWasmInitialized) {
25903                 throw new Error("initializeWasm() must be awaited first!");
25904         }
25905         const nativeResponseValue = wasm.TS_InvalidShutdownScript_set_script(this_ptr, val);
25906         // debug statements here
25907 }
25908         // MUST_USE_RES struct LDKInvalidShutdownScript InvalidShutdownScript_new(struct LDKCVec_u8Z script_arg);
25909 /* @internal */
25910 export function InvalidShutdownScript_new(script_arg: number): number {
25911         if(!isWasmInitialized) {
25912                 throw new Error("initializeWasm() must be awaited first!");
25913         }
25914         const nativeResponseValue = wasm.TS_InvalidShutdownScript_new(script_arg);
25915         return nativeResponseValue;
25916 }
25917         // uintptr_t InvalidShutdownScript_clone_ptr(LDKInvalidShutdownScript *NONNULL_PTR arg);
25918 /* @internal */
25919 export function InvalidShutdownScript_clone_ptr(arg: number): number {
25920         if(!isWasmInitialized) {
25921                 throw new Error("initializeWasm() must be awaited first!");
25922         }
25923         const nativeResponseValue = wasm.TS_InvalidShutdownScript_clone_ptr(arg);
25924         return nativeResponseValue;
25925 }
25926         // struct LDKInvalidShutdownScript InvalidShutdownScript_clone(const struct LDKInvalidShutdownScript *NONNULL_PTR orig);
25927 /* @internal */
25928 export function InvalidShutdownScript_clone(orig: number): number {
25929         if(!isWasmInitialized) {
25930                 throw new Error("initializeWasm() must be awaited first!");
25931         }
25932         const nativeResponseValue = wasm.TS_InvalidShutdownScript_clone(orig);
25933         return nativeResponseValue;
25934 }
25935         // struct LDKCVec_u8Z ShutdownScript_write(const struct LDKShutdownScript *NONNULL_PTR obj);
25936 /* @internal */
25937 export function ShutdownScript_write(obj: number): number {
25938         if(!isWasmInitialized) {
25939                 throw new Error("initializeWasm() must be awaited first!");
25940         }
25941         const nativeResponseValue = wasm.TS_ShutdownScript_write(obj);
25942         return nativeResponseValue;
25943 }
25944         // struct LDKCResult_ShutdownScriptDecodeErrorZ ShutdownScript_read(struct LDKu8slice ser);
25945 /* @internal */
25946 export function ShutdownScript_read(ser: number): number {
25947         if(!isWasmInitialized) {
25948                 throw new Error("initializeWasm() must be awaited first!");
25949         }
25950         const nativeResponseValue = wasm.TS_ShutdownScript_read(ser);
25951         return nativeResponseValue;
25952 }
25953         // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wpkh(const uint8_t (*pubkey_hash)[20]);
25954 /* @internal */
25955 export function ShutdownScript_new_p2wpkh(pubkey_hash: number): number {
25956         if(!isWasmInitialized) {
25957                 throw new Error("initializeWasm() must be awaited first!");
25958         }
25959         const nativeResponseValue = wasm.TS_ShutdownScript_new_p2wpkh(pubkey_hash);
25960         return nativeResponseValue;
25961 }
25962         // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wsh(const uint8_t (*script_hash)[32]);
25963 /* @internal */
25964 export function ShutdownScript_new_p2wsh(script_hash: number): number {
25965         if(!isWasmInitialized) {
25966                 throw new Error("initializeWasm() must be awaited first!");
25967         }
25968         const nativeResponseValue = wasm.TS_ShutdownScript_new_p2wsh(script_hash);
25969         return nativeResponseValue;
25970 }
25971         // MUST_USE_RES struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ ShutdownScript_new_witness_program(uint8_t version, struct LDKu8slice program);
25972 /* @internal */
25973 export function ShutdownScript_new_witness_program(version: number, program: number): number {
25974         if(!isWasmInitialized) {
25975                 throw new Error("initializeWasm() must be awaited first!");
25976         }
25977         const nativeResponseValue = wasm.TS_ShutdownScript_new_witness_program(version, program);
25978         return nativeResponseValue;
25979 }
25980         // MUST_USE_RES struct LDKCVec_u8Z ShutdownScript_into_inner(struct LDKShutdownScript this_arg);
25981 /* @internal */
25982 export function ShutdownScript_into_inner(this_arg: number): number {
25983         if(!isWasmInitialized) {
25984                 throw new Error("initializeWasm() must be awaited first!");
25985         }
25986         const nativeResponseValue = wasm.TS_ShutdownScript_into_inner(this_arg);
25987         return nativeResponseValue;
25988 }
25989         // MUST_USE_RES struct LDKPublicKey ShutdownScript_as_legacy_pubkey(const struct LDKShutdownScript *NONNULL_PTR this_arg);
25990 /* @internal */
25991 export function ShutdownScript_as_legacy_pubkey(this_arg: number): number {
25992         if(!isWasmInitialized) {
25993                 throw new Error("initializeWasm() must be awaited first!");
25994         }
25995         const nativeResponseValue = wasm.TS_ShutdownScript_as_legacy_pubkey(this_arg);
25996         return nativeResponseValue;
25997 }
25998         // MUST_USE_RES bool ShutdownScript_is_compatible(const struct LDKShutdownScript *NONNULL_PTR this_arg, const struct LDKInitFeatures *NONNULL_PTR features);
25999 /* @internal */
26000 export function ShutdownScript_is_compatible(this_arg: number, features: number): boolean {
26001         if(!isWasmInitialized) {
26002                 throw new Error("initializeWasm() must be awaited first!");
26003         }
26004         const nativeResponseValue = wasm.TS_ShutdownScript_is_compatible(this_arg, features);
26005         return nativeResponseValue;
26006 }
26007         // void CustomMessageReader_free(struct LDKCustomMessageReader this_ptr);
26008 /* @internal */
26009 export function CustomMessageReader_free(this_ptr: number): void {
26010         if(!isWasmInitialized) {
26011                 throw new Error("initializeWasm() must be awaited first!");
26012         }
26013         const nativeResponseValue = wasm.TS_CustomMessageReader_free(this_ptr);
26014         // debug statements here
26015 }
26016         // uintptr_t Type_clone_ptr(LDKType *NONNULL_PTR arg);
26017 /* @internal */
26018 export function Type_clone_ptr(arg: number): number {
26019         if(!isWasmInitialized) {
26020                 throw new Error("initializeWasm() must be awaited first!");
26021         }
26022         const nativeResponseValue = wasm.TS_Type_clone_ptr(arg);
26023         return nativeResponseValue;
26024 }
26025         // struct LDKType Type_clone(const struct LDKType *NONNULL_PTR orig);
26026 /* @internal */
26027 export function Type_clone(orig: number): number {
26028         if(!isWasmInitialized) {
26029                 throw new Error("initializeWasm() must be awaited first!");
26030         }
26031         const nativeResponseValue = wasm.TS_Type_clone(orig);
26032         return nativeResponseValue;
26033 }
26034         // void Type_free(struct LDKType this_ptr);
26035 /* @internal */
26036 export function Type_free(this_ptr: number): void {
26037         if(!isWasmInitialized) {
26038                 throw new Error("initializeWasm() must be awaited first!");
26039         }
26040         const nativeResponseValue = wasm.TS_Type_free(this_ptr);
26041         // debug statements here
26042 }
26043         // void NodeId_free(struct LDKNodeId this_obj);
26044 /* @internal */
26045 export function NodeId_free(this_obj: number): void {
26046         if(!isWasmInitialized) {
26047                 throw new Error("initializeWasm() must be awaited first!");
26048         }
26049         const nativeResponseValue = wasm.TS_NodeId_free(this_obj);
26050         // debug statements here
26051 }
26052         // uintptr_t NodeId_clone_ptr(LDKNodeId *NONNULL_PTR arg);
26053 /* @internal */
26054 export function NodeId_clone_ptr(arg: number): number {
26055         if(!isWasmInitialized) {
26056                 throw new Error("initializeWasm() must be awaited first!");
26057         }
26058         const nativeResponseValue = wasm.TS_NodeId_clone_ptr(arg);
26059         return nativeResponseValue;
26060 }
26061         // struct LDKNodeId NodeId_clone(const struct LDKNodeId *NONNULL_PTR orig);
26062 /* @internal */
26063 export function NodeId_clone(orig: number): number {
26064         if(!isWasmInitialized) {
26065                 throw new Error("initializeWasm() must be awaited first!");
26066         }
26067         const nativeResponseValue = wasm.TS_NodeId_clone(orig);
26068         return nativeResponseValue;
26069 }
26070         // MUST_USE_RES struct LDKNodeId NodeId_from_pubkey(struct LDKPublicKey pubkey);
26071 /* @internal */
26072 export function NodeId_from_pubkey(pubkey: number): number {
26073         if(!isWasmInitialized) {
26074                 throw new Error("initializeWasm() must be awaited first!");
26075         }
26076         const nativeResponseValue = wasm.TS_NodeId_from_pubkey(pubkey);
26077         return nativeResponseValue;
26078 }
26079         // MUST_USE_RES struct LDKu8slice NodeId_as_slice(const struct LDKNodeId *NONNULL_PTR this_arg);
26080 /* @internal */
26081 export function NodeId_as_slice(this_arg: number): number {
26082         if(!isWasmInitialized) {
26083                 throw new Error("initializeWasm() must be awaited first!");
26084         }
26085         const nativeResponseValue = wasm.TS_NodeId_as_slice(this_arg);
26086         return nativeResponseValue;
26087 }
26088         // uint64_t NodeId_hash(const struct LDKNodeId *NONNULL_PTR o);
26089 /* @internal */
26090 export function NodeId_hash(o: number): bigint {
26091         if(!isWasmInitialized) {
26092                 throw new Error("initializeWasm() must be awaited first!");
26093         }
26094         const nativeResponseValue = wasm.TS_NodeId_hash(o);
26095         return nativeResponseValue;
26096 }
26097         // struct LDKCVec_u8Z NodeId_write(const struct LDKNodeId *NONNULL_PTR obj);
26098 /* @internal */
26099 export function NodeId_write(obj: number): number {
26100         if(!isWasmInitialized) {
26101                 throw new Error("initializeWasm() must be awaited first!");
26102         }
26103         const nativeResponseValue = wasm.TS_NodeId_write(obj);
26104         return nativeResponseValue;
26105 }
26106         // struct LDKCResult_NodeIdDecodeErrorZ NodeId_read(struct LDKu8slice ser);
26107 /* @internal */
26108 export function NodeId_read(ser: number): number {
26109         if(!isWasmInitialized) {
26110                 throw new Error("initializeWasm() must be awaited first!");
26111         }
26112         const nativeResponseValue = wasm.TS_NodeId_read(ser);
26113         return nativeResponseValue;
26114 }
26115         // void NetworkGraph_free(struct LDKNetworkGraph this_obj);
26116 /* @internal */
26117 export function NetworkGraph_free(this_obj: number): void {
26118         if(!isWasmInitialized) {
26119                 throw new Error("initializeWasm() must be awaited first!");
26120         }
26121         const nativeResponseValue = wasm.TS_NetworkGraph_free(this_obj);
26122         // debug statements here
26123 }
26124         // uintptr_t NetworkGraph_clone_ptr(LDKNetworkGraph *NONNULL_PTR arg);
26125 /* @internal */
26126 export function NetworkGraph_clone_ptr(arg: number): number {
26127         if(!isWasmInitialized) {
26128                 throw new Error("initializeWasm() must be awaited first!");
26129         }
26130         const nativeResponseValue = wasm.TS_NetworkGraph_clone_ptr(arg);
26131         return nativeResponseValue;
26132 }
26133         // struct LDKNetworkGraph NetworkGraph_clone(const struct LDKNetworkGraph *NONNULL_PTR orig);
26134 /* @internal */
26135 export function NetworkGraph_clone(orig: number): number {
26136         if(!isWasmInitialized) {
26137                 throw new Error("initializeWasm() must be awaited first!");
26138         }
26139         const nativeResponseValue = wasm.TS_NetworkGraph_clone(orig);
26140         return nativeResponseValue;
26141 }
26142         // void ReadOnlyNetworkGraph_free(struct LDKReadOnlyNetworkGraph this_obj);
26143 /* @internal */
26144 export function ReadOnlyNetworkGraph_free(this_obj: number): void {
26145         if(!isWasmInitialized) {
26146                 throw new Error("initializeWasm() must be awaited first!");
26147         }
26148         const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_free(this_obj);
26149         // debug statements here
26150 }
26151         // void NetworkUpdate_free(struct LDKNetworkUpdate this_ptr);
26152 /* @internal */
26153 export function NetworkUpdate_free(this_ptr: number): void {
26154         if(!isWasmInitialized) {
26155                 throw new Error("initializeWasm() must be awaited first!");
26156         }
26157         const nativeResponseValue = wasm.TS_NetworkUpdate_free(this_ptr);
26158         // debug statements here
26159 }
26160         // uintptr_t NetworkUpdate_clone_ptr(LDKNetworkUpdate *NONNULL_PTR arg);
26161 /* @internal */
26162 export function NetworkUpdate_clone_ptr(arg: number): number {
26163         if(!isWasmInitialized) {
26164                 throw new Error("initializeWasm() must be awaited first!");
26165         }
26166         const nativeResponseValue = wasm.TS_NetworkUpdate_clone_ptr(arg);
26167         return nativeResponseValue;
26168 }
26169         // struct LDKNetworkUpdate NetworkUpdate_clone(const struct LDKNetworkUpdate *NONNULL_PTR orig);
26170 /* @internal */
26171 export function NetworkUpdate_clone(orig: number): number {
26172         if(!isWasmInitialized) {
26173                 throw new Error("initializeWasm() must be awaited first!");
26174         }
26175         const nativeResponseValue = wasm.TS_NetworkUpdate_clone(orig);
26176         return nativeResponseValue;
26177 }
26178         // struct LDKNetworkUpdate NetworkUpdate_channel_update_message(struct LDKChannelUpdate msg);
26179 /* @internal */
26180 export function NetworkUpdate_channel_update_message(msg: number): number {
26181         if(!isWasmInitialized) {
26182                 throw new Error("initializeWasm() must be awaited first!");
26183         }
26184         const nativeResponseValue = wasm.TS_NetworkUpdate_channel_update_message(msg);
26185         return nativeResponseValue;
26186 }
26187         // struct LDKNetworkUpdate NetworkUpdate_channel_closed(uint64_t short_channel_id, bool is_permanent);
26188 /* @internal */
26189 export function NetworkUpdate_channel_closed(short_channel_id: bigint, is_permanent: boolean): number {
26190         if(!isWasmInitialized) {
26191                 throw new Error("initializeWasm() must be awaited first!");
26192         }
26193         const nativeResponseValue = wasm.TS_NetworkUpdate_channel_closed(short_channel_id, is_permanent);
26194         return nativeResponseValue;
26195 }
26196         // struct LDKNetworkUpdate NetworkUpdate_node_failure(struct LDKPublicKey node_id, bool is_permanent);
26197 /* @internal */
26198 export function NetworkUpdate_node_failure(node_id: number, is_permanent: boolean): number {
26199         if(!isWasmInitialized) {
26200                 throw new Error("initializeWasm() must be awaited first!");
26201         }
26202         const nativeResponseValue = wasm.TS_NetworkUpdate_node_failure(node_id, is_permanent);
26203         return nativeResponseValue;
26204 }
26205         // struct LDKCVec_u8Z NetworkUpdate_write(const struct LDKNetworkUpdate *NONNULL_PTR obj);
26206 /* @internal */
26207 export function NetworkUpdate_write(obj: number): number {
26208         if(!isWasmInitialized) {
26209                 throw new Error("initializeWasm() must be awaited first!");
26210         }
26211         const nativeResponseValue = wasm.TS_NetworkUpdate_write(obj);
26212         return nativeResponseValue;
26213 }
26214         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ NetworkUpdate_read(struct LDKu8slice ser);
26215 /* @internal */
26216 export function NetworkUpdate_read(ser: number): number {
26217         if(!isWasmInitialized) {
26218                 throw new Error("initializeWasm() must be awaited first!");
26219         }
26220         const nativeResponseValue = wasm.TS_NetworkUpdate_read(ser);
26221         return nativeResponseValue;
26222 }
26223         // struct LDKEventHandler NetGraphMsgHandler_as_EventHandler(const struct LDKNetGraphMsgHandler *NONNULL_PTR this_arg);
26224 /* @internal */
26225 export function NetGraphMsgHandler_as_EventHandler(this_arg: number): number {
26226         if(!isWasmInitialized) {
26227                 throw new Error("initializeWasm() must be awaited first!");
26228         }
26229         const nativeResponseValue = wasm.TS_NetGraphMsgHandler_as_EventHandler(this_arg);
26230         return nativeResponseValue;
26231 }
26232         // void NetGraphMsgHandler_free(struct LDKNetGraphMsgHandler this_obj);
26233 /* @internal */
26234 export function NetGraphMsgHandler_free(this_obj: number): void {
26235         if(!isWasmInitialized) {
26236                 throw new Error("initializeWasm() must be awaited first!");
26237         }
26238         const nativeResponseValue = wasm.TS_NetGraphMsgHandler_free(this_obj);
26239         // debug statements here
26240 }
26241         // MUST_USE_RES struct LDKNetGraphMsgHandler NetGraphMsgHandler_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCOption_AccessZ chain_access, struct LDKLogger logger);
26242 /* @internal */
26243 export function NetGraphMsgHandler_new(network_graph: number, chain_access: number, logger: number): number {
26244         if(!isWasmInitialized) {
26245                 throw new Error("initializeWasm() must be awaited first!");
26246         }
26247         const nativeResponseValue = wasm.TS_NetGraphMsgHandler_new(network_graph, chain_access, logger);
26248         return nativeResponseValue;
26249 }
26250         // void NetGraphMsgHandler_add_chain_access(struct LDKNetGraphMsgHandler *NONNULL_PTR this_arg, struct LDKCOption_AccessZ chain_access);
26251 /* @internal */
26252 export function NetGraphMsgHandler_add_chain_access(this_arg: number, chain_access: number): void {
26253         if(!isWasmInitialized) {
26254                 throw new Error("initializeWasm() must be awaited first!");
26255         }
26256         const nativeResponseValue = wasm.TS_NetGraphMsgHandler_add_chain_access(this_arg, chain_access);
26257         // debug statements here
26258 }
26259         // struct LDKRoutingMessageHandler NetGraphMsgHandler_as_RoutingMessageHandler(const struct LDKNetGraphMsgHandler *NONNULL_PTR this_arg);
26260 /* @internal */
26261 export function NetGraphMsgHandler_as_RoutingMessageHandler(this_arg: number): number {
26262         if(!isWasmInitialized) {
26263                 throw new Error("initializeWasm() must be awaited first!");
26264         }
26265         const nativeResponseValue = wasm.TS_NetGraphMsgHandler_as_RoutingMessageHandler(this_arg);
26266         return nativeResponseValue;
26267 }
26268         // struct LDKMessageSendEventsProvider NetGraphMsgHandler_as_MessageSendEventsProvider(const struct LDKNetGraphMsgHandler *NONNULL_PTR this_arg);
26269 /* @internal */
26270 export function NetGraphMsgHandler_as_MessageSendEventsProvider(this_arg: number): number {
26271         if(!isWasmInitialized) {
26272                 throw new Error("initializeWasm() must be awaited first!");
26273         }
26274         const nativeResponseValue = wasm.TS_NetGraphMsgHandler_as_MessageSendEventsProvider(this_arg);
26275         return nativeResponseValue;
26276 }
26277         // void ChannelUpdateInfo_free(struct LDKChannelUpdateInfo this_obj);
26278 /* @internal */
26279 export function ChannelUpdateInfo_free(this_obj: number): void {
26280         if(!isWasmInitialized) {
26281                 throw new Error("initializeWasm() must be awaited first!");
26282         }
26283         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_free(this_obj);
26284         // debug statements here
26285 }
26286         // uint32_t ChannelUpdateInfo_get_last_update(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
26287 /* @internal */
26288 export function ChannelUpdateInfo_get_last_update(this_ptr: number): number {
26289         if(!isWasmInitialized) {
26290                 throw new Error("initializeWasm() must be awaited first!");
26291         }
26292         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_last_update(this_ptr);
26293         return nativeResponseValue;
26294 }
26295         // void ChannelUpdateInfo_set_last_update(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint32_t val);
26296 /* @internal */
26297 export function ChannelUpdateInfo_set_last_update(this_ptr: number, val: number): void {
26298         if(!isWasmInitialized) {
26299                 throw new Error("initializeWasm() must be awaited first!");
26300         }
26301         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_last_update(this_ptr, val);
26302         // debug statements here
26303 }
26304         // bool ChannelUpdateInfo_get_enabled(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
26305 /* @internal */
26306 export function ChannelUpdateInfo_get_enabled(this_ptr: number): boolean {
26307         if(!isWasmInitialized) {
26308                 throw new Error("initializeWasm() must be awaited first!");
26309         }
26310         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_enabled(this_ptr);
26311         return nativeResponseValue;
26312 }
26313         // void ChannelUpdateInfo_set_enabled(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, bool val);
26314 /* @internal */
26315 export function ChannelUpdateInfo_set_enabled(this_ptr: number, val: boolean): void {
26316         if(!isWasmInitialized) {
26317                 throw new Error("initializeWasm() must be awaited first!");
26318         }
26319         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_enabled(this_ptr, val);
26320         // debug statements here
26321 }
26322         // uint16_t ChannelUpdateInfo_get_cltv_expiry_delta(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
26323 /* @internal */
26324 export function ChannelUpdateInfo_get_cltv_expiry_delta(this_ptr: number): number {
26325         if(!isWasmInitialized) {
26326                 throw new Error("initializeWasm() must be awaited first!");
26327         }
26328         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_cltv_expiry_delta(this_ptr);
26329         return nativeResponseValue;
26330 }
26331         // void ChannelUpdateInfo_set_cltv_expiry_delta(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint16_t val);
26332 /* @internal */
26333 export function ChannelUpdateInfo_set_cltv_expiry_delta(this_ptr: number, val: number): void {
26334         if(!isWasmInitialized) {
26335                 throw new Error("initializeWasm() must be awaited first!");
26336         }
26337         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_cltv_expiry_delta(this_ptr, val);
26338         // debug statements here
26339 }
26340         // uint64_t ChannelUpdateInfo_get_htlc_minimum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
26341 /* @internal */
26342 export function ChannelUpdateInfo_get_htlc_minimum_msat(this_ptr: number): bigint {
26343         if(!isWasmInitialized) {
26344                 throw new Error("initializeWasm() must be awaited first!");
26345         }
26346         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_htlc_minimum_msat(this_ptr);
26347         return nativeResponseValue;
26348 }
26349         // void ChannelUpdateInfo_set_htlc_minimum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
26350 /* @internal */
26351 export function ChannelUpdateInfo_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
26352         if(!isWasmInitialized) {
26353                 throw new Error("initializeWasm() must be awaited first!");
26354         }
26355         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_htlc_minimum_msat(this_ptr, val);
26356         // debug statements here
26357 }
26358         // struct LDKCOption_u64Z ChannelUpdateInfo_get_htlc_maximum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
26359 /* @internal */
26360 export function ChannelUpdateInfo_get_htlc_maximum_msat(this_ptr: number): number {
26361         if(!isWasmInitialized) {
26362                 throw new Error("initializeWasm() must be awaited first!");
26363         }
26364         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_htlc_maximum_msat(this_ptr);
26365         return nativeResponseValue;
26366 }
26367         // void ChannelUpdateInfo_set_htlc_maximum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
26368 /* @internal */
26369 export function ChannelUpdateInfo_set_htlc_maximum_msat(this_ptr: number, val: number): void {
26370         if(!isWasmInitialized) {
26371                 throw new Error("initializeWasm() must be awaited first!");
26372         }
26373         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_htlc_maximum_msat(this_ptr, val);
26374         // debug statements here
26375 }
26376         // struct LDKRoutingFees ChannelUpdateInfo_get_fees(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
26377 /* @internal */
26378 export function ChannelUpdateInfo_get_fees(this_ptr: number): number {
26379         if(!isWasmInitialized) {
26380                 throw new Error("initializeWasm() must be awaited first!");
26381         }
26382         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_fees(this_ptr);
26383         return nativeResponseValue;
26384 }
26385         // void ChannelUpdateInfo_set_fees(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
26386 /* @internal */
26387 export function ChannelUpdateInfo_set_fees(this_ptr: number, val: number): void {
26388         if(!isWasmInitialized) {
26389                 throw new Error("initializeWasm() must be awaited first!");
26390         }
26391         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_fees(this_ptr, val);
26392         // debug statements here
26393 }
26394         // struct LDKChannelUpdate ChannelUpdateInfo_get_last_update_message(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
26395 /* @internal */
26396 export function ChannelUpdateInfo_get_last_update_message(this_ptr: number): number {
26397         if(!isWasmInitialized) {
26398                 throw new Error("initializeWasm() must be awaited first!");
26399         }
26400         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_last_update_message(this_ptr);
26401         return nativeResponseValue;
26402 }
26403         // void ChannelUpdateInfo_set_last_update_message(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdate val);
26404 /* @internal */
26405 export function ChannelUpdateInfo_set_last_update_message(this_ptr: number, val: number): void {
26406         if(!isWasmInitialized) {
26407                 throw new Error("initializeWasm() must be awaited first!");
26408         }
26409         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_last_update_message(this_ptr, val);
26410         // debug statements here
26411 }
26412         // MUST_USE_RES struct LDKChannelUpdateInfo ChannelUpdateInfo_new(uint32_t last_update_arg, bool enabled_arg, uint16_t cltv_expiry_delta_arg, uint64_t htlc_minimum_msat_arg, struct LDKCOption_u64Z htlc_maximum_msat_arg, struct LDKRoutingFees fees_arg, struct LDKChannelUpdate last_update_message_arg);
26413 /* @internal */
26414 export function ChannelUpdateInfo_new(last_update_arg: number, enabled_arg: boolean, cltv_expiry_delta_arg: number, htlc_minimum_msat_arg: bigint, htlc_maximum_msat_arg: number, fees_arg: number, last_update_message_arg: number): number {
26415         if(!isWasmInitialized) {
26416                 throw new Error("initializeWasm() must be awaited first!");
26417         }
26418         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_new(last_update_arg, enabled_arg, cltv_expiry_delta_arg, htlc_minimum_msat_arg, htlc_maximum_msat_arg, fees_arg, last_update_message_arg);
26419         return nativeResponseValue;
26420 }
26421         // uintptr_t ChannelUpdateInfo_clone_ptr(LDKChannelUpdateInfo *NONNULL_PTR arg);
26422 /* @internal */
26423 export function ChannelUpdateInfo_clone_ptr(arg: number): number {
26424         if(!isWasmInitialized) {
26425                 throw new Error("initializeWasm() must be awaited first!");
26426         }
26427         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_clone_ptr(arg);
26428         return nativeResponseValue;
26429 }
26430         // struct LDKChannelUpdateInfo ChannelUpdateInfo_clone(const struct LDKChannelUpdateInfo *NONNULL_PTR orig);
26431 /* @internal */
26432 export function ChannelUpdateInfo_clone(orig: number): number {
26433         if(!isWasmInitialized) {
26434                 throw new Error("initializeWasm() must be awaited first!");
26435         }
26436         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_clone(orig);
26437         return nativeResponseValue;
26438 }
26439         // struct LDKCVec_u8Z ChannelUpdateInfo_write(const struct LDKChannelUpdateInfo *NONNULL_PTR obj);
26440 /* @internal */
26441 export function ChannelUpdateInfo_write(obj: number): number {
26442         if(!isWasmInitialized) {
26443                 throw new Error("initializeWasm() must be awaited first!");
26444         }
26445         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_write(obj);
26446         return nativeResponseValue;
26447 }
26448         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ ChannelUpdateInfo_read(struct LDKu8slice ser);
26449 /* @internal */
26450 export function ChannelUpdateInfo_read(ser: number): number {
26451         if(!isWasmInitialized) {
26452                 throw new Error("initializeWasm() must be awaited first!");
26453         }
26454         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_read(ser);
26455         return nativeResponseValue;
26456 }
26457         // void ChannelInfo_free(struct LDKChannelInfo this_obj);
26458 /* @internal */
26459 export function ChannelInfo_free(this_obj: number): void {
26460         if(!isWasmInitialized) {
26461                 throw new Error("initializeWasm() must be awaited first!");
26462         }
26463         const nativeResponseValue = wasm.TS_ChannelInfo_free(this_obj);
26464         // debug statements here
26465 }
26466         // struct LDKChannelFeatures ChannelInfo_get_features(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
26467 /* @internal */
26468 export function ChannelInfo_get_features(this_ptr: number): number {
26469         if(!isWasmInitialized) {
26470                 throw new Error("initializeWasm() must be awaited first!");
26471         }
26472         const nativeResponseValue = wasm.TS_ChannelInfo_get_features(this_ptr);
26473         return nativeResponseValue;
26474 }
26475         // void ChannelInfo_set_features(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
26476 /* @internal */
26477 export function ChannelInfo_set_features(this_ptr: number, val: number): void {
26478         if(!isWasmInitialized) {
26479                 throw new Error("initializeWasm() must be awaited first!");
26480         }
26481         const nativeResponseValue = wasm.TS_ChannelInfo_set_features(this_ptr, val);
26482         // debug statements here
26483 }
26484         // struct LDKNodeId ChannelInfo_get_node_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
26485 /* @internal */
26486 export function ChannelInfo_get_node_one(this_ptr: number): number {
26487         if(!isWasmInitialized) {
26488                 throw new Error("initializeWasm() must be awaited first!");
26489         }
26490         const nativeResponseValue = wasm.TS_ChannelInfo_get_node_one(this_ptr);
26491         return nativeResponseValue;
26492 }
26493         // void ChannelInfo_set_node_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
26494 /* @internal */
26495 export function ChannelInfo_set_node_one(this_ptr: number, val: number): void {
26496         if(!isWasmInitialized) {
26497                 throw new Error("initializeWasm() must be awaited first!");
26498         }
26499         const nativeResponseValue = wasm.TS_ChannelInfo_set_node_one(this_ptr, val);
26500         // debug statements here
26501 }
26502         // struct LDKChannelUpdateInfo ChannelInfo_get_one_to_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
26503 /* @internal */
26504 export function ChannelInfo_get_one_to_two(this_ptr: number): number {
26505         if(!isWasmInitialized) {
26506                 throw new Error("initializeWasm() must be awaited first!");
26507         }
26508         const nativeResponseValue = wasm.TS_ChannelInfo_get_one_to_two(this_ptr);
26509         return nativeResponseValue;
26510 }
26511         // void ChannelInfo_set_one_to_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
26512 /* @internal */
26513 export function ChannelInfo_set_one_to_two(this_ptr: number, val: number): void {
26514         if(!isWasmInitialized) {
26515                 throw new Error("initializeWasm() must be awaited first!");
26516         }
26517         const nativeResponseValue = wasm.TS_ChannelInfo_set_one_to_two(this_ptr, val);
26518         // debug statements here
26519 }
26520         // struct LDKNodeId ChannelInfo_get_node_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
26521 /* @internal */
26522 export function ChannelInfo_get_node_two(this_ptr: number): number {
26523         if(!isWasmInitialized) {
26524                 throw new Error("initializeWasm() must be awaited first!");
26525         }
26526         const nativeResponseValue = wasm.TS_ChannelInfo_get_node_two(this_ptr);
26527         return nativeResponseValue;
26528 }
26529         // void ChannelInfo_set_node_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
26530 /* @internal */
26531 export function ChannelInfo_set_node_two(this_ptr: number, val: number): void {
26532         if(!isWasmInitialized) {
26533                 throw new Error("initializeWasm() must be awaited first!");
26534         }
26535         const nativeResponseValue = wasm.TS_ChannelInfo_set_node_two(this_ptr, val);
26536         // debug statements here
26537 }
26538         // struct LDKChannelUpdateInfo ChannelInfo_get_two_to_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
26539 /* @internal */
26540 export function ChannelInfo_get_two_to_one(this_ptr: number): number {
26541         if(!isWasmInitialized) {
26542                 throw new Error("initializeWasm() must be awaited first!");
26543         }
26544         const nativeResponseValue = wasm.TS_ChannelInfo_get_two_to_one(this_ptr);
26545         return nativeResponseValue;
26546 }
26547         // void ChannelInfo_set_two_to_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
26548 /* @internal */
26549 export function ChannelInfo_set_two_to_one(this_ptr: number, val: number): void {
26550         if(!isWasmInitialized) {
26551                 throw new Error("initializeWasm() must be awaited first!");
26552         }
26553         const nativeResponseValue = wasm.TS_ChannelInfo_set_two_to_one(this_ptr, val);
26554         // debug statements here
26555 }
26556         // struct LDKCOption_u64Z ChannelInfo_get_capacity_sats(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
26557 /* @internal */
26558 export function ChannelInfo_get_capacity_sats(this_ptr: number): number {
26559         if(!isWasmInitialized) {
26560                 throw new Error("initializeWasm() must be awaited first!");
26561         }
26562         const nativeResponseValue = wasm.TS_ChannelInfo_get_capacity_sats(this_ptr);
26563         return nativeResponseValue;
26564 }
26565         // void ChannelInfo_set_capacity_sats(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
26566 /* @internal */
26567 export function ChannelInfo_set_capacity_sats(this_ptr: number, val: number): void {
26568         if(!isWasmInitialized) {
26569                 throw new Error("initializeWasm() must be awaited first!");
26570         }
26571         const nativeResponseValue = wasm.TS_ChannelInfo_set_capacity_sats(this_ptr, val);
26572         // debug statements here
26573 }
26574         // struct LDKChannelAnnouncement ChannelInfo_get_announcement_message(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
26575 /* @internal */
26576 export function ChannelInfo_get_announcement_message(this_ptr: number): number {
26577         if(!isWasmInitialized) {
26578                 throw new Error("initializeWasm() must be awaited first!");
26579         }
26580         const nativeResponseValue = wasm.TS_ChannelInfo_get_announcement_message(this_ptr);
26581         return nativeResponseValue;
26582 }
26583         // void ChannelInfo_set_announcement_message(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelAnnouncement val);
26584 /* @internal */
26585 export function ChannelInfo_set_announcement_message(this_ptr: number, val: number): void {
26586         if(!isWasmInitialized) {
26587                 throw new Error("initializeWasm() must be awaited first!");
26588         }
26589         const nativeResponseValue = wasm.TS_ChannelInfo_set_announcement_message(this_ptr, val);
26590         // debug statements here
26591 }
26592         // uintptr_t ChannelInfo_clone_ptr(LDKChannelInfo *NONNULL_PTR arg);
26593 /* @internal */
26594 export function ChannelInfo_clone_ptr(arg: number): number {
26595         if(!isWasmInitialized) {
26596                 throw new Error("initializeWasm() must be awaited first!");
26597         }
26598         const nativeResponseValue = wasm.TS_ChannelInfo_clone_ptr(arg);
26599         return nativeResponseValue;
26600 }
26601         // struct LDKChannelInfo ChannelInfo_clone(const struct LDKChannelInfo *NONNULL_PTR orig);
26602 /* @internal */
26603 export function ChannelInfo_clone(orig: number): number {
26604         if(!isWasmInitialized) {
26605                 throw new Error("initializeWasm() must be awaited first!");
26606         }
26607         const nativeResponseValue = wasm.TS_ChannelInfo_clone(orig);
26608         return nativeResponseValue;
26609 }
26610         // struct LDKCVec_u8Z ChannelInfo_write(const struct LDKChannelInfo *NONNULL_PTR obj);
26611 /* @internal */
26612 export function ChannelInfo_write(obj: number): number {
26613         if(!isWasmInitialized) {
26614                 throw new Error("initializeWasm() must be awaited first!");
26615         }
26616         const nativeResponseValue = wasm.TS_ChannelInfo_write(obj);
26617         return nativeResponseValue;
26618 }
26619         // struct LDKCResult_ChannelInfoDecodeErrorZ ChannelInfo_read(struct LDKu8slice ser);
26620 /* @internal */
26621 export function ChannelInfo_read(ser: number): number {
26622         if(!isWasmInitialized) {
26623                 throw new Error("initializeWasm() must be awaited first!");
26624         }
26625         const nativeResponseValue = wasm.TS_ChannelInfo_read(ser);
26626         return nativeResponseValue;
26627 }
26628         // void DirectedChannelInfo_free(struct LDKDirectedChannelInfo this_obj);
26629 /* @internal */
26630 export function DirectedChannelInfo_free(this_obj: number): void {
26631         if(!isWasmInitialized) {
26632                 throw new Error("initializeWasm() must be awaited first!");
26633         }
26634         const nativeResponseValue = wasm.TS_DirectedChannelInfo_free(this_obj);
26635         // debug statements here
26636 }
26637         // uintptr_t DirectedChannelInfo_clone_ptr(LDKDirectedChannelInfo *NONNULL_PTR arg);
26638 /* @internal */
26639 export function DirectedChannelInfo_clone_ptr(arg: number): number {
26640         if(!isWasmInitialized) {
26641                 throw new Error("initializeWasm() must be awaited first!");
26642         }
26643         const nativeResponseValue = wasm.TS_DirectedChannelInfo_clone_ptr(arg);
26644         return nativeResponseValue;
26645 }
26646         // struct LDKDirectedChannelInfo DirectedChannelInfo_clone(const struct LDKDirectedChannelInfo *NONNULL_PTR orig);
26647 /* @internal */
26648 export function DirectedChannelInfo_clone(orig: number): number {
26649         if(!isWasmInitialized) {
26650                 throw new Error("initializeWasm() must be awaited first!");
26651         }
26652         const nativeResponseValue = wasm.TS_DirectedChannelInfo_clone(orig);
26653         return nativeResponseValue;
26654 }
26655         // MUST_USE_RES struct LDKChannelInfo DirectedChannelInfo_channel(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
26656 /* @internal */
26657 export function DirectedChannelInfo_channel(this_arg: number): number {
26658         if(!isWasmInitialized) {
26659                 throw new Error("initializeWasm() must be awaited first!");
26660         }
26661         const nativeResponseValue = wasm.TS_DirectedChannelInfo_channel(this_arg);
26662         return nativeResponseValue;
26663 }
26664         // MUST_USE_RES struct LDKChannelUpdateInfo DirectedChannelInfo_direction(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
26665 /* @internal */
26666 export function DirectedChannelInfo_direction(this_arg: number): number {
26667         if(!isWasmInitialized) {
26668                 throw new Error("initializeWasm() must be awaited first!");
26669         }
26670         const nativeResponseValue = wasm.TS_DirectedChannelInfo_direction(this_arg);
26671         return nativeResponseValue;
26672 }
26673         // MUST_USE_RES struct LDKEffectiveCapacity DirectedChannelInfo_effective_capacity(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
26674 /* @internal */
26675 export function DirectedChannelInfo_effective_capacity(this_arg: number): number {
26676         if(!isWasmInitialized) {
26677                 throw new Error("initializeWasm() must be awaited first!");
26678         }
26679         const nativeResponseValue = wasm.TS_DirectedChannelInfo_effective_capacity(this_arg);
26680         return nativeResponseValue;
26681 }
26682         // void EffectiveCapacity_free(struct LDKEffectiveCapacity this_ptr);
26683 /* @internal */
26684 export function EffectiveCapacity_free(this_ptr: number): void {
26685         if(!isWasmInitialized) {
26686                 throw new Error("initializeWasm() must be awaited first!");
26687         }
26688         const nativeResponseValue = wasm.TS_EffectiveCapacity_free(this_ptr);
26689         // debug statements here
26690 }
26691         // uintptr_t EffectiveCapacity_clone_ptr(LDKEffectiveCapacity *NONNULL_PTR arg);
26692 /* @internal */
26693 export function EffectiveCapacity_clone_ptr(arg: number): number {
26694         if(!isWasmInitialized) {
26695                 throw new Error("initializeWasm() must be awaited first!");
26696         }
26697         const nativeResponseValue = wasm.TS_EffectiveCapacity_clone_ptr(arg);
26698         return nativeResponseValue;
26699 }
26700         // struct LDKEffectiveCapacity EffectiveCapacity_clone(const struct LDKEffectiveCapacity *NONNULL_PTR orig);
26701 /* @internal */
26702 export function EffectiveCapacity_clone(orig: number): number {
26703         if(!isWasmInitialized) {
26704                 throw new Error("initializeWasm() must be awaited first!");
26705         }
26706         const nativeResponseValue = wasm.TS_EffectiveCapacity_clone(orig);
26707         return nativeResponseValue;
26708 }
26709         // struct LDKEffectiveCapacity EffectiveCapacity_exact_liquidity(uint64_t liquidity_msat);
26710 /* @internal */
26711 export function EffectiveCapacity_exact_liquidity(liquidity_msat: bigint): number {
26712         if(!isWasmInitialized) {
26713                 throw new Error("initializeWasm() must be awaited first!");
26714         }
26715         const nativeResponseValue = wasm.TS_EffectiveCapacity_exact_liquidity(liquidity_msat);
26716         return nativeResponseValue;
26717 }
26718         // struct LDKEffectiveCapacity EffectiveCapacity_maximum_htlc(uint64_t amount_msat);
26719 /* @internal */
26720 export function EffectiveCapacity_maximum_htlc(amount_msat: bigint): number {
26721         if(!isWasmInitialized) {
26722                 throw new Error("initializeWasm() must be awaited first!");
26723         }
26724         const nativeResponseValue = wasm.TS_EffectiveCapacity_maximum_htlc(amount_msat);
26725         return nativeResponseValue;
26726 }
26727         // struct LDKEffectiveCapacity EffectiveCapacity_total(uint64_t capacity_msat);
26728 /* @internal */
26729 export function EffectiveCapacity_total(capacity_msat: bigint): number {
26730         if(!isWasmInitialized) {
26731                 throw new Error("initializeWasm() must be awaited first!");
26732         }
26733         const nativeResponseValue = wasm.TS_EffectiveCapacity_total(capacity_msat);
26734         return nativeResponseValue;
26735 }
26736         // struct LDKEffectiveCapacity EffectiveCapacity_infinite(void);
26737 /* @internal */
26738 export function EffectiveCapacity_infinite(): number {
26739         if(!isWasmInitialized) {
26740                 throw new Error("initializeWasm() must be awaited first!");
26741         }
26742         const nativeResponseValue = wasm.TS_EffectiveCapacity_infinite();
26743         return nativeResponseValue;
26744 }
26745         // struct LDKEffectiveCapacity EffectiveCapacity_unknown(void);
26746 /* @internal */
26747 export function EffectiveCapacity_unknown(): number {
26748         if(!isWasmInitialized) {
26749                 throw new Error("initializeWasm() must be awaited first!");
26750         }
26751         const nativeResponseValue = wasm.TS_EffectiveCapacity_unknown();
26752         return nativeResponseValue;
26753 }
26754         // MUST_USE_RES uint64_t EffectiveCapacity_as_msat(const struct LDKEffectiveCapacity *NONNULL_PTR this_arg);
26755 /* @internal */
26756 export function EffectiveCapacity_as_msat(this_arg: number): bigint {
26757         if(!isWasmInitialized) {
26758                 throw new Error("initializeWasm() must be awaited first!");
26759         }
26760         const nativeResponseValue = wasm.TS_EffectiveCapacity_as_msat(this_arg);
26761         return nativeResponseValue;
26762 }
26763         // void RoutingFees_free(struct LDKRoutingFees this_obj);
26764 /* @internal */
26765 export function RoutingFees_free(this_obj: number): void {
26766         if(!isWasmInitialized) {
26767                 throw new Error("initializeWasm() must be awaited first!");
26768         }
26769         const nativeResponseValue = wasm.TS_RoutingFees_free(this_obj);
26770         // debug statements here
26771 }
26772         // uint32_t RoutingFees_get_base_msat(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
26773 /* @internal */
26774 export function RoutingFees_get_base_msat(this_ptr: number): number {
26775         if(!isWasmInitialized) {
26776                 throw new Error("initializeWasm() must be awaited first!");
26777         }
26778         const nativeResponseValue = wasm.TS_RoutingFees_get_base_msat(this_ptr);
26779         return nativeResponseValue;
26780 }
26781         // void RoutingFees_set_base_msat(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
26782 /* @internal */
26783 export function RoutingFees_set_base_msat(this_ptr: number, val: number): void {
26784         if(!isWasmInitialized) {
26785                 throw new Error("initializeWasm() must be awaited first!");
26786         }
26787         const nativeResponseValue = wasm.TS_RoutingFees_set_base_msat(this_ptr, val);
26788         // debug statements here
26789 }
26790         // uint32_t RoutingFees_get_proportional_millionths(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
26791 /* @internal */
26792 export function RoutingFees_get_proportional_millionths(this_ptr: number): number {
26793         if(!isWasmInitialized) {
26794                 throw new Error("initializeWasm() must be awaited first!");
26795         }
26796         const nativeResponseValue = wasm.TS_RoutingFees_get_proportional_millionths(this_ptr);
26797         return nativeResponseValue;
26798 }
26799         // void RoutingFees_set_proportional_millionths(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
26800 /* @internal */
26801 export function RoutingFees_set_proportional_millionths(this_ptr: number, val: number): void {
26802         if(!isWasmInitialized) {
26803                 throw new Error("initializeWasm() must be awaited first!");
26804         }
26805         const nativeResponseValue = wasm.TS_RoutingFees_set_proportional_millionths(this_ptr, val);
26806         // debug statements here
26807 }
26808         // MUST_USE_RES struct LDKRoutingFees RoutingFees_new(uint32_t base_msat_arg, uint32_t proportional_millionths_arg);
26809 /* @internal */
26810 export function RoutingFees_new(base_msat_arg: number, proportional_millionths_arg: number): number {
26811         if(!isWasmInitialized) {
26812                 throw new Error("initializeWasm() must be awaited first!");
26813         }
26814         const nativeResponseValue = wasm.TS_RoutingFees_new(base_msat_arg, proportional_millionths_arg);
26815         return nativeResponseValue;
26816 }
26817         // bool RoutingFees_eq(const struct LDKRoutingFees *NONNULL_PTR a, const struct LDKRoutingFees *NONNULL_PTR b);
26818 /* @internal */
26819 export function RoutingFees_eq(a: number, b: number): boolean {
26820         if(!isWasmInitialized) {
26821                 throw new Error("initializeWasm() must be awaited first!");
26822         }
26823         const nativeResponseValue = wasm.TS_RoutingFees_eq(a, b);
26824         return nativeResponseValue;
26825 }
26826         // uintptr_t RoutingFees_clone_ptr(LDKRoutingFees *NONNULL_PTR arg);
26827 /* @internal */
26828 export function RoutingFees_clone_ptr(arg: number): number {
26829         if(!isWasmInitialized) {
26830                 throw new Error("initializeWasm() must be awaited first!");
26831         }
26832         const nativeResponseValue = wasm.TS_RoutingFees_clone_ptr(arg);
26833         return nativeResponseValue;
26834 }
26835         // struct LDKRoutingFees RoutingFees_clone(const struct LDKRoutingFees *NONNULL_PTR orig);
26836 /* @internal */
26837 export function RoutingFees_clone(orig: number): number {
26838         if(!isWasmInitialized) {
26839                 throw new Error("initializeWasm() must be awaited first!");
26840         }
26841         const nativeResponseValue = wasm.TS_RoutingFees_clone(orig);
26842         return nativeResponseValue;
26843 }
26844         // uint64_t RoutingFees_hash(const struct LDKRoutingFees *NONNULL_PTR o);
26845 /* @internal */
26846 export function RoutingFees_hash(o: number): bigint {
26847         if(!isWasmInitialized) {
26848                 throw new Error("initializeWasm() must be awaited first!");
26849         }
26850         const nativeResponseValue = wasm.TS_RoutingFees_hash(o);
26851         return nativeResponseValue;
26852 }
26853         // struct LDKCVec_u8Z RoutingFees_write(const struct LDKRoutingFees *NONNULL_PTR obj);
26854 /* @internal */
26855 export function RoutingFees_write(obj: number): number {
26856         if(!isWasmInitialized) {
26857                 throw new Error("initializeWasm() must be awaited first!");
26858         }
26859         const nativeResponseValue = wasm.TS_RoutingFees_write(obj);
26860         return nativeResponseValue;
26861 }
26862         // struct LDKCResult_RoutingFeesDecodeErrorZ RoutingFees_read(struct LDKu8slice ser);
26863 /* @internal */
26864 export function RoutingFees_read(ser: number): number {
26865         if(!isWasmInitialized) {
26866                 throw new Error("initializeWasm() must be awaited first!");
26867         }
26868         const nativeResponseValue = wasm.TS_RoutingFees_read(ser);
26869         return nativeResponseValue;
26870 }
26871         // void NodeAnnouncementInfo_free(struct LDKNodeAnnouncementInfo this_obj);
26872 /* @internal */
26873 export function NodeAnnouncementInfo_free(this_obj: number): void {
26874         if(!isWasmInitialized) {
26875                 throw new Error("initializeWasm() must be awaited first!");
26876         }
26877         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_free(this_obj);
26878         // debug statements here
26879 }
26880         // struct LDKNodeFeatures NodeAnnouncementInfo_get_features(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
26881 /* @internal */
26882 export function NodeAnnouncementInfo_get_features(this_ptr: number): number {
26883         if(!isWasmInitialized) {
26884                 throw new Error("initializeWasm() must be awaited first!");
26885         }
26886         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_features(this_ptr);
26887         return nativeResponseValue;
26888 }
26889         // void NodeAnnouncementInfo_set_features(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
26890 /* @internal */
26891 export function NodeAnnouncementInfo_set_features(this_ptr: number, val: number): void {
26892         if(!isWasmInitialized) {
26893                 throw new Error("initializeWasm() must be awaited first!");
26894         }
26895         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_features(this_ptr, val);
26896         // debug statements here
26897 }
26898         // uint32_t NodeAnnouncementInfo_get_last_update(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
26899 /* @internal */
26900 export function NodeAnnouncementInfo_get_last_update(this_ptr: number): number {
26901         if(!isWasmInitialized) {
26902                 throw new Error("initializeWasm() must be awaited first!");
26903         }
26904         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_last_update(this_ptr);
26905         return nativeResponseValue;
26906 }
26907         // void NodeAnnouncementInfo_set_last_update(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, uint32_t val);
26908 /* @internal */
26909 export function NodeAnnouncementInfo_set_last_update(this_ptr: number, val: number): void {
26910         if(!isWasmInitialized) {
26911                 throw new Error("initializeWasm() must be awaited first!");
26912         }
26913         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_last_update(this_ptr, val);
26914         // debug statements here
26915 }
26916         // const uint8_t (*NodeAnnouncementInfo_get_rgb(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[3];
26917 /* @internal */
26918 export function NodeAnnouncementInfo_get_rgb(this_ptr: number): number {
26919         if(!isWasmInitialized) {
26920                 throw new Error("initializeWasm() must be awaited first!");
26921         }
26922         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_rgb(this_ptr);
26923         return nativeResponseValue;
26924 }
26925         // void NodeAnnouncementInfo_set_rgb(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
26926 /* @internal */
26927 export function NodeAnnouncementInfo_set_rgb(this_ptr: number, val: number): void {
26928         if(!isWasmInitialized) {
26929                 throw new Error("initializeWasm() must be awaited first!");
26930         }
26931         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_rgb(this_ptr, val);
26932         // debug statements here
26933 }
26934         // const uint8_t (*NodeAnnouncementInfo_get_alias(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[32];
26935 /* @internal */
26936 export function NodeAnnouncementInfo_get_alias(this_ptr: number): number {
26937         if(!isWasmInitialized) {
26938                 throw new Error("initializeWasm() must be awaited first!");
26939         }
26940         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_alias(this_ptr);
26941         return nativeResponseValue;
26942 }
26943         // void NodeAnnouncementInfo_set_alias(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
26944 /* @internal */
26945 export function NodeAnnouncementInfo_set_alias(this_ptr: number, val: number): void {
26946         if(!isWasmInitialized) {
26947                 throw new Error("initializeWasm() must be awaited first!");
26948         }
26949         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_alias(this_ptr, val);
26950         // debug statements here
26951 }
26952         // void NodeAnnouncementInfo_set_addresses(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
26953 /* @internal */
26954 export function NodeAnnouncementInfo_set_addresses(this_ptr: number, val: number): void {
26955         if(!isWasmInitialized) {
26956                 throw new Error("initializeWasm() must be awaited first!");
26957         }
26958         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_addresses(this_ptr, val);
26959         // debug statements here
26960 }
26961         // struct LDKNodeAnnouncement NodeAnnouncementInfo_get_announcement_message(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
26962 /* @internal */
26963 export function NodeAnnouncementInfo_get_announcement_message(this_ptr: number): number {
26964         if(!isWasmInitialized) {
26965                 throw new Error("initializeWasm() must be awaited first!");
26966         }
26967         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_announcement_message(this_ptr);
26968         return nativeResponseValue;
26969 }
26970         // void NodeAnnouncementInfo_set_announcement_message(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncement val);
26971 /* @internal */
26972 export function NodeAnnouncementInfo_set_announcement_message(this_ptr: number, val: number): void {
26973         if(!isWasmInitialized) {
26974                 throw new Error("initializeWasm() must be awaited first!");
26975         }
26976         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_announcement_message(this_ptr, val);
26977         // debug statements here
26978 }
26979         // MUST_USE_RES struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_new(struct LDKNodeFeatures features_arg, uint32_t last_update_arg, struct LDKThreeBytes rgb_arg, struct LDKThirtyTwoBytes alias_arg, struct LDKCVec_NetAddressZ addresses_arg, struct LDKNodeAnnouncement announcement_message_arg);
26980 /* @internal */
26981 export function NodeAnnouncementInfo_new(features_arg: number, last_update_arg: number, rgb_arg: number, alias_arg: number, addresses_arg: number, announcement_message_arg: number): number {
26982         if(!isWasmInitialized) {
26983                 throw new Error("initializeWasm() must be awaited first!");
26984         }
26985         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_new(features_arg, last_update_arg, rgb_arg, alias_arg, addresses_arg, announcement_message_arg);
26986         return nativeResponseValue;
26987 }
26988         // uintptr_t NodeAnnouncementInfo_clone_ptr(LDKNodeAnnouncementInfo *NONNULL_PTR arg);
26989 /* @internal */
26990 export function NodeAnnouncementInfo_clone_ptr(arg: number): number {
26991         if(!isWasmInitialized) {
26992                 throw new Error("initializeWasm() must be awaited first!");
26993         }
26994         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_clone_ptr(arg);
26995         return nativeResponseValue;
26996 }
26997         // struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_clone(const struct LDKNodeAnnouncementInfo *NONNULL_PTR orig);
26998 /* @internal */
26999 export function NodeAnnouncementInfo_clone(orig: number): number {
27000         if(!isWasmInitialized) {
27001                 throw new Error("initializeWasm() must be awaited first!");
27002         }
27003         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_clone(orig);
27004         return nativeResponseValue;
27005 }
27006         // struct LDKCVec_u8Z NodeAnnouncementInfo_write(const struct LDKNodeAnnouncementInfo *NONNULL_PTR obj);
27007 /* @internal */
27008 export function NodeAnnouncementInfo_write(obj: number): number {
27009         if(!isWasmInitialized) {
27010                 throw new Error("initializeWasm() must be awaited first!");
27011         }
27012         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_write(obj);
27013         return nativeResponseValue;
27014 }
27015         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ NodeAnnouncementInfo_read(struct LDKu8slice ser);
27016 /* @internal */
27017 export function NodeAnnouncementInfo_read(ser: number): number {
27018         if(!isWasmInitialized) {
27019                 throw new Error("initializeWasm() must be awaited first!");
27020         }
27021         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_read(ser);
27022         return nativeResponseValue;
27023 }
27024         // void NodeInfo_free(struct LDKNodeInfo this_obj);
27025 /* @internal */
27026 export function NodeInfo_free(this_obj: number): void {
27027         if(!isWasmInitialized) {
27028                 throw new Error("initializeWasm() must be awaited first!");
27029         }
27030         const nativeResponseValue = wasm.TS_NodeInfo_free(this_obj);
27031         // debug statements here
27032 }
27033         // void NodeInfo_set_channels(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
27034 /* @internal */
27035 export function NodeInfo_set_channels(this_ptr: number, val: number): void {
27036         if(!isWasmInitialized) {
27037                 throw new Error("initializeWasm() must be awaited first!");
27038         }
27039         const nativeResponseValue = wasm.TS_NodeInfo_set_channels(this_ptr, val);
27040         // debug statements here
27041 }
27042         // struct LDKRoutingFees NodeInfo_get_lowest_inbound_channel_fees(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
27043 /* @internal */
27044 export function NodeInfo_get_lowest_inbound_channel_fees(this_ptr: number): number {
27045         if(!isWasmInitialized) {
27046                 throw new Error("initializeWasm() must be awaited first!");
27047         }
27048         const nativeResponseValue = wasm.TS_NodeInfo_get_lowest_inbound_channel_fees(this_ptr);
27049         return nativeResponseValue;
27050 }
27051         // void NodeInfo_set_lowest_inbound_channel_fees(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
27052 /* @internal */
27053 export function NodeInfo_set_lowest_inbound_channel_fees(this_ptr: number, val: number): void {
27054         if(!isWasmInitialized) {
27055                 throw new Error("initializeWasm() must be awaited first!");
27056         }
27057         const nativeResponseValue = wasm.TS_NodeInfo_set_lowest_inbound_channel_fees(this_ptr, val);
27058         // debug statements here
27059 }
27060         // struct LDKNodeAnnouncementInfo NodeInfo_get_announcement_info(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
27061 /* @internal */
27062 export function NodeInfo_get_announcement_info(this_ptr: number): number {
27063         if(!isWasmInitialized) {
27064                 throw new Error("initializeWasm() must be awaited first!");
27065         }
27066         const nativeResponseValue = wasm.TS_NodeInfo_get_announcement_info(this_ptr);
27067         return nativeResponseValue;
27068 }
27069         // void NodeInfo_set_announcement_info(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncementInfo val);
27070 /* @internal */
27071 export function NodeInfo_set_announcement_info(this_ptr: number, val: number): void {
27072         if(!isWasmInitialized) {
27073                 throw new Error("initializeWasm() must be awaited first!");
27074         }
27075         const nativeResponseValue = wasm.TS_NodeInfo_set_announcement_info(this_ptr, val);
27076         // debug statements here
27077 }
27078         // MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKRoutingFees lowest_inbound_channel_fees_arg, struct LDKNodeAnnouncementInfo announcement_info_arg);
27079 /* @internal */
27080 export function NodeInfo_new(channels_arg: number, lowest_inbound_channel_fees_arg: number, announcement_info_arg: number): number {
27081         if(!isWasmInitialized) {
27082                 throw new Error("initializeWasm() must be awaited first!");
27083         }
27084         const nativeResponseValue = wasm.TS_NodeInfo_new(channels_arg, lowest_inbound_channel_fees_arg, announcement_info_arg);
27085         return nativeResponseValue;
27086 }
27087         // uintptr_t NodeInfo_clone_ptr(LDKNodeInfo *NONNULL_PTR arg);
27088 /* @internal */
27089 export function NodeInfo_clone_ptr(arg: number): number {
27090         if(!isWasmInitialized) {
27091                 throw new Error("initializeWasm() must be awaited first!");
27092         }
27093         const nativeResponseValue = wasm.TS_NodeInfo_clone_ptr(arg);
27094         return nativeResponseValue;
27095 }
27096         // struct LDKNodeInfo NodeInfo_clone(const struct LDKNodeInfo *NONNULL_PTR orig);
27097 /* @internal */
27098 export function NodeInfo_clone(orig: number): number {
27099         if(!isWasmInitialized) {
27100                 throw new Error("initializeWasm() must be awaited first!");
27101         }
27102         const nativeResponseValue = wasm.TS_NodeInfo_clone(orig);
27103         return nativeResponseValue;
27104 }
27105         // struct LDKCVec_u8Z NodeInfo_write(const struct LDKNodeInfo *NONNULL_PTR obj);
27106 /* @internal */
27107 export function NodeInfo_write(obj: number): number {
27108         if(!isWasmInitialized) {
27109                 throw new Error("initializeWasm() must be awaited first!");
27110         }
27111         const nativeResponseValue = wasm.TS_NodeInfo_write(obj);
27112         return nativeResponseValue;
27113 }
27114         // struct LDKCResult_NodeInfoDecodeErrorZ NodeInfo_read(struct LDKu8slice ser);
27115 /* @internal */
27116 export function NodeInfo_read(ser: number): number {
27117         if(!isWasmInitialized) {
27118                 throw new Error("initializeWasm() must be awaited first!");
27119         }
27120         const nativeResponseValue = wasm.TS_NodeInfo_read(ser);
27121         return nativeResponseValue;
27122 }
27123         // struct LDKCVec_u8Z NetworkGraph_write(const struct LDKNetworkGraph *NONNULL_PTR obj);
27124 /* @internal */
27125 export function NetworkGraph_write(obj: number): number {
27126         if(!isWasmInitialized) {
27127                 throw new Error("initializeWasm() must be awaited first!");
27128         }
27129         const nativeResponseValue = wasm.TS_NetworkGraph_write(obj);
27130         return nativeResponseValue;
27131 }
27132         // struct LDKCResult_NetworkGraphDecodeErrorZ NetworkGraph_read(struct LDKu8slice ser);
27133 /* @internal */
27134 export function NetworkGraph_read(ser: number): number {
27135         if(!isWasmInitialized) {
27136                 throw new Error("initializeWasm() must be awaited first!");
27137         }
27138         const nativeResponseValue = wasm.TS_NetworkGraph_read(ser);
27139         return nativeResponseValue;
27140 }
27141         // MUST_USE_RES struct LDKNetworkGraph NetworkGraph_new(struct LDKThirtyTwoBytes genesis_hash);
27142 /* @internal */
27143 export function NetworkGraph_new(genesis_hash: number): number {
27144         if(!isWasmInitialized) {
27145                 throw new Error("initializeWasm() must be awaited first!");
27146         }
27147         const nativeResponseValue = wasm.TS_NetworkGraph_new(genesis_hash);
27148         return nativeResponseValue;
27149 }
27150         // MUST_USE_RES struct LDKReadOnlyNetworkGraph NetworkGraph_read_only(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
27151 /* @internal */
27152 export function NetworkGraph_read_only(this_arg: number): number {
27153         if(!isWasmInitialized) {
27154                 throw new Error("initializeWasm() must be awaited first!");
27155         }
27156         const nativeResponseValue = wasm.TS_NetworkGraph_read_only(this_arg);
27157         return nativeResponseValue;
27158 }
27159         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg);
27160 /* @internal */
27161 export function NetworkGraph_update_node_from_announcement(this_arg: number, msg: number): number {
27162         if(!isWasmInitialized) {
27163                 throw new Error("initializeWasm() must be awaited first!");
27164         }
27165         const nativeResponseValue = wasm.TS_NetworkGraph_update_node_from_announcement(this_arg, msg);
27166         return nativeResponseValue;
27167 }
27168         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_unsigned_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR msg);
27169 /* @internal */
27170 export function NetworkGraph_update_node_from_unsigned_announcement(this_arg: number, msg: number): number {
27171         if(!isWasmInitialized) {
27172                 throw new Error("initializeWasm() must be awaited first!");
27173         }
27174         const nativeResponseValue = wasm.TS_NetworkGraph_update_node_from_unsigned_announcement(this_arg, msg);
27175         return nativeResponseValue;
27176 }
27177         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg, struct LDKCOption_AccessZ chain_access);
27178 /* @internal */
27179 export function NetworkGraph_update_channel_from_announcement(this_arg: number, msg: number, chain_access: number): number {
27180         if(!isWasmInitialized) {
27181                 throw new Error("initializeWasm() must be awaited first!");
27182         }
27183         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_from_announcement(this_arg, msg, chain_access);
27184         return nativeResponseValue;
27185 }
27186         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_from_unsigned_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg, struct LDKCOption_AccessZ chain_access);
27187 /* @internal */
27188 export function NetworkGraph_update_channel_from_unsigned_announcement(this_arg: number, msg: number, chain_access: number): number {
27189         if(!isWasmInitialized) {
27190                 throw new Error("initializeWasm() must be awaited first!");
27191         }
27192         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_from_unsigned_announcement(this_arg, msg, chain_access);
27193         return nativeResponseValue;
27194 }
27195         // void NetworkGraph_close_channel_from_update(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id, bool is_permanent);
27196 /* @internal */
27197 export function NetworkGraph_close_channel_from_update(this_arg: number, short_channel_id: bigint, is_permanent: boolean): void {
27198         if(!isWasmInitialized) {
27199                 throw new Error("initializeWasm() must be awaited first!");
27200         }
27201         const nativeResponseValue = wasm.TS_NetworkGraph_close_channel_from_update(this_arg, short_channel_id, is_permanent);
27202         // debug statements here
27203 }
27204         // void NetworkGraph_fail_node(const struct LDKNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey _node_id, bool is_permanent);
27205 /* @internal */
27206 export function NetworkGraph_fail_node(this_arg: number, _node_id: number, is_permanent: boolean): void {
27207         if(!isWasmInitialized) {
27208                 throw new Error("initializeWasm() must be awaited first!");
27209         }
27210         const nativeResponseValue = wasm.TS_NetworkGraph_fail_node(this_arg, _node_id, is_permanent);
27211         // debug statements here
27212 }
27213         // void NetworkGraph_remove_stale_channels_with_time(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t current_time_unix);
27214 /* @internal */
27215 export function NetworkGraph_remove_stale_channels_with_time(this_arg: number, current_time_unix: bigint): void {
27216         if(!isWasmInitialized) {
27217                 throw new Error("initializeWasm() must be awaited first!");
27218         }
27219         const nativeResponseValue = wasm.TS_NetworkGraph_remove_stale_channels_with_time(this_arg, current_time_unix);
27220         // debug statements here
27221 }
27222         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
27223 /* @internal */
27224 export function NetworkGraph_update_channel(this_arg: number, msg: number): number {
27225         if(!isWasmInitialized) {
27226                 throw new Error("initializeWasm() must be awaited first!");
27227         }
27228         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel(this_arg, msg);
27229         return nativeResponseValue;
27230 }
27231         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_unsigned(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelUpdate *NONNULL_PTR msg);
27232 /* @internal */
27233 export function NetworkGraph_update_channel_unsigned(this_arg: number, msg: number): number {
27234         if(!isWasmInitialized) {
27235                 throw new Error("initializeWasm() must be awaited first!");
27236         }
27237         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_unsigned(this_arg, msg);
27238         return nativeResponseValue;
27239 }
27240         // MUST_USE_RES struct LDKCOption_CVec_NetAddressZZ ReadOnlyNetworkGraph_get_addresses(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey pubkey);
27241 /* @internal */
27242 export function ReadOnlyNetworkGraph_get_addresses(this_arg: number, pubkey: number): number {
27243         if(!isWasmInitialized) {
27244                 throw new Error("initializeWasm() must be awaited first!");
27245         }
27246         const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_get_addresses(this_arg, pubkey);
27247         return nativeResponseValue;
27248 }
27249         // void RouteHop_free(struct LDKRouteHop this_obj);
27250 /* @internal */
27251 export function RouteHop_free(this_obj: number): void {
27252         if(!isWasmInitialized) {
27253                 throw new Error("initializeWasm() must be awaited first!");
27254         }
27255         const nativeResponseValue = wasm.TS_RouteHop_free(this_obj);
27256         // debug statements here
27257 }
27258         // struct LDKPublicKey RouteHop_get_pubkey(const struct LDKRouteHop *NONNULL_PTR this_ptr);
27259 /* @internal */
27260 export function RouteHop_get_pubkey(this_ptr: number): number {
27261         if(!isWasmInitialized) {
27262                 throw new Error("initializeWasm() must be awaited first!");
27263         }
27264         const nativeResponseValue = wasm.TS_RouteHop_get_pubkey(this_ptr);
27265         return nativeResponseValue;
27266 }
27267         // void RouteHop_set_pubkey(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
27268 /* @internal */
27269 export function RouteHop_set_pubkey(this_ptr: number, val: number): void {
27270         if(!isWasmInitialized) {
27271                 throw new Error("initializeWasm() must be awaited first!");
27272         }
27273         const nativeResponseValue = wasm.TS_RouteHop_set_pubkey(this_ptr, val);
27274         // debug statements here
27275 }
27276         // struct LDKNodeFeatures RouteHop_get_node_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
27277 /* @internal */
27278 export function RouteHop_get_node_features(this_ptr: number): number {
27279         if(!isWasmInitialized) {
27280                 throw new Error("initializeWasm() must be awaited first!");
27281         }
27282         const nativeResponseValue = wasm.TS_RouteHop_get_node_features(this_ptr);
27283         return nativeResponseValue;
27284 }
27285         // void RouteHop_set_node_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
27286 /* @internal */
27287 export function RouteHop_set_node_features(this_ptr: number, val: number): void {
27288         if(!isWasmInitialized) {
27289                 throw new Error("initializeWasm() must be awaited first!");
27290         }
27291         const nativeResponseValue = wasm.TS_RouteHop_set_node_features(this_ptr, val);
27292         // debug statements here
27293 }
27294         // uint64_t RouteHop_get_short_channel_id(const struct LDKRouteHop *NONNULL_PTR this_ptr);
27295 /* @internal */
27296 export function RouteHop_get_short_channel_id(this_ptr: number): bigint {
27297         if(!isWasmInitialized) {
27298                 throw new Error("initializeWasm() must be awaited first!");
27299         }
27300         const nativeResponseValue = wasm.TS_RouteHop_get_short_channel_id(this_ptr);
27301         return nativeResponseValue;
27302 }
27303         // void RouteHop_set_short_channel_id(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
27304 /* @internal */
27305 export function RouteHop_set_short_channel_id(this_ptr: number, val: bigint): void {
27306         if(!isWasmInitialized) {
27307                 throw new Error("initializeWasm() must be awaited first!");
27308         }
27309         const nativeResponseValue = wasm.TS_RouteHop_set_short_channel_id(this_ptr, val);
27310         // debug statements here
27311 }
27312         // struct LDKChannelFeatures RouteHop_get_channel_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
27313 /* @internal */
27314 export function RouteHop_get_channel_features(this_ptr: number): number {
27315         if(!isWasmInitialized) {
27316                 throw new Error("initializeWasm() must be awaited first!");
27317         }
27318         const nativeResponseValue = wasm.TS_RouteHop_get_channel_features(this_ptr);
27319         return nativeResponseValue;
27320 }
27321         // void RouteHop_set_channel_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
27322 /* @internal */
27323 export function RouteHop_set_channel_features(this_ptr: number, val: number): void {
27324         if(!isWasmInitialized) {
27325                 throw new Error("initializeWasm() must be awaited first!");
27326         }
27327         const nativeResponseValue = wasm.TS_RouteHop_set_channel_features(this_ptr, val);
27328         // debug statements here
27329 }
27330         // uint64_t RouteHop_get_fee_msat(const struct LDKRouteHop *NONNULL_PTR this_ptr);
27331 /* @internal */
27332 export function RouteHop_get_fee_msat(this_ptr: number): bigint {
27333         if(!isWasmInitialized) {
27334                 throw new Error("initializeWasm() must be awaited first!");
27335         }
27336         const nativeResponseValue = wasm.TS_RouteHop_get_fee_msat(this_ptr);
27337         return nativeResponseValue;
27338 }
27339         // void RouteHop_set_fee_msat(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
27340 /* @internal */
27341 export function RouteHop_set_fee_msat(this_ptr: number, val: bigint): void {
27342         if(!isWasmInitialized) {
27343                 throw new Error("initializeWasm() must be awaited first!");
27344         }
27345         const nativeResponseValue = wasm.TS_RouteHop_set_fee_msat(this_ptr, val);
27346         // debug statements here
27347 }
27348         // uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR this_ptr);
27349 /* @internal */
27350 export function RouteHop_get_cltv_expiry_delta(this_ptr: number): number {
27351         if(!isWasmInitialized) {
27352                 throw new Error("initializeWasm() must be awaited first!");
27353         }
27354         const nativeResponseValue = wasm.TS_RouteHop_get_cltv_expiry_delta(this_ptr);
27355         return nativeResponseValue;
27356 }
27357         // void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val);
27358 /* @internal */
27359 export function RouteHop_set_cltv_expiry_delta(this_ptr: number, val: number): void {
27360         if(!isWasmInitialized) {
27361                 throw new Error("initializeWasm() must be awaited first!");
27362         }
27363         const nativeResponseValue = wasm.TS_RouteHop_set_cltv_expiry_delta(this_ptr, val);
27364         // debug statements here
27365 }
27366         // MUST_USE_RES struct LDKRouteHop RouteHop_new(struct LDKPublicKey pubkey_arg, struct LDKNodeFeatures node_features_arg, uint64_t short_channel_id_arg, struct LDKChannelFeatures channel_features_arg, uint64_t fee_msat_arg, uint32_t cltv_expiry_delta_arg);
27367 /* @internal */
27368 export function RouteHop_new(pubkey_arg: number, node_features_arg: number, short_channel_id_arg: bigint, channel_features_arg: number, fee_msat_arg: bigint, cltv_expiry_delta_arg: number): number {
27369         if(!isWasmInitialized) {
27370                 throw new Error("initializeWasm() must be awaited first!");
27371         }
27372         const nativeResponseValue = wasm.TS_RouteHop_new(pubkey_arg, node_features_arg, short_channel_id_arg, channel_features_arg, fee_msat_arg, cltv_expiry_delta_arg);
27373         return nativeResponseValue;
27374 }
27375         // uintptr_t RouteHop_clone_ptr(LDKRouteHop *NONNULL_PTR arg);
27376 /* @internal */
27377 export function RouteHop_clone_ptr(arg: number): number {
27378         if(!isWasmInitialized) {
27379                 throw new Error("initializeWasm() must be awaited first!");
27380         }
27381         const nativeResponseValue = wasm.TS_RouteHop_clone_ptr(arg);
27382         return nativeResponseValue;
27383 }
27384         // struct LDKRouteHop RouteHop_clone(const struct LDKRouteHop *NONNULL_PTR orig);
27385 /* @internal */
27386 export function RouteHop_clone(orig: number): number {
27387         if(!isWasmInitialized) {
27388                 throw new Error("initializeWasm() must be awaited first!");
27389         }
27390         const nativeResponseValue = wasm.TS_RouteHop_clone(orig);
27391         return nativeResponseValue;
27392 }
27393         // uint64_t RouteHop_hash(const struct LDKRouteHop *NONNULL_PTR o);
27394 /* @internal */
27395 export function RouteHop_hash(o: number): bigint {
27396         if(!isWasmInitialized) {
27397                 throw new Error("initializeWasm() must be awaited first!");
27398         }
27399         const nativeResponseValue = wasm.TS_RouteHop_hash(o);
27400         return nativeResponseValue;
27401 }
27402         // bool RouteHop_eq(const struct LDKRouteHop *NONNULL_PTR a, const struct LDKRouteHop *NONNULL_PTR b);
27403 /* @internal */
27404 export function RouteHop_eq(a: number, b: number): boolean {
27405         if(!isWasmInitialized) {
27406                 throw new Error("initializeWasm() must be awaited first!");
27407         }
27408         const nativeResponseValue = wasm.TS_RouteHop_eq(a, b);
27409         return nativeResponseValue;
27410 }
27411         // struct LDKCVec_u8Z RouteHop_write(const struct LDKRouteHop *NONNULL_PTR obj);
27412 /* @internal */
27413 export function RouteHop_write(obj: number): number {
27414         if(!isWasmInitialized) {
27415                 throw new Error("initializeWasm() must be awaited first!");
27416         }
27417         const nativeResponseValue = wasm.TS_RouteHop_write(obj);
27418         return nativeResponseValue;
27419 }
27420         // struct LDKCResult_RouteHopDecodeErrorZ RouteHop_read(struct LDKu8slice ser);
27421 /* @internal */
27422 export function RouteHop_read(ser: number): number {
27423         if(!isWasmInitialized) {
27424                 throw new Error("initializeWasm() must be awaited first!");
27425         }
27426         const nativeResponseValue = wasm.TS_RouteHop_read(ser);
27427         return nativeResponseValue;
27428 }
27429         // void Route_free(struct LDKRoute this_obj);
27430 /* @internal */
27431 export function Route_free(this_obj: number): void {
27432         if(!isWasmInitialized) {
27433                 throw new Error("initializeWasm() must be awaited first!");
27434         }
27435         const nativeResponseValue = wasm.TS_Route_free(this_obj);
27436         // debug statements here
27437 }
27438         // struct LDKCVec_CVec_RouteHopZZ Route_get_paths(const struct LDKRoute *NONNULL_PTR this_ptr);
27439 /* @internal */
27440 export function Route_get_paths(this_ptr: number): number {
27441         if(!isWasmInitialized) {
27442                 throw new Error("initializeWasm() must be awaited first!");
27443         }
27444         const nativeResponseValue = wasm.TS_Route_get_paths(this_ptr);
27445         return nativeResponseValue;
27446 }
27447         // void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_CVec_RouteHopZZ val);
27448 /* @internal */
27449 export function Route_set_paths(this_ptr: number, val: number): void {
27450         if(!isWasmInitialized) {
27451                 throw new Error("initializeWasm() must be awaited first!");
27452         }
27453         const nativeResponseValue = wasm.TS_Route_set_paths(this_ptr, val);
27454         // debug statements here
27455 }
27456         // struct LDKPaymentParameters Route_get_payment_params(const struct LDKRoute *NONNULL_PTR this_ptr);
27457 /* @internal */
27458 export function Route_get_payment_params(this_ptr: number): number {
27459         if(!isWasmInitialized) {
27460                 throw new Error("initializeWasm() must be awaited first!");
27461         }
27462         const nativeResponseValue = wasm.TS_Route_get_payment_params(this_ptr);
27463         return nativeResponseValue;
27464 }
27465         // void Route_set_payment_params(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
27466 /* @internal */
27467 export function Route_set_payment_params(this_ptr: number, val: number): void {
27468         if(!isWasmInitialized) {
27469                 throw new Error("initializeWasm() must be awaited first!");
27470         }
27471         const nativeResponseValue = wasm.TS_Route_set_payment_params(this_ptr, val);
27472         // debug statements here
27473 }
27474         // MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_CVec_RouteHopZZ paths_arg, struct LDKPaymentParameters payment_params_arg);
27475 /* @internal */
27476 export function Route_new(paths_arg: number, payment_params_arg: number): number {
27477         if(!isWasmInitialized) {
27478                 throw new Error("initializeWasm() must be awaited first!");
27479         }
27480         const nativeResponseValue = wasm.TS_Route_new(paths_arg, payment_params_arg);
27481         return nativeResponseValue;
27482 }
27483         // uintptr_t Route_clone_ptr(LDKRoute *NONNULL_PTR arg);
27484 /* @internal */
27485 export function Route_clone_ptr(arg: number): number {
27486         if(!isWasmInitialized) {
27487                 throw new Error("initializeWasm() must be awaited first!");
27488         }
27489         const nativeResponseValue = wasm.TS_Route_clone_ptr(arg);
27490         return nativeResponseValue;
27491 }
27492         // struct LDKRoute Route_clone(const struct LDKRoute *NONNULL_PTR orig);
27493 /* @internal */
27494 export function Route_clone(orig: number): number {
27495         if(!isWasmInitialized) {
27496                 throw new Error("initializeWasm() must be awaited first!");
27497         }
27498         const nativeResponseValue = wasm.TS_Route_clone(orig);
27499         return nativeResponseValue;
27500 }
27501         // uint64_t Route_hash(const struct LDKRoute *NONNULL_PTR o);
27502 /* @internal */
27503 export function Route_hash(o: number): bigint {
27504         if(!isWasmInitialized) {
27505                 throw new Error("initializeWasm() must be awaited first!");
27506         }
27507         const nativeResponseValue = wasm.TS_Route_hash(o);
27508         return nativeResponseValue;
27509 }
27510         // bool Route_eq(const struct LDKRoute *NONNULL_PTR a, const struct LDKRoute *NONNULL_PTR b);
27511 /* @internal */
27512 export function Route_eq(a: number, b: number): boolean {
27513         if(!isWasmInitialized) {
27514                 throw new Error("initializeWasm() must be awaited first!");
27515         }
27516         const nativeResponseValue = wasm.TS_Route_eq(a, b);
27517         return nativeResponseValue;
27518 }
27519         // MUST_USE_RES uint64_t Route_get_total_fees(const struct LDKRoute *NONNULL_PTR this_arg);
27520 /* @internal */
27521 export function Route_get_total_fees(this_arg: number): bigint {
27522         if(!isWasmInitialized) {
27523                 throw new Error("initializeWasm() must be awaited first!");
27524         }
27525         const nativeResponseValue = wasm.TS_Route_get_total_fees(this_arg);
27526         return nativeResponseValue;
27527 }
27528         // MUST_USE_RES uint64_t Route_get_total_amount(const struct LDKRoute *NONNULL_PTR this_arg);
27529 /* @internal */
27530 export function Route_get_total_amount(this_arg: number): bigint {
27531         if(!isWasmInitialized) {
27532                 throw new Error("initializeWasm() must be awaited first!");
27533         }
27534         const nativeResponseValue = wasm.TS_Route_get_total_amount(this_arg);
27535         return nativeResponseValue;
27536 }
27537         // struct LDKCVec_u8Z Route_write(const struct LDKRoute *NONNULL_PTR obj);
27538 /* @internal */
27539 export function Route_write(obj: number): number {
27540         if(!isWasmInitialized) {
27541                 throw new Error("initializeWasm() must be awaited first!");
27542         }
27543         const nativeResponseValue = wasm.TS_Route_write(obj);
27544         return nativeResponseValue;
27545 }
27546         // struct LDKCResult_RouteDecodeErrorZ Route_read(struct LDKu8slice ser);
27547 /* @internal */
27548 export function Route_read(ser: number): number {
27549         if(!isWasmInitialized) {
27550                 throw new Error("initializeWasm() must be awaited first!");
27551         }
27552         const nativeResponseValue = wasm.TS_Route_read(ser);
27553         return nativeResponseValue;
27554 }
27555         // void RouteParameters_free(struct LDKRouteParameters this_obj);
27556 /* @internal */
27557 export function RouteParameters_free(this_obj: number): void {
27558         if(!isWasmInitialized) {
27559                 throw new Error("initializeWasm() must be awaited first!");
27560         }
27561         const nativeResponseValue = wasm.TS_RouteParameters_free(this_obj);
27562         // debug statements here
27563 }
27564         // struct LDKPaymentParameters RouteParameters_get_payment_params(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
27565 /* @internal */
27566 export function RouteParameters_get_payment_params(this_ptr: number): number {
27567         if(!isWasmInitialized) {
27568                 throw new Error("initializeWasm() must be awaited first!");
27569         }
27570         const nativeResponseValue = wasm.TS_RouteParameters_get_payment_params(this_ptr);
27571         return nativeResponseValue;
27572 }
27573         // void RouteParameters_set_payment_params(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
27574 /* @internal */
27575 export function RouteParameters_set_payment_params(this_ptr: number, val: number): void {
27576         if(!isWasmInitialized) {
27577                 throw new Error("initializeWasm() must be awaited first!");
27578         }
27579         const nativeResponseValue = wasm.TS_RouteParameters_set_payment_params(this_ptr, val);
27580         // debug statements here
27581 }
27582         // uint64_t RouteParameters_get_final_value_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
27583 /* @internal */
27584 export function RouteParameters_get_final_value_msat(this_ptr: number): bigint {
27585         if(!isWasmInitialized) {
27586                 throw new Error("initializeWasm() must be awaited first!");
27587         }
27588         const nativeResponseValue = wasm.TS_RouteParameters_get_final_value_msat(this_ptr);
27589         return nativeResponseValue;
27590 }
27591         // void RouteParameters_set_final_value_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint64_t val);
27592 /* @internal */
27593 export function RouteParameters_set_final_value_msat(this_ptr: number, val: bigint): void {
27594         if(!isWasmInitialized) {
27595                 throw new Error("initializeWasm() must be awaited first!");
27596         }
27597         const nativeResponseValue = wasm.TS_RouteParameters_set_final_value_msat(this_ptr, val);
27598         // debug statements here
27599 }
27600         // uint32_t RouteParameters_get_final_cltv_expiry_delta(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
27601 /* @internal */
27602 export function RouteParameters_get_final_cltv_expiry_delta(this_ptr: number): number {
27603         if(!isWasmInitialized) {
27604                 throw new Error("initializeWasm() must be awaited first!");
27605         }
27606         const nativeResponseValue = wasm.TS_RouteParameters_get_final_cltv_expiry_delta(this_ptr);
27607         return nativeResponseValue;
27608 }
27609         // void RouteParameters_set_final_cltv_expiry_delta(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint32_t val);
27610 /* @internal */
27611 export function RouteParameters_set_final_cltv_expiry_delta(this_ptr: number, val: number): void {
27612         if(!isWasmInitialized) {
27613                 throw new Error("initializeWasm() must be awaited first!");
27614         }
27615         const nativeResponseValue = wasm.TS_RouteParameters_set_final_cltv_expiry_delta(this_ptr, val);
27616         // debug statements here
27617 }
27618         // MUST_USE_RES struct LDKRouteParameters RouteParameters_new(struct LDKPaymentParameters payment_params_arg, uint64_t final_value_msat_arg, uint32_t final_cltv_expiry_delta_arg);
27619 /* @internal */
27620 export function RouteParameters_new(payment_params_arg: number, final_value_msat_arg: bigint, final_cltv_expiry_delta_arg: number): number {
27621         if(!isWasmInitialized) {
27622                 throw new Error("initializeWasm() must be awaited first!");
27623         }
27624         const nativeResponseValue = wasm.TS_RouteParameters_new(payment_params_arg, final_value_msat_arg, final_cltv_expiry_delta_arg);
27625         return nativeResponseValue;
27626 }
27627         // uintptr_t RouteParameters_clone_ptr(LDKRouteParameters *NONNULL_PTR arg);
27628 /* @internal */
27629 export function RouteParameters_clone_ptr(arg: number): number {
27630         if(!isWasmInitialized) {
27631                 throw new Error("initializeWasm() must be awaited first!");
27632         }
27633         const nativeResponseValue = wasm.TS_RouteParameters_clone_ptr(arg);
27634         return nativeResponseValue;
27635 }
27636         // struct LDKRouteParameters RouteParameters_clone(const struct LDKRouteParameters *NONNULL_PTR orig);
27637 /* @internal */
27638 export function RouteParameters_clone(orig: number): number {
27639         if(!isWasmInitialized) {
27640                 throw new Error("initializeWasm() must be awaited first!");
27641         }
27642         const nativeResponseValue = wasm.TS_RouteParameters_clone(orig);
27643         return nativeResponseValue;
27644 }
27645         // struct LDKCVec_u8Z RouteParameters_write(const struct LDKRouteParameters *NONNULL_PTR obj);
27646 /* @internal */
27647 export function RouteParameters_write(obj: number): number {
27648         if(!isWasmInitialized) {
27649                 throw new Error("initializeWasm() must be awaited first!");
27650         }
27651         const nativeResponseValue = wasm.TS_RouteParameters_write(obj);
27652         return nativeResponseValue;
27653 }
27654         // struct LDKCResult_RouteParametersDecodeErrorZ RouteParameters_read(struct LDKu8slice ser);
27655 /* @internal */
27656 export function RouteParameters_read(ser: number): number {
27657         if(!isWasmInitialized) {
27658                 throw new Error("initializeWasm() must be awaited first!");
27659         }
27660         const nativeResponseValue = wasm.TS_RouteParameters_read(ser);
27661         return nativeResponseValue;
27662 }
27663         // void PaymentParameters_free(struct LDKPaymentParameters this_obj);
27664 /* @internal */
27665 export function PaymentParameters_free(this_obj: number): void {
27666         if(!isWasmInitialized) {
27667                 throw new Error("initializeWasm() must be awaited first!");
27668         }
27669         const nativeResponseValue = wasm.TS_PaymentParameters_free(this_obj);
27670         // debug statements here
27671 }
27672         // struct LDKPublicKey PaymentParameters_get_payee_pubkey(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
27673 /* @internal */
27674 export function PaymentParameters_get_payee_pubkey(this_ptr: number): number {
27675         if(!isWasmInitialized) {
27676                 throw new Error("initializeWasm() must be awaited first!");
27677         }
27678         const nativeResponseValue = wasm.TS_PaymentParameters_get_payee_pubkey(this_ptr);
27679         return nativeResponseValue;
27680 }
27681         // void PaymentParameters_set_payee_pubkey(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKPublicKey val);
27682 /* @internal */
27683 export function PaymentParameters_set_payee_pubkey(this_ptr: number, val: number): void {
27684         if(!isWasmInitialized) {
27685                 throw new Error("initializeWasm() must be awaited first!");
27686         }
27687         const nativeResponseValue = wasm.TS_PaymentParameters_set_payee_pubkey(this_ptr, val);
27688         // debug statements here
27689 }
27690         // struct LDKInvoiceFeatures PaymentParameters_get_features(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
27691 /* @internal */
27692 export function PaymentParameters_get_features(this_ptr: number): number {
27693         if(!isWasmInitialized) {
27694                 throw new Error("initializeWasm() must be awaited first!");
27695         }
27696         const nativeResponseValue = wasm.TS_PaymentParameters_get_features(this_ptr);
27697         return nativeResponseValue;
27698 }
27699         // void PaymentParameters_set_features(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKInvoiceFeatures val);
27700 /* @internal */
27701 export function PaymentParameters_set_features(this_ptr: number, val: number): void {
27702         if(!isWasmInitialized) {
27703                 throw new Error("initializeWasm() must be awaited first!");
27704         }
27705         const nativeResponseValue = wasm.TS_PaymentParameters_set_features(this_ptr, val);
27706         // debug statements here
27707 }
27708         // struct LDKCVec_RouteHintZ PaymentParameters_get_route_hints(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
27709 /* @internal */
27710 export function PaymentParameters_get_route_hints(this_ptr: number): number {
27711         if(!isWasmInitialized) {
27712                 throw new Error("initializeWasm() must be awaited first!");
27713         }
27714         const nativeResponseValue = wasm.TS_PaymentParameters_get_route_hints(this_ptr);
27715         return nativeResponseValue;
27716 }
27717         // void PaymentParameters_set_route_hints(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintZ val);
27718 /* @internal */
27719 export function PaymentParameters_set_route_hints(this_ptr: number, val: number): void {
27720         if(!isWasmInitialized) {
27721                 throw new Error("initializeWasm() must be awaited first!");
27722         }
27723         const nativeResponseValue = wasm.TS_PaymentParameters_set_route_hints(this_ptr, val);
27724         // debug statements here
27725 }
27726         // struct LDKCOption_u64Z PaymentParameters_get_expiry_time(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
27727 /* @internal */
27728 export function PaymentParameters_get_expiry_time(this_ptr: number): number {
27729         if(!isWasmInitialized) {
27730                 throw new Error("initializeWasm() must be awaited first!");
27731         }
27732         const nativeResponseValue = wasm.TS_PaymentParameters_get_expiry_time(this_ptr);
27733         return nativeResponseValue;
27734 }
27735         // void PaymentParameters_set_expiry_time(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
27736 /* @internal */
27737 export function PaymentParameters_set_expiry_time(this_ptr: number, val: number): void {
27738         if(!isWasmInitialized) {
27739                 throw new Error("initializeWasm() must be awaited first!");
27740         }
27741         const nativeResponseValue = wasm.TS_PaymentParameters_set_expiry_time(this_ptr, val);
27742         // debug statements here
27743 }
27744         // uint32_t PaymentParameters_get_max_total_cltv_expiry_delta(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
27745 /* @internal */
27746 export function PaymentParameters_get_max_total_cltv_expiry_delta(this_ptr: number): number {
27747         if(!isWasmInitialized) {
27748                 throw new Error("initializeWasm() must be awaited first!");
27749         }
27750         const nativeResponseValue = wasm.TS_PaymentParameters_get_max_total_cltv_expiry_delta(this_ptr);
27751         return nativeResponseValue;
27752 }
27753         // void PaymentParameters_set_max_total_cltv_expiry_delta(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint32_t val);
27754 /* @internal */
27755 export function PaymentParameters_set_max_total_cltv_expiry_delta(this_ptr: number, val: number): void {
27756         if(!isWasmInitialized) {
27757                 throw new Error("initializeWasm() must be awaited first!");
27758         }
27759         const nativeResponseValue = wasm.TS_PaymentParameters_set_max_total_cltv_expiry_delta(this_ptr, val);
27760         // debug statements here
27761 }
27762         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_new(struct LDKPublicKey payee_pubkey_arg, struct LDKInvoiceFeatures features_arg, struct LDKCVec_RouteHintZ route_hints_arg, struct LDKCOption_u64Z expiry_time_arg, uint32_t max_total_cltv_expiry_delta_arg);
27763 /* @internal */
27764 export function PaymentParameters_new(payee_pubkey_arg: number, features_arg: number, route_hints_arg: number, expiry_time_arg: number, max_total_cltv_expiry_delta_arg: number): number {
27765         if(!isWasmInitialized) {
27766                 throw new Error("initializeWasm() must be awaited first!");
27767         }
27768         const nativeResponseValue = wasm.TS_PaymentParameters_new(payee_pubkey_arg, features_arg, route_hints_arg, expiry_time_arg, max_total_cltv_expiry_delta_arg);
27769         return nativeResponseValue;
27770 }
27771         // uintptr_t PaymentParameters_clone_ptr(LDKPaymentParameters *NONNULL_PTR arg);
27772 /* @internal */
27773 export function PaymentParameters_clone_ptr(arg: number): number {
27774         if(!isWasmInitialized) {
27775                 throw new Error("initializeWasm() must be awaited first!");
27776         }
27777         const nativeResponseValue = wasm.TS_PaymentParameters_clone_ptr(arg);
27778         return nativeResponseValue;
27779 }
27780         // struct LDKPaymentParameters PaymentParameters_clone(const struct LDKPaymentParameters *NONNULL_PTR orig);
27781 /* @internal */
27782 export function PaymentParameters_clone(orig: number): number {
27783         if(!isWasmInitialized) {
27784                 throw new Error("initializeWasm() must be awaited first!");
27785         }
27786         const nativeResponseValue = wasm.TS_PaymentParameters_clone(orig);
27787         return nativeResponseValue;
27788 }
27789         // uint64_t PaymentParameters_hash(const struct LDKPaymentParameters *NONNULL_PTR o);
27790 /* @internal */
27791 export function PaymentParameters_hash(o: number): bigint {
27792         if(!isWasmInitialized) {
27793                 throw new Error("initializeWasm() must be awaited first!");
27794         }
27795         const nativeResponseValue = wasm.TS_PaymentParameters_hash(o);
27796         return nativeResponseValue;
27797 }
27798         // bool PaymentParameters_eq(const struct LDKPaymentParameters *NONNULL_PTR a, const struct LDKPaymentParameters *NONNULL_PTR b);
27799 /* @internal */
27800 export function PaymentParameters_eq(a: number, b: number): boolean {
27801         if(!isWasmInitialized) {
27802                 throw new Error("initializeWasm() must be awaited first!");
27803         }
27804         const nativeResponseValue = wasm.TS_PaymentParameters_eq(a, b);
27805         return nativeResponseValue;
27806 }
27807         // struct LDKCVec_u8Z PaymentParameters_write(const struct LDKPaymentParameters *NONNULL_PTR obj);
27808 /* @internal */
27809 export function PaymentParameters_write(obj: number): number {
27810         if(!isWasmInitialized) {
27811                 throw new Error("initializeWasm() must be awaited first!");
27812         }
27813         const nativeResponseValue = wasm.TS_PaymentParameters_write(obj);
27814         return nativeResponseValue;
27815 }
27816         // struct LDKCResult_PaymentParametersDecodeErrorZ PaymentParameters_read(struct LDKu8slice ser);
27817 /* @internal */
27818 export function PaymentParameters_read(ser: number): number {
27819         if(!isWasmInitialized) {
27820                 throw new Error("initializeWasm() must be awaited first!");
27821         }
27822         const nativeResponseValue = wasm.TS_PaymentParameters_read(ser);
27823         return nativeResponseValue;
27824 }
27825         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_node_id(struct LDKPublicKey payee_pubkey);
27826 /* @internal */
27827 export function PaymentParameters_from_node_id(payee_pubkey: number): number {
27828         if(!isWasmInitialized) {
27829                 throw new Error("initializeWasm() must be awaited first!");
27830         }
27831         const nativeResponseValue = wasm.TS_PaymentParameters_from_node_id(payee_pubkey);
27832         return nativeResponseValue;
27833 }
27834         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_for_keysend(struct LDKPublicKey payee_pubkey);
27835 /* @internal */
27836 export function PaymentParameters_for_keysend(payee_pubkey: number): number {
27837         if(!isWasmInitialized) {
27838                 throw new Error("initializeWasm() must be awaited first!");
27839         }
27840         const nativeResponseValue = wasm.TS_PaymentParameters_for_keysend(payee_pubkey);
27841         return nativeResponseValue;
27842 }
27843         // void RouteHint_free(struct LDKRouteHint this_obj);
27844 /* @internal */
27845 export function RouteHint_free(this_obj: number): void {
27846         if(!isWasmInitialized) {
27847                 throw new Error("initializeWasm() must be awaited first!");
27848         }
27849         const nativeResponseValue = wasm.TS_RouteHint_free(this_obj);
27850         // debug statements here
27851 }
27852         // struct LDKCVec_RouteHintHopZ RouteHint_get_a(const struct LDKRouteHint *NONNULL_PTR this_ptr);
27853 /* @internal */
27854 export function RouteHint_get_a(this_ptr: number): number {
27855         if(!isWasmInitialized) {
27856                 throw new Error("initializeWasm() must be awaited first!");
27857         }
27858         const nativeResponseValue = wasm.TS_RouteHint_get_a(this_ptr);
27859         return nativeResponseValue;
27860 }
27861         // void RouteHint_set_a(struct LDKRouteHint *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintHopZ val);
27862 /* @internal */
27863 export function RouteHint_set_a(this_ptr: number, val: number): void {
27864         if(!isWasmInitialized) {
27865                 throw new Error("initializeWasm() must be awaited first!");
27866         }
27867         const nativeResponseValue = wasm.TS_RouteHint_set_a(this_ptr, val);
27868         // debug statements here
27869 }
27870         // MUST_USE_RES struct LDKRouteHint RouteHint_new(struct LDKCVec_RouteHintHopZ a_arg);
27871 /* @internal */
27872 export function RouteHint_new(a_arg: number): number {
27873         if(!isWasmInitialized) {
27874                 throw new Error("initializeWasm() must be awaited first!");
27875         }
27876         const nativeResponseValue = wasm.TS_RouteHint_new(a_arg);
27877         return nativeResponseValue;
27878 }
27879         // uintptr_t RouteHint_clone_ptr(LDKRouteHint *NONNULL_PTR arg);
27880 /* @internal */
27881 export function RouteHint_clone_ptr(arg: number): number {
27882         if(!isWasmInitialized) {
27883                 throw new Error("initializeWasm() must be awaited first!");
27884         }
27885         const nativeResponseValue = wasm.TS_RouteHint_clone_ptr(arg);
27886         return nativeResponseValue;
27887 }
27888         // struct LDKRouteHint RouteHint_clone(const struct LDKRouteHint *NONNULL_PTR orig);
27889 /* @internal */
27890 export function RouteHint_clone(orig: number): number {
27891         if(!isWasmInitialized) {
27892                 throw new Error("initializeWasm() must be awaited first!");
27893         }
27894         const nativeResponseValue = wasm.TS_RouteHint_clone(orig);
27895         return nativeResponseValue;
27896 }
27897         // uint64_t RouteHint_hash(const struct LDKRouteHint *NONNULL_PTR o);
27898 /* @internal */
27899 export function RouteHint_hash(o: number): bigint {
27900         if(!isWasmInitialized) {
27901                 throw new Error("initializeWasm() must be awaited first!");
27902         }
27903         const nativeResponseValue = wasm.TS_RouteHint_hash(o);
27904         return nativeResponseValue;
27905 }
27906         // bool RouteHint_eq(const struct LDKRouteHint *NONNULL_PTR a, const struct LDKRouteHint *NONNULL_PTR b);
27907 /* @internal */
27908 export function RouteHint_eq(a: number, b: number): boolean {
27909         if(!isWasmInitialized) {
27910                 throw new Error("initializeWasm() must be awaited first!");
27911         }
27912         const nativeResponseValue = wasm.TS_RouteHint_eq(a, b);
27913         return nativeResponseValue;
27914 }
27915         // struct LDKCVec_u8Z RouteHint_write(const struct LDKRouteHint *NONNULL_PTR obj);
27916 /* @internal */
27917 export function RouteHint_write(obj: number): number {
27918         if(!isWasmInitialized) {
27919                 throw new Error("initializeWasm() must be awaited first!");
27920         }
27921         const nativeResponseValue = wasm.TS_RouteHint_write(obj);
27922         return nativeResponseValue;
27923 }
27924         // struct LDKCResult_RouteHintDecodeErrorZ RouteHint_read(struct LDKu8slice ser);
27925 /* @internal */
27926 export function RouteHint_read(ser: number): number {
27927         if(!isWasmInitialized) {
27928                 throw new Error("initializeWasm() must be awaited first!");
27929         }
27930         const nativeResponseValue = wasm.TS_RouteHint_read(ser);
27931         return nativeResponseValue;
27932 }
27933         // void RouteHintHop_free(struct LDKRouteHintHop this_obj);
27934 /* @internal */
27935 export function RouteHintHop_free(this_obj: number): void {
27936         if(!isWasmInitialized) {
27937                 throw new Error("initializeWasm() must be awaited first!");
27938         }
27939         const nativeResponseValue = wasm.TS_RouteHintHop_free(this_obj);
27940         // debug statements here
27941 }
27942         // struct LDKPublicKey RouteHintHop_get_src_node_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
27943 /* @internal */
27944 export function RouteHintHop_get_src_node_id(this_ptr: number): number {
27945         if(!isWasmInitialized) {
27946                 throw new Error("initializeWasm() must be awaited first!");
27947         }
27948         const nativeResponseValue = wasm.TS_RouteHintHop_get_src_node_id(this_ptr);
27949         return nativeResponseValue;
27950 }
27951         // void RouteHintHop_set_src_node_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
27952 /* @internal */
27953 export function RouteHintHop_set_src_node_id(this_ptr: number, val: number): void {
27954         if(!isWasmInitialized) {
27955                 throw new Error("initializeWasm() must be awaited first!");
27956         }
27957         const nativeResponseValue = wasm.TS_RouteHintHop_set_src_node_id(this_ptr, val);
27958         // debug statements here
27959 }
27960         // uint64_t RouteHintHop_get_short_channel_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
27961 /* @internal */
27962 export function RouteHintHop_get_short_channel_id(this_ptr: number): bigint {
27963         if(!isWasmInitialized) {
27964                 throw new Error("initializeWasm() must be awaited first!");
27965         }
27966         const nativeResponseValue = wasm.TS_RouteHintHop_get_short_channel_id(this_ptr);
27967         return nativeResponseValue;
27968 }
27969         // void RouteHintHop_set_short_channel_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint64_t val);
27970 /* @internal */
27971 export function RouteHintHop_set_short_channel_id(this_ptr: number, val: bigint): void {
27972         if(!isWasmInitialized) {
27973                 throw new Error("initializeWasm() must be awaited first!");
27974         }
27975         const nativeResponseValue = wasm.TS_RouteHintHop_set_short_channel_id(this_ptr, val);
27976         // debug statements here
27977 }
27978         // struct LDKRoutingFees RouteHintHop_get_fees(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
27979 /* @internal */
27980 export function RouteHintHop_get_fees(this_ptr: number): number {
27981         if(!isWasmInitialized) {
27982                 throw new Error("initializeWasm() must be awaited first!");
27983         }
27984         const nativeResponseValue = wasm.TS_RouteHintHop_get_fees(this_ptr);
27985         return nativeResponseValue;
27986 }
27987         // void RouteHintHop_set_fees(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
27988 /* @internal */
27989 export function RouteHintHop_set_fees(this_ptr: number, val: number): void {
27990         if(!isWasmInitialized) {
27991                 throw new Error("initializeWasm() must be awaited first!");
27992         }
27993         const nativeResponseValue = wasm.TS_RouteHintHop_set_fees(this_ptr, val);
27994         // debug statements here
27995 }
27996         // uint16_t RouteHintHop_get_cltv_expiry_delta(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
27997 /* @internal */
27998 export function RouteHintHop_get_cltv_expiry_delta(this_ptr: number): number {
27999         if(!isWasmInitialized) {
28000                 throw new Error("initializeWasm() must be awaited first!");
28001         }
28002         const nativeResponseValue = wasm.TS_RouteHintHop_get_cltv_expiry_delta(this_ptr);
28003         return nativeResponseValue;
28004 }
28005         // void RouteHintHop_set_cltv_expiry_delta(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint16_t val);
28006 /* @internal */
28007 export function RouteHintHop_set_cltv_expiry_delta(this_ptr: number, val: number): void {
28008         if(!isWasmInitialized) {
28009                 throw new Error("initializeWasm() must be awaited first!");
28010         }
28011         const nativeResponseValue = wasm.TS_RouteHintHop_set_cltv_expiry_delta(this_ptr, val);
28012         // debug statements here
28013 }
28014         // struct LDKCOption_u64Z RouteHintHop_get_htlc_minimum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
28015 /* @internal */
28016 export function RouteHintHop_get_htlc_minimum_msat(this_ptr: number): number {
28017         if(!isWasmInitialized) {
28018                 throw new Error("initializeWasm() must be awaited first!");
28019         }
28020         const nativeResponseValue = wasm.TS_RouteHintHop_get_htlc_minimum_msat(this_ptr);
28021         return nativeResponseValue;
28022 }
28023         // void RouteHintHop_set_htlc_minimum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
28024 /* @internal */
28025 export function RouteHintHop_set_htlc_minimum_msat(this_ptr: number, val: number): void {
28026         if(!isWasmInitialized) {
28027                 throw new Error("initializeWasm() must be awaited first!");
28028         }
28029         const nativeResponseValue = wasm.TS_RouteHintHop_set_htlc_minimum_msat(this_ptr, val);
28030         // debug statements here
28031 }
28032         // struct LDKCOption_u64Z RouteHintHop_get_htlc_maximum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
28033 /* @internal */
28034 export function RouteHintHop_get_htlc_maximum_msat(this_ptr: number): number {
28035         if(!isWasmInitialized) {
28036                 throw new Error("initializeWasm() must be awaited first!");
28037         }
28038         const nativeResponseValue = wasm.TS_RouteHintHop_get_htlc_maximum_msat(this_ptr);
28039         return nativeResponseValue;
28040 }
28041         // void RouteHintHop_set_htlc_maximum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
28042 /* @internal */
28043 export function RouteHintHop_set_htlc_maximum_msat(this_ptr: number, val: number): void {
28044         if(!isWasmInitialized) {
28045                 throw new Error("initializeWasm() must be awaited first!");
28046         }
28047         const nativeResponseValue = wasm.TS_RouteHintHop_set_htlc_maximum_msat(this_ptr, val);
28048         // debug statements here
28049 }
28050         // MUST_USE_RES struct LDKRouteHintHop RouteHintHop_new(struct LDKPublicKey src_node_id_arg, uint64_t short_channel_id_arg, struct LDKRoutingFees fees_arg, uint16_t cltv_expiry_delta_arg, struct LDKCOption_u64Z htlc_minimum_msat_arg, struct LDKCOption_u64Z htlc_maximum_msat_arg);
28051 /* @internal */
28052 export function RouteHintHop_new(src_node_id_arg: number, short_channel_id_arg: bigint, fees_arg: number, cltv_expiry_delta_arg: number, htlc_minimum_msat_arg: number, htlc_maximum_msat_arg: number): number {
28053         if(!isWasmInitialized) {
28054                 throw new Error("initializeWasm() must be awaited first!");
28055         }
28056         const nativeResponseValue = wasm.TS_RouteHintHop_new(src_node_id_arg, short_channel_id_arg, fees_arg, cltv_expiry_delta_arg, htlc_minimum_msat_arg, htlc_maximum_msat_arg);
28057         return nativeResponseValue;
28058 }
28059         // uintptr_t RouteHintHop_clone_ptr(LDKRouteHintHop *NONNULL_PTR arg);
28060 /* @internal */
28061 export function RouteHintHop_clone_ptr(arg: number): number {
28062         if(!isWasmInitialized) {
28063                 throw new Error("initializeWasm() must be awaited first!");
28064         }
28065         const nativeResponseValue = wasm.TS_RouteHintHop_clone_ptr(arg);
28066         return nativeResponseValue;
28067 }
28068         // struct LDKRouteHintHop RouteHintHop_clone(const struct LDKRouteHintHop *NONNULL_PTR orig);
28069 /* @internal */
28070 export function RouteHintHop_clone(orig: number): number {
28071         if(!isWasmInitialized) {
28072                 throw new Error("initializeWasm() must be awaited first!");
28073         }
28074         const nativeResponseValue = wasm.TS_RouteHintHop_clone(orig);
28075         return nativeResponseValue;
28076 }
28077         // uint64_t RouteHintHop_hash(const struct LDKRouteHintHop *NONNULL_PTR o);
28078 /* @internal */
28079 export function RouteHintHop_hash(o: number): bigint {
28080         if(!isWasmInitialized) {
28081                 throw new Error("initializeWasm() must be awaited first!");
28082         }
28083         const nativeResponseValue = wasm.TS_RouteHintHop_hash(o);
28084         return nativeResponseValue;
28085 }
28086         // bool RouteHintHop_eq(const struct LDKRouteHintHop *NONNULL_PTR a, const struct LDKRouteHintHop *NONNULL_PTR b);
28087 /* @internal */
28088 export function RouteHintHop_eq(a: number, b: number): boolean {
28089         if(!isWasmInitialized) {
28090                 throw new Error("initializeWasm() must be awaited first!");
28091         }
28092         const nativeResponseValue = wasm.TS_RouteHintHop_eq(a, b);
28093         return nativeResponseValue;
28094 }
28095         // struct LDKCVec_u8Z RouteHintHop_write(const struct LDKRouteHintHop *NONNULL_PTR obj);
28096 /* @internal */
28097 export function RouteHintHop_write(obj: number): number {
28098         if(!isWasmInitialized) {
28099                 throw new Error("initializeWasm() must be awaited first!");
28100         }
28101         const nativeResponseValue = wasm.TS_RouteHintHop_write(obj);
28102         return nativeResponseValue;
28103 }
28104         // struct LDKCResult_RouteHintHopDecodeErrorZ RouteHintHop_read(struct LDKu8slice ser);
28105 /* @internal */
28106 export function RouteHintHop_read(ser: number): number {
28107         if(!isWasmInitialized) {
28108                 throw new Error("initializeWasm() must be awaited first!");
28109         }
28110         const nativeResponseValue = wasm.TS_RouteHintHop_read(ser);
28111         return nativeResponseValue;
28112 }
28113         // struct LDKCResult_RouteLightningErrorZ find_route(struct LDKPublicKey our_node_pubkey, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKLogger logger, const struct LDKScore *NONNULL_PTR scorer);
28114 /* @internal */
28115 export function find_route(our_node_pubkey: number, route_params: number, network: number, first_hops: number, logger: number, scorer: number): number {
28116         if(!isWasmInitialized) {
28117                 throw new Error("initializeWasm() must be awaited first!");
28118         }
28119         const nativeResponseValue = wasm.TS_find_route(our_node_pubkey, route_params, network, first_hops, logger, scorer);
28120         return nativeResponseValue;
28121 }
28122         // void Score_free(struct LDKScore this_ptr);
28123 /* @internal */
28124 export function Score_free(this_ptr: number): void {
28125         if(!isWasmInitialized) {
28126                 throw new Error("initializeWasm() must be awaited first!");
28127         }
28128         const nativeResponseValue = wasm.TS_Score_free(this_ptr);
28129         // debug statements here
28130 }
28131         // void LockableScore_free(struct LDKLockableScore this_ptr);
28132 /* @internal */
28133 export function LockableScore_free(this_ptr: number): void {
28134         if(!isWasmInitialized) {
28135                 throw new Error("initializeWasm() must be awaited first!");
28136         }
28137         const nativeResponseValue = wasm.TS_LockableScore_free(this_ptr);
28138         // debug statements here
28139 }
28140         // void MultiThreadedLockableScore_free(struct LDKMultiThreadedLockableScore this_obj);
28141 /* @internal */
28142 export function MultiThreadedLockableScore_free(this_obj: number): void {
28143         if(!isWasmInitialized) {
28144                 throw new Error("initializeWasm() must be awaited first!");
28145         }
28146         const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_free(this_obj);
28147         // debug statements here
28148 }
28149         // MUST_USE_RES struct LDKMultiThreadedLockableScore MultiThreadedLockableScore_new(struct LDKScore score);
28150 /* @internal */
28151 export function MultiThreadedLockableScore_new(score: number): number {
28152         if(!isWasmInitialized) {
28153                 throw new Error("initializeWasm() must be awaited first!");
28154         }
28155         const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_new(score);
28156         return nativeResponseValue;
28157 }
28158         // void FixedPenaltyScorer_free(struct LDKFixedPenaltyScorer this_obj);
28159 /* @internal */
28160 export function FixedPenaltyScorer_free(this_obj: number): void {
28161         if(!isWasmInitialized) {
28162                 throw new Error("initializeWasm() must be awaited first!");
28163         }
28164         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_free(this_obj);
28165         // debug statements here
28166 }
28167         // uintptr_t FixedPenaltyScorer_clone_ptr(LDKFixedPenaltyScorer *NONNULL_PTR arg);
28168 /* @internal */
28169 export function FixedPenaltyScorer_clone_ptr(arg: number): number {
28170         if(!isWasmInitialized) {
28171                 throw new Error("initializeWasm() must be awaited first!");
28172         }
28173         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_clone_ptr(arg);
28174         return nativeResponseValue;
28175 }
28176         // struct LDKFixedPenaltyScorer FixedPenaltyScorer_clone(const struct LDKFixedPenaltyScorer *NONNULL_PTR orig);
28177 /* @internal */
28178 export function FixedPenaltyScorer_clone(orig: number): number {
28179         if(!isWasmInitialized) {
28180                 throw new Error("initializeWasm() must be awaited first!");
28181         }
28182         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_clone(orig);
28183         return nativeResponseValue;
28184 }
28185         // struct LDKCVec_u8Z FixedPenaltyScorer_write(const struct LDKFixedPenaltyScorer *NONNULL_PTR obj);
28186 /* @internal */
28187 export function FixedPenaltyScorer_write(obj: number): number {
28188         if(!isWasmInitialized) {
28189                 throw new Error("initializeWasm() must be awaited first!");
28190         }
28191         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_write(obj);
28192         return nativeResponseValue;
28193 }
28194         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ FixedPenaltyScorer_read(struct LDKu8slice ser);
28195 /* @internal */
28196 export function FixedPenaltyScorer_read(ser: number): number {
28197         if(!isWasmInitialized) {
28198                 throw new Error("initializeWasm() must be awaited first!");
28199         }
28200         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_read(ser);
28201         return nativeResponseValue;
28202 }
28203         // MUST_USE_RES struct LDKFixedPenaltyScorer FixedPenaltyScorer_with_penalty(uint64_t penalty_msat);
28204 /* @internal */
28205 export function FixedPenaltyScorer_with_penalty(penalty_msat: bigint): number {
28206         if(!isWasmInitialized) {
28207                 throw new Error("initializeWasm() must be awaited first!");
28208         }
28209         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_with_penalty(penalty_msat);
28210         return nativeResponseValue;
28211 }
28212         // struct LDKScore FixedPenaltyScorer_as_Score(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg);
28213 /* @internal */
28214 export function FixedPenaltyScorer_as_Score(this_arg: number): number {
28215         if(!isWasmInitialized) {
28216                 throw new Error("initializeWasm() must be awaited first!");
28217         }
28218         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_as_Score(this_arg);
28219         return nativeResponseValue;
28220 }
28221         // void Scorer_free(struct LDKScorer this_obj);
28222 /* @internal */
28223 export function Scorer_free(this_obj: number): void {
28224         if(!isWasmInitialized) {
28225                 throw new Error("initializeWasm() must be awaited first!");
28226         }
28227         const nativeResponseValue = wasm.TS_Scorer_free(this_obj);
28228         // debug statements here
28229 }
28230         // void ScoringParameters_free(struct LDKScoringParameters this_obj);
28231 /* @internal */
28232 export function ScoringParameters_free(this_obj: number): void {
28233         if(!isWasmInitialized) {
28234                 throw new Error("initializeWasm() must be awaited first!");
28235         }
28236         const nativeResponseValue = wasm.TS_ScoringParameters_free(this_obj);
28237         // debug statements here
28238 }
28239         // uint64_t ScoringParameters_get_base_penalty_msat(const struct LDKScoringParameters *NONNULL_PTR this_ptr);
28240 /* @internal */
28241 export function ScoringParameters_get_base_penalty_msat(this_ptr: number): bigint {
28242         if(!isWasmInitialized) {
28243                 throw new Error("initializeWasm() must be awaited first!");
28244         }
28245         const nativeResponseValue = wasm.TS_ScoringParameters_get_base_penalty_msat(this_ptr);
28246         return nativeResponseValue;
28247 }
28248         // void ScoringParameters_set_base_penalty_msat(struct LDKScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
28249 /* @internal */
28250 export function ScoringParameters_set_base_penalty_msat(this_ptr: number, val: bigint): void {
28251         if(!isWasmInitialized) {
28252                 throw new Error("initializeWasm() must be awaited first!");
28253         }
28254         const nativeResponseValue = wasm.TS_ScoringParameters_set_base_penalty_msat(this_ptr, val);
28255         // debug statements here
28256 }
28257         // uint64_t ScoringParameters_get_failure_penalty_msat(const struct LDKScoringParameters *NONNULL_PTR this_ptr);
28258 /* @internal */
28259 export function ScoringParameters_get_failure_penalty_msat(this_ptr: number): bigint {
28260         if(!isWasmInitialized) {
28261                 throw new Error("initializeWasm() must be awaited first!");
28262         }
28263         const nativeResponseValue = wasm.TS_ScoringParameters_get_failure_penalty_msat(this_ptr);
28264         return nativeResponseValue;
28265 }
28266         // void ScoringParameters_set_failure_penalty_msat(struct LDKScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
28267 /* @internal */
28268 export function ScoringParameters_set_failure_penalty_msat(this_ptr: number, val: bigint): void {
28269         if(!isWasmInitialized) {
28270                 throw new Error("initializeWasm() must be awaited first!");
28271         }
28272         const nativeResponseValue = wasm.TS_ScoringParameters_set_failure_penalty_msat(this_ptr, val);
28273         // debug statements here
28274 }
28275         // uint16_t ScoringParameters_get_overuse_penalty_start_1024th(const struct LDKScoringParameters *NONNULL_PTR this_ptr);
28276 /* @internal */
28277 export function ScoringParameters_get_overuse_penalty_start_1024th(this_ptr: number): number {
28278         if(!isWasmInitialized) {
28279                 throw new Error("initializeWasm() must be awaited first!");
28280         }
28281         const nativeResponseValue = wasm.TS_ScoringParameters_get_overuse_penalty_start_1024th(this_ptr);
28282         return nativeResponseValue;
28283 }
28284         // void ScoringParameters_set_overuse_penalty_start_1024th(struct LDKScoringParameters *NONNULL_PTR this_ptr, uint16_t val);
28285 /* @internal */
28286 export function ScoringParameters_set_overuse_penalty_start_1024th(this_ptr: number, val: number): void {
28287         if(!isWasmInitialized) {
28288                 throw new Error("initializeWasm() must be awaited first!");
28289         }
28290         const nativeResponseValue = wasm.TS_ScoringParameters_set_overuse_penalty_start_1024th(this_ptr, val);
28291         // debug statements here
28292 }
28293         // uint64_t ScoringParameters_get_overuse_penalty_msat_per_1024th(const struct LDKScoringParameters *NONNULL_PTR this_ptr);
28294 /* @internal */
28295 export function ScoringParameters_get_overuse_penalty_msat_per_1024th(this_ptr: number): bigint {
28296         if(!isWasmInitialized) {
28297                 throw new Error("initializeWasm() must be awaited first!");
28298         }
28299         const nativeResponseValue = wasm.TS_ScoringParameters_get_overuse_penalty_msat_per_1024th(this_ptr);
28300         return nativeResponseValue;
28301 }
28302         // void ScoringParameters_set_overuse_penalty_msat_per_1024th(struct LDKScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
28303 /* @internal */
28304 export function ScoringParameters_set_overuse_penalty_msat_per_1024th(this_ptr: number, val: bigint): void {
28305         if(!isWasmInitialized) {
28306                 throw new Error("initializeWasm() must be awaited first!");
28307         }
28308         const nativeResponseValue = wasm.TS_ScoringParameters_set_overuse_penalty_msat_per_1024th(this_ptr, val);
28309         // debug statements here
28310 }
28311         // uint64_t ScoringParameters_get_failure_penalty_half_life(const struct LDKScoringParameters *NONNULL_PTR this_ptr);
28312 /* @internal */
28313 export function ScoringParameters_get_failure_penalty_half_life(this_ptr: number): bigint {
28314         if(!isWasmInitialized) {
28315                 throw new Error("initializeWasm() must be awaited first!");
28316         }
28317         const nativeResponseValue = wasm.TS_ScoringParameters_get_failure_penalty_half_life(this_ptr);
28318         return nativeResponseValue;
28319 }
28320         // void ScoringParameters_set_failure_penalty_half_life(struct LDKScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
28321 /* @internal */
28322 export function ScoringParameters_set_failure_penalty_half_life(this_ptr: number, val: bigint): void {
28323         if(!isWasmInitialized) {
28324                 throw new Error("initializeWasm() must be awaited first!");
28325         }
28326         const nativeResponseValue = wasm.TS_ScoringParameters_set_failure_penalty_half_life(this_ptr, val);
28327         // debug statements here
28328 }
28329         // MUST_USE_RES struct LDKScoringParameters ScoringParameters_new(uint64_t base_penalty_msat_arg, uint64_t failure_penalty_msat_arg, uint16_t overuse_penalty_start_1024th_arg, uint64_t overuse_penalty_msat_per_1024th_arg, uint64_t failure_penalty_half_life_arg);
28330 /* @internal */
28331 export function ScoringParameters_new(base_penalty_msat_arg: bigint, failure_penalty_msat_arg: bigint, overuse_penalty_start_1024th_arg: number, overuse_penalty_msat_per_1024th_arg: bigint, failure_penalty_half_life_arg: bigint): number {
28332         if(!isWasmInitialized) {
28333                 throw new Error("initializeWasm() must be awaited first!");
28334         }
28335         const nativeResponseValue = wasm.TS_ScoringParameters_new(base_penalty_msat_arg, failure_penalty_msat_arg, overuse_penalty_start_1024th_arg, overuse_penalty_msat_per_1024th_arg, failure_penalty_half_life_arg);
28336         return nativeResponseValue;
28337 }
28338         // uintptr_t ScoringParameters_clone_ptr(LDKScoringParameters *NONNULL_PTR arg);
28339 /* @internal */
28340 export function ScoringParameters_clone_ptr(arg: number): number {
28341         if(!isWasmInitialized) {
28342                 throw new Error("initializeWasm() must be awaited first!");
28343         }
28344         const nativeResponseValue = wasm.TS_ScoringParameters_clone_ptr(arg);
28345         return nativeResponseValue;
28346 }
28347         // struct LDKScoringParameters ScoringParameters_clone(const struct LDKScoringParameters *NONNULL_PTR orig);
28348 /* @internal */
28349 export function ScoringParameters_clone(orig: number): number {
28350         if(!isWasmInitialized) {
28351                 throw new Error("initializeWasm() must be awaited first!");
28352         }
28353         const nativeResponseValue = wasm.TS_ScoringParameters_clone(orig);
28354         return nativeResponseValue;
28355 }
28356         // struct LDKCVec_u8Z ScoringParameters_write(const struct LDKScoringParameters *NONNULL_PTR obj);
28357 /* @internal */
28358 export function ScoringParameters_write(obj: number): number {
28359         if(!isWasmInitialized) {
28360                 throw new Error("initializeWasm() must be awaited first!");
28361         }
28362         const nativeResponseValue = wasm.TS_ScoringParameters_write(obj);
28363         return nativeResponseValue;
28364 }
28365         // struct LDKCResult_ScoringParametersDecodeErrorZ ScoringParameters_read(struct LDKu8slice ser);
28366 /* @internal */
28367 export function ScoringParameters_read(ser: number): number {
28368         if(!isWasmInitialized) {
28369                 throw new Error("initializeWasm() must be awaited first!");
28370         }
28371         const nativeResponseValue = wasm.TS_ScoringParameters_read(ser);
28372         return nativeResponseValue;
28373 }
28374         // MUST_USE_RES struct LDKScorer Scorer_new(struct LDKScoringParameters params);
28375 /* @internal */
28376 export function Scorer_new(params: number): number {
28377         if(!isWasmInitialized) {
28378                 throw new Error("initializeWasm() must be awaited first!");
28379         }
28380         const nativeResponseValue = wasm.TS_Scorer_new(params);
28381         return nativeResponseValue;
28382 }
28383         // MUST_USE_RES struct LDKScorer Scorer_default(void);
28384 /* @internal */
28385 export function Scorer_default(): number {
28386         if(!isWasmInitialized) {
28387                 throw new Error("initializeWasm() must be awaited first!");
28388         }
28389         const nativeResponseValue = wasm.TS_Scorer_default();
28390         return nativeResponseValue;
28391 }
28392         // MUST_USE_RES struct LDKScoringParameters ScoringParameters_default(void);
28393 /* @internal */
28394 export function ScoringParameters_default(): number {
28395         if(!isWasmInitialized) {
28396                 throw new Error("initializeWasm() must be awaited first!");
28397         }
28398         const nativeResponseValue = wasm.TS_ScoringParameters_default();
28399         return nativeResponseValue;
28400 }
28401         // struct LDKScore Scorer_as_Score(const struct LDKScorer *NONNULL_PTR this_arg);
28402 /* @internal */
28403 export function Scorer_as_Score(this_arg: number): number {
28404         if(!isWasmInitialized) {
28405                 throw new Error("initializeWasm() must be awaited first!");
28406         }
28407         const nativeResponseValue = wasm.TS_Scorer_as_Score(this_arg);
28408         return nativeResponseValue;
28409 }
28410         // struct LDKCVec_u8Z Scorer_write(const struct LDKScorer *NONNULL_PTR obj);
28411 /* @internal */
28412 export function Scorer_write(obj: number): number {
28413         if(!isWasmInitialized) {
28414                 throw new Error("initializeWasm() must be awaited first!");
28415         }
28416         const nativeResponseValue = wasm.TS_Scorer_write(obj);
28417         return nativeResponseValue;
28418 }
28419         // struct LDKCResult_ScorerDecodeErrorZ Scorer_read(struct LDKu8slice ser);
28420 /* @internal */
28421 export function Scorer_read(ser: number): number {
28422         if(!isWasmInitialized) {
28423                 throw new Error("initializeWasm() must be awaited first!");
28424         }
28425         const nativeResponseValue = wasm.TS_Scorer_read(ser);
28426         return nativeResponseValue;
28427 }
28428         // void ProbabilisticScoringParameters_free(struct LDKProbabilisticScoringParameters this_obj);
28429 /* @internal */
28430 export function ProbabilisticScoringParameters_free(this_obj: number): void {
28431         if(!isWasmInitialized) {
28432                 throw new Error("initializeWasm() must be awaited first!");
28433         }
28434         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_free(this_obj);
28435         // debug statements here
28436 }
28437         // uint64_t ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
28438 /* @internal */
28439 export function ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(this_ptr: number): bigint {
28440         if(!isWasmInitialized) {
28441                 throw new Error("initializeWasm() must be awaited first!");
28442         }
28443         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(this_ptr);
28444         return nativeResponseValue;
28445 }
28446         // void ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
28447 /* @internal */
28448 export function ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(this_ptr: number, val: bigint): void {
28449         if(!isWasmInitialized) {
28450                 throw new Error("initializeWasm() must be awaited first!");
28451         }
28452         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(this_ptr, val);
28453         // debug statements here
28454 }
28455         // uint64_t ProbabilisticScoringParameters_get_liquidity_offset_half_life(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
28456 /* @internal */
28457 export function ProbabilisticScoringParameters_get_liquidity_offset_half_life(this_ptr: number): bigint {
28458         if(!isWasmInitialized) {
28459                 throw new Error("initializeWasm() must be awaited first!");
28460         }
28461         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_liquidity_offset_half_life(this_ptr);
28462         return nativeResponseValue;
28463 }
28464         // void ProbabilisticScoringParameters_set_liquidity_offset_half_life(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
28465 /* @internal */
28466 export function ProbabilisticScoringParameters_set_liquidity_offset_half_life(this_ptr: number, val: bigint): void {
28467         if(!isWasmInitialized) {
28468                 throw new Error("initializeWasm() must be awaited first!");
28469         }
28470         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_liquidity_offset_half_life(this_ptr, val);
28471         // debug statements here
28472 }
28473         // MUST_USE_RES struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_new(uint64_t liquidity_penalty_multiplier_msat_arg, uint64_t liquidity_offset_half_life_arg);
28474 /* @internal */
28475 export function ProbabilisticScoringParameters_new(liquidity_penalty_multiplier_msat_arg: bigint, liquidity_offset_half_life_arg: bigint): number {
28476         if(!isWasmInitialized) {
28477                 throw new Error("initializeWasm() must be awaited first!");
28478         }
28479         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_new(liquidity_penalty_multiplier_msat_arg, liquidity_offset_half_life_arg);
28480         return nativeResponseValue;
28481 }
28482         // uintptr_t ProbabilisticScoringParameters_clone_ptr(LDKProbabilisticScoringParameters *NONNULL_PTR arg);
28483 /* @internal */
28484 export function ProbabilisticScoringParameters_clone_ptr(arg: number): number {
28485         if(!isWasmInitialized) {
28486                 throw new Error("initializeWasm() must be awaited first!");
28487         }
28488         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_clone_ptr(arg);
28489         return nativeResponseValue;
28490 }
28491         // struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_clone(const struct LDKProbabilisticScoringParameters *NONNULL_PTR orig);
28492 /* @internal */
28493 export function ProbabilisticScoringParameters_clone(orig: number): number {
28494         if(!isWasmInitialized) {
28495                 throw new Error("initializeWasm() must be awaited first!");
28496         }
28497         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_clone(orig);
28498         return nativeResponseValue;
28499 }
28500         // struct LDKCVec_u8Z ProbabilisticScoringParameters_write(const struct LDKProbabilisticScoringParameters *NONNULL_PTR obj);
28501 /* @internal */
28502 export function ProbabilisticScoringParameters_write(obj: number): number {
28503         if(!isWasmInitialized) {
28504                 throw new Error("initializeWasm() must be awaited first!");
28505         }
28506         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_write(obj);
28507         return nativeResponseValue;
28508 }
28509         // struct LDKCResult_ProbabilisticScoringParametersDecodeErrorZ ProbabilisticScoringParameters_read(struct LDKu8slice ser);
28510 /* @internal */
28511 export function ProbabilisticScoringParameters_read(ser: number): number {
28512         if(!isWasmInitialized) {
28513                 throw new Error("initializeWasm() must be awaited first!");
28514         }
28515         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_read(ser);
28516         return nativeResponseValue;
28517 }
28518         // MUST_USE_RES struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_default(void);
28519 /* @internal */
28520 export function ProbabilisticScoringParameters_default(): number {
28521         if(!isWasmInitialized) {
28522                 throw new Error("initializeWasm() must be awaited first!");
28523         }
28524         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_default();
28525         return nativeResponseValue;
28526 }
28527         // void Invoice_free(struct LDKInvoice this_obj);
28528 /* @internal */
28529 export function Invoice_free(this_obj: number): void {
28530         if(!isWasmInitialized) {
28531                 throw new Error("initializeWasm() must be awaited first!");
28532         }
28533         const nativeResponseValue = wasm.TS_Invoice_free(this_obj);
28534         // debug statements here
28535 }
28536         // bool Invoice_eq(const struct LDKInvoice *NONNULL_PTR a, const struct LDKInvoice *NONNULL_PTR b);
28537 /* @internal */
28538 export function Invoice_eq(a: number, b: number): boolean {
28539         if(!isWasmInitialized) {
28540                 throw new Error("initializeWasm() must be awaited first!");
28541         }
28542         const nativeResponseValue = wasm.TS_Invoice_eq(a, b);
28543         return nativeResponseValue;
28544 }
28545         // uintptr_t Invoice_clone_ptr(LDKInvoice *NONNULL_PTR arg);
28546 /* @internal */
28547 export function Invoice_clone_ptr(arg: number): number {
28548         if(!isWasmInitialized) {
28549                 throw new Error("initializeWasm() must be awaited first!");
28550         }
28551         const nativeResponseValue = wasm.TS_Invoice_clone_ptr(arg);
28552         return nativeResponseValue;
28553 }
28554         // struct LDKInvoice Invoice_clone(const struct LDKInvoice *NONNULL_PTR orig);
28555 /* @internal */
28556 export function Invoice_clone(orig: number): number {
28557         if(!isWasmInitialized) {
28558                 throw new Error("initializeWasm() must be awaited first!");
28559         }
28560         const nativeResponseValue = wasm.TS_Invoice_clone(orig);
28561         return nativeResponseValue;
28562 }
28563         // void SignedRawInvoice_free(struct LDKSignedRawInvoice this_obj);
28564 /* @internal */
28565 export function SignedRawInvoice_free(this_obj: number): void {
28566         if(!isWasmInitialized) {
28567                 throw new Error("initializeWasm() must be awaited first!");
28568         }
28569         const nativeResponseValue = wasm.TS_SignedRawInvoice_free(this_obj);
28570         // debug statements here
28571 }
28572         // bool SignedRawInvoice_eq(const struct LDKSignedRawInvoice *NONNULL_PTR a, const struct LDKSignedRawInvoice *NONNULL_PTR b);
28573 /* @internal */
28574 export function SignedRawInvoice_eq(a: number, b: number): boolean {
28575         if(!isWasmInitialized) {
28576                 throw new Error("initializeWasm() must be awaited first!");
28577         }
28578         const nativeResponseValue = wasm.TS_SignedRawInvoice_eq(a, b);
28579         return nativeResponseValue;
28580 }
28581         // uintptr_t SignedRawInvoice_clone_ptr(LDKSignedRawInvoice *NONNULL_PTR arg);
28582 /* @internal */
28583 export function SignedRawInvoice_clone_ptr(arg: number): number {
28584         if(!isWasmInitialized) {
28585                 throw new Error("initializeWasm() must be awaited first!");
28586         }
28587         const nativeResponseValue = wasm.TS_SignedRawInvoice_clone_ptr(arg);
28588         return nativeResponseValue;
28589 }
28590         // struct LDKSignedRawInvoice SignedRawInvoice_clone(const struct LDKSignedRawInvoice *NONNULL_PTR orig);
28591 /* @internal */
28592 export function SignedRawInvoice_clone(orig: number): number {
28593         if(!isWasmInitialized) {
28594                 throw new Error("initializeWasm() must be awaited first!");
28595         }
28596         const nativeResponseValue = wasm.TS_SignedRawInvoice_clone(orig);
28597         return nativeResponseValue;
28598 }
28599         // void RawInvoice_free(struct LDKRawInvoice this_obj);
28600 /* @internal */
28601 export function RawInvoice_free(this_obj: number): void {
28602         if(!isWasmInitialized) {
28603                 throw new Error("initializeWasm() must be awaited first!");
28604         }
28605         const nativeResponseValue = wasm.TS_RawInvoice_free(this_obj);
28606         // debug statements here
28607 }
28608         // struct LDKRawDataPart RawInvoice_get_data(const struct LDKRawInvoice *NONNULL_PTR this_ptr);
28609 /* @internal */
28610 export function RawInvoice_get_data(this_ptr: number): number {
28611         if(!isWasmInitialized) {
28612                 throw new Error("initializeWasm() must be awaited first!");
28613         }
28614         const nativeResponseValue = wasm.TS_RawInvoice_get_data(this_ptr);
28615         return nativeResponseValue;
28616 }
28617         // void RawInvoice_set_data(struct LDKRawInvoice *NONNULL_PTR this_ptr, struct LDKRawDataPart val);
28618 /* @internal */
28619 export function RawInvoice_set_data(this_ptr: number, val: number): void {
28620         if(!isWasmInitialized) {
28621                 throw new Error("initializeWasm() must be awaited first!");
28622         }
28623         const nativeResponseValue = wasm.TS_RawInvoice_set_data(this_ptr, val);
28624         // debug statements here
28625 }
28626         // bool RawInvoice_eq(const struct LDKRawInvoice *NONNULL_PTR a, const struct LDKRawInvoice *NONNULL_PTR b);
28627 /* @internal */
28628 export function RawInvoice_eq(a: number, b: number): boolean {
28629         if(!isWasmInitialized) {
28630                 throw new Error("initializeWasm() must be awaited first!");
28631         }
28632         const nativeResponseValue = wasm.TS_RawInvoice_eq(a, b);
28633         return nativeResponseValue;
28634 }
28635         // uintptr_t RawInvoice_clone_ptr(LDKRawInvoice *NONNULL_PTR arg);
28636 /* @internal */
28637 export function RawInvoice_clone_ptr(arg: number): number {
28638         if(!isWasmInitialized) {
28639                 throw new Error("initializeWasm() must be awaited first!");
28640         }
28641         const nativeResponseValue = wasm.TS_RawInvoice_clone_ptr(arg);
28642         return nativeResponseValue;
28643 }
28644         // struct LDKRawInvoice RawInvoice_clone(const struct LDKRawInvoice *NONNULL_PTR orig);
28645 /* @internal */
28646 export function RawInvoice_clone(orig: number): number {
28647         if(!isWasmInitialized) {
28648                 throw new Error("initializeWasm() must be awaited first!");
28649         }
28650         const nativeResponseValue = wasm.TS_RawInvoice_clone(orig);
28651         return nativeResponseValue;
28652 }
28653         // void RawDataPart_free(struct LDKRawDataPart this_obj);
28654 /* @internal */
28655 export function RawDataPart_free(this_obj: number): void {
28656         if(!isWasmInitialized) {
28657                 throw new Error("initializeWasm() must be awaited first!");
28658         }
28659         const nativeResponseValue = wasm.TS_RawDataPart_free(this_obj);
28660         // debug statements here
28661 }
28662         // struct LDKPositiveTimestamp RawDataPart_get_timestamp(const struct LDKRawDataPart *NONNULL_PTR this_ptr);
28663 /* @internal */
28664 export function RawDataPart_get_timestamp(this_ptr: number): number {
28665         if(!isWasmInitialized) {
28666                 throw new Error("initializeWasm() must be awaited first!");
28667         }
28668         const nativeResponseValue = wasm.TS_RawDataPart_get_timestamp(this_ptr);
28669         return nativeResponseValue;
28670 }
28671         // void RawDataPart_set_timestamp(struct LDKRawDataPart *NONNULL_PTR this_ptr, struct LDKPositiveTimestamp val);
28672 /* @internal */
28673 export function RawDataPart_set_timestamp(this_ptr: number, val: number): void {
28674         if(!isWasmInitialized) {
28675                 throw new Error("initializeWasm() must be awaited first!");
28676         }
28677         const nativeResponseValue = wasm.TS_RawDataPart_set_timestamp(this_ptr, val);
28678         // debug statements here
28679 }
28680         // bool RawDataPart_eq(const struct LDKRawDataPart *NONNULL_PTR a, const struct LDKRawDataPart *NONNULL_PTR b);
28681 /* @internal */
28682 export function RawDataPart_eq(a: number, b: number): boolean {
28683         if(!isWasmInitialized) {
28684                 throw new Error("initializeWasm() must be awaited first!");
28685         }
28686         const nativeResponseValue = wasm.TS_RawDataPart_eq(a, b);
28687         return nativeResponseValue;
28688 }
28689         // uintptr_t RawDataPart_clone_ptr(LDKRawDataPart *NONNULL_PTR arg);
28690 /* @internal */
28691 export function RawDataPart_clone_ptr(arg: number): number {
28692         if(!isWasmInitialized) {
28693                 throw new Error("initializeWasm() must be awaited first!");
28694         }
28695         const nativeResponseValue = wasm.TS_RawDataPart_clone_ptr(arg);
28696         return nativeResponseValue;
28697 }
28698         // struct LDKRawDataPart RawDataPart_clone(const struct LDKRawDataPart *NONNULL_PTR orig);
28699 /* @internal */
28700 export function RawDataPart_clone(orig: number): number {
28701         if(!isWasmInitialized) {
28702                 throw new Error("initializeWasm() must be awaited first!");
28703         }
28704         const nativeResponseValue = wasm.TS_RawDataPart_clone(orig);
28705         return nativeResponseValue;
28706 }
28707         // void PositiveTimestamp_free(struct LDKPositiveTimestamp this_obj);
28708 /* @internal */
28709 export function PositiveTimestamp_free(this_obj: number): void {
28710         if(!isWasmInitialized) {
28711                 throw new Error("initializeWasm() must be awaited first!");
28712         }
28713         const nativeResponseValue = wasm.TS_PositiveTimestamp_free(this_obj);
28714         // debug statements here
28715 }
28716         // bool PositiveTimestamp_eq(const struct LDKPositiveTimestamp *NONNULL_PTR a, const struct LDKPositiveTimestamp *NONNULL_PTR b);
28717 /* @internal */
28718 export function PositiveTimestamp_eq(a: number, b: number): boolean {
28719         if(!isWasmInitialized) {
28720                 throw new Error("initializeWasm() must be awaited first!");
28721         }
28722         const nativeResponseValue = wasm.TS_PositiveTimestamp_eq(a, b);
28723         return nativeResponseValue;
28724 }
28725         // uintptr_t PositiveTimestamp_clone_ptr(LDKPositiveTimestamp *NONNULL_PTR arg);
28726 /* @internal */
28727 export function PositiveTimestamp_clone_ptr(arg: number): number {
28728         if(!isWasmInitialized) {
28729                 throw new Error("initializeWasm() must be awaited first!");
28730         }
28731         const nativeResponseValue = wasm.TS_PositiveTimestamp_clone_ptr(arg);
28732         return nativeResponseValue;
28733 }
28734         // struct LDKPositiveTimestamp PositiveTimestamp_clone(const struct LDKPositiveTimestamp *NONNULL_PTR orig);
28735 /* @internal */
28736 export function PositiveTimestamp_clone(orig: number): number {
28737         if(!isWasmInitialized) {
28738                 throw new Error("initializeWasm() must be awaited first!");
28739         }
28740         const nativeResponseValue = wasm.TS_PositiveTimestamp_clone(orig);
28741         return nativeResponseValue;
28742 }
28743         // enum LDKSiPrefix SiPrefix_clone(const enum LDKSiPrefix *NONNULL_PTR orig);
28744 /* @internal */
28745 export function SiPrefix_clone(orig: number): SiPrefix {
28746         if(!isWasmInitialized) {
28747                 throw new Error("initializeWasm() must be awaited first!");
28748         }
28749         const nativeResponseValue = wasm.TS_SiPrefix_clone(orig);
28750         return nativeResponseValue;
28751 }
28752         // enum LDKSiPrefix SiPrefix_milli(void);
28753 /* @internal */
28754 export function SiPrefix_milli(): SiPrefix {
28755         if(!isWasmInitialized) {
28756                 throw new Error("initializeWasm() must be awaited first!");
28757         }
28758         const nativeResponseValue = wasm.TS_SiPrefix_milli();
28759         return nativeResponseValue;
28760 }
28761         // enum LDKSiPrefix SiPrefix_micro(void);
28762 /* @internal */
28763 export function SiPrefix_micro(): SiPrefix {
28764         if(!isWasmInitialized) {
28765                 throw new Error("initializeWasm() must be awaited first!");
28766         }
28767         const nativeResponseValue = wasm.TS_SiPrefix_micro();
28768         return nativeResponseValue;
28769 }
28770         // enum LDKSiPrefix SiPrefix_nano(void);
28771 /* @internal */
28772 export function SiPrefix_nano(): SiPrefix {
28773         if(!isWasmInitialized) {
28774                 throw new Error("initializeWasm() must be awaited first!");
28775         }
28776         const nativeResponseValue = wasm.TS_SiPrefix_nano();
28777         return nativeResponseValue;
28778 }
28779         // enum LDKSiPrefix SiPrefix_pico(void);
28780 /* @internal */
28781 export function SiPrefix_pico(): SiPrefix {
28782         if(!isWasmInitialized) {
28783                 throw new Error("initializeWasm() must be awaited first!");
28784         }
28785         const nativeResponseValue = wasm.TS_SiPrefix_pico();
28786         return nativeResponseValue;
28787 }
28788         // bool SiPrefix_eq(const enum LDKSiPrefix *NONNULL_PTR a, const enum LDKSiPrefix *NONNULL_PTR b);
28789 /* @internal */
28790 export function SiPrefix_eq(a: number, b: number): boolean {
28791         if(!isWasmInitialized) {
28792                 throw new Error("initializeWasm() must be awaited first!");
28793         }
28794         const nativeResponseValue = wasm.TS_SiPrefix_eq(a, b);
28795         return nativeResponseValue;
28796 }
28797         // MUST_USE_RES uint64_t SiPrefix_multiplier(const enum LDKSiPrefix *NONNULL_PTR this_arg);
28798 /* @internal */
28799 export function SiPrefix_multiplier(this_arg: number): bigint {
28800         if(!isWasmInitialized) {
28801                 throw new Error("initializeWasm() must be awaited first!");
28802         }
28803         const nativeResponseValue = wasm.TS_SiPrefix_multiplier(this_arg);
28804         return nativeResponseValue;
28805 }
28806         // enum LDKCurrency Currency_clone(const enum LDKCurrency *NONNULL_PTR orig);
28807 /* @internal */
28808 export function Currency_clone(orig: number): Currency {
28809         if(!isWasmInitialized) {
28810                 throw new Error("initializeWasm() must be awaited first!");
28811         }
28812         const nativeResponseValue = wasm.TS_Currency_clone(orig);
28813         return nativeResponseValue;
28814 }
28815         // enum LDKCurrency Currency_bitcoin(void);
28816 /* @internal */
28817 export function Currency_bitcoin(): Currency {
28818         if(!isWasmInitialized) {
28819                 throw new Error("initializeWasm() must be awaited first!");
28820         }
28821         const nativeResponseValue = wasm.TS_Currency_bitcoin();
28822         return nativeResponseValue;
28823 }
28824         // enum LDKCurrency Currency_bitcoin_testnet(void);
28825 /* @internal */
28826 export function Currency_bitcoin_testnet(): Currency {
28827         if(!isWasmInitialized) {
28828                 throw new Error("initializeWasm() must be awaited first!");
28829         }
28830         const nativeResponseValue = wasm.TS_Currency_bitcoin_testnet();
28831         return nativeResponseValue;
28832 }
28833         // enum LDKCurrency Currency_regtest(void);
28834 /* @internal */
28835 export function Currency_regtest(): Currency {
28836         if(!isWasmInitialized) {
28837                 throw new Error("initializeWasm() must be awaited first!");
28838         }
28839         const nativeResponseValue = wasm.TS_Currency_regtest();
28840         return nativeResponseValue;
28841 }
28842         // enum LDKCurrency Currency_simnet(void);
28843 /* @internal */
28844 export function Currency_simnet(): Currency {
28845         if(!isWasmInitialized) {
28846                 throw new Error("initializeWasm() must be awaited first!");
28847         }
28848         const nativeResponseValue = wasm.TS_Currency_simnet();
28849         return nativeResponseValue;
28850 }
28851         // enum LDKCurrency Currency_signet(void);
28852 /* @internal */
28853 export function Currency_signet(): Currency {
28854         if(!isWasmInitialized) {
28855                 throw new Error("initializeWasm() must be awaited first!");
28856         }
28857         const nativeResponseValue = wasm.TS_Currency_signet();
28858         return nativeResponseValue;
28859 }
28860         // uint64_t Currency_hash(const enum LDKCurrency *NONNULL_PTR o);
28861 /* @internal */
28862 export function Currency_hash(o: number): bigint {
28863         if(!isWasmInitialized) {
28864                 throw new Error("initializeWasm() must be awaited first!");
28865         }
28866         const nativeResponseValue = wasm.TS_Currency_hash(o);
28867         return nativeResponseValue;
28868 }
28869         // bool Currency_eq(const enum LDKCurrency *NONNULL_PTR a, const enum LDKCurrency *NONNULL_PTR b);
28870 /* @internal */
28871 export function Currency_eq(a: number, b: number): boolean {
28872         if(!isWasmInitialized) {
28873                 throw new Error("initializeWasm() must be awaited first!");
28874         }
28875         const nativeResponseValue = wasm.TS_Currency_eq(a, b);
28876         return nativeResponseValue;
28877 }
28878         // void Sha256_free(struct LDKSha256 this_obj);
28879 /* @internal */
28880 export function Sha256_free(this_obj: number): void {
28881         if(!isWasmInitialized) {
28882                 throw new Error("initializeWasm() must be awaited first!");
28883         }
28884         const nativeResponseValue = wasm.TS_Sha256_free(this_obj);
28885         // debug statements here
28886 }
28887         // uintptr_t Sha256_clone_ptr(LDKSha256 *NONNULL_PTR arg);
28888 /* @internal */
28889 export function Sha256_clone_ptr(arg: number): number {
28890         if(!isWasmInitialized) {
28891                 throw new Error("initializeWasm() must be awaited first!");
28892         }
28893         const nativeResponseValue = wasm.TS_Sha256_clone_ptr(arg);
28894         return nativeResponseValue;
28895 }
28896         // struct LDKSha256 Sha256_clone(const struct LDKSha256 *NONNULL_PTR orig);
28897 /* @internal */
28898 export function Sha256_clone(orig: number): number {
28899         if(!isWasmInitialized) {
28900                 throw new Error("initializeWasm() must be awaited first!");
28901         }
28902         const nativeResponseValue = wasm.TS_Sha256_clone(orig);
28903         return nativeResponseValue;
28904 }
28905         // uint64_t Sha256_hash(const struct LDKSha256 *NONNULL_PTR o);
28906 /* @internal */
28907 export function Sha256_hash(o: number): bigint {
28908         if(!isWasmInitialized) {
28909                 throw new Error("initializeWasm() must be awaited first!");
28910         }
28911         const nativeResponseValue = wasm.TS_Sha256_hash(o);
28912         return nativeResponseValue;
28913 }
28914         // bool Sha256_eq(const struct LDKSha256 *NONNULL_PTR a, const struct LDKSha256 *NONNULL_PTR b);
28915 /* @internal */
28916 export function Sha256_eq(a: number, b: number): boolean {
28917         if(!isWasmInitialized) {
28918                 throw new Error("initializeWasm() must be awaited first!");
28919         }
28920         const nativeResponseValue = wasm.TS_Sha256_eq(a, b);
28921         return nativeResponseValue;
28922 }
28923         // void Description_free(struct LDKDescription this_obj);
28924 /* @internal */
28925 export function Description_free(this_obj: number): void {
28926         if(!isWasmInitialized) {
28927                 throw new Error("initializeWasm() must be awaited first!");
28928         }
28929         const nativeResponseValue = wasm.TS_Description_free(this_obj);
28930         // debug statements here
28931 }
28932         // uintptr_t Description_clone_ptr(LDKDescription *NONNULL_PTR arg);
28933 /* @internal */
28934 export function Description_clone_ptr(arg: number): number {
28935         if(!isWasmInitialized) {
28936                 throw new Error("initializeWasm() must be awaited first!");
28937         }
28938         const nativeResponseValue = wasm.TS_Description_clone_ptr(arg);
28939         return nativeResponseValue;
28940 }
28941         // struct LDKDescription Description_clone(const struct LDKDescription *NONNULL_PTR orig);
28942 /* @internal */
28943 export function Description_clone(orig: number): number {
28944         if(!isWasmInitialized) {
28945                 throw new Error("initializeWasm() must be awaited first!");
28946         }
28947         const nativeResponseValue = wasm.TS_Description_clone(orig);
28948         return nativeResponseValue;
28949 }
28950         // uint64_t Description_hash(const struct LDKDescription *NONNULL_PTR o);
28951 /* @internal */
28952 export function Description_hash(o: number): bigint {
28953         if(!isWasmInitialized) {
28954                 throw new Error("initializeWasm() must be awaited first!");
28955         }
28956         const nativeResponseValue = wasm.TS_Description_hash(o);
28957         return nativeResponseValue;
28958 }
28959         // bool Description_eq(const struct LDKDescription *NONNULL_PTR a, const struct LDKDescription *NONNULL_PTR b);
28960 /* @internal */
28961 export function Description_eq(a: number, b: number): boolean {
28962         if(!isWasmInitialized) {
28963                 throw new Error("initializeWasm() must be awaited first!");
28964         }
28965         const nativeResponseValue = wasm.TS_Description_eq(a, b);
28966         return nativeResponseValue;
28967 }
28968         // void PayeePubKey_free(struct LDKPayeePubKey this_obj);
28969 /* @internal */
28970 export function PayeePubKey_free(this_obj: number): void {
28971         if(!isWasmInitialized) {
28972                 throw new Error("initializeWasm() must be awaited first!");
28973         }
28974         const nativeResponseValue = wasm.TS_PayeePubKey_free(this_obj);
28975         // debug statements here
28976 }
28977         // struct LDKPublicKey PayeePubKey_get_a(const struct LDKPayeePubKey *NONNULL_PTR this_ptr);
28978 /* @internal */
28979 export function PayeePubKey_get_a(this_ptr: number): number {
28980         if(!isWasmInitialized) {
28981                 throw new Error("initializeWasm() must be awaited first!");
28982         }
28983         const nativeResponseValue = wasm.TS_PayeePubKey_get_a(this_ptr);
28984         return nativeResponseValue;
28985 }
28986         // void PayeePubKey_set_a(struct LDKPayeePubKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
28987 /* @internal */
28988 export function PayeePubKey_set_a(this_ptr: number, val: number): void {
28989         if(!isWasmInitialized) {
28990                 throw new Error("initializeWasm() must be awaited first!");
28991         }
28992         const nativeResponseValue = wasm.TS_PayeePubKey_set_a(this_ptr, val);
28993         // debug statements here
28994 }
28995         // MUST_USE_RES struct LDKPayeePubKey PayeePubKey_new(struct LDKPublicKey a_arg);
28996 /* @internal */
28997 export function PayeePubKey_new(a_arg: number): number {
28998         if(!isWasmInitialized) {
28999                 throw new Error("initializeWasm() must be awaited first!");
29000         }
29001         const nativeResponseValue = wasm.TS_PayeePubKey_new(a_arg);
29002         return nativeResponseValue;
29003 }
29004         // uintptr_t PayeePubKey_clone_ptr(LDKPayeePubKey *NONNULL_PTR arg);
29005 /* @internal */
29006 export function PayeePubKey_clone_ptr(arg: number): number {
29007         if(!isWasmInitialized) {
29008                 throw new Error("initializeWasm() must be awaited first!");
29009         }
29010         const nativeResponseValue = wasm.TS_PayeePubKey_clone_ptr(arg);
29011         return nativeResponseValue;
29012 }
29013         // struct LDKPayeePubKey PayeePubKey_clone(const struct LDKPayeePubKey *NONNULL_PTR orig);
29014 /* @internal */
29015 export function PayeePubKey_clone(orig: number): number {
29016         if(!isWasmInitialized) {
29017                 throw new Error("initializeWasm() must be awaited first!");
29018         }
29019         const nativeResponseValue = wasm.TS_PayeePubKey_clone(orig);
29020         return nativeResponseValue;
29021 }
29022         // uint64_t PayeePubKey_hash(const struct LDKPayeePubKey *NONNULL_PTR o);
29023 /* @internal */
29024 export function PayeePubKey_hash(o: number): bigint {
29025         if(!isWasmInitialized) {
29026                 throw new Error("initializeWasm() must be awaited first!");
29027         }
29028         const nativeResponseValue = wasm.TS_PayeePubKey_hash(o);
29029         return nativeResponseValue;
29030 }
29031         // bool PayeePubKey_eq(const struct LDKPayeePubKey *NONNULL_PTR a, const struct LDKPayeePubKey *NONNULL_PTR b);
29032 /* @internal */
29033 export function PayeePubKey_eq(a: number, b: number): boolean {
29034         if(!isWasmInitialized) {
29035                 throw new Error("initializeWasm() must be awaited first!");
29036         }
29037         const nativeResponseValue = wasm.TS_PayeePubKey_eq(a, b);
29038         return nativeResponseValue;
29039 }
29040         // void ExpiryTime_free(struct LDKExpiryTime this_obj);
29041 /* @internal */
29042 export function ExpiryTime_free(this_obj: number): void {
29043         if(!isWasmInitialized) {
29044                 throw new Error("initializeWasm() must be awaited first!");
29045         }
29046         const nativeResponseValue = wasm.TS_ExpiryTime_free(this_obj);
29047         // debug statements here
29048 }
29049         // uintptr_t ExpiryTime_clone_ptr(LDKExpiryTime *NONNULL_PTR arg);
29050 /* @internal */
29051 export function ExpiryTime_clone_ptr(arg: number): number {
29052         if(!isWasmInitialized) {
29053                 throw new Error("initializeWasm() must be awaited first!");
29054         }
29055         const nativeResponseValue = wasm.TS_ExpiryTime_clone_ptr(arg);
29056         return nativeResponseValue;
29057 }
29058         // struct LDKExpiryTime ExpiryTime_clone(const struct LDKExpiryTime *NONNULL_PTR orig);
29059 /* @internal */
29060 export function ExpiryTime_clone(orig: number): number {
29061         if(!isWasmInitialized) {
29062                 throw new Error("initializeWasm() must be awaited first!");
29063         }
29064         const nativeResponseValue = wasm.TS_ExpiryTime_clone(orig);
29065         return nativeResponseValue;
29066 }
29067         // uint64_t ExpiryTime_hash(const struct LDKExpiryTime *NONNULL_PTR o);
29068 /* @internal */
29069 export function ExpiryTime_hash(o: number): bigint {
29070         if(!isWasmInitialized) {
29071                 throw new Error("initializeWasm() must be awaited first!");
29072         }
29073         const nativeResponseValue = wasm.TS_ExpiryTime_hash(o);
29074         return nativeResponseValue;
29075 }
29076         // bool ExpiryTime_eq(const struct LDKExpiryTime *NONNULL_PTR a, const struct LDKExpiryTime *NONNULL_PTR b);
29077 /* @internal */
29078 export function ExpiryTime_eq(a: number, b: number): boolean {
29079         if(!isWasmInitialized) {
29080                 throw new Error("initializeWasm() must be awaited first!");
29081         }
29082         const nativeResponseValue = wasm.TS_ExpiryTime_eq(a, b);
29083         return nativeResponseValue;
29084 }
29085         // void MinFinalCltvExpiry_free(struct LDKMinFinalCltvExpiry this_obj);
29086 /* @internal */
29087 export function MinFinalCltvExpiry_free(this_obj: number): void {
29088         if(!isWasmInitialized) {
29089                 throw new Error("initializeWasm() must be awaited first!");
29090         }
29091         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_free(this_obj);
29092         // debug statements here
29093 }
29094         // uint64_t MinFinalCltvExpiry_get_a(const struct LDKMinFinalCltvExpiry *NONNULL_PTR this_ptr);
29095 /* @internal */
29096 export function MinFinalCltvExpiry_get_a(this_ptr: number): bigint {
29097         if(!isWasmInitialized) {
29098                 throw new Error("initializeWasm() must be awaited first!");
29099         }
29100         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_get_a(this_ptr);
29101         return nativeResponseValue;
29102 }
29103         // void MinFinalCltvExpiry_set_a(struct LDKMinFinalCltvExpiry *NONNULL_PTR this_ptr, uint64_t val);
29104 /* @internal */
29105 export function MinFinalCltvExpiry_set_a(this_ptr: number, val: bigint): void {
29106         if(!isWasmInitialized) {
29107                 throw new Error("initializeWasm() must be awaited first!");
29108         }
29109         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_set_a(this_ptr, val);
29110         // debug statements here
29111 }
29112         // MUST_USE_RES struct LDKMinFinalCltvExpiry MinFinalCltvExpiry_new(uint64_t a_arg);
29113 /* @internal */
29114 export function MinFinalCltvExpiry_new(a_arg: bigint): number {
29115         if(!isWasmInitialized) {
29116                 throw new Error("initializeWasm() must be awaited first!");
29117         }
29118         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_new(a_arg);
29119         return nativeResponseValue;
29120 }
29121         // uintptr_t MinFinalCltvExpiry_clone_ptr(LDKMinFinalCltvExpiry *NONNULL_PTR arg);
29122 /* @internal */
29123 export function MinFinalCltvExpiry_clone_ptr(arg: number): number {
29124         if(!isWasmInitialized) {
29125                 throw new Error("initializeWasm() must be awaited first!");
29126         }
29127         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_clone_ptr(arg);
29128         return nativeResponseValue;
29129 }
29130         // struct LDKMinFinalCltvExpiry MinFinalCltvExpiry_clone(const struct LDKMinFinalCltvExpiry *NONNULL_PTR orig);
29131 /* @internal */
29132 export function MinFinalCltvExpiry_clone(orig: number): number {
29133         if(!isWasmInitialized) {
29134                 throw new Error("initializeWasm() must be awaited first!");
29135         }
29136         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_clone(orig);
29137         return nativeResponseValue;
29138 }
29139         // uint64_t MinFinalCltvExpiry_hash(const struct LDKMinFinalCltvExpiry *NONNULL_PTR o);
29140 /* @internal */
29141 export function MinFinalCltvExpiry_hash(o: number): bigint {
29142         if(!isWasmInitialized) {
29143                 throw new Error("initializeWasm() must be awaited first!");
29144         }
29145         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_hash(o);
29146         return nativeResponseValue;
29147 }
29148         // bool MinFinalCltvExpiry_eq(const struct LDKMinFinalCltvExpiry *NONNULL_PTR a, const struct LDKMinFinalCltvExpiry *NONNULL_PTR b);
29149 /* @internal */
29150 export function MinFinalCltvExpiry_eq(a: number, b: number): boolean {
29151         if(!isWasmInitialized) {
29152                 throw new Error("initializeWasm() must be awaited first!");
29153         }
29154         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_eq(a, b);
29155         return nativeResponseValue;
29156 }
29157         // void Fallback_free(struct LDKFallback this_ptr);
29158 /* @internal */
29159 export function Fallback_free(this_ptr: number): void {
29160         if(!isWasmInitialized) {
29161                 throw new Error("initializeWasm() must be awaited first!");
29162         }
29163         const nativeResponseValue = wasm.TS_Fallback_free(this_ptr);
29164         // debug statements here
29165 }
29166         // uintptr_t Fallback_clone_ptr(LDKFallback *NONNULL_PTR arg);
29167 /* @internal */
29168 export function Fallback_clone_ptr(arg: number): number {
29169         if(!isWasmInitialized) {
29170                 throw new Error("initializeWasm() must be awaited first!");
29171         }
29172         const nativeResponseValue = wasm.TS_Fallback_clone_ptr(arg);
29173         return nativeResponseValue;
29174 }
29175         // struct LDKFallback Fallback_clone(const struct LDKFallback *NONNULL_PTR orig);
29176 /* @internal */
29177 export function Fallback_clone(orig: number): number {
29178         if(!isWasmInitialized) {
29179                 throw new Error("initializeWasm() must be awaited first!");
29180         }
29181         const nativeResponseValue = wasm.TS_Fallback_clone(orig);
29182         return nativeResponseValue;
29183 }
29184         // struct LDKFallback Fallback_seg_wit_program(struct LDKu5 version, struct LDKCVec_u8Z program);
29185 /* @internal */
29186 export function Fallback_seg_wit_program(version: number, program: number): number {
29187         if(!isWasmInitialized) {
29188                 throw new Error("initializeWasm() must be awaited first!");
29189         }
29190         const nativeResponseValue = wasm.TS_Fallback_seg_wit_program(version, program);
29191         return nativeResponseValue;
29192 }
29193         // struct LDKFallback Fallback_pub_key_hash(struct LDKTwentyBytes a);
29194 /* @internal */
29195 export function Fallback_pub_key_hash(a: number): number {
29196         if(!isWasmInitialized) {
29197                 throw new Error("initializeWasm() must be awaited first!");
29198         }
29199         const nativeResponseValue = wasm.TS_Fallback_pub_key_hash(a);
29200         return nativeResponseValue;
29201 }
29202         // struct LDKFallback Fallback_script_hash(struct LDKTwentyBytes a);
29203 /* @internal */
29204 export function Fallback_script_hash(a: number): number {
29205         if(!isWasmInitialized) {
29206                 throw new Error("initializeWasm() must be awaited first!");
29207         }
29208         const nativeResponseValue = wasm.TS_Fallback_script_hash(a);
29209         return nativeResponseValue;
29210 }
29211         // uint64_t Fallback_hash(const struct LDKFallback *NONNULL_PTR o);
29212 /* @internal */
29213 export function Fallback_hash(o: number): bigint {
29214         if(!isWasmInitialized) {
29215                 throw new Error("initializeWasm() must be awaited first!");
29216         }
29217         const nativeResponseValue = wasm.TS_Fallback_hash(o);
29218         return nativeResponseValue;
29219 }
29220         // bool Fallback_eq(const struct LDKFallback *NONNULL_PTR a, const struct LDKFallback *NONNULL_PTR b);
29221 /* @internal */
29222 export function Fallback_eq(a: number, b: number): boolean {
29223         if(!isWasmInitialized) {
29224                 throw new Error("initializeWasm() must be awaited first!");
29225         }
29226         const nativeResponseValue = wasm.TS_Fallback_eq(a, b);
29227         return nativeResponseValue;
29228 }
29229         // void InvoiceSignature_free(struct LDKInvoiceSignature this_obj);
29230 /* @internal */
29231 export function InvoiceSignature_free(this_obj: number): void {
29232         if(!isWasmInitialized) {
29233                 throw new Error("initializeWasm() must be awaited first!");
29234         }
29235         const nativeResponseValue = wasm.TS_InvoiceSignature_free(this_obj);
29236         // debug statements here
29237 }
29238         // uintptr_t InvoiceSignature_clone_ptr(LDKInvoiceSignature *NONNULL_PTR arg);
29239 /* @internal */
29240 export function InvoiceSignature_clone_ptr(arg: number): number {
29241         if(!isWasmInitialized) {
29242                 throw new Error("initializeWasm() must be awaited first!");
29243         }
29244         const nativeResponseValue = wasm.TS_InvoiceSignature_clone_ptr(arg);
29245         return nativeResponseValue;
29246 }
29247         // struct LDKInvoiceSignature InvoiceSignature_clone(const struct LDKInvoiceSignature *NONNULL_PTR orig);
29248 /* @internal */
29249 export function InvoiceSignature_clone(orig: number): number {
29250         if(!isWasmInitialized) {
29251                 throw new Error("initializeWasm() must be awaited first!");
29252         }
29253         const nativeResponseValue = wasm.TS_InvoiceSignature_clone(orig);
29254         return nativeResponseValue;
29255 }
29256         // bool InvoiceSignature_eq(const struct LDKInvoiceSignature *NONNULL_PTR a, const struct LDKInvoiceSignature *NONNULL_PTR b);
29257 /* @internal */
29258 export function InvoiceSignature_eq(a: number, b: number): boolean {
29259         if(!isWasmInitialized) {
29260                 throw new Error("initializeWasm() must be awaited first!");
29261         }
29262         const nativeResponseValue = wasm.TS_InvoiceSignature_eq(a, b);
29263         return nativeResponseValue;
29264 }
29265         // void PrivateRoute_free(struct LDKPrivateRoute this_obj);
29266 /* @internal */
29267 export function PrivateRoute_free(this_obj: number): void {
29268         if(!isWasmInitialized) {
29269                 throw new Error("initializeWasm() must be awaited first!");
29270         }
29271         const nativeResponseValue = wasm.TS_PrivateRoute_free(this_obj);
29272         // debug statements here
29273 }
29274         // uintptr_t PrivateRoute_clone_ptr(LDKPrivateRoute *NONNULL_PTR arg);
29275 /* @internal */
29276 export function PrivateRoute_clone_ptr(arg: number): number {
29277         if(!isWasmInitialized) {
29278                 throw new Error("initializeWasm() must be awaited first!");
29279         }
29280         const nativeResponseValue = wasm.TS_PrivateRoute_clone_ptr(arg);
29281         return nativeResponseValue;
29282 }
29283         // struct LDKPrivateRoute PrivateRoute_clone(const struct LDKPrivateRoute *NONNULL_PTR orig);
29284 /* @internal */
29285 export function PrivateRoute_clone(orig: number): number {
29286         if(!isWasmInitialized) {
29287                 throw new Error("initializeWasm() must be awaited first!");
29288         }
29289         const nativeResponseValue = wasm.TS_PrivateRoute_clone(orig);
29290         return nativeResponseValue;
29291 }
29292         // uint64_t PrivateRoute_hash(const struct LDKPrivateRoute *NONNULL_PTR o);
29293 /* @internal */
29294 export function PrivateRoute_hash(o: number): bigint {
29295         if(!isWasmInitialized) {
29296                 throw new Error("initializeWasm() must be awaited first!");
29297         }
29298         const nativeResponseValue = wasm.TS_PrivateRoute_hash(o);
29299         return nativeResponseValue;
29300 }
29301         // bool PrivateRoute_eq(const struct LDKPrivateRoute *NONNULL_PTR a, const struct LDKPrivateRoute *NONNULL_PTR b);
29302 /* @internal */
29303 export function PrivateRoute_eq(a: number, b: number): boolean {
29304         if(!isWasmInitialized) {
29305                 throw new Error("initializeWasm() must be awaited first!");
29306         }
29307         const nativeResponseValue = wasm.TS_PrivateRoute_eq(a, b);
29308         return nativeResponseValue;
29309 }
29310         // MUST_USE_RES struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ SignedRawInvoice_into_parts(struct LDKSignedRawInvoice this_arg);
29311 /* @internal */
29312 export function SignedRawInvoice_into_parts(this_arg: number): number {
29313         if(!isWasmInitialized) {
29314                 throw new Error("initializeWasm() must be awaited first!");
29315         }
29316         const nativeResponseValue = wasm.TS_SignedRawInvoice_into_parts(this_arg);
29317         return nativeResponseValue;
29318 }
29319         // MUST_USE_RES struct LDKRawInvoice SignedRawInvoice_raw_invoice(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
29320 /* @internal */
29321 export function SignedRawInvoice_raw_invoice(this_arg: number): number {
29322         if(!isWasmInitialized) {
29323                 throw new Error("initializeWasm() must be awaited first!");
29324         }
29325         const nativeResponseValue = wasm.TS_SignedRawInvoice_raw_invoice(this_arg);
29326         return nativeResponseValue;
29327 }
29328         // MUST_USE_RES const uint8_t (*SignedRawInvoice_hash(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg))[32];
29329 /* @internal */
29330 export function SignedRawInvoice_hash(this_arg: number): number {
29331         if(!isWasmInitialized) {
29332                 throw new Error("initializeWasm() must be awaited first!");
29333         }
29334         const nativeResponseValue = wasm.TS_SignedRawInvoice_hash(this_arg);
29335         return nativeResponseValue;
29336 }
29337         // MUST_USE_RES struct LDKInvoiceSignature SignedRawInvoice_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
29338 /* @internal */
29339 export function SignedRawInvoice_signature(this_arg: number): number {
29340         if(!isWasmInitialized) {
29341                 throw new Error("initializeWasm() must be awaited first!");
29342         }
29343         const nativeResponseValue = wasm.TS_SignedRawInvoice_signature(this_arg);
29344         return nativeResponseValue;
29345 }
29346         // MUST_USE_RES struct LDKCResult_PayeePubKeyErrorZ SignedRawInvoice_recover_payee_pub_key(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
29347 /* @internal */
29348 export function SignedRawInvoice_recover_payee_pub_key(this_arg: number): number {
29349         if(!isWasmInitialized) {
29350                 throw new Error("initializeWasm() must be awaited first!");
29351         }
29352         const nativeResponseValue = wasm.TS_SignedRawInvoice_recover_payee_pub_key(this_arg);
29353         return nativeResponseValue;
29354 }
29355         // MUST_USE_RES bool SignedRawInvoice_check_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
29356 /* @internal */
29357 export function SignedRawInvoice_check_signature(this_arg: number): boolean {
29358         if(!isWasmInitialized) {
29359                 throw new Error("initializeWasm() must be awaited first!");
29360         }
29361         const nativeResponseValue = wasm.TS_SignedRawInvoice_check_signature(this_arg);
29362         return nativeResponseValue;
29363 }
29364         // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
29365 /* @internal */
29366 export function RawInvoice_hash(this_arg: number): number {
29367         if(!isWasmInitialized) {
29368                 throw new Error("initializeWasm() must be awaited first!");
29369         }
29370         const nativeResponseValue = wasm.TS_RawInvoice_hash(this_arg);
29371         return nativeResponseValue;
29372 }
29373         // MUST_USE_RES struct LDKSha256 RawInvoice_payment_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
29374 /* @internal */
29375 export function RawInvoice_payment_hash(this_arg: number): number {
29376         if(!isWasmInitialized) {
29377                 throw new Error("initializeWasm() must be awaited first!");
29378         }
29379         const nativeResponseValue = wasm.TS_RawInvoice_payment_hash(this_arg);
29380         return nativeResponseValue;
29381 }
29382         // MUST_USE_RES struct LDKDescription RawInvoice_description(const struct LDKRawInvoice *NONNULL_PTR this_arg);
29383 /* @internal */
29384 export function RawInvoice_description(this_arg: number): number {
29385         if(!isWasmInitialized) {
29386                 throw new Error("initializeWasm() must be awaited first!");
29387         }
29388         const nativeResponseValue = wasm.TS_RawInvoice_description(this_arg);
29389         return nativeResponseValue;
29390 }
29391         // MUST_USE_RES struct LDKPayeePubKey RawInvoice_payee_pub_key(const struct LDKRawInvoice *NONNULL_PTR this_arg);
29392 /* @internal */
29393 export function RawInvoice_payee_pub_key(this_arg: number): number {
29394         if(!isWasmInitialized) {
29395                 throw new Error("initializeWasm() must be awaited first!");
29396         }
29397         const nativeResponseValue = wasm.TS_RawInvoice_payee_pub_key(this_arg);
29398         return nativeResponseValue;
29399 }
29400         // MUST_USE_RES struct LDKSha256 RawInvoice_description_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
29401 /* @internal */
29402 export function RawInvoice_description_hash(this_arg: number): number {
29403         if(!isWasmInitialized) {
29404                 throw new Error("initializeWasm() must be awaited first!");
29405         }
29406         const nativeResponseValue = wasm.TS_RawInvoice_description_hash(this_arg);
29407         return nativeResponseValue;
29408 }
29409         // MUST_USE_RES struct LDKExpiryTime RawInvoice_expiry_time(const struct LDKRawInvoice *NONNULL_PTR this_arg);
29410 /* @internal */
29411 export function RawInvoice_expiry_time(this_arg: number): number {
29412         if(!isWasmInitialized) {
29413                 throw new Error("initializeWasm() must be awaited first!");
29414         }
29415         const nativeResponseValue = wasm.TS_RawInvoice_expiry_time(this_arg);
29416         return nativeResponseValue;
29417 }
29418         // MUST_USE_RES struct LDKMinFinalCltvExpiry RawInvoice_min_final_cltv_expiry(const struct LDKRawInvoice *NONNULL_PTR this_arg);
29419 /* @internal */
29420 export function RawInvoice_min_final_cltv_expiry(this_arg: number): number {
29421         if(!isWasmInitialized) {
29422                 throw new Error("initializeWasm() must be awaited first!");
29423         }
29424         const nativeResponseValue = wasm.TS_RawInvoice_min_final_cltv_expiry(this_arg);
29425         return nativeResponseValue;
29426 }
29427         // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_payment_secret(const struct LDKRawInvoice *NONNULL_PTR this_arg);
29428 /* @internal */
29429 export function RawInvoice_payment_secret(this_arg: number): number {
29430         if(!isWasmInitialized) {
29431                 throw new Error("initializeWasm() must be awaited first!");
29432         }
29433         const nativeResponseValue = wasm.TS_RawInvoice_payment_secret(this_arg);
29434         return nativeResponseValue;
29435 }
29436         // MUST_USE_RES struct LDKInvoiceFeatures RawInvoice_features(const struct LDKRawInvoice *NONNULL_PTR this_arg);
29437 /* @internal */
29438 export function RawInvoice_features(this_arg: number): number {
29439         if(!isWasmInitialized) {
29440                 throw new Error("initializeWasm() must be awaited first!");
29441         }
29442         const nativeResponseValue = wasm.TS_RawInvoice_features(this_arg);
29443         return nativeResponseValue;
29444 }
29445         // MUST_USE_RES struct LDKCVec_PrivateRouteZ RawInvoice_private_routes(const struct LDKRawInvoice *NONNULL_PTR this_arg);
29446 /* @internal */
29447 export function RawInvoice_private_routes(this_arg: number): number {
29448         if(!isWasmInitialized) {
29449                 throw new Error("initializeWasm() must be awaited first!");
29450         }
29451         const nativeResponseValue = wasm.TS_RawInvoice_private_routes(this_arg);
29452         return nativeResponseValue;
29453 }
29454         // MUST_USE_RES struct LDKCOption_u64Z RawInvoice_amount_pico_btc(const struct LDKRawInvoice *NONNULL_PTR this_arg);
29455 /* @internal */
29456 export function RawInvoice_amount_pico_btc(this_arg: number): number {
29457         if(!isWasmInitialized) {
29458                 throw new Error("initializeWasm() must be awaited first!");
29459         }
29460         const nativeResponseValue = wasm.TS_RawInvoice_amount_pico_btc(this_arg);
29461         return nativeResponseValue;
29462 }
29463         // MUST_USE_RES enum LDKCurrency RawInvoice_currency(const struct LDKRawInvoice *NONNULL_PTR this_arg);
29464 /* @internal */
29465 export function RawInvoice_currency(this_arg: number): Currency {
29466         if(!isWasmInitialized) {
29467                 throw new Error("initializeWasm() must be awaited first!");
29468         }
29469         const nativeResponseValue = wasm.TS_RawInvoice_currency(this_arg);
29470         return nativeResponseValue;
29471 }
29472         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_unix_timestamp(uint64_t unix_seconds);
29473 /* @internal */
29474 export function PositiveTimestamp_from_unix_timestamp(unix_seconds: bigint): number {
29475         if(!isWasmInitialized) {
29476                 throw new Error("initializeWasm() must be awaited first!");
29477         }
29478         const nativeResponseValue = wasm.TS_PositiveTimestamp_from_unix_timestamp(unix_seconds);
29479         return nativeResponseValue;
29480 }
29481         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_duration_since_epoch(uint64_t duration);
29482 /* @internal */
29483 export function PositiveTimestamp_from_duration_since_epoch(duration: bigint): number {
29484         if(!isWasmInitialized) {
29485                 throw new Error("initializeWasm() must be awaited first!");
29486         }
29487         const nativeResponseValue = wasm.TS_PositiveTimestamp_from_duration_since_epoch(duration);
29488         return nativeResponseValue;
29489 }
29490         // MUST_USE_RES uint64_t PositiveTimestamp_as_unix_timestamp(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
29491 /* @internal */
29492 export function PositiveTimestamp_as_unix_timestamp(this_arg: number): bigint {
29493         if(!isWasmInitialized) {
29494                 throw new Error("initializeWasm() must be awaited first!");
29495         }
29496         const nativeResponseValue = wasm.TS_PositiveTimestamp_as_unix_timestamp(this_arg);
29497         return nativeResponseValue;
29498 }
29499         // MUST_USE_RES uint64_t PositiveTimestamp_as_duration_since_epoch(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
29500 /* @internal */
29501 export function PositiveTimestamp_as_duration_since_epoch(this_arg: number): bigint {
29502         if(!isWasmInitialized) {
29503                 throw new Error("initializeWasm() must be awaited first!");
29504         }
29505         const nativeResponseValue = wasm.TS_PositiveTimestamp_as_duration_since_epoch(this_arg);
29506         return nativeResponseValue;
29507 }
29508         // MUST_USE_RES struct LDKSignedRawInvoice Invoice_into_signed_raw(struct LDKInvoice this_arg);
29509 /* @internal */
29510 export function Invoice_into_signed_raw(this_arg: number): number {
29511         if(!isWasmInitialized) {
29512                 throw new Error("initializeWasm() must be awaited first!");
29513         }
29514         const nativeResponseValue = wasm.TS_Invoice_into_signed_raw(this_arg);
29515         return nativeResponseValue;
29516 }
29517         // MUST_USE_RES struct LDKCResult_NoneSemanticErrorZ Invoice_check_signature(const struct LDKInvoice *NONNULL_PTR this_arg);
29518 /* @internal */
29519 export function Invoice_check_signature(this_arg: number): number {
29520         if(!isWasmInitialized) {
29521                 throw new Error("initializeWasm() must be awaited first!");
29522         }
29523         const nativeResponseValue = wasm.TS_Invoice_check_signature(this_arg);
29524         return nativeResponseValue;
29525 }
29526         // MUST_USE_RES struct LDKCResult_InvoiceSemanticErrorZ Invoice_from_signed(struct LDKSignedRawInvoice signed_invoice);
29527 /* @internal */
29528 export function Invoice_from_signed(signed_invoice: number): number {
29529         if(!isWasmInitialized) {
29530                 throw new Error("initializeWasm() must be awaited first!");
29531         }
29532         const nativeResponseValue = wasm.TS_Invoice_from_signed(signed_invoice);
29533         return nativeResponseValue;
29534 }
29535         // MUST_USE_RES uint64_t Invoice_duration_since_epoch(const struct LDKInvoice *NONNULL_PTR this_arg);
29536 /* @internal */
29537 export function Invoice_duration_since_epoch(this_arg: number): bigint {
29538         if(!isWasmInitialized) {
29539                 throw new Error("initializeWasm() must be awaited first!");
29540         }
29541         const nativeResponseValue = wasm.TS_Invoice_duration_since_epoch(this_arg);
29542         return nativeResponseValue;
29543 }
29544         // MUST_USE_RES const uint8_t (*Invoice_payment_hash(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
29545 /* @internal */
29546 export function Invoice_payment_hash(this_arg: number): number {
29547         if(!isWasmInitialized) {
29548                 throw new Error("initializeWasm() must be awaited first!");
29549         }
29550         const nativeResponseValue = wasm.TS_Invoice_payment_hash(this_arg);
29551         return nativeResponseValue;
29552 }
29553         // MUST_USE_RES struct LDKPublicKey Invoice_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
29554 /* @internal */
29555 export function Invoice_payee_pub_key(this_arg: number): number {
29556         if(!isWasmInitialized) {
29557                 throw new Error("initializeWasm() must be awaited first!");
29558         }
29559         const nativeResponseValue = wasm.TS_Invoice_payee_pub_key(this_arg);
29560         return nativeResponseValue;
29561 }
29562         // MUST_USE_RES const uint8_t (*Invoice_payment_secret(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
29563 /* @internal */
29564 export function Invoice_payment_secret(this_arg: number): number {
29565         if(!isWasmInitialized) {
29566                 throw new Error("initializeWasm() must be awaited first!");
29567         }
29568         const nativeResponseValue = wasm.TS_Invoice_payment_secret(this_arg);
29569         return nativeResponseValue;
29570 }
29571         // MUST_USE_RES struct LDKInvoiceFeatures Invoice_features(const struct LDKInvoice *NONNULL_PTR this_arg);
29572 /* @internal */
29573 export function Invoice_features(this_arg: number): number {
29574         if(!isWasmInitialized) {
29575                 throw new Error("initializeWasm() must be awaited first!");
29576         }
29577         const nativeResponseValue = wasm.TS_Invoice_features(this_arg);
29578         return nativeResponseValue;
29579 }
29580         // MUST_USE_RES struct LDKPublicKey Invoice_recover_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
29581 /* @internal */
29582 export function Invoice_recover_payee_pub_key(this_arg: number): number {
29583         if(!isWasmInitialized) {
29584                 throw new Error("initializeWasm() must be awaited first!");
29585         }
29586         const nativeResponseValue = wasm.TS_Invoice_recover_payee_pub_key(this_arg);
29587         return nativeResponseValue;
29588 }
29589         // MUST_USE_RES uint64_t Invoice_expiry_time(const struct LDKInvoice *NONNULL_PTR this_arg);
29590 /* @internal */
29591 export function Invoice_expiry_time(this_arg: number): bigint {
29592         if(!isWasmInitialized) {
29593                 throw new Error("initializeWasm() must be awaited first!");
29594         }
29595         const nativeResponseValue = wasm.TS_Invoice_expiry_time(this_arg);
29596         return nativeResponseValue;
29597 }
29598         // MUST_USE_RES bool Invoice_would_expire(const struct LDKInvoice *NONNULL_PTR this_arg, uint64_t at_time);
29599 /* @internal */
29600 export function Invoice_would_expire(this_arg: number, at_time: bigint): boolean {
29601         if(!isWasmInitialized) {
29602                 throw new Error("initializeWasm() must be awaited first!");
29603         }
29604         const nativeResponseValue = wasm.TS_Invoice_would_expire(this_arg, at_time);
29605         return nativeResponseValue;
29606 }
29607         // MUST_USE_RES uint64_t Invoice_min_final_cltv_expiry(const struct LDKInvoice *NONNULL_PTR this_arg);
29608 /* @internal */
29609 export function Invoice_min_final_cltv_expiry(this_arg: number): bigint {
29610         if(!isWasmInitialized) {
29611                 throw new Error("initializeWasm() must be awaited first!");
29612         }
29613         const nativeResponseValue = wasm.TS_Invoice_min_final_cltv_expiry(this_arg);
29614         return nativeResponseValue;
29615 }
29616         // MUST_USE_RES struct LDKCVec_PrivateRouteZ Invoice_private_routes(const struct LDKInvoice *NONNULL_PTR this_arg);
29617 /* @internal */
29618 export function Invoice_private_routes(this_arg: number): number {
29619         if(!isWasmInitialized) {
29620                 throw new Error("initializeWasm() must be awaited first!");
29621         }
29622         const nativeResponseValue = wasm.TS_Invoice_private_routes(this_arg);
29623         return nativeResponseValue;
29624 }
29625         // MUST_USE_RES struct LDKCVec_RouteHintZ Invoice_route_hints(const struct LDKInvoice *NONNULL_PTR this_arg);
29626 /* @internal */
29627 export function Invoice_route_hints(this_arg: number): number {
29628         if(!isWasmInitialized) {
29629                 throw new Error("initializeWasm() must be awaited first!");
29630         }
29631         const nativeResponseValue = wasm.TS_Invoice_route_hints(this_arg);
29632         return nativeResponseValue;
29633 }
29634         // MUST_USE_RES enum LDKCurrency Invoice_currency(const struct LDKInvoice *NONNULL_PTR this_arg);
29635 /* @internal */
29636 export function Invoice_currency(this_arg: number): Currency {
29637         if(!isWasmInitialized) {
29638                 throw new Error("initializeWasm() must be awaited first!");
29639         }
29640         const nativeResponseValue = wasm.TS_Invoice_currency(this_arg);
29641         return nativeResponseValue;
29642 }
29643         // MUST_USE_RES struct LDKCOption_u64Z Invoice_amount_milli_satoshis(const struct LDKInvoice *NONNULL_PTR this_arg);
29644 /* @internal */
29645 export function Invoice_amount_milli_satoshis(this_arg: number): number {
29646         if(!isWasmInitialized) {
29647                 throw new Error("initializeWasm() must be awaited first!");
29648         }
29649         const nativeResponseValue = wasm.TS_Invoice_amount_milli_satoshis(this_arg);
29650         return nativeResponseValue;
29651 }
29652         // MUST_USE_RES struct LDKCResult_DescriptionCreationErrorZ Description_new(struct LDKStr description);
29653 /* @internal */
29654 export function Description_new(description: number): number {
29655         if(!isWasmInitialized) {
29656                 throw new Error("initializeWasm() must be awaited first!");
29657         }
29658         const nativeResponseValue = wasm.TS_Description_new(description);
29659         return nativeResponseValue;
29660 }
29661         // MUST_USE_RES struct LDKStr Description_into_inner(struct LDKDescription this_arg);
29662 /* @internal */
29663 export function Description_into_inner(this_arg: number): number {
29664         if(!isWasmInitialized) {
29665                 throw new Error("initializeWasm() must be awaited first!");
29666         }
29667         const nativeResponseValue = wasm.TS_Description_into_inner(this_arg);
29668         return nativeResponseValue;
29669 }
29670         // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_seconds(uint64_t seconds);
29671 /* @internal */
29672 export function ExpiryTime_from_seconds(seconds: bigint): number {
29673         if(!isWasmInitialized) {
29674                 throw new Error("initializeWasm() must be awaited first!");
29675         }
29676         const nativeResponseValue = wasm.TS_ExpiryTime_from_seconds(seconds);
29677         return nativeResponseValue;
29678 }
29679         // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_duration(uint64_t duration);
29680 /* @internal */
29681 export function ExpiryTime_from_duration(duration: bigint): number {
29682         if(!isWasmInitialized) {
29683                 throw new Error("initializeWasm() must be awaited first!");
29684         }
29685         const nativeResponseValue = wasm.TS_ExpiryTime_from_duration(duration);
29686         return nativeResponseValue;
29687 }
29688         // MUST_USE_RES uint64_t ExpiryTime_as_seconds(const struct LDKExpiryTime *NONNULL_PTR this_arg);
29689 /* @internal */
29690 export function ExpiryTime_as_seconds(this_arg: number): bigint {
29691         if(!isWasmInitialized) {
29692                 throw new Error("initializeWasm() must be awaited first!");
29693         }
29694         const nativeResponseValue = wasm.TS_ExpiryTime_as_seconds(this_arg);
29695         return nativeResponseValue;
29696 }
29697         // MUST_USE_RES uint64_t ExpiryTime_as_duration(const struct LDKExpiryTime *NONNULL_PTR this_arg);
29698 /* @internal */
29699 export function ExpiryTime_as_duration(this_arg: number): bigint {
29700         if(!isWasmInitialized) {
29701                 throw new Error("initializeWasm() must be awaited first!");
29702         }
29703         const nativeResponseValue = wasm.TS_ExpiryTime_as_duration(this_arg);
29704         return nativeResponseValue;
29705 }
29706         // MUST_USE_RES struct LDKCResult_PrivateRouteCreationErrorZ PrivateRoute_new(struct LDKRouteHint hops);
29707 /* @internal */
29708 export function PrivateRoute_new(hops: number): number {
29709         if(!isWasmInitialized) {
29710                 throw new Error("initializeWasm() must be awaited first!");
29711         }
29712         const nativeResponseValue = wasm.TS_PrivateRoute_new(hops);
29713         return nativeResponseValue;
29714 }
29715         // MUST_USE_RES struct LDKRouteHint PrivateRoute_into_inner(struct LDKPrivateRoute this_arg);
29716 /* @internal */
29717 export function PrivateRoute_into_inner(this_arg: number): number {
29718         if(!isWasmInitialized) {
29719                 throw new Error("initializeWasm() must be awaited first!");
29720         }
29721         const nativeResponseValue = wasm.TS_PrivateRoute_into_inner(this_arg);
29722         return nativeResponseValue;
29723 }
29724         // enum LDKCreationError CreationError_clone(const enum LDKCreationError *NONNULL_PTR orig);
29725 /* @internal */
29726 export function CreationError_clone(orig: number): CreationError {
29727         if(!isWasmInitialized) {
29728                 throw new Error("initializeWasm() must be awaited first!");
29729         }
29730         const nativeResponseValue = wasm.TS_CreationError_clone(orig);
29731         return nativeResponseValue;
29732 }
29733         // enum LDKCreationError CreationError_description_too_long(void);
29734 /* @internal */
29735 export function CreationError_description_too_long(): CreationError {
29736         if(!isWasmInitialized) {
29737                 throw new Error("initializeWasm() must be awaited first!");
29738         }
29739         const nativeResponseValue = wasm.TS_CreationError_description_too_long();
29740         return nativeResponseValue;
29741 }
29742         // enum LDKCreationError CreationError_route_too_long(void);
29743 /* @internal */
29744 export function CreationError_route_too_long(): CreationError {
29745         if(!isWasmInitialized) {
29746                 throw new Error("initializeWasm() must be awaited first!");
29747         }
29748         const nativeResponseValue = wasm.TS_CreationError_route_too_long();
29749         return nativeResponseValue;
29750 }
29751         // enum LDKCreationError CreationError_timestamp_out_of_bounds(void);
29752 /* @internal */
29753 export function CreationError_timestamp_out_of_bounds(): CreationError {
29754         if(!isWasmInitialized) {
29755                 throw new Error("initializeWasm() must be awaited first!");
29756         }
29757         const nativeResponseValue = wasm.TS_CreationError_timestamp_out_of_bounds();
29758         return nativeResponseValue;
29759 }
29760         // enum LDKCreationError CreationError_invalid_amount(void);
29761 /* @internal */
29762 export function CreationError_invalid_amount(): CreationError {
29763         if(!isWasmInitialized) {
29764                 throw new Error("initializeWasm() must be awaited first!");
29765         }
29766         const nativeResponseValue = wasm.TS_CreationError_invalid_amount();
29767         return nativeResponseValue;
29768 }
29769         // enum LDKCreationError CreationError_missing_route_hints(void);
29770 /* @internal */
29771 export function CreationError_missing_route_hints(): CreationError {
29772         if(!isWasmInitialized) {
29773                 throw new Error("initializeWasm() must be awaited first!");
29774         }
29775         const nativeResponseValue = wasm.TS_CreationError_missing_route_hints();
29776         return nativeResponseValue;
29777 }
29778         // bool CreationError_eq(const enum LDKCreationError *NONNULL_PTR a, const enum LDKCreationError *NONNULL_PTR b);
29779 /* @internal */
29780 export function CreationError_eq(a: number, b: number): boolean {
29781         if(!isWasmInitialized) {
29782                 throw new Error("initializeWasm() must be awaited first!");
29783         }
29784         const nativeResponseValue = wasm.TS_CreationError_eq(a, b);
29785         return nativeResponseValue;
29786 }
29787         // struct LDKStr CreationError_to_str(const enum LDKCreationError *NONNULL_PTR o);
29788 /* @internal */
29789 export function CreationError_to_str(o: number): number {
29790         if(!isWasmInitialized) {
29791                 throw new Error("initializeWasm() must be awaited first!");
29792         }
29793         const nativeResponseValue = wasm.TS_CreationError_to_str(o);
29794         return nativeResponseValue;
29795 }
29796         // enum LDKSemanticError SemanticError_clone(const enum LDKSemanticError *NONNULL_PTR orig);
29797 /* @internal */
29798 export function SemanticError_clone(orig: number): SemanticError {
29799         if(!isWasmInitialized) {
29800                 throw new Error("initializeWasm() must be awaited first!");
29801         }
29802         const nativeResponseValue = wasm.TS_SemanticError_clone(orig);
29803         return nativeResponseValue;
29804 }
29805         // enum LDKSemanticError SemanticError_no_payment_hash(void);
29806 /* @internal */
29807 export function SemanticError_no_payment_hash(): SemanticError {
29808         if(!isWasmInitialized) {
29809                 throw new Error("initializeWasm() must be awaited first!");
29810         }
29811         const nativeResponseValue = wasm.TS_SemanticError_no_payment_hash();
29812         return nativeResponseValue;
29813 }
29814         // enum LDKSemanticError SemanticError_multiple_payment_hashes(void);
29815 /* @internal */
29816 export function SemanticError_multiple_payment_hashes(): SemanticError {
29817         if(!isWasmInitialized) {
29818                 throw new Error("initializeWasm() must be awaited first!");
29819         }
29820         const nativeResponseValue = wasm.TS_SemanticError_multiple_payment_hashes();
29821         return nativeResponseValue;
29822 }
29823         // enum LDKSemanticError SemanticError_no_description(void);
29824 /* @internal */
29825 export function SemanticError_no_description(): SemanticError {
29826         if(!isWasmInitialized) {
29827                 throw new Error("initializeWasm() must be awaited first!");
29828         }
29829         const nativeResponseValue = wasm.TS_SemanticError_no_description();
29830         return nativeResponseValue;
29831 }
29832         // enum LDKSemanticError SemanticError_multiple_descriptions(void);
29833 /* @internal */
29834 export function SemanticError_multiple_descriptions(): SemanticError {
29835         if(!isWasmInitialized) {
29836                 throw new Error("initializeWasm() must be awaited first!");
29837         }
29838         const nativeResponseValue = wasm.TS_SemanticError_multiple_descriptions();
29839         return nativeResponseValue;
29840 }
29841         // enum LDKSemanticError SemanticError_no_payment_secret(void);
29842 /* @internal */
29843 export function SemanticError_no_payment_secret(): SemanticError {
29844         if(!isWasmInitialized) {
29845                 throw new Error("initializeWasm() must be awaited first!");
29846         }
29847         const nativeResponseValue = wasm.TS_SemanticError_no_payment_secret();
29848         return nativeResponseValue;
29849 }
29850         // enum LDKSemanticError SemanticError_multiple_payment_secrets(void);
29851 /* @internal */
29852 export function SemanticError_multiple_payment_secrets(): SemanticError {
29853         if(!isWasmInitialized) {
29854                 throw new Error("initializeWasm() must be awaited first!");
29855         }
29856         const nativeResponseValue = wasm.TS_SemanticError_multiple_payment_secrets();
29857         return nativeResponseValue;
29858 }
29859         // enum LDKSemanticError SemanticError_invalid_features(void);
29860 /* @internal */
29861 export function SemanticError_invalid_features(): SemanticError {
29862         if(!isWasmInitialized) {
29863                 throw new Error("initializeWasm() must be awaited first!");
29864         }
29865         const nativeResponseValue = wasm.TS_SemanticError_invalid_features();
29866         return nativeResponseValue;
29867 }
29868         // enum LDKSemanticError SemanticError_invalid_recovery_id(void);
29869 /* @internal */
29870 export function SemanticError_invalid_recovery_id(): SemanticError {
29871         if(!isWasmInitialized) {
29872                 throw new Error("initializeWasm() must be awaited first!");
29873         }
29874         const nativeResponseValue = wasm.TS_SemanticError_invalid_recovery_id();
29875         return nativeResponseValue;
29876 }
29877         // enum LDKSemanticError SemanticError_invalid_signature(void);
29878 /* @internal */
29879 export function SemanticError_invalid_signature(): SemanticError {
29880         if(!isWasmInitialized) {
29881                 throw new Error("initializeWasm() must be awaited first!");
29882         }
29883         const nativeResponseValue = wasm.TS_SemanticError_invalid_signature();
29884         return nativeResponseValue;
29885 }
29886         // enum LDKSemanticError SemanticError_imprecise_amount(void);
29887 /* @internal */
29888 export function SemanticError_imprecise_amount(): SemanticError {
29889         if(!isWasmInitialized) {
29890                 throw new Error("initializeWasm() must be awaited first!");
29891         }
29892         const nativeResponseValue = wasm.TS_SemanticError_imprecise_amount();
29893         return nativeResponseValue;
29894 }
29895         // bool SemanticError_eq(const enum LDKSemanticError *NONNULL_PTR a, const enum LDKSemanticError *NONNULL_PTR b);
29896 /* @internal */
29897 export function SemanticError_eq(a: number, b: number): boolean {
29898         if(!isWasmInitialized) {
29899                 throw new Error("initializeWasm() must be awaited first!");
29900         }
29901         const nativeResponseValue = wasm.TS_SemanticError_eq(a, b);
29902         return nativeResponseValue;
29903 }
29904         // struct LDKStr SemanticError_to_str(const enum LDKSemanticError *NONNULL_PTR o);
29905 /* @internal */
29906 export function SemanticError_to_str(o: number): number {
29907         if(!isWasmInitialized) {
29908                 throw new Error("initializeWasm() must be awaited first!");
29909         }
29910         const nativeResponseValue = wasm.TS_SemanticError_to_str(o);
29911         return nativeResponseValue;
29912 }
29913         // void SignOrCreationError_free(struct LDKSignOrCreationError this_ptr);
29914 /* @internal */
29915 export function SignOrCreationError_free(this_ptr: number): void {
29916         if(!isWasmInitialized) {
29917                 throw new Error("initializeWasm() must be awaited first!");
29918         }
29919         const nativeResponseValue = wasm.TS_SignOrCreationError_free(this_ptr);
29920         // debug statements here
29921 }
29922         // uintptr_t SignOrCreationError_clone_ptr(LDKSignOrCreationError *NONNULL_PTR arg);
29923 /* @internal */
29924 export function SignOrCreationError_clone_ptr(arg: number): number {
29925         if(!isWasmInitialized) {
29926                 throw new Error("initializeWasm() must be awaited first!");
29927         }
29928         const nativeResponseValue = wasm.TS_SignOrCreationError_clone_ptr(arg);
29929         return nativeResponseValue;
29930 }
29931         // struct LDKSignOrCreationError SignOrCreationError_clone(const struct LDKSignOrCreationError *NONNULL_PTR orig);
29932 /* @internal */
29933 export function SignOrCreationError_clone(orig: number): number {
29934         if(!isWasmInitialized) {
29935                 throw new Error("initializeWasm() must be awaited first!");
29936         }
29937         const nativeResponseValue = wasm.TS_SignOrCreationError_clone(orig);
29938         return nativeResponseValue;
29939 }
29940         // struct LDKSignOrCreationError SignOrCreationError_sign_error(void);
29941 /* @internal */
29942 export function SignOrCreationError_sign_error(): number {
29943         if(!isWasmInitialized) {
29944                 throw new Error("initializeWasm() must be awaited first!");
29945         }
29946         const nativeResponseValue = wasm.TS_SignOrCreationError_sign_error();
29947         return nativeResponseValue;
29948 }
29949         // struct LDKSignOrCreationError SignOrCreationError_creation_error(enum LDKCreationError a);
29950 /* @internal */
29951 export function SignOrCreationError_creation_error(a: CreationError): number {
29952         if(!isWasmInitialized) {
29953                 throw new Error("initializeWasm() must be awaited first!");
29954         }
29955         const nativeResponseValue = wasm.TS_SignOrCreationError_creation_error(a);
29956         return nativeResponseValue;
29957 }
29958         // bool SignOrCreationError_eq(const struct LDKSignOrCreationError *NONNULL_PTR a, const struct LDKSignOrCreationError *NONNULL_PTR b);
29959 /* @internal */
29960 export function SignOrCreationError_eq(a: number, b: number): boolean {
29961         if(!isWasmInitialized) {
29962                 throw new Error("initializeWasm() must be awaited first!");
29963         }
29964         const nativeResponseValue = wasm.TS_SignOrCreationError_eq(a, b);
29965         return nativeResponseValue;
29966 }
29967         // struct LDKStr SignOrCreationError_to_str(const struct LDKSignOrCreationError *NONNULL_PTR o);
29968 /* @internal */
29969 export function SignOrCreationError_to_str(o: number): number {
29970         if(!isWasmInitialized) {
29971                 throw new Error("initializeWasm() must be awaited first!");
29972         }
29973         const nativeResponseValue = wasm.TS_SignOrCreationError_to_str(o);
29974         return nativeResponseValue;
29975 }
29976         // void InvoicePayer_free(struct LDKInvoicePayer this_obj);
29977 /* @internal */
29978 export function InvoicePayer_free(this_obj: number): void {
29979         if(!isWasmInitialized) {
29980                 throw new Error("initializeWasm() must be awaited first!");
29981         }
29982         const nativeResponseValue = wasm.TS_InvoicePayer_free(this_obj);
29983         // debug statements here
29984 }
29985         // void Payer_free(struct LDKPayer this_ptr);
29986 /* @internal */
29987 export function Payer_free(this_ptr: number): void {
29988         if(!isWasmInitialized) {
29989                 throw new Error("initializeWasm() must be awaited first!");
29990         }
29991         const nativeResponseValue = wasm.TS_Payer_free(this_ptr);
29992         // debug statements here
29993 }
29994         // void Router_free(struct LDKRouter this_ptr);
29995 /* @internal */
29996 export function Router_free(this_ptr: number): void {
29997         if(!isWasmInitialized) {
29998                 throw new Error("initializeWasm() must be awaited first!");
29999         }
30000         const nativeResponseValue = wasm.TS_Router_free(this_ptr);
30001         // debug statements here
30002 }
30003         // void RetryAttempts_free(struct LDKRetryAttempts this_obj);
30004 /* @internal */
30005 export function RetryAttempts_free(this_obj: number): void {
30006         if(!isWasmInitialized) {
30007                 throw new Error("initializeWasm() must be awaited first!");
30008         }
30009         const nativeResponseValue = wasm.TS_RetryAttempts_free(this_obj);
30010         // debug statements here
30011 }
30012         // uintptr_t RetryAttempts_get_a(const struct LDKRetryAttempts *NONNULL_PTR this_ptr);
30013 /* @internal */
30014 export function RetryAttempts_get_a(this_ptr: number): number {
30015         if(!isWasmInitialized) {
30016                 throw new Error("initializeWasm() must be awaited first!");
30017         }
30018         const nativeResponseValue = wasm.TS_RetryAttempts_get_a(this_ptr);
30019         return nativeResponseValue;
30020 }
30021         // void RetryAttempts_set_a(struct LDKRetryAttempts *NONNULL_PTR this_ptr, uintptr_t val);
30022 /* @internal */
30023 export function RetryAttempts_set_a(this_ptr: number, val: number): void {
30024         if(!isWasmInitialized) {
30025                 throw new Error("initializeWasm() must be awaited first!");
30026         }
30027         const nativeResponseValue = wasm.TS_RetryAttempts_set_a(this_ptr, val);
30028         // debug statements here
30029 }
30030         // MUST_USE_RES struct LDKRetryAttempts RetryAttempts_new(uintptr_t a_arg);
30031 /* @internal */
30032 export function RetryAttempts_new(a_arg: number): number {
30033         if(!isWasmInitialized) {
30034                 throw new Error("initializeWasm() must be awaited first!");
30035         }
30036         const nativeResponseValue = wasm.TS_RetryAttempts_new(a_arg);
30037         return nativeResponseValue;
30038 }
30039         // uintptr_t RetryAttempts_clone_ptr(LDKRetryAttempts *NONNULL_PTR arg);
30040 /* @internal */
30041 export function RetryAttempts_clone_ptr(arg: number): number {
30042         if(!isWasmInitialized) {
30043                 throw new Error("initializeWasm() must be awaited first!");
30044         }
30045         const nativeResponseValue = wasm.TS_RetryAttempts_clone_ptr(arg);
30046         return nativeResponseValue;
30047 }
30048         // struct LDKRetryAttempts RetryAttempts_clone(const struct LDKRetryAttempts *NONNULL_PTR orig);
30049 /* @internal */
30050 export function RetryAttempts_clone(orig: number): number {
30051         if(!isWasmInitialized) {
30052                 throw new Error("initializeWasm() must be awaited first!");
30053         }
30054         const nativeResponseValue = wasm.TS_RetryAttempts_clone(orig);
30055         return nativeResponseValue;
30056 }
30057         // bool RetryAttempts_eq(const struct LDKRetryAttempts *NONNULL_PTR a, const struct LDKRetryAttempts *NONNULL_PTR b);
30058 /* @internal */
30059 export function RetryAttempts_eq(a: number, b: number): boolean {
30060         if(!isWasmInitialized) {
30061                 throw new Error("initializeWasm() must be awaited first!");
30062         }
30063         const nativeResponseValue = wasm.TS_RetryAttempts_eq(a, b);
30064         return nativeResponseValue;
30065 }
30066         // uint64_t RetryAttempts_hash(const struct LDKRetryAttempts *NONNULL_PTR o);
30067 /* @internal */
30068 export function RetryAttempts_hash(o: number): bigint {
30069         if(!isWasmInitialized) {
30070                 throw new Error("initializeWasm() must be awaited first!");
30071         }
30072         const nativeResponseValue = wasm.TS_RetryAttempts_hash(o);
30073         return nativeResponseValue;
30074 }
30075         // void PaymentError_free(struct LDKPaymentError this_ptr);
30076 /* @internal */
30077 export function PaymentError_free(this_ptr: number): void {
30078         if(!isWasmInitialized) {
30079                 throw new Error("initializeWasm() must be awaited first!");
30080         }
30081         const nativeResponseValue = wasm.TS_PaymentError_free(this_ptr);
30082         // debug statements here
30083 }
30084         // uintptr_t PaymentError_clone_ptr(LDKPaymentError *NONNULL_PTR arg);
30085 /* @internal */
30086 export function PaymentError_clone_ptr(arg: number): number {
30087         if(!isWasmInitialized) {
30088                 throw new Error("initializeWasm() must be awaited first!");
30089         }
30090         const nativeResponseValue = wasm.TS_PaymentError_clone_ptr(arg);
30091         return nativeResponseValue;
30092 }
30093         // struct LDKPaymentError PaymentError_clone(const struct LDKPaymentError *NONNULL_PTR orig);
30094 /* @internal */
30095 export function PaymentError_clone(orig: number): number {
30096         if(!isWasmInitialized) {
30097                 throw new Error("initializeWasm() must be awaited first!");
30098         }
30099         const nativeResponseValue = wasm.TS_PaymentError_clone(orig);
30100         return nativeResponseValue;
30101 }
30102         // struct LDKPaymentError PaymentError_invoice(struct LDKStr a);
30103 /* @internal */
30104 export function PaymentError_invoice(a: number): number {
30105         if(!isWasmInitialized) {
30106                 throw new Error("initializeWasm() must be awaited first!");
30107         }
30108         const nativeResponseValue = wasm.TS_PaymentError_invoice(a);
30109         return nativeResponseValue;
30110 }
30111         // struct LDKPaymentError PaymentError_routing(struct LDKLightningError a);
30112 /* @internal */
30113 export function PaymentError_routing(a: number): number {
30114         if(!isWasmInitialized) {
30115                 throw new Error("initializeWasm() must be awaited first!");
30116         }
30117         const nativeResponseValue = wasm.TS_PaymentError_routing(a);
30118         return nativeResponseValue;
30119 }
30120         // struct LDKPaymentError PaymentError_sending(struct LDKPaymentSendFailure a);
30121 /* @internal */
30122 export function PaymentError_sending(a: number): number {
30123         if(!isWasmInitialized) {
30124                 throw new Error("initializeWasm() must be awaited first!");
30125         }
30126         const nativeResponseValue = wasm.TS_PaymentError_sending(a);
30127         return nativeResponseValue;
30128 }
30129         // MUST_USE_RES struct LDKInvoicePayer InvoicePayer_new(struct LDKPayer payer, struct LDKRouter router, const struct LDKMultiThreadedLockableScore *NONNULL_PTR scorer, struct LDKLogger logger, struct LDKEventHandler event_handler, struct LDKRetryAttempts retry_attempts);
30130 /* @internal */
30131 export function InvoicePayer_new(payer: number, router: number, scorer: number, logger: number, event_handler: number, retry_attempts: number): number {
30132         if(!isWasmInitialized) {
30133                 throw new Error("initializeWasm() must be awaited first!");
30134         }
30135         const nativeResponseValue = wasm.TS_InvoicePayer_new(payer, router, scorer, logger, event_handler, retry_attempts);
30136         return nativeResponseValue;
30137 }
30138         // MUST_USE_RES struct LDKCResult_PaymentIdPaymentErrorZ InvoicePayer_pay_invoice(const struct LDKInvoicePayer *NONNULL_PTR this_arg, const struct LDKInvoice *NONNULL_PTR invoice);
30139 /* @internal */
30140 export function InvoicePayer_pay_invoice(this_arg: number, invoice: number): number {
30141         if(!isWasmInitialized) {
30142                 throw new Error("initializeWasm() must be awaited first!");
30143         }
30144         const nativeResponseValue = wasm.TS_InvoicePayer_pay_invoice(this_arg, invoice);
30145         return nativeResponseValue;
30146 }
30147         // MUST_USE_RES struct LDKCResult_PaymentIdPaymentErrorZ InvoicePayer_pay_zero_value_invoice(const struct LDKInvoicePayer *NONNULL_PTR this_arg, const struct LDKInvoice *NONNULL_PTR invoice, uint64_t amount_msats);
30148 /* @internal */
30149 export function InvoicePayer_pay_zero_value_invoice(this_arg: number, invoice: number, amount_msats: bigint): number {
30150         if(!isWasmInitialized) {
30151                 throw new Error("initializeWasm() must be awaited first!");
30152         }
30153         const nativeResponseValue = wasm.TS_InvoicePayer_pay_zero_value_invoice(this_arg, invoice, amount_msats);
30154         return nativeResponseValue;
30155 }
30156         // MUST_USE_RES struct LDKCResult_PaymentIdPaymentErrorZ InvoicePayer_pay_pubkey(const struct LDKInvoicePayer *NONNULL_PTR this_arg, struct LDKPublicKey pubkey, struct LDKThirtyTwoBytes payment_preimage, uint64_t amount_msats, uint32_t final_cltv_expiry_delta);
30157 /* @internal */
30158 export function InvoicePayer_pay_pubkey(this_arg: number, pubkey: number, payment_preimage: number, amount_msats: bigint, final_cltv_expiry_delta: number): number {
30159         if(!isWasmInitialized) {
30160                 throw new Error("initializeWasm() must be awaited first!");
30161         }
30162         const nativeResponseValue = wasm.TS_InvoicePayer_pay_pubkey(this_arg, pubkey, payment_preimage, amount_msats, final_cltv_expiry_delta);
30163         return nativeResponseValue;
30164 }
30165         // void InvoicePayer_remove_cached_payment(const struct LDKInvoicePayer *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
30166 /* @internal */
30167 export function InvoicePayer_remove_cached_payment(this_arg: number, payment_hash: number): void {
30168         if(!isWasmInitialized) {
30169                 throw new Error("initializeWasm() must be awaited first!");
30170         }
30171         const nativeResponseValue = wasm.TS_InvoicePayer_remove_cached_payment(this_arg, payment_hash);
30172         // debug statements here
30173 }
30174         // struct LDKEventHandler InvoicePayer_as_EventHandler(const struct LDKInvoicePayer *NONNULL_PTR this_arg);
30175 /* @internal */
30176 export function InvoicePayer_as_EventHandler(this_arg: number): number {
30177         if(!isWasmInitialized) {
30178                 throw new Error("initializeWasm() must be awaited first!");
30179         }
30180         const nativeResponseValue = wasm.TS_InvoicePayer_as_EventHandler(this_arg);
30181         return nativeResponseValue;
30182 }
30183         // struct LDKCResult_InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_and_duration_since_epoch(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKKeysInterface keys_manager, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKStr description, uint64_t duration_since_epoch);
30184 /* @internal */
30185 export function create_invoice_from_channelmanager_and_duration_since_epoch(channelmanager: number, keys_manager: number, network: Currency, amt_msat: number, description: number, duration_since_epoch: bigint): number {
30186         if(!isWasmInitialized) {
30187                 throw new Error("initializeWasm() must be awaited first!");
30188         }
30189         const nativeResponseValue = wasm.TS_create_invoice_from_channelmanager_and_duration_since_epoch(channelmanager, keys_manager, network, amt_msat, description, duration_since_epoch);
30190         return nativeResponseValue;
30191 }
30192         // void DefaultRouter_free(struct LDKDefaultRouter this_obj);
30193 /* @internal */
30194 export function DefaultRouter_free(this_obj: number): void {
30195         if(!isWasmInitialized) {
30196                 throw new Error("initializeWasm() must be awaited first!");
30197         }
30198         const nativeResponseValue = wasm.TS_DefaultRouter_free(this_obj);
30199         // debug statements here
30200 }
30201         // MUST_USE_RES struct LDKDefaultRouter DefaultRouter_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
30202 /* @internal */
30203 export function DefaultRouter_new(network_graph: number, logger: number): number {
30204         if(!isWasmInitialized) {
30205                 throw new Error("initializeWasm() must be awaited first!");
30206         }
30207         const nativeResponseValue = wasm.TS_DefaultRouter_new(network_graph, logger);
30208         return nativeResponseValue;
30209 }
30210         // struct LDKRouter DefaultRouter_as_Router(const struct LDKDefaultRouter *NONNULL_PTR this_arg);
30211 /* @internal */
30212 export function DefaultRouter_as_Router(this_arg: number): number {
30213         if(!isWasmInitialized) {
30214                 throw new Error("initializeWasm() must be awaited first!");
30215         }
30216         const nativeResponseValue = wasm.TS_DefaultRouter_as_Router(this_arg);
30217         return nativeResponseValue;
30218 }
30219         // struct LDKPayer ChannelManager_as_Payer(const struct LDKChannelManager *NONNULL_PTR this_arg);
30220 /* @internal */
30221 export function ChannelManager_as_Payer(this_arg: number): number {
30222         if(!isWasmInitialized) {
30223                 throw new Error("initializeWasm() must be awaited first!");
30224         }
30225         const nativeResponseValue = wasm.TS_ChannelManager_as_Payer(this_arg);
30226         return nativeResponseValue;
30227 }
30228         // struct LDKCResult_SiPrefixNoneZ SiPrefix_from_str(struct LDKStr s);
30229 /* @internal */
30230 export function SiPrefix_from_str(s: number): number {
30231         if(!isWasmInitialized) {
30232                 throw new Error("initializeWasm() must be awaited first!");
30233         }
30234         const nativeResponseValue = wasm.TS_SiPrefix_from_str(s);
30235         return nativeResponseValue;
30236 }
30237         // struct LDKCResult_InvoiceNoneZ Invoice_from_str(struct LDKStr s);
30238 /* @internal */
30239 export function Invoice_from_str(s: number): number {
30240         if(!isWasmInitialized) {
30241                 throw new Error("initializeWasm() must be awaited first!");
30242         }
30243         const nativeResponseValue = wasm.TS_Invoice_from_str(s);
30244         return nativeResponseValue;
30245 }
30246         // struct LDKCResult_SignedRawInvoiceNoneZ SignedRawInvoice_from_str(struct LDKStr s);
30247 /* @internal */
30248 export function SignedRawInvoice_from_str(s: number): number {
30249         if(!isWasmInitialized) {
30250                 throw new Error("initializeWasm() must be awaited first!");
30251         }
30252         const nativeResponseValue = wasm.TS_SignedRawInvoice_from_str(s);
30253         return nativeResponseValue;
30254 }
30255         // struct LDKStr Invoice_to_str(const struct LDKInvoice *NONNULL_PTR o);
30256 /* @internal */
30257 export function Invoice_to_str(o: number): number {
30258         if(!isWasmInitialized) {
30259                 throw new Error("initializeWasm() must be awaited first!");
30260         }
30261         const nativeResponseValue = wasm.TS_Invoice_to_str(o);
30262         return nativeResponseValue;
30263 }
30264         // struct LDKStr SignedRawInvoice_to_str(const struct LDKSignedRawInvoice *NONNULL_PTR o);
30265 /* @internal */
30266 export function SignedRawInvoice_to_str(o: number): number {
30267         if(!isWasmInitialized) {
30268                 throw new Error("initializeWasm() must be awaited first!");
30269         }
30270         const nativeResponseValue = wasm.TS_SignedRawInvoice_to_str(o);
30271         return nativeResponseValue;
30272 }
30273         // struct LDKStr Currency_to_str(const enum LDKCurrency *NONNULL_PTR o);
30274 /* @internal */
30275 export function Currency_to_str(o: number): number {
30276         if(!isWasmInitialized) {
30277                 throw new Error("initializeWasm() must be awaited first!");
30278         }
30279         const nativeResponseValue = wasm.TS_Currency_to_str(o);
30280         return nativeResponseValue;
30281 }
30282         // struct LDKStr SiPrefix_to_str(const enum LDKSiPrefix *NONNULL_PTR o);
30283 /* @internal */
30284 export function SiPrefix_to_str(o: number): number {
30285         if(!isWasmInitialized) {
30286                 throw new Error("initializeWasm() must be awaited first!");
30287         }
30288         const nativeResponseValue = wasm.TS_SiPrefix_to_str(o);
30289         return nativeResponseValue;
30290 }
30291
30292
30293 js_invoke = function(obj_ptr: number, fn_id: number, arg1: number, arg2: number, arg3: number, arg4: number, arg5: number, arg6: number, arg7: number, arg8: number, arg9: number, arg10: number) {
30294         const weak: WeakRef<object> = js_objs[obj_ptr];
30295         if (weak == null || weak == undefined) {
30296                 console.error("Got function call on unknown/free'd JS object!");
30297                 throw new Error("Got function call on unknown/free'd JS object!");
30298         }
30299         const obj: object = weak.deref();
30300         if (obj == null || obj == undefined) {
30301                 console.error("Got function call on GC'd JS object!");
30302                 throw new Error("Got function call on GC'd JS object!");
30303         }
30304         var fn;
30305         switch (fn_id) {
30306                 case 0: fn = Object.getOwnPropertyDescriptor(obj, "get_per_commitment_point"); break;
30307                 case 1: fn = Object.getOwnPropertyDescriptor(obj, "release_commitment_secret"); break;
30308                 case 2: fn = Object.getOwnPropertyDescriptor(obj, "validate_holder_commitment"); break;
30309                 case 3: fn = Object.getOwnPropertyDescriptor(obj, "channel_keys_id"); break;
30310                 case 4: fn = Object.getOwnPropertyDescriptor(obj, "sign_counterparty_commitment"); break;
30311                 case 5: fn = Object.getOwnPropertyDescriptor(obj, "validate_counterparty_revocation"); break;
30312                 case 6: fn = Object.getOwnPropertyDescriptor(obj, "sign_holder_commitment_and_htlcs"); break;
30313                 case 7: fn = Object.getOwnPropertyDescriptor(obj, "sign_justice_revoked_output"); break;
30314                 case 8: fn = Object.getOwnPropertyDescriptor(obj, "sign_justice_revoked_htlc"); break;
30315                 case 9: fn = Object.getOwnPropertyDescriptor(obj, "sign_counterparty_htlc_transaction"); break;
30316                 case 10: fn = Object.getOwnPropertyDescriptor(obj, "sign_closing_transaction"); break;
30317                 case 11: fn = Object.getOwnPropertyDescriptor(obj, "sign_channel_announcement"); break;
30318                 case 12: fn = Object.getOwnPropertyDescriptor(obj, "ready_channel"); break;
30319                 case 13: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
30320                 case 14: fn = Object.getOwnPropertyDescriptor(obj, "watch_channel"); break;
30321                 case 15: fn = Object.getOwnPropertyDescriptor(obj, "update_channel"); break;
30322                 case 16: fn = Object.getOwnPropertyDescriptor(obj, "release_pending_monitor_events"); break;
30323                 case 17: fn = Object.getOwnPropertyDescriptor(obj, "broadcast_transaction"); break;
30324                 case 18: fn = Object.getOwnPropertyDescriptor(obj, "get_node_secret"); break;
30325                 case 19: fn = Object.getOwnPropertyDescriptor(obj, "get_destination_script"); break;
30326                 case 20: fn = Object.getOwnPropertyDescriptor(obj, "get_shutdown_scriptpubkey"); break;
30327                 case 21: fn = Object.getOwnPropertyDescriptor(obj, "get_channel_signer"); break;
30328                 case 22: fn = Object.getOwnPropertyDescriptor(obj, "get_secure_random_bytes"); break;
30329                 case 23: fn = Object.getOwnPropertyDescriptor(obj, "read_chan_signer"); break;
30330                 case 24: fn = Object.getOwnPropertyDescriptor(obj, "sign_invoice"); break;
30331                 case 25: fn = Object.getOwnPropertyDescriptor(obj, "get_inbound_payment_key_material"); break;
30332                 case 26: fn = Object.getOwnPropertyDescriptor(obj, "get_est_sat_per_1000_weight"); break;
30333                 case 27: fn = Object.getOwnPropertyDescriptor(obj, "log"); break;
30334                 case 28: fn = Object.getOwnPropertyDescriptor(obj, "type_id"); break;
30335                 case 29: fn = Object.getOwnPropertyDescriptor(obj, "debug_str"); break;
30336                 case 30: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
30337                 case 31: fn = Object.getOwnPropertyDescriptor(obj, "get_utxo"); break;
30338                 case 32: fn = Object.getOwnPropertyDescriptor(obj, "register_tx"); break;
30339                 case 33: fn = Object.getOwnPropertyDescriptor(obj, "register_output"); break;
30340                 case 34: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg_events"); break;
30341                 case 35: fn = Object.getOwnPropertyDescriptor(obj, "handle_event"); break;
30342                 case 36: fn = Object.getOwnPropertyDescriptor(obj, "process_pending_events"); break;
30343                 case 37: fn = Object.getOwnPropertyDescriptor(obj, "block_connected"); break;
30344                 case 38: fn = Object.getOwnPropertyDescriptor(obj, "block_disconnected"); break;
30345                 case 39: fn = Object.getOwnPropertyDescriptor(obj, "transactions_confirmed"); break;
30346                 case 40: fn = Object.getOwnPropertyDescriptor(obj, "transaction_unconfirmed"); break;
30347                 case 41: fn = Object.getOwnPropertyDescriptor(obj, "best_block_updated"); break;
30348                 case 42: fn = Object.getOwnPropertyDescriptor(obj, "get_relevant_txids"); break;
30349                 case 43: fn = Object.getOwnPropertyDescriptor(obj, "persist_new_channel"); break;
30350                 case 44: fn = Object.getOwnPropertyDescriptor(obj, "update_persisted_channel"); break;
30351                 case 45: fn = Object.getOwnPropertyDescriptor(obj, "handle_open_channel"); break;
30352                 case 46: fn = Object.getOwnPropertyDescriptor(obj, "handle_accept_channel"); break;
30353                 case 47: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_created"); break;
30354                 case 48: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_signed"); break;
30355                 case 49: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_locked"); break;
30356                 case 50: fn = Object.getOwnPropertyDescriptor(obj, "handle_shutdown"); break;
30357                 case 51: fn = Object.getOwnPropertyDescriptor(obj, "handle_closing_signed"); break;
30358                 case 52: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_add_htlc"); break;
30359                 case 53: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fulfill_htlc"); break;
30360                 case 54: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fail_htlc"); break;
30361                 case 55: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fail_malformed_htlc"); break;
30362                 case 56: fn = Object.getOwnPropertyDescriptor(obj, "handle_commitment_signed"); break;
30363                 case 57: fn = Object.getOwnPropertyDescriptor(obj, "handle_revoke_and_ack"); break;
30364                 case 58: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fee"); break;
30365                 case 59: fn = Object.getOwnPropertyDescriptor(obj, "handle_announcement_signatures"); break;
30366                 case 60: fn = Object.getOwnPropertyDescriptor(obj, "peer_disconnected"); break;
30367                 case 61: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break;
30368                 case 62: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_reestablish"); break;
30369                 case 63: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_update"); break;
30370                 case 64: fn = Object.getOwnPropertyDescriptor(obj, "handle_error"); break;
30371                 case 65: fn = Object.getOwnPropertyDescriptor(obj, "handle_node_announcement"); break;
30372                 case 66: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_announcement"); break;
30373                 case 67: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_update"); break;
30374                 case 68: fn = Object.getOwnPropertyDescriptor(obj, "get_next_channel_announcements"); break;
30375                 case 69: fn = Object.getOwnPropertyDescriptor(obj, "get_next_node_announcements"); break;
30376                 case 70: fn = Object.getOwnPropertyDescriptor(obj, "sync_routing_table"); break;
30377                 case 71: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_channel_range"); break;
30378                 case 72: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_short_channel_ids_end"); break;
30379                 case 73: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_channel_range"); break;
30380                 case 74: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_short_channel_ids"); break;
30381                 case 75: fn = Object.getOwnPropertyDescriptor(obj, "read"); break;
30382                 case 76: fn = Object.getOwnPropertyDescriptor(obj, "handle_custom_message"); break;
30383                 case 77: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg"); break;
30384                 case 78: fn = Object.getOwnPropertyDescriptor(obj, "send_data"); break;
30385                 case 79: fn = Object.getOwnPropertyDescriptor(obj, "disconnect_socket"); break;
30386                 case 80: fn = Object.getOwnPropertyDescriptor(obj, "eq"); break;
30387                 case 81: fn = Object.getOwnPropertyDescriptor(obj, "hash"); break;
30388                 case 82: fn = Object.getOwnPropertyDescriptor(obj, "channel_penalty_msat"); break;
30389                 case 83: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_failed"); break;
30390                 case 84: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_successful"); break;
30391                 case 85: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
30392                 case 86: fn = Object.getOwnPropertyDescriptor(obj, "lock"); break;
30393                 case 87: fn = Object.getOwnPropertyDescriptor(obj, "node_id"); break;
30394                 case 88: fn = Object.getOwnPropertyDescriptor(obj, "first_hops"); break;
30395                 case 89: fn = Object.getOwnPropertyDescriptor(obj, "send_payment"); break;
30396                 case 90: fn = Object.getOwnPropertyDescriptor(obj, "send_spontaneous_payment"); break;
30397                 case 91: fn = Object.getOwnPropertyDescriptor(obj, "retry_payment"); break;
30398                 case 92: fn = Object.getOwnPropertyDescriptor(obj, "abandon_payment"); break;
30399                 case 93: fn = Object.getOwnPropertyDescriptor(obj, "find_route"); break;
30400                 default:
30401                         console.error("Got unknown function call from C!");
30402                         throw new Error("Got unknown function call from C!");
30403         }
30404         if (fn == null || fn == undefined) {
30405                 console.error("Got function call on incorrect JS object!");
30406                 throw new Error("Got function call on incorrect JS object!");
30407         }
30408         return fn.value.bind(obj)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
30409 }