[TS] Update auto-generated bindings
[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 /* @internal */
558 export class LDKBech32Error {
559         protected constructor() {}
560 }
561 /* @internal */
562 export function LDKBech32Error_ty_from_ptr(ptr: number): number {
563         if(!isWasmInitialized) {
564                 throw new Error("initializeWasm() must be awaited first!");
565         }
566         const nativeResponseValue = wasm.TS_LDKBech32Error_ty_from_ptr(ptr);
567         return nativeResponseValue;
568 }
569 /* @internal */
570 export function LDKBech32Error_InvalidChar_get_invalid_char(ptr: number): number {
571         if(!isWasmInitialized) {
572                 throw new Error("initializeWasm() must be awaited first!");
573         }
574         const nativeResponseValue = wasm.TS_LDKBech32Error_InvalidChar_get_invalid_char(ptr);
575         return nativeResponseValue;
576 }
577 /* @internal */
578 export function LDKBech32Error_InvalidData_get_invalid_data(ptr: number): number {
579         if(!isWasmInitialized) {
580                 throw new Error("initializeWasm() must be awaited first!");
581         }
582         const nativeResponseValue = wasm.TS_LDKBech32Error_InvalidData_get_invalid_data(ptr);
583         return nativeResponseValue;
584 }
585         // struct LDKCVec_u8Z TxOut_get_script_pubkey (struct LDKTxOut* thing)
586 /* @internal */
587 export function TxOut_get_script_pubkey(thing: number): number {
588         if(!isWasmInitialized) {
589                 throw new Error("initializeWasm() must be awaited first!");
590         }
591         const nativeResponseValue = wasm.TS_TxOut_get_script_pubkey(thing);
592         return nativeResponseValue;
593 }
594         // uint64_t TxOut_get_value (struct LDKTxOut* thing)
595 /* @internal */
596 export function TxOut_get_value(thing: number): bigint {
597         if(!isWasmInitialized) {
598                 throw new Error("initializeWasm() must be awaited first!");
599         }
600         const nativeResponseValue = wasm.TS_TxOut_get_value(thing);
601         return nativeResponseValue;
602 }
603         // void CResult_NoneNoneZ_get_ok(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
604 /* @internal */
605 export function CResult_NoneNoneZ_get_ok(owner: number): void {
606         if(!isWasmInitialized) {
607                 throw new Error("initializeWasm() must be awaited first!");
608         }
609         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_get_ok(owner);
610         // debug statements here
611 }
612         // void CResult_NoneNoneZ_get_err(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
613 /* @internal */
614 export function CResult_NoneNoneZ_get_err(owner: number): void {
615         if(!isWasmInitialized) {
616                 throw new Error("initializeWasm() must be awaited first!");
617         }
618         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_get_err(owner);
619         // debug statements here
620 }
621         // struct LDKCounterpartyCommitmentSecrets CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
622 /* @internal */
623 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(owner: number): number {
624         if(!isWasmInitialized) {
625                 throw new Error("initializeWasm() must be awaited first!");
626         }
627         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(owner);
628         return nativeResponseValue;
629 }
630         // struct LDKDecodeError CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
631 /* @internal */
632 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(owner: number): number {
633         if(!isWasmInitialized) {
634                 throw new Error("initializeWasm() must be awaited first!");
635         }
636         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(owner);
637         return nativeResponseValue;
638 }
639         // struct LDKSecretKey CResult_SecretKeyErrorZ_get_ok(LDKCResult_SecretKeyErrorZ *NONNULL_PTR owner);
640 /* @internal */
641 export function CResult_SecretKeyErrorZ_get_ok(owner: number): number {
642         if(!isWasmInitialized) {
643                 throw new Error("initializeWasm() must be awaited first!");
644         }
645         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_get_ok(owner);
646         return nativeResponseValue;
647 }
648         // enum LDKSecp256k1Error CResult_SecretKeyErrorZ_get_err(LDKCResult_SecretKeyErrorZ *NONNULL_PTR owner);
649 /* @internal */
650 export function CResult_SecretKeyErrorZ_get_err(owner: number): Secp256k1Error {
651         if(!isWasmInitialized) {
652                 throw new Error("initializeWasm() must be awaited first!");
653         }
654         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_get_err(owner);
655         return nativeResponseValue;
656 }
657         // struct LDKPublicKey CResult_PublicKeyErrorZ_get_ok(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
658 /* @internal */
659 export function CResult_PublicKeyErrorZ_get_ok(owner: number): number {
660         if(!isWasmInitialized) {
661                 throw new Error("initializeWasm() must be awaited first!");
662         }
663         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_get_ok(owner);
664         return nativeResponseValue;
665 }
666         // enum LDKSecp256k1Error CResult_PublicKeyErrorZ_get_err(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
667 /* @internal */
668 export function CResult_PublicKeyErrorZ_get_err(owner: number): Secp256k1Error {
669         if(!isWasmInitialized) {
670                 throw new Error("initializeWasm() must be awaited first!");
671         }
672         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_get_err(owner);
673         return nativeResponseValue;
674 }
675         // struct LDKTxCreationKeys CResult_TxCreationKeysDecodeErrorZ_get_ok(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
676 /* @internal */
677 export function CResult_TxCreationKeysDecodeErrorZ_get_ok(owner: number): number {
678         if(!isWasmInitialized) {
679                 throw new Error("initializeWasm() must be awaited first!");
680         }
681         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_get_ok(owner);
682         return nativeResponseValue;
683 }
684         // struct LDKDecodeError CResult_TxCreationKeysDecodeErrorZ_get_err(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
685 /* @internal */
686 export function CResult_TxCreationKeysDecodeErrorZ_get_err(owner: number): number {
687         if(!isWasmInitialized) {
688                 throw new Error("initializeWasm() must be awaited first!");
689         }
690         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_get_err(owner);
691         return nativeResponseValue;
692 }
693         // struct LDKChannelPublicKeys CResult_ChannelPublicKeysDecodeErrorZ_get_ok(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
694 /* @internal */
695 export function CResult_ChannelPublicKeysDecodeErrorZ_get_ok(owner: number): number {
696         if(!isWasmInitialized) {
697                 throw new Error("initializeWasm() must be awaited first!");
698         }
699         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_get_ok(owner);
700         return nativeResponseValue;
701 }
702         // struct LDKDecodeError CResult_ChannelPublicKeysDecodeErrorZ_get_err(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
703 /* @internal */
704 export function CResult_ChannelPublicKeysDecodeErrorZ_get_err(owner: number): number {
705         if(!isWasmInitialized) {
706                 throw new Error("initializeWasm() must be awaited first!");
707         }
708         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_get_err(owner);
709         return nativeResponseValue;
710 }
711         // struct LDKTxCreationKeys CResult_TxCreationKeysErrorZ_get_ok(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR owner);
712 /* @internal */
713 export function CResult_TxCreationKeysErrorZ_get_ok(owner: number): number {
714         if(!isWasmInitialized) {
715                 throw new Error("initializeWasm() must be awaited first!");
716         }
717         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_get_ok(owner);
718         return nativeResponseValue;
719 }
720         // enum LDKSecp256k1Error CResult_TxCreationKeysErrorZ_get_err(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR owner);
721 /* @internal */
722 export function CResult_TxCreationKeysErrorZ_get_err(owner: number): Secp256k1Error {
723         if(!isWasmInitialized) {
724                 throw new Error("initializeWasm() must be awaited first!");
725         }
726         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_get_err(owner);
727         return nativeResponseValue;
728 }
729 /* @internal */
730 export class LDKCOption_u32Z {
731         protected constructor() {}
732 }
733 /* @internal */
734 export function LDKCOption_u32Z_ty_from_ptr(ptr: number): number {
735         if(!isWasmInitialized) {
736                 throw new Error("initializeWasm() must be awaited first!");
737         }
738         const nativeResponseValue = wasm.TS_LDKCOption_u32Z_ty_from_ptr(ptr);
739         return nativeResponseValue;
740 }
741 /* @internal */
742 export function LDKCOption_u32Z_Some_get_some(ptr: number): number {
743         if(!isWasmInitialized) {
744                 throw new Error("initializeWasm() must be awaited first!");
745         }
746         const nativeResponseValue = wasm.TS_LDKCOption_u32Z_Some_get_some(ptr);
747         return nativeResponseValue;
748 }
749         // struct LDKHTLCOutputInCommitment CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
750 /* @internal */
751 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(owner: number): number {
752         if(!isWasmInitialized) {
753                 throw new Error("initializeWasm() must be awaited first!");
754         }
755         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(owner);
756         return nativeResponseValue;
757 }
758         // struct LDKDecodeError CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
759 /* @internal */
760 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(owner: number): number {
761         if(!isWasmInitialized) {
762                 throw new Error("initializeWasm() must be awaited first!");
763         }
764         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(owner);
765         return nativeResponseValue;
766 }
767         // struct LDKCounterpartyChannelTransactionParameters CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
768 /* @internal */
769 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(owner: number): number {
770         if(!isWasmInitialized) {
771                 throw new Error("initializeWasm() must be awaited first!");
772         }
773         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(owner);
774         return nativeResponseValue;
775 }
776         // struct LDKDecodeError CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
777 /* @internal */
778 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(owner: number): number {
779         if(!isWasmInitialized) {
780                 throw new Error("initializeWasm() must be awaited first!");
781         }
782         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(owner);
783         return nativeResponseValue;
784 }
785         // struct LDKChannelTransactionParameters CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
786 /* @internal */
787 export function CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(owner: number): number {
788         if(!isWasmInitialized) {
789                 throw new Error("initializeWasm() must be awaited first!");
790         }
791         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(owner);
792         return nativeResponseValue;
793 }
794         // struct LDKDecodeError CResult_ChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
795 /* @internal */
796 export function CResult_ChannelTransactionParametersDecodeErrorZ_get_err(owner: number): number {
797         if(!isWasmInitialized) {
798                 throw new Error("initializeWasm() must be awaited first!");
799         }
800         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_get_err(owner);
801         return nativeResponseValue;
802 }
803         // struct LDKHolderCommitmentTransaction CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
804 /* @internal */
805 export function CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(owner: number): number {
806         if(!isWasmInitialized) {
807                 throw new Error("initializeWasm() must be awaited first!");
808         }
809         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(owner);
810         return nativeResponseValue;
811 }
812         // struct LDKDecodeError CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
813 /* @internal */
814 export function CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(owner: number): number {
815         if(!isWasmInitialized) {
816                 throw new Error("initializeWasm() must be awaited first!");
817         }
818         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(owner);
819         return nativeResponseValue;
820 }
821         // struct LDKBuiltCommitmentTransaction CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
822 /* @internal */
823 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(owner: number): number {
824         if(!isWasmInitialized) {
825                 throw new Error("initializeWasm() must be awaited first!");
826         }
827         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(owner);
828         return nativeResponseValue;
829 }
830         // struct LDKDecodeError CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
831 /* @internal */
832 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(owner: number): number {
833         if(!isWasmInitialized) {
834                 throw new Error("initializeWasm() must be awaited first!");
835         }
836         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(owner);
837         return nativeResponseValue;
838 }
839         // struct LDKTrustedClosingTransaction *CResult_TrustedClosingTransactionNoneZ_get_ok(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
840 /* @internal */
841 export function CResult_TrustedClosingTransactionNoneZ_get_ok(owner: number): number {
842         if(!isWasmInitialized) {
843                 throw new Error("initializeWasm() must be awaited first!");
844         }
845         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_get_ok(owner);
846         return nativeResponseValue;
847 }
848         // void CResult_TrustedClosingTransactionNoneZ_get_err(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
849 /* @internal */
850 export function CResult_TrustedClosingTransactionNoneZ_get_err(owner: number): void {
851         if(!isWasmInitialized) {
852                 throw new Error("initializeWasm() must be awaited first!");
853         }
854         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_get_err(owner);
855         // debug statements here
856 }
857         // struct LDKCommitmentTransaction CResult_CommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
858 /* @internal */
859 export function CResult_CommitmentTransactionDecodeErrorZ_get_ok(owner: number): number {
860         if(!isWasmInitialized) {
861                 throw new Error("initializeWasm() must be awaited first!");
862         }
863         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_get_ok(owner);
864         return nativeResponseValue;
865 }
866         // struct LDKDecodeError CResult_CommitmentTransactionDecodeErrorZ_get_err(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
867 /* @internal */
868 export function CResult_CommitmentTransactionDecodeErrorZ_get_err(owner: number): number {
869         if(!isWasmInitialized) {
870                 throw new Error("initializeWasm() must be awaited first!");
871         }
872         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_get_err(owner);
873         return nativeResponseValue;
874 }
875         // struct LDKTrustedCommitmentTransaction *CResult_TrustedCommitmentTransactionNoneZ_get_ok(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
876 /* @internal */
877 export function CResult_TrustedCommitmentTransactionNoneZ_get_ok(owner: number): number {
878         if(!isWasmInitialized) {
879                 throw new Error("initializeWasm() must be awaited first!");
880         }
881         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_get_ok(owner);
882         return nativeResponseValue;
883 }
884         // void CResult_TrustedCommitmentTransactionNoneZ_get_err(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
885 /* @internal */
886 export function CResult_TrustedCommitmentTransactionNoneZ_get_err(owner: number): void {
887         if(!isWasmInitialized) {
888                 throw new Error("initializeWasm() must be awaited first!");
889         }
890         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_get_err(owner);
891         // debug statements here
892 }
893         // struct LDKCVec_SignatureZ CResult_CVec_SignatureZNoneZ_get_ok(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
894 /* @internal */
895 export function CResult_CVec_SignatureZNoneZ_get_ok(owner: number): number {
896         if(!isWasmInitialized) {
897                 throw new Error("initializeWasm() must be awaited first!");
898         }
899         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_get_ok(owner);
900         return nativeResponseValue;
901 }
902         // void CResult_CVec_SignatureZNoneZ_get_err(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
903 /* @internal */
904 export function CResult_CVec_SignatureZNoneZ_get_err(owner: number): void {
905         if(!isWasmInitialized) {
906                 throw new Error("initializeWasm() must be awaited first!");
907         }
908         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_get_err(owner);
909         // debug statements here
910 }
911         // struct LDKShutdownScript CResult_ShutdownScriptDecodeErrorZ_get_ok(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
912 /* @internal */
913 export function CResult_ShutdownScriptDecodeErrorZ_get_ok(owner: number): number {
914         if(!isWasmInitialized) {
915                 throw new Error("initializeWasm() must be awaited first!");
916         }
917         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_get_ok(owner);
918         return nativeResponseValue;
919 }
920         // struct LDKDecodeError CResult_ShutdownScriptDecodeErrorZ_get_err(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
921 /* @internal */
922 export function CResult_ShutdownScriptDecodeErrorZ_get_err(owner: number): number {
923         if(!isWasmInitialized) {
924                 throw new Error("initializeWasm() must be awaited first!");
925         }
926         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_get_err(owner);
927         return nativeResponseValue;
928 }
929         // struct LDKShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
930 /* @internal */
931 export function CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(owner: number): number {
932         if(!isWasmInitialized) {
933                 throw new Error("initializeWasm() must be awaited first!");
934         }
935         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(owner);
936         return nativeResponseValue;
937 }
938         // struct LDKInvalidShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
939 /* @internal */
940 export function CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(owner: number): number {
941         if(!isWasmInitialized) {
942                 throw new Error("initializeWasm() must be awaited first!");
943         }
944         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(owner);
945         return nativeResponseValue;
946 }
947         // struct LDKRouteHop CResult_RouteHopDecodeErrorZ_get_ok(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
948 /* @internal */
949 export function CResult_RouteHopDecodeErrorZ_get_ok(owner: number): number {
950         if(!isWasmInitialized) {
951                 throw new Error("initializeWasm() must be awaited first!");
952         }
953         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_get_ok(owner);
954         return nativeResponseValue;
955 }
956         // struct LDKDecodeError CResult_RouteHopDecodeErrorZ_get_err(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
957 /* @internal */
958 export function CResult_RouteHopDecodeErrorZ_get_err(owner: number): number {
959         if(!isWasmInitialized) {
960                 throw new Error("initializeWasm() must be awaited first!");
961         }
962         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_get_err(owner);
963         return nativeResponseValue;
964 }
965         // struct LDKRoute CResult_RouteDecodeErrorZ_get_ok(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
966 /* @internal */
967 export function CResult_RouteDecodeErrorZ_get_ok(owner: number): number {
968         if(!isWasmInitialized) {
969                 throw new Error("initializeWasm() must be awaited first!");
970         }
971         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_get_ok(owner);
972         return nativeResponseValue;
973 }
974         // struct LDKDecodeError CResult_RouteDecodeErrorZ_get_err(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
975 /* @internal */
976 export function CResult_RouteDecodeErrorZ_get_err(owner: number): number {
977         if(!isWasmInitialized) {
978                 throw new Error("initializeWasm() must be awaited first!");
979         }
980         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_get_err(owner);
981         return nativeResponseValue;
982 }
983         // struct LDKRouteParameters CResult_RouteParametersDecodeErrorZ_get_ok(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
984 /* @internal */
985 export function CResult_RouteParametersDecodeErrorZ_get_ok(owner: number): number {
986         if(!isWasmInitialized) {
987                 throw new Error("initializeWasm() must be awaited first!");
988         }
989         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_get_ok(owner);
990         return nativeResponseValue;
991 }
992         // struct LDKDecodeError CResult_RouteParametersDecodeErrorZ_get_err(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
993 /* @internal */
994 export function CResult_RouteParametersDecodeErrorZ_get_err(owner: number): number {
995         if(!isWasmInitialized) {
996                 throw new Error("initializeWasm() must be awaited first!");
997         }
998         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_get_err(owner);
999         return nativeResponseValue;
1000 }
1001 /* @internal */
1002 export class LDKCOption_u64Z {
1003         protected constructor() {}
1004 }
1005 /* @internal */
1006 export function LDKCOption_u64Z_ty_from_ptr(ptr: number): number {
1007         if(!isWasmInitialized) {
1008                 throw new Error("initializeWasm() must be awaited first!");
1009         }
1010         const nativeResponseValue = wasm.TS_LDKCOption_u64Z_ty_from_ptr(ptr);
1011         return nativeResponseValue;
1012 }
1013 /* @internal */
1014 export function LDKCOption_u64Z_Some_get_some(ptr: number): bigint {
1015         if(!isWasmInitialized) {
1016                 throw new Error("initializeWasm() must be awaited first!");
1017         }
1018         const nativeResponseValue = wasm.TS_LDKCOption_u64Z_Some_get_some(ptr);
1019         return nativeResponseValue;
1020 }
1021         // struct LDKPaymentParameters CResult_PaymentParametersDecodeErrorZ_get_ok(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
1022 /* @internal */
1023 export function CResult_PaymentParametersDecodeErrorZ_get_ok(owner: number): number {
1024         if(!isWasmInitialized) {
1025                 throw new Error("initializeWasm() must be awaited first!");
1026         }
1027         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_get_ok(owner);
1028         return nativeResponseValue;
1029 }
1030         // struct LDKDecodeError CResult_PaymentParametersDecodeErrorZ_get_err(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
1031 /* @internal */
1032 export function CResult_PaymentParametersDecodeErrorZ_get_err(owner: number): number {
1033         if(!isWasmInitialized) {
1034                 throw new Error("initializeWasm() must be awaited first!");
1035         }
1036         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_get_err(owner);
1037         return nativeResponseValue;
1038 }
1039         // struct LDKRouteHint CResult_RouteHintDecodeErrorZ_get_ok(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
1040 /* @internal */
1041 export function CResult_RouteHintDecodeErrorZ_get_ok(owner: number): number {
1042         if(!isWasmInitialized) {
1043                 throw new Error("initializeWasm() must be awaited first!");
1044         }
1045         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_get_ok(owner);
1046         return nativeResponseValue;
1047 }
1048         // struct LDKDecodeError CResult_RouteHintDecodeErrorZ_get_err(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
1049 /* @internal */
1050 export function CResult_RouteHintDecodeErrorZ_get_err(owner: number): number {
1051         if(!isWasmInitialized) {
1052                 throw new Error("initializeWasm() must be awaited first!");
1053         }
1054         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_get_err(owner);
1055         return nativeResponseValue;
1056 }
1057         // struct LDKRouteHintHop CResult_RouteHintHopDecodeErrorZ_get_ok(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
1058 /* @internal */
1059 export function CResult_RouteHintHopDecodeErrorZ_get_ok(owner: number): number {
1060         if(!isWasmInitialized) {
1061                 throw new Error("initializeWasm() must be awaited first!");
1062         }
1063         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_get_ok(owner);
1064         return nativeResponseValue;
1065 }
1066         // struct LDKDecodeError CResult_RouteHintHopDecodeErrorZ_get_err(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
1067 /* @internal */
1068 export function CResult_RouteHintHopDecodeErrorZ_get_err(owner: number): number {
1069         if(!isWasmInitialized) {
1070                 throw new Error("initializeWasm() must be awaited first!");
1071         }
1072         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_get_err(owner);
1073         return nativeResponseValue;
1074 }
1075         // struct LDKRoute CResult_RouteLightningErrorZ_get_ok(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
1076 /* @internal */
1077 export function CResult_RouteLightningErrorZ_get_ok(owner: number): number {
1078         if(!isWasmInitialized) {
1079                 throw new Error("initializeWasm() must be awaited first!");
1080         }
1081         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_get_ok(owner);
1082         return nativeResponseValue;
1083 }
1084         // struct LDKLightningError CResult_RouteLightningErrorZ_get_err(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
1085 /* @internal */
1086 export function CResult_RouteLightningErrorZ_get_err(owner: number): number {
1087         if(!isWasmInitialized) {
1088                 throw new Error("initializeWasm() must be awaited first!");
1089         }
1090         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_get_err(owner);
1091         return nativeResponseValue;
1092 }
1093         // struct LDKTxOut CResult_TxOutAccessErrorZ_get_ok(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR owner);
1094 /* @internal */
1095 export function CResult_TxOutAccessErrorZ_get_ok(owner: number): number {
1096         if(!isWasmInitialized) {
1097                 throw new Error("initializeWasm() must be awaited first!");
1098         }
1099         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_get_ok(owner);
1100         return nativeResponseValue;
1101 }
1102         // enum LDKAccessError CResult_TxOutAccessErrorZ_get_err(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR owner);
1103 /* @internal */
1104 export function CResult_TxOutAccessErrorZ_get_err(owner: number): AccessError {
1105         if(!isWasmInitialized) {
1106                 throw new Error("initializeWasm() must be awaited first!");
1107         }
1108         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_get_err(owner);
1109         return nativeResponseValue;
1110 }
1111         // uintptr_t C2Tuple_usizeTransactionZ_get_a(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
1112 /* @internal */
1113 export function C2Tuple_usizeTransactionZ_get_a(owner: number): number {
1114         if(!isWasmInitialized) {
1115                 throw new Error("initializeWasm() must be awaited first!");
1116         }
1117         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_get_a(owner);
1118         return nativeResponseValue;
1119 }
1120         // struct LDKTransaction C2Tuple_usizeTransactionZ_get_b(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
1121 /* @internal */
1122 export function C2Tuple_usizeTransactionZ_get_b(owner: number): number {
1123         if(!isWasmInitialized) {
1124                 throw new Error("initializeWasm() must be awaited first!");
1125         }
1126         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_get_b(owner);
1127         return nativeResponseValue;
1128 }
1129         // void CResult_NoneChannelMonitorUpdateErrZ_get_ok(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR owner);
1130 /* @internal */
1131 export function CResult_NoneChannelMonitorUpdateErrZ_get_ok(owner: number): void {
1132         if(!isWasmInitialized) {
1133                 throw new Error("initializeWasm() must be awaited first!");
1134         }
1135         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_get_ok(owner);
1136         // debug statements here
1137 }
1138         // enum LDKChannelMonitorUpdateErr CResult_NoneChannelMonitorUpdateErrZ_get_err(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR owner);
1139 /* @internal */
1140 export function CResult_NoneChannelMonitorUpdateErrZ_get_err(owner: number): ChannelMonitorUpdateErr {
1141         if(!isWasmInitialized) {
1142                 throw new Error("initializeWasm() must be awaited first!");
1143         }
1144         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_get_err(owner);
1145         return nativeResponseValue;
1146 }
1147 /* @internal */
1148 export class LDKMonitorEvent {
1149         protected constructor() {}
1150 }
1151 /* @internal */
1152 export function LDKMonitorEvent_ty_from_ptr(ptr: number): number {
1153         if(!isWasmInitialized) {
1154                 throw new Error("initializeWasm() must be awaited first!");
1155         }
1156         const nativeResponseValue = wasm.TS_LDKMonitorEvent_ty_from_ptr(ptr);
1157         return nativeResponseValue;
1158 }
1159 /* @internal */
1160 export function LDKMonitorEvent_HTLCEvent_get_htlc_event(ptr: number): number {
1161         if(!isWasmInitialized) {
1162                 throw new Error("initializeWasm() must be awaited first!");
1163         }
1164         const nativeResponseValue = wasm.TS_LDKMonitorEvent_HTLCEvent_get_htlc_event(ptr);
1165         return nativeResponseValue;
1166 }
1167 /* @internal */
1168 export function LDKMonitorEvent_CommitmentTxConfirmed_get_commitment_tx_confirmed(ptr: number): number {
1169         if(!isWasmInitialized) {
1170                 throw new Error("initializeWasm() must be awaited first!");
1171         }
1172         const nativeResponseValue = wasm.TS_LDKMonitorEvent_CommitmentTxConfirmed_get_commitment_tx_confirmed(ptr);
1173         return nativeResponseValue;
1174 }
1175 /* @internal */
1176 export function LDKMonitorEvent_UpdateCompleted_get_funding_txo(ptr: number): number {
1177         if(!isWasmInitialized) {
1178                 throw new Error("initializeWasm() must be awaited first!");
1179         }
1180         const nativeResponseValue = wasm.TS_LDKMonitorEvent_UpdateCompleted_get_funding_txo(ptr);
1181         return nativeResponseValue;
1182 }
1183 /* @internal */
1184 export function LDKMonitorEvent_UpdateCompleted_get_monitor_update_id(ptr: number): bigint {
1185         if(!isWasmInitialized) {
1186                 throw new Error("initializeWasm() must be awaited first!");
1187         }
1188         const nativeResponseValue = wasm.TS_LDKMonitorEvent_UpdateCompleted_get_monitor_update_id(ptr);
1189         return nativeResponseValue;
1190 }
1191 /* @internal */
1192 export function LDKMonitorEvent_UpdateFailed_get_update_failed(ptr: number): number {
1193         if(!isWasmInitialized) {
1194                 throw new Error("initializeWasm() must be awaited first!");
1195         }
1196         const nativeResponseValue = wasm.TS_LDKMonitorEvent_UpdateFailed_get_update_failed(ptr);
1197         return nativeResponseValue;
1198 }
1199 /* @internal */
1200 export class LDKCOption_C2Tuple_usizeTransactionZZ {
1201         protected constructor() {}
1202 }
1203 /* @internal */
1204 export function LDKCOption_C2Tuple_usizeTransactionZZ_ty_from_ptr(ptr: number): number {
1205         if(!isWasmInitialized) {
1206                 throw new Error("initializeWasm() must be awaited first!");
1207         }
1208         const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_usizeTransactionZZ_ty_from_ptr(ptr);
1209         return nativeResponseValue;
1210 }
1211 /* @internal */
1212 export function LDKCOption_C2Tuple_usizeTransactionZZ_Some_get_some(ptr: number): number {
1213         if(!isWasmInitialized) {
1214                 throw new Error("initializeWasm() must be awaited first!");
1215         }
1216         const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_usizeTransactionZZ_Some_get_some(ptr);
1217         return nativeResponseValue;
1218 }
1219 /* @internal */
1220 export class LDKClosureReason {
1221         protected constructor() {}
1222 }
1223 /* @internal */
1224 export function LDKClosureReason_ty_from_ptr(ptr: number): number {
1225         if(!isWasmInitialized) {
1226                 throw new Error("initializeWasm() must be awaited first!");
1227         }
1228         const nativeResponseValue = wasm.TS_LDKClosureReason_ty_from_ptr(ptr);
1229         return nativeResponseValue;
1230 }
1231 /* @internal */
1232 export function LDKClosureReason_CounterpartyForceClosed_get_peer_msg(ptr: number): number {
1233         if(!isWasmInitialized) {
1234                 throw new Error("initializeWasm() must be awaited first!");
1235         }
1236         const nativeResponseValue = wasm.TS_LDKClosureReason_CounterpartyForceClosed_get_peer_msg(ptr);
1237         return nativeResponseValue;
1238 }
1239 /* @internal */
1240 export function LDKClosureReason_ProcessingError_get_err(ptr: number): number {
1241         if(!isWasmInitialized) {
1242                 throw new Error("initializeWasm() must be awaited first!");
1243         }
1244         const nativeResponseValue = wasm.TS_LDKClosureReason_ProcessingError_get_err(ptr);
1245         return nativeResponseValue;
1246 }
1247 /* @internal */
1248 export class LDKCOption_ClosureReasonZ {
1249         protected constructor() {}
1250 }
1251 /* @internal */
1252 export function LDKCOption_ClosureReasonZ_ty_from_ptr(ptr: number): number {
1253         if(!isWasmInitialized) {
1254                 throw new Error("initializeWasm() must be awaited first!");
1255         }
1256         const nativeResponseValue = wasm.TS_LDKCOption_ClosureReasonZ_ty_from_ptr(ptr);
1257         return nativeResponseValue;
1258 }
1259 /* @internal */
1260 export function LDKCOption_ClosureReasonZ_Some_get_some(ptr: number): number {
1261         if(!isWasmInitialized) {
1262                 throw new Error("initializeWasm() must be awaited first!");
1263         }
1264         const nativeResponseValue = wasm.TS_LDKCOption_ClosureReasonZ_Some_get_some(ptr);
1265         return nativeResponseValue;
1266 }
1267         // struct LDKCOption_ClosureReasonZ CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
1268 /* @internal */
1269 export function CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(owner: number): number {
1270         if(!isWasmInitialized) {
1271                 throw new Error("initializeWasm() must be awaited first!");
1272         }
1273         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(owner);
1274         return nativeResponseValue;
1275 }
1276         // struct LDKDecodeError CResult_COption_ClosureReasonZDecodeErrorZ_get_err(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
1277 /* @internal */
1278 export function CResult_COption_ClosureReasonZDecodeErrorZ_get_err(owner: number): number {
1279         if(!isWasmInitialized) {
1280                 throw new Error("initializeWasm() must be awaited first!");
1281         }
1282         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_get_err(owner);
1283         return nativeResponseValue;
1284 }
1285 /* @internal */
1286 export class LDKNetworkUpdate {
1287         protected constructor() {}
1288 }
1289 /* @internal */
1290 export function LDKNetworkUpdate_ty_from_ptr(ptr: number): number {
1291         if(!isWasmInitialized) {
1292                 throw new Error("initializeWasm() must be awaited first!");
1293         }
1294         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ty_from_ptr(ptr);
1295         return nativeResponseValue;
1296 }
1297 /* @internal */
1298 export function LDKNetworkUpdate_ChannelUpdateMessage_get_msg(ptr: number): number {
1299         if(!isWasmInitialized) {
1300                 throw new Error("initializeWasm() must be awaited first!");
1301         }
1302         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelUpdateMessage_get_msg(ptr);
1303         return nativeResponseValue;
1304 }
1305 /* @internal */
1306 export function LDKNetworkUpdate_ChannelClosed_get_short_channel_id(ptr: number): bigint {
1307         if(!isWasmInitialized) {
1308                 throw new Error("initializeWasm() must be awaited first!");
1309         }
1310         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelClosed_get_short_channel_id(ptr);
1311         return nativeResponseValue;
1312 }
1313 /* @internal */
1314 export function LDKNetworkUpdate_ChannelClosed_get_is_permanent(ptr: number): boolean {
1315         if(!isWasmInitialized) {
1316                 throw new Error("initializeWasm() must be awaited first!");
1317         }
1318         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelClosed_get_is_permanent(ptr);
1319         return nativeResponseValue;
1320 }
1321 /* @internal */
1322 export function LDKNetworkUpdate_NodeFailure_get_node_id(ptr: number): number {
1323         if(!isWasmInitialized) {
1324                 throw new Error("initializeWasm() must be awaited first!");
1325         }
1326         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_NodeFailure_get_node_id(ptr);
1327         return nativeResponseValue;
1328 }
1329 /* @internal */
1330 export function LDKNetworkUpdate_NodeFailure_get_is_permanent(ptr: number): boolean {
1331         if(!isWasmInitialized) {
1332                 throw new Error("initializeWasm() must be awaited first!");
1333         }
1334         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_NodeFailure_get_is_permanent(ptr);
1335         return nativeResponseValue;
1336 }
1337 /* @internal */
1338 export class LDKCOption_NetworkUpdateZ {
1339         protected constructor() {}
1340 }
1341 /* @internal */
1342 export function LDKCOption_NetworkUpdateZ_ty_from_ptr(ptr: number): number {
1343         if(!isWasmInitialized) {
1344                 throw new Error("initializeWasm() must be awaited first!");
1345         }
1346         const nativeResponseValue = wasm.TS_LDKCOption_NetworkUpdateZ_ty_from_ptr(ptr);
1347         return nativeResponseValue;
1348 }
1349 /* @internal */
1350 export function LDKCOption_NetworkUpdateZ_Some_get_some(ptr: number): number {
1351         if(!isWasmInitialized) {
1352                 throw new Error("initializeWasm() must be awaited first!");
1353         }
1354         const nativeResponseValue = wasm.TS_LDKCOption_NetworkUpdateZ_Some_get_some(ptr);
1355         return nativeResponseValue;
1356 }
1357 /* @internal */
1358 export class LDKSpendableOutputDescriptor {
1359         protected constructor() {}
1360 }
1361 /* @internal */
1362 export function LDKSpendableOutputDescriptor_ty_from_ptr(ptr: number): number {
1363         if(!isWasmInitialized) {
1364                 throw new Error("initializeWasm() must be awaited first!");
1365         }
1366         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_ty_from_ptr(ptr);
1367         return nativeResponseValue;
1368 }
1369 /* @internal */
1370 export function LDKSpendableOutputDescriptor_StaticOutput_get_outpoint(ptr: number): number {
1371         if(!isWasmInitialized) {
1372                 throw new Error("initializeWasm() must be awaited first!");
1373         }
1374         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticOutput_get_outpoint(ptr);
1375         return nativeResponseValue;
1376 }
1377 /* @internal */
1378 export function LDKSpendableOutputDescriptor_StaticOutput_get_output(ptr: number): number {
1379         if(!isWasmInitialized) {
1380                 throw new Error("initializeWasm() must be awaited first!");
1381         }
1382         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticOutput_get_output(ptr);
1383         return nativeResponseValue;
1384 }
1385 /* @internal */
1386 export function LDKSpendableOutputDescriptor_DelayedPaymentOutput_get_delayed_payment_output(ptr: number): number {
1387         if(!isWasmInitialized) {
1388                 throw new Error("initializeWasm() must be awaited first!");
1389         }
1390         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_DelayedPaymentOutput_get_delayed_payment_output(ptr);
1391         return nativeResponseValue;
1392 }
1393 /* @internal */
1394 export function LDKSpendableOutputDescriptor_StaticPaymentOutput_get_static_payment_output(ptr: number): number {
1395         if(!isWasmInitialized) {
1396                 throw new Error("initializeWasm() must be awaited first!");
1397         }
1398         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticPaymentOutput_get_static_payment_output(ptr);
1399         return nativeResponseValue;
1400 }
1401 /* @internal */
1402 export class LDKPaymentPurpose {
1403         protected constructor() {}
1404 }
1405 /* @internal */
1406 export function LDKPaymentPurpose_ty_from_ptr(ptr: number): number {
1407         if(!isWasmInitialized) {
1408                 throw new Error("initializeWasm() must be awaited first!");
1409         }
1410         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_ty_from_ptr(ptr);
1411         return nativeResponseValue;
1412 }
1413 /* @internal */
1414 export function LDKPaymentPurpose_InvoicePayment_get_payment_preimage(ptr: number): number {
1415         if(!isWasmInitialized) {
1416                 throw new Error("initializeWasm() must be awaited first!");
1417         }
1418         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_InvoicePayment_get_payment_preimage(ptr);
1419         return nativeResponseValue;
1420 }
1421 /* @internal */
1422 export function LDKPaymentPurpose_InvoicePayment_get_payment_secret(ptr: number): number {
1423         if(!isWasmInitialized) {
1424                 throw new Error("initializeWasm() must be awaited first!");
1425         }
1426         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_InvoicePayment_get_payment_secret(ptr);
1427         return nativeResponseValue;
1428 }
1429 /* @internal */
1430 export function LDKPaymentPurpose_SpontaneousPayment_get_spontaneous_payment(ptr: number): number {
1431         if(!isWasmInitialized) {
1432                 throw new Error("initializeWasm() must be awaited first!");
1433         }
1434         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_SpontaneousPayment_get_spontaneous_payment(ptr);
1435         return nativeResponseValue;
1436 }
1437 /* @internal */
1438 export class LDKEvent {
1439         protected constructor() {}
1440 }
1441 /* @internal */
1442 export function LDKEvent_ty_from_ptr(ptr: number): number {
1443         if(!isWasmInitialized) {
1444                 throw new Error("initializeWasm() must be awaited first!");
1445         }
1446         const nativeResponseValue = wasm.TS_LDKEvent_ty_from_ptr(ptr);
1447         return nativeResponseValue;
1448 }
1449 /* @internal */
1450 export function LDKEvent_FundingGenerationReady_get_temporary_channel_id(ptr: number): number {
1451         if(!isWasmInitialized) {
1452                 throw new Error("initializeWasm() must be awaited first!");
1453         }
1454         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_temporary_channel_id(ptr);
1455         return nativeResponseValue;
1456 }
1457 /* @internal */
1458 export function LDKEvent_FundingGenerationReady_get_channel_value_satoshis(ptr: number): bigint {
1459         if(!isWasmInitialized) {
1460                 throw new Error("initializeWasm() must be awaited first!");
1461         }
1462         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_channel_value_satoshis(ptr);
1463         return nativeResponseValue;
1464 }
1465 /* @internal */
1466 export function LDKEvent_FundingGenerationReady_get_output_script(ptr: number): number {
1467         if(!isWasmInitialized) {
1468                 throw new Error("initializeWasm() must be awaited first!");
1469         }
1470         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_output_script(ptr);
1471         return nativeResponseValue;
1472 }
1473 /* @internal */
1474 export function LDKEvent_FundingGenerationReady_get_user_channel_id(ptr: number): bigint {
1475         if(!isWasmInitialized) {
1476                 throw new Error("initializeWasm() must be awaited first!");
1477         }
1478         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_user_channel_id(ptr);
1479         return nativeResponseValue;
1480 }
1481 /* @internal */
1482 export function LDKEvent_PaymentReceived_get_payment_hash(ptr: number): number {
1483         if(!isWasmInitialized) {
1484                 throw new Error("initializeWasm() must be awaited first!");
1485         }
1486         const nativeResponseValue = wasm.TS_LDKEvent_PaymentReceived_get_payment_hash(ptr);
1487         return nativeResponseValue;
1488 }
1489 /* @internal */
1490 export function LDKEvent_PaymentReceived_get_amt(ptr: number): bigint {
1491         if(!isWasmInitialized) {
1492                 throw new Error("initializeWasm() must be awaited first!");
1493         }
1494         const nativeResponseValue = wasm.TS_LDKEvent_PaymentReceived_get_amt(ptr);
1495         return nativeResponseValue;
1496 }
1497 /* @internal */
1498 export function LDKEvent_PaymentReceived_get_purpose(ptr: number): number {
1499         if(!isWasmInitialized) {
1500                 throw new Error("initializeWasm() must be awaited first!");
1501         }
1502         const nativeResponseValue = wasm.TS_LDKEvent_PaymentReceived_get_purpose(ptr);
1503         return nativeResponseValue;
1504 }
1505 /* @internal */
1506 export function LDKEvent_PaymentSent_get_payment_id(ptr: number): number {
1507         if(!isWasmInitialized) {
1508                 throw new Error("initializeWasm() must be awaited first!");
1509         }
1510         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_id(ptr);
1511         return nativeResponseValue;
1512 }
1513 /* @internal */
1514 export function LDKEvent_PaymentSent_get_payment_preimage(ptr: number): number {
1515         if(!isWasmInitialized) {
1516                 throw new Error("initializeWasm() must be awaited first!");
1517         }
1518         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_preimage(ptr);
1519         return nativeResponseValue;
1520 }
1521 /* @internal */
1522 export function LDKEvent_PaymentSent_get_payment_hash(ptr: number): number {
1523         if(!isWasmInitialized) {
1524                 throw new Error("initializeWasm() must be awaited first!");
1525         }
1526         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_hash(ptr);
1527         return nativeResponseValue;
1528 }
1529 /* @internal */
1530 export function LDKEvent_PaymentSent_get_fee_paid_msat(ptr: number): number {
1531         if(!isWasmInitialized) {
1532                 throw new Error("initializeWasm() must be awaited first!");
1533         }
1534         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_fee_paid_msat(ptr);
1535         return nativeResponseValue;
1536 }
1537 /* @internal */
1538 export function LDKEvent_PaymentPathFailed_get_payment_id(ptr: number): number {
1539         if(!isWasmInitialized) {
1540                 throw new Error("initializeWasm() must be awaited first!");
1541         }
1542         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_payment_id(ptr);
1543         return nativeResponseValue;
1544 }
1545 /* @internal */
1546 export function LDKEvent_PaymentPathFailed_get_payment_hash(ptr: number): number {
1547         if(!isWasmInitialized) {
1548                 throw new Error("initializeWasm() must be awaited first!");
1549         }
1550         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_payment_hash(ptr);
1551         return nativeResponseValue;
1552 }
1553 /* @internal */
1554 export function LDKEvent_PaymentPathFailed_get_rejected_by_dest(ptr: number): boolean {
1555         if(!isWasmInitialized) {
1556                 throw new Error("initializeWasm() must be awaited first!");
1557         }
1558         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_rejected_by_dest(ptr);
1559         return nativeResponseValue;
1560 }
1561 /* @internal */
1562 export function LDKEvent_PaymentPathFailed_get_network_update(ptr: number): number {
1563         if(!isWasmInitialized) {
1564                 throw new Error("initializeWasm() must be awaited first!");
1565         }
1566         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_network_update(ptr);
1567         return nativeResponseValue;
1568 }
1569 /* @internal */
1570 export function LDKEvent_PaymentPathFailed_get_all_paths_failed(ptr: number): boolean {
1571         if(!isWasmInitialized) {
1572                 throw new Error("initializeWasm() must be awaited first!");
1573         }
1574         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_all_paths_failed(ptr);
1575         return nativeResponseValue;
1576 }
1577 /* @internal */
1578 export function LDKEvent_PaymentPathFailed_get_path(ptr: number): number {
1579         if(!isWasmInitialized) {
1580                 throw new Error("initializeWasm() must be awaited first!");
1581         }
1582         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_path(ptr);
1583         return nativeResponseValue;
1584 }
1585 /* @internal */
1586 export function LDKEvent_PaymentPathFailed_get_short_channel_id(ptr: number): number {
1587         if(!isWasmInitialized) {
1588                 throw new Error("initializeWasm() must be awaited first!");
1589         }
1590         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_short_channel_id(ptr);
1591         return nativeResponseValue;
1592 }
1593 /* @internal */
1594 export function LDKEvent_PaymentPathFailed_get_retry(ptr: number): number {
1595         if(!isWasmInitialized) {
1596                 throw new Error("initializeWasm() must be awaited first!");
1597         }
1598         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_retry(ptr);
1599         return nativeResponseValue;
1600 }
1601 /* @internal */
1602 export function LDKEvent_PaymentFailed_get_payment_id(ptr: number): number {
1603         if(!isWasmInitialized) {
1604                 throw new Error("initializeWasm() must be awaited first!");
1605         }
1606         const nativeResponseValue = wasm.TS_LDKEvent_PaymentFailed_get_payment_id(ptr);
1607         return nativeResponseValue;
1608 }
1609 /* @internal */
1610 export function LDKEvent_PaymentFailed_get_payment_hash(ptr: number): number {
1611         if(!isWasmInitialized) {
1612                 throw new Error("initializeWasm() must be awaited first!");
1613         }
1614         const nativeResponseValue = wasm.TS_LDKEvent_PaymentFailed_get_payment_hash(ptr);
1615         return nativeResponseValue;
1616 }
1617 /* @internal */
1618 export function LDKEvent_PendingHTLCsForwardable_get_time_forwardable(ptr: number): bigint {
1619         if(!isWasmInitialized) {
1620                 throw new Error("initializeWasm() must be awaited first!");
1621         }
1622         const nativeResponseValue = wasm.TS_LDKEvent_PendingHTLCsForwardable_get_time_forwardable(ptr);
1623         return nativeResponseValue;
1624 }
1625 /* @internal */
1626 export function LDKEvent_SpendableOutputs_get_outputs(ptr: number): number {
1627         if(!isWasmInitialized) {
1628                 throw new Error("initializeWasm() must be awaited first!");
1629         }
1630         const nativeResponseValue = wasm.TS_LDKEvent_SpendableOutputs_get_outputs(ptr);
1631         return nativeResponseValue;
1632 }
1633 /* @internal */
1634 export function LDKEvent_PaymentForwarded_get_fee_earned_msat(ptr: number): number {
1635         if(!isWasmInitialized) {
1636                 throw new Error("initializeWasm() must be awaited first!");
1637         }
1638         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_fee_earned_msat(ptr);
1639         return nativeResponseValue;
1640 }
1641 /* @internal */
1642 export function LDKEvent_PaymentForwarded_get_claim_from_onchain_tx(ptr: number): boolean {
1643         if(!isWasmInitialized) {
1644                 throw new Error("initializeWasm() must be awaited first!");
1645         }
1646         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_claim_from_onchain_tx(ptr);
1647         return nativeResponseValue;
1648 }
1649 /* @internal */
1650 export function LDKEvent_ChannelClosed_get_channel_id(ptr: number): number {
1651         if(!isWasmInitialized) {
1652                 throw new Error("initializeWasm() must be awaited first!");
1653         }
1654         const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_channel_id(ptr);
1655         return nativeResponseValue;
1656 }
1657 /* @internal */
1658 export function LDKEvent_ChannelClosed_get_user_channel_id(ptr: number): bigint {
1659         if(!isWasmInitialized) {
1660                 throw new Error("initializeWasm() must be awaited first!");
1661         }
1662         const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_user_channel_id(ptr);
1663         return nativeResponseValue;
1664 }
1665 /* @internal */
1666 export function LDKEvent_ChannelClosed_get_reason(ptr: number): number {
1667         if(!isWasmInitialized) {
1668                 throw new Error("initializeWasm() must be awaited first!");
1669         }
1670         const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_reason(ptr);
1671         return nativeResponseValue;
1672 }
1673 /* @internal */
1674 export function LDKEvent_DiscardFunding_get_channel_id(ptr: number): number {
1675         if(!isWasmInitialized) {
1676                 throw new Error("initializeWasm() must be awaited first!");
1677         }
1678         const nativeResponseValue = wasm.TS_LDKEvent_DiscardFunding_get_channel_id(ptr);
1679         return nativeResponseValue;
1680 }
1681 /* @internal */
1682 export function LDKEvent_DiscardFunding_get_transaction(ptr: number): number {
1683         if(!isWasmInitialized) {
1684                 throw new Error("initializeWasm() must be awaited first!");
1685         }
1686         const nativeResponseValue = wasm.TS_LDKEvent_DiscardFunding_get_transaction(ptr);
1687         return nativeResponseValue;
1688 }
1689 /* @internal */
1690 export function LDKEvent_PaymentPathSuccessful_get_payment_id(ptr: number): number {
1691         if(!isWasmInitialized) {
1692                 throw new Error("initializeWasm() must be awaited first!");
1693         }
1694         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_payment_id(ptr);
1695         return nativeResponseValue;
1696 }
1697 /* @internal */
1698 export function LDKEvent_PaymentPathSuccessful_get_payment_hash(ptr: number): number {
1699         if(!isWasmInitialized) {
1700                 throw new Error("initializeWasm() must be awaited first!");
1701         }
1702         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_payment_hash(ptr);
1703         return nativeResponseValue;
1704 }
1705 /* @internal */
1706 export function LDKEvent_PaymentPathSuccessful_get_path(ptr: number): number {
1707         if(!isWasmInitialized) {
1708                 throw new Error("initializeWasm() must be awaited first!");
1709         }
1710         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_path(ptr);
1711         return nativeResponseValue;
1712 }
1713 /* @internal */
1714 export function LDKEvent_OpenChannelRequest_get_temporary_channel_id(ptr: number): number {
1715         if(!isWasmInitialized) {
1716                 throw new Error("initializeWasm() must be awaited first!");
1717         }
1718         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_temporary_channel_id(ptr);
1719         return nativeResponseValue;
1720 }
1721 /* @internal */
1722 export function LDKEvent_OpenChannelRequest_get_counterparty_node_id(ptr: number): number {
1723         if(!isWasmInitialized) {
1724                 throw new Error("initializeWasm() must be awaited first!");
1725         }
1726         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_counterparty_node_id(ptr);
1727         return nativeResponseValue;
1728 }
1729 /* @internal */
1730 export function LDKEvent_OpenChannelRequest_get_funding_satoshis(ptr: number): bigint {
1731         if(!isWasmInitialized) {
1732                 throw new Error("initializeWasm() must be awaited first!");
1733         }
1734         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_funding_satoshis(ptr);
1735         return nativeResponseValue;
1736 }
1737 /* @internal */
1738 export function LDKEvent_OpenChannelRequest_get_push_msat(ptr: number): bigint {
1739         if(!isWasmInitialized) {
1740                 throw new Error("initializeWasm() must be awaited first!");
1741         }
1742         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_push_msat(ptr);
1743         return nativeResponseValue;
1744 }
1745 /* @internal */
1746 export function LDKEvent_OpenChannelRequest_get_channel_type(ptr: number): number {
1747         if(!isWasmInitialized) {
1748                 throw new Error("initializeWasm() must be awaited first!");
1749         }
1750         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_channel_type(ptr);
1751         return nativeResponseValue;
1752 }
1753 /* @internal */
1754 export class LDKCOption_EventZ {
1755         protected constructor() {}
1756 }
1757 /* @internal */
1758 export function LDKCOption_EventZ_ty_from_ptr(ptr: number): number {
1759         if(!isWasmInitialized) {
1760                 throw new Error("initializeWasm() must be awaited first!");
1761         }
1762         const nativeResponseValue = wasm.TS_LDKCOption_EventZ_ty_from_ptr(ptr);
1763         return nativeResponseValue;
1764 }
1765 /* @internal */
1766 export function LDKCOption_EventZ_Some_get_some(ptr: number): number {
1767         if(!isWasmInitialized) {
1768                 throw new Error("initializeWasm() must be awaited first!");
1769         }
1770         const nativeResponseValue = wasm.TS_LDKCOption_EventZ_Some_get_some(ptr);
1771         return nativeResponseValue;
1772 }
1773         // struct LDKCOption_EventZ CResult_COption_EventZDecodeErrorZ_get_ok(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
1774 /* @internal */
1775 export function CResult_COption_EventZDecodeErrorZ_get_ok(owner: number): number {
1776         if(!isWasmInitialized) {
1777                 throw new Error("initializeWasm() must be awaited first!");
1778         }
1779         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_get_ok(owner);
1780         return nativeResponseValue;
1781 }
1782         // struct LDKDecodeError CResult_COption_EventZDecodeErrorZ_get_err(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
1783 /* @internal */
1784 export function CResult_COption_EventZDecodeErrorZ_get_err(owner: number): number {
1785         if(!isWasmInitialized) {
1786                 throw new Error("initializeWasm() must be awaited first!");
1787         }
1788         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_get_err(owner);
1789         return nativeResponseValue;
1790 }
1791 /* @internal */
1792 export class LDKErrorAction {
1793         protected constructor() {}
1794 }
1795 /* @internal */
1796 export function LDKErrorAction_ty_from_ptr(ptr: number): number {
1797         if(!isWasmInitialized) {
1798                 throw new Error("initializeWasm() must be awaited first!");
1799         }
1800         const nativeResponseValue = wasm.TS_LDKErrorAction_ty_from_ptr(ptr);
1801         return nativeResponseValue;
1802 }
1803 /* @internal */
1804 export function LDKErrorAction_DisconnectPeer_get_msg(ptr: number): number {
1805         if(!isWasmInitialized) {
1806                 throw new Error("initializeWasm() must be awaited first!");
1807         }
1808         const nativeResponseValue = wasm.TS_LDKErrorAction_DisconnectPeer_get_msg(ptr);
1809         return nativeResponseValue;
1810 }
1811 /* @internal */
1812 export function LDKErrorAction_IgnoreAndLog_get_ignore_and_log(ptr: number): Level {
1813         if(!isWasmInitialized) {
1814                 throw new Error("initializeWasm() must be awaited first!");
1815         }
1816         const nativeResponseValue = wasm.TS_LDKErrorAction_IgnoreAndLog_get_ignore_and_log(ptr);
1817         return nativeResponseValue;
1818 }
1819 /* @internal */
1820 export function LDKErrorAction_SendErrorMessage_get_msg(ptr: number): number {
1821         if(!isWasmInitialized) {
1822                 throw new Error("initializeWasm() must be awaited first!");
1823         }
1824         const nativeResponseValue = wasm.TS_LDKErrorAction_SendErrorMessage_get_msg(ptr);
1825         return nativeResponseValue;
1826 }
1827 /* @internal */
1828 export function LDKErrorAction_SendWarningMessage_get_msg(ptr: number): number {
1829         if(!isWasmInitialized) {
1830                 throw new Error("initializeWasm() must be awaited first!");
1831         }
1832         const nativeResponseValue = wasm.TS_LDKErrorAction_SendWarningMessage_get_msg(ptr);
1833         return nativeResponseValue;
1834 }
1835 /* @internal */
1836 export function LDKErrorAction_SendWarningMessage_get_log_level(ptr: number): Level {
1837         if(!isWasmInitialized) {
1838                 throw new Error("initializeWasm() must be awaited first!");
1839         }
1840         const nativeResponseValue = wasm.TS_LDKErrorAction_SendWarningMessage_get_log_level(ptr);
1841         return nativeResponseValue;
1842 }
1843 /* @internal */
1844 export class LDKMessageSendEvent {
1845         protected constructor() {}
1846 }
1847 /* @internal */
1848 export function LDKMessageSendEvent_ty_from_ptr(ptr: number): number {
1849         if(!isWasmInitialized) {
1850                 throw new Error("initializeWasm() must be awaited first!");
1851         }
1852         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_ty_from_ptr(ptr);
1853         return nativeResponseValue;
1854 }
1855 /* @internal */
1856 export function LDKMessageSendEvent_SendAcceptChannel_get_node_id(ptr: number): number {
1857         if(!isWasmInitialized) {
1858                 throw new Error("initializeWasm() must be awaited first!");
1859         }
1860         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAcceptChannel_get_node_id(ptr);
1861         return nativeResponseValue;
1862 }
1863 /* @internal */
1864 export function LDKMessageSendEvent_SendAcceptChannel_get_msg(ptr: number): number {
1865         if(!isWasmInitialized) {
1866                 throw new Error("initializeWasm() must be awaited first!");
1867         }
1868         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAcceptChannel_get_msg(ptr);
1869         return nativeResponseValue;
1870 }
1871 /* @internal */
1872 export function LDKMessageSendEvent_SendOpenChannel_get_node_id(ptr: number): number {
1873         if(!isWasmInitialized) {
1874                 throw new Error("initializeWasm() must be awaited first!");
1875         }
1876         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendOpenChannel_get_node_id(ptr);
1877         return nativeResponseValue;
1878 }
1879 /* @internal */
1880 export function LDKMessageSendEvent_SendOpenChannel_get_msg(ptr: number): number {
1881         if(!isWasmInitialized) {
1882                 throw new Error("initializeWasm() must be awaited first!");
1883         }
1884         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendOpenChannel_get_msg(ptr);
1885         return nativeResponseValue;
1886 }
1887 /* @internal */
1888 export function LDKMessageSendEvent_SendFundingCreated_get_node_id(ptr: number): number {
1889         if(!isWasmInitialized) {
1890                 throw new Error("initializeWasm() must be awaited first!");
1891         }
1892         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingCreated_get_node_id(ptr);
1893         return nativeResponseValue;
1894 }
1895 /* @internal */
1896 export function LDKMessageSendEvent_SendFundingCreated_get_msg(ptr: number): number {
1897         if(!isWasmInitialized) {
1898                 throw new Error("initializeWasm() must be awaited first!");
1899         }
1900         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingCreated_get_msg(ptr);
1901         return nativeResponseValue;
1902 }
1903 /* @internal */
1904 export function LDKMessageSendEvent_SendFundingSigned_get_node_id(ptr: number): number {
1905         if(!isWasmInitialized) {
1906                 throw new Error("initializeWasm() must be awaited first!");
1907         }
1908         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingSigned_get_node_id(ptr);
1909         return nativeResponseValue;
1910 }
1911 /* @internal */
1912 export function LDKMessageSendEvent_SendFundingSigned_get_msg(ptr: number): number {
1913         if(!isWasmInitialized) {
1914                 throw new Error("initializeWasm() must be awaited first!");
1915         }
1916         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingSigned_get_msg(ptr);
1917         return nativeResponseValue;
1918 }
1919 /* @internal */
1920 export function LDKMessageSendEvent_SendFundingLocked_get_node_id(ptr: number): number {
1921         if(!isWasmInitialized) {
1922                 throw new Error("initializeWasm() must be awaited first!");
1923         }
1924         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingLocked_get_node_id(ptr);
1925         return nativeResponseValue;
1926 }
1927 /* @internal */
1928 export function LDKMessageSendEvent_SendFundingLocked_get_msg(ptr: number): number {
1929         if(!isWasmInitialized) {
1930                 throw new Error("initializeWasm() must be awaited first!");
1931         }
1932         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingLocked_get_msg(ptr);
1933         return nativeResponseValue;
1934 }
1935 /* @internal */
1936 export function LDKMessageSendEvent_SendAnnouncementSignatures_get_node_id(ptr: number): number {
1937         if(!isWasmInitialized) {
1938                 throw new Error("initializeWasm() must be awaited first!");
1939         }
1940         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAnnouncementSignatures_get_node_id(ptr);
1941         return nativeResponseValue;
1942 }
1943 /* @internal */
1944 export function LDKMessageSendEvent_SendAnnouncementSignatures_get_msg(ptr: number): number {
1945         if(!isWasmInitialized) {
1946                 throw new Error("initializeWasm() must be awaited first!");
1947         }
1948         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAnnouncementSignatures_get_msg(ptr);
1949         return nativeResponseValue;
1950 }
1951 /* @internal */
1952 export function LDKMessageSendEvent_UpdateHTLCs_get_node_id(ptr: number): number {
1953         if(!isWasmInitialized) {
1954                 throw new Error("initializeWasm() must be awaited first!");
1955         }
1956         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_UpdateHTLCs_get_node_id(ptr);
1957         return nativeResponseValue;
1958 }
1959 /* @internal */
1960 export function LDKMessageSendEvent_UpdateHTLCs_get_updates(ptr: number): number {
1961         if(!isWasmInitialized) {
1962                 throw new Error("initializeWasm() must be awaited first!");
1963         }
1964         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_UpdateHTLCs_get_updates(ptr);
1965         return nativeResponseValue;
1966 }
1967 /* @internal */
1968 export function LDKMessageSendEvent_SendRevokeAndACK_get_node_id(ptr: number): number {
1969         if(!isWasmInitialized) {
1970                 throw new Error("initializeWasm() must be awaited first!");
1971         }
1972         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendRevokeAndACK_get_node_id(ptr);
1973         return nativeResponseValue;
1974 }
1975 /* @internal */
1976 export function LDKMessageSendEvent_SendRevokeAndACK_get_msg(ptr: number): number {
1977         if(!isWasmInitialized) {
1978                 throw new Error("initializeWasm() must be awaited first!");
1979         }
1980         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendRevokeAndACK_get_msg(ptr);
1981         return nativeResponseValue;
1982 }
1983 /* @internal */
1984 export function LDKMessageSendEvent_SendClosingSigned_get_node_id(ptr: number): number {
1985         if(!isWasmInitialized) {
1986                 throw new Error("initializeWasm() must be awaited first!");
1987         }
1988         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendClosingSigned_get_node_id(ptr);
1989         return nativeResponseValue;
1990 }
1991 /* @internal */
1992 export function LDKMessageSendEvent_SendClosingSigned_get_msg(ptr: number): number {
1993         if(!isWasmInitialized) {
1994                 throw new Error("initializeWasm() must be awaited first!");
1995         }
1996         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendClosingSigned_get_msg(ptr);
1997         return nativeResponseValue;
1998 }
1999 /* @internal */
2000 export function LDKMessageSendEvent_SendShutdown_get_node_id(ptr: number): number {
2001         if(!isWasmInitialized) {
2002                 throw new Error("initializeWasm() must be awaited first!");
2003         }
2004         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShutdown_get_node_id(ptr);
2005         return nativeResponseValue;
2006 }
2007 /* @internal */
2008 export function LDKMessageSendEvent_SendShutdown_get_msg(ptr: number): number {
2009         if(!isWasmInitialized) {
2010                 throw new Error("initializeWasm() must be awaited first!");
2011         }
2012         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShutdown_get_msg(ptr);
2013         return nativeResponseValue;
2014 }
2015 /* @internal */
2016 export function LDKMessageSendEvent_SendChannelReestablish_get_node_id(ptr: number): number {
2017         if(!isWasmInitialized) {
2018                 throw new Error("initializeWasm() must be awaited first!");
2019         }
2020         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReestablish_get_node_id(ptr);
2021         return nativeResponseValue;
2022 }
2023 /* @internal */
2024 export function LDKMessageSendEvent_SendChannelReestablish_get_msg(ptr: number): number {
2025         if(!isWasmInitialized) {
2026                 throw new Error("initializeWasm() must be awaited first!");
2027         }
2028         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReestablish_get_msg(ptr);
2029         return nativeResponseValue;
2030 }
2031 /* @internal */
2032 export function LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg(ptr: number): number {
2033         if(!isWasmInitialized) {
2034                 throw new Error("initializeWasm() must be awaited first!");
2035         }
2036         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg(ptr);
2037         return nativeResponseValue;
2038 }
2039 /* @internal */
2040 export function LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg(ptr: number): number {
2041         if(!isWasmInitialized) {
2042                 throw new Error("initializeWasm() must be awaited first!");
2043         }
2044         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg(ptr);
2045         return nativeResponseValue;
2046 }
2047 /* @internal */
2048 export function LDKMessageSendEvent_BroadcastNodeAnnouncement_get_msg(ptr: number): number {
2049         if(!isWasmInitialized) {
2050                 throw new Error("initializeWasm() must be awaited first!");
2051         }
2052         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastNodeAnnouncement_get_msg(ptr);
2053         return nativeResponseValue;
2054 }
2055 /* @internal */
2056 export function LDKMessageSendEvent_BroadcastChannelUpdate_get_msg(ptr: number): number {
2057         if(!isWasmInitialized) {
2058                 throw new Error("initializeWasm() must be awaited first!");
2059         }
2060         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelUpdate_get_msg(ptr);
2061         return nativeResponseValue;
2062 }
2063 /* @internal */
2064 export function LDKMessageSendEvent_SendChannelUpdate_get_node_id(ptr: number): number {
2065         if(!isWasmInitialized) {
2066                 throw new Error("initializeWasm() must be awaited first!");
2067         }
2068         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelUpdate_get_node_id(ptr);
2069         return nativeResponseValue;
2070 }
2071 /* @internal */
2072 export function LDKMessageSendEvent_SendChannelUpdate_get_msg(ptr: number): number {
2073         if(!isWasmInitialized) {
2074                 throw new Error("initializeWasm() must be awaited first!");
2075         }
2076         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelUpdate_get_msg(ptr);
2077         return nativeResponseValue;
2078 }
2079 /* @internal */
2080 export function LDKMessageSendEvent_HandleError_get_node_id(ptr: number): number {
2081         if(!isWasmInitialized) {
2082                 throw new Error("initializeWasm() must be awaited first!");
2083         }
2084         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_HandleError_get_node_id(ptr);
2085         return nativeResponseValue;
2086 }
2087 /* @internal */
2088 export function LDKMessageSendEvent_HandleError_get_action(ptr: number): number {
2089         if(!isWasmInitialized) {
2090                 throw new Error("initializeWasm() must be awaited first!");
2091         }
2092         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_HandleError_get_action(ptr);
2093         return nativeResponseValue;
2094 }
2095 /* @internal */
2096 export function LDKMessageSendEvent_SendChannelRangeQuery_get_node_id(ptr: number): number {
2097         if(!isWasmInitialized) {
2098                 throw new Error("initializeWasm() must be awaited first!");
2099         }
2100         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelRangeQuery_get_node_id(ptr);
2101         return nativeResponseValue;
2102 }
2103 /* @internal */
2104 export function LDKMessageSendEvent_SendChannelRangeQuery_get_msg(ptr: number): number {
2105         if(!isWasmInitialized) {
2106                 throw new Error("initializeWasm() must be awaited first!");
2107         }
2108         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelRangeQuery_get_msg(ptr);
2109         return nativeResponseValue;
2110 }
2111 /* @internal */
2112 export function LDKMessageSendEvent_SendShortIdsQuery_get_node_id(ptr: number): number {
2113         if(!isWasmInitialized) {
2114                 throw new Error("initializeWasm() must be awaited first!");
2115         }
2116         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShortIdsQuery_get_node_id(ptr);
2117         return nativeResponseValue;
2118 }
2119 /* @internal */
2120 export function LDKMessageSendEvent_SendShortIdsQuery_get_msg(ptr: number): number {
2121         if(!isWasmInitialized) {
2122                 throw new Error("initializeWasm() must be awaited first!");
2123         }
2124         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShortIdsQuery_get_msg(ptr);
2125         return nativeResponseValue;
2126 }
2127 /* @internal */
2128 export function LDKMessageSendEvent_SendReplyChannelRange_get_node_id(ptr: number): number {
2129         if(!isWasmInitialized) {
2130                 throw new Error("initializeWasm() must be awaited first!");
2131         }
2132         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendReplyChannelRange_get_node_id(ptr);
2133         return nativeResponseValue;
2134 }
2135 /* @internal */
2136 export function LDKMessageSendEvent_SendReplyChannelRange_get_msg(ptr: number): number {
2137         if(!isWasmInitialized) {
2138                 throw new Error("initializeWasm() must be awaited first!");
2139         }
2140         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendReplyChannelRange_get_msg(ptr);
2141         return nativeResponseValue;
2142 }
2143 /* @internal */
2144 export function LDKMessageSendEvent_SendGossipTimestampFilter_get_node_id(ptr: number): number {
2145         if(!isWasmInitialized) {
2146                 throw new Error("initializeWasm() must be awaited first!");
2147         }
2148         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendGossipTimestampFilter_get_node_id(ptr);
2149         return nativeResponseValue;
2150 }
2151 /* @internal */
2152 export function LDKMessageSendEvent_SendGossipTimestampFilter_get_msg(ptr: number): number {
2153         if(!isWasmInitialized) {
2154                 throw new Error("initializeWasm() must be awaited first!");
2155         }
2156         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendGossipTimestampFilter_get_msg(ptr);
2157         return nativeResponseValue;
2158 }
2159         // struct LDKFixedPenaltyScorer CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
2160 /* @internal */
2161 export function CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(owner: number): number {
2162         if(!isWasmInitialized) {
2163                 throw new Error("initializeWasm() must be awaited first!");
2164         }
2165         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(owner);
2166         return nativeResponseValue;
2167 }
2168         // struct LDKDecodeError CResult_FixedPenaltyScorerDecodeErrorZ_get_err(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
2169 /* @internal */
2170 export function CResult_FixedPenaltyScorerDecodeErrorZ_get_err(owner: number): number {
2171         if(!isWasmInitialized) {
2172                 throw new Error("initializeWasm() must be awaited first!");
2173         }
2174         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_get_err(owner);
2175         return nativeResponseValue;
2176 }
2177         // struct LDKScoringParameters CResult_ScoringParametersDecodeErrorZ_get_ok(LDKCResult_ScoringParametersDecodeErrorZ *NONNULL_PTR owner);
2178 /* @internal */
2179 export function CResult_ScoringParametersDecodeErrorZ_get_ok(owner: number): number {
2180         if(!isWasmInitialized) {
2181                 throw new Error("initializeWasm() must be awaited first!");
2182         }
2183         const nativeResponseValue = wasm.TS_CResult_ScoringParametersDecodeErrorZ_get_ok(owner);
2184         return nativeResponseValue;
2185 }
2186         // struct LDKDecodeError CResult_ScoringParametersDecodeErrorZ_get_err(LDKCResult_ScoringParametersDecodeErrorZ *NONNULL_PTR owner);
2187 /* @internal */
2188 export function CResult_ScoringParametersDecodeErrorZ_get_err(owner: number): number {
2189         if(!isWasmInitialized) {
2190                 throw new Error("initializeWasm() must be awaited first!");
2191         }
2192         const nativeResponseValue = wasm.TS_CResult_ScoringParametersDecodeErrorZ_get_err(owner);
2193         return nativeResponseValue;
2194 }
2195         // struct LDKScorer *CResult_ScorerDecodeErrorZ_get_ok(LDKCResult_ScorerDecodeErrorZ *NONNULL_PTR owner);
2196 /* @internal */
2197 export function CResult_ScorerDecodeErrorZ_get_ok(owner: number): number {
2198         if(!isWasmInitialized) {
2199                 throw new Error("initializeWasm() must be awaited first!");
2200         }
2201         const nativeResponseValue = wasm.TS_CResult_ScorerDecodeErrorZ_get_ok(owner);
2202         return nativeResponseValue;
2203 }
2204         // struct LDKDecodeError CResult_ScorerDecodeErrorZ_get_err(LDKCResult_ScorerDecodeErrorZ *NONNULL_PTR owner);
2205 /* @internal */
2206 export function CResult_ScorerDecodeErrorZ_get_err(owner: number): number {
2207         if(!isWasmInitialized) {
2208                 throw new Error("initializeWasm() must be awaited first!");
2209         }
2210         const nativeResponseValue = wasm.TS_CResult_ScorerDecodeErrorZ_get_err(owner);
2211         return nativeResponseValue;
2212 }
2213         // struct LDKProbabilisticScorer *CResult_ProbabilisticScorerDecodeErrorZ_get_ok(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
2214 /* @internal */
2215 export function CResult_ProbabilisticScorerDecodeErrorZ_get_ok(owner: number): number {
2216         if(!isWasmInitialized) {
2217                 throw new Error("initializeWasm() must be awaited first!");
2218         }
2219         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_get_ok(owner);
2220         return nativeResponseValue;
2221 }
2222         // struct LDKDecodeError CResult_ProbabilisticScorerDecodeErrorZ_get_err(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
2223 /* @internal */
2224 export function CResult_ProbabilisticScorerDecodeErrorZ_get_err(owner: number): number {
2225         if(!isWasmInitialized) {
2226                 throw new Error("initializeWasm() must be awaited first!");
2227         }
2228         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_get_err(owner);
2229         return nativeResponseValue;
2230 }
2231         // struct LDKInitFeatures CResult_InitFeaturesDecodeErrorZ_get_ok(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
2232 /* @internal */
2233 export function CResult_InitFeaturesDecodeErrorZ_get_ok(owner: number): number {
2234         if(!isWasmInitialized) {
2235                 throw new Error("initializeWasm() must be awaited first!");
2236         }
2237         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_get_ok(owner);
2238         return nativeResponseValue;
2239 }
2240         // struct LDKDecodeError CResult_InitFeaturesDecodeErrorZ_get_err(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
2241 /* @internal */
2242 export function CResult_InitFeaturesDecodeErrorZ_get_err(owner: number): number {
2243         if(!isWasmInitialized) {
2244                 throw new Error("initializeWasm() must be awaited first!");
2245         }
2246         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_get_err(owner);
2247         return nativeResponseValue;
2248 }
2249         // struct LDKChannelFeatures CResult_ChannelFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
2250 /* @internal */
2251 export function CResult_ChannelFeaturesDecodeErrorZ_get_ok(owner: number): number {
2252         if(!isWasmInitialized) {
2253                 throw new Error("initializeWasm() must be awaited first!");
2254         }
2255         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_get_ok(owner);
2256         return nativeResponseValue;
2257 }
2258         // struct LDKDecodeError CResult_ChannelFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
2259 /* @internal */
2260 export function CResult_ChannelFeaturesDecodeErrorZ_get_err(owner: number): number {
2261         if(!isWasmInitialized) {
2262                 throw new Error("initializeWasm() must be awaited first!");
2263         }
2264         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_get_err(owner);
2265         return nativeResponseValue;
2266 }
2267         // struct LDKNodeFeatures CResult_NodeFeaturesDecodeErrorZ_get_ok(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2268 /* @internal */
2269 export function CResult_NodeFeaturesDecodeErrorZ_get_ok(owner: number): number {
2270         if(!isWasmInitialized) {
2271                 throw new Error("initializeWasm() must be awaited first!");
2272         }
2273         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_get_ok(owner);
2274         return nativeResponseValue;
2275 }
2276         // struct LDKDecodeError CResult_NodeFeaturesDecodeErrorZ_get_err(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2277 /* @internal */
2278 export function CResult_NodeFeaturesDecodeErrorZ_get_err(owner: number): number {
2279         if(!isWasmInitialized) {
2280                 throw new Error("initializeWasm() must be awaited first!");
2281         }
2282         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_get_err(owner);
2283         return nativeResponseValue;
2284 }
2285         // struct LDKInvoiceFeatures CResult_InvoiceFeaturesDecodeErrorZ_get_ok(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
2286 /* @internal */
2287 export function CResult_InvoiceFeaturesDecodeErrorZ_get_ok(owner: number): number {
2288         if(!isWasmInitialized) {
2289                 throw new Error("initializeWasm() must be awaited first!");
2290         }
2291         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_get_ok(owner);
2292         return nativeResponseValue;
2293 }
2294         // struct LDKDecodeError CResult_InvoiceFeaturesDecodeErrorZ_get_err(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
2295 /* @internal */
2296 export function CResult_InvoiceFeaturesDecodeErrorZ_get_err(owner: number): number {
2297         if(!isWasmInitialized) {
2298                 throw new Error("initializeWasm() must be awaited first!");
2299         }
2300         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_get_err(owner);
2301         return nativeResponseValue;
2302 }
2303         // struct LDKChannelTypeFeatures CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2304 /* @internal */
2305 export function CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(owner: number): number {
2306         if(!isWasmInitialized) {
2307                 throw new Error("initializeWasm() must be awaited first!");
2308         }
2309         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(owner);
2310         return nativeResponseValue;
2311 }
2312         // struct LDKDecodeError CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2313 /* @internal */
2314 export function CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(owner: number): number {
2315         if(!isWasmInitialized) {
2316                 throw new Error("initializeWasm() must be awaited first!");
2317         }
2318         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(owner);
2319         return nativeResponseValue;
2320 }
2321         // struct LDKDelayedPaymentOutputDescriptor CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2322 /* @internal */
2323 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(owner: number): number {
2324         if(!isWasmInitialized) {
2325                 throw new Error("initializeWasm() must be awaited first!");
2326         }
2327         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(owner);
2328         return nativeResponseValue;
2329 }
2330         // struct LDKDecodeError CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2331 /* @internal */
2332 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(owner: number): number {
2333         if(!isWasmInitialized) {
2334                 throw new Error("initializeWasm() must be awaited first!");
2335         }
2336         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(owner);
2337         return nativeResponseValue;
2338 }
2339         // struct LDKStaticPaymentOutputDescriptor CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2340 /* @internal */
2341 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(owner: number): number {
2342         if(!isWasmInitialized) {
2343                 throw new Error("initializeWasm() must be awaited first!");
2344         }
2345         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(owner);
2346         return nativeResponseValue;
2347 }
2348         // struct LDKDecodeError CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2349 /* @internal */
2350 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(owner: number): number {
2351         if(!isWasmInitialized) {
2352                 throw new Error("initializeWasm() must be awaited first!");
2353         }
2354         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(owner);
2355         return nativeResponseValue;
2356 }
2357         // struct LDKSpendableOutputDescriptor CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2358 /* @internal */
2359 export function CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(owner: number): number {
2360         if(!isWasmInitialized) {
2361                 throw new Error("initializeWasm() must be awaited first!");
2362         }
2363         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(owner);
2364         return nativeResponseValue;
2365 }
2366         // struct LDKDecodeError CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2367 /* @internal */
2368 export function CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(owner: number): number {
2369         if(!isWasmInitialized) {
2370                 throw new Error("initializeWasm() must be awaited first!");
2371         }
2372         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(owner);
2373         return nativeResponseValue;
2374 }
2375         // struct LDKSignature C2Tuple_SignatureCVec_SignatureZZ_get_a(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
2376 /* @internal */
2377 export function C2Tuple_SignatureCVec_SignatureZZ_get_a(owner: number): number {
2378         if(!isWasmInitialized) {
2379                 throw new Error("initializeWasm() must be awaited first!");
2380         }
2381         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_get_a(owner);
2382         return nativeResponseValue;
2383 }
2384         // struct LDKCVec_SignatureZ C2Tuple_SignatureCVec_SignatureZZ_get_b(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
2385 /* @internal */
2386 export function C2Tuple_SignatureCVec_SignatureZZ_get_b(owner: number): number {
2387         if(!isWasmInitialized) {
2388                 throw new Error("initializeWasm() must be awaited first!");
2389         }
2390         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_get_b(owner);
2391         return nativeResponseValue;
2392 }
2393         // struct LDKC2Tuple_SignatureCVec_SignatureZZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
2394 /* @internal */
2395 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(owner: number): number {
2396         if(!isWasmInitialized) {
2397                 throw new Error("initializeWasm() must be awaited first!");
2398         }
2399         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(owner);
2400         return nativeResponseValue;
2401 }
2402         // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
2403 /* @internal */
2404 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(owner: number): void {
2405         if(!isWasmInitialized) {
2406                 throw new Error("initializeWasm() must be awaited first!");
2407         }
2408         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(owner);
2409         // debug statements here
2410 }
2411         // struct LDKSignature CResult_SignatureNoneZ_get_ok(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
2412 /* @internal */
2413 export function CResult_SignatureNoneZ_get_ok(owner: number): number {
2414         if(!isWasmInitialized) {
2415                 throw new Error("initializeWasm() must be awaited first!");
2416         }
2417         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_get_ok(owner);
2418         return nativeResponseValue;
2419 }
2420         // void CResult_SignatureNoneZ_get_err(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
2421 /* @internal */
2422 export function CResult_SignatureNoneZ_get_err(owner: number): void {
2423         if(!isWasmInitialized) {
2424                 throw new Error("initializeWasm() must be awaited first!");
2425         }
2426         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_get_err(owner);
2427         // debug statements here
2428 }
2429         // struct LDKSignature C2Tuple_SignatureSignatureZ_get_a(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR owner);
2430 /* @internal */
2431 export function C2Tuple_SignatureSignatureZ_get_a(owner: number): number {
2432         if(!isWasmInitialized) {
2433                 throw new Error("initializeWasm() must be awaited first!");
2434         }
2435         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_get_a(owner);
2436         return nativeResponseValue;
2437 }
2438         // struct LDKSignature C2Tuple_SignatureSignatureZ_get_b(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR owner);
2439 /* @internal */
2440 export function C2Tuple_SignatureSignatureZ_get_b(owner: number): number {
2441         if(!isWasmInitialized) {
2442                 throw new Error("initializeWasm() must be awaited first!");
2443         }
2444         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_get_b(owner);
2445         return nativeResponseValue;
2446 }
2447         // struct LDKC2Tuple_SignatureSignatureZ CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR owner);
2448 /* @internal */
2449 export function CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(owner: number): number {
2450         if(!isWasmInitialized) {
2451                 throw new Error("initializeWasm() must be awaited first!");
2452         }
2453         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(owner);
2454         return nativeResponseValue;
2455 }
2456         // void CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR owner);
2457 /* @internal */
2458 export function CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(owner: number): void {
2459         if(!isWasmInitialized) {
2460                 throw new Error("initializeWasm() must be awaited first!");
2461         }
2462         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(owner);
2463         // debug statements here
2464 }
2465         // struct LDKSecretKey CResult_SecretKeyNoneZ_get_ok(LDKCResult_SecretKeyNoneZ *NONNULL_PTR owner);
2466 /* @internal */
2467 export function CResult_SecretKeyNoneZ_get_ok(owner: number): number {
2468         if(!isWasmInitialized) {
2469                 throw new Error("initializeWasm() must be awaited first!");
2470         }
2471         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_get_ok(owner);
2472         return nativeResponseValue;
2473 }
2474         // void CResult_SecretKeyNoneZ_get_err(LDKCResult_SecretKeyNoneZ *NONNULL_PTR owner);
2475 /* @internal */
2476 export function CResult_SecretKeyNoneZ_get_err(owner: number): void {
2477         if(!isWasmInitialized) {
2478                 throw new Error("initializeWasm() must be awaited first!");
2479         }
2480         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_get_err(owner);
2481         // debug statements here
2482 }
2483 /* @internal */
2484 export interface LDKBaseSign {
2485         get_per_commitment_point (idx: bigint): number;
2486         release_commitment_secret (idx: bigint): number;
2487         validate_holder_commitment (holder_tx: number, preimages: number): number;
2488         channel_keys_id (): number;
2489         sign_counterparty_commitment (commitment_tx: number, preimages: number): number;
2490         validate_counterparty_revocation (idx: bigint, secret: number): number;
2491         sign_holder_commitment_and_htlcs (commitment_tx: number): number;
2492         sign_justice_revoked_output (justice_tx: number, input: number, amount: bigint, per_commitment_key: number): number;
2493         sign_justice_revoked_htlc (justice_tx: number, input: number, amount: bigint, per_commitment_key: number, htlc: number): number;
2494         sign_counterparty_htlc_transaction (htlc_tx: number, input: number, amount: bigint, per_commitment_point: number, htlc: number): number;
2495         sign_closing_transaction (closing_tx: number): number;
2496         sign_channel_announcement (msg: number): number;
2497         ready_channel (channel_parameters: number): void;
2498 }
2499
2500 /* @internal */
2501 export function LDKBaseSign_new(impl: LDKBaseSign, pubkeys: number): number {
2502         if(!isWasmInitialized) {
2503                 throw new Error("initializeWasm() must be awaited first!");
2504         }
2505         var new_obj_idx = js_objs.length;
2506         for (var i = 0; i < js_objs.length; i++) {
2507                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
2508         }
2509         js_objs[i] = new WeakRef(impl);
2510         return wasm.TS_LDKBaseSign_new(i);
2511 }
2512         // LDKPublicKey BaseSign_get_per_commitment_point LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx
2513 /* @internal */
2514 export function BaseSign_get_per_commitment_point(this_arg: number, idx: bigint): number {
2515         if(!isWasmInitialized) {
2516                 throw new Error("initializeWasm() must be awaited first!");
2517         }
2518         const nativeResponseValue = wasm.TS_BaseSign_get_per_commitment_point(this_arg, idx);
2519         return nativeResponseValue;
2520 }
2521         // LDKThirtyTwoBytes BaseSign_release_commitment_secret LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx
2522 /* @internal */
2523 export function BaseSign_release_commitment_secret(this_arg: number, idx: bigint): number {
2524         if(!isWasmInitialized) {
2525                 throw new Error("initializeWasm() must be awaited first!");
2526         }
2527         const nativeResponseValue = wasm.TS_BaseSign_release_commitment_secret(this_arg, idx);
2528         return nativeResponseValue;
2529 }
2530         // LDKCResult_NoneNoneZ BaseSign_validate_holder_commitment LDKBaseSign *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR holder_tx, struct LDKCVec_PaymentPreimageZ preimages
2531 /* @internal */
2532 export function BaseSign_validate_holder_commitment(this_arg: number, holder_tx: number, preimages: number): number {
2533         if(!isWasmInitialized) {
2534                 throw new Error("initializeWasm() must be awaited first!");
2535         }
2536         const nativeResponseValue = wasm.TS_BaseSign_validate_holder_commitment(this_arg, holder_tx, preimages);
2537         return nativeResponseValue;
2538 }
2539         // LDKThirtyTwoBytes BaseSign_channel_keys_id LDKBaseSign *NONNULL_PTR this_arg
2540 /* @internal */
2541 export function BaseSign_channel_keys_id(this_arg: number): number {
2542         if(!isWasmInitialized) {
2543                 throw new Error("initializeWasm() must be awaited first!");
2544         }
2545         const nativeResponseValue = wasm.TS_BaseSign_channel_keys_id(this_arg);
2546         return nativeResponseValue;
2547 }
2548         // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ BaseSign_sign_counterparty_commitment LDKBaseSign *NONNULL_PTR this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx, struct LDKCVec_PaymentPreimageZ preimages
2549 /* @internal */
2550 export function BaseSign_sign_counterparty_commitment(this_arg: number, commitment_tx: number, preimages: number): number {
2551         if(!isWasmInitialized) {
2552                 throw new Error("initializeWasm() must be awaited first!");
2553         }
2554         const nativeResponseValue = wasm.TS_BaseSign_sign_counterparty_commitment(this_arg, commitment_tx, preimages);
2555         return nativeResponseValue;
2556 }
2557         // LDKCResult_NoneNoneZ BaseSign_validate_counterparty_revocation LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx, const uint8_t (*secret)[32]
2558 /* @internal */
2559 export function BaseSign_validate_counterparty_revocation(this_arg: number, idx: bigint, secret: number): number {
2560         if(!isWasmInitialized) {
2561                 throw new Error("initializeWasm() must be awaited first!");
2562         }
2563         const nativeResponseValue = wasm.TS_BaseSign_validate_counterparty_revocation(this_arg, idx, secret);
2564         return nativeResponseValue;
2565 }
2566         // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ BaseSign_sign_holder_commitment_and_htlcs LDKBaseSign *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx
2567 /* @internal */
2568 export function BaseSign_sign_holder_commitment_and_htlcs(this_arg: number, commitment_tx: number): number {
2569         if(!isWasmInitialized) {
2570                 throw new Error("initializeWasm() must be awaited first!");
2571         }
2572         const nativeResponseValue = wasm.TS_BaseSign_sign_holder_commitment_and_htlcs(this_arg, commitment_tx);
2573         return nativeResponseValue;
2574 }
2575         // 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]
2576 /* @internal */
2577 export function BaseSign_sign_justice_revoked_output(this_arg: number, justice_tx: number, input: number, amount: bigint, per_commitment_key: number): number {
2578         if(!isWasmInitialized) {
2579                 throw new Error("initializeWasm() must be awaited first!");
2580         }
2581         const nativeResponseValue = wasm.TS_BaseSign_sign_justice_revoked_output(this_arg, justice_tx, input, amount, per_commitment_key);
2582         return nativeResponseValue;
2583 }
2584         // 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
2585 /* @internal */
2586 export function BaseSign_sign_justice_revoked_htlc(this_arg: number, justice_tx: number, input: number, amount: bigint, per_commitment_key: number, htlc: number): number {
2587         if(!isWasmInitialized) {
2588                 throw new Error("initializeWasm() must be awaited first!");
2589         }
2590         const nativeResponseValue = wasm.TS_BaseSign_sign_justice_revoked_htlc(this_arg, justice_tx, input, amount, per_commitment_key, htlc);
2591         return nativeResponseValue;
2592 }
2593         // 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
2594 /* @internal */
2595 export function BaseSign_sign_counterparty_htlc_transaction(this_arg: number, htlc_tx: number, input: number, amount: bigint, per_commitment_point: number, htlc: number): number {
2596         if(!isWasmInitialized) {
2597                 throw new Error("initializeWasm() must be awaited first!");
2598         }
2599         const nativeResponseValue = wasm.TS_BaseSign_sign_counterparty_htlc_transaction(this_arg, htlc_tx, input, amount, per_commitment_point, htlc);
2600         return nativeResponseValue;
2601 }
2602         // LDKCResult_SignatureNoneZ BaseSign_sign_closing_transaction LDKBaseSign *NONNULL_PTR this_arg, const struct LDKClosingTransaction *NONNULL_PTR closing_tx
2603 /* @internal */
2604 export function BaseSign_sign_closing_transaction(this_arg: number, closing_tx: number): number {
2605         if(!isWasmInitialized) {
2606                 throw new Error("initializeWasm() must be awaited first!");
2607         }
2608         const nativeResponseValue = wasm.TS_BaseSign_sign_closing_transaction(this_arg, closing_tx);
2609         return nativeResponseValue;
2610 }
2611         // LDKCResult_C2Tuple_SignatureSignatureZNoneZ BaseSign_sign_channel_announcement LDKBaseSign *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg
2612 /* @internal */
2613 export function BaseSign_sign_channel_announcement(this_arg: number, msg: number): number {
2614         if(!isWasmInitialized) {
2615                 throw new Error("initializeWasm() must be awaited first!");
2616         }
2617         const nativeResponseValue = wasm.TS_BaseSign_sign_channel_announcement(this_arg, msg);
2618         return nativeResponseValue;
2619 }
2620         // void BaseSign_ready_channel LDKBaseSign *NONNULL_PTR this_arg, const struct LDKChannelTransactionParameters *NONNULL_PTR channel_parameters
2621 /* @internal */
2622 export function BaseSign_ready_channel(this_arg: number, channel_parameters: number): void {
2623         if(!isWasmInitialized) {
2624                 throw new Error("initializeWasm() must be awaited first!");
2625         }
2626         const nativeResponseValue = wasm.TS_BaseSign_ready_channel(this_arg, channel_parameters);
2627         // debug statements here
2628 }
2629         // LDKChannelPublicKeys BaseSign_get_pubkeys LDKBaseSign *NONNULL_PTR this_arg
2630 /* @internal */
2631 export function BaseSign_get_pubkeys(this_arg: number): number {
2632         if(!isWasmInitialized) {
2633                 throw new Error("initializeWasm() must be awaited first!");
2634         }
2635         const nativeResponseValue = wasm.TS_BaseSign_get_pubkeys(this_arg);
2636         return nativeResponseValue;
2637 }
2638 /* @internal */
2639 export interface LDKSign {
2640         write (): number;
2641 }
2642
2643 /* @internal */
2644 export function LDKSign_new(impl: LDKSign, BaseSign: LDKBaseSign, pubkeys: number): number {
2645         if(!isWasmInitialized) {
2646                 throw new Error("initializeWasm() must be awaited first!");
2647         }
2648         var new_obj_idx = js_objs.length;
2649         for (var i = 0; i < js_objs.length; i++) {
2650                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
2651         }
2652         js_objs[i] = new WeakRef(impl);
2653         return wasm.TS_LDKSign_new(i);
2654 }
2655         // LDKCVec_u8Z Sign_write LDKSign *NONNULL_PTR this_arg
2656 /* @internal */
2657 export function Sign_write(this_arg: number): number {
2658         if(!isWasmInitialized) {
2659                 throw new Error("initializeWasm() must be awaited first!");
2660         }
2661         const nativeResponseValue = wasm.TS_Sign_write(this_arg);
2662         return nativeResponseValue;
2663 }
2664         // struct LDKSign CResult_SignDecodeErrorZ_get_ok(LDKCResult_SignDecodeErrorZ *NONNULL_PTR owner);
2665 /* @internal */
2666 export function CResult_SignDecodeErrorZ_get_ok(owner: number): number {
2667         if(!isWasmInitialized) {
2668                 throw new Error("initializeWasm() must be awaited first!");
2669         }
2670         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_get_ok(owner);
2671         return nativeResponseValue;
2672 }
2673         // struct LDKDecodeError CResult_SignDecodeErrorZ_get_err(LDKCResult_SignDecodeErrorZ *NONNULL_PTR owner);
2674 /* @internal */
2675 export function CResult_SignDecodeErrorZ_get_err(owner: number): number {
2676         if(!isWasmInitialized) {
2677                 throw new Error("initializeWasm() must be awaited first!");
2678         }
2679         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_get_err(owner);
2680         return nativeResponseValue;
2681 }
2682         // struct LDKRecoverableSignature CResult_RecoverableSignatureNoneZ_get_ok(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
2683 /* @internal */
2684 export function CResult_RecoverableSignatureNoneZ_get_ok(owner: number): number {
2685         if(!isWasmInitialized) {
2686                 throw new Error("initializeWasm() must be awaited first!");
2687         }
2688         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_get_ok(owner);
2689         return nativeResponseValue;
2690 }
2691         // void CResult_RecoverableSignatureNoneZ_get_err(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
2692 /* @internal */
2693 export function CResult_RecoverableSignatureNoneZ_get_err(owner: number): void {
2694         if(!isWasmInitialized) {
2695                 throw new Error("initializeWasm() must be awaited first!");
2696         }
2697         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_get_err(owner);
2698         // debug statements here
2699 }
2700         // struct LDKCVec_CVec_u8ZZ CResult_CVec_CVec_u8ZZNoneZ_get_ok(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
2701 /* @internal */
2702 export function CResult_CVec_CVec_u8ZZNoneZ_get_ok(owner: number): number {
2703         if(!isWasmInitialized) {
2704                 throw new Error("initializeWasm() must be awaited first!");
2705         }
2706         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_get_ok(owner);
2707         return nativeResponseValue;
2708 }
2709         // void CResult_CVec_CVec_u8ZZNoneZ_get_err(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
2710 /* @internal */
2711 export function CResult_CVec_CVec_u8ZZNoneZ_get_err(owner: number): void {
2712         if(!isWasmInitialized) {
2713                 throw new Error("initializeWasm() must be awaited first!");
2714         }
2715         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_get_err(owner);
2716         // debug statements here
2717 }
2718         // struct LDKInMemorySigner CResult_InMemorySignerDecodeErrorZ_get_ok(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
2719 /* @internal */
2720 export function CResult_InMemorySignerDecodeErrorZ_get_ok(owner: number): number {
2721         if(!isWasmInitialized) {
2722                 throw new Error("initializeWasm() must be awaited first!");
2723         }
2724         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_get_ok(owner);
2725         return nativeResponseValue;
2726 }
2727         // struct LDKDecodeError CResult_InMemorySignerDecodeErrorZ_get_err(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
2728 /* @internal */
2729 export function CResult_InMemorySignerDecodeErrorZ_get_err(owner: number): number {
2730         if(!isWasmInitialized) {
2731                 throw new Error("initializeWasm() must be awaited first!");
2732         }
2733         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_get_err(owner);
2734         return nativeResponseValue;
2735 }
2736         // struct LDKTransaction CResult_TransactionNoneZ_get_ok(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
2737 /* @internal */
2738 export function CResult_TransactionNoneZ_get_ok(owner: number): number {
2739         if(!isWasmInitialized) {
2740                 throw new Error("initializeWasm() must be awaited first!");
2741         }
2742         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_get_ok(owner);
2743         return nativeResponseValue;
2744 }
2745         // void CResult_TransactionNoneZ_get_err(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
2746 /* @internal */
2747 export function CResult_TransactionNoneZ_get_err(owner: number): void {
2748         if(!isWasmInitialized) {
2749                 throw new Error("initializeWasm() must be awaited first!");
2750         }
2751         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_get_err(owner);
2752         // debug statements here
2753 }
2754 /* @internal */
2755 export class LDKCOption_u16Z {
2756         protected constructor() {}
2757 }
2758 /* @internal */
2759 export function LDKCOption_u16Z_ty_from_ptr(ptr: number): number {
2760         if(!isWasmInitialized) {
2761                 throw new Error("initializeWasm() must be awaited first!");
2762         }
2763         const nativeResponseValue = wasm.TS_LDKCOption_u16Z_ty_from_ptr(ptr);
2764         return nativeResponseValue;
2765 }
2766 /* @internal */
2767 export function LDKCOption_u16Z_Some_get_some(ptr: number): number {
2768         if(!isWasmInitialized) {
2769                 throw new Error("initializeWasm() must be awaited first!");
2770         }
2771         const nativeResponseValue = wasm.TS_LDKCOption_u16Z_Some_get_some(ptr);
2772         return nativeResponseValue;
2773 }
2774 /* @internal */
2775 export class LDKAPIError {
2776         protected constructor() {}
2777 }
2778 /* @internal */
2779 export function LDKAPIError_ty_from_ptr(ptr: number): number {
2780         if(!isWasmInitialized) {
2781                 throw new Error("initializeWasm() must be awaited first!");
2782         }
2783         const nativeResponseValue = wasm.TS_LDKAPIError_ty_from_ptr(ptr);
2784         return nativeResponseValue;
2785 }
2786 /* @internal */
2787 export function LDKAPIError_APIMisuseError_get_err(ptr: number): number {
2788         if(!isWasmInitialized) {
2789                 throw new Error("initializeWasm() must be awaited first!");
2790         }
2791         const nativeResponseValue = wasm.TS_LDKAPIError_APIMisuseError_get_err(ptr);
2792         return nativeResponseValue;
2793 }
2794 /* @internal */
2795 export function LDKAPIError_FeeRateTooHigh_get_err(ptr: number): number {
2796         if(!isWasmInitialized) {
2797                 throw new Error("initializeWasm() must be awaited first!");
2798         }
2799         const nativeResponseValue = wasm.TS_LDKAPIError_FeeRateTooHigh_get_err(ptr);
2800         return nativeResponseValue;
2801 }
2802 /* @internal */
2803 export function LDKAPIError_FeeRateTooHigh_get_feerate(ptr: number): number {
2804         if(!isWasmInitialized) {
2805                 throw new Error("initializeWasm() must be awaited first!");
2806         }
2807         const nativeResponseValue = wasm.TS_LDKAPIError_FeeRateTooHigh_get_feerate(ptr);
2808         return nativeResponseValue;
2809 }
2810 /* @internal */
2811 export function LDKAPIError_RouteError_get_err(ptr: number): number {
2812         if(!isWasmInitialized) {
2813                 throw new Error("initializeWasm() must be awaited first!");
2814         }
2815         const nativeResponseValue = wasm.TS_LDKAPIError_RouteError_get_err(ptr);
2816         return nativeResponseValue;
2817 }
2818 /* @internal */
2819 export function LDKAPIError_ChannelUnavailable_get_err(ptr: number): number {
2820         if(!isWasmInitialized) {
2821                 throw new Error("initializeWasm() must be awaited first!");
2822         }
2823         const nativeResponseValue = wasm.TS_LDKAPIError_ChannelUnavailable_get_err(ptr);
2824         return nativeResponseValue;
2825 }
2826 /* @internal */
2827 export function LDKAPIError_IncompatibleShutdownScript_get_script(ptr: number): number {
2828         if(!isWasmInitialized) {
2829                 throw new Error("initializeWasm() must be awaited first!");
2830         }
2831         const nativeResponseValue = wasm.TS_LDKAPIError_IncompatibleShutdownScript_get_script(ptr);
2832         return nativeResponseValue;
2833 }
2834         // void CResult_NoneAPIErrorZ_get_ok(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
2835 /* @internal */
2836 export function CResult_NoneAPIErrorZ_get_ok(owner: number): void {
2837         if(!isWasmInitialized) {
2838                 throw new Error("initializeWasm() must be awaited first!");
2839         }
2840         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_get_ok(owner);
2841         // debug statements here
2842 }
2843         // struct LDKAPIError CResult_NoneAPIErrorZ_get_err(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
2844 /* @internal */
2845 export function CResult_NoneAPIErrorZ_get_err(owner: number): number {
2846         if(!isWasmInitialized) {
2847                 throw new Error("initializeWasm() must be awaited first!");
2848         }
2849         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_get_err(owner);
2850         return nativeResponseValue;
2851 }
2852         // struct LDKThirtyTwoBytes CResult__u832APIErrorZ_get_ok(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
2853 /* @internal */
2854 export function CResult__u832APIErrorZ_get_ok(owner: number): number {
2855         if(!isWasmInitialized) {
2856                 throw new Error("initializeWasm() must be awaited first!");
2857         }
2858         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_get_ok(owner);
2859         return nativeResponseValue;
2860 }
2861         // struct LDKAPIError CResult__u832APIErrorZ_get_err(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
2862 /* @internal */
2863 export function CResult__u832APIErrorZ_get_err(owner: number): number {
2864         if(!isWasmInitialized) {
2865                 throw new Error("initializeWasm() must be awaited first!");
2866         }
2867         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_get_err(owner);
2868         return nativeResponseValue;
2869 }
2870 /* @internal */
2871 export class LDKPaymentSendFailure {
2872         protected constructor() {}
2873 }
2874 /* @internal */
2875 export function LDKPaymentSendFailure_ty_from_ptr(ptr: number): number {
2876         if(!isWasmInitialized) {
2877                 throw new Error("initializeWasm() must be awaited first!");
2878         }
2879         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_ty_from_ptr(ptr);
2880         return nativeResponseValue;
2881 }
2882 /* @internal */
2883 export function LDKPaymentSendFailure_ParameterError_get_parameter_error(ptr: number): number {
2884         if(!isWasmInitialized) {
2885                 throw new Error("initializeWasm() must be awaited first!");
2886         }
2887         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_ParameterError_get_parameter_error(ptr);
2888         return nativeResponseValue;
2889 }
2890 /* @internal */
2891 export function LDKPaymentSendFailure_PathParameterError_get_path_parameter_error(ptr: number): number {
2892         if(!isWasmInitialized) {
2893                 throw new Error("initializeWasm() must be awaited first!");
2894         }
2895         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PathParameterError_get_path_parameter_error(ptr);
2896         return nativeResponseValue;
2897 }
2898 /* @internal */
2899 export function LDKPaymentSendFailure_AllFailedRetrySafe_get_all_failed_retry_safe(ptr: number): number {
2900         if(!isWasmInitialized) {
2901                 throw new Error("initializeWasm() must be awaited first!");
2902         }
2903         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_AllFailedRetrySafe_get_all_failed_retry_safe(ptr);
2904         return nativeResponseValue;
2905 }
2906 /* @internal */
2907 export function LDKPaymentSendFailure_PartialFailure_get_results(ptr: number): number {
2908         if(!isWasmInitialized) {
2909                 throw new Error("initializeWasm() must be awaited first!");
2910         }
2911         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_results(ptr);
2912         return nativeResponseValue;
2913 }
2914 /* @internal */
2915 export function LDKPaymentSendFailure_PartialFailure_get_failed_paths_retry(ptr: number): number {
2916         if(!isWasmInitialized) {
2917                 throw new Error("initializeWasm() must be awaited first!");
2918         }
2919         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_failed_paths_retry(ptr);
2920         return nativeResponseValue;
2921 }
2922 /* @internal */
2923 export function LDKPaymentSendFailure_PartialFailure_get_payment_id(ptr: number): number {
2924         if(!isWasmInitialized) {
2925                 throw new Error("initializeWasm() must be awaited first!");
2926         }
2927         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_payment_id(ptr);
2928         return nativeResponseValue;
2929 }
2930         // struct LDKThirtyTwoBytes CResult_PaymentIdPaymentSendFailureZ_get_ok(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR owner);
2931 /* @internal */
2932 export function CResult_PaymentIdPaymentSendFailureZ_get_ok(owner: number): number {
2933         if(!isWasmInitialized) {
2934                 throw new Error("initializeWasm() must be awaited first!");
2935         }
2936         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_get_ok(owner);
2937         return nativeResponseValue;
2938 }
2939         // struct LDKPaymentSendFailure CResult_PaymentIdPaymentSendFailureZ_get_err(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR owner);
2940 /* @internal */
2941 export function CResult_PaymentIdPaymentSendFailureZ_get_err(owner: number): number {
2942         if(!isWasmInitialized) {
2943                 throw new Error("initializeWasm() must be awaited first!");
2944         }
2945         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_get_err(owner);
2946         return nativeResponseValue;
2947 }
2948         // void CResult_NonePaymentSendFailureZ_get_ok(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
2949 /* @internal */
2950 export function CResult_NonePaymentSendFailureZ_get_ok(owner: number): void {
2951         if(!isWasmInitialized) {
2952                 throw new Error("initializeWasm() must be awaited first!");
2953         }
2954         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_get_ok(owner);
2955         // debug statements here
2956 }
2957         // struct LDKPaymentSendFailure CResult_NonePaymentSendFailureZ_get_err(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
2958 /* @internal */
2959 export function CResult_NonePaymentSendFailureZ_get_err(owner: number): number {
2960         if(!isWasmInitialized) {
2961                 throw new Error("initializeWasm() must be awaited first!");
2962         }
2963         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_get_err(owner);
2964         return nativeResponseValue;
2965 }
2966         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_a(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
2967 /* @internal */
2968 export function C2Tuple_PaymentHashPaymentIdZ_get_a(owner: number): number {
2969         if(!isWasmInitialized) {
2970                 throw new Error("initializeWasm() must be awaited first!");
2971         }
2972         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_get_a(owner);
2973         return nativeResponseValue;
2974 }
2975         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_b(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
2976 /* @internal */
2977 export function C2Tuple_PaymentHashPaymentIdZ_get_b(owner: number): number {
2978         if(!isWasmInitialized) {
2979                 throw new Error("initializeWasm() must be awaited first!");
2980         }
2981         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_get_b(owner);
2982         return nativeResponseValue;
2983 }
2984         // struct LDKC2Tuple_PaymentHashPaymentIdZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
2985 /* @internal */
2986 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(owner: number): number {
2987         if(!isWasmInitialized) {
2988                 throw new Error("initializeWasm() must be awaited first!");
2989         }
2990         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(owner);
2991         return nativeResponseValue;
2992 }
2993         // struct LDKPaymentSendFailure CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
2994 /* @internal */
2995 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(owner: number): number {
2996         if(!isWasmInitialized) {
2997                 throw new Error("initializeWasm() must be awaited first!");
2998         }
2999         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(owner);
3000         return nativeResponseValue;
3001 }
3002 /* @internal */
3003 export class LDKNetAddress {
3004         protected constructor() {}
3005 }
3006 /* @internal */
3007 export function LDKNetAddress_ty_from_ptr(ptr: number): number {
3008         if(!isWasmInitialized) {
3009                 throw new Error("initializeWasm() must be awaited first!");
3010         }
3011         const nativeResponseValue = wasm.TS_LDKNetAddress_ty_from_ptr(ptr);
3012         return nativeResponseValue;
3013 }
3014 /* @internal */
3015 export function LDKNetAddress_IPv4_get_addr(ptr: number): number {
3016         if(!isWasmInitialized) {
3017                 throw new Error("initializeWasm() must be awaited first!");
3018         }
3019         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv4_get_addr(ptr);
3020         return nativeResponseValue;
3021 }
3022 /* @internal */
3023 export function LDKNetAddress_IPv4_get_port(ptr: number): number {
3024         if(!isWasmInitialized) {
3025                 throw new Error("initializeWasm() must be awaited first!");
3026         }
3027         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv4_get_port(ptr);
3028         return nativeResponseValue;
3029 }
3030 /* @internal */
3031 export function LDKNetAddress_IPv6_get_addr(ptr: number): number {
3032         if(!isWasmInitialized) {
3033                 throw new Error("initializeWasm() must be awaited first!");
3034         }
3035         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv6_get_addr(ptr);
3036         return nativeResponseValue;
3037 }
3038 /* @internal */
3039 export function LDKNetAddress_IPv6_get_port(ptr: number): number {
3040         if(!isWasmInitialized) {
3041                 throw new Error("initializeWasm() must be awaited first!");
3042         }
3043         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv6_get_port(ptr);
3044         return nativeResponseValue;
3045 }
3046 /* @internal */
3047 export function LDKNetAddress_OnionV2_get_onion_v2(ptr: number): number {
3048         if(!isWasmInitialized) {
3049                 throw new Error("initializeWasm() must be awaited first!");
3050         }
3051         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV2_get_onion_v2(ptr);
3052         return nativeResponseValue;
3053 }
3054 /* @internal */
3055 export function LDKNetAddress_OnionV3_get_ed25519_pubkey(ptr: number): number {
3056         if(!isWasmInitialized) {
3057                 throw new Error("initializeWasm() must be awaited first!");
3058         }
3059         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_ed25519_pubkey(ptr);
3060         return nativeResponseValue;
3061 }
3062 /* @internal */
3063 export function LDKNetAddress_OnionV3_get_checksum(ptr: number): number {
3064         if(!isWasmInitialized) {
3065                 throw new Error("initializeWasm() must be awaited first!");
3066         }
3067         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_checksum(ptr);
3068         return nativeResponseValue;
3069 }
3070 /* @internal */
3071 export function LDKNetAddress_OnionV3_get_version(ptr: number): number {
3072         if(!isWasmInitialized) {
3073                 throw new Error("initializeWasm() must be awaited first!");
3074         }
3075         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_version(ptr);
3076         return nativeResponseValue;
3077 }
3078 /* @internal */
3079 export function LDKNetAddress_OnionV3_get_port(ptr: number): number {
3080         if(!isWasmInitialized) {
3081                 throw new Error("initializeWasm() must be awaited first!");
3082         }
3083         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_port(ptr);
3084         return nativeResponseValue;
3085 }
3086         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_a(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
3087 /* @internal */
3088 export function C2Tuple_PaymentHashPaymentSecretZ_get_a(owner: number): number {
3089         if(!isWasmInitialized) {
3090                 throw new Error("initializeWasm() must be awaited first!");
3091         }
3092         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_get_a(owner);
3093         return nativeResponseValue;
3094 }
3095         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_b(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
3096 /* @internal */
3097 export function C2Tuple_PaymentHashPaymentSecretZ_get_b(owner: number): number {
3098         if(!isWasmInitialized) {
3099                 throw new Error("initializeWasm() must be awaited first!");
3100         }
3101         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_get_b(owner);
3102         return nativeResponseValue;
3103 }
3104         // struct LDKC2Tuple_PaymentHashPaymentSecretZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
3105 /* @internal */
3106 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(owner: number): number {
3107         if(!isWasmInitialized) {
3108                 throw new Error("initializeWasm() must be awaited first!");
3109         }
3110         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(owner);
3111         return nativeResponseValue;
3112 }
3113         // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
3114 /* @internal */
3115 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(owner: number): void {
3116         if(!isWasmInitialized) {
3117                 throw new Error("initializeWasm() must be awaited first!");
3118         }
3119         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(owner);
3120         // debug statements here
3121 }
3122         // struct LDKC2Tuple_PaymentHashPaymentSecretZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR owner);
3123 /* @internal */
3124 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(owner: number): number {
3125         if(!isWasmInitialized) {
3126                 throw new Error("initializeWasm() must be awaited first!");
3127         }
3128         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(owner);
3129         return nativeResponseValue;
3130 }
3131         // struct LDKAPIError CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR owner);
3132 /* @internal */
3133 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(owner: number): number {
3134         if(!isWasmInitialized) {
3135                 throw new Error("initializeWasm() must be awaited first!");
3136         }
3137         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(owner);
3138         return nativeResponseValue;
3139 }
3140         // struct LDKThirtyTwoBytes CResult_PaymentSecretNoneZ_get_ok(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
3141 /* @internal */
3142 export function CResult_PaymentSecretNoneZ_get_ok(owner: number): number {
3143         if(!isWasmInitialized) {
3144                 throw new Error("initializeWasm() must be awaited first!");
3145         }
3146         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_get_ok(owner);
3147         return nativeResponseValue;
3148 }
3149         // void CResult_PaymentSecretNoneZ_get_err(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
3150 /* @internal */
3151 export function CResult_PaymentSecretNoneZ_get_err(owner: number): void {
3152         if(!isWasmInitialized) {
3153                 throw new Error("initializeWasm() must be awaited first!");
3154         }
3155         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_get_err(owner);
3156         // debug statements here
3157 }
3158         // struct LDKThirtyTwoBytes CResult_PaymentSecretAPIErrorZ_get_ok(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR owner);
3159 /* @internal */
3160 export function CResult_PaymentSecretAPIErrorZ_get_ok(owner: number): number {
3161         if(!isWasmInitialized) {
3162                 throw new Error("initializeWasm() must be awaited first!");
3163         }
3164         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_get_ok(owner);
3165         return nativeResponseValue;
3166 }
3167         // struct LDKAPIError CResult_PaymentSecretAPIErrorZ_get_err(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR owner);
3168 /* @internal */
3169 export function CResult_PaymentSecretAPIErrorZ_get_err(owner: number): number {
3170         if(!isWasmInitialized) {
3171                 throw new Error("initializeWasm() must be awaited first!");
3172         }
3173         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_get_err(owner);
3174         return nativeResponseValue;
3175 }
3176         // struct LDKThirtyTwoBytes CResult_PaymentPreimageAPIErrorZ_get_ok(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
3177 /* @internal */
3178 export function CResult_PaymentPreimageAPIErrorZ_get_ok(owner: number): number {
3179         if(!isWasmInitialized) {
3180                 throw new Error("initializeWasm() must be awaited first!");
3181         }
3182         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_get_ok(owner);
3183         return nativeResponseValue;
3184 }
3185         // struct LDKAPIError CResult_PaymentPreimageAPIErrorZ_get_err(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
3186 /* @internal */
3187 export function CResult_PaymentPreimageAPIErrorZ_get_err(owner: number): number {
3188         if(!isWasmInitialized) {
3189                 throw new Error("initializeWasm() must be awaited first!");
3190         }
3191         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_get_err(owner);
3192         return nativeResponseValue;
3193 }
3194         // struct LDKCounterpartyForwardingInfo CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
3195 /* @internal */
3196 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(owner: number): number {
3197         if(!isWasmInitialized) {
3198                 throw new Error("initializeWasm() must be awaited first!");
3199         }
3200         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(owner);
3201         return nativeResponseValue;
3202 }
3203         // struct LDKDecodeError CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
3204 /* @internal */
3205 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(owner: number): number {
3206         if(!isWasmInitialized) {
3207                 throw new Error("initializeWasm() must be awaited first!");
3208         }
3209         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(owner);
3210         return nativeResponseValue;
3211 }
3212         // struct LDKChannelCounterparty CResult_ChannelCounterpartyDecodeErrorZ_get_ok(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
3213 /* @internal */
3214 export function CResult_ChannelCounterpartyDecodeErrorZ_get_ok(owner: number): number {
3215         if(!isWasmInitialized) {
3216                 throw new Error("initializeWasm() must be awaited first!");
3217         }
3218         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_get_ok(owner);
3219         return nativeResponseValue;
3220 }
3221         // struct LDKDecodeError CResult_ChannelCounterpartyDecodeErrorZ_get_err(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
3222 /* @internal */
3223 export function CResult_ChannelCounterpartyDecodeErrorZ_get_err(owner: number): number {
3224         if(!isWasmInitialized) {
3225                 throw new Error("initializeWasm() must be awaited first!");
3226         }
3227         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_get_err(owner);
3228         return nativeResponseValue;
3229 }
3230         // struct LDKChannelDetails CResult_ChannelDetailsDecodeErrorZ_get_ok(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
3231 /* @internal */
3232 export function CResult_ChannelDetailsDecodeErrorZ_get_ok(owner: number): number {
3233         if(!isWasmInitialized) {
3234                 throw new Error("initializeWasm() must be awaited first!");
3235         }
3236         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_get_ok(owner);
3237         return nativeResponseValue;
3238 }
3239         // struct LDKDecodeError CResult_ChannelDetailsDecodeErrorZ_get_err(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
3240 /* @internal */
3241 export function CResult_ChannelDetailsDecodeErrorZ_get_err(owner: number): number {
3242         if(!isWasmInitialized) {
3243                 throw new Error("initializeWasm() must be awaited first!");
3244         }
3245         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_get_err(owner);
3246         return nativeResponseValue;
3247 }
3248         // struct LDKPhantomRouteHints CResult_PhantomRouteHintsDecodeErrorZ_get_ok(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
3249 /* @internal */
3250 export function CResult_PhantomRouteHintsDecodeErrorZ_get_ok(owner: number): number {
3251         if(!isWasmInitialized) {
3252                 throw new Error("initializeWasm() must be awaited first!");
3253         }
3254         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_get_ok(owner);
3255         return nativeResponseValue;
3256 }
3257         // struct LDKDecodeError CResult_PhantomRouteHintsDecodeErrorZ_get_err(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
3258 /* @internal */
3259 export function CResult_PhantomRouteHintsDecodeErrorZ_get_err(owner: number): number {
3260         if(!isWasmInitialized) {
3261                 throw new Error("initializeWasm() must be awaited first!");
3262         }
3263         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_get_err(owner);
3264         return nativeResponseValue;
3265 }
3266 /* @internal */
3267 export interface LDKWatch {
3268         watch_channel (funding_txo: number, monitor: number): number;
3269         update_channel (funding_txo: number, update: number): number;
3270         release_pending_monitor_events (): number;
3271 }
3272
3273 /* @internal */
3274 export function LDKWatch_new(impl: LDKWatch): number {
3275         if(!isWasmInitialized) {
3276                 throw new Error("initializeWasm() must be awaited first!");
3277         }
3278         var new_obj_idx = js_objs.length;
3279         for (var i = 0; i < js_objs.length; i++) {
3280                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3281         }
3282         js_objs[i] = new WeakRef(impl);
3283         return wasm.TS_LDKWatch_new(i);
3284 }
3285         // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_watch_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor
3286 /* @internal */
3287 export function Watch_watch_channel(this_arg: number, funding_txo: number, monitor: number): number {
3288         if(!isWasmInitialized) {
3289                 throw new Error("initializeWasm() must be awaited first!");
3290         }
3291         const nativeResponseValue = wasm.TS_Watch_watch_channel(this_arg, funding_txo, monitor);
3292         return nativeResponseValue;
3293 }
3294         // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_update_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitorUpdate update
3295 /* @internal */
3296 export function Watch_update_channel(this_arg: number, funding_txo: number, update: number): number {
3297         if(!isWasmInitialized) {
3298                 throw new Error("initializeWasm() must be awaited first!");
3299         }
3300         const nativeResponseValue = wasm.TS_Watch_update_channel(this_arg, funding_txo, update);
3301         return nativeResponseValue;
3302 }
3303         // LDKCVec_MonitorEventZ Watch_release_pending_monitor_events LDKWatch *NONNULL_PTR this_arg
3304 /* @internal */
3305 export function Watch_release_pending_monitor_events(this_arg: number): number {
3306         if(!isWasmInitialized) {
3307                 throw new Error("initializeWasm() must be awaited first!");
3308         }
3309         const nativeResponseValue = wasm.TS_Watch_release_pending_monitor_events(this_arg);
3310         return nativeResponseValue;
3311 }
3312 /* @internal */
3313 export interface LDKBroadcasterInterface {
3314         broadcast_transaction (tx: number): void;
3315 }
3316
3317 /* @internal */
3318 export function LDKBroadcasterInterface_new(impl: LDKBroadcasterInterface): number {
3319         if(!isWasmInitialized) {
3320                 throw new Error("initializeWasm() must be awaited first!");
3321         }
3322         var new_obj_idx = js_objs.length;
3323         for (var i = 0; i < js_objs.length; i++) {
3324                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3325         }
3326         js_objs[i] = new WeakRef(impl);
3327         return wasm.TS_LDKBroadcasterInterface_new(i);
3328 }
3329         // void BroadcasterInterface_broadcast_transaction LDKBroadcasterInterface *NONNULL_PTR this_arg, struct LDKTransaction tx
3330 /* @internal */
3331 export function BroadcasterInterface_broadcast_transaction(this_arg: number, tx: number): void {
3332         if(!isWasmInitialized) {
3333                 throw new Error("initializeWasm() must be awaited first!");
3334         }
3335         const nativeResponseValue = wasm.TS_BroadcasterInterface_broadcast_transaction(this_arg, tx);
3336         // debug statements here
3337 }
3338 /* @internal */
3339 export interface LDKKeysInterface {
3340         get_node_secret (recipient: Recipient): number;
3341         get_destination_script (): number;
3342         get_shutdown_scriptpubkey (): number;
3343         get_channel_signer (inbound: boolean, channel_value_satoshis: bigint): number;
3344         get_secure_random_bytes (): number;
3345         read_chan_signer (reader: number): number;
3346         sign_invoice (hrp_bytes: number, invoice_data: number, receipient: Recipient): number;
3347         get_inbound_payment_key_material (): number;
3348 }
3349
3350 /* @internal */
3351 export function LDKKeysInterface_new(impl: LDKKeysInterface): number {
3352         if(!isWasmInitialized) {
3353                 throw new Error("initializeWasm() must be awaited first!");
3354         }
3355         var new_obj_idx = js_objs.length;
3356         for (var i = 0; i < js_objs.length; i++) {
3357                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3358         }
3359         js_objs[i] = new WeakRef(impl);
3360         return wasm.TS_LDKKeysInterface_new(i);
3361 }
3362         // LDKCResult_SecretKeyNoneZ KeysInterface_get_node_secret LDKKeysInterface *NONNULL_PTR this_arg, enum LDKRecipient recipient
3363 /* @internal */
3364 export function KeysInterface_get_node_secret(this_arg: number, recipient: Recipient): number {
3365         if(!isWasmInitialized) {
3366                 throw new Error("initializeWasm() must be awaited first!");
3367         }
3368         const nativeResponseValue = wasm.TS_KeysInterface_get_node_secret(this_arg, recipient);
3369         return nativeResponseValue;
3370 }
3371         // LDKCVec_u8Z KeysInterface_get_destination_script LDKKeysInterface *NONNULL_PTR this_arg
3372 /* @internal */
3373 export function KeysInterface_get_destination_script(this_arg: number): number {
3374         if(!isWasmInitialized) {
3375                 throw new Error("initializeWasm() must be awaited first!");
3376         }
3377         const nativeResponseValue = wasm.TS_KeysInterface_get_destination_script(this_arg);
3378         return nativeResponseValue;
3379 }
3380         // LDKShutdownScript KeysInterface_get_shutdown_scriptpubkey LDKKeysInterface *NONNULL_PTR this_arg
3381 /* @internal */
3382 export function KeysInterface_get_shutdown_scriptpubkey(this_arg: number): number {
3383         if(!isWasmInitialized) {
3384                 throw new Error("initializeWasm() must be awaited first!");
3385         }
3386         const nativeResponseValue = wasm.TS_KeysInterface_get_shutdown_scriptpubkey(this_arg);
3387         return nativeResponseValue;
3388 }
3389         // LDKSign KeysInterface_get_channel_signer LDKKeysInterface *NONNULL_PTR this_arg, bool inbound, uint64_t channel_value_satoshis
3390 /* @internal */
3391 export function KeysInterface_get_channel_signer(this_arg: number, inbound: boolean, channel_value_satoshis: bigint): number {
3392         if(!isWasmInitialized) {
3393                 throw new Error("initializeWasm() must be awaited first!");
3394         }
3395         const nativeResponseValue = wasm.TS_KeysInterface_get_channel_signer(this_arg, inbound, channel_value_satoshis);
3396         return nativeResponseValue;
3397 }
3398         // LDKThirtyTwoBytes KeysInterface_get_secure_random_bytes LDKKeysInterface *NONNULL_PTR this_arg
3399 /* @internal */
3400 export function KeysInterface_get_secure_random_bytes(this_arg: number): number {
3401         if(!isWasmInitialized) {
3402                 throw new Error("initializeWasm() must be awaited first!");
3403         }
3404         const nativeResponseValue = wasm.TS_KeysInterface_get_secure_random_bytes(this_arg);
3405         return nativeResponseValue;
3406 }
3407         // LDKCResult_SignDecodeErrorZ KeysInterface_read_chan_signer LDKKeysInterface *NONNULL_PTR this_arg, struct LDKu8slice reader
3408 /* @internal */
3409 export function KeysInterface_read_chan_signer(this_arg: number, reader: number): number {
3410         if(!isWasmInitialized) {
3411                 throw new Error("initializeWasm() must be awaited first!");
3412         }
3413         const nativeResponseValue = wasm.TS_KeysInterface_read_chan_signer(this_arg, reader);
3414         return nativeResponseValue;
3415 }
3416         // LDKCResult_RecoverableSignatureNoneZ KeysInterface_sign_invoice LDKKeysInterface *NONNULL_PTR this_arg, struct LDKu8slice hrp_bytes, struct LDKCVec_u5Z invoice_data, enum LDKRecipient receipient
3417 /* @internal */
3418 export function KeysInterface_sign_invoice(this_arg: number, hrp_bytes: number, invoice_data: number, receipient: Recipient): number {
3419         if(!isWasmInitialized) {
3420                 throw new Error("initializeWasm() must be awaited first!");
3421         }
3422         const nativeResponseValue = wasm.TS_KeysInterface_sign_invoice(this_arg, hrp_bytes, invoice_data, receipient);
3423         return nativeResponseValue;
3424 }
3425         // LDKThirtyTwoBytes KeysInterface_get_inbound_payment_key_material LDKKeysInterface *NONNULL_PTR this_arg
3426 /* @internal */
3427 export function KeysInterface_get_inbound_payment_key_material(this_arg: number): number {
3428         if(!isWasmInitialized) {
3429                 throw new Error("initializeWasm() must be awaited first!");
3430         }
3431         const nativeResponseValue = wasm.TS_KeysInterface_get_inbound_payment_key_material(this_arg);
3432         return nativeResponseValue;
3433 }
3434 /* @internal */
3435 export interface LDKFeeEstimator {
3436         get_est_sat_per_1000_weight (confirmation_target: ConfirmationTarget): number;
3437 }
3438
3439 /* @internal */
3440 export function LDKFeeEstimator_new(impl: LDKFeeEstimator): number {
3441         if(!isWasmInitialized) {
3442                 throw new Error("initializeWasm() must be awaited first!");
3443         }
3444         var new_obj_idx = js_objs.length;
3445         for (var i = 0; i < js_objs.length; i++) {
3446                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3447         }
3448         js_objs[i] = new WeakRef(impl);
3449         return wasm.TS_LDKFeeEstimator_new(i);
3450 }
3451         // uint32_t FeeEstimator_get_est_sat_per_1000_weight LDKFeeEstimator *NONNULL_PTR this_arg, enum LDKConfirmationTarget confirmation_target
3452 /* @internal */
3453 export function FeeEstimator_get_est_sat_per_1000_weight(this_arg: number, confirmation_target: ConfirmationTarget): number {
3454         if(!isWasmInitialized) {
3455                 throw new Error("initializeWasm() must be awaited first!");
3456         }
3457         const nativeResponseValue = wasm.TS_FeeEstimator_get_est_sat_per_1000_weight(this_arg, confirmation_target);
3458         return nativeResponseValue;
3459 }
3460 /* @internal */
3461 export interface LDKLogger {
3462         log (record: number): void;
3463 }
3464
3465 /* @internal */
3466 export function LDKLogger_new(impl: LDKLogger): number {
3467         if(!isWasmInitialized) {
3468                 throw new Error("initializeWasm() must be awaited first!");
3469         }
3470         var new_obj_idx = js_objs.length;
3471         for (var i = 0; i < js_objs.length; i++) {
3472                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3473         }
3474         js_objs[i] = new WeakRef(impl);
3475         return wasm.TS_LDKLogger_new(i);
3476 }
3477         // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelManagerZ_get_a(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
3478 /* @internal */
3479 export function C2Tuple_BlockHashChannelManagerZ_get_a(owner: number): number {
3480         if(!isWasmInitialized) {
3481                 throw new Error("initializeWasm() must be awaited first!");
3482         }
3483         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_get_a(owner);
3484         return nativeResponseValue;
3485 }
3486         // struct LDKChannelManager *C2Tuple_BlockHashChannelManagerZ_get_b(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
3487 /* @internal */
3488 export function C2Tuple_BlockHashChannelManagerZ_get_b(owner: number): number {
3489         if(!isWasmInitialized) {
3490                 throw new Error("initializeWasm() must be awaited first!");
3491         }
3492         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_get_b(owner);
3493         return nativeResponseValue;
3494 }
3495         // struct LDKC2Tuple_BlockHashChannelManagerZ *CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
3496 /* @internal */
3497 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(owner: number): number {
3498         if(!isWasmInitialized) {
3499                 throw new Error("initializeWasm() must be awaited first!");
3500         }
3501         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(owner);
3502         return nativeResponseValue;
3503 }
3504         // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
3505 /* @internal */
3506 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(owner: number): number {
3507         if(!isWasmInitialized) {
3508                 throw new Error("initializeWasm() must be awaited first!");
3509         }
3510         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(owner);
3511         return nativeResponseValue;
3512 }
3513         // struct LDKChannelConfig CResult_ChannelConfigDecodeErrorZ_get_ok(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
3514 /* @internal */
3515 export function CResult_ChannelConfigDecodeErrorZ_get_ok(owner: number): number {
3516         if(!isWasmInitialized) {
3517                 throw new Error("initializeWasm() must be awaited first!");
3518         }
3519         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_get_ok(owner);
3520         return nativeResponseValue;
3521 }
3522         // struct LDKDecodeError CResult_ChannelConfigDecodeErrorZ_get_err(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
3523 /* @internal */
3524 export function CResult_ChannelConfigDecodeErrorZ_get_err(owner: number): number {
3525         if(!isWasmInitialized) {
3526                 throw new Error("initializeWasm() must be awaited first!");
3527         }
3528         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_get_err(owner);
3529         return nativeResponseValue;
3530 }
3531         // struct LDKOutPoint CResult_OutPointDecodeErrorZ_get_ok(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
3532 /* @internal */
3533 export function CResult_OutPointDecodeErrorZ_get_ok(owner: number): number {
3534         if(!isWasmInitialized) {
3535                 throw new Error("initializeWasm() must be awaited first!");
3536         }
3537         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_get_ok(owner);
3538         return nativeResponseValue;
3539 }
3540         // struct LDKDecodeError CResult_OutPointDecodeErrorZ_get_err(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
3541 /* @internal */
3542 export function CResult_OutPointDecodeErrorZ_get_err(owner: number): number {
3543         if(!isWasmInitialized) {
3544                 throw new Error("initializeWasm() must be awaited first!");
3545         }
3546         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_get_err(owner);
3547         return nativeResponseValue;
3548 }
3549 /* @internal */
3550 export interface LDKType {
3551         type_id (): number;
3552         debug_str (): number;
3553         write (): number;
3554 }
3555
3556 /* @internal */
3557 export function LDKType_new(impl: LDKType): number {
3558         if(!isWasmInitialized) {
3559                 throw new Error("initializeWasm() must be awaited first!");
3560         }
3561         var new_obj_idx = js_objs.length;
3562         for (var i = 0; i < js_objs.length; i++) {
3563                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3564         }
3565         js_objs[i] = new WeakRef(impl);
3566         return wasm.TS_LDKType_new(i);
3567 }
3568         // uint16_t Type_type_id LDKType *NONNULL_PTR this_arg
3569 /* @internal */
3570 export function Type_type_id(this_arg: number): number {
3571         if(!isWasmInitialized) {
3572                 throw new Error("initializeWasm() must be awaited first!");
3573         }
3574         const nativeResponseValue = wasm.TS_Type_type_id(this_arg);
3575         return nativeResponseValue;
3576 }
3577         // LDKStr Type_debug_str LDKType *NONNULL_PTR this_arg
3578 /* @internal */
3579 export function Type_debug_str(this_arg: number): number {
3580         if(!isWasmInitialized) {
3581                 throw new Error("initializeWasm() must be awaited first!");
3582         }
3583         const nativeResponseValue = wasm.TS_Type_debug_str(this_arg);
3584         return nativeResponseValue;
3585 }
3586         // LDKCVec_u8Z Type_write LDKType *NONNULL_PTR this_arg
3587 /* @internal */
3588 export function Type_write(this_arg: number): number {
3589         if(!isWasmInitialized) {
3590                 throw new Error("initializeWasm() must be awaited first!");
3591         }
3592         const nativeResponseValue = wasm.TS_Type_write(this_arg);
3593         return nativeResponseValue;
3594 }
3595 /* @internal */
3596 export class LDKCOption_TypeZ {
3597         protected constructor() {}
3598 }
3599 /* @internal */
3600 export function LDKCOption_TypeZ_ty_from_ptr(ptr: number): number {
3601         if(!isWasmInitialized) {
3602                 throw new Error("initializeWasm() must be awaited first!");
3603         }
3604         const nativeResponseValue = wasm.TS_LDKCOption_TypeZ_ty_from_ptr(ptr);
3605         return nativeResponseValue;
3606 }
3607 /* @internal */
3608 export function LDKCOption_TypeZ_Some_get_some(ptr: number): number {
3609         if(!isWasmInitialized) {
3610                 throw new Error("initializeWasm() must be awaited first!");
3611         }
3612         const nativeResponseValue = wasm.TS_LDKCOption_TypeZ_Some_get_some(ptr);
3613         return nativeResponseValue;
3614 }
3615         // struct LDKCOption_TypeZ CResult_COption_TypeZDecodeErrorZ_get_ok(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
3616 /* @internal */
3617 export function CResult_COption_TypeZDecodeErrorZ_get_ok(owner: number): number {
3618         if(!isWasmInitialized) {
3619                 throw new Error("initializeWasm() must be awaited first!");
3620         }
3621         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_get_ok(owner);
3622         return nativeResponseValue;
3623 }
3624         // struct LDKDecodeError CResult_COption_TypeZDecodeErrorZ_get_err(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
3625 /* @internal */
3626 export function CResult_COption_TypeZDecodeErrorZ_get_err(owner: number): number {
3627         if(!isWasmInitialized) {
3628                 throw new Error("initializeWasm() must be awaited first!");
3629         }
3630         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_get_err(owner);
3631         return nativeResponseValue;
3632 }
3633 /* @internal */
3634 export class LDKPaymentError {
3635         protected constructor() {}
3636 }
3637 /* @internal */
3638 export function LDKPaymentError_ty_from_ptr(ptr: number): number {
3639         if(!isWasmInitialized) {
3640                 throw new Error("initializeWasm() must be awaited first!");
3641         }
3642         const nativeResponseValue = wasm.TS_LDKPaymentError_ty_from_ptr(ptr);
3643         return nativeResponseValue;
3644 }
3645 /* @internal */
3646 export function LDKPaymentError_Invoice_get_invoice(ptr: number): number {
3647         if(!isWasmInitialized) {
3648                 throw new Error("initializeWasm() must be awaited first!");
3649         }
3650         const nativeResponseValue = wasm.TS_LDKPaymentError_Invoice_get_invoice(ptr);
3651         return nativeResponseValue;
3652 }
3653 /* @internal */
3654 export function LDKPaymentError_Routing_get_routing(ptr: number): number {
3655         if(!isWasmInitialized) {
3656                 throw new Error("initializeWasm() must be awaited first!");
3657         }
3658         const nativeResponseValue = wasm.TS_LDKPaymentError_Routing_get_routing(ptr);
3659         return nativeResponseValue;
3660 }
3661 /* @internal */
3662 export function LDKPaymentError_Sending_get_sending(ptr: number): number {
3663         if(!isWasmInitialized) {
3664                 throw new Error("initializeWasm() must be awaited first!");
3665         }
3666         const nativeResponseValue = wasm.TS_LDKPaymentError_Sending_get_sending(ptr);
3667         return nativeResponseValue;
3668 }
3669         // struct LDKThirtyTwoBytes CResult_PaymentIdPaymentErrorZ_get_ok(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
3670 /* @internal */
3671 export function CResult_PaymentIdPaymentErrorZ_get_ok(owner: number): number {
3672         if(!isWasmInitialized) {
3673                 throw new Error("initializeWasm() must be awaited first!");
3674         }
3675         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_get_ok(owner);
3676         return nativeResponseValue;
3677 }
3678         // struct LDKPaymentError CResult_PaymentIdPaymentErrorZ_get_err(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
3679 /* @internal */
3680 export function CResult_PaymentIdPaymentErrorZ_get_err(owner: number): number {
3681         if(!isWasmInitialized) {
3682                 throw new Error("initializeWasm() must be awaited first!");
3683         }
3684         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_get_err(owner);
3685         return nativeResponseValue;
3686 }
3687 /* @internal */
3688 export class LDKParseError {
3689         protected constructor() {}
3690 }
3691 /* @internal */
3692 export function LDKParseError_ty_from_ptr(ptr: number): number {
3693         if(!isWasmInitialized) {
3694                 throw new Error("initializeWasm() must be awaited first!");
3695         }
3696         const nativeResponseValue = wasm.TS_LDKParseError_ty_from_ptr(ptr);
3697         return nativeResponseValue;
3698 }
3699 /* @internal */
3700 export function LDKParseError_Bech32Error_get_bech32_error(ptr: number): number {
3701         if(!isWasmInitialized) {
3702                 throw new Error("initializeWasm() must be awaited first!");
3703         }
3704         const nativeResponseValue = wasm.TS_LDKParseError_Bech32Error_get_bech32_error(ptr);
3705         return nativeResponseValue;
3706 }
3707 /* @internal */
3708 export function LDKParseError_ParseAmountError_get_parse_amount_error(ptr: number): number {
3709         if(!isWasmInitialized) {
3710                 throw new Error("initializeWasm() must be awaited first!");
3711         }
3712         const nativeResponseValue = wasm.TS_LDKParseError_ParseAmountError_get_parse_amount_error(ptr);
3713         return nativeResponseValue;
3714 }
3715 /* @internal */
3716 export function LDKParseError_MalformedSignature_get_malformed_signature(ptr: number): Secp256k1Error {
3717         if(!isWasmInitialized) {
3718                 throw new Error("initializeWasm() must be awaited first!");
3719         }
3720         const nativeResponseValue = wasm.TS_LDKParseError_MalformedSignature_get_malformed_signature(ptr);
3721         return nativeResponseValue;
3722 }
3723 /* @internal */
3724 export function LDKParseError_DescriptionDecodeError_get_description_decode_error(ptr: number): number {
3725         if(!isWasmInitialized) {
3726                 throw new Error("initializeWasm() must be awaited first!");
3727         }
3728         const nativeResponseValue = wasm.TS_LDKParseError_DescriptionDecodeError_get_description_decode_error(ptr);
3729         return nativeResponseValue;
3730 }
3731 /* @internal */
3732 export function LDKParseError_InvalidSliceLength_get_invalid_slice_length(ptr: number): number {
3733         if(!isWasmInitialized) {
3734                 throw new Error("initializeWasm() must be awaited first!");
3735         }
3736         const nativeResponseValue = wasm.TS_LDKParseError_InvalidSliceLength_get_invalid_slice_length(ptr);
3737         return nativeResponseValue;
3738 }
3739         // enum LDKSiPrefix CResult_SiPrefixParseErrorZ_get_ok(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR owner);
3740 /* @internal */
3741 export function CResult_SiPrefixParseErrorZ_get_ok(owner: number): SiPrefix {
3742         if(!isWasmInitialized) {
3743                 throw new Error("initializeWasm() must be awaited first!");
3744         }
3745         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_get_ok(owner);
3746         return nativeResponseValue;
3747 }
3748         // struct LDKParseError CResult_SiPrefixParseErrorZ_get_err(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR owner);
3749 /* @internal */
3750 export function CResult_SiPrefixParseErrorZ_get_err(owner: number): number {
3751         if(!isWasmInitialized) {
3752                 throw new Error("initializeWasm() must be awaited first!");
3753         }
3754         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_get_err(owner);
3755         return nativeResponseValue;
3756 }
3757 /* @internal */
3758 export class LDKParseOrSemanticError {
3759         protected constructor() {}
3760 }
3761 /* @internal */
3762 export function LDKParseOrSemanticError_ty_from_ptr(ptr: number): number {
3763         if(!isWasmInitialized) {
3764                 throw new Error("initializeWasm() must be awaited first!");
3765         }
3766         const nativeResponseValue = wasm.TS_LDKParseOrSemanticError_ty_from_ptr(ptr);
3767         return nativeResponseValue;
3768 }
3769 /* @internal */
3770 export function LDKParseOrSemanticError_ParseError_get_parse_error(ptr: number): number {
3771         if(!isWasmInitialized) {
3772                 throw new Error("initializeWasm() must be awaited first!");
3773         }
3774         const nativeResponseValue = wasm.TS_LDKParseOrSemanticError_ParseError_get_parse_error(ptr);
3775         return nativeResponseValue;
3776 }
3777 /* @internal */
3778 export function LDKParseOrSemanticError_SemanticError_get_semantic_error(ptr: number): SemanticError {
3779         if(!isWasmInitialized) {
3780                 throw new Error("initializeWasm() must be awaited first!");
3781         }
3782         const nativeResponseValue = wasm.TS_LDKParseOrSemanticError_SemanticError_get_semantic_error(ptr);
3783         return nativeResponseValue;
3784 }
3785         // struct LDKInvoice CResult_InvoiceParseOrSemanticErrorZ_get_ok(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
3786 /* @internal */
3787 export function CResult_InvoiceParseOrSemanticErrorZ_get_ok(owner: number): number {
3788         if(!isWasmInitialized) {
3789                 throw new Error("initializeWasm() must be awaited first!");
3790         }
3791         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_get_ok(owner);
3792         return nativeResponseValue;
3793 }
3794         // struct LDKParseOrSemanticError CResult_InvoiceParseOrSemanticErrorZ_get_err(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
3795 /* @internal */
3796 export function CResult_InvoiceParseOrSemanticErrorZ_get_err(owner: number): number {
3797         if(!isWasmInitialized) {
3798                 throw new Error("initializeWasm() must be awaited first!");
3799         }
3800         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_get_err(owner);
3801         return nativeResponseValue;
3802 }
3803         // struct LDKSignedRawInvoice CResult_SignedRawInvoiceParseErrorZ_get_ok(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR owner);
3804 /* @internal */
3805 export function CResult_SignedRawInvoiceParseErrorZ_get_ok(owner: number): number {
3806         if(!isWasmInitialized) {
3807                 throw new Error("initializeWasm() must be awaited first!");
3808         }
3809         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_get_ok(owner);
3810         return nativeResponseValue;
3811 }
3812         // struct LDKParseError CResult_SignedRawInvoiceParseErrorZ_get_err(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR owner);
3813 /* @internal */
3814 export function CResult_SignedRawInvoiceParseErrorZ_get_err(owner: number): number {
3815         if(!isWasmInitialized) {
3816                 throw new Error("initializeWasm() must be awaited first!");
3817         }
3818         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_get_err(owner);
3819         return nativeResponseValue;
3820 }
3821         // struct LDKRawInvoice C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
3822 /* @internal */
3823 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(owner: number): number {
3824         if(!isWasmInitialized) {
3825                 throw new Error("initializeWasm() must be awaited first!");
3826         }
3827         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(owner);
3828         return nativeResponseValue;
3829 }
3830         // struct LDKThirtyTwoBytes C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
3831 /* @internal */
3832 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(owner: number): number {
3833         if(!isWasmInitialized) {
3834                 throw new Error("initializeWasm() must be awaited first!");
3835         }
3836         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(owner);
3837         return nativeResponseValue;
3838 }
3839         // struct LDKInvoiceSignature C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
3840 /* @internal */
3841 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(owner: number): number {
3842         if(!isWasmInitialized) {
3843                 throw new Error("initializeWasm() must be awaited first!");
3844         }
3845         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(owner);
3846         return nativeResponseValue;
3847 }
3848         // struct LDKPayeePubKey CResult_PayeePubKeyErrorZ_get_ok(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
3849 /* @internal */
3850 export function CResult_PayeePubKeyErrorZ_get_ok(owner: number): number {
3851         if(!isWasmInitialized) {
3852                 throw new Error("initializeWasm() must be awaited first!");
3853         }
3854         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_get_ok(owner);
3855         return nativeResponseValue;
3856 }
3857         // enum LDKSecp256k1Error CResult_PayeePubKeyErrorZ_get_err(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
3858 /* @internal */
3859 export function CResult_PayeePubKeyErrorZ_get_err(owner: number): Secp256k1Error {
3860         if(!isWasmInitialized) {
3861                 throw new Error("initializeWasm() must be awaited first!");
3862         }
3863         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_get_err(owner);
3864         return nativeResponseValue;
3865 }
3866         // struct LDKPositiveTimestamp CResult_PositiveTimestampCreationErrorZ_get_ok(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
3867 /* @internal */
3868 export function CResult_PositiveTimestampCreationErrorZ_get_ok(owner: number): number {
3869         if(!isWasmInitialized) {
3870                 throw new Error("initializeWasm() must be awaited first!");
3871         }
3872         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_get_ok(owner);
3873         return nativeResponseValue;
3874 }
3875         // enum LDKCreationError CResult_PositiveTimestampCreationErrorZ_get_err(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
3876 /* @internal */
3877 export function CResult_PositiveTimestampCreationErrorZ_get_err(owner: number): CreationError {
3878         if(!isWasmInitialized) {
3879                 throw new Error("initializeWasm() must be awaited first!");
3880         }
3881         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_get_err(owner);
3882         return nativeResponseValue;
3883 }
3884         // void CResult_NoneSemanticErrorZ_get_ok(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR owner);
3885 /* @internal */
3886 export function CResult_NoneSemanticErrorZ_get_ok(owner: number): void {
3887         if(!isWasmInitialized) {
3888                 throw new Error("initializeWasm() must be awaited first!");
3889         }
3890         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_get_ok(owner);
3891         // debug statements here
3892 }
3893         // enum LDKSemanticError CResult_NoneSemanticErrorZ_get_err(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR owner);
3894 /* @internal */
3895 export function CResult_NoneSemanticErrorZ_get_err(owner: number): SemanticError {
3896         if(!isWasmInitialized) {
3897                 throw new Error("initializeWasm() must be awaited first!");
3898         }
3899         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_get_err(owner);
3900         return nativeResponseValue;
3901 }
3902         // struct LDKInvoice CResult_InvoiceSemanticErrorZ_get_ok(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR owner);
3903 /* @internal */
3904 export function CResult_InvoiceSemanticErrorZ_get_ok(owner: number): number {
3905         if(!isWasmInitialized) {
3906                 throw new Error("initializeWasm() must be awaited first!");
3907         }
3908         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_get_ok(owner);
3909         return nativeResponseValue;
3910 }
3911         // enum LDKSemanticError CResult_InvoiceSemanticErrorZ_get_err(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR owner);
3912 /* @internal */
3913 export function CResult_InvoiceSemanticErrorZ_get_err(owner: number): SemanticError {
3914         if(!isWasmInitialized) {
3915                 throw new Error("initializeWasm() must be awaited first!");
3916         }
3917         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_get_err(owner);
3918         return nativeResponseValue;
3919 }
3920         // struct LDKDescription CResult_DescriptionCreationErrorZ_get_ok(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
3921 /* @internal */
3922 export function CResult_DescriptionCreationErrorZ_get_ok(owner: number): number {
3923         if(!isWasmInitialized) {
3924                 throw new Error("initializeWasm() must be awaited first!");
3925         }
3926         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_get_ok(owner);
3927         return nativeResponseValue;
3928 }
3929         // enum LDKCreationError CResult_DescriptionCreationErrorZ_get_err(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
3930 /* @internal */
3931 export function CResult_DescriptionCreationErrorZ_get_err(owner: number): CreationError {
3932         if(!isWasmInitialized) {
3933                 throw new Error("initializeWasm() must be awaited first!");
3934         }
3935         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_get_err(owner);
3936         return nativeResponseValue;
3937 }
3938         // struct LDKPrivateRoute CResult_PrivateRouteCreationErrorZ_get_ok(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
3939 /* @internal */
3940 export function CResult_PrivateRouteCreationErrorZ_get_ok(owner: number): number {
3941         if(!isWasmInitialized) {
3942                 throw new Error("initializeWasm() must be awaited first!");
3943         }
3944         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_get_ok(owner);
3945         return nativeResponseValue;
3946 }
3947         // enum LDKCreationError CResult_PrivateRouteCreationErrorZ_get_err(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
3948 /* @internal */
3949 export function CResult_PrivateRouteCreationErrorZ_get_err(owner: number): CreationError {
3950         if(!isWasmInitialized) {
3951                 throw new Error("initializeWasm() must be awaited first!");
3952         }
3953         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_get_err(owner);
3954         return nativeResponseValue;
3955 }
3956         // struct LDKStr CResult_StringErrorZ_get_ok(LDKCResult_StringErrorZ *NONNULL_PTR owner);
3957 /* @internal */
3958 export function CResult_StringErrorZ_get_ok(owner: number): number {
3959         if(!isWasmInitialized) {
3960                 throw new Error("initializeWasm() must be awaited first!");
3961         }
3962         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_get_ok(owner);
3963         return nativeResponseValue;
3964 }
3965         // enum LDKSecp256k1Error CResult_StringErrorZ_get_err(LDKCResult_StringErrorZ *NONNULL_PTR owner);
3966 /* @internal */
3967 export function CResult_StringErrorZ_get_err(owner: number): Secp256k1Error {
3968         if(!isWasmInitialized) {
3969                 throw new Error("initializeWasm() must be awaited first!");
3970         }
3971         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_get_err(owner);
3972         return nativeResponseValue;
3973 }
3974         // struct LDKChannelMonitorUpdate CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
3975 /* @internal */
3976 export function CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(owner: number): number {
3977         if(!isWasmInitialized) {
3978                 throw new Error("initializeWasm() must be awaited first!");
3979         }
3980         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(owner);
3981         return nativeResponseValue;
3982 }
3983         // struct LDKDecodeError CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
3984 /* @internal */
3985 export function CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(owner: number): number {
3986         if(!isWasmInitialized) {
3987                 throw new Error("initializeWasm() must be awaited first!");
3988         }
3989         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(owner);
3990         return nativeResponseValue;
3991 }
3992 /* @internal */
3993 export class LDKCOption_MonitorEventZ {
3994         protected constructor() {}
3995 }
3996 /* @internal */
3997 export function LDKCOption_MonitorEventZ_ty_from_ptr(ptr: number): number {
3998         if(!isWasmInitialized) {
3999                 throw new Error("initializeWasm() must be awaited first!");
4000         }
4001         const nativeResponseValue = wasm.TS_LDKCOption_MonitorEventZ_ty_from_ptr(ptr);
4002         return nativeResponseValue;
4003 }
4004 /* @internal */
4005 export function LDKCOption_MonitorEventZ_Some_get_some(ptr: number): number {
4006         if(!isWasmInitialized) {
4007                 throw new Error("initializeWasm() must be awaited first!");
4008         }
4009         const nativeResponseValue = wasm.TS_LDKCOption_MonitorEventZ_Some_get_some(ptr);
4010         return nativeResponseValue;
4011 }
4012         // struct LDKCOption_MonitorEventZ CResult_COption_MonitorEventZDecodeErrorZ_get_ok(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
4013 /* @internal */
4014 export function CResult_COption_MonitorEventZDecodeErrorZ_get_ok(owner: number): number {
4015         if(!isWasmInitialized) {
4016                 throw new Error("initializeWasm() must be awaited first!");
4017         }
4018         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_get_ok(owner);
4019         return nativeResponseValue;
4020 }
4021         // struct LDKDecodeError CResult_COption_MonitorEventZDecodeErrorZ_get_err(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
4022 /* @internal */
4023 export function CResult_COption_MonitorEventZDecodeErrorZ_get_err(owner: number): number {
4024         if(!isWasmInitialized) {
4025                 throw new Error("initializeWasm() must be awaited first!");
4026         }
4027         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_get_err(owner);
4028         return nativeResponseValue;
4029 }
4030         // struct LDKHTLCUpdate CResult_HTLCUpdateDecodeErrorZ_get_ok(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
4031 /* @internal */
4032 export function CResult_HTLCUpdateDecodeErrorZ_get_ok(owner: number): number {
4033         if(!isWasmInitialized) {
4034                 throw new Error("initializeWasm() must be awaited first!");
4035         }
4036         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_get_ok(owner);
4037         return nativeResponseValue;
4038 }
4039         // struct LDKDecodeError CResult_HTLCUpdateDecodeErrorZ_get_err(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
4040 /* @internal */
4041 export function CResult_HTLCUpdateDecodeErrorZ_get_err(owner: number): number {
4042         if(!isWasmInitialized) {
4043                 throw new Error("initializeWasm() must be awaited first!");
4044         }
4045         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_get_err(owner);
4046         return nativeResponseValue;
4047 }
4048         // struct LDKOutPoint C2Tuple_OutPointScriptZ_get_a(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
4049 /* @internal */
4050 export function C2Tuple_OutPointScriptZ_get_a(owner: number): number {
4051         if(!isWasmInitialized) {
4052                 throw new Error("initializeWasm() must be awaited first!");
4053         }
4054         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_get_a(owner);
4055         return nativeResponseValue;
4056 }
4057         // struct LDKCVec_u8Z C2Tuple_OutPointScriptZ_get_b(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
4058 /* @internal */
4059 export function C2Tuple_OutPointScriptZ_get_b(owner: number): number {
4060         if(!isWasmInitialized) {
4061                 throw new Error("initializeWasm() must be awaited first!");
4062         }
4063         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_get_b(owner);
4064         return nativeResponseValue;
4065 }
4066         // uint32_t C2Tuple_u32ScriptZ_get_a(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
4067 /* @internal */
4068 export function C2Tuple_u32ScriptZ_get_a(owner: number): number {
4069         if(!isWasmInitialized) {
4070                 throw new Error("initializeWasm() must be awaited first!");
4071         }
4072         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_get_a(owner);
4073         return nativeResponseValue;
4074 }
4075         // struct LDKCVec_u8Z C2Tuple_u32ScriptZ_get_b(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
4076 /* @internal */
4077 export function C2Tuple_u32ScriptZ_get_b(owner: number): number {
4078         if(!isWasmInitialized) {
4079                 throw new Error("initializeWasm() must be awaited first!");
4080         }
4081         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_get_b(owner);
4082         return nativeResponseValue;
4083 }
4084         // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
4085 /* @internal */
4086 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(owner: number): number {
4087         if(!isWasmInitialized) {
4088                 throw new Error("initializeWasm() must be awaited first!");
4089         }
4090         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(owner);
4091         return nativeResponseValue;
4092 }
4093         // struct LDKCVec_C2Tuple_u32ScriptZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
4094 /* @internal */
4095 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(owner: number): number {
4096         if(!isWasmInitialized) {
4097                 throw new Error("initializeWasm() must be awaited first!");
4098         }
4099         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(owner);
4100         return nativeResponseValue;
4101 }
4102         // uint32_t C2Tuple_u32TxOutZ_get_a(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
4103 /* @internal */
4104 export function C2Tuple_u32TxOutZ_get_a(owner: number): number {
4105         if(!isWasmInitialized) {
4106                 throw new Error("initializeWasm() must be awaited first!");
4107         }
4108         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_get_a(owner);
4109         return nativeResponseValue;
4110 }
4111         // struct LDKTxOut C2Tuple_u32TxOutZ_get_b(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
4112 /* @internal */
4113 export function C2Tuple_u32TxOutZ_get_b(owner: number): number {
4114         if(!isWasmInitialized) {
4115                 throw new Error("initializeWasm() must be awaited first!");
4116         }
4117         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_get_b(owner);
4118         return nativeResponseValue;
4119 }
4120         // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
4121 /* @internal */
4122 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(owner: number): number {
4123         if(!isWasmInitialized) {
4124                 throw new Error("initializeWasm() must be awaited first!");
4125         }
4126         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(owner);
4127         return nativeResponseValue;
4128 }
4129         // struct LDKCVec_C2Tuple_u32TxOutZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
4130 /* @internal */
4131 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(owner: number): number {
4132         if(!isWasmInitialized) {
4133                 throw new Error("initializeWasm() must be awaited first!");
4134         }
4135         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(owner);
4136         return nativeResponseValue;
4137 }
4138 /* @internal */
4139 export class LDKBalance {
4140         protected constructor() {}
4141 }
4142 /* @internal */
4143 export function LDKBalance_ty_from_ptr(ptr: number): number {
4144         if(!isWasmInitialized) {
4145                 throw new Error("initializeWasm() must be awaited first!");
4146         }
4147         const nativeResponseValue = wasm.TS_LDKBalance_ty_from_ptr(ptr);
4148         return nativeResponseValue;
4149 }
4150 /* @internal */
4151 export function LDKBalance_ClaimableOnChannelClose_get_claimable_amount_satoshis(ptr: number): bigint {
4152         if(!isWasmInitialized) {
4153                 throw new Error("initializeWasm() must be awaited first!");
4154         }
4155         const nativeResponseValue = wasm.TS_LDKBalance_ClaimableOnChannelClose_get_claimable_amount_satoshis(ptr);
4156         return nativeResponseValue;
4157 }
4158 /* @internal */
4159 export function LDKBalance_ClaimableAwaitingConfirmations_get_claimable_amount_satoshis(ptr: number): bigint {
4160         if(!isWasmInitialized) {
4161                 throw new Error("initializeWasm() must be awaited first!");
4162         }
4163         const nativeResponseValue = wasm.TS_LDKBalance_ClaimableAwaitingConfirmations_get_claimable_amount_satoshis(ptr);
4164         return nativeResponseValue;
4165 }
4166 /* @internal */
4167 export function LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height(ptr: number): number {
4168         if(!isWasmInitialized) {
4169                 throw new Error("initializeWasm() must be awaited first!");
4170         }
4171         const nativeResponseValue = wasm.TS_LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height(ptr);
4172         return nativeResponseValue;
4173 }
4174 /* @internal */
4175 export function LDKBalance_ContentiousClaimable_get_claimable_amount_satoshis(ptr: number): bigint {
4176         if(!isWasmInitialized) {
4177                 throw new Error("initializeWasm() must be awaited first!");
4178         }
4179         const nativeResponseValue = wasm.TS_LDKBalance_ContentiousClaimable_get_claimable_amount_satoshis(ptr);
4180         return nativeResponseValue;
4181 }
4182 /* @internal */
4183 export function LDKBalance_ContentiousClaimable_get_timeout_height(ptr: number): number {
4184         if(!isWasmInitialized) {
4185                 throw new Error("initializeWasm() must be awaited first!");
4186         }
4187         const nativeResponseValue = wasm.TS_LDKBalance_ContentiousClaimable_get_timeout_height(ptr);
4188         return nativeResponseValue;
4189 }
4190 /* @internal */
4191 export function LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_amount_satoshis(ptr: number): bigint {
4192         if(!isWasmInitialized) {
4193                 throw new Error("initializeWasm() must be awaited first!");
4194         }
4195         const nativeResponseValue = wasm.TS_LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_amount_satoshis(ptr);
4196         return nativeResponseValue;
4197 }
4198 /* @internal */
4199 export function LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_height(ptr: number): number {
4200         if(!isWasmInitialized) {
4201                 throw new Error("initializeWasm() must be awaited first!");
4202         }
4203         const nativeResponseValue = wasm.TS_LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_height(ptr);
4204         return nativeResponseValue;
4205 }
4206         // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelMonitorZ_get_a(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
4207 /* @internal */
4208 export function C2Tuple_BlockHashChannelMonitorZ_get_a(owner: number): number {
4209         if(!isWasmInitialized) {
4210                 throw new Error("initializeWasm() must be awaited first!");
4211         }
4212         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_get_a(owner);
4213         return nativeResponseValue;
4214 }
4215         // struct LDKChannelMonitor C2Tuple_BlockHashChannelMonitorZ_get_b(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
4216 /* @internal */
4217 export function C2Tuple_BlockHashChannelMonitorZ_get_b(owner: number): number {
4218         if(!isWasmInitialized) {
4219                 throw new Error("initializeWasm() must be awaited first!");
4220         }
4221         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_get_b(owner);
4222         return nativeResponseValue;
4223 }
4224         // struct LDKC2Tuple_BlockHashChannelMonitorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
4225 /* @internal */
4226 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(owner: number): number {
4227         if(!isWasmInitialized) {
4228                 throw new Error("initializeWasm() must be awaited first!");
4229         }
4230         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(owner);
4231         return nativeResponseValue;
4232 }
4233         // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
4234 /* @internal */
4235 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(owner: number): number {
4236         if(!isWasmInitialized) {
4237                 throw new Error("initializeWasm() must be awaited first!");
4238         }
4239         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(owner);
4240         return nativeResponseValue;
4241 }
4242         // void CResult_NoneLightningErrorZ_get_ok(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
4243 /* @internal */
4244 export function CResult_NoneLightningErrorZ_get_ok(owner: number): void {
4245         if(!isWasmInitialized) {
4246                 throw new Error("initializeWasm() must be awaited first!");
4247         }
4248         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_get_ok(owner);
4249         // debug statements here
4250 }
4251         // struct LDKLightningError CResult_NoneLightningErrorZ_get_err(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
4252 /* @internal */
4253 export function CResult_NoneLightningErrorZ_get_err(owner: number): number {
4254         if(!isWasmInitialized) {
4255                 throw new Error("initializeWasm() must be awaited first!");
4256         }
4257         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_get_err(owner);
4258         return nativeResponseValue;
4259 }
4260         // struct LDKPublicKey C2Tuple_PublicKeyTypeZ_get_a(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
4261 /* @internal */
4262 export function C2Tuple_PublicKeyTypeZ_get_a(owner: number): number {
4263         if(!isWasmInitialized) {
4264                 throw new Error("initializeWasm() must be awaited first!");
4265         }
4266         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_get_a(owner);
4267         return nativeResponseValue;
4268 }
4269         // struct LDKType C2Tuple_PublicKeyTypeZ_get_b(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
4270 /* @internal */
4271 export function C2Tuple_PublicKeyTypeZ_get_b(owner: number): number {
4272         if(!isWasmInitialized) {
4273                 throw new Error("initializeWasm() must be awaited first!");
4274         }
4275         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_get_b(owner);
4276         return nativeResponseValue;
4277 }
4278         // bool CResult_boolLightningErrorZ_get_ok(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
4279 /* @internal */
4280 export function CResult_boolLightningErrorZ_get_ok(owner: number): boolean {
4281         if(!isWasmInitialized) {
4282                 throw new Error("initializeWasm() must be awaited first!");
4283         }
4284         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_get_ok(owner);
4285         return nativeResponseValue;
4286 }
4287         // struct LDKLightningError CResult_boolLightningErrorZ_get_err(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
4288 /* @internal */
4289 export function CResult_boolLightningErrorZ_get_err(owner: number): number {
4290         if(!isWasmInitialized) {
4291                 throw new Error("initializeWasm() must be awaited first!");
4292         }
4293         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_get_err(owner);
4294         return nativeResponseValue;
4295 }
4296         // struct LDKChannelAnnouncement C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
4297 /* @internal */
4298 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(owner: number): number {
4299         if(!isWasmInitialized) {
4300                 throw new Error("initializeWasm() must be awaited first!");
4301         }
4302         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(owner);
4303         return nativeResponseValue;
4304 }
4305         // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
4306 /* @internal */
4307 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(owner: number): number {
4308         if(!isWasmInitialized) {
4309                 throw new Error("initializeWasm() must be awaited first!");
4310         }
4311         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(owner);
4312         return nativeResponseValue;
4313 }
4314         // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
4315 /* @internal */
4316 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(owner: number): number {
4317         if(!isWasmInitialized) {
4318                 throw new Error("initializeWasm() must be awaited first!");
4319         }
4320         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(owner);
4321         return nativeResponseValue;
4322 }
4323 /* @internal */
4324 export class LDKCOption_NetAddressZ {
4325         protected constructor() {}
4326 }
4327 /* @internal */
4328 export function LDKCOption_NetAddressZ_ty_from_ptr(ptr: number): number {
4329         if(!isWasmInitialized) {
4330                 throw new Error("initializeWasm() must be awaited first!");
4331         }
4332         const nativeResponseValue = wasm.TS_LDKCOption_NetAddressZ_ty_from_ptr(ptr);
4333         return nativeResponseValue;
4334 }
4335 /* @internal */
4336 export function LDKCOption_NetAddressZ_Some_get_some(ptr: number): number {
4337         if(!isWasmInitialized) {
4338                 throw new Error("initializeWasm() must be awaited first!");
4339         }
4340         const nativeResponseValue = wasm.TS_LDKCOption_NetAddressZ_Some_get_some(ptr);
4341         return nativeResponseValue;
4342 }
4343         // struct LDKCVec_u8Z CResult_CVec_u8ZPeerHandleErrorZ_get_ok(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
4344 /* @internal */
4345 export function CResult_CVec_u8ZPeerHandleErrorZ_get_ok(owner: number): number {
4346         if(!isWasmInitialized) {
4347                 throw new Error("initializeWasm() must be awaited first!");
4348         }
4349         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_get_ok(owner);
4350         return nativeResponseValue;
4351 }
4352         // struct LDKPeerHandleError CResult_CVec_u8ZPeerHandleErrorZ_get_err(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
4353 /* @internal */
4354 export function CResult_CVec_u8ZPeerHandleErrorZ_get_err(owner: number): number {
4355         if(!isWasmInitialized) {
4356                 throw new Error("initializeWasm() must be awaited first!");
4357         }
4358         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_get_err(owner);
4359         return nativeResponseValue;
4360 }
4361         // void CResult_NonePeerHandleErrorZ_get_ok(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
4362 /* @internal */
4363 export function CResult_NonePeerHandleErrorZ_get_ok(owner: number): void {
4364         if(!isWasmInitialized) {
4365                 throw new Error("initializeWasm() must be awaited first!");
4366         }
4367         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_get_ok(owner);
4368         // debug statements here
4369 }
4370         // struct LDKPeerHandleError CResult_NonePeerHandleErrorZ_get_err(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
4371 /* @internal */
4372 export function CResult_NonePeerHandleErrorZ_get_err(owner: number): number {
4373         if(!isWasmInitialized) {
4374                 throw new Error("initializeWasm() must be awaited first!");
4375         }
4376         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_get_err(owner);
4377         return nativeResponseValue;
4378 }
4379         // bool CResult_boolPeerHandleErrorZ_get_ok(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
4380 /* @internal */
4381 export function CResult_boolPeerHandleErrorZ_get_ok(owner: number): boolean {
4382         if(!isWasmInitialized) {
4383                 throw new Error("initializeWasm() must be awaited first!");
4384         }
4385         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_get_ok(owner);
4386         return nativeResponseValue;
4387 }
4388         // struct LDKPeerHandleError CResult_boolPeerHandleErrorZ_get_err(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
4389 /* @internal */
4390 export function CResult_boolPeerHandleErrorZ_get_err(owner: number): number {
4391         if(!isWasmInitialized) {
4392                 throw new Error("initializeWasm() must be awaited first!");
4393         }
4394         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_get_err(owner);
4395         return nativeResponseValue;
4396 }
4397         // struct LDKNodeId CResult_NodeIdDecodeErrorZ_get_ok(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
4398 /* @internal */
4399 export function CResult_NodeIdDecodeErrorZ_get_ok(owner: number): number {
4400         if(!isWasmInitialized) {
4401                 throw new Error("initializeWasm() must be awaited first!");
4402         }
4403         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_get_ok(owner);
4404         return nativeResponseValue;
4405 }
4406         // struct LDKDecodeError CResult_NodeIdDecodeErrorZ_get_err(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
4407 /* @internal */
4408 export function CResult_NodeIdDecodeErrorZ_get_err(owner: number): number {
4409         if(!isWasmInitialized) {
4410                 throw new Error("initializeWasm() must be awaited first!");
4411         }
4412         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_get_err(owner);
4413         return nativeResponseValue;
4414 }
4415         // struct LDKCOption_NetworkUpdateZ CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
4416 /* @internal */
4417 export function CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(owner: number): number {
4418         if(!isWasmInitialized) {
4419                 throw new Error("initializeWasm() must be awaited first!");
4420         }
4421         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(owner);
4422         return nativeResponseValue;
4423 }
4424         // struct LDKDecodeError CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
4425 /* @internal */
4426 export function CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(owner: number): number {
4427         if(!isWasmInitialized) {
4428                 throw new Error("initializeWasm() must be awaited first!");
4429         }
4430         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(owner);
4431         return nativeResponseValue;
4432 }
4433 /* @internal */
4434 export interface LDKAccess {
4435         get_utxo (genesis_hash: number, short_channel_id: bigint): number;
4436 }
4437
4438 /* @internal */
4439 export function LDKAccess_new(impl: LDKAccess): number {
4440         if(!isWasmInitialized) {
4441                 throw new Error("initializeWasm() must be awaited first!");
4442         }
4443         var new_obj_idx = js_objs.length;
4444         for (var i = 0; i < js_objs.length; i++) {
4445                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
4446         }
4447         js_objs[i] = new WeakRef(impl);
4448         return wasm.TS_LDKAccess_new(i);
4449 }
4450         // LDKCResult_TxOutAccessErrorZ Access_get_utxo LDKAccess *NONNULL_PTR this_arg, const uint8_t (*genesis_hash)[32], uint64_t short_channel_id
4451 /* @internal */
4452 export function Access_get_utxo(this_arg: number, genesis_hash: number, short_channel_id: bigint): number {
4453         if(!isWasmInitialized) {
4454                 throw new Error("initializeWasm() must be awaited first!");
4455         }
4456         const nativeResponseValue = wasm.TS_Access_get_utxo(this_arg, genesis_hash, short_channel_id);
4457         return nativeResponseValue;
4458 }
4459 /* @internal */
4460 export class LDKCOption_AccessZ {
4461         protected constructor() {}
4462 }
4463 /* @internal */
4464 export function LDKCOption_AccessZ_ty_from_ptr(ptr: number): number {
4465         if(!isWasmInitialized) {
4466                 throw new Error("initializeWasm() must be awaited first!");
4467         }
4468         const nativeResponseValue = wasm.TS_LDKCOption_AccessZ_ty_from_ptr(ptr);
4469         return nativeResponseValue;
4470 }
4471 /* @internal */
4472 export function LDKCOption_AccessZ_Some_get_some(ptr: number): number {
4473         if(!isWasmInitialized) {
4474                 throw new Error("initializeWasm() must be awaited first!");
4475         }
4476         const nativeResponseValue = wasm.TS_LDKCOption_AccessZ_Some_get_some(ptr);
4477         return nativeResponseValue;
4478 }
4479         // struct LDKChannelUpdateInfo CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
4480 /* @internal */
4481 export function CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(owner: number): number {
4482         if(!isWasmInitialized) {
4483                 throw new Error("initializeWasm() must be awaited first!");
4484         }
4485         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(owner);
4486         return nativeResponseValue;
4487 }
4488         // struct LDKDecodeError CResult_ChannelUpdateInfoDecodeErrorZ_get_err(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
4489 /* @internal */
4490 export function CResult_ChannelUpdateInfoDecodeErrorZ_get_err(owner: number): number {
4491         if(!isWasmInitialized) {
4492                 throw new Error("initializeWasm() must be awaited first!");
4493         }
4494         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_get_err(owner);
4495         return nativeResponseValue;
4496 }
4497         // struct LDKChannelInfo CResult_ChannelInfoDecodeErrorZ_get_ok(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
4498 /* @internal */
4499 export function CResult_ChannelInfoDecodeErrorZ_get_ok(owner: number): number {
4500         if(!isWasmInitialized) {
4501                 throw new Error("initializeWasm() must be awaited first!");
4502         }
4503         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_get_ok(owner);
4504         return nativeResponseValue;
4505 }
4506         // struct LDKDecodeError CResult_ChannelInfoDecodeErrorZ_get_err(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
4507 /* @internal */
4508 export function CResult_ChannelInfoDecodeErrorZ_get_err(owner: number): number {
4509         if(!isWasmInitialized) {
4510                 throw new Error("initializeWasm() must be awaited first!");
4511         }
4512         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_get_err(owner);
4513         return nativeResponseValue;
4514 }
4515         // struct LDKRoutingFees CResult_RoutingFeesDecodeErrorZ_get_ok(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
4516 /* @internal */
4517 export function CResult_RoutingFeesDecodeErrorZ_get_ok(owner: number): number {
4518         if(!isWasmInitialized) {
4519                 throw new Error("initializeWasm() must be awaited first!");
4520         }
4521         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_get_ok(owner);
4522         return nativeResponseValue;
4523 }
4524         // struct LDKDecodeError CResult_RoutingFeesDecodeErrorZ_get_err(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
4525 /* @internal */
4526 export function CResult_RoutingFeesDecodeErrorZ_get_err(owner: number): number {
4527         if(!isWasmInitialized) {
4528                 throw new Error("initializeWasm() must be awaited first!");
4529         }
4530         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_get_err(owner);
4531         return nativeResponseValue;
4532 }
4533         // struct LDKNodeAnnouncementInfo CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
4534 /* @internal */
4535 export function CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(owner: number): number {
4536         if(!isWasmInitialized) {
4537                 throw new Error("initializeWasm() must be awaited first!");
4538         }
4539         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(owner);
4540         return nativeResponseValue;
4541 }
4542         // struct LDKDecodeError CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
4543 /* @internal */
4544 export function CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(owner: number): number {
4545         if(!isWasmInitialized) {
4546                 throw new Error("initializeWasm() must be awaited first!");
4547         }
4548         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(owner);
4549         return nativeResponseValue;
4550 }
4551         // struct LDKNodeInfo CResult_NodeInfoDecodeErrorZ_get_ok(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
4552 /* @internal */
4553 export function CResult_NodeInfoDecodeErrorZ_get_ok(owner: number): number {
4554         if(!isWasmInitialized) {
4555                 throw new Error("initializeWasm() must be awaited first!");
4556         }
4557         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_get_ok(owner);
4558         return nativeResponseValue;
4559 }
4560         // struct LDKDecodeError CResult_NodeInfoDecodeErrorZ_get_err(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
4561 /* @internal */
4562 export function CResult_NodeInfoDecodeErrorZ_get_err(owner: number): number {
4563         if(!isWasmInitialized) {
4564                 throw new Error("initializeWasm() must be awaited first!");
4565         }
4566         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_get_err(owner);
4567         return nativeResponseValue;
4568 }
4569         // struct LDKNetworkGraph CResult_NetworkGraphDecodeErrorZ_get_ok(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
4570 /* @internal */
4571 export function CResult_NetworkGraphDecodeErrorZ_get_ok(owner: number): number {
4572         if(!isWasmInitialized) {
4573                 throw new Error("initializeWasm() must be awaited first!");
4574         }
4575         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_get_ok(owner);
4576         return nativeResponseValue;
4577 }
4578         // struct LDKDecodeError CResult_NetworkGraphDecodeErrorZ_get_err(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
4579 /* @internal */
4580 export function CResult_NetworkGraphDecodeErrorZ_get_err(owner: number): number {
4581         if(!isWasmInitialized) {
4582                 throw new Error("initializeWasm() must be awaited first!");
4583         }
4584         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_get_err(owner);
4585         return nativeResponseValue;
4586 }
4587 /* @internal */
4588 export class LDKCOption_CVec_NetAddressZZ {
4589         protected constructor() {}
4590 }
4591 /* @internal */
4592 export function LDKCOption_CVec_NetAddressZZ_ty_from_ptr(ptr: number): number {
4593         if(!isWasmInitialized) {
4594                 throw new Error("initializeWasm() must be awaited first!");
4595         }
4596         const nativeResponseValue = wasm.TS_LDKCOption_CVec_NetAddressZZ_ty_from_ptr(ptr);
4597         return nativeResponseValue;
4598 }
4599 /* @internal */
4600 export function LDKCOption_CVec_NetAddressZZ_Some_get_some(ptr: number): number {
4601         if(!isWasmInitialized) {
4602                 throw new Error("initializeWasm() must be awaited first!");
4603         }
4604         const nativeResponseValue = wasm.TS_LDKCOption_CVec_NetAddressZZ_Some_get_some(ptr);
4605         return nativeResponseValue;
4606 }
4607         // struct LDKNetAddress CResult_NetAddressDecodeErrorZ_get_ok(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
4608 /* @internal */
4609 export function CResult_NetAddressDecodeErrorZ_get_ok(owner: number): number {
4610         if(!isWasmInitialized) {
4611                 throw new Error("initializeWasm() must be awaited first!");
4612         }
4613         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_get_ok(owner);
4614         return nativeResponseValue;
4615 }
4616         // struct LDKDecodeError CResult_NetAddressDecodeErrorZ_get_err(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
4617 /* @internal */
4618 export function CResult_NetAddressDecodeErrorZ_get_err(owner: number): number {
4619         if(!isWasmInitialized) {
4620                 throw new Error("initializeWasm() must be awaited first!");
4621         }
4622         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_get_err(owner);
4623         return nativeResponseValue;
4624 }
4625         // struct LDKAcceptChannel CResult_AcceptChannelDecodeErrorZ_get_ok(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
4626 /* @internal */
4627 export function CResult_AcceptChannelDecodeErrorZ_get_ok(owner: number): number {
4628         if(!isWasmInitialized) {
4629                 throw new Error("initializeWasm() must be awaited first!");
4630         }
4631         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_get_ok(owner);
4632         return nativeResponseValue;
4633 }
4634         // struct LDKDecodeError CResult_AcceptChannelDecodeErrorZ_get_err(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
4635 /* @internal */
4636 export function CResult_AcceptChannelDecodeErrorZ_get_err(owner: number): number {
4637         if(!isWasmInitialized) {
4638                 throw new Error("initializeWasm() must be awaited first!");
4639         }
4640         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_get_err(owner);
4641         return nativeResponseValue;
4642 }
4643         // struct LDKAnnouncementSignatures CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
4644 /* @internal */
4645 export function CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(owner: number): number {
4646         if(!isWasmInitialized) {
4647                 throw new Error("initializeWasm() must be awaited first!");
4648         }
4649         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(owner);
4650         return nativeResponseValue;
4651 }
4652         // struct LDKDecodeError CResult_AnnouncementSignaturesDecodeErrorZ_get_err(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
4653 /* @internal */
4654 export function CResult_AnnouncementSignaturesDecodeErrorZ_get_err(owner: number): number {
4655         if(!isWasmInitialized) {
4656                 throw new Error("initializeWasm() must be awaited first!");
4657         }
4658         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_get_err(owner);
4659         return nativeResponseValue;
4660 }
4661         // struct LDKChannelReestablish CResult_ChannelReestablishDecodeErrorZ_get_ok(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
4662 /* @internal */
4663 export function CResult_ChannelReestablishDecodeErrorZ_get_ok(owner: number): number {
4664         if(!isWasmInitialized) {
4665                 throw new Error("initializeWasm() must be awaited first!");
4666         }
4667         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_get_ok(owner);
4668         return nativeResponseValue;
4669 }
4670         // struct LDKDecodeError CResult_ChannelReestablishDecodeErrorZ_get_err(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
4671 /* @internal */
4672 export function CResult_ChannelReestablishDecodeErrorZ_get_err(owner: number): number {
4673         if(!isWasmInitialized) {
4674                 throw new Error("initializeWasm() must be awaited first!");
4675         }
4676         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_get_err(owner);
4677         return nativeResponseValue;
4678 }
4679         // struct LDKClosingSigned CResult_ClosingSignedDecodeErrorZ_get_ok(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
4680 /* @internal */
4681 export function CResult_ClosingSignedDecodeErrorZ_get_ok(owner: number): number {
4682         if(!isWasmInitialized) {
4683                 throw new Error("initializeWasm() must be awaited first!");
4684         }
4685         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_get_ok(owner);
4686         return nativeResponseValue;
4687 }
4688         // struct LDKDecodeError CResult_ClosingSignedDecodeErrorZ_get_err(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
4689 /* @internal */
4690 export function CResult_ClosingSignedDecodeErrorZ_get_err(owner: number): number {
4691         if(!isWasmInitialized) {
4692                 throw new Error("initializeWasm() must be awaited first!");
4693         }
4694         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_get_err(owner);
4695         return nativeResponseValue;
4696 }
4697         // struct LDKClosingSignedFeeRange CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
4698 /* @internal */
4699 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(owner: number): number {
4700         if(!isWasmInitialized) {
4701                 throw new Error("initializeWasm() must be awaited first!");
4702         }
4703         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(owner);
4704         return nativeResponseValue;
4705 }
4706         // struct LDKDecodeError CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
4707 /* @internal */
4708 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(owner: number): number {
4709         if(!isWasmInitialized) {
4710                 throw new Error("initializeWasm() must be awaited first!");
4711         }
4712         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(owner);
4713         return nativeResponseValue;
4714 }
4715         // struct LDKCommitmentSigned CResult_CommitmentSignedDecodeErrorZ_get_ok(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
4716 /* @internal */
4717 export function CResult_CommitmentSignedDecodeErrorZ_get_ok(owner: number): number {
4718         if(!isWasmInitialized) {
4719                 throw new Error("initializeWasm() must be awaited first!");
4720         }
4721         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_get_ok(owner);
4722         return nativeResponseValue;
4723 }
4724         // struct LDKDecodeError CResult_CommitmentSignedDecodeErrorZ_get_err(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
4725 /* @internal */
4726 export function CResult_CommitmentSignedDecodeErrorZ_get_err(owner: number): number {
4727         if(!isWasmInitialized) {
4728                 throw new Error("initializeWasm() must be awaited first!");
4729         }
4730         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_get_err(owner);
4731         return nativeResponseValue;
4732 }
4733         // struct LDKFundingCreated CResult_FundingCreatedDecodeErrorZ_get_ok(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
4734 /* @internal */
4735 export function CResult_FundingCreatedDecodeErrorZ_get_ok(owner: number): number {
4736         if(!isWasmInitialized) {
4737                 throw new Error("initializeWasm() must be awaited first!");
4738         }
4739         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_get_ok(owner);
4740         return nativeResponseValue;
4741 }
4742         // struct LDKDecodeError CResult_FundingCreatedDecodeErrorZ_get_err(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
4743 /* @internal */
4744 export function CResult_FundingCreatedDecodeErrorZ_get_err(owner: number): number {
4745         if(!isWasmInitialized) {
4746                 throw new Error("initializeWasm() must be awaited first!");
4747         }
4748         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_get_err(owner);
4749         return nativeResponseValue;
4750 }
4751         // struct LDKFundingSigned CResult_FundingSignedDecodeErrorZ_get_ok(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
4752 /* @internal */
4753 export function CResult_FundingSignedDecodeErrorZ_get_ok(owner: number): number {
4754         if(!isWasmInitialized) {
4755                 throw new Error("initializeWasm() must be awaited first!");
4756         }
4757         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_get_ok(owner);
4758         return nativeResponseValue;
4759 }
4760         // struct LDKDecodeError CResult_FundingSignedDecodeErrorZ_get_err(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
4761 /* @internal */
4762 export function CResult_FundingSignedDecodeErrorZ_get_err(owner: number): number {
4763         if(!isWasmInitialized) {
4764                 throw new Error("initializeWasm() must be awaited first!");
4765         }
4766         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_get_err(owner);
4767         return nativeResponseValue;
4768 }
4769         // struct LDKFundingLocked CResult_FundingLockedDecodeErrorZ_get_ok(LDKCResult_FundingLockedDecodeErrorZ *NONNULL_PTR owner);
4770 /* @internal */
4771 export function CResult_FundingLockedDecodeErrorZ_get_ok(owner: number): number {
4772         if(!isWasmInitialized) {
4773                 throw new Error("initializeWasm() must be awaited first!");
4774         }
4775         const nativeResponseValue = wasm.TS_CResult_FundingLockedDecodeErrorZ_get_ok(owner);
4776         return nativeResponseValue;
4777 }
4778         // struct LDKDecodeError CResult_FundingLockedDecodeErrorZ_get_err(LDKCResult_FundingLockedDecodeErrorZ *NONNULL_PTR owner);
4779 /* @internal */
4780 export function CResult_FundingLockedDecodeErrorZ_get_err(owner: number): number {
4781         if(!isWasmInitialized) {
4782                 throw new Error("initializeWasm() must be awaited first!");
4783         }
4784         const nativeResponseValue = wasm.TS_CResult_FundingLockedDecodeErrorZ_get_err(owner);
4785         return nativeResponseValue;
4786 }
4787         // struct LDKInit CResult_InitDecodeErrorZ_get_ok(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
4788 /* @internal */
4789 export function CResult_InitDecodeErrorZ_get_ok(owner: number): number {
4790         if(!isWasmInitialized) {
4791                 throw new Error("initializeWasm() must be awaited first!");
4792         }
4793         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_get_ok(owner);
4794         return nativeResponseValue;
4795 }
4796         // struct LDKDecodeError CResult_InitDecodeErrorZ_get_err(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
4797 /* @internal */
4798 export function CResult_InitDecodeErrorZ_get_err(owner: number): number {
4799         if(!isWasmInitialized) {
4800                 throw new Error("initializeWasm() must be awaited first!");
4801         }
4802         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_get_err(owner);
4803         return nativeResponseValue;
4804 }
4805         // struct LDKOpenChannel CResult_OpenChannelDecodeErrorZ_get_ok(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
4806 /* @internal */
4807 export function CResult_OpenChannelDecodeErrorZ_get_ok(owner: number): number {
4808         if(!isWasmInitialized) {
4809                 throw new Error("initializeWasm() must be awaited first!");
4810         }
4811         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_get_ok(owner);
4812         return nativeResponseValue;
4813 }
4814         // struct LDKDecodeError CResult_OpenChannelDecodeErrorZ_get_err(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
4815 /* @internal */
4816 export function CResult_OpenChannelDecodeErrorZ_get_err(owner: number): number {
4817         if(!isWasmInitialized) {
4818                 throw new Error("initializeWasm() must be awaited first!");
4819         }
4820         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_get_err(owner);
4821         return nativeResponseValue;
4822 }
4823         // struct LDKRevokeAndACK CResult_RevokeAndACKDecodeErrorZ_get_ok(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
4824 /* @internal */
4825 export function CResult_RevokeAndACKDecodeErrorZ_get_ok(owner: number): number {
4826         if(!isWasmInitialized) {
4827                 throw new Error("initializeWasm() must be awaited first!");
4828         }
4829         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_get_ok(owner);
4830         return nativeResponseValue;
4831 }
4832         // struct LDKDecodeError CResult_RevokeAndACKDecodeErrorZ_get_err(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
4833 /* @internal */
4834 export function CResult_RevokeAndACKDecodeErrorZ_get_err(owner: number): number {
4835         if(!isWasmInitialized) {
4836                 throw new Error("initializeWasm() must be awaited first!");
4837         }
4838         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_get_err(owner);
4839         return nativeResponseValue;
4840 }
4841         // struct LDKShutdown CResult_ShutdownDecodeErrorZ_get_ok(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
4842 /* @internal */
4843 export function CResult_ShutdownDecodeErrorZ_get_ok(owner: number): number {
4844         if(!isWasmInitialized) {
4845                 throw new Error("initializeWasm() must be awaited first!");
4846         }
4847         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_get_ok(owner);
4848         return nativeResponseValue;
4849 }
4850         // struct LDKDecodeError CResult_ShutdownDecodeErrorZ_get_err(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
4851 /* @internal */
4852 export function CResult_ShutdownDecodeErrorZ_get_err(owner: number): number {
4853         if(!isWasmInitialized) {
4854                 throw new Error("initializeWasm() must be awaited first!");
4855         }
4856         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_get_err(owner);
4857         return nativeResponseValue;
4858 }
4859         // struct LDKUpdateFailHTLC CResult_UpdateFailHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
4860 /* @internal */
4861 export function CResult_UpdateFailHTLCDecodeErrorZ_get_ok(owner: number): number {
4862         if(!isWasmInitialized) {
4863                 throw new Error("initializeWasm() must be awaited first!");
4864         }
4865         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_get_ok(owner);
4866         return nativeResponseValue;
4867 }
4868         // struct LDKDecodeError CResult_UpdateFailHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
4869 /* @internal */
4870 export function CResult_UpdateFailHTLCDecodeErrorZ_get_err(owner: number): number {
4871         if(!isWasmInitialized) {
4872                 throw new Error("initializeWasm() must be awaited first!");
4873         }
4874         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_get_err(owner);
4875         return nativeResponseValue;
4876 }
4877         // struct LDKUpdateFailMalformedHTLC CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
4878 /* @internal */
4879 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(owner: number): number {
4880         if(!isWasmInitialized) {
4881                 throw new Error("initializeWasm() must be awaited first!");
4882         }
4883         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(owner);
4884         return nativeResponseValue;
4885 }
4886         // struct LDKDecodeError CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
4887 /* @internal */
4888 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(owner: number): number {
4889         if(!isWasmInitialized) {
4890                 throw new Error("initializeWasm() must be awaited first!");
4891         }
4892         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(owner);
4893         return nativeResponseValue;
4894 }
4895         // struct LDKUpdateFee CResult_UpdateFeeDecodeErrorZ_get_ok(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
4896 /* @internal */
4897 export function CResult_UpdateFeeDecodeErrorZ_get_ok(owner: number): number {
4898         if(!isWasmInitialized) {
4899                 throw new Error("initializeWasm() must be awaited first!");
4900         }
4901         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_get_ok(owner);
4902         return nativeResponseValue;
4903 }
4904         // struct LDKDecodeError CResult_UpdateFeeDecodeErrorZ_get_err(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
4905 /* @internal */
4906 export function CResult_UpdateFeeDecodeErrorZ_get_err(owner: number): number {
4907         if(!isWasmInitialized) {
4908                 throw new Error("initializeWasm() must be awaited first!");
4909         }
4910         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_get_err(owner);
4911         return nativeResponseValue;
4912 }
4913         // struct LDKUpdateFulfillHTLC CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
4914 /* @internal */
4915 export function CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(owner: number): number {
4916         if(!isWasmInitialized) {
4917                 throw new Error("initializeWasm() must be awaited first!");
4918         }
4919         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(owner);
4920         return nativeResponseValue;
4921 }
4922         // struct LDKDecodeError CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
4923 /* @internal */
4924 export function CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(owner: number): number {
4925         if(!isWasmInitialized) {
4926                 throw new Error("initializeWasm() must be awaited first!");
4927         }
4928         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(owner);
4929         return nativeResponseValue;
4930 }
4931         // struct LDKUpdateAddHTLC CResult_UpdateAddHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
4932 /* @internal */
4933 export function CResult_UpdateAddHTLCDecodeErrorZ_get_ok(owner: number): number {
4934         if(!isWasmInitialized) {
4935                 throw new Error("initializeWasm() must be awaited first!");
4936         }
4937         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_get_ok(owner);
4938         return nativeResponseValue;
4939 }
4940         // struct LDKDecodeError CResult_UpdateAddHTLCDecodeErrorZ_get_err(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
4941 /* @internal */
4942 export function CResult_UpdateAddHTLCDecodeErrorZ_get_err(owner: number): number {
4943         if(!isWasmInitialized) {
4944                 throw new Error("initializeWasm() must be awaited first!");
4945         }
4946         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_get_err(owner);
4947         return nativeResponseValue;
4948 }
4949         // struct LDKPing CResult_PingDecodeErrorZ_get_ok(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
4950 /* @internal */
4951 export function CResult_PingDecodeErrorZ_get_ok(owner: number): number {
4952         if(!isWasmInitialized) {
4953                 throw new Error("initializeWasm() must be awaited first!");
4954         }
4955         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_get_ok(owner);
4956         return nativeResponseValue;
4957 }
4958         // struct LDKDecodeError CResult_PingDecodeErrorZ_get_err(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
4959 /* @internal */
4960 export function CResult_PingDecodeErrorZ_get_err(owner: number): number {
4961         if(!isWasmInitialized) {
4962                 throw new Error("initializeWasm() must be awaited first!");
4963         }
4964         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_get_err(owner);
4965         return nativeResponseValue;
4966 }
4967         // struct LDKPong CResult_PongDecodeErrorZ_get_ok(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
4968 /* @internal */
4969 export function CResult_PongDecodeErrorZ_get_ok(owner: number): number {
4970         if(!isWasmInitialized) {
4971                 throw new Error("initializeWasm() must be awaited first!");
4972         }
4973         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_get_ok(owner);
4974         return nativeResponseValue;
4975 }
4976         // struct LDKDecodeError CResult_PongDecodeErrorZ_get_err(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
4977 /* @internal */
4978 export function CResult_PongDecodeErrorZ_get_err(owner: number): number {
4979         if(!isWasmInitialized) {
4980                 throw new Error("initializeWasm() must be awaited first!");
4981         }
4982         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_get_err(owner);
4983         return nativeResponseValue;
4984 }
4985         // struct LDKUnsignedChannelAnnouncement CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
4986 /* @internal */
4987 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(owner: number): number {
4988         if(!isWasmInitialized) {
4989                 throw new Error("initializeWasm() must be awaited first!");
4990         }
4991         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(owner);
4992         return nativeResponseValue;
4993 }
4994         // struct LDKDecodeError CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
4995 /* @internal */
4996 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(owner: number): number {
4997         if(!isWasmInitialized) {
4998                 throw new Error("initializeWasm() must be awaited first!");
4999         }
5000         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(owner);
5001         return nativeResponseValue;
5002 }
5003         // struct LDKChannelAnnouncement CResult_ChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5004 /* @internal */
5005 export function CResult_ChannelAnnouncementDecodeErrorZ_get_ok(owner: number): number {
5006         if(!isWasmInitialized) {
5007                 throw new Error("initializeWasm() must be awaited first!");
5008         }
5009         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_get_ok(owner);
5010         return nativeResponseValue;
5011 }
5012         // struct LDKDecodeError CResult_ChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5013 /* @internal */
5014 export function CResult_ChannelAnnouncementDecodeErrorZ_get_err(owner: number): number {
5015         if(!isWasmInitialized) {
5016                 throw new Error("initializeWasm() must be awaited first!");
5017         }
5018         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_get_err(owner);
5019         return nativeResponseValue;
5020 }
5021         // struct LDKUnsignedChannelUpdate CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5022 /* @internal */
5023 export function CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(owner: number): number {
5024         if(!isWasmInitialized) {
5025                 throw new Error("initializeWasm() must be awaited first!");
5026         }
5027         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(owner);
5028         return nativeResponseValue;
5029 }
5030         // struct LDKDecodeError CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5031 /* @internal */
5032 export function CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(owner: number): number {
5033         if(!isWasmInitialized) {
5034                 throw new Error("initializeWasm() must be awaited first!");
5035         }
5036         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(owner);
5037         return nativeResponseValue;
5038 }
5039         // struct LDKChannelUpdate CResult_ChannelUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5040 /* @internal */
5041 export function CResult_ChannelUpdateDecodeErrorZ_get_ok(owner: number): number {
5042         if(!isWasmInitialized) {
5043                 throw new Error("initializeWasm() must be awaited first!");
5044         }
5045         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_get_ok(owner);
5046         return nativeResponseValue;
5047 }
5048         // struct LDKDecodeError CResult_ChannelUpdateDecodeErrorZ_get_err(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5049 /* @internal */
5050 export function CResult_ChannelUpdateDecodeErrorZ_get_err(owner: number): number {
5051         if(!isWasmInitialized) {
5052                 throw new Error("initializeWasm() must be awaited first!");
5053         }
5054         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_get_err(owner);
5055         return nativeResponseValue;
5056 }
5057         // struct LDKErrorMessage CResult_ErrorMessageDecodeErrorZ_get_ok(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
5058 /* @internal */
5059 export function CResult_ErrorMessageDecodeErrorZ_get_ok(owner: number): number {
5060         if(!isWasmInitialized) {
5061                 throw new Error("initializeWasm() must be awaited first!");
5062         }
5063         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_get_ok(owner);
5064         return nativeResponseValue;
5065 }
5066         // struct LDKDecodeError CResult_ErrorMessageDecodeErrorZ_get_err(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
5067 /* @internal */
5068 export function CResult_ErrorMessageDecodeErrorZ_get_err(owner: number): number {
5069         if(!isWasmInitialized) {
5070                 throw new Error("initializeWasm() must be awaited first!");
5071         }
5072         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_get_err(owner);
5073         return nativeResponseValue;
5074 }
5075         // struct LDKWarningMessage CResult_WarningMessageDecodeErrorZ_get_ok(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
5076 /* @internal */
5077 export function CResult_WarningMessageDecodeErrorZ_get_ok(owner: number): number {
5078         if(!isWasmInitialized) {
5079                 throw new Error("initializeWasm() must be awaited first!");
5080         }
5081         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_get_ok(owner);
5082         return nativeResponseValue;
5083 }
5084         // struct LDKDecodeError CResult_WarningMessageDecodeErrorZ_get_err(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
5085 /* @internal */
5086 export function CResult_WarningMessageDecodeErrorZ_get_err(owner: number): number {
5087         if(!isWasmInitialized) {
5088                 throw new Error("initializeWasm() must be awaited first!");
5089         }
5090         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_get_err(owner);
5091         return nativeResponseValue;
5092 }
5093         // struct LDKUnsignedNodeAnnouncement CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5094 /* @internal */
5095 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(owner: number): number {
5096         if(!isWasmInitialized) {
5097                 throw new Error("initializeWasm() must be awaited first!");
5098         }
5099         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(owner);
5100         return nativeResponseValue;
5101 }
5102         // struct LDKDecodeError CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5103 /* @internal */
5104 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(owner: number): number {
5105         if(!isWasmInitialized) {
5106                 throw new Error("initializeWasm() must be awaited first!");
5107         }
5108         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(owner);
5109         return nativeResponseValue;
5110 }
5111         // struct LDKNodeAnnouncement CResult_NodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5112 /* @internal */
5113 export function CResult_NodeAnnouncementDecodeErrorZ_get_ok(owner: number): number {
5114         if(!isWasmInitialized) {
5115                 throw new Error("initializeWasm() must be awaited first!");
5116         }
5117         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_get_ok(owner);
5118         return nativeResponseValue;
5119 }
5120         // struct LDKDecodeError CResult_NodeAnnouncementDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5121 /* @internal */
5122 export function CResult_NodeAnnouncementDecodeErrorZ_get_err(owner: number): number {
5123         if(!isWasmInitialized) {
5124                 throw new Error("initializeWasm() must be awaited first!");
5125         }
5126         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_get_err(owner);
5127         return nativeResponseValue;
5128 }
5129         // struct LDKQueryShortChannelIds CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
5130 /* @internal */
5131 export function CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(owner: number): number {
5132         if(!isWasmInitialized) {
5133                 throw new Error("initializeWasm() must be awaited first!");
5134         }
5135         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(owner);
5136         return nativeResponseValue;
5137 }
5138         // struct LDKDecodeError CResult_QueryShortChannelIdsDecodeErrorZ_get_err(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
5139 /* @internal */
5140 export function CResult_QueryShortChannelIdsDecodeErrorZ_get_err(owner: number): number {
5141         if(!isWasmInitialized) {
5142                 throw new Error("initializeWasm() must be awaited first!");
5143         }
5144         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_get_err(owner);
5145         return nativeResponseValue;
5146 }
5147         // struct LDKReplyShortChannelIdsEnd CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
5148 /* @internal */
5149 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(owner: number): number {
5150         if(!isWasmInitialized) {
5151                 throw new Error("initializeWasm() must be awaited first!");
5152         }
5153         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(owner);
5154         return nativeResponseValue;
5155 }
5156         // struct LDKDecodeError CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
5157 /* @internal */
5158 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(owner: number): number {
5159         if(!isWasmInitialized) {
5160                 throw new Error("initializeWasm() must be awaited first!");
5161         }
5162         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(owner);
5163         return nativeResponseValue;
5164 }
5165         // struct LDKQueryChannelRange CResult_QueryChannelRangeDecodeErrorZ_get_ok(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5166 /* @internal */
5167 export function CResult_QueryChannelRangeDecodeErrorZ_get_ok(owner: number): number {
5168         if(!isWasmInitialized) {
5169                 throw new Error("initializeWasm() must be awaited first!");
5170         }
5171         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_get_ok(owner);
5172         return nativeResponseValue;
5173 }
5174         // struct LDKDecodeError CResult_QueryChannelRangeDecodeErrorZ_get_err(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5175 /* @internal */
5176 export function CResult_QueryChannelRangeDecodeErrorZ_get_err(owner: number): number {
5177         if(!isWasmInitialized) {
5178                 throw new Error("initializeWasm() must be awaited first!");
5179         }
5180         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_get_err(owner);
5181         return nativeResponseValue;
5182 }
5183         // struct LDKReplyChannelRange CResult_ReplyChannelRangeDecodeErrorZ_get_ok(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5184 /* @internal */
5185 export function CResult_ReplyChannelRangeDecodeErrorZ_get_ok(owner: number): number {
5186         if(!isWasmInitialized) {
5187                 throw new Error("initializeWasm() must be awaited first!");
5188         }
5189         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_get_ok(owner);
5190         return nativeResponseValue;
5191 }
5192         // struct LDKDecodeError CResult_ReplyChannelRangeDecodeErrorZ_get_err(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5193 /* @internal */
5194 export function CResult_ReplyChannelRangeDecodeErrorZ_get_err(owner: number): number {
5195         if(!isWasmInitialized) {
5196                 throw new Error("initializeWasm() must be awaited first!");
5197         }
5198         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_get_err(owner);
5199         return nativeResponseValue;
5200 }
5201         // struct LDKGossipTimestampFilter CResult_GossipTimestampFilterDecodeErrorZ_get_ok(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
5202 /* @internal */
5203 export function CResult_GossipTimestampFilterDecodeErrorZ_get_ok(owner: number): number {
5204         if(!isWasmInitialized) {
5205                 throw new Error("initializeWasm() must be awaited first!");
5206         }
5207         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_get_ok(owner);
5208         return nativeResponseValue;
5209 }
5210         // struct LDKDecodeError CResult_GossipTimestampFilterDecodeErrorZ_get_err(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
5211 /* @internal */
5212 export function CResult_GossipTimestampFilterDecodeErrorZ_get_err(owner: number): number {
5213         if(!isWasmInitialized) {
5214                 throw new Error("initializeWasm() must be awaited first!");
5215         }
5216         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_get_err(owner);
5217         return nativeResponseValue;
5218 }
5219 /* @internal */
5220 export class LDKSignOrCreationError {
5221         protected constructor() {}
5222 }
5223 /* @internal */
5224 export function LDKSignOrCreationError_ty_from_ptr(ptr: number): number {
5225         if(!isWasmInitialized) {
5226                 throw new Error("initializeWasm() must be awaited first!");
5227         }
5228         const nativeResponseValue = wasm.TS_LDKSignOrCreationError_ty_from_ptr(ptr);
5229         return nativeResponseValue;
5230 }
5231 /* @internal */
5232 export function LDKSignOrCreationError_CreationError_get_creation_error(ptr: number): CreationError {
5233         if(!isWasmInitialized) {
5234                 throw new Error("initializeWasm() must be awaited first!");
5235         }
5236         const nativeResponseValue = wasm.TS_LDKSignOrCreationError_CreationError_get_creation_error(ptr);
5237         return nativeResponseValue;
5238 }
5239         // struct LDKInvoice CResult_InvoiceSignOrCreationErrorZ_get_ok(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
5240 /* @internal */
5241 export function CResult_InvoiceSignOrCreationErrorZ_get_ok(owner: number): number {
5242         if(!isWasmInitialized) {
5243                 throw new Error("initializeWasm() must be awaited first!");
5244         }
5245         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_get_ok(owner);
5246         return nativeResponseValue;
5247 }
5248         // struct LDKSignOrCreationError CResult_InvoiceSignOrCreationErrorZ_get_err(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
5249 /* @internal */
5250 export function CResult_InvoiceSignOrCreationErrorZ_get_err(owner: number): number {
5251         if(!isWasmInitialized) {
5252                 throw new Error("initializeWasm() must be awaited first!");
5253         }
5254         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_get_err(owner);
5255         return nativeResponseValue;
5256 }
5257 /* @internal */
5258 export interface LDKFilter {
5259         register_tx (txid: number, script_pubkey: number): void;
5260         register_output (output: number): number;
5261 }
5262
5263 /* @internal */
5264 export function LDKFilter_new(impl: LDKFilter): 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_LDKFilter_new(i);
5274 }
5275         // void Filter_register_tx LDKFilter *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKu8slice script_pubkey
5276 /* @internal */
5277 export function Filter_register_tx(this_arg: number, txid: number, script_pubkey: number): void {
5278         if(!isWasmInitialized) {
5279                 throw new Error("initializeWasm() must be awaited first!");
5280         }
5281         const nativeResponseValue = wasm.TS_Filter_register_tx(this_arg, txid, script_pubkey);
5282         // debug statements here
5283 }
5284         // LDKCOption_C2Tuple_usizeTransactionZZ Filter_register_output LDKFilter *NONNULL_PTR this_arg, struct LDKWatchedOutput output
5285 /* @internal */
5286 export function Filter_register_output(this_arg: number, output: number): number {
5287         if(!isWasmInitialized) {
5288                 throw new Error("initializeWasm() must be awaited first!");
5289         }
5290         const nativeResponseValue = wasm.TS_Filter_register_output(this_arg, output);
5291         return nativeResponseValue;
5292 }
5293 /* @internal */
5294 export class LDKCOption_FilterZ {
5295         protected constructor() {}
5296 }
5297 /* @internal */
5298 export function LDKCOption_FilterZ_ty_from_ptr(ptr: number): number {
5299         if(!isWasmInitialized) {
5300                 throw new Error("initializeWasm() must be awaited first!");
5301         }
5302         const nativeResponseValue = wasm.TS_LDKCOption_FilterZ_ty_from_ptr(ptr);
5303         return nativeResponseValue;
5304 }
5305 /* @internal */
5306 export function LDKCOption_FilterZ_Some_get_some(ptr: number): number {
5307         if(!isWasmInitialized) {
5308                 throw new Error("initializeWasm() must be awaited first!");
5309         }
5310         const nativeResponseValue = wasm.TS_LDKCOption_FilterZ_Some_get_some(ptr);
5311         return nativeResponseValue;
5312 }
5313         // struct LDKLockedChannelMonitor *CResult_LockedChannelMonitorNoneZ_get_ok(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
5314 /* @internal */
5315 export function CResult_LockedChannelMonitorNoneZ_get_ok(owner: number): number {
5316         if(!isWasmInitialized) {
5317                 throw new Error("initializeWasm() must be awaited first!");
5318         }
5319         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_get_ok(owner);
5320         return nativeResponseValue;
5321 }
5322         // void CResult_LockedChannelMonitorNoneZ_get_err(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
5323 /* @internal */
5324 export function CResult_LockedChannelMonitorNoneZ_get_err(owner: number): void {
5325         if(!isWasmInitialized) {
5326                 throw new Error("initializeWasm() must be awaited first!");
5327         }
5328         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_get_err(owner);
5329         // debug statements here
5330 }
5331 /* @internal */
5332 export interface LDKMessageSendEventsProvider {
5333         get_and_clear_pending_msg_events (): number;
5334 }
5335
5336 /* @internal */
5337 export function LDKMessageSendEventsProvider_new(impl: LDKMessageSendEventsProvider): number {
5338         if(!isWasmInitialized) {
5339                 throw new Error("initializeWasm() must be awaited first!");
5340         }
5341         var new_obj_idx = js_objs.length;
5342         for (var i = 0; i < js_objs.length; i++) {
5343                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5344         }
5345         js_objs[i] = new WeakRef(impl);
5346         return wasm.TS_LDKMessageSendEventsProvider_new(i);
5347 }
5348         // LDKCVec_MessageSendEventZ MessageSendEventsProvider_get_and_clear_pending_msg_events LDKMessageSendEventsProvider *NONNULL_PTR this_arg
5349 /* @internal */
5350 export function MessageSendEventsProvider_get_and_clear_pending_msg_events(this_arg: number): number {
5351         if(!isWasmInitialized) {
5352                 throw new Error("initializeWasm() must be awaited first!");
5353         }
5354         const nativeResponseValue = wasm.TS_MessageSendEventsProvider_get_and_clear_pending_msg_events(this_arg);
5355         return nativeResponseValue;
5356 }
5357 /* @internal */
5358 export interface LDKEventHandler {
5359         handle_event (event: number): void;
5360 }
5361
5362 /* @internal */
5363 export function LDKEventHandler_new(impl: LDKEventHandler): number {
5364         if(!isWasmInitialized) {
5365                 throw new Error("initializeWasm() must be awaited first!");
5366         }
5367         var new_obj_idx = js_objs.length;
5368         for (var i = 0; i < js_objs.length; i++) {
5369                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5370         }
5371         js_objs[i] = new WeakRef(impl);
5372         return wasm.TS_LDKEventHandler_new(i);
5373 }
5374         // void EventHandler_handle_event LDKEventHandler *NONNULL_PTR this_arg, const struct LDKEvent *NONNULL_PTR event
5375 /* @internal */
5376 export function EventHandler_handle_event(this_arg: number, event: number): void {
5377         if(!isWasmInitialized) {
5378                 throw new Error("initializeWasm() must be awaited first!");
5379         }
5380         const nativeResponseValue = wasm.TS_EventHandler_handle_event(this_arg, event);
5381         // debug statements here
5382 }
5383 /* @internal */
5384 export interface LDKEventsProvider {
5385         process_pending_events (handler: number): void;
5386 }
5387
5388 /* @internal */
5389 export function LDKEventsProvider_new(impl: LDKEventsProvider): number {
5390         if(!isWasmInitialized) {
5391                 throw new Error("initializeWasm() must be awaited first!");
5392         }
5393         var new_obj_idx = js_objs.length;
5394         for (var i = 0; i < js_objs.length; i++) {
5395                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5396         }
5397         js_objs[i] = new WeakRef(impl);
5398         return wasm.TS_LDKEventsProvider_new(i);
5399 }
5400         // void EventsProvider_process_pending_events LDKEventsProvider *NONNULL_PTR this_arg, struct LDKEventHandler handler
5401 /* @internal */
5402 export function EventsProvider_process_pending_events(this_arg: number, handler: number): void {
5403         if(!isWasmInitialized) {
5404                 throw new Error("initializeWasm() must be awaited first!");
5405         }
5406         const nativeResponseValue = wasm.TS_EventsProvider_process_pending_events(this_arg, handler);
5407         // debug statements here
5408 }
5409 /* @internal */
5410 export interface LDKListen {
5411         block_connected (block: number, height: number): void;
5412         block_disconnected (header: number, height: number): void;
5413 }
5414
5415 /* @internal */
5416 export function LDKListen_new(impl: LDKListen): number {
5417         if(!isWasmInitialized) {
5418                 throw new Error("initializeWasm() must be awaited first!");
5419         }
5420         var new_obj_idx = js_objs.length;
5421         for (var i = 0; i < js_objs.length; i++) {
5422                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5423         }
5424         js_objs[i] = new WeakRef(impl);
5425         return wasm.TS_LDKListen_new(i);
5426 }
5427         // void Listen_block_connected LDKListen *NONNULL_PTR this_arg, struct LDKu8slice block, uint32_t height
5428 /* @internal */
5429 export function Listen_block_connected(this_arg: number, block: number, height: number): void {
5430         if(!isWasmInitialized) {
5431                 throw new Error("initializeWasm() must be awaited first!");
5432         }
5433         const nativeResponseValue = wasm.TS_Listen_block_connected(this_arg, block, height);
5434         // debug statements here
5435 }
5436         // void Listen_block_disconnected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
5437 /* @internal */
5438 export function Listen_block_disconnected(this_arg: number, header: number, height: number): void {
5439         if(!isWasmInitialized) {
5440                 throw new Error("initializeWasm() must be awaited first!");
5441         }
5442         const nativeResponseValue = wasm.TS_Listen_block_disconnected(this_arg, header, height);
5443         // debug statements here
5444 }
5445 /* @internal */
5446 export interface LDKConfirm {
5447         transactions_confirmed (header: number, txdata: number, height: number): void;
5448         transaction_unconfirmed (txid: number): void;
5449         best_block_updated (header: number, height: number): void;
5450         get_relevant_txids (): number;
5451 }
5452
5453 /* @internal */
5454 export function LDKConfirm_new(impl: LDKConfirm): number {
5455         if(!isWasmInitialized) {
5456                 throw new Error("initializeWasm() must be awaited first!");
5457         }
5458         var new_obj_idx = js_objs.length;
5459         for (var i = 0; i < js_objs.length; i++) {
5460                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5461         }
5462         js_objs[i] = new WeakRef(impl);
5463         return wasm.TS_LDKConfirm_new(i);
5464 }
5465         // void Confirm_transactions_confirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
5466 /* @internal */
5467 export function Confirm_transactions_confirmed(this_arg: number, header: number, txdata: number, height: number): void {
5468         if(!isWasmInitialized) {
5469                 throw new Error("initializeWasm() must be awaited first!");
5470         }
5471         const nativeResponseValue = wasm.TS_Confirm_transactions_confirmed(this_arg, header, txdata, height);
5472         // debug statements here
5473 }
5474         // void Confirm_transaction_unconfirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*txid)[32]
5475 /* @internal */
5476 export function Confirm_transaction_unconfirmed(this_arg: number, txid: number): void {
5477         if(!isWasmInitialized) {
5478                 throw new Error("initializeWasm() must be awaited first!");
5479         }
5480         const nativeResponseValue = wasm.TS_Confirm_transaction_unconfirmed(this_arg, txid);
5481         // debug statements here
5482 }
5483         // void Confirm_best_block_updated LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
5484 /* @internal */
5485 export function Confirm_best_block_updated(this_arg: number, header: number, height: number): void {
5486         if(!isWasmInitialized) {
5487                 throw new Error("initializeWasm() must be awaited first!");
5488         }
5489         const nativeResponseValue = wasm.TS_Confirm_best_block_updated(this_arg, header, height);
5490         // debug statements here
5491 }
5492         // LDKCVec_TxidZ Confirm_get_relevant_txids LDKConfirm *NONNULL_PTR this_arg
5493 /* @internal */
5494 export function Confirm_get_relevant_txids(this_arg: number): number {
5495         if(!isWasmInitialized) {
5496                 throw new Error("initializeWasm() must be awaited first!");
5497         }
5498         const nativeResponseValue = wasm.TS_Confirm_get_relevant_txids(this_arg);
5499         return nativeResponseValue;
5500 }
5501 /* @internal */
5502 export interface LDKPersist {
5503         persist_new_channel (channel_id: number, data: number, update_id: number): number;
5504         update_persisted_channel (channel_id: number, update: number, data: number, update_id: number): number;
5505 }
5506
5507 /* @internal */
5508 export function LDKPersist_new(impl: LDKPersist): number {
5509         if(!isWasmInitialized) {
5510                 throw new Error("initializeWasm() must be awaited first!");
5511         }
5512         var new_obj_idx = js_objs.length;
5513         for (var i = 0; i < js_objs.length; i++) {
5514                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5515         }
5516         js_objs[i] = new WeakRef(impl);
5517         return wasm.TS_LDKPersist_new(i);
5518 }
5519         // 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
5520 /* @internal */
5521 export function Persist_persist_new_channel(this_arg: number, channel_id: number, data: number, update_id: number): number {
5522         if(!isWasmInitialized) {
5523                 throw new Error("initializeWasm() must be awaited first!");
5524         }
5525         const nativeResponseValue = wasm.TS_Persist_persist_new_channel(this_arg, channel_id, data, update_id);
5526         return nativeResponseValue;
5527 }
5528         // 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
5529 /* @internal */
5530 export function Persist_update_persisted_channel(this_arg: number, channel_id: number, update: number, data: number, update_id: number): number {
5531         if(!isWasmInitialized) {
5532                 throw new Error("initializeWasm() must be awaited first!");
5533         }
5534         const nativeResponseValue = wasm.TS_Persist_update_persisted_channel(this_arg, channel_id, update, data, update_id);
5535         return nativeResponseValue;
5536 }
5537 /* @internal */
5538 export interface LDKChannelMessageHandler {
5539         handle_open_channel (their_node_id: number, their_features: number, msg: number): void;
5540         handle_accept_channel (their_node_id: number, their_features: number, msg: number): void;
5541         handle_funding_created (their_node_id: number, msg: number): void;
5542         handle_funding_signed (their_node_id: number, msg: number): void;
5543         handle_funding_locked (their_node_id: number, msg: number): void;
5544         handle_shutdown (their_node_id: number, their_features: number, msg: number): void;
5545         handle_closing_signed (their_node_id: number, msg: number): void;
5546         handle_update_add_htlc (their_node_id: number, msg: number): void;
5547         handle_update_fulfill_htlc (their_node_id: number, msg: number): void;
5548         handle_update_fail_htlc (their_node_id: number, msg: number): void;
5549         handle_update_fail_malformed_htlc (their_node_id: number, msg: number): void;
5550         handle_commitment_signed (their_node_id: number, msg: number): void;
5551         handle_revoke_and_ack (their_node_id: number, msg: number): void;
5552         handle_update_fee (their_node_id: number, msg: number): void;
5553         handle_announcement_signatures (their_node_id: number, msg: number): void;
5554         peer_disconnected (their_node_id: number, no_connection_possible: boolean): void;
5555         peer_connected (their_node_id: number, msg: number): void;
5556         handle_channel_reestablish (their_node_id: number, msg: number): void;
5557         handle_channel_update (their_node_id: number, msg: number): void;
5558         handle_error (their_node_id: number, msg: number): void;
5559 }
5560
5561 /* @internal */
5562 export function LDKChannelMessageHandler_new(impl: LDKChannelMessageHandler, MessageSendEventsProvider: LDKMessageSendEventsProvider): number {
5563         if(!isWasmInitialized) {
5564                 throw new Error("initializeWasm() must be awaited first!");
5565         }
5566         var new_obj_idx = js_objs.length;
5567         for (var i = 0; i < js_objs.length; i++) {
5568                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5569         }
5570         js_objs[i] = new WeakRef(impl);
5571         return wasm.TS_LDKChannelMessageHandler_new(i);
5572 }
5573         // 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
5574 /* @internal */
5575 export function ChannelMessageHandler_handle_open_channel(this_arg: number, their_node_id: number, their_features: number, msg: number): void {
5576         if(!isWasmInitialized) {
5577                 throw new Error("initializeWasm() must be awaited first!");
5578         }
5579         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_open_channel(this_arg, their_node_id, their_features, msg);
5580         // debug statements here
5581 }
5582         // 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
5583 /* @internal */
5584 export function ChannelMessageHandler_handle_accept_channel(this_arg: number, their_node_id: number, their_features: number, msg: number): void {
5585         if(!isWasmInitialized) {
5586                 throw new Error("initializeWasm() must be awaited first!");
5587         }
5588         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_accept_channel(this_arg, their_node_id, their_features, msg);
5589         // debug statements here
5590 }
5591         // void ChannelMessageHandler_handle_funding_created LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingCreated *NONNULL_PTR msg
5592 /* @internal */
5593 export function ChannelMessageHandler_handle_funding_created(this_arg: number, their_node_id: number, msg: number): void {
5594         if(!isWasmInitialized) {
5595                 throw new Error("initializeWasm() must be awaited first!");
5596         }
5597         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_funding_created(this_arg, their_node_id, msg);
5598         // debug statements here
5599 }
5600         // void ChannelMessageHandler_handle_funding_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingSigned *NONNULL_PTR msg
5601 /* @internal */
5602 export function ChannelMessageHandler_handle_funding_signed(this_arg: number, their_node_id: number, msg: number): void {
5603         if(!isWasmInitialized) {
5604                 throw new Error("initializeWasm() must be awaited first!");
5605         }
5606         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_funding_signed(this_arg, their_node_id, msg);
5607         // debug statements here
5608 }
5609         // void ChannelMessageHandler_handle_funding_locked LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingLocked *NONNULL_PTR msg
5610 /* @internal */
5611 export function ChannelMessageHandler_handle_funding_locked(this_arg: number, their_node_id: number, msg: number): void {
5612         if(!isWasmInitialized) {
5613                 throw new Error("initializeWasm() must be awaited first!");
5614         }
5615         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_funding_locked(this_arg, their_node_id, msg);
5616         // debug statements here
5617 }
5618         // 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
5619 /* @internal */
5620 export function ChannelMessageHandler_handle_shutdown(this_arg: number, their_node_id: number, their_features: number, msg: number): void {
5621         if(!isWasmInitialized) {
5622                 throw new Error("initializeWasm() must be awaited first!");
5623         }
5624         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_shutdown(this_arg, their_node_id, their_features, msg);
5625         // debug statements here
5626 }
5627         // void ChannelMessageHandler_handle_closing_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKClosingSigned *NONNULL_PTR msg
5628 /* @internal */
5629 export function ChannelMessageHandler_handle_closing_signed(this_arg: number, their_node_id: number, msg: number): void {
5630         if(!isWasmInitialized) {
5631                 throw new Error("initializeWasm() must be awaited first!");
5632         }
5633         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_closing_signed(this_arg, their_node_id, msg);
5634         // debug statements here
5635 }
5636         // void ChannelMessageHandler_handle_update_add_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateAddHTLC *NONNULL_PTR msg
5637 /* @internal */
5638 export function ChannelMessageHandler_handle_update_add_htlc(this_arg: number, their_node_id: number, msg: number): void {
5639         if(!isWasmInitialized) {
5640                 throw new Error("initializeWasm() must be awaited first!");
5641         }
5642         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_add_htlc(this_arg, their_node_id, msg);
5643         // debug statements here
5644 }
5645         // void ChannelMessageHandler_handle_update_fulfill_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFulfillHTLC *NONNULL_PTR msg
5646 /* @internal */
5647 export function ChannelMessageHandler_handle_update_fulfill_htlc(this_arg: number, their_node_id: number, msg: number): void {
5648         if(!isWasmInitialized) {
5649                 throw new Error("initializeWasm() must be awaited first!");
5650         }
5651         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fulfill_htlc(this_arg, their_node_id, msg);
5652         // debug statements here
5653 }
5654         // void ChannelMessageHandler_handle_update_fail_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailHTLC *NONNULL_PTR msg
5655 /* @internal */
5656 export function ChannelMessageHandler_handle_update_fail_htlc(this_arg: number, their_node_id: number, msg: number): void {
5657         if(!isWasmInitialized) {
5658                 throw new Error("initializeWasm() must be awaited first!");
5659         }
5660         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fail_htlc(this_arg, their_node_id, msg);
5661         // debug statements here
5662 }
5663         // void ChannelMessageHandler_handle_update_fail_malformed_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR msg
5664 /* @internal */
5665 export function ChannelMessageHandler_handle_update_fail_malformed_htlc(this_arg: number, their_node_id: number, msg: number): void {
5666         if(!isWasmInitialized) {
5667                 throw new Error("initializeWasm() must be awaited first!");
5668         }
5669         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fail_malformed_htlc(this_arg, their_node_id, msg);
5670         // debug statements here
5671 }
5672         // void ChannelMessageHandler_handle_commitment_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKCommitmentSigned *NONNULL_PTR msg
5673 /* @internal */
5674 export function ChannelMessageHandler_handle_commitment_signed(this_arg: number, their_node_id: number, msg: number): void {
5675         if(!isWasmInitialized) {
5676                 throw new Error("initializeWasm() must be awaited first!");
5677         }
5678         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_commitment_signed(this_arg, their_node_id, msg);
5679         // debug statements here
5680 }
5681         // void ChannelMessageHandler_handle_revoke_and_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKRevokeAndACK *NONNULL_PTR msg
5682 /* @internal */
5683 export function ChannelMessageHandler_handle_revoke_and_ack(this_arg: number, their_node_id: number, msg: number): void {
5684         if(!isWasmInitialized) {
5685                 throw new Error("initializeWasm() must be awaited first!");
5686         }
5687         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_revoke_and_ack(this_arg, their_node_id, msg);
5688         // debug statements here
5689 }
5690         // void ChannelMessageHandler_handle_update_fee LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFee *NONNULL_PTR msg
5691 /* @internal */
5692 export function ChannelMessageHandler_handle_update_fee(this_arg: number, their_node_id: number, msg: number): void {
5693         if(!isWasmInitialized) {
5694                 throw new Error("initializeWasm() must be awaited first!");
5695         }
5696         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fee(this_arg, their_node_id, msg);
5697         // debug statements here
5698 }
5699         // void ChannelMessageHandler_handle_announcement_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAnnouncementSignatures *NONNULL_PTR msg
5700 /* @internal */
5701 export function ChannelMessageHandler_handle_announcement_signatures(this_arg: number, their_node_id: number, msg: number): void {
5702         if(!isWasmInitialized) {
5703                 throw new Error("initializeWasm() must be awaited first!");
5704         }
5705         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_announcement_signatures(this_arg, their_node_id, msg);
5706         // debug statements here
5707 }
5708         // void ChannelMessageHandler_peer_disconnected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, bool no_connection_possible
5709 /* @internal */
5710 export function ChannelMessageHandler_peer_disconnected(this_arg: number, their_node_id: number, no_connection_possible: boolean): void {
5711         if(!isWasmInitialized) {
5712                 throw new Error("initializeWasm() must be awaited first!");
5713         }
5714         const nativeResponseValue = wasm.TS_ChannelMessageHandler_peer_disconnected(this_arg, their_node_id, no_connection_possible);
5715         // debug statements here
5716 }
5717         // void ChannelMessageHandler_peer_connected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR msg
5718 /* @internal */
5719 export function ChannelMessageHandler_peer_connected(this_arg: number, their_node_id: number, msg: number): void {
5720         if(!isWasmInitialized) {
5721                 throw new Error("initializeWasm() must be awaited first!");
5722         }
5723         const nativeResponseValue = wasm.TS_ChannelMessageHandler_peer_connected(this_arg, their_node_id, msg);
5724         // debug statements here
5725 }
5726         // void ChannelMessageHandler_handle_channel_reestablish LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReestablish *NONNULL_PTR msg
5727 /* @internal */
5728 export function ChannelMessageHandler_handle_channel_reestablish(this_arg: number, their_node_id: number, msg: number): void {
5729         if(!isWasmInitialized) {
5730                 throw new Error("initializeWasm() must be awaited first!");
5731         }
5732         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_channel_reestablish(this_arg, their_node_id, msg);
5733         // debug statements here
5734 }
5735         // void ChannelMessageHandler_handle_channel_update LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelUpdate *NONNULL_PTR msg
5736 /* @internal */
5737 export function ChannelMessageHandler_handle_channel_update(this_arg: number, their_node_id: number, msg: number): void {
5738         if(!isWasmInitialized) {
5739                 throw new Error("initializeWasm() must be awaited first!");
5740         }
5741         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_channel_update(this_arg, their_node_id, msg);
5742         // debug statements here
5743 }
5744         // void ChannelMessageHandler_handle_error LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKErrorMessage *NONNULL_PTR msg
5745 /* @internal */
5746 export function ChannelMessageHandler_handle_error(this_arg: number, their_node_id: number, msg: number): void {
5747         if(!isWasmInitialized) {
5748                 throw new Error("initializeWasm() must be awaited first!");
5749         }
5750         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_error(this_arg, their_node_id, msg);
5751         // debug statements here
5752 }
5753 /* @internal */
5754 export interface LDKRoutingMessageHandler {
5755         handle_node_announcement (msg: number): number;
5756         handle_channel_announcement (msg: number): number;
5757         handle_channel_update (msg: number): number;
5758         get_next_channel_announcements (starting_point: bigint, batch_amount: number): number;
5759         get_next_node_announcements (starting_point: number, batch_amount: number): number;
5760         peer_connected (their_node_id: number, init: number): void;
5761         handle_reply_channel_range (their_node_id: number, msg: number): number;
5762         handle_reply_short_channel_ids_end (their_node_id: number, msg: number): number;
5763         handle_query_channel_range (their_node_id: number, msg: number): number;
5764         handle_query_short_channel_ids (their_node_id: number, msg: number): number;
5765 }
5766
5767 /* @internal */
5768 export function LDKRoutingMessageHandler_new(impl: LDKRoutingMessageHandler, MessageSendEventsProvider: LDKMessageSendEventsProvider): number {
5769         if(!isWasmInitialized) {
5770                 throw new Error("initializeWasm() must be awaited first!");
5771         }
5772         var new_obj_idx = js_objs.length;
5773         for (var i = 0; i < js_objs.length; i++) {
5774                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5775         }
5776         js_objs[i] = new WeakRef(impl);
5777         return wasm.TS_LDKRoutingMessageHandler_new(i);
5778 }
5779         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg
5780 /* @internal */
5781 export function RoutingMessageHandler_handle_node_announcement(this_arg: number, msg: number): number {
5782         if(!isWasmInitialized) {
5783                 throw new Error("initializeWasm() must be awaited first!");
5784         }
5785         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_node_announcement(this_arg, msg);
5786         return nativeResponseValue;
5787 }
5788         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg
5789 /* @internal */
5790 export function RoutingMessageHandler_handle_channel_announcement(this_arg: number, msg: number): number {
5791         if(!isWasmInitialized) {
5792                 throw new Error("initializeWasm() must be awaited first!");
5793         }
5794         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_channel_announcement(this_arg, msg);
5795         return nativeResponseValue;
5796 }
5797         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_update LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg
5798 /* @internal */
5799 export function RoutingMessageHandler_handle_channel_update(this_arg: number, msg: number): number {
5800         if(!isWasmInitialized) {
5801                 throw new Error("initializeWasm() must be awaited first!");
5802         }
5803         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_channel_update(this_arg, msg);
5804         return nativeResponseValue;
5805 }
5806         // LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ RoutingMessageHandler_get_next_channel_announcements LDKRoutingMessageHandler *NONNULL_PTR this_arg, uint64_t starting_point, uint8_t batch_amount
5807 /* @internal */
5808 export function RoutingMessageHandler_get_next_channel_announcements(this_arg: number, starting_point: bigint, batch_amount: number): number {
5809         if(!isWasmInitialized) {
5810                 throw new Error("initializeWasm() must be awaited first!");
5811         }
5812         const nativeResponseValue = wasm.TS_RoutingMessageHandler_get_next_channel_announcements(this_arg, starting_point, batch_amount);
5813         return nativeResponseValue;
5814 }
5815         // LDKCVec_NodeAnnouncementZ RoutingMessageHandler_get_next_node_announcements LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey starting_point, uint8_t batch_amount
5816 /* @internal */
5817 export function RoutingMessageHandler_get_next_node_announcements(this_arg: number, starting_point: number, batch_amount: number): number {
5818         if(!isWasmInitialized) {
5819                 throw new Error("initializeWasm() must be awaited first!");
5820         }
5821         const nativeResponseValue = wasm.TS_RoutingMessageHandler_get_next_node_announcements(this_arg, starting_point, batch_amount);
5822         return nativeResponseValue;
5823 }
5824         // void RoutingMessageHandler_peer_connected LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init
5825 /* @internal */
5826 export function RoutingMessageHandler_peer_connected(this_arg: number, their_node_id: number, init: number): void {
5827         if(!isWasmInitialized) {
5828                 throw new Error("initializeWasm() must be awaited first!");
5829         }
5830         const nativeResponseValue = wasm.TS_RoutingMessageHandler_peer_connected(this_arg, their_node_id, init);
5831         // debug statements here
5832 }
5833         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyChannelRange msg
5834 /* @internal */
5835 export function RoutingMessageHandler_handle_reply_channel_range(this_arg: number, their_node_id: number, msg: number): number {
5836         if(!isWasmInitialized) {
5837                 throw new Error("initializeWasm() must be awaited first!");
5838         }
5839         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_reply_channel_range(this_arg, their_node_id, msg);
5840         return nativeResponseValue;
5841 }
5842         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_short_channel_ids_end LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyShortChannelIdsEnd msg
5843 /* @internal */
5844 export function RoutingMessageHandler_handle_reply_short_channel_ids_end(this_arg: number, their_node_id: number, msg: number): number {
5845         if(!isWasmInitialized) {
5846                 throw new Error("initializeWasm() must be awaited first!");
5847         }
5848         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_reply_short_channel_ids_end(this_arg, their_node_id, msg);
5849         return nativeResponseValue;
5850 }
5851         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryChannelRange msg
5852 /* @internal */
5853 export function RoutingMessageHandler_handle_query_channel_range(this_arg: number, their_node_id: number, msg: number): number {
5854         if(!isWasmInitialized) {
5855                 throw new Error("initializeWasm() must be awaited first!");
5856         }
5857         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_query_channel_range(this_arg, their_node_id, msg);
5858         return nativeResponseValue;
5859 }
5860         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_short_channel_ids LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryShortChannelIds msg
5861 /* @internal */
5862 export function RoutingMessageHandler_handle_query_short_channel_ids(this_arg: number, their_node_id: number, msg: number): number {
5863         if(!isWasmInitialized) {
5864                 throw new Error("initializeWasm() must be awaited first!");
5865         }
5866         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_query_short_channel_ids(this_arg, their_node_id, msg);
5867         return nativeResponseValue;
5868 }
5869 /* @internal */
5870 export interface LDKCustomMessageReader {
5871         read (message_type: number, buffer: number): number;
5872 }
5873
5874 /* @internal */
5875 export function LDKCustomMessageReader_new(impl: LDKCustomMessageReader): number {
5876         if(!isWasmInitialized) {
5877                 throw new Error("initializeWasm() must be awaited first!");
5878         }
5879         var new_obj_idx = js_objs.length;
5880         for (var i = 0; i < js_objs.length; i++) {
5881                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5882         }
5883         js_objs[i] = new WeakRef(impl);
5884         return wasm.TS_LDKCustomMessageReader_new(i);
5885 }
5886         // LDKCResult_COption_TypeZDecodeErrorZ CustomMessageReader_read LDKCustomMessageReader *NONNULL_PTR this_arg, uint16_t message_type, struct LDKu8slice buffer
5887 /* @internal */
5888 export function CustomMessageReader_read(this_arg: number, message_type: number, buffer: number): number {
5889         if(!isWasmInitialized) {
5890                 throw new Error("initializeWasm() must be awaited first!");
5891         }
5892         const nativeResponseValue = wasm.TS_CustomMessageReader_read(this_arg, message_type, buffer);
5893         return nativeResponseValue;
5894 }
5895 /* @internal */
5896 export interface LDKCustomMessageHandler {
5897         handle_custom_message (msg: number, sender_node_id: number): number;
5898         get_and_clear_pending_msg (): number;
5899 }
5900
5901 /* @internal */
5902 export function LDKCustomMessageHandler_new(impl: LDKCustomMessageHandler, CustomMessageReader: LDKCustomMessageReader): number {
5903         if(!isWasmInitialized) {
5904                 throw new Error("initializeWasm() must be awaited first!");
5905         }
5906         var new_obj_idx = js_objs.length;
5907         for (var i = 0; i < js_objs.length; i++) {
5908                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5909         }
5910         js_objs[i] = new WeakRef(impl);
5911         return wasm.TS_LDKCustomMessageHandler_new(i);
5912 }
5913         // LDKCResult_NoneLightningErrorZ CustomMessageHandler_handle_custom_message LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKType msg, struct LDKPublicKey sender_node_id
5914 /* @internal */
5915 export function CustomMessageHandler_handle_custom_message(this_arg: number, msg: number, sender_node_id: number): number {
5916         if(!isWasmInitialized) {
5917                 throw new Error("initializeWasm() must be awaited first!");
5918         }
5919         const nativeResponseValue = wasm.TS_CustomMessageHandler_handle_custom_message(this_arg, msg, sender_node_id);
5920         return nativeResponseValue;
5921 }
5922         // LDKCVec_C2Tuple_PublicKeyTypeZZ CustomMessageHandler_get_and_clear_pending_msg LDKCustomMessageHandler *NONNULL_PTR this_arg
5923 /* @internal */
5924 export function CustomMessageHandler_get_and_clear_pending_msg(this_arg: number): number {
5925         if(!isWasmInitialized) {
5926                 throw new Error("initializeWasm() must be awaited first!");
5927         }
5928         const nativeResponseValue = wasm.TS_CustomMessageHandler_get_and_clear_pending_msg(this_arg);
5929         return nativeResponseValue;
5930 }
5931 /* @internal */
5932 export interface LDKSocketDescriptor {
5933         send_data (data: number, resume_read: boolean): number;
5934         disconnect_socket (): void;
5935         eq (other_arg: number): boolean;
5936         hash (): bigint;
5937 }
5938
5939 /* @internal */
5940 export function LDKSocketDescriptor_new(impl: LDKSocketDescriptor): number {
5941         if(!isWasmInitialized) {
5942                 throw new Error("initializeWasm() must be awaited first!");
5943         }
5944         var new_obj_idx = js_objs.length;
5945         for (var i = 0; i < js_objs.length; i++) {
5946                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5947         }
5948         js_objs[i] = new WeakRef(impl);
5949         return wasm.TS_LDKSocketDescriptor_new(i);
5950 }
5951         // uintptr_t SocketDescriptor_send_data LDKSocketDescriptor *NONNULL_PTR this_arg, struct LDKu8slice data, bool resume_read
5952 /* @internal */
5953 export function SocketDescriptor_send_data(this_arg: number, data: number, resume_read: boolean): number {
5954         if(!isWasmInitialized) {
5955                 throw new Error("initializeWasm() must be awaited first!");
5956         }
5957         const nativeResponseValue = wasm.TS_SocketDescriptor_send_data(this_arg, data, resume_read);
5958         return nativeResponseValue;
5959 }
5960         // void SocketDescriptor_disconnect_socket LDKSocketDescriptor *NONNULL_PTR this_arg
5961 /* @internal */
5962 export function SocketDescriptor_disconnect_socket(this_arg: number): void {
5963         if(!isWasmInitialized) {
5964                 throw new Error("initializeWasm() must be awaited first!");
5965         }
5966         const nativeResponseValue = wasm.TS_SocketDescriptor_disconnect_socket(this_arg);
5967         // debug statements here
5968 }
5969         // uint64_t SocketDescriptor_hash LDKSocketDescriptor *NONNULL_PTR this_arg
5970 /* @internal */
5971 export function SocketDescriptor_hash(this_arg: number): bigint {
5972         if(!isWasmInitialized) {
5973                 throw new Error("initializeWasm() must be awaited first!");
5974         }
5975         const nativeResponseValue = wasm.TS_SocketDescriptor_hash(this_arg);
5976         return nativeResponseValue;
5977 }
5978 /* @internal */
5979 export class LDKEffectiveCapacity {
5980         protected constructor() {}
5981 }
5982 /* @internal */
5983 export function LDKEffectiveCapacity_ty_from_ptr(ptr: number): number {
5984         if(!isWasmInitialized) {
5985                 throw new Error("initializeWasm() must be awaited first!");
5986         }
5987         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_ty_from_ptr(ptr);
5988         return nativeResponseValue;
5989 }
5990 /* @internal */
5991 export function LDKEffectiveCapacity_ExactLiquidity_get_liquidity_msat(ptr: number): bigint {
5992         if(!isWasmInitialized) {
5993                 throw new Error("initializeWasm() must be awaited first!");
5994         }
5995         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_ExactLiquidity_get_liquidity_msat(ptr);
5996         return nativeResponseValue;
5997 }
5998 /* @internal */
5999 export function LDKEffectiveCapacity_MaximumHTLC_get_amount_msat(ptr: number): bigint {
6000         if(!isWasmInitialized) {
6001                 throw new Error("initializeWasm() must be awaited first!");
6002         }
6003         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_MaximumHTLC_get_amount_msat(ptr);
6004         return nativeResponseValue;
6005 }
6006 /* @internal */
6007 export function LDKEffectiveCapacity_Total_get_capacity_msat(ptr: number): bigint {
6008         if(!isWasmInitialized) {
6009                 throw new Error("initializeWasm() must be awaited first!");
6010         }
6011         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_Total_get_capacity_msat(ptr);
6012         return nativeResponseValue;
6013 }
6014 /* @internal */
6015 export interface LDKScore {
6016         channel_penalty_msat (short_channel_id: bigint, send_amt_msat: bigint, capacity_msat: bigint, source: number, target: number): bigint;
6017         payment_path_failed (path: number, short_channel_id: bigint): void;
6018         payment_path_successful (path: number): void;
6019         write (): number;
6020 }
6021
6022 /* @internal */
6023 export function LDKScore_new(impl: LDKScore): number {
6024         if(!isWasmInitialized) {
6025                 throw new Error("initializeWasm() must be awaited first!");
6026         }
6027         var new_obj_idx = js_objs.length;
6028         for (var i = 0; i < js_objs.length; i++) {
6029                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6030         }
6031         js_objs[i] = new WeakRef(impl);
6032         return wasm.TS_LDKScore_new(i);
6033 }
6034         // 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
6035 /* @internal */
6036 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 {
6037         if(!isWasmInitialized) {
6038                 throw new Error("initializeWasm() must be awaited first!");
6039         }
6040         const nativeResponseValue = wasm.TS_Score_channel_penalty_msat(this_arg, short_channel_id, send_amt_msat, capacity_msat, source, target);
6041         return nativeResponseValue;
6042 }
6043         // void Score_payment_path_failed LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path, uint64_t short_channel_id
6044 /* @internal */
6045 export function Score_payment_path_failed(this_arg: number, path: number, short_channel_id: bigint): void {
6046         if(!isWasmInitialized) {
6047                 throw new Error("initializeWasm() must be awaited first!");
6048         }
6049         const nativeResponseValue = wasm.TS_Score_payment_path_failed(this_arg, path, short_channel_id);
6050         // debug statements here
6051 }
6052         // void Score_payment_path_successful LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path
6053 /* @internal */
6054 export function Score_payment_path_successful(this_arg: number, path: number): void {
6055         if(!isWasmInitialized) {
6056                 throw new Error("initializeWasm() must be awaited first!");
6057         }
6058         const nativeResponseValue = wasm.TS_Score_payment_path_successful(this_arg, path);
6059         // debug statements here
6060 }
6061         // LDKCVec_u8Z Score_write LDKScore *NONNULL_PTR this_arg
6062 /* @internal */
6063 export function Score_write(this_arg: number): number {
6064         if(!isWasmInitialized) {
6065                 throw new Error("initializeWasm() must be awaited first!");
6066         }
6067         const nativeResponseValue = wasm.TS_Score_write(this_arg);
6068         return nativeResponseValue;
6069 }
6070 /* @internal */
6071 export interface LDKLockableScore {
6072         lock (): number;
6073 }
6074
6075 /* @internal */
6076 export function LDKLockableScore_new(impl: LDKLockableScore): number {
6077         if(!isWasmInitialized) {
6078                 throw new Error("initializeWasm() must be awaited first!");
6079         }
6080         var new_obj_idx = js_objs.length;
6081         for (var i = 0; i < js_objs.length; i++) {
6082                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6083         }
6084         js_objs[i] = new WeakRef(impl);
6085         return wasm.TS_LDKLockableScore_new(i);
6086 }
6087         // LDKScore LockableScore_lock LDKLockableScore *NONNULL_PTR this_arg
6088 /* @internal */
6089 export function LockableScore_lock(this_arg: number): number {
6090         if(!isWasmInitialized) {
6091                 throw new Error("initializeWasm() must be awaited first!");
6092         }
6093         const nativeResponseValue = wasm.TS_LockableScore_lock(this_arg);
6094         return nativeResponseValue;
6095 }
6096 /* @internal */
6097 export class LDKFallback {
6098         protected constructor() {}
6099 }
6100 /* @internal */
6101 export function LDKFallback_ty_from_ptr(ptr: number): number {
6102         if(!isWasmInitialized) {
6103                 throw new Error("initializeWasm() must be awaited first!");
6104         }
6105         const nativeResponseValue = wasm.TS_LDKFallback_ty_from_ptr(ptr);
6106         return nativeResponseValue;
6107 }
6108 /* @internal */
6109 export function LDKFallback_SegWitProgram_get_version(ptr: number): number {
6110         if(!isWasmInitialized) {
6111                 throw new Error("initializeWasm() must be awaited first!");
6112         }
6113         const nativeResponseValue = wasm.TS_LDKFallback_SegWitProgram_get_version(ptr);
6114         return nativeResponseValue;
6115 }
6116 /* @internal */
6117 export function LDKFallback_SegWitProgram_get_program(ptr: number): number {
6118         if(!isWasmInitialized) {
6119                 throw new Error("initializeWasm() must be awaited first!");
6120         }
6121         const nativeResponseValue = wasm.TS_LDKFallback_SegWitProgram_get_program(ptr);
6122         return nativeResponseValue;
6123 }
6124 /* @internal */
6125 export function LDKFallback_PubKeyHash_get_pub_key_hash(ptr: number): number {
6126         if(!isWasmInitialized) {
6127                 throw new Error("initializeWasm() must be awaited first!");
6128         }
6129         const nativeResponseValue = wasm.TS_LDKFallback_PubKeyHash_get_pub_key_hash(ptr);
6130         return nativeResponseValue;
6131 }
6132 /* @internal */
6133 export function LDKFallback_ScriptHash_get_script_hash(ptr: number): number {
6134         if(!isWasmInitialized) {
6135                 throw new Error("initializeWasm() must be awaited first!");
6136         }
6137         const nativeResponseValue = wasm.TS_LDKFallback_ScriptHash_get_script_hash(ptr);
6138         return nativeResponseValue;
6139 }
6140 /* @internal */
6141 export interface LDKPayer {
6142         node_id (): number;
6143         first_hops (): number;
6144         send_payment (route: number, payment_hash: number, payment_secret: number): number;
6145         send_spontaneous_payment (route: number, payment_preimage: number): number;
6146         retry_payment (route: number, payment_id: number): number;
6147         abandon_payment (payment_id: number): void;
6148 }
6149
6150 /* @internal */
6151 export function LDKPayer_new(impl: LDKPayer): number {
6152         if(!isWasmInitialized) {
6153                 throw new Error("initializeWasm() must be awaited first!");
6154         }
6155         var new_obj_idx = js_objs.length;
6156         for (var i = 0; i < js_objs.length; i++) {
6157                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6158         }
6159         js_objs[i] = new WeakRef(impl);
6160         return wasm.TS_LDKPayer_new(i);
6161 }
6162         // LDKPublicKey Payer_node_id LDKPayer *NONNULL_PTR this_arg
6163 /* @internal */
6164 export function Payer_node_id(this_arg: number): number {
6165         if(!isWasmInitialized) {
6166                 throw new Error("initializeWasm() must be awaited first!");
6167         }
6168         const nativeResponseValue = wasm.TS_Payer_node_id(this_arg);
6169         return nativeResponseValue;
6170 }
6171         // LDKCVec_ChannelDetailsZ Payer_first_hops LDKPayer *NONNULL_PTR this_arg
6172 /* @internal */
6173 export function Payer_first_hops(this_arg: number): number {
6174         if(!isWasmInitialized) {
6175                 throw new Error("initializeWasm() must be awaited first!");
6176         }
6177         const nativeResponseValue = wasm.TS_Payer_first_hops(this_arg);
6178         return nativeResponseValue;
6179 }
6180         // LDKCResult_PaymentIdPaymentSendFailureZ Payer_send_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret
6181 /* @internal */
6182 export function Payer_send_payment(this_arg: number, route: number, payment_hash: number, payment_secret: number): number {
6183         if(!isWasmInitialized) {
6184                 throw new Error("initializeWasm() must be awaited first!");
6185         }
6186         const nativeResponseValue = wasm.TS_Payer_send_payment(this_arg, route, payment_hash, payment_secret);
6187         return nativeResponseValue;
6188 }
6189         // LDKCResult_PaymentIdPaymentSendFailureZ Payer_send_spontaneous_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_preimage
6190 /* @internal */
6191 export function Payer_send_spontaneous_payment(this_arg: number, route: number, payment_preimage: number): number {
6192         if(!isWasmInitialized) {
6193                 throw new Error("initializeWasm() must be awaited first!");
6194         }
6195         const nativeResponseValue = wasm.TS_Payer_send_spontaneous_payment(this_arg, route, payment_preimage);
6196         return nativeResponseValue;
6197 }
6198         // LDKCResult_NonePaymentSendFailureZ Payer_retry_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_id
6199 /* @internal */
6200 export function Payer_retry_payment(this_arg: number, route: number, payment_id: number): number {
6201         if(!isWasmInitialized) {
6202                 throw new Error("initializeWasm() must be awaited first!");
6203         }
6204         const nativeResponseValue = wasm.TS_Payer_retry_payment(this_arg, route, payment_id);
6205         return nativeResponseValue;
6206 }
6207         // void Payer_abandon_payment LDKPayer *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id
6208 /* @internal */
6209 export function Payer_abandon_payment(this_arg: number, payment_id: number): void {
6210         if(!isWasmInitialized) {
6211                 throw new Error("initializeWasm() must be awaited first!");
6212         }
6213         const nativeResponseValue = wasm.TS_Payer_abandon_payment(this_arg, payment_id);
6214         // debug statements here
6215 }
6216 /* @internal */
6217 export interface LDKRouter {
6218         find_route (payer: number, route_params: number, payment_hash: number, first_hops: number, scorer: number): number;
6219 }
6220
6221 /* @internal */
6222 export function LDKRouter_new(impl: LDKRouter): number {
6223         if(!isWasmInitialized) {
6224                 throw new Error("initializeWasm() must be awaited first!");
6225         }
6226         var new_obj_idx = js_objs.length;
6227         for (var i = 0; i < js_objs.length; i++) {
6228                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6229         }
6230         js_objs[i] = new WeakRef(impl);
6231         return wasm.TS_LDKRouter_new(i);
6232 }
6233         // 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
6234 /* @internal */
6235 export function Router_find_route(this_arg: number, payer: number, route_params: number, payment_hash: number, first_hops: number, scorer: number): number {
6236         if(!isWasmInitialized) {
6237                 throw new Error("initializeWasm() must be awaited first!");
6238         }
6239         const nativeResponseValue = wasm.TS_Router_find_route(this_arg, payer, route_params, payment_hash, first_hops, scorer);
6240         return nativeResponseValue;
6241 }
6242         // struct LDKStr _ldk_get_compiled_version(void);
6243 /* @internal */
6244 export function _ldk_get_compiled_version(): number {
6245         if(!isWasmInitialized) {
6246                 throw new Error("initializeWasm() must be awaited first!");
6247         }
6248         const nativeResponseValue = wasm.TS__ldk_get_compiled_version();
6249         return nativeResponseValue;
6250 }
6251         // struct LDKStr _ldk_c_bindings_get_compiled_version(void);
6252 /* @internal */
6253 export function _ldk_c_bindings_get_compiled_version(): number {
6254         if(!isWasmInitialized) {
6255                 throw new Error("initializeWasm() must be awaited first!");
6256         }
6257         const nativeResponseValue = wasm.TS__ldk_c_bindings_get_compiled_version();
6258         return nativeResponseValue;
6259 }
6260         // uintptr_t Bech32Error_clone_ptr(LDKBech32Error *NONNULL_PTR arg);
6261 /* @internal */
6262 export function Bech32Error_clone_ptr(arg: number): number {
6263         if(!isWasmInitialized) {
6264                 throw new Error("initializeWasm() must be awaited first!");
6265         }
6266         const nativeResponseValue = wasm.TS_Bech32Error_clone_ptr(arg);
6267         return nativeResponseValue;
6268 }
6269         // struct LDKBech32Error Bech32Error_clone(const struct LDKBech32Error *NONNULL_PTR orig);
6270 /* @internal */
6271 export function Bech32Error_clone(orig: number): number {
6272         if(!isWasmInitialized) {
6273                 throw new Error("initializeWasm() must be awaited first!");
6274         }
6275         const nativeResponseValue = wasm.TS_Bech32Error_clone(orig);
6276         return nativeResponseValue;
6277 }
6278         // void Bech32Error_free(struct LDKBech32Error o);
6279 /* @internal */
6280 export function Bech32Error_free(o: number): void {
6281         if(!isWasmInitialized) {
6282                 throw new Error("initializeWasm() must be awaited first!");
6283         }
6284         const nativeResponseValue = wasm.TS_Bech32Error_free(o);
6285         // debug statements here
6286 }
6287         // void Transaction_free(struct LDKTransaction _res);
6288 /* @internal */
6289 export function Transaction_free(_res: number): void {
6290         if(!isWasmInitialized) {
6291                 throw new Error("initializeWasm() must be awaited first!");
6292         }
6293         const nativeResponseValue = wasm.TS_Transaction_free(_res);
6294         // debug statements here
6295 }
6296         // struct LDKTxOut TxOut_new(struct LDKCVec_u8Z script_pubkey, uint64_t value);
6297 /* @internal */
6298 export function TxOut_new(script_pubkey: number, value: bigint): number {
6299         if(!isWasmInitialized) {
6300                 throw new Error("initializeWasm() must be awaited first!");
6301         }
6302         const nativeResponseValue = wasm.TS_TxOut_new(script_pubkey, value);
6303         return nativeResponseValue;
6304 }
6305         // void TxOut_free(struct LDKTxOut _res);
6306 /* @internal */
6307 export function TxOut_free(_res: number): void {
6308         if(!isWasmInitialized) {
6309                 throw new Error("initializeWasm() must be awaited first!");
6310         }
6311         const nativeResponseValue = wasm.TS_TxOut_free(_res);
6312         // debug statements here
6313 }
6314         // uintptr_t TxOut_clone_ptr(LDKTxOut *NONNULL_PTR arg);
6315 /* @internal */
6316 export function TxOut_clone_ptr(arg: number): number {
6317         if(!isWasmInitialized) {
6318                 throw new Error("initializeWasm() must be awaited first!");
6319         }
6320         const nativeResponseValue = wasm.TS_TxOut_clone_ptr(arg);
6321         return nativeResponseValue;
6322 }
6323         // struct LDKTxOut TxOut_clone(const struct LDKTxOut *NONNULL_PTR orig);
6324 /* @internal */
6325 export function TxOut_clone(orig: number): number {
6326         if(!isWasmInitialized) {
6327                 throw new Error("initializeWasm() must be awaited first!");
6328         }
6329         const nativeResponseValue = wasm.TS_TxOut_clone(orig);
6330         return nativeResponseValue;
6331 }
6332         // void Str_free(struct LDKStr _res);
6333 /* @internal */
6334 export function Str_free(_res: number): void {
6335         if(!isWasmInitialized) {
6336                 throw new Error("initializeWasm() must be awaited first!");
6337         }
6338         const nativeResponseValue = wasm.TS_Str_free(_res);
6339         // debug statements here
6340 }
6341         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_ok(void);
6342 /* @internal */
6343 export function CResult_NoneNoneZ_ok(): number {
6344         if(!isWasmInitialized) {
6345                 throw new Error("initializeWasm() must be awaited first!");
6346         }
6347         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_ok();
6348         return nativeResponseValue;
6349 }
6350         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_err(void);
6351 /* @internal */
6352 export function CResult_NoneNoneZ_err(): number {
6353         if(!isWasmInitialized) {
6354                 throw new Error("initializeWasm() must be awaited first!");
6355         }
6356         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_err();
6357         return nativeResponseValue;
6358 }
6359         // bool CResult_NoneNoneZ_is_ok(const struct LDKCResult_NoneNoneZ *NONNULL_PTR o);
6360 /* @internal */
6361 export function CResult_NoneNoneZ_is_ok(o: number): boolean {
6362         if(!isWasmInitialized) {
6363                 throw new Error("initializeWasm() must be awaited first!");
6364         }
6365         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_is_ok(o);
6366         return nativeResponseValue;
6367 }
6368         // void CResult_NoneNoneZ_free(struct LDKCResult_NoneNoneZ _res);
6369 /* @internal */
6370 export function CResult_NoneNoneZ_free(_res: number): void {
6371         if(!isWasmInitialized) {
6372                 throw new Error("initializeWasm() must be awaited first!");
6373         }
6374         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_free(_res);
6375         // debug statements here
6376 }
6377         // uintptr_t CResult_NoneNoneZ_clone_ptr(LDKCResult_NoneNoneZ *NONNULL_PTR arg);
6378 /* @internal */
6379 export function CResult_NoneNoneZ_clone_ptr(arg: number): number {
6380         if(!isWasmInitialized) {
6381                 throw new Error("initializeWasm() must be awaited first!");
6382         }
6383         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_clone_ptr(arg);
6384         return nativeResponseValue;
6385 }
6386         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_clone(const struct LDKCResult_NoneNoneZ *NONNULL_PTR orig);
6387 /* @internal */
6388 export function CResult_NoneNoneZ_clone(orig: number): number {
6389         if(!isWasmInitialized) {
6390                 throw new Error("initializeWasm() must be awaited first!");
6391         }
6392         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_clone(orig);
6393         return nativeResponseValue;
6394 }
6395         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(struct LDKCounterpartyCommitmentSecrets o);
6396 /* @internal */
6397 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(o: number): number {
6398         if(!isWasmInitialized) {
6399                 throw new Error("initializeWasm() must be awaited first!");
6400         }
6401         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(o);
6402         return nativeResponseValue;
6403 }
6404         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(struct LDKDecodeError e);
6405 /* @internal */
6406 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(e: number): number {
6407         if(!isWasmInitialized) {
6408                 throw new Error("initializeWasm() must be awaited first!");
6409         }
6410         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(e);
6411         return nativeResponseValue;
6412 }
6413         // bool CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR o);
6414 /* @internal */
6415 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(o: number): boolean {
6416         if(!isWasmInitialized) {
6417                 throw new Error("initializeWasm() must be awaited first!");
6418         }
6419         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(o);
6420         return nativeResponseValue;
6421 }
6422         // void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ _res);
6423 /* @internal */
6424 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(_res: number): void {
6425         if(!isWasmInitialized) {
6426                 throw new Error("initializeWasm() must be awaited first!");
6427         }
6428         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(_res);
6429         // debug statements here
6430 }
6431         // uintptr_t CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR arg);
6432 /* @internal */
6433 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(arg: number): number {
6434         if(!isWasmInitialized) {
6435                 throw new Error("initializeWasm() must be awaited first!");
6436         }
6437         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(arg);
6438         return nativeResponseValue;
6439 }
6440         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR orig);
6441 /* @internal */
6442 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(orig: number): number {
6443         if(!isWasmInitialized) {
6444                 throw new Error("initializeWasm() must be awaited first!");
6445         }
6446         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(orig);
6447         return nativeResponseValue;
6448 }
6449         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_ok(struct LDKSecretKey o);
6450 /* @internal */
6451 export function CResult_SecretKeyErrorZ_ok(o: number): number {
6452         if(!isWasmInitialized) {
6453                 throw new Error("initializeWasm() must be awaited first!");
6454         }
6455         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_ok(o);
6456         return nativeResponseValue;
6457 }
6458         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_err(enum LDKSecp256k1Error e);
6459 /* @internal */
6460 export function CResult_SecretKeyErrorZ_err(e: Secp256k1Error): number {
6461         if(!isWasmInitialized) {
6462                 throw new Error("initializeWasm() must be awaited first!");
6463         }
6464         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_err(e);
6465         return nativeResponseValue;
6466 }
6467         // bool CResult_SecretKeyErrorZ_is_ok(const struct LDKCResult_SecretKeyErrorZ *NONNULL_PTR o);
6468 /* @internal */
6469 export function CResult_SecretKeyErrorZ_is_ok(o: number): boolean {
6470         if(!isWasmInitialized) {
6471                 throw new Error("initializeWasm() must be awaited first!");
6472         }
6473         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_is_ok(o);
6474         return nativeResponseValue;
6475 }
6476         // void CResult_SecretKeyErrorZ_free(struct LDKCResult_SecretKeyErrorZ _res);
6477 /* @internal */
6478 export function CResult_SecretKeyErrorZ_free(_res: number): void {
6479         if(!isWasmInitialized) {
6480                 throw new Error("initializeWasm() must be awaited first!");
6481         }
6482         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_free(_res);
6483         // debug statements here
6484 }
6485         // uintptr_t CResult_SecretKeyErrorZ_clone_ptr(LDKCResult_SecretKeyErrorZ *NONNULL_PTR arg);
6486 /* @internal */
6487 export function CResult_SecretKeyErrorZ_clone_ptr(arg: number): number {
6488         if(!isWasmInitialized) {
6489                 throw new Error("initializeWasm() must be awaited first!");
6490         }
6491         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_clone_ptr(arg);
6492         return nativeResponseValue;
6493 }
6494         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_clone(const struct LDKCResult_SecretKeyErrorZ *NONNULL_PTR orig);
6495 /* @internal */
6496 export function CResult_SecretKeyErrorZ_clone(orig: number): number {
6497         if(!isWasmInitialized) {
6498                 throw new Error("initializeWasm() must be awaited first!");
6499         }
6500         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_clone(orig);
6501         return nativeResponseValue;
6502 }
6503         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_ok(struct LDKPublicKey o);
6504 /* @internal */
6505 export function CResult_PublicKeyErrorZ_ok(o: number): number {
6506         if(!isWasmInitialized) {
6507                 throw new Error("initializeWasm() must be awaited first!");
6508         }
6509         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_ok(o);
6510         return nativeResponseValue;
6511 }
6512         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_err(enum LDKSecp256k1Error e);
6513 /* @internal */
6514 export function CResult_PublicKeyErrorZ_err(e: Secp256k1Error): number {
6515         if(!isWasmInitialized) {
6516                 throw new Error("initializeWasm() must be awaited first!");
6517         }
6518         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_err(e);
6519         return nativeResponseValue;
6520 }
6521         // bool CResult_PublicKeyErrorZ_is_ok(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR o);
6522 /* @internal */
6523 export function CResult_PublicKeyErrorZ_is_ok(o: number): boolean {
6524         if(!isWasmInitialized) {
6525                 throw new Error("initializeWasm() must be awaited first!");
6526         }
6527         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_is_ok(o);
6528         return nativeResponseValue;
6529 }
6530         // void CResult_PublicKeyErrorZ_free(struct LDKCResult_PublicKeyErrorZ _res);
6531 /* @internal */
6532 export function CResult_PublicKeyErrorZ_free(_res: number): void {
6533         if(!isWasmInitialized) {
6534                 throw new Error("initializeWasm() must be awaited first!");
6535         }
6536         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_free(_res);
6537         // debug statements here
6538 }
6539         // uintptr_t CResult_PublicKeyErrorZ_clone_ptr(LDKCResult_PublicKeyErrorZ *NONNULL_PTR arg);
6540 /* @internal */
6541 export function CResult_PublicKeyErrorZ_clone_ptr(arg: number): number {
6542         if(!isWasmInitialized) {
6543                 throw new Error("initializeWasm() must be awaited first!");
6544         }
6545         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_clone_ptr(arg);
6546         return nativeResponseValue;
6547 }
6548         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_clone(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR orig);
6549 /* @internal */
6550 export function CResult_PublicKeyErrorZ_clone(orig: number): number {
6551         if(!isWasmInitialized) {
6552                 throw new Error("initializeWasm() must be awaited first!");
6553         }
6554         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_clone(orig);
6555         return nativeResponseValue;
6556 }
6557         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o);
6558 /* @internal */
6559 export function CResult_TxCreationKeysDecodeErrorZ_ok(o: number): number {
6560         if(!isWasmInitialized) {
6561                 throw new Error("initializeWasm() must be awaited first!");
6562         }
6563         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_ok(o);
6564         return nativeResponseValue;
6565 }
6566         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e);
6567 /* @internal */
6568 export function CResult_TxCreationKeysDecodeErrorZ_err(e: number): number {
6569         if(!isWasmInitialized) {
6570                 throw new Error("initializeWasm() must be awaited first!");
6571         }
6572         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_err(e);
6573         return nativeResponseValue;
6574 }
6575         // bool CResult_TxCreationKeysDecodeErrorZ_is_ok(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR o);
6576 /* @internal */
6577 export function CResult_TxCreationKeysDecodeErrorZ_is_ok(o: number): boolean {
6578         if(!isWasmInitialized) {
6579                 throw new Error("initializeWasm() must be awaited first!");
6580         }
6581         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_is_ok(o);
6582         return nativeResponseValue;
6583 }
6584         // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res);
6585 /* @internal */
6586 export function CResult_TxCreationKeysDecodeErrorZ_free(_res: number): void {
6587         if(!isWasmInitialized) {
6588                 throw new Error("initializeWasm() must be awaited first!");
6589         }
6590         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_free(_res);
6591         // debug statements here
6592 }
6593         // uintptr_t CResult_TxCreationKeysDecodeErrorZ_clone_ptr(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR arg);
6594 /* @internal */
6595 export function CResult_TxCreationKeysDecodeErrorZ_clone_ptr(arg: number): number {
6596         if(!isWasmInitialized) {
6597                 throw new Error("initializeWasm() must be awaited first!");
6598         }
6599         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_clone_ptr(arg);
6600         return nativeResponseValue;
6601 }
6602         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig);
6603 /* @internal */
6604 export function CResult_TxCreationKeysDecodeErrorZ_clone(orig: number): number {
6605         if(!isWasmInitialized) {
6606                 throw new Error("initializeWasm() must be awaited first!");
6607         }
6608         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_clone(orig);
6609         return nativeResponseValue;
6610 }
6611         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o);
6612 /* @internal */
6613 export function CResult_ChannelPublicKeysDecodeErrorZ_ok(o: number): number {
6614         if(!isWasmInitialized) {
6615                 throw new Error("initializeWasm() must be awaited first!");
6616         }
6617         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_ok(o);
6618         return nativeResponseValue;
6619 }
6620         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e);
6621 /* @internal */
6622 export function CResult_ChannelPublicKeysDecodeErrorZ_err(e: number): number {
6623         if(!isWasmInitialized) {
6624                 throw new Error("initializeWasm() must be awaited first!");
6625         }
6626         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_err(e);
6627         return nativeResponseValue;
6628 }
6629         // bool CResult_ChannelPublicKeysDecodeErrorZ_is_ok(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR o);
6630 /* @internal */
6631 export function CResult_ChannelPublicKeysDecodeErrorZ_is_ok(o: number): boolean {
6632         if(!isWasmInitialized) {
6633                 throw new Error("initializeWasm() must be awaited first!");
6634         }
6635         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_is_ok(o);
6636         return nativeResponseValue;
6637 }
6638         // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res);
6639 /* @internal */
6640 export function CResult_ChannelPublicKeysDecodeErrorZ_free(_res: number): void {
6641         if(!isWasmInitialized) {
6642                 throw new Error("initializeWasm() must be awaited first!");
6643         }
6644         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_free(_res);
6645         // debug statements here
6646 }
6647         // uintptr_t CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR arg);
6648 /* @internal */
6649 export function CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(arg: number): number {
6650         if(!isWasmInitialized) {
6651                 throw new Error("initializeWasm() must be awaited first!");
6652         }
6653         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(arg);
6654         return nativeResponseValue;
6655 }
6656         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig);
6657 /* @internal */
6658 export function CResult_ChannelPublicKeysDecodeErrorZ_clone(orig: number): number {
6659         if(!isWasmInitialized) {
6660                 throw new Error("initializeWasm() must be awaited first!");
6661         }
6662         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_clone(orig);
6663         return nativeResponseValue;
6664 }
6665         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_ok(struct LDKTxCreationKeys o);
6666 /* @internal */
6667 export function CResult_TxCreationKeysErrorZ_ok(o: number): number {
6668         if(!isWasmInitialized) {
6669                 throw new Error("initializeWasm() must be awaited first!");
6670         }
6671         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_ok(o);
6672         return nativeResponseValue;
6673 }
6674         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_err(enum LDKSecp256k1Error e);
6675 /* @internal */
6676 export function CResult_TxCreationKeysErrorZ_err(e: Secp256k1Error): number {
6677         if(!isWasmInitialized) {
6678                 throw new Error("initializeWasm() must be awaited first!");
6679         }
6680         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_err(e);
6681         return nativeResponseValue;
6682 }
6683         // bool CResult_TxCreationKeysErrorZ_is_ok(const struct LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR o);
6684 /* @internal */
6685 export function CResult_TxCreationKeysErrorZ_is_ok(o: number): boolean {
6686         if(!isWasmInitialized) {
6687                 throw new Error("initializeWasm() must be awaited first!");
6688         }
6689         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_is_ok(o);
6690         return nativeResponseValue;
6691 }
6692         // void CResult_TxCreationKeysErrorZ_free(struct LDKCResult_TxCreationKeysErrorZ _res);
6693 /* @internal */
6694 export function CResult_TxCreationKeysErrorZ_free(_res: number): void {
6695         if(!isWasmInitialized) {
6696                 throw new Error("initializeWasm() must be awaited first!");
6697         }
6698         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_free(_res);
6699         // debug statements here
6700 }
6701         // uintptr_t CResult_TxCreationKeysErrorZ_clone_ptr(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR arg);
6702 /* @internal */
6703 export function CResult_TxCreationKeysErrorZ_clone_ptr(arg: number): number {
6704         if(!isWasmInitialized) {
6705                 throw new Error("initializeWasm() must be awaited first!");
6706         }
6707         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_clone_ptr(arg);
6708         return nativeResponseValue;
6709 }
6710         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_clone(const struct LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR orig);
6711 /* @internal */
6712 export function CResult_TxCreationKeysErrorZ_clone(orig: number): number {
6713         if(!isWasmInitialized) {
6714                 throw new Error("initializeWasm() must be awaited first!");
6715         }
6716         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_clone(orig);
6717         return nativeResponseValue;
6718 }
6719         // struct LDKCOption_u32Z COption_u32Z_some(uint32_t o);
6720 /* @internal */
6721 export function COption_u32Z_some(o: number): number {
6722         if(!isWasmInitialized) {
6723                 throw new Error("initializeWasm() must be awaited first!");
6724         }
6725         const nativeResponseValue = wasm.TS_COption_u32Z_some(o);
6726         return nativeResponseValue;
6727 }
6728         // struct LDKCOption_u32Z COption_u32Z_none(void);
6729 /* @internal */
6730 export function COption_u32Z_none(): number {
6731         if(!isWasmInitialized) {
6732                 throw new Error("initializeWasm() must be awaited first!");
6733         }
6734         const nativeResponseValue = wasm.TS_COption_u32Z_none();
6735         return nativeResponseValue;
6736 }
6737         // void COption_u32Z_free(struct LDKCOption_u32Z _res);
6738 /* @internal */
6739 export function COption_u32Z_free(_res: number): void {
6740         if(!isWasmInitialized) {
6741                 throw new Error("initializeWasm() must be awaited first!");
6742         }
6743         const nativeResponseValue = wasm.TS_COption_u32Z_free(_res);
6744         // debug statements here
6745 }
6746         // uintptr_t COption_u32Z_clone_ptr(LDKCOption_u32Z *NONNULL_PTR arg);
6747 /* @internal */
6748 export function COption_u32Z_clone_ptr(arg: number): number {
6749         if(!isWasmInitialized) {
6750                 throw new Error("initializeWasm() must be awaited first!");
6751         }
6752         const nativeResponseValue = wasm.TS_COption_u32Z_clone_ptr(arg);
6753         return nativeResponseValue;
6754 }
6755         // struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig);
6756 /* @internal */
6757 export function COption_u32Z_clone(orig: number): number {
6758         if(!isWasmInitialized) {
6759                 throw new Error("initializeWasm() must be awaited first!");
6760         }
6761         const nativeResponseValue = wasm.TS_COption_u32Z_clone(orig);
6762         return nativeResponseValue;
6763 }
6764         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o);
6765 /* @internal */
6766 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o: number): number {
6767         if(!isWasmInitialized) {
6768                 throw new Error("initializeWasm() must be awaited first!");
6769         }
6770         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o);
6771         return nativeResponseValue;
6772 }
6773         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e);
6774 /* @internal */
6775 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e: number): number {
6776         if(!isWasmInitialized) {
6777                 throw new Error("initializeWasm() must be awaited first!");
6778         }
6779         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e);
6780         return nativeResponseValue;
6781 }
6782         // bool CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR o);
6783 /* @internal */
6784 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(o: number): boolean {
6785         if(!isWasmInitialized) {
6786                 throw new Error("initializeWasm() must be awaited first!");
6787         }
6788         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(o);
6789         return nativeResponseValue;
6790 }
6791         // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res);
6792 /* @internal */
6793 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_free(_res: number): void {
6794         if(!isWasmInitialized) {
6795                 throw new Error("initializeWasm() must be awaited first!");
6796         }
6797         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_free(_res);
6798         // debug statements here
6799 }
6800         // uintptr_t CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR arg);
6801 /* @internal */
6802 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(arg: number): number {
6803         if(!isWasmInitialized) {
6804                 throw new Error("initializeWasm() must be awaited first!");
6805         }
6806         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(arg);
6807         return nativeResponseValue;
6808 }
6809         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig);
6810 /* @internal */
6811 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(orig: number): number {
6812         if(!isWasmInitialized) {
6813                 throw new Error("initializeWasm() must be awaited first!");
6814         }
6815         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(orig);
6816         return nativeResponseValue;
6817 }
6818         // enum LDKCOption_NoneZ COption_NoneZ_some(void);
6819 /* @internal */
6820 export function COption_NoneZ_some(): COption_NoneZ {
6821         if(!isWasmInitialized) {
6822                 throw new Error("initializeWasm() must be awaited first!");
6823         }
6824         const nativeResponseValue = wasm.TS_COption_NoneZ_some();
6825         return nativeResponseValue;
6826 }
6827         // enum LDKCOption_NoneZ COption_NoneZ_none(void);
6828 /* @internal */
6829 export function COption_NoneZ_none(): COption_NoneZ {
6830         if(!isWasmInitialized) {
6831                 throw new Error("initializeWasm() must be awaited first!");
6832         }
6833         const nativeResponseValue = wasm.TS_COption_NoneZ_none();
6834         return nativeResponseValue;
6835 }
6836         // void COption_NoneZ_free(enum LDKCOption_NoneZ _res);
6837 /* @internal */
6838 export function COption_NoneZ_free(_res: COption_NoneZ): void {
6839         if(!isWasmInitialized) {
6840                 throw new Error("initializeWasm() must be awaited first!");
6841         }
6842         const nativeResponseValue = wasm.TS_COption_NoneZ_free(_res);
6843         // debug statements here
6844 }
6845         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o);
6846 /* @internal */
6847 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o: number): number {
6848         if(!isWasmInitialized) {
6849                 throw new Error("initializeWasm() must be awaited first!");
6850         }
6851         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o);
6852         return nativeResponseValue;
6853 }
6854         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
6855 /* @internal */
6856 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e: number): number {
6857         if(!isWasmInitialized) {
6858                 throw new Error("initializeWasm() must be awaited first!");
6859         }
6860         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e);
6861         return nativeResponseValue;
6862 }
6863         // bool CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
6864 /* @internal */
6865 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(o: number): boolean {
6866         if(!isWasmInitialized) {
6867                 throw new Error("initializeWasm() must be awaited first!");
6868         }
6869         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(o);
6870         return nativeResponseValue;
6871 }
6872         // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res);
6873 /* @internal */
6874 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(_res: number): void {
6875         if(!isWasmInitialized) {
6876                 throw new Error("initializeWasm() must be awaited first!");
6877         }
6878         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(_res);
6879         // debug statements here
6880 }
6881         // uintptr_t CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
6882 /* @internal */
6883 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(arg: number): number {
6884         if(!isWasmInitialized) {
6885                 throw new Error("initializeWasm() must be awaited first!");
6886         }
6887         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(arg);
6888         return nativeResponseValue;
6889 }
6890         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
6891 /* @internal */
6892 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(orig: number): number {
6893         if(!isWasmInitialized) {
6894                 throw new Error("initializeWasm() must be awaited first!");
6895         }
6896         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(orig);
6897         return nativeResponseValue;
6898 }
6899         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o);
6900 /* @internal */
6901 export function CResult_ChannelTransactionParametersDecodeErrorZ_ok(o: number): number {
6902         if(!isWasmInitialized) {
6903                 throw new Error("initializeWasm() must be awaited first!");
6904         }
6905         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_ok(o);
6906         return nativeResponseValue;
6907 }
6908         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
6909 /* @internal */
6910 export function CResult_ChannelTransactionParametersDecodeErrorZ_err(e: number): number {
6911         if(!isWasmInitialized) {
6912                 throw new Error("initializeWasm() must be awaited first!");
6913         }
6914         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_err(e);
6915         return nativeResponseValue;
6916 }
6917         // bool CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
6918 /* @internal */
6919 export function CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(o: number): boolean {
6920         if(!isWasmInitialized) {
6921                 throw new Error("initializeWasm() must be awaited first!");
6922         }
6923         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(o);
6924         return nativeResponseValue;
6925 }
6926         // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res);
6927 /* @internal */
6928 export function CResult_ChannelTransactionParametersDecodeErrorZ_free(_res: number): void {
6929         if(!isWasmInitialized) {
6930                 throw new Error("initializeWasm() must be awaited first!");
6931         }
6932         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_free(_res);
6933         // debug statements here
6934 }
6935         // uintptr_t CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
6936 /* @internal */
6937 export function CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(arg: number): number {
6938         if(!isWasmInitialized) {
6939                 throw new Error("initializeWasm() must be awaited first!");
6940         }
6941         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(arg);
6942         return nativeResponseValue;
6943 }
6944         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
6945 /* @internal */
6946 export function CResult_ChannelTransactionParametersDecodeErrorZ_clone(orig: number): number {
6947         if(!isWasmInitialized) {
6948                 throw new Error("initializeWasm() must be awaited first!");
6949         }
6950         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_clone(orig);
6951         return nativeResponseValue;
6952 }
6953         // void CVec_SignatureZ_free(struct LDKCVec_SignatureZ _res);
6954 /* @internal */
6955 export function CVec_SignatureZ_free(_res: number): void {
6956         if(!isWasmInitialized) {
6957                 throw new Error("initializeWasm() must be awaited first!");
6958         }
6959         const nativeResponseValue = wasm.TS_CVec_SignatureZ_free(_res);
6960         // debug statements here
6961 }
6962         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o);
6963 /* @internal */
6964 export function CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o: number): number {
6965         if(!isWasmInitialized) {
6966                 throw new Error("initializeWasm() must be awaited first!");
6967         }
6968         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o);
6969         return nativeResponseValue;
6970 }
6971         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
6972 /* @internal */
6973 export function CResult_HolderCommitmentTransactionDecodeErrorZ_err(e: number): number {
6974         if(!isWasmInitialized) {
6975                 throw new Error("initializeWasm() must be awaited first!");
6976         }
6977         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_err(e);
6978         return nativeResponseValue;
6979 }
6980         // bool CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
6981 /* @internal */
6982 export function CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(o: number): boolean {
6983         if(!isWasmInitialized) {
6984                 throw new Error("initializeWasm() must be awaited first!");
6985         }
6986         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(o);
6987         return nativeResponseValue;
6988 }
6989         // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res);
6990 /* @internal */
6991 export function CResult_HolderCommitmentTransactionDecodeErrorZ_free(_res: number): void {
6992         if(!isWasmInitialized) {
6993                 throw new Error("initializeWasm() must be awaited first!");
6994         }
6995         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_free(_res);
6996         // debug statements here
6997 }
6998         // uintptr_t CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
6999 /* @internal */
7000 export function CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(arg: number): number {
7001         if(!isWasmInitialized) {
7002                 throw new Error("initializeWasm() must be awaited first!");
7003         }
7004         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(arg);
7005         return nativeResponseValue;
7006 }
7007         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
7008 /* @internal */
7009 export function CResult_HolderCommitmentTransactionDecodeErrorZ_clone(orig: number): number {
7010         if(!isWasmInitialized) {
7011                 throw new Error("initializeWasm() must be awaited first!");
7012         }
7013         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_clone(orig);
7014         return nativeResponseValue;
7015 }
7016         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o);
7017 /* @internal */
7018 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o: number): number {
7019         if(!isWasmInitialized) {
7020                 throw new Error("initializeWasm() must be awaited first!");
7021         }
7022         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o);
7023         return nativeResponseValue;
7024 }
7025         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
7026 /* @internal */
7027 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e: number): number {
7028         if(!isWasmInitialized) {
7029                 throw new Error("initializeWasm() must be awaited first!");
7030         }
7031         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e);
7032         return nativeResponseValue;
7033 }
7034         // bool CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
7035 /* @internal */
7036 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(o: number): boolean {
7037         if(!isWasmInitialized) {
7038                 throw new Error("initializeWasm() must be awaited first!");
7039         }
7040         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(o);
7041         return nativeResponseValue;
7042 }
7043         // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res);
7044 /* @internal */
7045 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_free(_res: number): void {
7046         if(!isWasmInitialized) {
7047                 throw new Error("initializeWasm() must be awaited first!");
7048         }
7049         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_free(_res);
7050         // debug statements here
7051 }
7052         // uintptr_t CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
7053 /* @internal */
7054 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(arg: number): number {
7055         if(!isWasmInitialized) {
7056                 throw new Error("initializeWasm() must be awaited first!");
7057         }
7058         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(arg);
7059         return nativeResponseValue;
7060 }
7061         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
7062 /* @internal */
7063 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(orig: number): number {
7064         if(!isWasmInitialized) {
7065                 throw new Error("initializeWasm() must be awaited first!");
7066         }
7067         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(orig);
7068         return nativeResponseValue;
7069 }
7070         // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_ok(struct LDKTrustedClosingTransaction o);
7071 /* @internal */
7072 export function CResult_TrustedClosingTransactionNoneZ_ok(o: number): number {
7073         if(!isWasmInitialized) {
7074                 throw new Error("initializeWasm() must be awaited first!");
7075         }
7076         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_ok(o);
7077         return nativeResponseValue;
7078 }
7079         // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_err(void);
7080 /* @internal */
7081 export function CResult_TrustedClosingTransactionNoneZ_err(): number {
7082         if(!isWasmInitialized) {
7083                 throw new Error("initializeWasm() must be awaited first!");
7084         }
7085         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_err();
7086         return nativeResponseValue;
7087 }
7088         // bool CResult_TrustedClosingTransactionNoneZ_is_ok(const struct LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR o);
7089 /* @internal */
7090 export function CResult_TrustedClosingTransactionNoneZ_is_ok(o: number): boolean {
7091         if(!isWasmInitialized) {
7092                 throw new Error("initializeWasm() must be awaited first!");
7093         }
7094         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_is_ok(o);
7095         return nativeResponseValue;
7096 }
7097         // void CResult_TrustedClosingTransactionNoneZ_free(struct LDKCResult_TrustedClosingTransactionNoneZ _res);
7098 /* @internal */
7099 export function CResult_TrustedClosingTransactionNoneZ_free(_res: number): void {
7100         if(!isWasmInitialized) {
7101                 throw new Error("initializeWasm() must be awaited first!");
7102         }
7103         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_free(_res);
7104         // debug statements here
7105 }
7106         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o);
7107 /* @internal */
7108 export function CResult_CommitmentTransactionDecodeErrorZ_ok(o: number): number {
7109         if(!isWasmInitialized) {
7110                 throw new Error("initializeWasm() must be awaited first!");
7111         }
7112         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_ok(o);
7113         return nativeResponseValue;
7114 }
7115         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
7116 /* @internal */
7117 export function CResult_CommitmentTransactionDecodeErrorZ_err(e: number): number {
7118         if(!isWasmInitialized) {
7119                 throw new Error("initializeWasm() must be awaited first!");
7120         }
7121         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_err(e);
7122         return nativeResponseValue;
7123 }
7124         // bool CResult_CommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
7125 /* @internal */
7126 export function CResult_CommitmentTransactionDecodeErrorZ_is_ok(o: number): boolean {
7127         if(!isWasmInitialized) {
7128                 throw new Error("initializeWasm() must be awaited first!");
7129         }
7130         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_is_ok(o);
7131         return nativeResponseValue;
7132 }
7133         // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res);
7134 /* @internal */
7135 export function CResult_CommitmentTransactionDecodeErrorZ_free(_res: number): void {
7136         if(!isWasmInitialized) {
7137                 throw new Error("initializeWasm() must be awaited first!");
7138         }
7139         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_free(_res);
7140         // debug statements here
7141 }
7142         // uintptr_t CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
7143 /* @internal */
7144 export function CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(arg: number): number {
7145         if(!isWasmInitialized) {
7146                 throw new Error("initializeWasm() must be awaited first!");
7147         }
7148         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(arg);
7149         return nativeResponseValue;
7150 }
7151         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
7152 /* @internal */
7153 export function CResult_CommitmentTransactionDecodeErrorZ_clone(orig: number): number {
7154         if(!isWasmInitialized) {
7155                 throw new Error("initializeWasm() must be awaited first!");
7156         }
7157         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_clone(orig);
7158         return nativeResponseValue;
7159 }
7160         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o);
7161 /* @internal */
7162 export function CResult_TrustedCommitmentTransactionNoneZ_ok(o: number): number {
7163         if(!isWasmInitialized) {
7164                 throw new Error("initializeWasm() must be awaited first!");
7165         }
7166         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_ok(o);
7167         return nativeResponseValue;
7168 }
7169         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void);
7170 /* @internal */
7171 export function CResult_TrustedCommitmentTransactionNoneZ_err(): number {
7172         if(!isWasmInitialized) {
7173                 throw new Error("initializeWasm() must be awaited first!");
7174         }
7175         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_err();
7176         return nativeResponseValue;
7177 }
7178         // bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR o);
7179 /* @internal */
7180 export function CResult_TrustedCommitmentTransactionNoneZ_is_ok(o: number): boolean {
7181         if(!isWasmInitialized) {
7182                 throw new Error("initializeWasm() must be awaited first!");
7183         }
7184         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_is_ok(o);
7185         return nativeResponseValue;
7186 }
7187         // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res);
7188 /* @internal */
7189 export function CResult_TrustedCommitmentTransactionNoneZ_free(_res: number): void {
7190         if(!isWasmInitialized) {
7191                 throw new Error("initializeWasm() must be awaited first!");
7192         }
7193         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_free(_res);
7194         // debug statements here
7195 }
7196         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_ok(struct LDKCVec_SignatureZ o);
7197 /* @internal */
7198 export function CResult_CVec_SignatureZNoneZ_ok(o: number): number {
7199         if(!isWasmInitialized) {
7200                 throw new Error("initializeWasm() must be awaited first!");
7201         }
7202         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_ok(o);
7203         return nativeResponseValue;
7204 }
7205         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_err(void);
7206 /* @internal */
7207 export function CResult_CVec_SignatureZNoneZ_err(): number {
7208         if(!isWasmInitialized) {
7209                 throw new Error("initializeWasm() must be awaited first!");
7210         }
7211         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_err();
7212         return nativeResponseValue;
7213 }
7214         // bool CResult_CVec_SignatureZNoneZ_is_ok(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR o);
7215 /* @internal */
7216 export function CResult_CVec_SignatureZNoneZ_is_ok(o: number): boolean {
7217         if(!isWasmInitialized) {
7218                 throw new Error("initializeWasm() must be awaited first!");
7219         }
7220         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_is_ok(o);
7221         return nativeResponseValue;
7222 }
7223         // void CResult_CVec_SignatureZNoneZ_free(struct LDKCResult_CVec_SignatureZNoneZ _res);
7224 /* @internal */
7225 export function CResult_CVec_SignatureZNoneZ_free(_res: number): void {
7226         if(!isWasmInitialized) {
7227                 throw new Error("initializeWasm() must be awaited first!");
7228         }
7229         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_free(_res);
7230         // debug statements here
7231 }
7232         // uintptr_t CResult_CVec_SignatureZNoneZ_clone_ptr(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR arg);
7233 /* @internal */
7234 export function CResult_CVec_SignatureZNoneZ_clone_ptr(arg: number): number {
7235         if(!isWasmInitialized) {
7236                 throw new Error("initializeWasm() must be awaited first!");
7237         }
7238         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_clone_ptr(arg);
7239         return nativeResponseValue;
7240 }
7241         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_clone(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR orig);
7242 /* @internal */
7243 export function CResult_CVec_SignatureZNoneZ_clone(orig: number): number {
7244         if(!isWasmInitialized) {
7245                 throw new Error("initializeWasm() must be awaited first!");
7246         }
7247         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_clone(orig);
7248         return nativeResponseValue;
7249 }
7250         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_ok(struct LDKShutdownScript o);
7251 /* @internal */
7252 export function CResult_ShutdownScriptDecodeErrorZ_ok(o: number): number {
7253         if(!isWasmInitialized) {
7254                 throw new Error("initializeWasm() must be awaited first!");
7255         }
7256         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_ok(o);
7257         return nativeResponseValue;
7258 }
7259         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_err(struct LDKDecodeError e);
7260 /* @internal */
7261 export function CResult_ShutdownScriptDecodeErrorZ_err(e: number): number {
7262         if(!isWasmInitialized) {
7263                 throw new Error("initializeWasm() must be awaited first!");
7264         }
7265         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_err(e);
7266         return nativeResponseValue;
7267 }
7268         // bool CResult_ShutdownScriptDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR o);
7269 /* @internal */
7270 export function CResult_ShutdownScriptDecodeErrorZ_is_ok(o: number): boolean {
7271         if(!isWasmInitialized) {
7272                 throw new Error("initializeWasm() must be awaited first!");
7273         }
7274         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_is_ok(o);
7275         return nativeResponseValue;
7276 }
7277         // void CResult_ShutdownScriptDecodeErrorZ_free(struct LDKCResult_ShutdownScriptDecodeErrorZ _res);
7278 /* @internal */
7279 export function CResult_ShutdownScriptDecodeErrorZ_free(_res: number): void {
7280         if(!isWasmInitialized) {
7281                 throw new Error("initializeWasm() must be awaited first!");
7282         }
7283         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_free(_res);
7284         // debug statements here
7285 }
7286         // uintptr_t CResult_ShutdownScriptDecodeErrorZ_clone_ptr(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR arg);
7287 /* @internal */
7288 export function CResult_ShutdownScriptDecodeErrorZ_clone_ptr(arg: number): number {
7289         if(!isWasmInitialized) {
7290                 throw new Error("initializeWasm() must be awaited first!");
7291         }
7292         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_clone_ptr(arg);
7293         return nativeResponseValue;
7294 }
7295         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_clone(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR orig);
7296 /* @internal */
7297 export function CResult_ShutdownScriptDecodeErrorZ_clone(orig: number): number {
7298         if(!isWasmInitialized) {
7299                 throw new Error("initializeWasm() must be awaited first!");
7300         }
7301         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_clone(orig);
7302         return nativeResponseValue;
7303 }
7304         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_ok(struct LDKShutdownScript o);
7305 /* @internal */
7306 export function CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o: number): number {
7307         if(!isWasmInitialized) {
7308                 throw new Error("initializeWasm() must be awaited first!");
7309         }
7310         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o);
7311         return nativeResponseValue;
7312 }
7313         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_err(struct LDKInvalidShutdownScript e);
7314 /* @internal */
7315 export function CResult_ShutdownScriptInvalidShutdownScriptZ_err(e: number): number {
7316         if(!isWasmInitialized) {
7317                 throw new Error("initializeWasm() must be awaited first!");
7318         }
7319         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_err(e);
7320         return nativeResponseValue;
7321 }
7322         // bool CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR o);
7323 /* @internal */
7324 export function CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(o: number): boolean {
7325         if(!isWasmInitialized) {
7326                 throw new Error("initializeWasm() must be awaited first!");
7327         }
7328         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(o);
7329         return nativeResponseValue;
7330 }
7331         // void CResult_ShutdownScriptInvalidShutdownScriptZ_free(struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ _res);
7332 /* @internal */
7333 export function CResult_ShutdownScriptInvalidShutdownScriptZ_free(_res: number): void {
7334         if(!isWasmInitialized) {
7335                 throw new Error("initializeWasm() must be awaited first!");
7336         }
7337         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_free(_res);
7338         // debug statements here
7339 }
7340         // uintptr_t CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR arg);
7341 /* @internal */
7342 export function CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(arg: number): number {
7343         if(!isWasmInitialized) {
7344                 throw new Error("initializeWasm() must be awaited first!");
7345         }
7346         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(arg);
7347         return nativeResponseValue;
7348 }
7349         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_clone(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR orig);
7350 /* @internal */
7351 export function CResult_ShutdownScriptInvalidShutdownScriptZ_clone(orig: number): number {
7352         if(!isWasmInitialized) {
7353                 throw new Error("initializeWasm() must be awaited first!");
7354         }
7355         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_clone(orig);
7356         return nativeResponseValue;
7357 }
7358         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_ok(struct LDKRouteHop o);
7359 /* @internal */
7360 export function CResult_RouteHopDecodeErrorZ_ok(o: number): number {
7361         if(!isWasmInitialized) {
7362                 throw new Error("initializeWasm() must be awaited first!");
7363         }
7364         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_ok(o);
7365         return nativeResponseValue;
7366 }
7367         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_err(struct LDKDecodeError e);
7368 /* @internal */
7369 export function CResult_RouteHopDecodeErrorZ_err(e: number): number {
7370         if(!isWasmInitialized) {
7371                 throw new Error("initializeWasm() must be awaited first!");
7372         }
7373         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_err(e);
7374         return nativeResponseValue;
7375 }
7376         // bool CResult_RouteHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR o);
7377 /* @internal */
7378 export function CResult_RouteHopDecodeErrorZ_is_ok(o: number): boolean {
7379         if(!isWasmInitialized) {
7380                 throw new Error("initializeWasm() must be awaited first!");
7381         }
7382         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_is_ok(o);
7383         return nativeResponseValue;
7384 }
7385         // void CResult_RouteHopDecodeErrorZ_free(struct LDKCResult_RouteHopDecodeErrorZ _res);
7386 /* @internal */
7387 export function CResult_RouteHopDecodeErrorZ_free(_res: number): void {
7388         if(!isWasmInitialized) {
7389                 throw new Error("initializeWasm() must be awaited first!");
7390         }
7391         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_free(_res);
7392         // debug statements here
7393 }
7394         // uintptr_t CResult_RouteHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR arg);
7395 /* @internal */
7396 export function CResult_RouteHopDecodeErrorZ_clone_ptr(arg: number): number {
7397         if(!isWasmInitialized) {
7398                 throw new Error("initializeWasm() must be awaited first!");
7399         }
7400         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_clone_ptr(arg);
7401         return nativeResponseValue;
7402 }
7403         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_clone(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR orig);
7404 /* @internal */
7405 export function CResult_RouteHopDecodeErrorZ_clone(orig: number): number {
7406         if(!isWasmInitialized) {
7407                 throw new Error("initializeWasm() must be awaited first!");
7408         }
7409         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_clone(orig);
7410         return nativeResponseValue;
7411 }
7412         // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res);
7413 /* @internal */
7414 export function CVec_RouteHopZ_free(_res: number): void {
7415         if(!isWasmInitialized) {
7416                 throw new Error("initializeWasm() must be awaited first!");
7417         }
7418         const nativeResponseValue = wasm.TS_CVec_RouteHopZ_free(_res);
7419         // debug statements here
7420 }
7421         // void CVec_CVec_RouteHopZZ_free(struct LDKCVec_CVec_RouteHopZZ _res);
7422 /* @internal */
7423 export function CVec_CVec_RouteHopZZ_free(_res: number): void {
7424         if(!isWasmInitialized) {
7425                 throw new Error("initializeWasm() must be awaited first!");
7426         }
7427         const nativeResponseValue = wasm.TS_CVec_CVec_RouteHopZZ_free(_res);
7428         // debug statements here
7429 }
7430         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o);
7431 /* @internal */
7432 export function CResult_RouteDecodeErrorZ_ok(o: number): number {
7433         if(!isWasmInitialized) {
7434                 throw new Error("initializeWasm() must be awaited first!");
7435         }
7436         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_ok(o);
7437         return nativeResponseValue;
7438 }
7439         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e);
7440 /* @internal */
7441 export function CResult_RouteDecodeErrorZ_err(e: number): number {
7442         if(!isWasmInitialized) {
7443                 throw new Error("initializeWasm() must be awaited first!");
7444         }
7445         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_err(e);
7446         return nativeResponseValue;
7447 }
7448         // bool CResult_RouteDecodeErrorZ_is_ok(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR o);
7449 /* @internal */
7450 export function CResult_RouteDecodeErrorZ_is_ok(o: number): boolean {
7451         if(!isWasmInitialized) {
7452                 throw new Error("initializeWasm() must be awaited first!");
7453         }
7454         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_is_ok(o);
7455         return nativeResponseValue;
7456 }
7457         // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res);
7458 /* @internal */
7459 export function CResult_RouteDecodeErrorZ_free(_res: number): void {
7460         if(!isWasmInitialized) {
7461                 throw new Error("initializeWasm() must be awaited first!");
7462         }
7463         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_free(_res);
7464         // debug statements here
7465 }
7466         // uintptr_t CResult_RouteDecodeErrorZ_clone_ptr(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR arg);
7467 /* @internal */
7468 export function CResult_RouteDecodeErrorZ_clone_ptr(arg: number): number {
7469         if(!isWasmInitialized) {
7470                 throw new Error("initializeWasm() must be awaited first!");
7471         }
7472         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_clone_ptr(arg);
7473         return nativeResponseValue;
7474 }
7475         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_clone(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR orig);
7476 /* @internal */
7477 export function CResult_RouteDecodeErrorZ_clone(orig: number): number {
7478         if(!isWasmInitialized) {
7479                 throw new Error("initializeWasm() must be awaited first!");
7480         }
7481         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_clone(orig);
7482         return nativeResponseValue;
7483 }
7484         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_ok(struct LDKRouteParameters o);
7485 /* @internal */
7486 export function CResult_RouteParametersDecodeErrorZ_ok(o: number): number {
7487         if(!isWasmInitialized) {
7488                 throw new Error("initializeWasm() must be awaited first!");
7489         }
7490         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_ok(o);
7491         return nativeResponseValue;
7492 }
7493         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_err(struct LDKDecodeError e);
7494 /* @internal */
7495 export function CResult_RouteParametersDecodeErrorZ_err(e: number): number {
7496         if(!isWasmInitialized) {
7497                 throw new Error("initializeWasm() must be awaited first!");
7498         }
7499         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_err(e);
7500         return nativeResponseValue;
7501 }
7502         // bool CResult_RouteParametersDecodeErrorZ_is_ok(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR o);
7503 /* @internal */
7504 export function CResult_RouteParametersDecodeErrorZ_is_ok(o: number): boolean {
7505         if(!isWasmInitialized) {
7506                 throw new Error("initializeWasm() must be awaited first!");
7507         }
7508         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_is_ok(o);
7509         return nativeResponseValue;
7510 }
7511         // void CResult_RouteParametersDecodeErrorZ_free(struct LDKCResult_RouteParametersDecodeErrorZ _res);
7512 /* @internal */
7513 export function CResult_RouteParametersDecodeErrorZ_free(_res: number): void {
7514         if(!isWasmInitialized) {
7515                 throw new Error("initializeWasm() must be awaited first!");
7516         }
7517         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_free(_res);
7518         // debug statements here
7519 }
7520         // uintptr_t CResult_RouteParametersDecodeErrorZ_clone_ptr(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR arg);
7521 /* @internal */
7522 export function CResult_RouteParametersDecodeErrorZ_clone_ptr(arg: number): number {
7523         if(!isWasmInitialized) {
7524                 throw new Error("initializeWasm() must be awaited first!");
7525         }
7526         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_clone_ptr(arg);
7527         return nativeResponseValue;
7528 }
7529         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_clone(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR orig);
7530 /* @internal */
7531 export function CResult_RouteParametersDecodeErrorZ_clone(orig: number): number {
7532         if(!isWasmInitialized) {
7533                 throw new Error("initializeWasm() must be awaited first!");
7534         }
7535         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_clone(orig);
7536         return nativeResponseValue;
7537 }
7538         // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res);
7539 /* @internal */
7540 export function CVec_RouteHintZ_free(_res: number): void {
7541         if(!isWasmInitialized) {
7542                 throw new Error("initializeWasm() must be awaited first!");
7543         }
7544         const nativeResponseValue = wasm.TS_CVec_RouteHintZ_free(_res);
7545         // debug statements here
7546 }
7547         // struct LDKCOption_u64Z COption_u64Z_some(uint64_t o);
7548 /* @internal */
7549 export function COption_u64Z_some(o: bigint): number {
7550         if(!isWasmInitialized) {
7551                 throw new Error("initializeWasm() must be awaited first!");
7552         }
7553         const nativeResponseValue = wasm.TS_COption_u64Z_some(o);
7554         return nativeResponseValue;
7555 }
7556         // struct LDKCOption_u64Z COption_u64Z_none(void);
7557 /* @internal */
7558 export function COption_u64Z_none(): number {
7559         if(!isWasmInitialized) {
7560                 throw new Error("initializeWasm() must be awaited first!");
7561         }
7562         const nativeResponseValue = wasm.TS_COption_u64Z_none();
7563         return nativeResponseValue;
7564 }
7565         // void COption_u64Z_free(struct LDKCOption_u64Z _res);
7566 /* @internal */
7567 export function COption_u64Z_free(_res: number): void {
7568         if(!isWasmInitialized) {
7569                 throw new Error("initializeWasm() must be awaited first!");
7570         }
7571         const nativeResponseValue = wasm.TS_COption_u64Z_free(_res);
7572         // debug statements here
7573 }
7574         // uintptr_t COption_u64Z_clone_ptr(LDKCOption_u64Z *NONNULL_PTR arg);
7575 /* @internal */
7576 export function COption_u64Z_clone_ptr(arg: number): number {
7577         if(!isWasmInitialized) {
7578                 throw new Error("initializeWasm() must be awaited first!");
7579         }
7580         const nativeResponseValue = wasm.TS_COption_u64Z_clone_ptr(arg);
7581         return nativeResponseValue;
7582 }
7583         // struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig);
7584 /* @internal */
7585 export function COption_u64Z_clone(orig: number): number {
7586         if(!isWasmInitialized) {
7587                 throw new Error("initializeWasm() must be awaited first!");
7588         }
7589         const nativeResponseValue = wasm.TS_COption_u64Z_clone(orig);
7590         return nativeResponseValue;
7591 }
7592         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_ok(struct LDKPaymentParameters o);
7593 /* @internal */
7594 export function CResult_PaymentParametersDecodeErrorZ_ok(o: number): number {
7595         if(!isWasmInitialized) {
7596                 throw new Error("initializeWasm() must be awaited first!");
7597         }
7598         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_ok(o);
7599         return nativeResponseValue;
7600 }
7601         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_err(struct LDKDecodeError e);
7602 /* @internal */
7603 export function CResult_PaymentParametersDecodeErrorZ_err(e: number): number {
7604         if(!isWasmInitialized) {
7605                 throw new Error("initializeWasm() must be awaited first!");
7606         }
7607         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_err(e);
7608         return nativeResponseValue;
7609 }
7610         // bool CResult_PaymentParametersDecodeErrorZ_is_ok(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR o);
7611 /* @internal */
7612 export function CResult_PaymentParametersDecodeErrorZ_is_ok(o: number): boolean {
7613         if(!isWasmInitialized) {
7614                 throw new Error("initializeWasm() must be awaited first!");
7615         }
7616         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_is_ok(o);
7617         return nativeResponseValue;
7618 }
7619         // void CResult_PaymentParametersDecodeErrorZ_free(struct LDKCResult_PaymentParametersDecodeErrorZ _res);
7620 /* @internal */
7621 export function CResult_PaymentParametersDecodeErrorZ_free(_res: number): void {
7622         if(!isWasmInitialized) {
7623                 throw new Error("initializeWasm() must be awaited first!");
7624         }
7625         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_free(_res);
7626         // debug statements here
7627 }
7628         // uintptr_t CResult_PaymentParametersDecodeErrorZ_clone_ptr(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR arg);
7629 /* @internal */
7630 export function CResult_PaymentParametersDecodeErrorZ_clone_ptr(arg: number): number {
7631         if(!isWasmInitialized) {
7632                 throw new Error("initializeWasm() must be awaited first!");
7633         }
7634         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_clone_ptr(arg);
7635         return nativeResponseValue;
7636 }
7637         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_clone(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR orig);
7638 /* @internal */
7639 export function CResult_PaymentParametersDecodeErrorZ_clone(orig: number): number {
7640         if(!isWasmInitialized) {
7641                 throw new Error("initializeWasm() must be awaited first!");
7642         }
7643         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_clone(orig);
7644         return nativeResponseValue;
7645 }
7646         // void CVec_RouteHintHopZ_free(struct LDKCVec_RouteHintHopZ _res);
7647 /* @internal */
7648 export function CVec_RouteHintHopZ_free(_res: number): void {
7649         if(!isWasmInitialized) {
7650                 throw new Error("initializeWasm() must be awaited first!");
7651         }
7652         const nativeResponseValue = wasm.TS_CVec_RouteHintHopZ_free(_res);
7653         // debug statements here
7654 }
7655         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_ok(struct LDKRouteHint o);
7656 /* @internal */
7657 export function CResult_RouteHintDecodeErrorZ_ok(o: number): number {
7658         if(!isWasmInitialized) {
7659                 throw new Error("initializeWasm() must be awaited first!");
7660         }
7661         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_ok(o);
7662         return nativeResponseValue;
7663 }
7664         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_err(struct LDKDecodeError e);
7665 /* @internal */
7666 export function CResult_RouteHintDecodeErrorZ_err(e: number): number {
7667         if(!isWasmInitialized) {
7668                 throw new Error("initializeWasm() must be awaited first!");
7669         }
7670         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_err(e);
7671         return nativeResponseValue;
7672 }
7673         // bool CResult_RouteHintDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR o);
7674 /* @internal */
7675 export function CResult_RouteHintDecodeErrorZ_is_ok(o: number): boolean {
7676         if(!isWasmInitialized) {
7677                 throw new Error("initializeWasm() must be awaited first!");
7678         }
7679         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_is_ok(o);
7680         return nativeResponseValue;
7681 }
7682         // void CResult_RouteHintDecodeErrorZ_free(struct LDKCResult_RouteHintDecodeErrorZ _res);
7683 /* @internal */
7684 export function CResult_RouteHintDecodeErrorZ_free(_res: number): void {
7685         if(!isWasmInitialized) {
7686                 throw new Error("initializeWasm() must be awaited first!");
7687         }
7688         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_free(_res);
7689         // debug statements here
7690 }
7691         // uintptr_t CResult_RouteHintDecodeErrorZ_clone_ptr(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR arg);
7692 /* @internal */
7693 export function CResult_RouteHintDecodeErrorZ_clone_ptr(arg: number): number {
7694         if(!isWasmInitialized) {
7695                 throw new Error("initializeWasm() must be awaited first!");
7696         }
7697         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_clone_ptr(arg);
7698         return nativeResponseValue;
7699 }
7700         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_clone(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR orig);
7701 /* @internal */
7702 export function CResult_RouteHintDecodeErrorZ_clone(orig: number): number {
7703         if(!isWasmInitialized) {
7704                 throw new Error("initializeWasm() must be awaited first!");
7705         }
7706         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_clone(orig);
7707         return nativeResponseValue;
7708 }
7709         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_ok(struct LDKRouteHintHop o);
7710 /* @internal */
7711 export function CResult_RouteHintHopDecodeErrorZ_ok(o: number): number {
7712         if(!isWasmInitialized) {
7713                 throw new Error("initializeWasm() must be awaited first!");
7714         }
7715         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_ok(o);
7716         return nativeResponseValue;
7717 }
7718         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_err(struct LDKDecodeError e);
7719 /* @internal */
7720 export function CResult_RouteHintHopDecodeErrorZ_err(e: number): number {
7721         if(!isWasmInitialized) {
7722                 throw new Error("initializeWasm() must be awaited first!");
7723         }
7724         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_err(e);
7725         return nativeResponseValue;
7726 }
7727         // bool CResult_RouteHintHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR o);
7728 /* @internal */
7729 export function CResult_RouteHintHopDecodeErrorZ_is_ok(o: number): boolean {
7730         if(!isWasmInitialized) {
7731                 throw new Error("initializeWasm() must be awaited first!");
7732         }
7733         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_is_ok(o);
7734         return nativeResponseValue;
7735 }
7736         // void CResult_RouteHintHopDecodeErrorZ_free(struct LDKCResult_RouteHintHopDecodeErrorZ _res);
7737 /* @internal */
7738 export function CResult_RouteHintHopDecodeErrorZ_free(_res: number): void {
7739         if(!isWasmInitialized) {
7740                 throw new Error("initializeWasm() must be awaited first!");
7741         }
7742         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_free(_res);
7743         // debug statements here
7744 }
7745         // uintptr_t CResult_RouteHintHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR arg);
7746 /* @internal */
7747 export function CResult_RouteHintHopDecodeErrorZ_clone_ptr(arg: number): number {
7748         if(!isWasmInitialized) {
7749                 throw new Error("initializeWasm() must be awaited first!");
7750         }
7751         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_clone_ptr(arg);
7752         return nativeResponseValue;
7753 }
7754         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_clone(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR orig);
7755 /* @internal */
7756 export function CResult_RouteHintHopDecodeErrorZ_clone(orig: number): number {
7757         if(!isWasmInitialized) {
7758                 throw new Error("initializeWasm() must be awaited first!");
7759         }
7760         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_clone(orig);
7761         return nativeResponseValue;
7762 }
7763         // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res);
7764 /* @internal */
7765 export function CVec_ChannelDetailsZ_free(_res: number): void {
7766         if(!isWasmInitialized) {
7767                 throw new Error("initializeWasm() must be awaited first!");
7768         }
7769         const nativeResponseValue = wasm.TS_CVec_ChannelDetailsZ_free(_res);
7770         // debug statements here
7771 }
7772         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o);
7773 /* @internal */
7774 export function CResult_RouteLightningErrorZ_ok(o: number): number {
7775         if(!isWasmInitialized) {
7776                 throw new Error("initializeWasm() must be awaited first!");
7777         }
7778         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_ok(o);
7779         return nativeResponseValue;
7780 }
7781         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e);
7782 /* @internal */
7783 export function CResult_RouteLightningErrorZ_err(e: number): number {
7784         if(!isWasmInitialized) {
7785                 throw new Error("initializeWasm() must be awaited first!");
7786         }
7787         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_err(e);
7788         return nativeResponseValue;
7789 }
7790         // bool CResult_RouteLightningErrorZ_is_ok(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR o);
7791 /* @internal */
7792 export function CResult_RouteLightningErrorZ_is_ok(o: number): boolean {
7793         if(!isWasmInitialized) {
7794                 throw new Error("initializeWasm() must be awaited first!");
7795         }
7796         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_is_ok(o);
7797         return nativeResponseValue;
7798 }
7799         // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res);
7800 /* @internal */
7801 export function CResult_RouteLightningErrorZ_free(_res: number): void {
7802         if(!isWasmInitialized) {
7803                 throw new Error("initializeWasm() must be awaited first!");
7804         }
7805         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_free(_res);
7806         // debug statements here
7807 }
7808         // uintptr_t CResult_RouteLightningErrorZ_clone_ptr(LDKCResult_RouteLightningErrorZ *NONNULL_PTR arg);
7809 /* @internal */
7810 export function CResult_RouteLightningErrorZ_clone_ptr(arg: number): number {
7811         if(!isWasmInitialized) {
7812                 throw new Error("initializeWasm() must be awaited first!");
7813         }
7814         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_clone_ptr(arg);
7815         return nativeResponseValue;
7816 }
7817         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_clone(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR orig);
7818 /* @internal */
7819 export function CResult_RouteLightningErrorZ_clone(orig: number): number {
7820         if(!isWasmInitialized) {
7821                 throw new Error("initializeWasm() must be awaited first!");
7822         }
7823         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_clone(orig);
7824         return nativeResponseValue;
7825 }
7826         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_ok(struct LDKTxOut o);
7827 /* @internal */
7828 export function CResult_TxOutAccessErrorZ_ok(o: number): number {
7829         if(!isWasmInitialized) {
7830                 throw new Error("initializeWasm() must be awaited first!");
7831         }
7832         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_ok(o);
7833         return nativeResponseValue;
7834 }
7835         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_err(enum LDKAccessError e);
7836 /* @internal */
7837 export function CResult_TxOutAccessErrorZ_err(e: AccessError): number {
7838         if(!isWasmInitialized) {
7839                 throw new Error("initializeWasm() must be awaited first!");
7840         }
7841         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_err(e);
7842         return nativeResponseValue;
7843 }
7844         // bool CResult_TxOutAccessErrorZ_is_ok(const struct LDKCResult_TxOutAccessErrorZ *NONNULL_PTR o);
7845 /* @internal */
7846 export function CResult_TxOutAccessErrorZ_is_ok(o: number): boolean {
7847         if(!isWasmInitialized) {
7848                 throw new Error("initializeWasm() must be awaited first!");
7849         }
7850         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_is_ok(o);
7851         return nativeResponseValue;
7852 }
7853         // void CResult_TxOutAccessErrorZ_free(struct LDKCResult_TxOutAccessErrorZ _res);
7854 /* @internal */
7855 export function CResult_TxOutAccessErrorZ_free(_res: number): void {
7856         if(!isWasmInitialized) {
7857                 throw new Error("initializeWasm() must be awaited first!");
7858         }
7859         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_free(_res);
7860         // debug statements here
7861 }
7862         // uintptr_t CResult_TxOutAccessErrorZ_clone_ptr(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR arg);
7863 /* @internal */
7864 export function CResult_TxOutAccessErrorZ_clone_ptr(arg: number): number {
7865         if(!isWasmInitialized) {
7866                 throw new Error("initializeWasm() must be awaited first!");
7867         }
7868         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_clone_ptr(arg);
7869         return nativeResponseValue;
7870 }
7871         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_clone(const struct LDKCResult_TxOutAccessErrorZ *NONNULL_PTR orig);
7872 /* @internal */
7873 export function CResult_TxOutAccessErrorZ_clone(orig: number): number {
7874         if(!isWasmInitialized) {
7875                 throw new Error("initializeWasm() must be awaited first!");
7876         }
7877         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_clone(orig);
7878         return nativeResponseValue;
7879 }
7880         // uintptr_t C2Tuple_usizeTransactionZ_clone_ptr(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR arg);
7881 /* @internal */
7882 export function C2Tuple_usizeTransactionZ_clone_ptr(arg: number): number {
7883         if(!isWasmInitialized) {
7884                 throw new Error("initializeWasm() must be awaited first!");
7885         }
7886         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_clone_ptr(arg);
7887         return nativeResponseValue;
7888 }
7889         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_clone(const struct LDKC2Tuple_usizeTransactionZ *NONNULL_PTR orig);
7890 /* @internal */
7891 export function C2Tuple_usizeTransactionZ_clone(orig: number): number {
7892         if(!isWasmInitialized) {
7893                 throw new Error("initializeWasm() must be awaited first!");
7894         }
7895         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_clone(orig);
7896         return nativeResponseValue;
7897 }
7898         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
7899 /* @internal */
7900 export function C2Tuple_usizeTransactionZ_new(a: number, b: number): number {
7901         if(!isWasmInitialized) {
7902                 throw new Error("initializeWasm() must be awaited first!");
7903         }
7904         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_new(a, b);
7905         return nativeResponseValue;
7906 }
7907         // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
7908 /* @internal */
7909 export function C2Tuple_usizeTransactionZ_free(_res: number): void {
7910         if(!isWasmInitialized) {
7911                 throw new Error("initializeWasm() must be awaited first!");
7912         }
7913         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_free(_res);
7914         // debug statements here
7915 }
7916         // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
7917 /* @internal */
7918 export function CVec_C2Tuple_usizeTransactionZZ_free(_res: number): void {
7919         if(!isWasmInitialized) {
7920                 throw new Error("initializeWasm() must be awaited first!");
7921         }
7922         const nativeResponseValue = wasm.TS_CVec_C2Tuple_usizeTransactionZZ_free(_res);
7923         // debug statements here
7924 }
7925         // void CVec_TxidZ_free(struct LDKCVec_TxidZ _res);
7926 /* @internal */
7927 export function CVec_TxidZ_free(_res: number): void {
7928         if(!isWasmInitialized) {
7929                 throw new Error("initializeWasm() must be awaited first!");
7930         }
7931         const nativeResponseValue = wasm.TS_CVec_TxidZ_free(_res);
7932         // debug statements here
7933 }
7934         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_ok(void);
7935 /* @internal */
7936 export function CResult_NoneChannelMonitorUpdateErrZ_ok(): number {
7937         if(!isWasmInitialized) {
7938                 throw new Error("initializeWasm() must be awaited first!");
7939         }
7940         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_ok();
7941         return nativeResponseValue;
7942 }
7943         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_err(enum LDKChannelMonitorUpdateErr e);
7944 /* @internal */
7945 export function CResult_NoneChannelMonitorUpdateErrZ_err(e: ChannelMonitorUpdateErr): number {
7946         if(!isWasmInitialized) {
7947                 throw new Error("initializeWasm() must be awaited first!");
7948         }
7949         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_err(e);
7950         return nativeResponseValue;
7951 }
7952         // bool CResult_NoneChannelMonitorUpdateErrZ_is_ok(const struct LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR o);
7953 /* @internal */
7954 export function CResult_NoneChannelMonitorUpdateErrZ_is_ok(o: number): boolean {
7955         if(!isWasmInitialized) {
7956                 throw new Error("initializeWasm() must be awaited first!");
7957         }
7958         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_is_ok(o);
7959         return nativeResponseValue;
7960 }
7961         // void CResult_NoneChannelMonitorUpdateErrZ_free(struct LDKCResult_NoneChannelMonitorUpdateErrZ _res);
7962 /* @internal */
7963 export function CResult_NoneChannelMonitorUpdateErrZ_free(_res: number): void {
7964         if(!isWasmInitialized) {
7965                 throw new Error("initializeWasm() must be awaited first!");
7966         }
7967         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_free(_res);
7968         // debug statements here
7969 }
7970         // uintptr_t CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR arg);
7971 /* @internal */
7972 export function CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(arg: number): number {
7973         if(!isWasmInitialized) {
7974                 throw new Error("initializeWasm() must be awaited first!");
7975         }
7976         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(arg);
7977         return nativeResponseValue;
7978 }
7979         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_clone(const struct LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR orig);
7980 /* @internal */
7981 export function CResult_NoneChannelMonitorUpdateErrZ_clone(orig: number): number {
7982         if(!isWasmInitialized) {
7983                 throw new Error("initializeWasm() must be awaited first!");
7984         }
7985         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_clone(orig);
7986         return nativeResponseValue;
7987 }
7988         // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res);
7989 /* @internal */
7990 export function CVec_MonitorEventZ_free(_res: number): void {
7991         if(!isWasmInitialized) {
7992                 throw new Error("initializeWasm() must be awaited first!");
7993         }
7994         const nativeResponseValue = wasm.TS_CVec_MonitorEventZ_free(_res);
7995         // debug statements here
7996 }
7997         // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_some(struct LDKC2Tuple_usizeTransactionZ o);
7998 /* @internal */
7999 export function COption_C2Tuple_usizeTransactionZZ_some(o: number): number {
8000         if(!isWasmInitialized) {
8001                 throw new Error("initializeWasm() must be awaited first!");
8002         }
8003         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_some(o);
8004         return nativeResponseValue;
8005 }
8006         // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_none(void);
8007 /* @internal */
8008 export function COption_C2Tuple_usizeTransactionZZ_none(): number {
8009         if(!isWasmInitialized) {
8010                 throw new Error("initializeWasm() must be awaited first!");
8011         }
8012         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_none();
8013         return nativeResponseValue;
8014 }
8015         // void COption_C2Tuple_usizeTransactionZZ_free(struct LDKCOption_C2Tuple_usizeTransactionZZ _res);
8016 /* @internal */
8017 export function COption_C2Tuple_usizeTransactionZZ_free(_res: number): void {
8018         if(!isWasmInitialized) {
8019                 throw new Error("initializeWasm() must be awaited first!");
8020         }
8021         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_free(_res);
8022         // debug statements here
8023 }
8024         // uintptr_t COption_C2Tuple_usizeTransactionZZ_clone_ptr(LDKCOption_C2Tuple_usizeTransactionZZ *NONNULL_PTR arg);
8025 /* @internal */
8026 export function COption_C2Tuple_usizeTransactionZZ_clone_ptr(arg: number): number {
8027         if(!isWasmInitialized) {
8028                 throw new Error("initializeWasm() must be awaited first!");
8029         }
8030         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_clone_ptr(arg);
8031         return nativeResponseValue;
8032 }
8033         // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_clone(const struct LDKCOption_C2Tuple_usizeTransactionZZ *NONNULL_PTR orig);
8034 /* @internal */
8035 export function COption_C2Tuple_usizeTransactionZZ_clone(orig: number): number {
8036         if(!isWasmInitialized) {
8037                 throw new Error("initializeWasm() must be awaited first!");
8038         }
8039         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_clone(orig);
8040         return nativeResponseValue;
8041 }
8042         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_some(struct LDKClosureReason o);
8043 /* @internal */
8044 export function COption_ClosureReasonZ_some(o: number): number {
8045         if(!isWasmInitialized) {
8046                 throw new Error("initializeWasm() must be awaited first!");
8047         }
8048         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_some(o);
8049         return nativeResponseValue;
8050 }
8051         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_none(void);
8052 /* @internal */
8053 export function COption_ClosureReasonZ_none(): number {
8054         if(!isWasmInitialized) {
8055                 throw new Error("initializeWasm() must be awaited first!");
8056         }
8057         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_none();
8058         return nativeResponseValue;
8059 }
8060         // void COption_ClosureReasonZ_free(struct LDKCOption_ClosureReasonZ _res);
8061 /* @internal */
8062 export function COption_ClosureReasonZ_free(_res: number): void {
8063         if(!isWasmInitialized) {
8064                 throw new Error("initializeWasm() must be awaited first!");
8065         }
8066         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_free(_res);
8067         // debug statements here
8068 }
8069         // uintptr_t COption_ClosureReasonZ_clone_ptr(LDKCOption_ClosureReasonZ *NONNULL_PTR arg);
8070 /* @internal */
8071 export function COption_ClosureReasonZ_clone_ptr(arg: number): number {
8072         if(!isWasmInitialized) {
8073                 throw new Error("initializeWasm() must be awaited first!");
8074         }
8075         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_clone_ptr(arg);
8076         return nativeResponseValue;
8077 }
8078         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_clone(const struct LDKCOption_ClosureReasonZ *NONNULL_PTR orig);
8079 /* @internal */
8080 export function COption_ClosureReasonZ_clone(orig: number): number {
8081         if(!isWasmInitialized) {
8082                 throw new Error("initializeWasm() must be awaited first!");
8083         }
8084         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_clone(orig);
8085         return nativeResponseValue;
8086 }
8087         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_ok(struct LDKCOption_ClosureReasonZ o);
8088 /* @internal */
8089 export function CResult_COption_ClosureReasonZDecodeErrorZ_ok(o: number): number {
8090         if(!isWasmInitialized) {
8091                 throw new Error("initializeWasm() must be awaited first!");
8092         }
8093         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_ok(o);
8094         return nativeResponseValue;
8095 }
8096         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_err(struct LDKDecodeError e);
8097 /* @internal */
8098 export function CResult_COption_ClosureReasonZDecodeErrorZ_err(e: number): number {
8099         if(!isWasmInitialized) {
8100                 throw new Error("initializeWasm() must be awaited first!");
8101         }
8102         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_err(e);
8103         return nativeResponseValue;
8104 }
8105         // bool CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR o);
8106 /* @internal */
8107 export function CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(o: number): boolean {
8108         if(!isWasmInitialized) {
8109                 throw new Error("initializeWasm() must be awaited first!");
8110         }
8111         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(o);
8112         return nativeResponseValue;
8113 }
8114         // void CResult_COption_ClosureReasonZDecodeErrorZ_free(struct LDKCResult_COption_ClosureReasonZDecodeErrorZ _res);
8115 /* @internal */
8116 export function CResult_COption_ClosureReasonZDecodeErrorZ_free(_res: number): void {
8117         if(!isWasmInitialized) {
8118                 throw new Error("initializeWasm() must be awaited first!");
8119         }
8120         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_free(_res);
8121         // debug statements here
8122 }
8123         // uintptr_t CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR arg);
8124 /* @internal */
8125 export function CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(arg: number): number {
8126         if(!isWasmInitialized) {
8127                 throw new Error("initializeWasm() must be awaited first!");
8128         }
8129         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(arg);
8130         return nativeResponseValue;
8131 }
8132         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_clone(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR orig);
8133 /* @internal */
8134 export function CResult_COption_ClosureReasonZDecodeErrorZ_clone(orig: number): number {
8135         if(!isWasmInitialized) {
8136                 throw new Error("initializeWasm() must be awaited first!");
8137         }
8138         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_clone(orig);
8139         return nativeResponseValue;
8140 }
8141         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_some(struct LDKNetworkUpdate o);
8142 /* @internal */
8143 export function COption_NetworkUpdateZ_some(o: number): number {
8144         if(!isWasmInitialized) {
8145                 throw new Error("initializeWasm() must be awaited first!");
8146         }
8147         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_some(o);
8148         return nativeResponseValue;
8149 }
8150         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_none(void);
8151 /* @internal */
8152 export function COption_NetworkUpdateZ_none(): number {
8153         if(!isWasmInitialized) {
8154                 throw new Error("initializeWasm() must be awaited first!");
8155         }
8156         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_none();
8157         return nativeResponseValue;
8158 }
8159         // void COption_NetworkUpdateZ_free(struct LDKCOption_NetworkUpdateZ _res);
8160 /* @internal */
8161 export function COption_NetworkUpdateZ_free(_res: number): void {
8162         if(!isWasmInitialized) {
8163                 throw new Error("initializeWasm() must be awaited first!");
8164         }
8165         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_free(_res);
8166         // debug statements here
8167 }
8168         // uintptr_t COption_NetworkUpdateZ_clone_ptr(LDKCOption_NetworkUpdateZ *NONNULL_PTR arg);
8169 /* @internal */
8170 export function COption_NetworkUpdateZ_clone_ptr(arg: number): number {
8171         if(!isWasmInitialized) {
8172                 throw new Error("initializeWasm() must be awaited first!");
8173         }
8174         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_clone_ptr(arg);
8175         return nativeResponseValue;
8176 }
8177         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_clone(const struct LDKCOption_NetworkUpdateZ *NONNULL_PTR orig);
8178 /* @internal */
8179 export function COption_NetworkUpdateZ_clone(orig: number): number {
8180         if(!isWasmInitialized) {
8181                 throw new Error("initializeWasm() must be awaited first!");
8182         }
8183         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_clone(orig);
8184         return nativeResponseValue;
8185 }
8186         // void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescriptorZ _res);
8187 /* @internal */
8188 export function CVec_SpendableOutputDescriptorZ_free(_res: number): void {
8189         if(!isWasmInitialized) {
8190                 throw new Error("initializeWasm() must be awaited first!");
8191         }
8192         const nativeResponseValue = wasm.TS_CVec_SpendableOutputDescriptorZ_free(_res);
8193         // debug statements here
8194 }
8195         // struct LDKCOption_EventZ COption_EventZ_some(struct LDKEvent o);
8196 /* @internal */
8197 export function COption_EventZ_some(o: number): number {
8198         if(!isWasmInitialized) {
8199                 throw new Error("initializeWasm() must be awaited first!");
8200         }
8201         const nativeResponseValue = wasm.TS_COption_EventZ_some(o);
8202         return nativeResponseValue;
8203 }
8204         // struct LDKCOption_EventZ COption_EventZ_none(void);
8205 /* @internal */
8206 export function COption_EventZ_none(): number {
8207         if(!isWasmInitialized) {
8208                 throw new Error("initializeWasm() must be awaited first!");
8209         }
8210         const nativeResponseValue = wasm.TS_COption_EventZ_none();
8211         return nativeResponseValue;
8212 }
8213         // void COption_EventZ_free(struct LDKCOption_EventZ _res);
8214 /* @internal */
8215 export function COption_EventZ_free(_res: number): void {
8216         if(!isWasmInitialized) {
8217                 throw new Error("initializeWasm() must be awaited first!");
8218         }
8219         const nativeResponseValue = wasm.TS_COption_EventZ_free(_res);
8220         // debug statements here
8221 }
8222         // uintptr_t COption_EventZ_clone_ptr(LDKCOption_EventZ *NONNULL_PTR arg);
8223 /* @internal */
8224 export function COption_EventZ_clone_ptr(arg: number): number {
8225         if(!isWasmInitialized) {
8226                 throw new Error("initializeWasm() must be awaited first!");
8227         }
8228         const nativeResponseValue = wasm.TS_COption_EventZ_clone_ptr(arg);
8229         return nativeResponseValue;
8230 }
8231         // struct LDKCOption_EventZ COption_EventZ_clone(const struct LDKCOption_EventZ *NONNULL_PTR orig);
8232 /* @internal */
8233 export function COption_EventZ_clone(orig: number): number {
8234         if(!isWasmInitialized) {
8235                 throw new Error("initializeWasm() must be awaited first!");
8236         }
8237         const nativeResponseValue = wasm.TS_COption_EventZ_clone(orig);
8238         return nativeResponseValue;
8239 }
8240         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_ok(struct LDKCOption_EventZ o);
8241 /* @internal */
8242 export function CResult_COption_EventZDecodeErrorZ_ok(o: number): number {
8243         if(!isWasmInitialized) {
8244                 throw new Error("initializeWasm() must be awaited first!");
8245         }
8246         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_ok(o);
8247         return nativeResponseValue;
8248 }
8249         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_err(struct LDKDecodeError e);
8250 /* @internal */
8251 export function CResult_COption_EventZDecodeErrorZ_err(e: number): number {
8252         if(!isWasmInitialized) {
8253                 throw new Error("initializeWasm() must be awaited first!");
8254         }
8255         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_err(e);
8256         return nativeResponseValue;
8257 }
8258         // bool CResult_COption_EventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR o);
8259 /* @internal */
8260 export function CResult_COption_EventZDecodeErrorZ_is_ok(o: number): boolean {
8261         if(!isWasmInitialized) {
8262                 throw new Error("initializeWasm() must be awaited first!");
8263         }
8264         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_is_ok(o);
8265         return nativeResponseValue;
8266 }
8267         // void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDecodeErrorZ _res);
8268 /* @internal */
8269 export function CResult_COption_EventZDecodeErrorZ_free(_res: number): void {
8270         if(!isWasmInitialized) {
8271                 throw new Error("initializeWasm() must be awaited first!");
8272         }
8273         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_free(_res);
8274         // debug statements here
8275 }
8276         // uintptr_t CResult_COption_EventZDecodeErrorZ_clone_ptr(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR arg);
8277 /* @internal */
8278 export function CResult_COption_EventZDecodeErrorZ_clone_ptr(arg: number): number {
8279         if(!isWasmInitialized) {
8280                 throw new Error("initializeWasm() must be awaited first!");
8281         }
8282         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_clone_ptr(arg);
8283         return nativeResponseValue;
8284 }
8285         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig);
8286 /* @internal */
8287 export function CResult_COption_EventZDecodeErrorZ_clone(orig: number): number {
8288         if(!isWasmInitialized) {
8289                 throw new Error("initializeWasm() must be awaited first!");
8290         }
8291         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_clone(orig);
8292         return nativeResponseValue;
8293 }
8294         // void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res);
8295 /* @internal */
8296 export function CVec_MessageSendEventZ_free(_res: number): void {
8297         if(!isWasmInitialized) {
8298                 throw new Error("initializeWasm() must be awaited first!");
8299         }
8300         const nativeResponseValue = wasm.TS_CVec_MessageSendEventZ_free(_res);
8301         // debug statements here
8302 }
8303         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_ok(struct LDKFixedPenaltyScorer o);
8304 /* @internal */
8305 export function CResult_FixedPenaltyScorerDecodeErrorZ_ok(o: number): number {
8306         if(!isWasmInitialized) {
8307                 throw new Error("initializeWasm() must be awaited first!");
8308         }
8309         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_ok(o);
8310         return nativeResponseValue;
8311 }
8312         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_err(struct LDKDecodeError e);
8313 /* @internal */
8314 export function CResult_FixedPenaltyScorerDecodeErrorZ_err(e: number): number {
8315         if(!isWasmInitialized) {
8316                 throw new Error("initializeWasm() must be awaited first!");
8317         }
8318         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_err(e);
8319         return nativeResponseValue;
8320 }
8321         // bool CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR o);
8322 /* @internal */
8323 export function CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(o: number): boolean {
8324         if(!isWasmInitialized) {
8325                 throw new Error("initializeWasm() must be awaited first!");
8326         }
8327         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(o);
8328         return nativeResponseValue;
8329 }
8330         // void CResult_FixedPenaltyScorerDecodeErrorZ_free(struct LDKCResult_FixedPenaltyScorerDecodeErrorZ _res);
8331 /* @internal */
8332 export function CResult_FixedPenaltyScorerDecodeErrorZ_free(_res: number): void {
8333         if(!isWasmInitialized) {
8334                 throw new Error("initializeWasm() must be awaited first!");
8335         }
8336         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_free(_res);
8337         // debug statements here
8338 }
8339         // uintptr_t CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR arg);
8340 /* @internal */
8341 export function CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(arg: number): number {
8342         if(!isWasmInitialized) {
8343                 throw new Error("initializeWasm() must be awaited first!");
8344         }
8345         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(arg);
8346         return nativeResponseValue;
8347 }
8348         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_clone(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR orig);
8349 /* @internal */
8350 export function CResult_FixedPenaltyScorerDecodeErrorZ_clone(orig: number): number {
8351         if(!isWasmInitialized) {
8352                 throw new Error("initializeWasm() must be awaited first!");
8353         }
8354         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_clone(orig);
8355         return nativeResponseValue;
8356 }
8357         // struct LDKCResult_ScoringParametersDecodeErrorZ CResult_ScoringParametersDecodeErrorZ_ok(struct LDKScoringParameters o);
8358 /* @internal */
8359 export function CResult_ScoringParametersDecodeErrorZ_ok(o: number): number {
8360         if(!isWasmInitialized) {
8361                 throw new Error("initializeWasm() must be awaited first!");
8362         }
8363         const nativeResponseValue = wasm.TS_CResult_ScoringParametersDecodeErrorZ_ok(o);
8364         return nativeResponseValue;
8365 }
8366         // struct LDKCResult_ScoringParametersDecodeErrorZ CResult_ScoringParametersDecodeErrorZ_err(struct LDKDecodeError e);
8367 /* @internal */
8368 export function CResult_ScoringParametersDecodeErrorZ_err(e: number): number {
8369         if(!isWasmInitialized) {
8370                 throw new Error("initializeWasm() must be awaited first!");
8371         }
8372         const nativeResponseValue = wasm.TS_CResult_ScoringParametersDecodeErrorZ_err(e);
8373         return nativeResponseValue;
8374 }
8375         // bool CResult_ScoringParametersDecodeErrorZ_is_ok(const struct LDKCResult_ScoringParametersDecodeErrorZ *NONNULL_PTR o);
8376 /* @internal */
8377 export function CResult_ScoringParametersDecodeErrorZ_is_ok(o: number): boolean {
8378         if(!isWasmInitialized) {
8379                 throw new Error("initializeWasm() must be awaited first!");
8380         }
8381         const nativeResponseValue = wasm.TS_CResult_ScoringParametersDecodeErrorZ_is_ok(o);
8382         return nativeResponseValue;
8383 }
8384         // void CResult_ScoringParametersDecodeErrorZ_free(struct LDKCResult_ScoringParametersDecodeErrorZ _res);
8385 /* @internal */
8386 export function CResult_ScoringParametersDecodeErrorZ_free(_res: number): void {
8387         if(!isWasmInitialized) {
8388                 throw new Error("initializeWasm() must be awaited first!");
8389         }
8390         const nativeResponseValue = wasm.TS_CResult_ScoringParametersDecodeErrorZ_free(_res);
8391         // debug statements here
8392 }
8393         // uintptr_t CResult_ScoringParametersDecodeErrorZ_clone_ptr(LDKCResult_ScoringParametersDecodeErrorZ *NONNULL_PTR arg);
8394 /* @internal */
8395 export function CResult_ScoringParametersDecodeErrorZ_clone_ptr(arg: number): number {
8396         if(!isWasmInitialized) {
8397                 throw new Error("initializeWasm() must be awaited first!");
8398         }
8399         const nativeResponseValue = wasm.TS_CResult_ScoringParametersDecodeErrorZ_clone_ptr(arg);
8400         return nativeResponseValue;
8401 }
8402         // struct LDKCResult_ScoringParametersDecodeErrorZ CResult_ScoringParametersDecodeErrorZ_clone(const struct LDKCResult_ScoringParametersDecodeErrorZ *NONNULL_PTR orig);
8403 /* @internal */
8404 export function CResult_ScoringParametersDecodeErrorZ_clone(orig: number): number {
8405         if(!isWasmInitialized) {
8406                 throw new Error("initializeWasm() must be awaited first!");
8407         }
8408         const nativeResponseValue = wasm.TS_CResult_ScoringParametersDecodeErrorZ_clone(orig);
8409         return nativeResponseValue;
8410 }
8411         // struct LDKCResult_ScorerDecodeErrorZ CResult_ScorerDecodeErrorZ_ok(struct LDKScorer o);
8412 /* @internal */
8413 export function CResult_ScorerDecodeErrorZ_ok(o: number): number {
8414         if(!isWasmInitialized) {
8415                 throw new Error("initializeWasm() must be awaited first!");
8416         }
8417         const nativeResponseValue = wasm.TS_CResult_ScorerDecodeErrorZ_ok(o);
8418         return nativeResponseValue;
8419 }
8420         // struct LDKCResult_ScorerDecodeErrorZ CResult_ScorerDecodeErrorZ_err(struct LDKDecodeError e);
8421 /* @internal */
8422 export function CResult_ScorerDecodeErrorZ_err(e: number): number {
8423         if(!isWasmInitialized) {
8424                 throw new Error("initializeWasm() must be awaited first!");
8425         }
8426         const nativeResponseValue = wasm.TS_CResult_ScorerDecodeErrorZ_err(e);
8427         return nativeResponseValue;
8428 }
8429         // bool CResult_ScorerDecodeErrorZ_is_ok(const struct LDKCResult_ScorerDecodeErrorZ *NONNULL_PTR o);
8430 /* @internal */
8431 export function CResult_ScorerDecodeErrorZ_is_ok(o: number): boolean {
8432         if(!isWasmInitialized) {
8433                 throw new Error("initializeWasm() must be awaited first!");
8434         }
8435         const nativeResponseValue = wasm.TS_CResult_ScorerDecodeErrorZ_is_ok(o);
8436         return nativeResponseValue;
8437 }
8438         // void CResult_ScorerDecodeErrorZ_free(struct LDKCResult_ScorerDecodeErrorZ _res);
8439 /* @internal */
8440 export function CResult_ScorerDecodeErrorZ_free(_res: number): void {
8441         if(!isWasmInitialized) {
8442                 throw new Error("initializeWasm() must be awaited first!");
8443         }
8444         const nativeResponseValue = wasm.TS_CResult_ScorerDecodeErrorZ_free(_res);
8445         // debug statements here
8446 }
8447         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_ok(struct LDKProbabilisticScorer o);
8448 /* @internal */
8449 export function CResult_ProbabilisticScorerDecodeErrorZ_ok(o: number): number {
8450         if(!isWasmInitialized) {
8451                 throw new Error("initializeWasm() must be awaited first!");
8452         }
8453         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_ok(o);
8454         return nativeResponseValue;
8455 }
8456         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_err(struct LDKDecodeError e);
8457 /* @internal */
8458 export function CResult_ProbabilisticScorerDecodeErrorZ_err(e: number): number {
8459         if(!isWasmInitialized) {
8460                 throw new Error("initializeWasm() must be awaited first!");
8461         }
8462         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_err(e);
8463         return nativeResponseValue;
8464 }
8465         // bool CResult_ProbabilisticScorerDecodeErrorZ_is_ok(const struct LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR o);
8466 /* @internal */
8467 export function CResult_ProbabilisticScorerDecodeErrorZ_is_ok(o: number): boolean {
8468         if(!isWasmInitialized) {
8469                 throw new Error("initializeWasm() must be awaited first!");
8470         }
8471         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_is_ok(o);
8472         return nativeResponseValue;
8473 }
8474         // void CResult_ProbabilisticScorerDecodeErrorZ_free(struct LDKCResult_ProbabilisticScorerDecodeErrorZ _res);
8475 /* @internal */
8476 export function CResult_ProbabilisticScorerDecodeErrorZ_free(_res: number): void {
8477         if(!isWasmInitialized) {
8478                 throw new Error("initializeWasm() must be awaited first!");
8479         }
8480         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_free(_res);
8481         // debug statements here
8482 }
8483         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o);
8484 /* @internal */
8485 export function CResult_InitFeaturesDecodeErrorZ_ok(o: number): number {
8486         if(!isWasmInitialized) {
8487                 throw new Error("initializeWasm() must be awaited first!");
8488         }
8489         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_ok(o);
8490         return nativeResponseValue;
8491 }
8492         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8493 /* @internal */
8494 export function CResult_InitFeaturesDecodeErrorZ_err(e: number): number {
8495         if(!isWasmInitialized) {
8496                 throw new Error("initializeWasm() must be awaited first!");
8497         }
8498         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_err(e);
8499         return nativeResponseValue;
8500 }
8501         // bool CResult_InitFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR o);
8502 /* @internal */
8503 export function CResult_InitFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8504         if(!isWasmInitialized) {
8505                 throw new Error("initializeWasm() must be awaited first!");
8506         }
8507         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_is_ok(o);
8508         return nativeResponseValue;
8509 }
8510         // void CResult_InitFeaturesDecodeErrorZ_free(struct LDKCResult_InitFeaturesDecodeErrorZ _res);
8511 /* @internal */
8512 export function CResult_InitFeaturesDecodeErrorZ_free(_res: number): void {
8513         if(!isWasmInitialized) {
8514                 throw new Error("initializeWasm() must be awaited first!");
8515         }
8516         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_free(_res);
8517         // debug statements here
8518 }
8519         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_ok(struct LDKChannelFeatures o);
8520 /* @internal */
8521 export function CResult_ChannelFeaturesDecodeErrorZ_ok(o: number): number {
8522         if(!isWasmInitialized) {
8523                 throw new Error("initializeWasm() must be awaited first!");
8524         }
8525         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_ok(o);
8526         return nativeResponseValue;
8527 }
8528         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8529 /* @internal */
8530 export function CResult_ChannelFeaturesDecodeErrorZ_err(e: number): number {
8531         if(!isWasmInitialized) {
8532                 throw new Error("initializeWasm() must be awaited first!");
8533         }
8534         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_err(e);
8535         return nativeResponseValue;
8536 }
8537         // bool CResult_ChannelFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR o);
8538 /* @internal */
8539 export function CResult_ChannelFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8540         if(!isWasmInitialized) {
8541                 throw new Error("initializeWasm() must be awaited first!");
8542         }
8543         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_is_ok(o);
8544         return nativeResponseValue;
8545 }
8546         // void CResult_ChannelFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelFeaturesDecodeErrorZ _res);
8547 /* @internal */
8548 export function CResult_ChannelFeaturesDecodeErrorZ_free(_res: number): void {
8549         if(!isWasmInitialized) {
8550                 throw new Error("initializeWasm() must be awaited first!");
8551         }
8552         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_free(_res);
8553         // debug statements here
8554 }
8555         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_ok(struct LDKNodeFeatures o);
8556 /* @internal */
8557 export function CResult_NodeFeaturesDecodeErrorZ_ok(o: number): number {
8558         if(!isWasmInitialized) {
8559                 throw new Error("initializeWasm() must be awaited first!");
8560         }
8561         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_ok(o);
8562         return nativeResponseValue;
8563 }
8564         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8565 /* @internal */
8566 export function CResult_NodeFeaturesDecodeErrorZ_err(e: number): number {
8567         if(!isWasmInitialized) {
8568                 throw new Error("initializeWasm() must be awaited first!");
8569         }
8570         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_err(e);
8571         return nativeResponseValue;
8572 }
8573         // bool CResult_NodeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR o);
8574 /* @internal */
8575 export function CResult_NodeFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8576         if(!isWasmInitialized) {
8577                 throw new Error("initializeWasm() must be awaited first!");
8578         }
8579         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_is_ok(o);
8580         return nativeResponseValue;
8581 }
8582         // void CResult_NodeFeaturesDecodeErrorZ_free(struct LDKCResult_NodeFeaturesDecodeErrorZ _res);
8583 /* @internal */
8584 export function CResult_NodeFeaturesDecodeErrorZ_free(_res: number): void {
8585         if(!isWasmInitialized) {
8586                 throw new Error("initializeWasm() must be awaited first!");
8587         }
8588         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_free(_res);
8589         // debug statements here
8590 }
8591         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_ok(struct LDKInvoiceFeatures o);
8592 /* @internal */
8593 export function CResult_InvoiceFeaturesDecodeErrorZ_ok(o: number): number {
8594         if(!isWasmInitialized) {
8595                 throw new Error("initializeWasm() must be awaited first!");
8596         }
8597         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_ok(o);
8598         return nativeResponseValue;
8599 }
8600         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8601 /* @internal */
8602 export function CResult_InvoiceFeaturesDecodeErrorZ_err(e: number): number {
8603         if(!isWasmInitialized) {
8604                 throw new Error("initializeWasm() must be awaited first!");
8605         }
8606         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_err(e);
8607         return nativeResponseValue;
8608 }
8609         // bool CResult_InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
8610 /* @internal */
8611 export function CResult_InvoiceFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8612         if(!isWasmInitialized) {
8613                 throw new Error("initializeWasm() must be awaited first!");
8614         }
8615         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_is_ok(o);
8616         return nativeResponseValue;
8617 }
8618         // void CResult_InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_InvoiceFeaturesDecodeErrorZ _res);
8619 /* @internal */
8620 export function CResult_InvoiceFeaturesDecodeErrorZ_free(_res: number): void {
8621         if(!isWasmInitialized) {
8622                 throw new Error("initializeWasm() must be awaited first!");
8623         }
8624         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_free(_res);
8625         // debug statements here
8626 }
8627         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_ok(struct LDKChannelTypeFeatures o);
8628 /* @internal */
8629 export function CResult_ChannelTypeFeaturesDecodeErrorZ_ok(o: number): number {
8630         if(!isWasmInitialized) {
8631                 throw new Error("initializeWasm() must be awaited first!");
8632         }
8633         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_ok(o);
8634         return nativeResponseValue;
8635 }
8636         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8637 /* @internal */
8638 export function CResult_ChannelTypeFeaturesDecodeErrorZ_err(e: number): number {
8639         if(!isWasmInitialized) {
8640                 throw new Error("initializeWasm() must be awaited first!");
8641         }
8642         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_err(e);
8643         return nativeResponseValue;
8644 }
8645         // bool CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR o);
8646 /* @internal */
8647 export function CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8648         if(!isWasmInitialized) {
8649                 throw new Error("initializeWasm() must be awaited first!");
8650         }
8651         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(o);
8652         return nativeResponseValue;
8653 }
8654         // void CResult_ChannelTypeFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ _res);
8655 /* @internal */
8656 export function CResult_ChannelTypeFeaturesDecodeErrorZ_free(_res: number): void {
8657         if(!isWasmInitialized) {
8658                 throw new Error("initializeWasm() must be awaited first!");
8659         }
8660         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_free(_res);
8661         // debug statements here
8662 }
8663         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKDelayedPaymentOutputDescriptor o);
8664 /* @internal */
8665 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(o: number): number {
8666         if(!isWasmInitialized) {
8667                 throw new Error("initializeWasm() must be awaited first!");
8668         }
8669         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(o);
8670         return nativeResponseValue;
8671 }
8672         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
8673 /* @internal */
8674 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(e: number): number {
8675         if(!isWasmInitialized) {
8676                 throw new Error("initializeWasm() must be awaited first!");
8677         }
8678         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(e);
8679         return nativeResponseValue;
8680 }
8681         // bool CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
8682 /* @internal */
8683 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(o: number): boolean {
8684         if(!isWasmInitialized) {
8685                 throw new Error("initializeWasm() must be awaited first!");
8686         }
8687         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(o);
8688         return nativeResponseValue;
8689 }
8690         // void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ _res);
8691 /* @internal */
8692 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(_res: number): void {
8693         if(!isWasmInitialized) {
8694                 throw new Error("initializeWasm() must be awaited first!");
8695         }
8696         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(_res);
8697         // debug statements here
8698 }
8699         // uintptr_t CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
8700 /* @internal */
8701 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg: number): number {
8702         if(!isWasmInitialized) {
8703                 throw new Error("initializeWasm() must be awaited first!");
8704         }
8705         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg);
8706         return nativeResponseValue;
8707 }
8708         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
8709 /* @internal */
8710 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(orig: number): number {
8711         if(!isWasmInitialized) {
8712                 throw new Error("initializeWasm() must be awaited first!");
8713         }
8714         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(orig);
8715         return nativeResponseValue;
8716 }
8717         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKStaticPaymentOutputDescriptor o);
8718 /* @internal */
8719 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(o: number): number {
8720         if(!isWasmInitialized) {
8721                 throw new Error("initializeWasm() must be awaited first!");
8722         }
8723         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(o);
8724         return nativeResponseValue;
8725 }
8726         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
8727 /* @internal */
8728 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(e: number): number {
8729         if(!isWasmInitialized) {
8730                 throw new Error("initializeWasm() must be awaited first!");
8731         }
8732         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(e);
8733         return nativeResponseValue;
8734 }
8735         // bool CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
8736 /* @internal */
8737 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(o: number): boolean {
8738         if(!isWasmInitialized) {
8739                 throw new Error("initializeWasm() must be awaited first!");
8740         }
8741         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(o);
8742         return nativeResponseValue;
8743 }
8744         // void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ _res);
8745 /* @internal */
8746 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(_res: number): void {
8747         if(!isWasmInitialized) {
8748                 throw new Error("initializeWasm() must be awaited first!");
8749         }
8750         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(_res);
8751         // debug statements here
8752 }
8753         // uintptr_t CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
8754 /* @internal */
8755 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg: number): number {
8756         if(!isWasmInitialized) {
8757                 throw new Error("initializeWasm() must be awaited first!");
8758         }
8759         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg);
8760         return nativeResponseValue;
8761 }
8762         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
8763 /* @internal */
8764 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(orig: number): number {
8765         if(!isWasmInitialized) {
8766                 throw new Error("initializeWasm() must be awaited first!");
8767         }
8768         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(orig);
8769         return nativeResponseValue;
8770 }
8771         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o);
8772 /* @internal */
8773 export function CResult_SpendableOutputDescriptorDecodeErrorZ_ok(o: number): number {
8774         if(!isWasmInitialized) {
8775                 throw new Error("initializeWasm() must be awaited first!");
8776         }
8777         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_ok(o);
8778         return nativeResponseValue;
8779 }
8780         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
8781 /* @internal */
8782 export function CResult_SpendableOutputDescriptorDecodeErrorZ_err(e: number): number {
8783         if(!isWasmInitialized) {
8784                 throw new Error("initializeWasm() must be awaited first!");
8785         }
8786         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_err(e);
8787         return nativeResponseValue;
8788 }
8789         // bool CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
8790 /* @internal */
8791 export function CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(o: number): boolean {
8792         if(!isWasmInitialized) {
8793                 throw new Error("initializeWasm() must be awaited first!");
8794         }
8795         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(o);
8796         return nativeResponseValue;
8797 }
8798         // void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ _res);
8799 /* @internal */
8800 export function CResult_SpendableOutputDescriptorDecodeErrorZ_free(_res: number): void {
8801         if(!isWasmInitialized) {
8802                 throw new Error("initializeWasm() must be awaited first!");
8803         }
8804         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_free(_res);
8805         // debug statements here
8806 }
8807         // uintptr_t CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
8808 /* @internal */
8809 export function CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(arg: number): number {
8810         if(!isWasmInitialized) {
8811                 throw new Error("initializeWasm() must be awaited first!");
8812         }
8813         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(arg);
8814         return nativeResponseValue;
8815 }
8816         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
8817 /* @internal */
8818 export function CResult_SpendableOutputDescriptorDecodeErrorZ_clone(orig: number): number {
8819         if(!isWasmInitialized) {
8820                 throw new Error("initializeWasm() must be awaited first!");
8821         }
8822         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_clone(orig);
8823         return nativeResponseValue;
8824 }
8825         // void CVec_PaymentPreimageZ_free(struct LDKCVec_PaymentPreimageZ _res);
8826 /* @internal */
8827 export function CVec_PaymentPreimageZ_free(_res: number): void {
8828         if(!isWasmInitialized) {
8829                 throw new Error("initializeWasm() must be awaited first!");
8830         }
8831         const nativeResponseValue = wasm.TS_CVec_PaymentPreimageZ_free(_res);
8832         // debug statements here
8833 }
8834         // uintptr_t C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR arg);
8835 /* @internal */
8836 export function C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(arg: number): number {
8837         if(!isWasmInitialized) {
8838                 throw new Error("initializeWasm() must be awaited first!");
8839         }
8840         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(arg);
8841         return nativeResponseValue;
8842 }
8843         // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_clone(const struct LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR orig);
8844 /* @internal */
8845 export function C2Tuple_SignatureCVec_SignatureZZ_clone(orig: number): number {
8846         if(!isWasmInitialized) {
8847                 throw new Error("initializeWasm() must be awaited first!");
8848         }
8849         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_clone(orig);
8850         return nativeResponseValue;
8851 }
8852         // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_new(struct LDKSignature a, struct LDKCVec_SignatureZ b);
8853 /* @internal */
8854 export function C2Tuple_SignatureCVec_SignatureZZ_new(a: number, b: number): number {
8855         if(!isWasmInitialized) {
8856                 throw new Error("initializeWasm() must be awaited first!");
8857         }
8858         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_new(a, b);
8859         return nativeResponseValue;
8860 }
8861         // void C2Tuple_SignatureCVec_SignatureZZ_free(struct LDKC2Tuple_SignatureCVec_SignatureZZ _res);
8862 /* @internal */
8863 export function C2Tuple_SignatureCVec_SignatureZZ_free(_res: number): void {
8864         if(!isWasmInitialized) {
8865                 throw new Error("initializeWasm() must be awaited first!");
8866         }
8867         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_free(_res);
8868         // debug statements here
8869 }
8870         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(struct LDKC2Tuple_SignatureCVec_SignatureZZ o);
8871 /* @internal */
8872 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(o: number): number {
8873         if(!isWasmInitialized) {
8874                 throw new Error("initializeWasm() must be awaited first!");
8875         }
8876         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(o);
8877         return nativeResponseValue;
8878 }
8879         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(void);
8880 /* @internal */
8881 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(): number {
8882         if(!isWasmInitialized) {
8883                 throw new Error("initializeWasm() must be awaited first!");
8884         }
8885         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err();
8886         return nativeResponseValue;
8887 }
8888         // bool CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR o);
8889 /* @internal */
8890 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(o: number): boolean {
8891         if(!isWasmInitialized) {
8892                 throw new Error("initializeWasm() must be awaited first!");
8893         }
8894         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(o);
8895         return nativeResponseValue;
8896 }
8897         // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ _res);
8898 /* @internal */
8899 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(_res: number): void {
8900         if(!isWasmInitialized) {
8901                 throw new Error("initializeWasm() must be awaited first!");
8902         }
8903         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(_res);
8904         // debug statements here
8905 }
8906         // uintptr_t CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR arg);
8907 /* @internal */
8908 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(arg: number): number {
8909         if(!isWasmInitialized) {
8910                 throw new Error("initializeWasm() must be awaited first!");
8911         }
8912         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(arg);
8913         return nativeResponseValue;
8914 }
8915         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR orig);
8916 /* @internal */
8917 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(orig: number): number {
8918         if(!isWasmInitialized) {
8919                 throw new Error("initializeWasm() must be awaited first!");
8920         }
8921         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(orig);
8922         return nativeResponseValue;
8923 }
8924         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_ok(struct LDKSignature o);
8925 /* @internal */
8926 export function CResult_SignatureNoneZ_ok(o: number): number {
8927         if(!isWasmInitialized) {
8928                 throw new Error("initializeWasm() must be awaited first!");
8929         }
8930         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_ok(o);
8931         return nativeResponseValue;
8932 }
8933         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_err(void);
8934 /* @internal */
8935 export function CResult_SignatureNoneZ_err(): number {
8936         if(!isWasmInitialized) {
8937                 throw new Error("initializeWasm() must be awaited first!");
8938         }
8939         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_err();
8940         return nativeResponseValue;
8941 }
8942         // bool CResult_SignatureNoneZ_is_ok(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR o);
8943 /* @internal */
8944 export function CResult_SignatureNoneZ_is_ok(o: number): boolean {
8945         if(!isWasmInitialized) {
8946                 throw new Error("initializeWasm() must be awaited first!");
8947         }
8948         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_is_ok(o);
8949         return nativeResponseValue;
8950 }
8951         // void CResult_SignatureNoneZ_free(struct LDKCResult_SignatureNoneZ _res);
8952 /* @internal */
8953 export function CResult_SignatureNoneZ_free(_res: number): void {
8954         if(!isWasmInitialized) {
8955                 throw new Error("initializeWasm() must be awaited first!");
8956         }
8957         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_free(_res);
8958         // debug statements here
8959 }
8960         // uintptr_t CResult_SignatureNoneZ_clone_ptr(LDKCResult_SignatureNoneZ *NONNULL_PTR arg);
8961 /* @internal */
8962 export function CResult_SignatureNoneZ_clone_ptr(arg: number): number {
8963         if(!isWasmInitialized) {
8964                 throw new Error("initializeWasm() must be awaited first!");
8965         }
8966         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_clone_ptr(arg);
8967         return nativeResponseValue;
8968 }
8969         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_clone(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR orig);
8970 /* @internal */
8971 export function CResult_SignatureNoneZ_clone(orig: number): number {
8972         if(!isWasmInitialized) {
8973                 throw new Error("initializeWasm() must be awaited first!");
8974         }
8975         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_clone(orig);
8976         return nativeResponseValue;
8977 }
8978         // uintptr_t C2Tuple_SignatureSignatureZ_clone_ptr(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR arg);
8979 /* @internal */
8980 export function C2Tuple_SignatureSignatureZ_clone_ptr(arg: number): number {
8981         if(!isWasmInitialized) {
8982                 throw new Error("initializeWasm() must be awaited first!");
8983         }
8984         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_clone_ptr(arg);
8985         return nativeResponseValue;
8986 }
8987         // struct LDKC2Tuple_SignatureSignatureZ C2Tuple_SignatureSignatureZ_clone(const struct LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR orig);
8988 /* @internal */
8989 export function C2Tuple_SignatureSignatureZ_clone(orig: number): number {
8990         if(!isWasmInitialized) {
8991                 throw new Error("initializeWasm() must be awaited first!");
8992         }
8993         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_clone(orig);
8994         return nativeResponseValue;
8995 }
8996         // struct LDKC2Tuple_SignatureSignatureZ C2Tuple_SignatureSignatureZ_new(struct LDKSignature a, struct LDKSignature b);
8997 /* @internal */
8998 export function C2Tuple_SignatureSignatureZ_new(a: number, b: number): number {
8999         if(!isWasmInitialized) {
9000                 throw new Error("initializeWasm() must be awaited first!");
9001         }
9002         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_new(a, b);
9003         return nativeResponseValue;
9004 }
9005         // void C2Tuple_SignatureSignatureZ_free(struct LDKC2Tuple_SignatureSignatureZ _res);
9006 /* @internal */
9007 export function C2Tuple_SignatureSignatureZ_free(_res: number): void {
9008         if(!isWasmInitialized) {
9009                 throw new Error("initializeWasm() must be awaited first!");
9010         }
9011         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_free(_res);
9012         // debug statements here
9013 }
9014         // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_ok(struct LDKC2Tuple_SignatureSignatureZ o);
9015 /* @internal */
9016 export function CResult_C2Tuple_SignatureSignatureZNoneZ_ok(o: number): number {
9017         if(!isWasmInitialized) {
9018                 throw new Error("initializeWasm() must be awaited first!");
9019         }
9020         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_ok(o);
9021         return nativeResponseValue;
9022 }
9023         // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_err(void);
9024 /* @internal */
9025 export function CResult_C2Tuple_SignatureSignatureZNoneZ_err(): number {
9026         if(!isWasmInitialized) {
9027                 throw new Error("initializeWasm() must be awaited first!");
9028         }
9029         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_err();
9030         return nativeResponseValue;
9031 }
9032         // bool CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR o);
9033 /* @internal */
9034 export function CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(o: number): boolean {
9035         if(!isWasmInitialized) {
9036                 throw new Error("initializeWasm() must be awaited first!");
9037         }
9038         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(o);
9039         return nativeResponseValue;
9040 }
9041         // void CResult_C2Tuple_SignatureSignatureZNoneZ_free(struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ _res);
9042 /* @internal */
9043 export function CResult_C2Tuple_SignatureSignatureZNoneZ_free(_res: number): void {
9044         if(!isWasmInitialized) {
9045                 throw new Error("initializeWasm() must be awaited first!");
9046         }
9047         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_free(_res);
9048         // debug statements here
9049 }
9050         // uintptr_t CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR arg);
9051 /* @internal */
9052 export function CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(arg: number): number {
9053         if(!isWasmInitialized) {
9054                 throw new Error("initializeWasm() must be awaited first!");
9055         }
9056         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(arg);
9057         return nativeResponseValue;
9058 }
9059         // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR orig);
9060 /* @internal */
9061 export function CResult_C2Tuple_SignatureSignatureZNoneZ_clone(orig: number): number {
9062         if(!isWasmInitialized) {
9063                 throw new Error("initializeWasm() must be awaited first!");
9064         }
9065         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_clone(orig);
9066         return nativeResponseValue;
9067 }
9068         // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_ok(struct LDKSecretKey o);
9069 /* @internal */
9070 export function CResult_SecretKeyNoneZ_ok(o: number): number {
9071         if(!isWasmInitialized) {
9072                 throw new Error("initializeWasm() must be awaited first!");
9073         }
9074         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_ok(o);
9075         return nativeResponseValue;
9076 }
9077         // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_err(void);
9078 /* @internal */
9079 export function CResult_SecretKeyNoneZ_err(): number {
9080         if(!isWasmInitialized) {
9081                 throw new Error("initializeWasm() must be awaited first!");
9082         }
9083         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_err();
9084         return nativeResponseValue;
9085 }
9086         // bool CResult_SecretKeyNoneZ_is_ok(const struct LDKCResult_SecretKeyNoneZ *NONNULL_PTR o);
9087 /* @internal */
9088 export function CResult_SecretKeyNoneZ_is_ok(o: number): boolean {
9089         if(!isWasmInitialized) {
9090                 throw new Error("initializeWasm() must be awaited first!");
9091         }
9092         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_is_ok(o);
9093         return nativeResponseValue;
9094 }
9095         // void CResult_SecretKeyNoneZ_free(struct LDKCResult_SecretKeyNoneZ _res);
9096 /* @internal */
9097 export function CResult_SecretKeyNoneZ_free(_res: number): void {
9098         if(!isWasmInitialized) {
9099                 throw new Error("initializeWasm() must be awaited first!");
9100         }
9101         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_free(_res);
9102         // debug statements here
9103 }
9104         // uintptr_t CResult_SecretKeyNoneZ_clone_ptr(LDKCResult_SecretKeyNoneZ *NONNULL_PTR arg);
9105 /* @internal */
9106 export function CResult_SecretKeyNoneZ_clone_ptr(arg: number): number {
9107         if(!isWasmInitialized) {
9108                 throw new Error("initializeWasm() must be awaited first!");
9109         }
9110         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_clone_ptr(arg);
9111         return nativeResponseValue;
9112 }
9113         // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_clone(const struct LDKCResult_SecretKeyNoneZ *NONNULL_PTR orig);
9114 /* @internal */
9115 export function CResult_SecretKeyNoneZ_clone(orig: number): number {
9116         if(!isWasmInitialized) {
9117                 throw new Error("initializeWasm() must be awaited first!");
9118         }
9119         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_clone(orig);
9120         return nativeResponseValue;
9121 }
9122         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_ok(struct LDKSign o);
9123 /* @internal */
9124 export function CResult_SignDecodeErrorZ_ok(o: number): number {
9125         if(!isWasmInitialized) {
9126                 throw new Error("initializeWasm() must be awaited first!");
9127         }
9128         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_ok(o);
9129         return nativeResponseValue;
9130 }
9131         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_err(struct LDKDecodeError e);
9132 /* @internal */
9133 export function CResult_SignDecodeErrorZ_err(e: number): number {
9134         if(!isWasmInitialized) {
9135                 throw new Error("initializeWasm() must be awaited first!");
9136         }
9137         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_err(e);
9138         return nativeResponseValue;
9139 }
9140         // bool CResult_SignDecodeErrorZ_is_ok(const struct LDKCResult_SignDecodeErrorZ *NONNULL_PTR o);
9141 /* @internal */
9142 export function CResult_SignDecodeErrorZ_is_ok(o: number): boolean {
9143         if(!isWasmInitialized) {
9144                 throw new Error("initializeWasm() must be awaited first!");
9145         }
9146         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_is_ok(o);
9147         return nativeResponseValue;
9148 }
9149         // void CResult_SignDecodeErrorZ_free(struct LDKCResult_SignDecodeErrorZ _res);
9150 /* @internal */
9151 export function CResult_SignDecodeErrorZ_free(_res: number): void {
9152         if(!isWasmInitialized) {
9153                 throw new Error("initializeWasm() must be awaited first!");
9154         }
9155         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_free(_res);
9156         // debug statements here
9157 }
9158         // uintptr_t CResult_SignDecodeErrorZ_clone_ptr(LDKCResult_SignDecodeErrorZ *NONNULL_PTR arg);
9159 /* @internal */
9160 export function CResult_SignDecodeErrorZ_clone_ptr(arg: number): number {
9161         if(!isWasmInitialized) {
9162                 throw new Error("initializeWasm() must be awaited first!");
9163         }
9164         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_clone_ptr(arg);
9165         return nativeResponseValue;
9166 }
9167         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_clone(const struct LDKCResult_SignDecodeErrorZ *NONNULL_PTR orig);
9168 /* @internal */
9169 export function CResult_SignDecodeErrorZ_clone(orig: number): number {
9170         if(!isWasmInitialized) {
9171                 throw new Error("initializeWasm() must be awaited first!");
9172         }
9173         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_clone(orig);
9174         return nativeResponseValue;
9175 }
9176         // void CVec_u5Z_free(struct LDKCVec_u5Z _res);
9177 /* @internal */
9178 export function CVec_u5Z_free(_res: number): void {
9179         if(!isWasmInitialized) {
9180                 throw new Error("initializeWasm() must be awaited first!");
9181         }
9182         const nativeResponseValue = wasm.TS_CVec_u5Z_free(_res);
9183         // debug statements here
9184 }
9185         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o);
9186 /* @internal */
9187 export function CResult_RecoverableSignatureNoneZ_ok(o: number): number {
9188         if(!isWasmInitialized) {
9189                 throw new Error("initializeWasm() must be awaited first!");
9190         }
9191         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_ok(o);
9192         return nativeResponseValue;
9193 }
9194         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void);
9195 /* @internal */
9196 export function CResult_RecoverableSignatureNoneZ_err(): number {
9197         if(!isWasmInitialized) {
9198                 throw new Error("initializeWasm() must be awaited first!");
9199         }
9200         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_err();
9201         return nativeResponseValue;
9202 }
9203         // bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o);
9204 /* @internal */
9205 export function CResult_RecoverableSignatureNoneZ_is_ok(o: number): boolean {
9206         if(!isWasmInitialized) {
9207                 throw new Error("initializeWasm() must be awaited first!");
9208         }
9209         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_is_ok(o);
9210         return nativeResponseValue;
9211 }
9212         // void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res);
9213 /* @internal */
9214 export function CResult_RecoverableSignatureNoneZ_free(_res: number): void {
9215         if(!isWasmInitialized) {
9216                 throw new Error("initializeWasm() must be awaited first!");
9217         }
9218         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_free(_res);
9219         // debug statements here
9220 }
9221         // uintptr_t CResult_RecoverableSignatureNoneZ_clone_ptr(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR arg);
9222 /* @internal */
9223 export function CResult_RecoverableSignatureNoneZ_clone_ptr(arg: number): number {
9224         if(!isWasmInitialized) {
9225                 throw new Error("initializeWasm() must be awaited first!");
9226         }
9227         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_clone_ptr(arg);
9228         return nativeResponseValue;
9229 }
9230         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig);
9231 /* @internal */
9232 export function CResult_RecoverableSignatureNoneZ_clone(orig: number): number {
9233         if(!isWasmInitialized) {
9234                 throw new Error("initializeWasm() must be awaited first!");
9235         }
9236         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_clone(orig);
9237         return nativeResponseValue;
9238 }
9239         // void CVec_u8Z_free(struct LDKCVec_u8Z _res);
9240 /* @internal */
9241 export function CVec_u8Z_free(_res: number): void {
9242         if(!isWasmInitialized) {
9243                 throw new Error("initializeWasm() must be awaited first!");
9244         }
9245         const nativeResponseValue = wasm.TS_CVec_u8Z_free(_res);
9246         // debug statements here
9247 }
9248         // void CVec_CVec_u8ZZ_free(struct LDKCVec_CVec_u8ZZ _res);
9249 /* @internal */
9250 export function CVec_CVec_u8ZZ_free(_res: number): void {
9251         if(!isWasmInitialized) {
9252                 throw new Error("initializeWasm() must be awaited first!");
9253         }
9254         const nativeResponseValue = wasm.TS_CVec_CVec_u8ZZ_free(_res);
9255         // debug statements here
9256 }
9257         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_ok(struct LDKCVec_CVec_u8ZZ o);
9258 /* @internal */
9259 export function CResult_CVec_CVec_u8ZZNoneZ_ok(o: number): number {
9260         if(!isWasmInitialized) {
9261                 throw new Error("initializeWasm() must be awaited first!");
9262         }
9263         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_ok(o);
9264         return nativeResponseValue;
9265 }
9266         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_err(void);
9267 /* @internal */
9268 export function CResult_CVec_CVec_u8ZZNoneZ_err(): number {
9269         if(!isWasmInitialized) {
9270                 throw new Error("initializeWasm() must be awaited first!");
9271         }
9272         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_err();
9273         return nativeResponseValue;
9274 }
9275         // bool CResult_CVec_CVec_u8ZZNoneZ_is_ok(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR o);
9276 /* @internal */
9277 export function CResult_CVec_CVec_u8ZZNoneZ_is_ok(o: number): boolean {
9278         if(!isWasmInitialized) {
9279                 throw new Error("initializeWasm() must be awaited first!");
9280         }
9281         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_is_ok(o);
9282         return nativeResponseValue;
9283 }
9284         // void CResult_CVec_CVec_u8ZZNoneZ_free(struct LDKCResult_CVec_CVec_u8ZZNoneZ _res);
9285 /* @internal */
9286 export function CResult_CVec_CVec_u8ZZNoneZ_free(_res: number): void {
9287         if(!isWasmInitialized) {
9288                 throw new Error("initializeWasm() must be awaited first!");
9289         }
9290         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_free(_res);
9291         // debug statements here
9292 }
9293         // uintptr_t CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR arg);
9294 /* @internal */
9295 export function CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(arg: number): number {
9296         if(!isWasmInitialized) {
9297                 throw new Error("initializeWasm() must be awaited first!");
9298         }
9299         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(arg);
9300         return nativeResponseValue;
9301 }
9302         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_clone(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR orig);
9303 /* @internal */
9304 export function CResult_CVec_CVec_u8ZZNoneZ_clone(orig: number): number {
9305         if(!isWasmInitialized) {
9306                 throw new Error("initializeWasm() must be awaited first!");
9307         }
9308         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_clone(orig);
9309         return nativeResponseValue;
9310 }
9311         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_ok(struct LDKInMemorySigner o);
9312 /* @internal */
9313 export function CResult_InMemorySignerDecodeErrorZ_ok(o: number): number {
9314         if(!isWasmInitialized) {
9315                 throw new Error("initializeWasm() must be awaited first!");
9316         }
9317         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_ok(o);
9318         return nativeResponseValue;
9319 }
9320         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_err(struct LDKDecodeError e);
9321 /* @internal */
9322 export function CResult_InMemorySignerDecodeErrorZ_err(e: number): number {
9323         if(!isWasmInitialized) {
9324                 throw new Error("initializeWasm() must be awaited first!");
9325         }
9326         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_err(e);
9327         return nativeResponseValue;
9328 }
9329         // bool CResult_InMemorySignerDecodeErrorZ_is_ok(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR o);
9330 /* @internal */
9331 export function CResult_InMemorySignerDecodeErrorZ_is_ok(o: number): boolean {
9332         if(!isWasmInitialized) {
9333                 throw new Error("initializeWasm() must be awaited first!");
9334         }
9335         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_is_ok(o);
9336         return nativeResponseValue;
9337 }
9338         // void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDecodeErrorZ _res);
9339 /* @internal */
9340 export function CResult_InMemorySignerDecodeErrorZ_free(_res: number): void {
9341         if(!isWasmInitialized) {
9342                 throw new Error("initializeWasm() must be awaited first!");
9343         }
9344         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_free(_res);
9345         // debug statements here
9346 }
9347         // uintptr_t CResult_InMemorySignerDecodeErrorZ_clone_ptr(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR arg);
9348 /* @internal */
9349 export function CResult_InMemorySignerDecodeErrorZ_clone_ptr(arg: number): number {
9350         if(!isWasmInitialized) {
9351                 throw new Error("initializeWasm() must be awaited first!");
9352         }
9353         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_clone_ptr(arg);
9354         return nativeResponseValue;
9355 }
9356         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig);
9357 /* @internal */
9358 export function CResult_InMemorySignerDecodeErrorZ_clone(orig: number): number {
9359         if(!isWasmInitialized) {
9360                 throw new Error("initializeWasm() must be awaited first!");
9361         }
9362         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_clone(orig);
9363         return nativeResponseValue;
9364 }
9365         // void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res);
9366 /* @internal */
9367 export function CVec_TxOutZ_free(_res: number): void {
9368         if(!isWasmInitialized) {
9369                 throw new Error("initializeWasm() must be awaited first!");
9370         }
9371         const nativeResponseValue = wasm.TS_CVec_TxOutZ_free(_res);
9372         // debug statements here
9373 }
9374         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o);
9375 /* @internal */
9376 export function CResult_TransactionNoneZ_ok(o: number): number {
9377         if(!isWasmInitialized) {
9378                 throw new Error("initializeWasm() must be awaited first!");
9379         }
9380         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_ok(o);
9381         return nativeResponseValue;
9382 }
9383         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void);
9384 /* @internal */
9385 export function CResult_TransactionNoneZ_err(): number {
9386         if(!isWasmInitialized) {
9387                 throw new Error("initializeWasm() must be awaited first!");
9388         }
9389         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_err();
9390         return nativeResponseValue;
9391 }
9392         // bool CResult_TransactionNoneZ_is_ok(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR o);
9393 /* @internal */
9394 export function CResult_TransactionNoneZ_is_ok(o: number): boolean {
9395         if(!isWasmInitialized) {
9396                 throw new Error("initializeWasm() must be awaited first!");
9397         }
9398         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_is_ok(o);
9399         return nativeResponseValue;
9400 }
9401         // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res);
9402 /* @internal */
9403 export function CResult_TransactionNoneZ_free(_res: number): void {
9404         if(!isWasmInitialized) {
9405                 throw new Error("initializeWasm() must be awaited first!");
9406         }
9407         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_free(_res);
9408         // debug statements here
9409 }
9410         // uintptr_t CResult_TransactionNoneZ_clone_ptr(LDKCResult_TransactionNoneZ *NONNULL_PTR arg);
9411 /* @internal */
9412 export function CResult_TransactionNoneZ_clone_ptr(arg: number): number {
9413         if(!isWasmInitialized) {
9414                 throw new Error("initializeWasm() must be awaited first!");
9415         }
9416         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_clone_ptr(arg);
9417         return nativeResponseValue;
9418 }
9419         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_clone(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR orig);
9420 /* @internal */
9421 export function CResult_TransactionNoneZ_clone(orig: number): number {
9422         if(!isWasmInitialized) {
9423                 throw new Error("initializeWasm() must be awaited first!");
9424         }
9425         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_clone(orig);
9426         return nativeResponseValue;
9427 }
9428         // struct LDKCOption_u16Z COption_u16Z_some(uint16_t o);
9429 /* @internal */
9430 export function COption_u16Z_some(o: number): number {
9431         if(!isWasmInitialized) {
9432                 throw new Error("initializeWasm() must be awaited first!");
9433         }
9434         const nativeResponseValue = wasm.TS_COption_u16Z_some(o);
9435         return nativeResponseValue;
9436 }
9437         // struct LDKCOption_u16Z COption_u16Z_none(void);
9438 /* @internal */
9439 export function COption_u16Z_none(): number {
9440         if(!isWasmInitialized) {
9441                 throw new Error("initializeWasm() must be awaited first!");
9442         }
9443         const nativeResponseValue = wasm.TS_COption_u16Z_none();
9444         return nativeResponseValue;
9445 }
9446         // void COption_u16Z_free(struct LDKCOption_u16Z _res);
9447 /* @internal */
9448 export function COption_u16Z_free(_res: number): void {
9449         if(!isWasmInitialized) {
9450                 throw new Error("initializeWasm() must be awaited first!");
9451         }
9452         const nativeResponseValue = wasm.TS_COption_u16Z_free(_res);
9453         // debug statements here
9454 }
9455         // uintptr_t COption_u16Z_clone_ptr(LDKCOption_u16Z *NONNULL_PTR arg);
9456 /* @internal */
9457 export function COption_u16Z_clone_ptr(arg: number): number {
9458         if(!isWasmInitialized) {
9459                 throw new Error("initializeWasm() must be awaited first!");
9460         }
9461         const nativeResponseValue = wasm.TS_COption_u16Z_clone_ptr(arg);
9462         return nativeResponseValue;
9463 }
9464         // struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig);
9465 /* @internal */
9466 export function COption_u16Z_clone(orig: number): number {
9467         if(!isWasmInitialized) {
9468                 throw new Error("initializeWasm() must be awaited first!");
9469         }
9470         const nativeResponseValue = wasm.TS_COption_u16Z_clone(orig);
9471         return nativeResponseValue;
9472 }
9473         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_ok(void);
9474 /* @internal */
9475 export function CResult_NoneAPIErrorZ_ok(): number {
9476         if(!isWasmInitialized) {
9477                 throw new Error("initializeWasm() must be awaited first!");
9478         }
9479         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_ok();
9480         return nativeResponseValue;
9481 }
9482         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_err(struct LDKAPIError e);
9483 /* @internal */
9484 export function CResult_NoneAPIErrorZ_err(e: number): number {
9485         if(!isWasmInitialized) {
9486                 throw new Error("initializeWasm() must be awaited first!");
9487         }
9488         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_err(e);
9489         return nativeResponseValue;
9490 }
9491         // bool CResult_NoneAPIErrorZ_is_ok(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR o);
9492 /* @internal */
9493 export function CResult_NoneAPIErrorZ_is_ok(o: number): boolean {
9494         if(!isWasmInitialized) {
9495                 throw new Error("initializeWasm() must be awaited first!");
9496         }
9497         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_is_ok(o);
9498         return nativeResponseValue;
9499 }
9500         // void CResult_NoneAPIErrorZ_free(struct LDKCResult_NoneAPIErrorZ _res);
9501 /* @internal */
9502 export function CResult_NoneAPIErrorZ_free(_res: number): void {
9503         if(!isWasmInitialized) {
9504                 throw new Error("initializeWasm() must be awaited first!");
9505         }
9506         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_free(_res);
9507         // debug statements here
9508 }
9509         // uintptr_t CResult_NoneAPIErrorZ_clone_ptr(LDKCResult_NoneAPIErrorZ *NONNULL_PTR arg);
9510 /* @internal */
9511 export function CResult_NoneAPIErrorZ_clone_ptr(arg: number): number {
9512         if(!isWasmInitialized) {
9513                 throw new Error("initializeWasm() must be awaited first!");
9514         }
9515         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_clone_ptr(arg);
9516         return nativeResponseValue;
9517 }
9518         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_clone(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR orig);
9519 /* @internal */
9520 export function CResult_NoneAPIErrorZ_clone(orig: number): number {
9521         if(!isWasmInitialized) {
9522                 throw new Error("initializeWasm() must be awaited first!");
9523         }
9524         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_clone(orig);
9525         return nativeResponseValue;
9526 }
9527         // void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res);
9528 /* @internal */
9529 export function CVec_CResult_NoneAPIErrorZZ_free(_res: number): void {
9530         if(!isWasmInitialized) {
9531                 throw new Error("initializeWasm() must be awaited first!");
9532         }
9533         const nativeResponseValue = wasm.TS_CVec_CResult_NoneAPIErrorZZ_free(_res);
9534         // debug statements here
9535 }
9536         // void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res);
9537 /* @internal */
9538 export function CVec_APIErrorZ_free(_res: number): void {
9539         if(!isWasmInitialized) {
9540                 throw new Error("initializeWasm() must be awaited first!");
9541         }
9542         const nativeResponseValue = wasm.TS_CVec_APIErrorZ_free(_res);
9543         // debug statements here
9544 }
9545         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_ok(struct LDKThirtyTwoBytes o);
9546 /* @internal */
9547 export function CResult__u832APIErrorZ_ok(o: number): number {
9548         if(!isWasmInitialized) {
9549                 throw new Error("initializeWasm() must be awaited first!");
9550         }
9551         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_ok(o);
9552         return nativeResponseValue;
9553 }
9554         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_err(struct LDKAPIError e);
9555 /* @internal */
9556 export function CResult__u832APIErrorZ_err(e: number): number {
9557         if(!isWasmInitialized) {
9558                 throw new Error("initializeWasm() must be awaited first!");
9559         }
9560         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_err(e);
9561         return nativeResponseValue;
9562 }
9563         // bool CResult__u832APIErrorZ_is_ok(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR o);
9564 /* @internal */
9565 export function CResult__u832APIErrorZ_is_ok(o: number): boolean {
9566         if(!isWasmInitialized) {
9567                 throw new Error("initializeWasm() must be awaited first!");
9568         }
9569         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_is_ok(o);
9570         return nativeResponseValue;
9571 }
9572         // void CResult__u832APIErrorZ_free(struct LDKCResult__u832APIErrorZ _res);
9573 /* @internal */
9574 export function CResult__u832APIErrorZ_free(_res: number): void {
9575         if(!isWasmInitialized) {
9576                 throw new Error("initializeWasm() must be awaited first!");
9577         }
9578         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_free(_res);
9579         // debug statements here
9580 }
9581         // uintptr_t CResult__u832APIErrorZ_clone_ptr(LDKCResult__u832APIErrorZ *NONNULL_PTR arg);
9582 /* @internal */
9583 export function CResult__u832APIErrorZ_clone_ptr(arg: number): number {
9584         if(!isWasmInitialized) {
9585                 throw new Error("initializeWasm() must be awaited first!");
9586         }
9587         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_clone_ptr(arg);
9588         return nativeResponseValue;
9589 }
9590         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_clone(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR orig);
9591 /* @internal */
9592 export function CResult__u832APIErrorZ_clone(orig: number): number {
9593         if(!isWasmInitialized) {
9594                 throw new Error("initializeWasm() must be awaited first!");
9595         }
9596         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_clone(orig);
9597         return nativeResponseValue;
9598 }
9599         // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o);
9600 /* @internal */
9601 export function CResult_PaymentIdPaymentSendFailureZ_ok(o: number): number {
9602         if(!isWasmInitialized) {
9603                 throw new Error("initializeWasm() must be awaited first!");
9604         }
9605         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_ok(o);
9606         return nativeResponseValue;
9607 }
9608         // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
9609 /* @internal */
9610 export function CResult_PaymentIdPaymentSendFailureZ_err(e: number): number {
9611         if(!isWasmInitialized) {
9612                 throw new Error("initializeWasm() must be awaited first!");
9613         }
9614         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_err(e);
9615         return nativeResponseValue;
9616 }
9617         // bool CResult_PaymentIdPaymentSendFailureZ_is_ok(const struct LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR o);
9618 /* @internal */
9619 export function CResult_PaymentIdPaymentSendFailureZ_is_ok(o: number): boolean {
9620         if(!isWasmInitialized) {
9621                 throw new Error("initializeWasm() must be awaited first!");
9622         }
9623         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_is_ok(o);
9624         return nativeResponseValue;
9625 }
9626         // void CResult_PaymentIdPaymentSendFailureZ_free(struct LDKCResult_PaymentIdPaymentSendFailureZ _res);
9627 /* @internal */
9628 export function CResult_PaymentIdPaymentSendFailureZ_free(_res: number): void {
9629         if(!isWasmInitialized) {
9630                 throw new Error("initializeWasm() must be awaited first!");
9631         }
9632         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_free(_res);
9633         // debug statements here
9634 }
9635         // uintptr_t CResult_PaymentIdPaymentSendFailureZ_clone_ptr(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR arg);
9636 /* @internal */
9637 export function CResult_PaymentIdPaymentSendFailureZ_clone_ptr(arg: number): number {
9638         if(!isWasmInitialized) {
9639                 throw new Error("initializeWasm() must be awaited first!");
9640         }
9641         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_clone_ptr(arg);
9642         return nativeResponseValue;
9643 }
9644         // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_clone(const struct LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR orig);
9645 /* @internal */
9646 export function CResult_PaymentIdPaymentSendFailureZ_clone(orig: number): number {
9647         if(!isWasmInitialized) {
9648                 throw new Error("initializeWasm() must be awaited first!");
9649         }
9650         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_clone(orig);
9651         return nativeResponseValue;
9652 }
9653         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_ok(void);
9654 /* @internal */
9655 export function CResult_NonePaymentSendFailureZ_ok(): number {
9656         if(!isWasmInitialized) {
9657                 throw new Error("initializeWasm() must be awaited first!");
9658         }
9659         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_ok();
9660         return nativeResponseValue;
9661 }
9662         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
9663 /* @internal */
9664 export function CResult_NonePaymentSendFailureZ_err(e: number): number {
9665         if(!isWasmInitialized) {
9666                 throw new Error("initializeWasm() must be awaited first!");
9667         }
9668         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_err(e);
9669         return nativeResponseValue;
9670 }
9671         // bool CResult_NonePaymentSendFailureZ_is_ok(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR o);
9672 /* @internal */
9673 export function CResult_NonePaymentSendFailureZ_is_ok(o: number): boolean {
9674         if(!isWasmInitialized) {
9675                 throw new Error("initializeWasm() must be awaited first!");
9676         }
9677         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_is_ok(o);
9678         return nativeResponseValue;
9679 }
9680         // void CResult_NonePaymentSendFailureZ_free(struct LDKCResult_NonePaymentSendFailureZ _res);
9681 /* @internal */
9682 export function CResult_NonePaymentSendFailureZ_free(_res: number): void {
9683         if(!isWasmInitialized) {
9684                 throw new Error("initializeWasm() must be awaited first!");
9685         }
9686         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_free(_res);
9687         // debug statements here
9688 }
9689         // uintptr_t CResult_NonePaymentSendFailureZ_clone_ptr(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR arg);
9690 /* @internal */
9691 export function CResult_NonePaymentSendFailureZ_clone_ptr(arg: number): number {
9692         if(!isWasmInitialized) {
9693                 throw new Error("initializeWasm() must be awaited first!");
9694         }
9695         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_clone_ptr(arg);
9696         return nativeResponseValue;
9697 }
9698         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_clone(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR orig);
9699 /* @internal */
9700 export function CResult_NonePaymentSendFailureZ_clone(orig: number): number {
9701         if(!isWasmInitialized) {
9702                 throw new Error("initializeWasm() must be awaited first!");
9703         }
9704         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_clone(orig);
9705         return nativeResponseValue;
9706 }
9707         // uintptr_t C2Tuple_PaymentHashPaymentIdZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR arg);
9708 /* @internal */
9709 export function C2Tuple_PaymentHashPaymentIdZ_clone_ptr(arg: number): number {
9710         if(!isWasmInitialized) {
9711                 throw new Error("initializeWasm() must be awaited first!");
9712         }
9713         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_clone_ptr(arg);
9714         return nativeResponseValue;
9715 }
9716         // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_clone(const struct LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR orig);
9717 /* @internal */
9718 export function C2Tuple_PaymentHashPaymentIdZ_clone(orig: number): number {
9719         if(!isWasmInitialized) {
9720                 throw new Error("initializeWasm() must be awaited first!");
9721         }
9722         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_clone(orig);
9723         return nativeResponseValue;
9724 }
9725         // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
9726 /* @internal */
9727 export function C2Tuple_PaymentHashPaymentIdZ_new(a: number, b: number): number {
9728         if(!isWasmInitialized) {
9729                 throw new Error("initializeWasm() must be awaited first!");
9730         }
9731         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_new(a, b);
9732         return nativeResponseValue;
9733 }
9734         // void C2Tuple_PaymentHashPaymentIdZ_free(struct LDKC2Tuple_PaymentHashPaymentIdZ _res);
9735 /* @internal */
9736 export function C2Tuple_PaymentHashPaymentIdZ_free(_res: number): void {
9737         if(!isWasmInitialized) {
9738                 throw new Error("initializeWasm() must be awaited first!");
9739         }
9740         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_free(_res);
9741         // debug statements here
9742 }
9743         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(struct LDKC2Tuple_PaymentHashPaymentIdZ o);
9744 /* @internal */
9745 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(o: number): number {
9746         if(!isWasmInitialized) {
9747                 throw new Error("initializeWasm() must be awaited first!");
9748         }
9749         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(o);
9750         return nativeResponseValue;
9751 }
9752         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
9753 /* @internal */
9754 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(e: number): number {
9755         if(!isWasmInitialized) {
9756                 throw new Error("initializeWasm() must be awaited first!");
9757         }
9758         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(e);
9759         return nativeResponseValue;
9760 }
9761         // bool CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR o);
9762 /* @internal */
9763 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(o: number): boolean {
9764         if(!isWasmInitialized) {
9765                 throw new Error("initializeWasm() must be awaited first!");
9766         }
9767         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(o);
9768         return nativeResponseValue;
9769 }
9770         // void CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ _res);
9771 /* @internal */
9772 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(_res: number): void {
9773         if(!isWasmInitialized) {
9774                 throw new Error("initializeWasm() must be awaited first!");
9775         }
9776         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(_res);
9777         // debug statements here
9778 }
9779         // uintptr_t CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR arg);
9780 /* @internal */
9781 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(arg: number): number {
9782         if(!isWasmInitialized) {
9783                 throw new Error("initializeWasm() must be awaited first!");
9784         }
9785         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(arg);
9786         return nativeResponseValue;
9787 }
9788         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR orig);
9789 /* @internal */
9790 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(orig: number): number {
9791         if(!isWasmInitialized) {
9792                 throw new Error("initializeWasm() must be awaited first!");
9793         }
9794         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(orig);
9795         return nativeResponseValue;
9796 }
9797         // void CVec_NetAddressZ_free(struct LDKCVec_NetAddressZ _res);
9798 /* @internal */
9799 export function CVec_NetAddressZ_free(_res: number): void {
9800         if(!isWasmInitialized) {
9801                 throw new Error("initializeWasm() must be awaited first!");
9802         }
9803         const nativeResponseValue = wasm.TS_CVec_NetAddressZ_free(_res);
9804         // debug statements here
9805 }
9806         // uintptr_t C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR arg);
9807 /* @internal */
9808 export function C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(arg: number): number {
9809         if(!isWasmInitialized) {
9810                 throw new Error("initializeWasm() must be awaited first!");
9811         }
9812         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(arg);
9813         return nativeResponseValue;
9814 }
9815         // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_clone(const struct LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR orig);
9816 /* @internal */
9817 export function C2Tuple_PaymentHashPaymentSecretZ_clone(orig: number): number {
9818         if(!isWasmInitialized) {
9819                 throw new Error("initializeWasm() must be awaited first!");
9820         }
9821         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_clone(orig);
9822         return nativeResponseValue;
9823 }
9824         // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
9825 /* @internal */
9826 export function C2Tuple_PaymentHashPaymentSecretZ_new(a: number, b: number): number {
9827         if(!isWasmInitialized) {
9828                 throw new Error("initializeWasm() must be awaited first!");
9829         }
9830         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_new(a, b);
9831         return nativeResponseValue;
9832 }
9833         // void C2Tuple_PaymentHashPaymentSecretZ_free(struct LDKC2Tuple_PaymentHashPaymentSecretZ _res);
9834 /* @internal */
9835 export function C2Tuple_PaymentHashPaymentSecretZ_free(_res: number): void {
9836         if(!isWasmInitialized) {
9837                 throw new Error("initializeWasm() must be awaited first!");
9838         }
9839         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_free(_res);
9840         // debug statements here
9841 }
9842         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
9843 /* @internal */
9844 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(o: number): number {
9845         if(!isWasmInitialized) {
9846                 throw new Error("initializeWasm() must be awaited first!");
9847         }
9848         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(o);
9849         return nativeResponseValue;
9850 }
9851         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(void);
9852 /* @internal */
9853 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(): number {
9854         if(!isWasmInitialized) {
9855                 throw new Error("initializeWasm() must be awaited first!");
9856         }
9857         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err();
9858         return nativeResponseValue;
9859 }
9860         // bool CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR o);
9861 /* @internal */
9862 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(o: number): boolean {
9863         if(!isWasmInitialized) {
9864                 throw new Error("initializeWasm() must be awaited first!");
9865         }
9866         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(o);
9867         return nativeResponseValue;
9868 }
9869         // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ _res);
9870 /* @internal */
9871 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(_res: number): void {
9872         if(!isWasmInitialized) {
9873                 throw new Error("initializeWasm() must be awaited first!");
9874         }
9875         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(_res);
9876         // debug statements here
9877 }
9878         // uintptr_t CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR arg);
9879 /* @internal */
9880 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(arg: number): number {
9881         if(!isWasmInitialized) {
9882                 throw new Error("initializeWasm() must be awaited first!");
9883         }
9884         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(arg);
9885         return nativeResponseValue;
9886 }
9887         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR orig);
9888 /* @internal */
9889 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(orig: number): number {
9890         if(!isWasmInitialized) {
9891                 throw new Error("initializeWasm() must be awaited first!");
9892         }
9893         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(orig);
9894         return nativeResponseValue;
9895 }
9896         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
9897 /* @internal */
9898 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(o: number): number {
9899         if(!isWasmInitialized) {
9900                 throw new Error("initializeWasm() must be awaited first!");
9901         }
9902         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(o);
9903         return nativeResponseValue;
9904 }
9905         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(struct LDKAPIError e);
9906 /* @internal */
9907 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(e: number): number {
9908         if(!isWasmInitialized) {
9909                 throw new Error("initializeWasm() must be awaited first!");
9910         }
9911         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(e);
9912         return nativeResponseValue;
9913 }
9914         // bool CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR o);
9915 /* @internal */
9916 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(o: number): boolean {
9917         if(!isWasmInitialized) {
9918                 throw new Error("initializeWasm() must be awaited first!");
9919         }
9920         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(o);
9921         return nativeResponseValue;
9922 }
9923         // void CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ _res);
9924 /* @internal */
9925 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(_res: number): void {
9926         if(!isWasmInitialized) {
9927                 throw new Error("initializeWasm() must be awaited first!");
9928         }
9929         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(_res);
9930         // debug statements here
9931 }
9932         // uintptr_t CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR arg);
9933 /* @internal */
9934 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(arg: number): number {
9935         if(!isWasmInitialized) {
9936                 throw new Error("initializeWasm() must be awaited first!");
9937         }
9938         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(arg);
9939         return nativeResponseValue;
9940 }
9941         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR orig);
9942 /* @internal */
9943 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(orig: number): number {
9944         if(!isWasmInitialized) {
9945                 throw new Error("initializeWasm() must be awaited first!");
9946         }
9947         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(orig);
9948         return nativeResponseValue;
9949 }
9950         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_ok(struct LDKThirtyTwoBytes o);
9951 /* @internal */
9952 export function CResult_PaymentSecretNoneZ_ok(o: number): number {
9953         if(!isWasmInitialized) {
9954                 throw new Error("initializeWasm() must be awaited first!");
9955         }
9956         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_ok(o);
9957         return nativeResponseValue;
9958 }
9959         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_err(void);
9960 /* @internal */
9961 export function CResult_PaymentSecretNoneZ_err(): number {
9962         if(!isWasmInitialized) {
9963                 throw new Error("initializeWasm() must be awaited first!");
9964         }
9965         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_err();
9966         return nativeResponseValue;
9967 }
9968         // bool CResult_PaymentSecretNoneZ_is_ok(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR o);
9969 /* @internal */
9970 export function CResult_PaymentSecretNoneZ_is_ok(o: number): boolean {
9971         if(!isWasmInitialized) {
9972                 throw new Error("initializeWasm() must be awaited first!");
9973         }
9974         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_is_ok(o);
9975         return nativeResponseValue;
9976 }
9977         // void CResult_PaymentSecretNoneZ_free(struct LDKCResult_PaymentSecretNoneZ _res);
9978 /* @internal */
9979 export function CResult_PaymentSecretNoneZ_free(_res: number): void {
9980         if(!isWasmInitialized) {
9981                 throw new Error("initializeWasm() must be awaited first!");
9982         }
9983         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_free(_res);
9984         // debug statements here
9985 }
9986         // uintptr_t CResult_PaymentSecretNoneZ_clone_ptr(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR arg);
9987 /* @internal */
9988 export function CResult_PaymentSecretNoneZ_clone_ptr(arg: number): number {
9989         if(!isWasmInitialized) {
9990                 throw new Error("initializeWasm() must be awaited first!");
9991         }
9992         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_clone_ptr(arg);
9993         return nativeResponseValue;
9994 }
9995         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_clone(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR orig);
9996 /* @internal */
9997 export function CResult_PaymentSecretNoneZ_clone(orig: number): number {
9998         if(!isWasmInitialized) {
9999                 throw new Error("initializeWasm() must be awaited first!");
10000         }
10001         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_clone(orig);
10002         return nativeResponseValue;
10003 }
10004         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
10005 /* @internal */
10006 export function CResult_PaymentSecretAPIErrorZ_ok(o: number): number {
10007         if(!isWasmInitialized) {
10008                 throw new Error("initializeWasm() must be awaited first!");
10009         }
10010         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_ok(o);
10011         return nativeResponseValue;
10012 }
10013         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_err(struct LDKAPIError e);
10014 /* @internal */
10015 export function CResult_PaymentSecretAPIErrorZ_err(e: number): number {
10016         if(!isWasmInitialized) {
10017                 throw new Error("initializeWasm() must be awaited first!");
10018         }
10019         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_err(e);
10020         return nativeResponseValue;
10021 }
10022         // bool CResult_PaymentSecretAPIErrorZ_is_ok(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR o);
10023 /* @internal */
10024 export function CResult_PaymentSecretAPIErrorZ_is_ok(o: number): boolean {
10025         if(!isWasmInitialized) {
10026                 throw new Error("initializeWasm() must be awaited first!");
10027         }
10028         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_is_ok(o);
10029         return nativeResponseValue;
10030 }
10031         // void CResult_PaymentSecretAPIErrorZ_free(struct LDKCResult_PaymentSecretAPIErrorZ _res);
10032 /* @internal */
10033 export function CResult_PaymentSecretAPIErrorZ_free(_res: number): void {
10034         if(!isWasmInitialized) {
10035                 throw new Error("initializeWasm() must be awaited first!");
10036         }
10037         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_free(_res);
10038         // debug statements here
10039 }
10040         // uintptr_t CResult_PaymentSecretAPIErrorZ_clone_ptr(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR arg);
10041 /* @internal */
10042 export function CResult_PaymentSecretAPIErrorZ_clone_ptr(arg: number): number {
10043         if(!isWasmInitialized) {
10044                 throw new Error("initializeWasm() must be awaited first!");
10045         }
10046         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_clone_ptr(arg);
10047         return nativeResponseValue;
10048 }
10049         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_clone(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR orig);
10050 /* @internal */
10051 export function CResult_PaymentSecretAPIErrorZ_clone(orig: number): number {
10052         if(!isWasmInitialized) {
10053                 throw new Error("initializeWasm() must be awaited first!");
10054         }
10055         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_clone(orig);
10056         return nativeResponseValue;
10057 }
10058         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
10059 /* @internal */
10060 export function CResult_PaymentPreimageAPIErrorZ_ok(o: number): number {
10061         if(!isWasmInitialized) {
10062                 throw new Error("initializeWasm() must be awaited first!");
10063         }
10064         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_ok(o);
10065         return nativeResponseValue;
10066 }
10067         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_err(struct LDKAPIError e);
10068 /* @internal */
10069 export function CResult_PaymentPreimageAPIErrorZ_err(e: number): number {
10070         if(!isWasmInitialized) {
10071                 throw new Error("initializeWasm() must be awaited first!");
10072         }
10073         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_err(e);
10074         return nativeResponseValue;
10075 }
10076         // bool CResult_PaymentPreimageAPIErrorZ_is_ok(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR o);
10077 /* @internal */
10078 export function CResult_PaymentPreimageAPIErrorZ_is_ok(o: number): boolean {
10079         if(!isWasmInitialized) {
10080                 throw new Error("initializeWasm() must be awaited first!");
10081         }
10082         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_is_ok(o);
10083         return nativeResponseValue;
10084 }
10085         // void CResult_PaymentPreimageAPIErrorZ_free(struct LDKCResult_PaymentPreimageAPIErrorZ _res);
10086 /* @internal */
10087 export function CResult_PaymentPreimageAPIErrorZ_free(_res: number): void {
10088         if(!isWasmInitialized) {
10089                 throw new Error("initializeWasm() must be awaited first!");
10090         }
10091         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_free(_res);
10092         // debug statements here
10093 }
10094         // uintptr_t CResult_PaymentPreimageAPIErrorZ_clone_ptr(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR arg);
10095 /* @internal */
10096 export function CResult_PaymentPreimageAPIErrorZ_clone_ptr(arg: number): number {
10097         if(!isWasmInitialized) {
10098                 throw new Error("initializeWasm() must be awaited first!");
10099         }
10100         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_clone_ptr(arg);
10101         return nativeResponseValue;
10102 }
10103         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_clone(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR orig);
10104 /* @internal */
10105 export function CResult_PaymentPreimageAPIErrorZ_clone(orig: number): number {
10106         if(!isWasmInitialized) {
10107                 throw new Error("initializeWasm() must be awaited first!");
10108         }
10109         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_clone(orig);
10110         return nativeResponseValue;
10111 }
10112         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(struct LDKCounterpartyForwardingInfo o);
10113 /* @internal */
10114 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(o: number): number {
10115         if(!isWasmInitialized) {
10116                 throw new Error("initializeWasm() must be awaited first!");
10117         }
10118         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(o);
10119         return nativeResponseValue;
10120 }
10121         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_err(struct LDKDecodeError e);
10122 /* @internal */
10123 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_err(e: number): number {
10124         if(!isWasmInitialized) {
10125                 throw new Error("initializeWasm() must be awaited first!");
10126         }
10127         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_err(e);
10128         return nativeResponseValue;
10129 }
10130         // bool CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR o);
10131 /* @internal */
10132 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(o: number): boolean {
10133         if(!isWasmInitialized) {
10134                 throw new Error("initializeWasm() must be awaited first!");
10135         }
10136         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(o);
10137         return nativeResponseValue;
10138 }
10139         // void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ _res);
10140 /* @internal */
10141 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_free(_res: number): void {
10142         if(!isWasmInitialized) {
10143                 throw new Error("initializeWasm() must be awaited first!");
10144         }
10145         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_free(_res);
10146         // debug statements here
10147 }
10148         // uintptr_t CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR arg);
10149 /* @internal */
10150 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(arg: number): number {
10151         if(!isWasmInitialized) {
10152                 throw new Error("initializeWasm() must be awaited first!");
10153         }
10154         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(arg);
10155         return nativeResponseValue;
10156 }
10157         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR orig);
10158 /* @internal */
10159 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(orig: number): number {
10160         if(!isWasmInitialized) {
10161                 throw new Error("initializeWasm() must be awaited first!");
10162         }
10163         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(orig);
10164         return nativeResponseValue;
10165 }
10166         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_ok(struct LDKChannelCounterparty o);
10167 /* @internal */
10168 export function CResult_ChannelCounterpartyDecodeErrorZ_ok(o: number): number {
10169         if(!isWasmInitialized) {
10170                 throw new Error("initializeWasm() must be awaited first!");
10171         }
10172         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_ok(o);
10173         return nativeResponseValue;
10174 }
10175         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_err(struct LDKDecodeError e);
10176 /* @internal */
10177 export function CResult_ChannelCounterpartyDecodeErrorZ_err(e: number): number {
10178         if(!isWasmInitialized) {
10179                 throw new Error("initializeWasm() must be awaited first!");
10180         }
10181         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_err(e);
10182         return nativeResponseValue;
10183 }
10184         // bool CResult_ChannelCounterpartyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR o);
10185 /* @internal */
10186 export function CResult_ChannelCounterpartyDecodeErrorZ_is_ok(o: number): boolean {
10187         if(!isWasmInitialized) {
10188                 throw new Error("initializeWasm() must be awaited first!");
10189         }
10190         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_is_ok(o);
10191         return nativeResponseValue;
10192 }
10193         // void CResult_ChannelCounterpartyDecodeErrorZ_free(struct LDKCResult_ChannelCounterpartyDecodeErrorZ _res);
10194 /* @internal */
10195 export function CResult_ChannelCounterpartyDecodeErrorZ_free(_res: number): void {
10196         if(!isWasmInitialized) {
10197                 throw new Error("initializeWasm() must be awaited first!");
10198         }
10199         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_free(_res);
10200         // debug statements here
10201 }
10202         // uintptr_t CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR arg);
10203 /* @internal */
10204 export function CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(arg: number): number {
10205         if(!isWasmInitialized) {
10206                 throw new Error("initializeWasm() must be awaited first!");
10207         }
10208         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(arg);
10209         return nativeResponseValue;
10210 }
10211         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_clone(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR orig);
10212 /* @internal */
10213 export function CResult_ChannelCounterpartyDecodeErrorZ_clone(orig: number): number {
10214         if(!isWasmInitialized) {
10215                 throw new Error("initializeWasm() must be awaited first!");
10216         }
10217         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_clone(orig);
10218         return nativeResponseValue;
10219 }
10220         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_ok(struct LDKChannelDetails o);
10221 /* @internal */
10222 export function CResult_ChannelDetailsDecodeErrorZ_ok(o: number): number {
10223         if(!isWasmInitialized) {
10224                 throw new Error("initializeWasm() must be awaited first!");
10225         }
10226         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_ok(o);
10227         return nativeResponseValue;
10228 }
10229         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_err(struct LDKDecodeError e);
10230 /* @internal */
10231 export function CResult_ChannelDetailsDecodeErrorZ_err(e: number): number {
10232         if(!isWasmInitialized) {
10233                 throw new Error("initializeWasm() must be awaited first!");
10234         }
10235         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_err(e);
10236         return nativeResponseValue;
10237 }
10238         // bool CResult_ChannelDetailsDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR o);
10239 /* @internal */
10240 export function CResult_ChannelDetailsDecodeErrorZ_is_ok(o: number): boolean {
10241         if(!isWasmInitialized) {
10242                 throw new Error("initializeWasm() must be awaited first!");
10243         }
10244         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_is_ok(o);
10245         return nativeResponseValue;
10246 }
10247         // void CResult_ChannelDetailsDecodeErrorZ_free(struct LDKCResult_ChannelDetailsDecodeErrorZ _res);
10248 /* @internal */
10249 export function CResult_ChannelDetailsDecodeErrorZ_free(_res: number): void {
10250         if(!isWasmInitialized) {
10251                 throw new Error("initializeWasm() must be awaited first!");
10252         }
10253         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_free(_res);
10254         // debug statements here
10255 }
10256         // uintptr_t CResult_ChannelDetailsDecodeErrorZ_clone_ptr(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR arg);
10257 /* @internal */
10258 export function CResult_ChannelDetailsDecodeErrorZ_clone_ptr(arg: number): number {
10259         if(!isWasmInitialized) {
10260                 throw new Error("initializeWasm() must be awaited first!");
10261         }
10262         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_clone_ptr(arg);
10263         return nativeResponseValue;
10264 }
10265         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_clone(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR orig);
10266 /* @internal */
10267 export function CResult_ChannelDetailsDecodeErrorZ_clone(orig: number): number {
10268         if(!isWasmInitialized) {
10269                 throw new Error("initializeWasm() must be awaited first!");
10270         }
10271         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_clone(orig);
10272         return nativeResponseValue;
10273 }
10274         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_ok(struct LDKPhantomRouteHints o);
10275 /* @internal */
10276 export function CResult_PhantomRouteHintsDecodeErrorZ_ok(o: number): number {
10277         if(!isWasmInitialized) {
10278                 throw new Error("initializeWasm() must be awaited first!");
10279         }
10280         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_ok(o);
10281         return nativeResponseValue;
10282 }
10283         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_err(struct LDKDecodeError e);
10284 /* @internal */
10285 export function CResult_PhantomRouteHintsDecodeErrorZ_err(e: number): number {
10286         if(!isWasmInitialized) {
10287                 throw new Error("initializeWasm() must be awaited first!");
10288         }
10289         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_err(e);
10290         return nativeResponseValue;
10291 }
10292         // bool CResult_PhantomRouteHintsDecodeErrorZ_is_ok(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR o);
10293 /* @internal */
10294 export function CResult_PhantomRouteHintsDecodeErrorZ_is_ok(o: number): boolean {
10295         if(!isWasmInitialized) {
10296                 throw new Error("initializeWasm() must be awaited first!");
10297         }
10298         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_is_ok(o);
10299         return nativeResponseValue;
10300 }
10301         // void CResult_PhantomRouteHintsDecodeErrorZ_free(struct LDKCResult_PhantomRouteHintsDecodeErrorZ _res);
10302 /* @internal */
10303 export function CResult_PhantomRouteHintsDecodeErrorZ_free(_res: number): void {
10304         if(!isWasmInitialized) {
10305                 throw new Error("initializeWasm() must be awaited first!");
10306         }
10307         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_free(_res);
10308         // debug statements here
10309 }
10310         // uintptr_t CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR arg);
10311 /* @internal */
10312 export function CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(arg: number): number {
10313         if(!isWasmInitialized) {
10314                 throw new Error("initializeWasm() must be awaited first!");
10315         }
10316         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(arg);
10317         return nativeResponseValue;
10318 }
10319         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_clone(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR orig);
10320 /* @internal */
10321 export function CResult_PhantomRouteHintsDecodeErrorZ_clone(orig: number): number {
10322         if(!isWasmInitialized) {
10323                 throw new Error("initializeWasm() must be awaited first!");
10324         }
10325         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_clone(orig);
10326         return nativeResponseValue;
10327 }
10328         // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res);
10329 /* @internal */
10330 export function CVec_ChannelMonitorZ_free(_res: number): void {
10331         if(!isWasmInitialized) {
10332                 throw new Error("initializeWasm() must be awaited first!");
10333         }
10334         const nativeResponseValue = wasm.TS_CVec_ChannelMonitorZ_free(_res);
10335         // debug statements here
10336 }
10337         // struct LDKC2Tuple_BlockHashChannelManagerZ C2Tuple_BlockHashChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
10338 /* @internal */
10339 export function C2Tuple_BlockHashChannelManagerZ_new(a: number, b: number): number {
10340         if(!isWasmInitialized) {
10341                 throw new Error("initializeWasm() must be awaited first!");
10342         }
10343         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_new(a, b);
10344         return nativeResponseValue;
10345 }
10346         // void C2Tuple_BlockHashChannelManagerZ_free(struct LDKC2Tuple_BlockHashChannelManagerZ _res);
10347 /* @internal */
10348 export function C2Tuple_BlockHashChannelManagerZ_free(_res: number): void {
10349         if(!isWasmInitialized) {
10350                 throw new Error("initializeWasm() must be awaited first!");
10351         }
10352         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_free(_res);
10353         // debug statements here
10354 }
10355         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelManagerZ o);
10356 /* @internal */
10357 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(o: number): number {
10358         if(!isWasmInitialized) {
10359                 throw new Error("initializeWasm() must be awaited first!");
10360         }
10361         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(o);
10362         return nativeResponseValue;
10363 }
10364         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e);
10365 /* @internal */
10366 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(e: number): number {
10367         if(!isWasmInitialized) {
10368                 throw new Error("initializeWasm() must be awaited first!");
10369         }
10370         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(e);
10371         return nativeResponseValue;
10372 }
10373         // bool CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR o);
10374 /* @internal */
10375 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(o: number): boolean {
10376         if(!isWasmInitialized) {
10377                 throw new Error("initializeWasm() must be awaited first!");
10378         }
10379         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(o);
10380         return nativeResponseValue;
10381 }
10382         // void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ _res);
10383 /* @internal */
10384 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(_res: number): void {
10385         if(!isWasmInitialized) {
10386                 throw new Error("initializeWasm() must be awaited first!");
10387         }
10388         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(_res);
10389         // debug statements here
10390 }
10391         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_ok(struct LDKChannelConfig o);
10392 /* @internal */
10393 export function CResult_ChannelConfigDecodeErrorZ_ok(o: number): number {
10394         if(!isWasmInitialized) {
10395                 throw new Error("initializeWasm() must be awaited first!");
10396         }
10397         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_ok(o);
10398         return nativeResponseValue;
10399 }
10400         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_err(struct LDKDecodeError e);
10401 /* @internal */
10402 export function CResult_ChannelConfigDecodeErrorZ_err(e: number): number {
10403         if(!isWasmInitialized) {
10404                 throw new Error("initializeWasm() must be awaited first!");
10405         }
10406         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_err(e);
10407         return nativeResponseValue;
10408 }
10409         // bool CResult_ChannelConfigDecodeErrorZ_is_ok(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR o);
10410 /* @internal */
10411 export function CResult_ChannelConfigDecodeErrorZ_is_ok(o: number): boolean {
10412         if(!isWasmInitialized) {
10413                 throw new Error("initializeWasm() must be awaited first!");
10414         }
10415         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_is_ok(o);
10416         return nativeResponseValue;
10417 }
10418         // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res);
10419 /* @internal */
10420 export function CResult_ChannelConfigDecodeErrorZ_free(_res: number): void {
10421         if(!isWasmInitialized) {
10422                 throw new Error("initializeWasm() must be awaited first!");
10423         }
10424         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_free(_res);
10425         // debug statements here
10426 }
10427         // uintptr_t CResult_ChannelConfigDecodeErrorZ_clone_ptr(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR arg);
10428 /* @internal */
10429 export function CResult_ChannelConfigDecodeErrorZ_clone_ptr(arg: number): number {
10430         if(!isWasmInitialized) {
10431                 throw new Error("initializeWasm() must be awaited first!");
10432         }
10433         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_clone_ptr(arg);
10434         return nativeResponseValue;
10435 }
10436         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig);
10437 /* @internal */
10438 export function CResult_ChannelConfigDecodeErrorZ_clone(orig: number): number {
10439         if(!isWasmInitialized) {
10440                 throw new Error("initializeWasm() must be awaited first!");
10441         }
10442         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_clone(orig);
10443         return nativeResponseValue;
10444 }
10445         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o);
10446 /* @internal */
10447 export function CResult_OutPointDecodeErrorZ_ok(o: number): number {
10448         if(!isWasmInitialized) {
10449                 throw new Error("initializeWasm() must be awaited first!");
10450         }
10451         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_ok(o);
10452         return nativeResponseValue;
10453 }
10454         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e);
10455 /* @internal */
10456 export function CResult_OutPointDecodeErrorZ_err(e: number): number {
10457         if(!isWasmInitialized) {
10458                 throw new Error("initializeWasm() must be awaited first!");
10459         }
10460         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_err(e);
10461         return nativeResponseValue;
10462 }
10463         // bool CResult_OutPointDecodeErrorZ_is_ok(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR o);
10464 /* @internal */
10465 export function CResult_OutPointDecodeErrorZ_is_ok(o: number): boolean {
10466         if(!isWasmInitialized) {
10467                 throw new Error("initializeWasm() must be awaited first!");
10468         }
10469         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_is_ok(o);
10470         return nativeResponseValue;
10471 }
10472         // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res);
10473 /* @internal */
10474 export function CResult_OutPointDecodeErrorZ_free(_res: number): void {
10475         if(!isWasmInitialized) {
10476                 throw new Error("initializeWasm() must be awaited first!");
10477         }
10478         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_free(_res);
10479         // debug statements here
10480 }
10481         // uintptr_t CResult_OutPointDecodeErrorZ_clone_ptr(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR arg);
10482 /* @internal */
10483 export function CResult_OutPointDecodeErrorZ_clone_ptr(arg: number): number {
10484         if(!isWasmInitialized) {
10485                 throw new Error("initializeWasm() must be awaited first!");
10486         }
10487         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_clone_ptr(arg);
10488         return nativeResponseValue;
10489 }
10490         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig);
10491 /* @internal */
10492 export function CResult_OutPointDecodeErrorZ_clone(orig: number): number {
10493         if(!isWasmInitialized) {
10494                 throw new Error("initializeWasm() must be awaited first!");
10495         }
10496         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_clone(orig);
10497         return nativeResponseValue;
10498 }
10499         // struct LDKCOption_TypeZ COption_TypeZ_some(struct LDKType o);
10500 /* @internal */
10501 export function COption_TypeZ_some(o: number): number {
10502         if(!isWasmInitialized) {
10503                 throw new Error("initializeWasm() must be awaited first!");
10504         }
10505         const nativeResponseValue = wasm.TS_COption_TypeZ_some(o);
10506         return nativeResponseValue;
10507 }
10508         // struct LDKCOption_TypeZ COption_TypeZ_none(void);
10509 /* @internal */
10510 export function COption_TypeZ_none(): number {
10511         if(!isWasmInitialized) {
10512                 throw new Error("initializeWasm() must be awaited first!");
10513         }
10514         const nativeResponseValue = wasm.TS_COption_TypeZ_none();
10515         return nativeResponseValue;
10516 }
10517         // void COption_TypeZ_free(struct LDKCOption_TypeZ _res);
10518 /* @internal */
10519 export function COption_TypeZ_free(_res: number): void {
10520         if(!isWasmInitialized) {
10521                 throw new Error("initializeWasm() must be awaited first!");
10522         }
10523         const nativeResponseValue = wasm.TS_COption_TypeZ_free(_res);
10524         // debug statements here
10525 }
10526         // uintptr_t COption_TypeZ_clone_ptr(LDKCOption_TypeZ *NONNULL_PTR arg);
10527 /* @internal */
10528 export function COption_TypeZ_clone_ptr(arg: number): number {
10529         if(!isWasmInitialized) {
10530                 throw new Error("initializeWasm() must be awaited first!");
10531         }
10532         const nativeResponseValue = wasm.TS_COption_TypeZ_clone_ptr(arg);
10533         return nativeResponseValue;
10534 }
10535         // struct LDKCOption_TypeZ COption_TypeZ_clone(const struct LDKCOption_TypeZ *NONNULL_PTR orig);
10536 /* @internal */
10537 export function COption_TypeZ_clone(orig: number): number {
10538         if(!isWasmInitialized) {
10539                 throw new Error("initializeWasm() must be awaited first!");
10540         }
10541         const nativeResponseValue = wasm.TS_COption_TypeZ_clone(orig);
10542         return nativeResponseValue;
10543 }
10544         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_ok(struct LDKCOption_TypeZ o);
10545 /* @internal */
10546 export function CResult_COption_TypeZDecodeErrorZ_ok(o: number): number {
10547         if(!isWasmInitialized) {
10548                 throw new Error("initializeWasm() must be awaited first!");
10549         }
10550         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_ok(o);
10551         return nativeResponseValue;
10552 }
10553         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_err(struct LDKDecodeError e);
10554 /* @internal */
10555 export function CResult_COption_TypeZDecodeErrorZ_err(e: number): number {
10556         if(!isWasmInitialized) {
10557                 throw new Error("initializeWasm() must be awaited first!");
10558         }
10559         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_err(e);
10560         return nativeResponseValue;
10561 }
10562         // bool CResult_COption_TypeZDecodeErrorZ_is_ok(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR o);
10563 /* @internal */
10564 export function CResult_COption_TypeZDecodeErrorZ_is_ok(o: number): boolean {
10565         if(!isWasmInitialized) {
10566                 throw new Error("initializeWasm() must be awaited first!");
10567         }
10568         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_is_ok(o);
10569         return nativeResponseValue;
10570 }
10571         // void CResult_COption_TypeZDecodeErrorZ_free(struct LDKCResult_COption_TypeZDecodeErrorZ _res);
10572 /* @internal */
10573 export function CResult_COption_TypeZDecodeErrorZ_free(_res: number): void {
10574         if(!isWasmInitialized) {
10575                 throw new Error("initializeWasm() must be awaited first!");
10576         }
10577         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_free(_res);
10578         // debug statements here
10579 }
10580         // uintptr_t CResult_COption_TypeZDecodeErrorZ_clone_ptr(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR arg);
10581 /* @internal */
10582 export function CResult_COption_TypeZDecodeErrorZ_clone_ptr(arg: number): number {
10583         if(!isWasmInitialized) {
10584                 throw new Error("initializeWasm() must be awaited first!");
10585         }
10586         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_clone_ptr(arg);
10587         return nativeResponseValue;
10588 }
10589         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_clone(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR orig);
10590 /* @internal */
10591 export function CResult_COption_TypeZDecodeErrorZ_clone(orig: number): number {
10592         if(!isWasmInitialized) {
10593                 throw new Error("initializeWasm() must be awaited first!");
10594         }
10595         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_clone(orig);
10596         return nativeResponseValue;
10597 }
10598         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_ok(struct LDKThirtyTwoBytes o);
10599 /* @internal */
10600 export function CResult_PaymentIdPaymentErrorZ_ok(o: number): number {
10601         if(!isWasmInitialized) {
10602                 throw new Error("initializeWasm() must be awaited first!");
10603         }
10604         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_ok(o);
10605         return nativeResponseValue;
10606 }
10607         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_err(struct LDKPaymentError e);
10608 /* @internal */
10609 export function CResult_PaymentIdPaymentErrorZ_err(e: number): number {
10610         if(!isWasmInitialized) {
10611                 throw new Error("initializeWasm() must be awaited first!");
10612         }
10613         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_err(e);
10614         return nativeResponseValue;
10615 }
10616         // bool CResult_PaymentIdPaymentErrorZ_is_ok(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR o);
10617 /* @internal */
10618 export function CResult_PaymentIdPaymentErrorZ_is_ok(o: number): boolean {
10619         if(!isWasmInitialized) {
10620                 throw new Error("initializeWasm() must be awaited first!");
10621         }
10622         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_is_ok(o);
10623         return nativeResponseValue;
10624 }
10625         // void CResult_PaymentIdPaymentErrorZ_free(struct LDKCResult_PaymentIdPaymentErrorZ _res);
10626 /* @internal */
10627 export function CResult_PaymentIdPaymentErrorZ_free(_res: number): void {
10628         if(!isWasmInitialized) {
10629                 throw new Error("initializeWasm() must be awaited first!");
10630         }
10631         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_free(_res);
10632         // debug statements here
10633 }
10634         // uintptr_t CResult_PaymentIdPaymentErrorZ_clone_ptr(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR arg);
10635 /* @internal */
10636 export function CResult_PaymentIdPaymentErrorZ_clone_ptr(arg: number): number {
10637         if(!isWasmInitialized) {
10638                 throw new Error("initializeWasm() must be awaited first!");
10639         }
10640         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_clone_ptr(arg);
10641         return nativeResponseValue;
10642 }
10643         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_clone(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR orig);
10644 /* @internal */
10645 export function CResult_PaymentIdPaymentErrorZ_clone(orig: number): number {
10646         if(!isWasmInitialized) {
10647                 throw new Error("initializeWasm() must be awaited first!");
10648         }
10649         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_clone(orig);
10650         return nativeResponseValue;
10651 }
10652         // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_ok(enum LDKSiPrefix o);
10653 /* @internal */
10654 export function CResult_SiPrefixParseErrorZ_ok(o: SiPrefix): number {
10655         if(!isWasmInitialized) {
10656                 throw new Error("initializeWasm() must be awaited first!");
10657         }
10658         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_ok(o);
10659         return nativeResponseValue;
10660 }
10661         // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_err(struct LDKParseError e);
10662 /* @internal */
10663 export function CResult_SiPrefixParseErrorZ_err(e: number): number {
10664         if(!isWasmInitialized) {
10665                 throw new Error("initializeWasm() must be awaited first!");
10666         }
10667         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_err(e);
10668         return nativeResponseValue;
10669 }
10670         // bool CResult_SiPrefixParseErrorZ_is_ok(const struct LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR o);
10671 /* @internal */
10672 export function CResult_SiPrefixParseErrorZ_is_ok(o: number): boolean {
10673         if(!isWasmInitialized) {
10674                 throw new Error("initializeWasm() must be awaited first!");
10675         }
10676         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_is_ok(o);
10677         return nativeResponseValue;
10678 }
10679         // void CResult_SiPrefixParseErrorZ_free(struct LDKCResult_SiPrefixParseErrorZ _res);
10680 /* @internal */
10681 export function CResult_SiPrefixParseErrorZ_free(_res: number): void {
10682         if(!isWasmInitialized) {
10683                 throw new Error("initializeWasm() must be awaited first!");
10684         }
10685         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_free(_res);
10686         // debug statements here
10687 }
10688         // uintptr_t CResult_SiPrefixParseErrorZ_clone_ptr(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR arg);
10689 /* @internal */
10690 export function CResult_SiPrefixParseErrorZ_clone_ptr(arg: number): number {
10691         if(!isWasmInitialized) {
10692                 throw new Error("initializeWasm() must be awaited first!");
10693         }
10694         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_clone_ptr(arg);
10695         return nativeResponseValue;
10696 }
10697         // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_clone(const struct LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR orig);
10698 /* @internal */
10699 export function CResult_SiPrefixParseErrorZ_clone(orig: number): number {
10700         if(!isWasmInitialized) {
10701                 throw new Error("initializeWasm() must be awaited first!");
10702         }
10703         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_clone(orig);
10704         return nativeResponseValue;
10705 }
10706         // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_ok(struct LDKInvoice o);
10707 /* @internal */
10708 export function CResult_InvoiceParseOrSemanticErrorZ_ok(o: number): number {
10709         if(!isWasmInitialized) {
10710                 throw new Error("initializeWasm() must be awaited first!");
10711         }
10712         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_ok(o);
10713         return nativeResponseValue;
10714 }
10715         // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_err(struct LDKParseOrSemanticError e);
10716 /* @internal */
10717 export function CResult_InvoiceParseOrSemanticErrorZ_err(e: number): number {
10718         if(!isWasmInitialized) {
10719                 throw new Error("initializeWasm() must be awaited first!");
10720         }
10721         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_err(e);
10722         return nativeResponseValue;
10723 }
10724         // bool CResult_InvoiceParseOrSemanticErrorZ_is_ok(const struct LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR o);
10725 /* @internal */
10726 export function CResult_InvoiceParseOrSemanticErrorZ_is_ok(o: number): boolean {
10727         if(!isWasmInitialized) {
10728                 throw new Error("initializeWasm() must be awaited first!");
10729         }
10730         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_is_ok(o);
10731         return nativeResponseValue;
10732 }
10733         // void CResult_InvoiceParseOrSemanticErrorZ_free(struct LDKCResult_InvoiceParseOrSemanticErrorZ _res);
10734 /* @internal */
10735 export function CResult_InvoiceParseOrSemanticErrorZ_free(_res: number): void {
10736         if(!isWasmInitialized) {
10737                 throw new Error("initializeWasm() must be awaited first!");
10738         }
10739         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_free(_res);
10740         // debug statements here
10741 }
10742         // uintptr_t CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR arg);
10743 /* @internal */
10744 export function CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(arg: number): number {
10745         if(!isWasmInitialized) {
10746                 throw new Error("initializeWasm() must be awaited first!");
10747         }
10748         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(arg);
10749         return nativeResponseValue;
10750 }
10751         // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_clone(const struct LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR orig);
10752 /* @internal */
10753 export function CResult_InvoiceParseOrSemanticErrorZ_clone(orig: number): number {
10754         if(!isWasmInitialized) {
10755                 throw new Error("initializeWasm() must be awaited first!");
10756         }
10757         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_clone(orig);
10758         return nativeResponseValue;
10759 }
10760         // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_ok(struct LDKSignedRawInvoice o);
10761 /* @internal */
10762 export function CResult_SignedRawInvoiceParseErrorZ_ok(o: number): number {
10763         if(!isWasmInitialized) {
10764                 throw new Error("initializeWasm() must be awaited first!");
10765         }
10766         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_ok(o);
10767         return nativeResponseValue;
10768 }
10769         // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_err(struct LDKParseError e);
10770 /* @internal */
10771 export function CResult_SignedRawInvoiceParseErrorZ_err(e: number): number {
10772         if(!isWasmInitialized) {
10773                 throw new Error("initializeWasm() must be awaited first!");
10774         }
10775         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_err(e);
10776         return nativeResponseValue;
10777 }
10778         // bool CResult_SignedRawInvoiceParseErrorZ_is_ok(const struct LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR o);
10779 /* @internal */
10780 export function CResult_SignedRawInvoiceParseErrorZ_is_ok(o: number): boolean {
10781         if(!isWasmInitialized) {
10782                 throw new Error("initializeWasm() must be awaited first!");
10783         }
10784         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_is_ok(o);
10785         return nativeResponseValue;
10786 }
10787         // void CResult_SignedRawInvoiceParseErrorZ_free(struct LDKCResult_SignedRawInvoiceParseErrorZ _res);
10788 /* @internal */
10789 export function CResult_SignedRawInvoiceParseErrorZ_free(_res: number): void {
10790         if(!isWasmInitialized) {
10791                 throw new Error("initializeWasm() must be awaited first!");
10792         }
10793         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_free(_res);
10794         // debug statements here
10795 }
10796         // uintptr_t CResult_SignedRawInvoiceParseErrorZ_clone_ptr(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR arg);
10797 /* @internal */
10798 export function CResult_SignedRawInvoiceParseErrorZ_clone_ptr(arg: number): number {
10799         if(!isWasmInitialized) {
10800                 throw new Error("initializeWasm() must be awaited first!");
10801         }
10802         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_clone_ptr(arg);
10803         return nativeResponseValue;
10804 }
10805         // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_clone(const struct LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR orig);
10806 /* @internal */
10807 export function CResult_SignedRawInvoiceParseErrorZ_clone(orig: number): number {
10808         if(!isWasmInitialized) {
10809                 throw new Error("initializeWasm() must be awaited first!");
10810         }
10811         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_clone(orig);
10812         return nativeResponseValue;
10813 }
10814         // uintptr_t C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR arg);
10815 /* @internal */
10816 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(arg: number): number {
10817         if(!isWasmInitialized) {
10818                 throw new Error("initializeWasm() must be awaited first!");
10819         }
10820         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(arg);
10821         return nativeResponseValue;
10822 }
10823         // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(const struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR orig);
10824 /* @internal */
10825 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(orig: number): number {
10826         if(!isWasmInitialized) {
10827                 throw new Error("initializeWasm() must be awaited first!");
10828         }
10829         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(orig);
10830         return nativeResponseValue;
10831 }
10832         // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(struct LDKRawInvoice a, struct LDKThirtyTwoBytes b, struct LDKInvoiceSignature c);
10833 /* @internal */
10834 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(a: number, b: number, c: number): number {
10835         if(!isWasmInitialized) {
10836                 throw new Error("initializeWasm() must be awaited first!");
10837         }
10838         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(a, b, c);
10839         return nativeResponseValue;
10840 }
10841         // void C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ _res);
10842 /* @internal */
10843 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(_res: number): void {
10844         if(!isWasmInitialized) {
10845                 throw new Error("initializeWasm() must be awaited first!");
10846         }
10847         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(_res);
10848         // debug statements here
10849 }
10850         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_ok(struct LDKPayeePubKey o);
10851 /* @internal */
10852 export function CResult_PayeePubKeyErrorZ_ok(o: number): number {
10853         if(!isWasmInitialized) {
10854                 throw new Error("initializeWasm() must be awaited first!");
10855         }
10856         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_ok(o);
10857         return nativeResponseValue;
10858 }
10859         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_err(enum LDKSecp256k1Error e);
10860 /* @internal */
10861 export function CResult_PayeePubKeyErrorZ_err(e: Secp256k1Error): number {
10862         if(!isWasmInitialized) {
10863                 throw new Error("initializeWasm() must be awaited first!");
10864         }
10865         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_err(e);
10866         return nativeResponseValue;
10867 }
10868         // bool CResult_PayeePubKeyErrorZ_is_ok(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR o);
10869 /* @internal */
10870 export function CResult_PayeePubKeyErrorZ_is_ok(o: number): boolean {
10871         if(!isWasmInitialized) {
10872                 throw new Error("initializeWasm() must be awaited first!");
10873         }
10874         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_is_ok(o);
10875         return nativeResponseValue;
10876 }
10877         // void CResult_PayeePubKeyErrorZ_free(struct LDKCResult_PayeePubKeyErrorZ _res);
10878 /* @internal */
10879 export function CResult_PayeePubKeyErrorZ_free(_res: number): void {
10880         if(!isWasmInitialized) {
10881                 throw new Error("initializeWasm() must be awaited first!");
10882         }
10883         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_free(_res);
10884         // debug statements here
10885 }
10886         // uintptr_t CResult_PayeePubKeyErrorZ_clone_ptr(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR arg);
10887 /* @internal */
10888 export function CResult_PayeePubKeyErrorZ_clone_ptr(arg: number): number {
10889         if(!isWasmInitialized) {
10890                 throw new Error("initializeWasm() must be awaited first!");
10891         }
10892         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_clone_ptr(arg);
10893         return nativeResponseValue;
10894 }
10895         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_clone(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR orig);
10896 /* @internal */
10897 export function CResult_PayeePubKeyErrorZ_clone(orig: number): number {
10898         if(!isWasmInitialized) {
10899                 throw new Error("initializeWasm() must be awaited first!");
10900         }
10901         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_clone(orig);
10902         return nativeResponseValue;
10903 }
10904         // void CVec_PrivateRouteZ_free(struct LDKCVec_PrivateRouteZ _res);
10905 /* @internal */
10906 export function CVec_PrivateRouteZ_free(_res: number): void {
10907         if(!isWasmInitialized) {
10908                 throw new Error("initializeWasm() must be awaited first!");
10909         }
10910         const nativeResponseValue = wasm.TS_CVec_PrivateRouteZ_free(_res);
10911         // debug statements here
10912 }
10913         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_ok(struct LDKPositiveTimestamp o);
10914 /* @internal */
10915 export function CResult_PositiveTimestampCreationErrorZ_ok(o: number): number {
10916         if(!isWasmInitialized) {
10917                 throw new Error("initializeWasm() must be awaited first!");
10918         }
10919         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_ok(o);
10920         return nativeResponseValue;
10921 }
10922         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_err(enum LDKCreationError e);
10923 /* @internal */
10924 export function CResult_PositiveTimestampCreationErrorZ_err(e: CreationError): number {
10925         if(!isWasmInitialized) {
10926                 throw new Error("initializeWasm() must be awaited first!");
10927         }
10928         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_err(e);
10929         return nativeResponseValue;
10930 }
10931         // bool CResult_PositiveTimestampCreationErrorZ_is_ok(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR o);
10932 /* @internal */
10933 export function CResult_PositiveTimestampCreationErrorZ_is_ok(o: number): boolean {
10934         if(!isWasmInitialized) {
10935                 throw new Error("initializeWasm() must be awaited first!");
10936         }
10937         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_is_ok(o);
10938         return nativeResponseValue;
10939 }
10940         // void CResult_PositiveTimestampCreationErrorZ_free(struct LDKCResult_PositiveTimestampCreationErrorZ _res);
10941 /* @internal */
10942 export function CResult_PositiveTimestampCreationErrorZ_free(_res: number): void {
10943         if(!isWasmInitialized) {
10944                 throw new Error("initializeWasm() must be awaited first!");
10945         }
10946         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_free(_res);
10947         // debug statements here
10948 }
10949         // uintptr_t CResult_PositiveTimestampCreationErrorZ_clone_ptr(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR arg);
10950 /* @internal */
10951 export function CResult_PositiveTimestampCreationErrorZ_clone_ptr(arg: number): number {
10952         if(!isWasmInitialized) {
10953                 throw new Error("initializeWasm() must be awaited first!");
10954         }
10955         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_clone_ptr(arg);
10956         return nativeResponseValue;
10957 }
10958         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_clone(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR orig);
10959 /* @internal */
10960 export function CResult_PositiveTimestampCreationErrorZ_clone(orig: number): number {
10961         if(!isWasmInitialized) {
10962                 throw new Error("initializeWasm() must be awaited first!");
10963         }
10964         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_clone(orig);
10965         return nativeResponseValue;
10966 }
10967         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_ok(void);
10968 /* @internal */
10969 export function CResult_NoneSemanticErrorZ_ok(): number {
10970         if(!isWasmInitialized) {
10971                 throw new Error("initializeWasm() must be awaited first!");
10972         }
10973         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_ok();
10974         return nativeResponseValue;
10975 }
10976         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_err(enum LDKSemanticError e);
10977 /* @internal */
10978 export function CResult_NoneSemanticErrorZ_err(e: SemanticError): number {
10979         if(!isWasmInitialized) {
10980                 throw new Error("initializeWasm() must be awaited first!");
10981         }
10982         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_err(e);
10983         return nativeResponseValue;
10984 }
10985         // bool CResult_NoneSemanticErrorZ_is_ok(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR o);
10986 /* @internal */
10987 export function CResult_NoneSemanticErrorZ_is_ok(o: number): boolean {
10988         if(!isWasmInitialized) {
10989                 throw new Error("initializeWasm() must be awaited first!");
10990         }
10991         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_is_ok(o);
10992         return nativeResponseValue;
10993 }
10994         // void CResult_NoneSemanticErrorZ_free(struct LDKCResult_NoneSemanticErrorZ _res);
10995 /* @internal */
10996 export function CResult_NoneSemanticErrorZ_free(_res: number): void {
10997         if(!isWasmInitialized) {
10998                 throw new Error("initializeWasm() must be awaited first!");
10999         }
11000         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_free(_res);
11001         // debug statements here
11002 }
11003         // uintptr_t CResult_NoneSemanticErrorZ_clone_ptr(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR arg);
11004 /* @internal */
11005 export function CResult_NoneSemanticErrorZ_clone_ptr(arg: number): number {
11006         if(!isWasmInitialized) {
11007                 throw new Error("initializeWasm() must be awaited first!");
11008         }
11009         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_clone_ptr(arg);
11010         return nativeResponseValue;
11011 }
11012         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_clone(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR orig);
11013 /* @internal */
11014 export function CResult_NoneSemanticErrorZ_clone(orig: number): number {
11015         if(!isWasmInitialized) {
11016                 throw new Error("initializeWasm() must be awaited first!");
11017         }
11018         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_clone(orig);
11019         return nativeResponseValue;
11020 }
11021         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_ok(struct LDKInvoice o);
11022 /* @internal */
11023 export function CResult_InvoiceSemanticErrorZ_ok(o: number): number {
11024         if(!isWasmInitialized) {
11025                 throw new Error("initializeWasm() must be awaited first!");
11026         }
11027         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_ok(o);
11028         return nativeResponseValue;
11029 }
11030         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_err(enum LDKSemanticError e);
11031 /* @internal */
11032 export function CResult_InvoiceSemanticErrorZ_err(e: SemanticError): number {
11033         if(!isWasmInitialized) {
11034                 throw new Error("initializeWasm() must be awaited first!");
11035         }
11036         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_err(e);
11037         return nativeResponseValue;
11038 }
11039         // bool CResult_InvoiceSemanticErrorZ_is_ok(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR o);
11040 /* @internal */
11041 export function CResult_InvoiceSemanticErrorZ_is_ok(o: number): boolean {
11042         if(!isWasmInitialized) {
11043                 throw new Error("initializeWasm() must be awaited first!");
11044         }
11045         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_is_ok(o);
11046         return nativeResponseValue;
11047 }
11048         // void CResult_InvoiceSemanticErrorZ_free(struct LDKCResult_InvoiceSemanticErrorZ _res);
11049 /* @internal */
11050 export function CResult_InvoiceSemanticErrorZ_free(_res: number): void {
11051         if(!isWasmInitialized) {
11052                 throw new Error("initializeWasm() must be awaited first!");
11053         }
11054         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_free(_res);
11055         // debug statements here
11056 }
11057         // uintptr_t CResult_InvoiceSemanticErrorZ_clone_ptr(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR arg);
11058 /* @internal */
11059 export function CResult_InvoiceSemanticErrorZ_clone_ptr(arg: number): number {
11060         if(!isWasmInitialized) {
11061                 throw new Error("initializeWasm() must be awaited first!");
11062         }
11063         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_clone_ptr(arg);
11064         return nativeResponseValue;
11065 }
11066         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_clone(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR orig);
11067 /* @internal */
11068 export function CResult_InvoiceSemanticErrorZ_clone(orig: number): number {
11069         if(!isWasmInitialized) {
11070                 throw new Error("initializeWasm() must be awaited first!");
11071         }
11072         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_clone(orig);
11073         return nativeResponseValue;
11074 }
11075         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_ok(struct LDKDescription o);
11076 /* @internal */
11077 export function CResult_DescriptionCreationErrorZ_ok(o: number): number {
11078         if(!isWasmInitialized) {
11079                 throw new Error("initializeWasm() must be awaited first!");
11080         }
11081         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_ok(o);
11082         return nativeResponseValue;
11083 }
11084         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_err(enum LDKCreationError e);
11085 /* @internal */
11086 export function CResult_DescriptionCreationErrorZ_err(e: CreationError): number {
11087         if(!isWasmInitialized) {
11088                 throw new Error("initializeWasm() must be awaited first!");
11089         }
11090         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_err(e);
11091         return nativeResponseValue;
11092 }
11093         // bool CResult_DescriptionCreationErrorZ_is_ok(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR o);
11094 /* @internal */
11095 export function CResult_DescriptionCreationErrorZ_is_ok(o: number): boolean {
11096         if(!isWasmInitialized) {
11097                 throw new Error("initializeWasm() must be awaited first!");
11098         }
11099         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_is_ok(o);
11100         return nativeResponseValue;
11101 }
11102         // void CResult_DescriptionCreationErrorZ_free(struct LDKCResult_DescriptionCreationErrorZ _res);
11103 /* @internal */
11104 export function CResult_DescriptionCreationErrorZ_free(_res: number): void {
11105         if(!isWasmInitialized) {
11106                 throw new Error("initializeWasm() must be awaited first!");
11107         }
11108         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_free(_res);
11109         // debug statements here
11110 }
11111         // uintptr_t CResult_DescriptionCreationErrorZ_clone_ptr(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR arg);
11112 /* @internal */
11113 export function CResult_DescriptionCreationErrorZ_clone_ptr(arg: number): number {
11114         if(!isWasmInitialized) {
11115                 throw new Error("initializeWasm() must be awaited first!");
11116         }
11117         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_clone_ptr(arg);
11118         return nativeResponseValue;
11119 }
11120         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_clone(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR orig);
11121 /* @internal */
11122 export function CResult_DescriptionCreationErrorZ_clone(orig: number): number {
11123         if(!isWasmInitialized) {
11124                 throw new Error("initializeWasm() must be awaited first!");
11125         }
11126         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_clone(orig);
11127         return nativeResponseValue;
11128 }
11129         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_ok(struct LDKPrivateRoute o);
11130 /* @internal */
11131 export function CResult_PrivateRouteCreationErrorZ_ok(o: number): number {
11132         if(!isWasmInitialized) {
11133                 throw new Error("initializeWasm() must be awaited first!");
11134         }
11135         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_ok(o);
11136         return nativeResponseValue;
11137 }
11138         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_err(enum LDKCreationError e);
11139 /* @internal */
11140 export function CResult_PrivateRouteCreationErrorZ_err(e: CreationError): number {
11141         if(!isWasmInitialized) {
11142                 throw new Error("initializeWasm() must be awaited first!");
11143         }
11144         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_err(e);
11145         return nativeResponseValue;
11146 }
11147         // bool CResult_PrivateRouteCreationErrorZ_is_ok(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR o);
11148 /* @internal */
11149 export function CResult_PrivateRouteCreationErrorZ_is_ok(o: number): boolean {
11150         if(!isWasmInitialized) {
11151                 throw new Error("initializeWasm() must be awaited first!");
11152         }
11153         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_is_ok(o);
11154         return nativeResponseValue;
11155 }
11156         // void CResult_PrivateRouteCreationErrorZ_free(struct LDKCResult_PrivateRouteCreationErrorZ _res);
11157 /* @internal */
11158 export function CResult_PrivateRouteCreationErrorZ_free(_res: number): void {
11159         if(!isWasmInitialized) {
11160                 throw new Error("initializeWasm() must be awaited first!");
11161         }
11162         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_free(_res);
11163         // debug statements here
11164 }
11165         // uintptr_t CResult_PrivateRouteCreationErrorZ_clone_ptr(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR arg);
11166 /* @internal */
11167 export function CResult_PrivateRouteCreationErrorZ_clone_ptr(arg: number): number {
11168         if(!isWasmInitialized) {
11169                 throw new Error("initializeWasm() must be awaited first!");
11170         }
11171         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_clone_ptr(arg);
11172         return nativeResponseValue;
11173 }
11174         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_clone(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR orig);
11175 /* @internal */
11176 export function CResult_PrivateRouteCreationErrorZ_clone(orig: number): number {
11177         if(!isWasmInitialized) {
11178                 throw new Error("initializeWasm() must be awaited first!");
11179         }
11180         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_clone(orig);
11181         return nativeResponseValue;
11182 }
11183         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_ok(struct LDKStr o);
11184 /* @internal */
11185 export function CResult_StringErrorZ_ok(o: number): number {
11186         if(!isWasmInitialized) {
11187                 throw new Error("initializeWasm() must be awaited first!");
11188         }
11189         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_ok(o);
11190         return nativeResponseValue;
11191 }
11192         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_err(enum LDKSecp256k1Error e);
11193 /* @internal */
11194 export function CResult_StringErrorZ_err(e: Secp256k1Error): number {
11195         if(!isWasmInitialized) {
11196                 throw new Error("initializeWasm() must be awaited first!");
11197         }
11198         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_err(e);
11199         return nativeResponseValue;
11200 }
11201         // bool CResult_StringErrorZ_is_ok(const struct LDKCResult_StringErrorZ *NONNULL_PTR o);
11202 /* @internal */
11203 export function CResult_StringErrorZ_is_ok(o: number): boolean {
11204         if(!isWasmInitialized) {
11205                 throw new Error("initializeWasm() must be awaited first!");
11206         }
11207         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_is_ok(o);
11208         return nativeResponseValue;
11209 }
11210         // void CResult_StringErrorZ_free(struct LDKCResult_StringErrorZ _res);
11211 /* @internal */
11212 export function CResult_StringErrorZ_free(_res: number): void {
11213         if(!isWasmInitialized) {
11214                 throw new Error("initializeWasm() must be awaited first!");
11215         }
11216         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_free(_res);
11217         // debug statements here
11218 }
11219         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o);
11220 /* @internal */
11221 export function CResult_ChannelMonitorUpdateDecodeErrorZ_ok(o: number): number {
11222         if(!isWasmInitialized) {
11223                 throw new Error("initializeWasm() must be awaited first!");
11224         }
11225         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_ok(o);
11226         return nativeResponseValue;
11227 }
11228         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e);
11229 /* @internal */
11230 export function CResult_ChannelMonitorUpdateDecodeErrorZ_err(e: number): number {
11231         if(!isWasmInitialized) {
11232                 throw new Error("initializeWasm() must be awaited first!");
11233         }
11234         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_err(e);
11235         return nativeResponseValue;
11236 }
11237         // bool CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR o);
11238 /* @internal */
11239 export function CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(o: number): boolean {
11240         if(!isWasmInitialized) {
11241                 throw new Error("initializeWasm() must be awaited first!");
11242         }
11243         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(o);
11244         return nativeResponseValue;
11245 }
11246         // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res);
11247 /* @internal */
11248 export function CResult_ChannelMonitorUpdateDecodeErrorZ_free(_res: number): void {
11249         if(!isWasmInitialized) {
11250                 throw new Error("initializeWasm() must be awaited first!");
11251         }
11252         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_free(_res);
11253         // debug statements here
11254 }
11255         // uintptr_t CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR arg);
11256 /* @internal */
11257 export function CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(arg: number): number {
11258         if(!isWasmInitialized) {
11259                 throw new Error("initializeWasm() must be awaited first!");
11260         }
11261         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(arg);
11262         return nativeResponseValue;
11263 }
11264         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR orig);
11265 /* @internal */
11266 export function CResult_ChannelMonitorUpdateDecodeErrorZ_clone(orig: number): number {
11267         if(!isWasmInitialized) {
11268                 throw new Error("initializeWasm() must be awaited first!");
11269         }
11270         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_clone(orig);
11271         return nativeResponseValue;
11272 }
11273         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_some(struct LDKMonitorEvent o);
11274 /* @internal */
11275 export function COption_MonitorEventZ_some(o: number): number {
11276         if(!isWasmInitialized) {
11277                 throw new Error("initializeWasm() must be awaited first!");
11278         }
11279         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_some(o);
11280         return nativeResponseValue;
11281 }
11282         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_none(void);
11283 /* @internal */
11284 export function COption_MonitorEventZ_none(): number {
11285         if(!isWasmInitialized) {
11286                 throw new Error("initializeWasm() must be awaited first!");
11287         }
11288         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_none();
11289         return nativeResponseValue;
11290 }
11291         // void COption_MonitorEventZ_free(struct LDKCOption_MonitorEventZ _res);
11292 /* @internal */
11293 export function COption_MonitorEventZ_free(_res: number): void {
11294         if(!isWasmInitialized) {
11295                 throw new Error("initializeWasm() must be awaited first!");
11296         }
11297         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_free(_res);
11298         // debug statements here
11299 }
11300         // uintptr_t COption_MonitorEventZ_clone_ptr(LDKCOption_MonitorEventZ *NONNULL_PTR arg);
11301 /* @internal */
11302 export function COption_MonitorEventZ_clone_ptr(arg: number): number {
11303         if(!isWasmInitialized) {
11304                 throw new Error("initializeWasm() must be awaited first!");
11305         }
11306         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_clone_ptr(arg);
11307         return nativeResponseValue;
11308 }
11309         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_clone(const struct LDKCOption_MonitorEventZ *NONNULL_PTR orig);
11310 /* @internal */
11311 export function COption_MonitorEventZ_clone(orig: number): number {
11312         if(!isWasmInitialized) {
11313                 throw new Error("initializeWasm() must be awaited first!");
11314         }
11315         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_clone(orig);
11316         return nativeResponseValue;
11317 }
11318         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_ok(struct LDKCOption_MonitorEventZ o);
11319 /* @internal */
11320 export function CResult_COption_MonitorEventZDecodeErrorZ_ok(o: number): number {
11321         if(!isWasmInitialized) {
11322                 throw new Error("initializeWasm() must be awaited first!");
11323         }
11324         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_ok(o);
11325         return nativeResponseValue;
11326 }
11327         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_err(struct LDKDecodeError e);
11328 /* @internal */
11329 export function CResult_COption_MonitorEventZDecodeErrorZ_err(e: number): number {
11330         if(!isWasmInitialized) {
11331                 throw new Error("initializeWasm() must be awaited first!");
11332         }
11333         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_err(e);
11334         return nativeResponseValue;
11335 }
11336         // bool CResult_COption_MonitorEventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR o);
11337 /* @internal */
11338 export function CResult_COption_MonitorEventZDecodeErrorZ_is_ok(o: number): boolean {
11339         if(!isWasmInitialized) {
11340                 throw new Error("initializeWasm() must be awaited first!");
11341         }
11342         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_is_ok(o);
11343         return nativeResponseValue;
11344 }
11345         // void CResult_COption_MonitorEventZDecodeErrorZ_free(struct LDKCResult_COption_MonitorEventZDecodeErrorZ _res);
11346 /* @internal */
11347 export function CResult_COption_MonitorEventZDecodeErrorZ_free(_res: number): void {
11348         if(!isWasmInitialized) {
11349                 throw new Error("initializeWasm() must be awaited first!");
11350         }
11351         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_free(_res);
11352         // debug statements here
11353 }
11354         // uintptr_t CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR arg);
11355 /* @internal */
11356 export function CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(arg: number): number {
11357         if(!isWasmInitialized) {
11358                 throw new Error("initializeWasm() must be awaited first!");
11359         }
11360         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(arg);
11361         return nativeResponseValue;
11362 }
11363         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_clone(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR orig);
11364 /* @internal */
11365 export function CResult_COption_MonitorEventZDecodeErrorZ_clone(orig: number): number {
11366         if(!isWasmInitialized) {
11367                 throw new Error("initializeWasm() must be awaited first!");
11368         }
11369         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_clone(orig);
11370         return nativeResponseValue;
11371 }
11372         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_ok(struct LDKHTLCUpdate o);
11373 /* @internal */
11374 export function CResult_HTLCUpdateDecodeErrorZ_ok(o: number): number {
11375         if(!isWasmInitialized) {
11376                 throw new Error("initializeWasm() must be awaited first!");
11377         }
11378         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_ok(o);
11379         return nativeResponseValue;
11380 }
11381         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_err(struct LDKDecodeError e);
11382 /* @internal */
11383 export function CResult_HTLCUpdateDecodeErrorZ_err(e: number): number {
11384         if(!isWasmInitialized) {
11385                 throw new Error("initializeWasm() must be awaited first!");
11386         }
11387         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_err(e);
11388         return nativeResponseValue;
11389 }
11390         // bool CResult_HTLCUpdateDecodeErrorZ_is_ok(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR o);
11391 /* @internal */
11392 export function CResult_HTLCUpdateDecodeErrorZ_is_ok(o: number): boolean {
11393         if(!isWasmInitialized) {
11394                 throw new Error("initializeWasm() must be awaited first!");
11395         }
11396         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_is_ok(o);
11397         return nativeResponseValue;
11398 }
11399         // void CResult_HTLCUpdateDecodeErrorZ_free(struct LDKCResult_HTLCUpdateDecodeErrorZ _res);
11400 /* @internal */
11401 export function CResult_HTLCUpdateDecodeErrorZ_free(_res: number): void {
11402         if(!isWasmInitialized) {
11403                 throw new Error("initializeWasm() must be awaited first!");
11404         }
11405         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_free(_res);
11406         // debug statements here
11407 }
11408         // uintptr_t CResult_HTLCUpdateDecodeErrorZ_clone_ptr(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR arg);
11409 /* @internal */
11410 export function CResult_HTLCUpdateDecodeErrorZ_clone_ptr(arg: number): number {
11411         if(!isWasmInitialized) {
11412                 throw new Error("initializeWasm() must be awaited first!");
11413         }
11414         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_clone_ptr(arg);
11415         return nativeResponseValue;
11416 }
11417         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR orig);
11418 /* @internal */
11419 export function CResult_HTLCUpdateDecodeErrorZ_clone(orig: number): number {
11420         if(!isWasmInitialized) {
11421                 throw new Error("initializeWasm() must be awaited first!");
11422         }
11423         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_clone(orig);
11424         return nativeResponseValue;
11425 }
11426         // uintptr_t C2Tuple_OutPointScriptZ_clone_ptr(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR arg);
11427 /* @internal */
11428 export function C2Tuple_OutPointScriptZ_clone_ptr(arg: number): number {
11429         if(!isWasmInitialized) {
11430                 throw new Error("initializeWasm() must be awaited first!");
11431         }
11432         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_clone_ptr(arg);
11433         return nativeResponseValue;
11434 }
11435         // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_clone(const struct LDKC2Tuple_OutPointScriptZ *NONNULL_PTR orig);
11436 /* @internal */
11437 export function C2Tuple_OutPointScriptZ_clone(orig: number): number {
11438         if(!isWasmInitialized) {
11439                 throw new Error("initializeWasm() must be awaited first!");
11440         }
11441         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_clone(orig);
11442         return nativeResponseValue;
11443 }
11444         // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
11445 /* @internal */
11446 export function C2Tuple_OutPointScriptZ_new(a: number, b: number): number {
11447         if(!isWasmInitialized) {
11448                 throw new Error("initializeWasm() must be awaited first!");
11449         }
11450         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_new(a, b);
11451         return nativeResponseValue;
11452 }
11453         // void C2Tuple_OutPointScriptZ_free(struct LDKC2Tuple_OutPointScriptZ _res);
11454 /* @internal */
11455 export function C2Tuple_OutPointScriptZ_free(_res: number): void {
11456         if(!isWasmInitialized) {
11457                 throw new Error("initializeWasm() must be awaited first!");
11458         }
11459         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_free(_res);
11460         // debug statements here
11461 }
11462         // uintptr_t C2Tuple_u32ScriptZ_clone_ptr(LDKC2Tuple_u32ScriptZ *NONNULL_PTR arg);
11463 /* @internal */
11464 export function C2Tuple_u32ScriptZ_clone_ptr(arg: number): number {
11465         if(!isWasmInitialized) {
11466                 throw new Error("initializeWasm() must be awaited first!");
11467         }
11468         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_clone_ptr(arg);
11469         return nativeResponseValue;
11470 }
11471         // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_clone(const struct LDKC2Tuple_u32ScriptZ *NONNULL_PTR orig);
11472 /* @internal */
11473 export function C2Tuple_u32ScriptZ_clone(orig: number): number {
11474         if(!isWasmInitialized) {
11475                 throw new Error("initializeWasm() must be awaited first!");
11476         }
11477         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_clone(orig);
11478         return nativeResponseValue;
11479 }
11480         // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_new(uint32_t a, struct LDKCVec_u8Z b);
11481 /* @internal */
11482 export function C2Tuple_u32ScriptZ_new(a: number, b: number): number {
11483         if(!isWasmInitialized) {
11484                 throw new Error("initializeWasm() must be awaited first!");
11485         }
11486         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_new(a, b);
11487         return nativeResponseValue;
11488 }
11489         // void C2Tuple_u32ScriptZ_free(struct LDKC2Tuple_u32ScriptZ _res);
11490 /* @internal */
11491 export function C2Tuple_u32ScriptZ_free(_res: number): void {
11492         if(!isWasmInitialized) {
11493                 throw new Error("initializeWasm() must be awaited first!");
11494         }
11495         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_free(_res);
11496         // debug statements here
11497 }
11498         // void CVec_C2Tuple_u32ScriptZZ_free(struct LDKCVec_C2Tuple_u32ScriptZZ _res);
11499 /* @internal */
11500 export function CVec_C2Tuple_u32ScriptZZ_free(_res: number): void {
11501         if(!isWasmInitialized) {
11502                 throw new Error("initializeWasm() must be awaited first!");
11503         }
11504         const nativeResponseValue = wasm.TS_CVec_C2Tuple_u32ScriptZZ_free(_res);
11505         // debug statements here
11506 }
11507         // uintptr_t C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR arg);
11508 /* @internal */
11509 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(arg: number): number {
11510         if(!isWasmInitialized) {
11511                 throw new Error("initializeWasm() must be awaited first!");
11512         }
11513         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(arg);
11514         return nativeResponseValue;
11515 }
11516         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR orig);
11517 /* @internal */
11518 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(orig: number): number {
11519         if(!isWasmInitialized) {
11520                 throw new Error("initializeWasm() must be awaited first!");
11521         }
11522         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(orig);
11523         return nativeResponseValue;
11524 }
11525         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32ScriptZZ b);
11526 /* @internal */
11527 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(a: number, b: number): number {
11528         if(!isWasmInitialized) {
11529                 throw new Error("initializeWasm() must be awaited first!");
11530         }
11531         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(a, b);
11532         return nativeResponseValue;
11533 }
11534         // void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ _res);
11535 /* @internal */
11536 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(_res: number): void {
11537         if(!isWasmInitialized) {
11538                 throw new Error("initializeWasm() must be awaited first!");
11539         }
11540         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(_res);
11541         // debug statements here
11542 }
11543         // void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ _res);
11544 /* @internal */
11545 export function CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(_res: number): void {
11546         if(!isWasmInitialized) {
11547                 throw new Error("initializeWasm() must be awaited first!");
11548         }
11549         const nativeResponseValue = wasm.TS_CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(_res);
11550         // debug statements here
11551 }
11552         // void CVec_EventZ_free(struct LDKCVec_EventZ _res);
11553 /* @internal */
11554 export function CVec_EventZ_free(_res: number): void {
11555         if(!isWasmInitialized) {
11556                 throw new Error("initializeWasm() must be awaited first!");
11557         }
11558         const nativeResponseValue = wasm.TS_CVec_EventZ_free(_res);
11559         // debug statements here
11560 }
11561         // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res);
11562 /* @internal */
11563 export function CVec_TransactionZ_free(_res: number): void {
11564         if(!isWasmInitialized) {
11565                 throw new Error("initializeWasm() must be awaited first!");
11566         }
11567         const nativeResponseValue = wasm.TS_CVec_TransactionZ_free(_res);
11568         // debug statements here
11569 }
11570         // uintptr_t C2Tuple_u32TxOutZ_clone_ptr(LDKC2Tuple_u32TxOutZ *NONNULL_PTR arg);
11571 /* @internal */
11572 export function C2Tuple_u32TxOutZ_clone_ptr(arg: number): number {
11573         if(!isWasmInitialized) {
11574                 throw new Error("initializeWasm() must be awaited first!");
11575         }
11576         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_clone_ptr(arg);
11577         return nativeResponseValue;
11578 }
11579         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_clone(const struct LDKC2Tuple_u32TxOutZ *NONNULL_PTR orig);
11580 /* @internal */
11581 export function C2Tuple_u32TxOutZ_clone(orig: number): number {
11582         if(!isWasmInitialized) {
11583                 throw new Error("initializeWasm() must be awaited first!");
11584         }
11585         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_clone(orig);
11586         return nativeResponseValue;
11587 }
11588         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
11589 /* @internal */
11590 export function C2Tuple_u32TxOutZ_new(a: number, b: number): number {
11591         if(!isWasmInitialized) {
11592                 throw new Error("initializeWasm() must be awaited first!");
11593         }
11594         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_new(a, b);
11595         return nativeResponseValue;
11596 }
11597         // void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res);
11598 /* @internal */
11599 export function C2Tuple_u32TxOutZ_free(_res: number): void {
11600         if(!isWasmInitialized) {
11601                 throw new Error("initializeWasm() must be awaited first!");
11602         }
11603         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_free(_res);
11604         // debug statements here
11605 }
11606         // void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res);
11607 /* @internal */
11608 export function CVec_C2Tuple_u32TxOutZZ_free(_res: number): void {
11609         if(!isWasmInitialized) {
11610                 throw new Error("initializeWasm() must be awaited first!");
11611         }
11612         const nativeResponseValue = wasm.TS_CVec_C2Tuple_u32TxOutZZ_free(_res);
11613         // debug statements here
11614 }
11615         // uintptr_t C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR arg);
11616 /* @internal */
11617 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(arg: number): number {
11618         if(!isWasmInitialized) {
11619                 throw new Error("initializeWasm() must be awaited first!");
11620         }
11621         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(arg);
11622         return nativeResponseValue;
11623 }
11624         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig);
11625 /* @internal */
11626 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(orig: number): number {
11627         if(!isWasmInitialized) {
11628                 throw new Error("initializeWasm() must be awaited first!");
11629         }
11630         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(orig);
11631         return nativeResponseValue;
11632 }
11633         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
11634 /* @internal */
11635 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(a: number, b: number): number {
11636         if(!isWasmInitialized) {
11637                 throw new Error("initializeWasm() must be awaited first!");
11638         }
11639         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(a, b);
11640         return nativeResponseValue;
11641 }
11642         // void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ _res);
11643 /* @internal */
11644 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(_res: number): void {
11645         if(!isWasmInitialized) {
11646                 throw new Error("initializeWasm() must be awaited first!");
11647         }
11648         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(_res);
11649         // debug statements here
11650 }
11651         // void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ _res);
11652 /* @internal */
11653 export function CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(_res: number): void {
11654         if(!isWasmInitialized) {
11655                 throw new Error("initializeWasm() must be awaited first!");
11656         }
11657         const nativeResponseValue = wasm.TS_CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(_res);
11658         // debug statements here
11659 }
11660         // void CVec_BalanceZ_free(struct LDKCVec_BalanceZ _res);
11661 /* @internal */
11662 export function CVec_BalanceZ_free(_res: number): void {
11663         if(!isWasmInitialized) {
11664                 throw new Error("initializeWasm() must be awaited first!");
11665         }
11666         const nativeResponseValue = wasm.TS_CVec_BalanceZ_free(_res);
11667         // debug statements here
11668 }
11669         // uintptr_t C2Tuple_BlockHashChannelMonitorZ_clone_ptr(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR arg);
11670 /* @internal */
11671 export function C2Tuple_BlockHashChannelMonitorZ_clone_ptr(arg: number): number {
11672         if(!isWasmInitialized) {
11673                 throw new Error("initializeWasm() must be awaited first!");
11674         }
11675         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_clone_ptr(arg);
11676         return nativeResponseValue;
11677 }
11678         // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_clone(const struct LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR orig);
11679 /* @internal */
11680 export function C2Tuple_BlockHashChannelMonitorZ_clone(orig: number): number {
11681         if(!isWasmInitialized) {
11682                 throw new Error("initializeWasm() must be awaited first!");
11683         }
11684         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_clone(orig);
11685         return nativeResponseValue;
11686 }
11687         // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
11688 /* @internal */
11689 export function C2Tuple_BlockHashChannelMonitorZ_new(a: number, b: number): number {
11690         if(!isWasmInitialized) {
11691                 throw new Error("initializeWasm() must be awaited first!");
11692         }
11693         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_new(a, b);
11694         return nativeResponseValue;
11695 }
11696         // void C2Tuple_BlockHashChannelMonitorZ_free(struct LDKC2Tuple_BlockHashChannelMonitorZ _res);
11697 /* @internal */
11698 export function C2Tuple_BlockHashChannelMonitorZ_free(_res: number): void {
11699         if(!isWasmInitialized) {
11700                 throw new Error("initializeWasm() must be awaited first!");
11701         }
11702         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_free(_res);
11703         // debug statements here
11704 }
11705         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelMonitorZ o);
11706 /* @internal */
11707 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(o: number): number {
11708         if(!isWasmInitialized) {
11709                 throw new Error("initializeWasm() must be awaited first!");
11710         }
11711         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(o);
11712         return nativeResponseValue;
11713 }
11714         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e);
11715 /* @internal */
11716 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(e: number): number {
11717         if(!isWasmInitialized) {
11718                 throw new Error("initializeWasm() must be awaited first!");
11719         }
11720         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(e);
11721         return nativeResponseValue;
11722 }
11723         // bool CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR o);
11724 /* @internal */
11725 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(o: number): boolean {
11726         if(!isWasmInitialized) {
11727                 throw new Error("initializeWasm() must be awaited first!");
11728         }
11729         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(o);
11730         return nativeResponseValue;
11731 }
11732         // void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ _res);
11733 /* @internal */
11734 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(_res: number): void {
11735         if(!isWasmInitialized) {
11736                 throw new Error("initializeWasm() must be awaited first!");
11737         }
11738         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(_res);
11739         // debug statements here
11740 }
11741         // uintptr_t CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR arg);
11742 /* @internal */
11743 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(arg: number): number {
11744         if(!isWasmInitialized) {
11745                 throw new Error("initializeWasm() must be awaited first!");
11746         }
11747         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(arg);
11748         return nativeResponseValue;
11749 }
11750         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR orig);
11751 /* @internal */
11752 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(orig: number): number {
11753         if(!isWasmInitialized) {
11754                 throw new Error("initializeWasm() must be awaited first!");
11755         }
11756         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(orig);
11757         return nativeResponseValue;
11758 }
11759         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void);
11760 /* @internal */
11761 export function CResult_NoneLightningErrorZ_ok(): number {
11762         if(!isWasmInitialized) {
11763                 throw new Error("initializeWasm() must be awaited first!");
11764         }
11765         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_ok();
11766         return nativeResponseValue;
11767 }
11768         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e);
11769 /* @internal */
11770 export function CResult_NoneLightningErrorZ_err(e: number): number {
11771         if(!isWasmInitialized) {
11772                 throw new Error("initializeWasm() must be awaited first!");
11773         }
11774         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_err(e);
11775         return nativeResponseValue;
11776 }
11777         // bool CResult_NoneLightningErrorZ_is_ok(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR o);
11778 /* @internal */
11779 export function CResult_NoneLightningErrorZ_is_ok(o: number): boolean {
11780         if(!isWasmInitialized) {
11781                 throw new Error("initializeWasm() must be awaited first!");
11782         }
11783         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_is_ok(o);
11784         return nativeResponseValue;
11785 }
11786         // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res);
11787 /* @internal */
11788 export function CResult_NoneLightningErrorZ_free(_res: number): void {
11789         if(!isWasmInitialized) {
11790                 throw new Error("initializeWasm() must be awaited first!");
11791         }
11792         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_free(_res);
11793         // debug statements here
11794 }
11795         // uintptr_t CResult_NoneLightningErrorZ_clone_ptr(LDKCResult_NoneLightningErrorZ *NONNULL_PTR arg);
11796 /* @internal */
11797 export function CResult_NoneLightningErrorZ_clone_ptr(arg: number): number {
11798         if(!isWasmInitialized) {
11799                 throw new Error("initializeWasm() must be awaited first!");
11800         }
11801         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_clone_ptr(arg);
11802         return nativeResponseValue;
11803 }
11804         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_clone(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR orig);
11805 /* @internal */
11806 export function CResult_NoneLightningErrorZ_clone(orig: number): number {
11807         if(!isWasmInitialized) {
11808                 throw new Error("initializeWasm() must be awaited first!");
11809         }
11810         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_clone(orig);
11811         return nativeResponseValue;
11812 }
11813         // uintptr_t C2Tuple_PublicKeyTypeZ_clone_ptr(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR arg);
11814 /* @internal */
11815 export function C2Tuple_PublicKeyTypeZ_clone_ptr(arg: number): number {
11816         if(!isWasmInitialized) {
11817                 throw new Error("initializeWasm() must be awaited first!");
11818         }
11819         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_clone_ptr(arg);
11820         return nativeResponseValue;
11821 }
11822         // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_clone(const struct LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR orig);
11823 /* @internal */
11824 export function C2Tuple_PublicKeyTypeZ_clone(orig: number): number {
11825         if(!isWasmInitialized) {
11826                 throw new Error("initializeWasm() must be awaited first!");
11827         }
11828         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_clone(orig);
11829         return nativeResponseValue;
11830 }
11831         // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_new(struct LDKPublicKey a, struct LDKType b);
11832 /* @internal */
11833 export function C2Tuple_PublicKeyTypeZ_new(a: number, b: number): number {
11834         if(!isWasmInitialized) {
11835                 throw new Error("initializeWasm() must be awaited first!");
11836         }
11837         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_new(a, b);
11838         return nativeResponseValue;
11839 }
11840         // void C2Tuple_PublicKeyTypeZ_free(struct LDKC2Tuple_PublicKeyTypeZ _res);
11841 /* @internal */
11842 export function C2Tuple_PublicKeyTypeZ_free(_res: number): void {
11843         if(!isWasmInitialized) {
11844                 throw new Error("initializeWasm() must be awaited first!");
11845         }
11846         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_free(_res);
11847         // debug statements here
11848 }
11849         // void CVec_C2Tuple_PublicKeyTypeZZ_free(struct LDKCVec_C2Tuple_PublicKeyTypeZZ _res);
11850 /* @internal */
11851 export function CVec_C2Tuple_PublicKeyTypeZZ_free(_res: number): void {
11852         if(!isWasmInitialized) {
11853                 throw new Error("initializeWasm() must be awaited first!");
11854         }
11855         const nativeResponseValue = wasm.TS_CVec_C2Tuple_PublicKeyTypeZZ_free(_res);
11856         // debug statements here
11857 }
11858         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o);
11859 /* @internal */
11860 export function CResult_boolLightningErrorZ_ok(o: boolean): number {
11861         if(!isWasmInitialized) {
11862                 throw new Error("initializeWasm() must be awaited first!");
11863         }
11864         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_ok(o);
11865         return nativeResponseValue;
11866 }
11867         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e);
11868 /* @internal */
11869 export function CResult_boolLightningErrorZ_err(e: number): number {
11870         if(!isWasmInitialized) {
11871                 throw new Error("initializeWasm() must be awaited first!");
11872         }
11873         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_err(e);
11874         return nativeResponseValue;
11875 }
11876         // bool CResult_boolLightningErrorZ_is_ok(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR o);
11877 /* @internal */
11878 export function CResult_boolLightningErrorZ_is_ok(o: number): boolean {
11879         if(!isWasmInitialized) {
11880                 throw new Error("initializeWasm() must be awaited first!");
11881         }
11882         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_is_ok(o);
11883         return nativeResponseValue;
11884 }
11885         // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
11886 /* @internal */
11887 export function CResult_boolLightningErrorZ_free(_res: number): void {
11888         if(!isWasmInitialized) {
11889                 throw new Error("initializeWasm() must be awaited first!");
11890         }
11891         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_free(_res);
11892         // debug statements here
11893 }
11894         // uintptr_t CResult_boolLightningErrorZ_clone_ptr(LDKCResult_boolLightningErrorZ *NONNULL_PTR arg);
11895 /* @internal */
11896 export function CResult_boolLightningErrorZ_clone_ptr(arg: number): number {
11897         if(!isWasmInitialized) {
11898                 throw new Error("initializeWasm() must be awaited first!");
11899         }
11900         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_clone_ptr(arg);
11901         return nativeResponseValue;
11902 }
11903         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_clone(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR orig);
11904 /* @internal */
11905 export function CResult_boolLightningErrorZ_clone(orig: number): number {
11906         if(!isWasmInitialized) {
11907                 throw new Error("initializeWasm() must be awaited first!");
11908         }
11909         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_clone(orig);
11910         return nativeResponseValue;
11911 }
11912         // uintptr_t C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR arg);
11913 /* @internal */
11914 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(arg: number): number {
11915         if(!isWasmInitialized) {
11916                 throw new Error("initializeWasm() must be awaited first!");
11917         }
11918         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(arg);
11919         return nativeResponseValue;
11920 }
11921         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig);
11922 /* @internal */
11923 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(orig: number): number {
11924         if(!isWasmInitialized) {
11925                 throw new Error("initializeWasm() must be awaited first!");
11926         }
11927         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(orig);
11928         return nativeResponseValue;
11929 }
11930         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
11931 /* @internal */
11932 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(a: number, b: number, c: number): number {
11933         if(!isWasmInitialized) {
11934                 throw new Error("initializeWasm() must be awaited first!");
11935         }
11936         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(a, b, c);
11937         return nativeResponseValue;
11938 }
11939         // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
11940 /* @internal */
11941 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(_res: number): void {
11942         if(!isWasmInitialized) {
11943                 throw new Error("initializeWasm() must be awaited first!");
11944         }
11945         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(_res);
11946         // debug statements here
11947 }
11948         // void CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
11949 /* @internal */
11950 export function CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(_res: number): void {
11951         if(!isWasmInitialized) {
11952                 throw new Error("initializeWasm() must be awaited first!");
11953         }
11954         const nativeResponseValue = wasm.TS_CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(_res);
11955         // debug statements here
11956 }
11957         // void CVec_NodeAnnouncementZ_free(struct LDKCVec_NodeAnnouncementZ _res);
11958 /* @internal */
11959 export function CVec_NodeAnnouncementZ_free(_res: number): void {
11960         if(!isWasmInitialized) {
11961                 throw new Error("initializeWasm() must be awaited first!");
11962         }
11963         const nativeResponseValue = wasm.TS_CVec_NodeAnnouncementZ_free(_res);
11964         // debug statements here
11965 }
11966         // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res);
11967 /* @internal */
11968 export function CVec_PublicKeyZ_free(_res: number): void {
11969         if(!isWasmInitialized) {
11970                 throw new Error("initializeWasm() must be awaited first!");
11971         }
11972         const nativeResponseValue = wasm.TS_CVec_PublicKeyZ_free(_res);
11973         // debug statements here
11974 }
11975         // struct LDKCOption_NetAddressZ COption_NetAddressZ_some(struct LDKNetAddress o);
11976 /* @internal */
11977 export function COption_NetAddressZ_some(o: number): number {
11978         if(!isWasmInitialized) {
11979                 throw new Error("initializeWasm() must be awaited first!");
11980         }
11981         const nativeResponseValue = wasm.TS_COption_NetAddressZ_some(o);
11982         return nativeResponseValue;
11983 }
11984         // struct LDKCOption_NetAddressZ COption_NetAddressZ_none(void);
11985 /* @internal */
11986 export function COption_NetAddressZ_none(): number {
11987         if(!isWasmInitialized) {
11988                 throw new Error("initializeWasm() must be awaited first!");
11989         }
11990         const nativeResponseValue = wasm.TS_COption_NetAddressZ_none();
11991         return nativeResponseValue;
11992 }
11993         // void COption_NetAddressZ_free(struct LDKCOption_NetAddressZ _res);
11994 /* @internal */
11995 export function COption_NetAddressZ_free(_res: number): void {
11996         if(!isWasmInitialized) {
11997                 throw new Error("initializeWasm() must be awaited first!");
11998         }
11999         const nativeResponseValue = wasm.TS_COption_NetAddressZ_free(_res);
12000         // debug statements here
12001 }
12002         // uintptr_t COption_NetAddressZ_clone_ptr(LDKCOption_NetAddressZ *NONNULL_PTR arg);
12003 /* @internal */
12004 export function COption_NetAddressZ_clone_ptr(arg: number): number {
12005         if(!isWasmInitialized) {
12006                 throw new Error("initializeWasm() must be awaited first!");
12007         }
12008         const nativeResponseValue = wasm.TS_COption_NetAddressZ_clone_ptr(arg);
12009         return nativeResponseValue;
12010 }
12011         // struct LDKCOption_NetAddressZ COption_NetAddressZ_clone(const struct LDKCOption_NetAddressZ *NONNULL_PTR orig);
12012 /* @internal */
12013 export function COption_NetAddressZ_clone(orig: number): number {
12014         if(!isWasmInitialized) {
12015                 throw new Error("initializeWasm() must be awaited first!");
12016         }
12017         const nativeResponseValue = wasm.TS_COption_NetAddressZ_clone(orig);
12018         return nativeResponseValue;
12019 }
12020         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o);
12021 /* @internal */
12022 export function CResult_CVec_u8ZPeerHandleErrorZ_ok(o: number): number {
12023         if(!isWasmInitialized) {
12024                 throw new Error("initializeWasm() must be awaited first!");
12025         }
12026         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_ok(o);
12027         return nativeResponseValue;
12028 }
12029         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e);
12030 /* @internal */
12031 export function CResult_CVec_u8ZPeerHandleErrorZ_err(e: number): number {
12032         if(!isWasmInitialized) {
12033                 throw new Error("initializeWasm() must be awaited first!");
12034         }
12035         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_err(e);
12036         return nativeResponseValue;
12037 }
12038         // bool CResult_CVec_u8ZPeerHandleErrorZ_is_ok(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR o);
12039 /* @internal */
12040 export function CResult_CVec_u8ZPeerHandleErrorZ_is_ok(o: number): boolean {
12041         if(!isWasmInitialized) {
12042                 throw new Error("initializeWasm() must be awaited first!");
12043         }
12044         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_is_ok(o);
12045         return nativeResponseValue;
12046 }
12047         // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res);
12048 /* @internal */
12049 export function CResult_CVec_u8ZPeerHandleErrorZ_free(_res: number): void {
12050         if(!isWasmInitialized) {
12051                 throw new Error("initializeWasm() must be awaited first!");
12052         }
12053         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_free(_res);
12054         // debug statements here
12055 }
12056         // uintptr_t CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR arg);
12057 /* @internal */
12058 export function CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(arg: number): number {
12059         if(!isWasmInitialized) {
12060                 throw new Error("initializeWasm() must be awaited first!");
12061         }
12062         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(arg);
12063         return nativeResponseValue;
12064 }
12065         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_clone(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR orig);
12066 /* @internal */
12067 export function CResult_CVec_u8ZPeerHandleErrorZ_clone(orig: number): number {
12068         if(!isWasmInitialized) {
12069                 throw new Error("initializeWasm() must be awaited first!");
12070         }
12071         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_clone(orig);
12072         return nativeResponseValue;
12073 }
12074         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
12075 /* @internal */
12076 export function CResult_NonePeerHandleErrorZ_ok(): number {
12077         if(!isWasmInitialized) {
12078                 throw new Error("initializeWasm() must be awaited first!");
12079         }
12080         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_ok();
12081         return nativeResponseValue;
12082 }
12083         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e);
12084 /* @internal */
12085 export function CResult_NonePeerHandleErrorZ_err(e: number): number {
12086         if(!isWasmInitialized) {
12087                 throw new Error("initializeWasm() must be awaited first!");
12088         }
12089         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_err(e);
12090         return nativeResponseValue;
12091 }
12092         // bool CResult_NonePeerHandleErrorZ_is_ok(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR o);
12093 /* @internal */
12094 export function CResult_NonePeerHandleErrorZ_is_ok(o: number): boolean {
12095         if(!isWasmInitialized) {
12096                 throw new Error("initializeWasm() must be awaited first!");
12097         }
12098         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_is_ok(o);
12099         return nativeResponseValue;
12100 }
12101         // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res);
12102 /* @internal */
12103 export function CResult_NonePeerHandleErrorZ_free(_res: number): void {
12104         if(!isWasmInitialized) {
12105                 throw new Error("initializeWasm() must be awaited first!");
12106         }
12107         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_free(_res);
12108         // debug statements here
12109 }
12110         // uintptr_t CResult_NonePeerHandleErrorZ_clone_ptr(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR arg);
12111 /* @internal */
12112 export function CResult_NonePeerHandleErrorZ_clone_ptr(arg: number): number {
12113         if(!isWasmInitialized) {
12114                 throw new Error("initializeWasm() must be awaited first!");
12115         }
12116         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_clone_ptr(arg);
12117         return nativeResponseValue;
12118 }
12119         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_clone(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR orig);
12120 /* @internal */
12121 export function CResult_NonePeerHandleErrorZ_clone(orig: number): number {
12122         if(!isWasmInitialized) {
12123                 throw new Error("initializeWasm() must be awaited first!");
12124         }
12125         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_clone(orig);
12126         return nativeResponseValue;
12127 }
12128         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o);
12129 /* @internal */
12130 export function CResult_boolPeerHandleErrorZ_ok(o: boolean): number {
12131         if(!isWasmInitialized) {
12132                 throw new Error("initializeWasm() must be awaited first!");
12133         }
12134         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_ok(o);
12135         return nativeResponseValue;
12136 }
12137         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e);
12138 /* @internal */
12139 export function CResult_boolPeerHandleErrorZ_err(e: number): number {
12140         if(!isWasmInitialized) {
12141                 throw new Error("initializeWasm() must be awaited first!");
12142         }
12143         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_err(e);
12144         return nativeResponseValue;
12145 }
12146         // bool CResult_boolPeerHandleErrorZ_is_ok(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR o);
12147 /* @internal */
12148 export function CResult_boolPeerHandleErrorZ_is_ok(o: number): boolean {
12149         if(!isWasmInitialized) {
12150                 throw new Error("initializeWasm() must be awaited first!");
12151         }
12152         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_is_ok(o);
12153         return nativeResponseValue;
12154 }
12155         // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res);
12156 /* @internal */
12157 export function CResult_boolPeerHandleErrorZ_free(_res: number): void {
12158         if(!isWasmInitialized) {
12159                 throw new Error("initializeWasm() must be awaited first!");
12160         }
12161         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_free(_res);
12162         // debug statements here
12163 }
12164         // uintptr_t CResult_boolPeerHandleErrorZ_clone_ptr(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR arg);
12165 /* @internal */
12166 export function CResult_boolPeerHandleErrorZ_clone_ptr(arg: number): number {
12167         if(!isWasmInitialized) {
12168                 throw new Error("initializeWasm() must be awaited first!");
12169         }
12170         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_clone_ptr(arg);
12171         return nativeResponseValue;
12172 }
12173         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_clone(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR orig);
12174 /* @internal */
12175 export function CResult_boolPeerHandleErrorZ_clone(orig: number): number {
12176         if(!isWasmInitialized) {
12177                 throw new Error("initializeWasm() must be awaited first!");
12178         }
12179         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_clone(orig);
12180         return nativeResponseValue;
12181 }
12182         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_ok(struct LDKNodeId o);
12183 /* @internal */
12184 export function CResult_NodeIdDecodeErrorZ_ok(o: number): number {
12185         if(!isWasmInitialized) {
12186                 throw new Error("initializeWasm() must be awaited first!");
12187         }
12188         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_ok(o);
12189         return nativeResponseValue;
12190 }
12191         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_err(struct LDKDecodeError e);
12192 /* @internal */
12193 export function CResult_NodeIdDecodeErrorZ_err(e: number): number {
12194         if(!isWasmInitialized) {
12195                 throw new Error("initializeWasm() must be awaited first!");
12196         }
12197         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_err(e);
12198         return nativeResponseValue;
12199 }
12200         // bool CResult_NodeIdDecodeErrorZ_is_ok(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR o);
12201 /* @internal */
12202 export function CResult_NodeIdDecodeErrorZ_is_ok(o: number): boolean {
12203         if(!isWasmInitialized) {
12204                 throw new Error("initializeWasm() must be awaited first!");
12205         }
12206         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_is_ok(o);
12207         return nativeResponseValue;
12208 }
12209         // void CResult_NodeIdDecodeErrorZ_free(struct LDKCResult_NodeIdDecodeErrorZ _res);
12210 /* @internal */
12211 export function CResult_NodeIdDecodeErrorZ_free(_res: number): void {
12212         if(!isWasmInitialized) {
12213                 throw new Error("initializeWasm() must be awaited first!");
12214         }
12215         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_free(_res);
12216         // debug statements here
12217 }
12218         // uintptr_t CResult_NodeIdDecodeErrorZ_clone_ptr(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR arg);
12219 /* @internal */
12220 export function CResult_NodeIdDecodeErrorZ_clone_ptr(arg: number): number {
12221         if(!isWasmInitialized) {
12222                 throw new Error("initializeWasm() must be awaited first!");
12223         }
12224         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_clone_ptr(arg);
12225         return nativeResponseValue;
12226 }
12227         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_clone(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR orig);
12228 /* @internal */
12229 export function CResult_NodeIdDecodeErrorZ_clone(orig: number): number {
12230         if(!isWasmInitialized) {
12231                 throw new Error("initializeWasm() must be awaited first!");
12232         }
12233         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_clone(orig);
12234         return nativeResponseValue;
12235 }
12236         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_ok(struct LDKCOption_NetworkUpdateZ o);
12237 /* @internal */
12238 export function CResult_COption_NetworkUpdateZDecodeErrorZ_ok(o: number): number {
12239         if(!isWasmInitialized) {
12240                 throw new Error("initializeWasm() must be awaited first!");
12241         }
12242         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_ok(o);
12243         return nativeResponseValue;
12244 }
12245         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_err(struct LDKDecodeError e);
12246 /* @internal */
12247 export function CResult_COption_NetworkUpdateZDecodeErrorZ_err(e: number): number {
12248         if(!isWasmInitialized) {
12249                 throw new Error("initializeWasm() must be awaited first!");
12250         }
12251         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_err(e);
12252         return nativeResponseValue;
12253 }
12254         // bool CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR o);
12255 /* @internal */
12256 export function CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(o: number): boolean {
12257         if(!isWasmInitialized) {
12258                 throw new Error("initializeWasm() must be awaited first!");
12259         }
12260         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(o);
12261         return nativeResponseValue;
12262 }
12263         // void CResult_COption_NetworkUpdateZDecodeErrorZ_free(struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ _res);
12264 /* @internal */
12265 export function CResult_COption_NetworkUpdateZDecodeErrorZ_free(_res: number): void {
12266         if(!isWasmInitialized) {
12267                 throw new Error("initializeWasm() must be awaited first!");
12268         }
12269         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_free(_res);
12270         // debug statements here
12271 }
12272         // uintptr_t CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR arg);
12273 /* @internal */
12274 export function CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(arg: number): number {
12275         if(!isWasmInitialized) {
12276                 throw new Error("initializeWasm() must be awaited first!");
12277         }
12278         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(arg);
12279         return nativeResponseValue;
12280 }
12281         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_clone(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR orig);
12282 /* @internal */
12283 export function CResult_COption_NetworkUpdateZDecodeErrorZ_clone(orig: number): number {
12284         if(!isWasmInitialized) {
12285                 throw new Error("initializeWasm() must be awaited first!");
12286         }
12287         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_clone(orig);
12288         return nativeResponseValue;
12289 }
12290         // struct LDKCOption_AccessZ COption_AccessZ_some(struct LDKAccess o);
12291 /* @internal */
12292 export function COption_AccessZ_some(o: number): number {
12293         if(!isWasmInitialized) {
12294                 throw new Error("initializeWasm() must be awaited first!");
12295         }
12296         const nativeResponseValue = wasm.TS_COption_AccessZ_some(o);
12297         return nativeResponseValue;
12298 }
12299         // struct LDKCOption_AccessZ COption_AccessZ_none(void);
12300 /* @internal */
12301 export function COption_AccessZ_none(): number {
12302         if(!isWasmInitialized) {
12303                 throw new Error("initializeWasm() must be awaited first!");
12304         }
12305         const nativeResponseValue = wasm.TS_COption_AccessZ_none();
12306         return nativeResponseValue;
12307 }
12308         // void COption_AccessZ_free(struct LDKCOption_AccessZ _res);
12309 /* @internal */
12310 export function COption_AccessZ_free(_res: number): void {
12311         if(!isWasmInitialized) {
12312                 throw new Error("initializeWasm() must be awaited first!");
12313         }
12314         const nativeResponseValue = wasm.TS_COption_AccessZ_free(_res);
12315         // debug statements here
12316 }
12317         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_ok(struct LDKChannelUpdateInfo o);
12318 /* @internal */
12319 export function CResult_ChannelUpdateInfoDecodeErrorZ_ok(o: number): number {
12320         if(!isWasmInitialized) {
12321                 throw new Error("initializeWasm() must be awaited first!");
12322         }
12323         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_ok(o);
12324         return nativeResponseValue;
12325 }
12326         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_err(struct LDKDecodeError e);
12327 /* @internal */
12328 export function CResult_ChannelUpdateInfoDecodeErrorZ_err(e: number): number {
12329         if(!isWasmInitialized) {
12330                 throw new Error("initializeWasm() must be awaited first!");
12331         }
12332         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_err(e);
12333         return nativeResponseValue;
12334 }
12335         // bool CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR o);
12336 /* @internal */
12337 export function CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(o: number): boolean {
12338         if(!isWasmInitialized) {
12339                 throw new Error("initializeWasm() must be awaited first!");
12340         }
12341         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(o);
12342         return nativeResponseValue;
12343 }
12344         // void CResult_ChannelUpdateInfoDecodeErrorZ_free(struct LDKCResult_ChannelUpdateInfoDecodeErrorZ _res);
12345 /* @internal */
12346 export function CResult_ChannelUpdateInfoDecodeErrorZ_free(_res: number): void {
12347         if(!isWasmInitialized) {
12348                 throw new Error("initializeWasm() must be awaited first!");
12349         }
12350         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_free(_res);
12351         // debug statements here
12352 }
12353         // uintptr_t CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR arg);
12354 /* @internal */
12355 export function CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(arg: number): number {
12356         if(!isWasmInitialized) {
12357                 throw new Error("initializeWasm() must be awaited first!");
12358         }
12359         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(arg);
12360         return nativeResponseValue;
12361 }
12362         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR orig);
12363 /* @internal */
12364 export function CResult_ChannelUpdateInfoDecodeErrorZ_clone(orig: number): number {
12365         if(!isWasmInitialized) {
12366                 throw new Error("initializeWasm() must be awaited first!");
12367         }
12368         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_clone(orig);
12369         return nativeResponseValue;
12370 }
12371         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_ok(struct LDKChannelInfo o);
12372 /* @internal */
12373 export function CResult_ChannelInfoDecodeErrorZ_ok(o: number): number {
12374         if(!isWasmInitialized) {
12375                 throw new Error("initializeWasm() must be awaited first!");
12376         }
12377         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_ok(o);
12378         return nativeResponseValue;
12379 }
12380         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
12381 /* @internal */
12382 export function CResult_ChannelInfoDecodeErrorZ_err(e: number): number {
12383         if(!isWasmInitialized) {
12384                 throw new Error("initializeWasm() must be awaited first!");
12385         }
12386         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_err(e);
12387         return nativeResponseValue;
12388 }
12389         // bool CResult_ChannelInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR o);
12390 /* @internal */
12391 export function CResult_ChannelInfoDecodeErrorZ_is_ok(o: number): boolean {
12392         if(!isWasmInitialized) {
12393                 throw new Error("initializeWasm() must be awaited first!");
12394         }
12395         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_is_ok(o);
12396         return nativeResponseValue;
12397 }
12398         // void CResult_ChannelInfoDecodeErrorZ_free(struct LDKCResult_ChannelInfoDecodeErrorZ _res);
12399 /* @internal */
12400 export function CResult_ChannelInfoDecodeErrorZ_free(_res: number): void {
12401         if(!isWasmInitialized) {
12402                 throw new Error("initializeWasm() must be awaited first!");
12403         }
12404         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_free(_res);
12405         // debug statements here
12406 }
12407         // uintptr_t CResult_ChannelInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR arg);
12408 /* @internal */
12409 export function CResult_ChannelInfoDecodeErrorZ_clone_ptr(arg: number): number {
12410         if(!isWasmInitialized) {
12411                 throw new Error("initializeWasm() must be awaited first!");
12412         }
12413         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_clone_ptr(arg);
12414         return nativeResponseValue;
12415 }
12416         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR orig);
12417 /* @internal */
12418 export function CResult_ChannelInfoDecodeErrorZ_clone(orig: number): number {
12419         if(!isWasmInitialized) {
12420                 throw new Error("initializeWasm() must be awaited first!");
12421         }
12422         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_clone(orig);
12423         return nativeResponseValue;
12424 }
12425         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o);
12426 /* @internal */
12427 export function CResult_RoutingFeesDecodeErrorZ_ok(o: number): number {
12428         if(!isWasmInitialized) {
12429                 throw new Error("initializeWasm() must be awaited first!");
12430         }
12431         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_ok(o);
12432         return nativeResponseValue;
12433 }
12434         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e);
12435 /* @internal */
12436 export function CResult_RoutingFeesDecodeErrorZ_err(e: number): number {
12437         if(!isWasmInitialized) {
12438                 throw new Error("initializeWasm() must be awaited first!");
12439         }
12440         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_err(e);
12441         return nativeResponseValue;
12442 }
12443         // bool CResult_RoutingFeesDecodeErrorZ_is_ok(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR o);
12444 /* @internal */
12445 export function CResult_RoutingFeesDecodeErrorZ_is_ok(o: number): boolean {
12446         if(!isWasmInitialized) {
12447                 throw new Error("initializeWasm() must be awaited first!");
12448         }
12449         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_is_ok(o);
12450         return nativeResponseValue;
12451 }
12452         // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res);
12453 /* @internal */
12454 export function CResult_RoutingFeesDecodeErrorZ_free(_res: number): void {
12455         if(!isWasmInitialized) {
12456                 throw new Error("initializeWasm() must be awaited first!");
12457         }
12458         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_free(_res);
12459         // debug statements here
12460 }
12461         // uintptr_t CResult_RoutingFeesDecodeErrorZ_clone_ptr(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR arg);
12462 /* @internal */
12463 export function CResult_RoutingFeesDecodeErrorZ_clone_ptr(arg: number): number {
12464         if(!isWasmInitialized) {
12465                 throw new Error("initializeWasm() must be awaited first!");
12466         }
12467         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_clone_ptr(arg);
12468         return nativeResponseValue;
12469 }
12470         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR orig);
12471 /* @internal */
12472 export function CResult_RoutingFeesDecodeErrorZ_clone(orig: number): number {
12473         if(!isWasmInitialized) {
12474                 throw new Error("initializeWasm() must be awaited first!");
12475         }
12476         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_clone(orig);
12477         return nativeResponseValue;
12478 }
12479         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o);
12480 /* @internal */
12481 export function CResult_NodeAnnouncementInfoDecodeErrorZ_ok(o: number): number {
12482         if(!isWasmInitialized) {
12483                 throw new Error("initializeWasm() must be awaited first!");
12484         }
12485         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_ok(o);
12486         return nativeResponseValue;
12487 }
12488         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e);
12489 /* @internal */
12490 export function CResult_NodeAnnouncementInfoDecodeErrorZ_err(e: number): number {
12491         if(!isWasmInitialized) {
12492                 throw new Error("initializeWasm() must be awaited first!");
12493         }
12494         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_err(e);
12495         return nativeResponseValue;
12496 }
12497         // bool CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR o);
12498 /* @internal */
12499 export function CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(o: number): boolean {
12500         if(!isWasmInitialized) {
12501                 throw new Error("initializeWasm() must be awaited first!");
12502         }
12503         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(o);
12504         return nativeResponseValue;
12505 }
12506         // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res);
12507 /* @internal */
12508 export function CResult_NodeAnnouncementInfoDecodeErrorZ_free(_res: number): void {
12509         if(!isWasmInitialized) {
12510                 throw new Error("initializeWasm() must be awaited first!");
12511         }
12512         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_free(_res);
12513         // debug statements here
12514 }
12515         // uintptr_t CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR arg);
12516 /* @internal */
12517 export function CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(arg: number): number {
12518         if(!isWasmInitialized) {
12519                 throw new Error("initializeWasm() must be awaited first!");
12520         }
12521         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(arg);
12522         return nativeResponseValue;
12523 }
12524         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR orig);
12525 /* @internal */
12526 export function CResult_NodeAnnouncementInfoDecodeErrorZ_clone(orig: number): number {
12527         if(!isWasmInitialized) {
12528                 throw new Error("initializeWasm() must be awaited first!");
12529         }
12530         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_clone(orig);
12531         return nativeResponseValue;
12532 }
12533         // void CVec_u64Z_free(struct LDKCVec_u64Z _res);
12534 /* @internal */
12535 export function CVec_u64Z_free(_res: number): void {
12536         if(!isWasmInitialized) {
12537                 throw new Error("initializeWasm() must be awaited first!");
12538         }
12539         const nativeResponseValue = wasm.TS_CVec_u64Z_free(_res);
12540         // debug statements here
12541 }
12542         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o);
12543 /* @internal */
12544 export function CResult_NodeInfoDecodeErrorZ_ok(o: number): number {
12545         if(!isWasmInitialized) {
12546                 throw new Error("initializeWasm() must be awaited first!");
12547         }
12548         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_ok(o);
12549         return nativeResponseValue;
12550 }
12551         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e);
12552 /* @internal */
12553 export function CResult_NodeInfoDecodeErrorZ_err(e: number): number {
12554         if(!isWasmInitialized) {
12555                 throw new Error("initializeWasm() must be awaited first!");
12556         }
12557         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_err(e);
12558         return nativeResponseValue;
12559 }
12560         // bool CResult_NodeInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR o);
12561 /* @internal */
12562 export function CResult_NodeInfoDecodeErrorZ_is_ok(o: number): boolean {
12563         if(!isWasmInitialized) {
12564                 throw new Error("initializeWasm() must be awaited first!");
12565         }
12566         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_is_ok(o);
12567         return nativeResponseValue;
12568 }
12569         // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res);
12570 /* @internal */
12571 export function CResult_NodeInfoDecodeErrorZ_free(_res: number): void {
12572         if(!isWasmInitialized) {
12573                 throw new Error("initializeWasm() must be awaited first!");
12574         }
12575         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_free(_res);
12576         // debug statements here
12577 }
12578         // uintptr_t CResult_NodeInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR arg);
12579 /* @internal */
12580 export function CResult_NodeInfoDecodeErrorZ_clone_ptr(arg: number): number {
12581         if(!isWasmInitialized) {
12582                 throw new Error("initializeWasm() must be awaited first!");
12583         }
12584         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_clone_ptr(arg);
12585         return nativeResponseValue;
12586 }
12587         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_clone(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR orig);
12588 /* @internal */
12589 export function CResult_NodeInfoDecodeErrorZ_clone(orig: number): number {
12590         if(!isWasmInitialized) {
12591                 throw new Error("initializeWasm() must be awaited first!");
12592         }
12593         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_clone(orig);
12594         return nativeResponseValue;
12595 }
12596         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o);
12597 /* @internal */
12598 export function CResult_NetworkGraphDecodeErrorZ_ok(o: number): number {
12599         if(!isWasmInitialized) {
12600                 throw new Error("initializeWasm() must be awaited first!");
12601         }
12602         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_ok(o);
12603         return nativeResponseValue;
12604 }
12605         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e);
12606 /* @internal */
12607 export function CResult_NetworkGraphDecodeErrorZ_err(e: number): number {
12608         if(!isWasmInitialized) {
12609                 throw new Error("initializeWasm() must be awaited first!");
12610         }
12611         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_err(e);
12612         return nativeResponseValue;
12613 }
12614         // bool CResult_NetworkGraphDecodeErrorZ_is_ok(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR o);
12615 /* @internal */
12616 export function CResult_NetworkGraphDecodeErrorZ_is_ok(o: number): boolean {
12617         if(!isWasmInitialized) {
12618                 throw new Error("initializeWasm() must be awaited first!");
12619         }
12620         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_is_ok(o);
12621         return nativeResponseValue;
12622 }
12623         // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res);
12624 /* @internal */
12625 export function CResult_NetworkGraphDecodeErrorZ_free(_res: number): void {
12626         if(!isWasmInitialized) {
12627                 throw new Error("initializeWasm() must be awaited first!");
12628         }
12629         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_free(_res);
12630         // debug statements here
12631 }
12632         // uintptr_t CResult_NetworkGraphDecodeErrorZ_clone_ptr(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR arg);
12633 /* @internal */
12634 export function CResult_NetworkGraphDecodeErrorZ_clone_ptr(arg: number): number {
12635         if(!isWasmInitialized) {
12636                 throw new Error("initializeWasm() must be awaited first!");
12637         }
12638         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_clone_ptr(arg);
12639         return nativeResponseValue;
12640 }
12641         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_clone(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR orig);
12642 /* @internal */
12643 export function CResult_NetworkGraphDecodeErrorZ_clone(orig: number): number {
12644         if(!isWasmInitialized) {
12645                 throw new Error("initializeWasm() must be awaited first!");
12646         }
12647         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_clone(orig);
12648         return nativeResponseValue;
12649 }
12650         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_some(struct LDKCVec_NetAddressZ o);
12651 /* @internal */
12652 export function COption_CVec_NetAddressZZ_some(o: number): number {
12653         if(!isWasmInitialized) {
12654                 throw new Error("initializeWasm() must be awaited first!");
12655         }
12656         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_some(o);
12657         return nativeResponseValue;
12658 }
12659         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_none(void);
12660 /* @internal */
12661 export function COption_CVec_NetAddressZZ_none(): number {
12662         if(!isWasmInitialized) {
12663                 throw new Error("initializeWasm() must be awaited first!");
12664         }
12665         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_none();
12666         return nativeResponseValue;
12667 }
12668         // void COption_CVec_NetAddressZZ_free(struct LDKCOption_CVec_NetAddressZZ _res);
12669 /* @internal */
12670 export function COption_CVec_NetAddressZZ_free(_res: number): void {
12671         if(!isWasmInitialized) {
12672                 throw new Error("initializeWasm() must be awaited first!");
12673         }
12674         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_free(_res);
12675         // debug statements here
12676 }
12677         // uintptr_t COption_CVec_NetAddressZZ_clone_ptr(LDKCOption_CVec_NetAddressZZ *NONNULL_PTR arg);
12678 /* @internal */
12679 export function COption_CVec_NetAddressZZ_clone_ptr(arg: number): number {
12680         if(!isWasmInitialized) {
12681                 throw new Error("initializeWasm() must be awaited first!");
12682         }
12683         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_clone_ptr(arg);
12684         return nativeResponseValue;
12685 }
12686         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_clone(const struct LDKCOption_CVec_NetAddressZZ *NONNULL_PTR orig);
12687 /* @internal */
12688 export function COption_CVec_NetAddressZZ_clone(orig: number): number {
12689         if(!isWasmInitialized) {
12690                 throw new Error("initializeWasm() must be awaited first!");
12691         }
12692         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_clone(orig);
12693         return nativeResponseValue;
12694 }
12695         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_ok(struct LDKNetAddress o);
12696 /* @internal */
12697 export function CResult_NetAddressDecodeErrorZ_ok(o: number): number {
12698         if(!isWasmInitialized) {
12699                 throw new Error("initializeWasm() must be awaited first!");
12700         }
12701         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_ok(o);
12702         return nativeResponseValue;
12703 }
12704         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_err(struct LDKDecodeError e);
12705 /* @internal */
12706 export function CResult_NetAddressDecodeErrorZ_err(e: number): number {
12707         if(!isWasmInitialized) {
12708                 throw new Error("initializeWasm() must be awaited first!");
12709         }
12710         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_err(e);
12711         return nativeResponseValue;
12712 }
12713         // bool CResult_NetAddressDecodeErrorZ_is_ok(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR o);
12714 /* @internal */
12715 export function CResult_NetAddressDecodeErrorZ_is_ok(o: number): boolean {
12716         if(!isWasmInitialized) {
12717                 throw new Error("initializeWasm() must be awaited first!");
12718         }
12719         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_is_ok(o);
12720         return nativeResponseValue;
12721 }
12722         // void CResult_NetAddressDecodeErrorZ_free(struct LDKCResult_NetAddressDecodeErrorZ _res);
12723 /* @internal */
12724 export function CResult_NetAddressDecodeErrorZ_free(_res: number): void {
12725         if(!isWasmInitialized) {
12726                 throw new Error("initializeWasm() must be awaited first!");
12727         }
12728         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_free(_res);
12729         // debug statements here
12730 }
12731         // uintptr_t CResult_NetAddressDecodeErrorZ_clone_ptr(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR arg);
12732 /* @internal */
12733 export function CResult_NetAddressDecodeErrorZ_clone_ptr(arg: number): number {
12734         if(!isWasmInitialized) {
12735                 throw new Error("initializeWasm() must be awaited first!");
12736         }
12737         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_clone_ptr(arg);
12738         return nativeResponseValue;
12739 }
12740         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_clone(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR orig);
12741 /* @internal */
12742 export function CResult_NetAddressDecodeErrorZ_clone(orig: number): number {
12743         if(!isWasmInitialized) {
12744                 throw new Error("initializeWasm() must be awaited first!");
12745         }
12746         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_clone(orig);
12747         return nativeResponseValue;
12748 }
12749         // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res);
12750 /* @internal */
12751 export function CVec_UpdateAddHTLCZ_free(_res: number): void {
12752         if(!isWasmInitialized) {
12753                 throw new Error("initializeWasm() must be awaited first!");
12754         }
12755         const nativeResponseValue = wasm.TS_CVec_UpdateAddHTLCZ_free(_res);
12756         // debug statements here
12757 }
12758         // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res);
12759 /* @internal */
12760 export function CVec_UpdateFulfillHTLCZ_free(_res: number): void {
12761         if(!isWasmInitialized) {
12762                 throw new Error("initializeWasm() must be awaited first!");
12763         }
12764         const nativeResponseValue = wasm.TS_CVec_UpdateFulfillHTLCZ_free(_res);
12765         // debug statements here
12766 }
12767         // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res);
12768 /* @internal */
12769 export function CVec_UpdateFailHTLCZ_free(_res: number): void {
12770         if(!isWasmInitialized) {
12771                 throw new Error("initializeWasm() must be awaited first!");
12772         }
12773         const nativeResponseValue = wasm.TS_CVec_UpdateFailHTLCZ_free(_res);
12774         // debug statements here
12775 }
12776         // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res);
12777 /* @internal */
12778 export function CVec_UpdateFailMalformedHTLCZ_free(_res: number): void {
12779         if(!isWasmInitialized) {
12780                 throw new Error("initializeWasm() must be awaited first!");
12781         }
12782         const nativeResponseValue = wasm.TS_CVec_UpdateFailMalformedHTLCZ_free(_res);
12783         // debug statements here
12784 }
12785         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_ok(struct LDKAcceptChannel o);
12786 /* @internal */
12787 export function CResult_AcceptChannelDecodeErrorZ_ok(o: number): number {
12788         if(!isWasmInitialized) {
12789                 throw new Error("initializeWasm() must be awaited first!");
12790         }
12791         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_ok(o);
12792         return nativeResponseValue;
12793 }
12794         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_err(struct LDKDecodeError e);
12795 /* @internal */
12796 export function CResult_AcceptChannelDecodeErrorZ_err(e: number): number {
12797         if(!isWasmInitialized) {
12798                 throw new Error("initializeWasm() must be awaited first!");
12799         }
12800         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_err(e);
12801         return nativeResponseValue;
12802 }
12803         // bool CResult_AcceptChannelDecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR o);
12804 /* @internal */
12805 export function CResult_AcceptChannelDecodeErrorZ_is_ok(o: number): boolean {
12806         if(!isWasmInitialized) {
12807                 throw new Error("initializeWasm() must be awaited first!");
12808         }
12809         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_is_ok(o);
12810         return nativeResponseValue;
12811 }
12812         // void CResult_AcceptChannelDecodeErrorZ_free(struct LDKCResult_AcceptChannelDecodeErrorZ _res);
12813 /* @internal */
12814 export function CResult_AcceptChannelDecodeErrorZ_free(_res: number): void {
12815         if(!isWasmInitialized) {
12816                 throw new Error("initializeWasm() must be awaited first!");
12817         }
12818         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_free(_res);
12819         // debug statements here
12820 }
12821         // uintptr_t CResult_AcceptChannelDecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR arg);
12822 /* @internal */
12823 export function CResult_AcceptChannelDecodeErrorZ_clone_ptr(arg: number): number {
12824         if(!isWasmInitialized) {
12825                 throw new Error("initializeWasm() must be awaited first!");
12826         }
12827         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_clone_ptr(arg);
12828         return nativeResponseValue;
12829 }
12830         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_clone(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR orig);
12831 /* @internal */
12832 export function CResult_AcceptChannelDecodeErrorZ_clone(orig: number): number {
12833         if(!isWasmInitialized) {
12834                 throw new Error("initializeWasm() must be awaited first!");
12835         }
12836         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_clone(orig);
12837         return nativeResponseValue;
12838 }
12839         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_ok(struct LDKAnnouncementSignatures o);
12840 /* @internal */
12841 export function CResult_AnnouncementSignaturesDecodeErrorZ_ok(o: number): number {
12842         if(!isWasmInitialized) {
12843                 throw new Error("initializeWasm() must be awaited first!");
12844         }
12845         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_ok(o);
12846         return nativeResponseValue;
12847 }
12848         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
12849 /* @internal */
12850 export function CResult_AnnouncementSignaturesDecodeErrorZ_err(e: number): number {
12851         if(!isWasmInitialized) {
12852                 throw new Error("initializeWasm() must be awaited first!");
12853         }
12854         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_err(e);
12855         return nativeResponseValue;
12856 }
12857         // bool CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR o);
12858 /* @internal */
12859 export function CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(o: number): boolean {
12860         if(!isWasmInitialized) {
12861                 throw new Error("initializeWasm() must be awaited first!");
12862         }
12863         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(o);
12864         return nativeResponseValue;
12865 }
12866         // void CResult_AnnouncementSignaturesDecodeErrorZ_free(struct LDKCResult_AnnouncementSignaturesDecodeErrorZ _res);
12867 /* @internal */
12868 export function CResult_AnnouncementSignaturesDecodeErrorZ_free(_res: number): void {
12869         if(!isWasmInitialized) {
12870                 throw new Error("initializeWasm() must be awaited first!");
12871         }
12872         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_free(_res);
12873         // debug statements here
12874 }
12875         // uintptr_t CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR arg);
12876 /* @internal */
12877 export function CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(arg: number): number {
12878         if(!isWasmInitialized) {
12879                 throw new Error("initializeWasm() must be awaited first!");
12880         }
12881         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(arg);
12882         return nativeResponseValue;
12883 }
12884         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_clone(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR orig);
12885 /* @internal */
12886 export function CResult_AnnouncementSignaturesDecodeErrorZ_clone(orig: number): number {
12887         if(!isWasmInitialized) {
12888                 throw new Error("initializeWasm() must be awaited first!");
12889         }
12890         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_clone(orig);
12891         return nativeResponseValue;
12892 }
12893         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o);
12894 /* @internal */
12895 export function CResult_ChannelReestablishDecodeErrorZ_ok(o: number): number {
12896         if(!isWasmInitialized) {
12897                 throw new Error("initializeWasm() must be awaited first!");
12898         }
12899         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_ok(o);
12900         return nativeResponseValue;
12901 }
12902         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e);
12903 /* @internal */
12904 export function CResult_ChannelReestablishDecodeErrorZ_err(e: number): number {
12905         if(!isWasmInitialized) {
12906                 throw new Error("initializeWasm() must be awaited first!");
12907         }
12908         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_err(e);
12909         return nativeResponseValue;
12910 }
12911         // bool CResult_ChannelReestablishDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR o);
12912 /* @internal */
12913 export function CResult_ChannelReestablishDecodeErrorZ_is_ok(o: number): boolean {
12914         if(!isWasmInitialized) {
12915                 throw new Error("initializeWasm() must be awaited first!");
12916         }
12917         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_is_ok(o);
12918         return nativeResponseValue;
12919 }
12920         // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res);
12921 /* @internal */
12922 export function CResult_ChannelReestablishDecodeErrorZ_free(_res: number): void {
12923         if(!isWasmInitialized) {
12924                 throw new Error("initializeWasm() must be awaited first!");
12925         }
12926         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_free(_res);
12927         // debug statements here
12928 }
12929         // uintptr_t CResult_ChannelReestablishDecodeErrorZ_clone_ptr(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR arg);
12930 /* @internal */
12931 export function CResult_ChannelReestablishDecodeErrorZ_clone_ptr(arg: number): number {
12932         if(!isWasmInitialized) {
12933                 throw new Error("initializeWasm() must be awaited first!");
12934         }
12935         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_clone_ptr(arg);
12936         return nativeResponseValue;
12937 }
12938         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_clone(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR orig);
12939 /* @internal */
12940 export function CResult_ChannelReestablishDecodeErrorZ_clone(orig: number): number {
12941         if(!isWasmInitialized) {
12942                 throw new Error("initializeWasm() must be awaited first!");
12943         }
12944         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_clone(orig);
12945         return nativeResponseValue;
12946 }
12947         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_ok(struct LDKClosingSigned o);
12948 /* @internal */
12949 export function CResult_ClosingSignedDecodeErrorZ_ok(o: number): number {
12950         if(!isWasmInitialized) {
12951                 throw new Error("initializeWasm() must be awaited first!");
12952         }
12953         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_ok(o);
12954         return nativeResponseValue;
12955 }
12956         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_err(struct LDKDecodeError e);
12957 /* @internal */
12958 export function CResult_ClosingSignedDecodeErrorZ_err(e: number): number {
12959         if(!isWasmInitialized) {
12960                 throw new Error("initializeWasm() must be awaited first!");
12961         }
12962         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_err(e);
12963         return nativeResponseValue;
12964 }
12965         // bool CResult_ClosingSignedDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR o);
12966 /* @internal */
12967 export function CResult_ClosingSignedDecodeErrorZ_is_ok(o: number): boolean {
12968         if(!isWasmInitialized) {
12969                 throw new Error("initializeWasm() must be awaited first!");
12970         }
12971         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_is_ok(o);
12972         return nativeResponseValue;
12973 }
12974         // void CResult_ClosingSignedDecodeErrorZ_free(struct LDKCResult_ClosingSignedDecodeErrorZ _res);
12975 /* @internal */
12976 export function CResult_ClosingSignedDecodeErrorZ_free(_res: number): void {
12977         if(!isWasmInitialized) {
12978                 throw new Error("initializeWasm() must be awaited first!");
12979         }
12980         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_free(_res);
12981         // debug statements here
12982 }
12983         // uintptr_t CResult_ClosingSignedDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR arg);
12984 /* @internal */
12985 export function CResult_ClosingSignedDecodeErrorZ_clone_ptr(arg: number): number {
12986         if(!isWasmInitialized) {
12987                 throw new Error("initializeWasm() must be awaited first!");
12988         }
12989         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_clone_ptr(arg);
12990         return nativeResponseValue;
12991 }
12992         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR orig);
12993 /* @internal */
12994 export function CResult_ClosingSignedDecodeErrorZ_clone(orig: number): number {
12995         if(!isWasmInitialized) {
12996                 throw new Error("initializeWasm() must be awaited first!");
12997         }
12998         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_clone(orig);
12999         return nativeResponseValue;
13000 }
13001         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(struct LDKClosingSignedFeeRange o);
13002 /* @internal */
13003 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(o: number): number {
13004         if(!isWasmInitialized) {
13005                 throw new Error("initializeWasm() must be awaited first!");
13006         }
13007         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(o);
13008         return nativeResponseValue;
13009 }
13010         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_err(struct LDKDecodeError e);
13011 /* @internal */
13012 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_err(e: number): number {
13013         if(!isWasmInitialized) {
13014                 throw new Error("initializeWasm() must be awaited first!");
13015         }
13016         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_err(e);
13017         return nativeResponseValue;
13018 }
13019         // bool CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR o);
13020 /* @internal */
13021 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(o: number): boolean {
13022         if(!isWasmInitialized) {
13023                 throw new Error("initializeWasm() must be awaited first!");
13024         }
13025         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(o);
13026         return nativeResponseValue;
13027 }
13028         // void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ _res);
13029 /* @internal */
13030 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_free(_res: number): void {
13031         if(!isWasmInitialized) {
13032                 throw new Error("initializeWasm() must be awaited first!");
13033         }
13034         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_free(_res);
13035         // debug statements here
13036 }
13037         // uintptr_t CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR arg);
13038 /* @internal */
13039 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(arg: number): number {
13040         if(!isWasmInitialized) {
13041                 throw new Error("initializeWasm() must be awaited first!");
13042         }
13043         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(arg);
13044         return nativeResponseValue;
13045 }
13046         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR orig);
13047 /* @internal */
13048 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(orig: number): number {
13049         if(!isWasmInitialized) {
13050                 throw new Error("initializeWasm() must be awaited first!");
13051         }
13052         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(orig);
13053         return nativeResponseValue;
13054 }
13055         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_ok(struct LDKCommitmentSigned o);
13056 /* @internal */
13057 export function CResult_CommitmentSignedDecodeErrorZ_ok(o: number): number {
13058         if(!isWasmInitialized) {
13059                 throw new Error("initializeWasm() must be awaited first!");
13060         }
13061         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_ok(o);
13062         return nativeResponseValue;
13063 }
13064         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_err(struct LDKDecodeError e);
13065 /* @internal */
13066 export function CResult_CommitmentSignedDecodeErrorZ_err(e: number): number {
13067         if(!isWasmInitialized) {
13068                 throw new Error("initializeWasm() must be awaited first!");
13069         }
13070         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_err(e);
13071         return nativeResponseValue;
13072 }
13073         // bool CResult_CommitmentSignedDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR o);
13074 /* @internal */
13075 export function CResult_CommitmentSignedDecodeErrorZ_is_ok(o: number): boolean {
13076         if(!isWasmInitialized) {
13077                 throw new Error("initializeWasm() must be awaited first!");
13078         }
13079         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_is_ok(o);
13080         return nativeResponseValue;
13081 }
13082         // void CResult_CommitmentSignedDecodeErrorZ_free(struct LDKCResult_CommitmentSignedDecodeErrorZ _res);
13083 /* @internal */
13084 export function CResult_CommitmentSignedDecodeErrorZ_free(_res: number): void {
13085         if(!isWasmInitialized) {
13086                 throw new Error("initializeWasm() must be awaited first!");
13087         }
13088         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_free(_res);
13089         // debug statements here
13090 }
13091         // uintptr_t CResult_CommitmentSignedDecodeErrorZ_clone_ptr(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR arg);
13092 /* @internal */
13093 export function CResult_CommitmentSignedDecodeErrorZ_clone_ptr(arg: number): number {
13094         if(!isWasmInitialized) {
13095                 throw new Error("initializeWasm() must be awaited first!");
13096         }
13097         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_clone_ptr(arg);
13098         return nativeResponseValue;
13099 }
13100         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_clone(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR orig);
13101 /* @internal */
13102 export function CResult_CommitmentSignedDecodeErrorZ_clone(orig: number): number {
13103         if(!isWasmInitialized) {
13104                 throw new Error("initializeWasm() must be awaited first!");
13105         }
13106         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_clone(orig);
13107         return nativeResponseValue;
13108 }
13109         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_ok(struct LDKFundingCreated o);
13110 /* @internal */
13111 export function CResult_FundingCreatedDecodeErrorZ_ok(o: number): number {
13112         if(!isWasmInitialized) {
13113                 throw new Error("initializeWasm() must be awaited first!");
13114         }
13115         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_ok(o);
13116         return nativeResponseValue;
13117 }
13118         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_err(struct LDKDecodeError e);
13119 /* @internal */
13120 export function CResult_FundingCreatedDecodeErrorZ_err(e: number): number {
13121         if(!isWasmInitialized) {
13122                 throw new Error("initializeWasm() must be awaited first!");
13123         }
13124         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_err(e);
13125         return nativeResponseValue;
13126 }
13127         // bool CResult_FundingCreatedDecodeErrorZ_is_ok(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR o);
13128 /* @internal */
13129 export function CResult_FundingCreatedDecodeErrorZ_is_ok(o: number): boolean {
13130         if(!isWasmInitialized) {
13131                 throw new Error("initializeWasm() must be awaited first!");
13132         }
13133         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_is_ok(o);
13134         return nativeResponseValue;
13135 }
13136         // void CResult_FundingCreatedDecodeErrorZ_free(struct LDKCResult_FundingCreatedDecodeErrorZ _res);
13137 /* @internal */
13138 export function CResult_FundingCreatedDecodeErrorZ_free(_res: number): void {
13139         if(!isWasmInitialized) {
13140                 throw new Error("initializeWasm() must be awaited first!");
13141         }
13142         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_free(_res);
13143         // debug statements here
13144 }
13145         // uintptr_t CResult_FundingCreatedDecodeErrorZ_clone_ptr(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR arg);
13146 /* @internal */
13147 export function CResult_FundingCreatedDecodeErrorZ_clone_ptr(arg: number): number {
13148         if(!isWasmInitialized) {
13149                 throw new Error("initializeWasm() must be awaited first!");
13150         }
13151         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_clone_ptr(arg);
13152         return nativeResponseValue;
13153 }
13154         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_clone(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR orig);
13155 /* @internal */
13156 export function CResult_FundingCreatedDecodeErrorZ_clone(orig: number): number {
13157         if(!isWasmInitialized) {
13158                 throw new Error("initializeWasm() must be awaited first!");
13159         }
13160         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_clone(orig);
13161         return nativeResponseValue;
13162 }
13163         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_ok(struct LDKFundingSigned o);
13164 /* @internal */
13165 export function CResult_FundingSignedDecodeErrorZ_ok(o: number): number {
13166         if(!isWasmInitialized) {
13167                 throw new Error("initializeWasm() must be awaited first!");
13168         }
13169         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_ok(o);
13170         return nativeResponseValue;
13171 }
13172         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_err(struct LDKDecodeError e);
13173 /* @internal */
13174 export function CResult_FundingSignedDecodeErrorZ_err(e: number): number {
13175         if(!isWasmInitialized) {
13176                 throw new Error("initializeWasm() must be awaited first!");
13177         }
13178         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_err(e);
13179         return nativeResponseValue;
13180 }
13181         // bool CResult_FundingSignedDecodeErrorZ_is_ok(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR o);
13182 /* @internal */
13183 export function CResult_FundingSignedDecodeErrorZ_is_ok(o: number): boolean {
13184         if(!isWasmInitialized) {
13185                 throw new Error("initializeWasm() must be awaited first!");
13186         }
13187         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_is_ok(o);
13188         return nativeResponseValue;
13189 }
13190         // void CResult_FundingSignedDecodeErrorZ_free(struct LDKCResult_FundingSignedDecodeErrorZ _res);
13191 /* @internal */
13192 export function CResult_FundingSignedDecodeErrorZ_free(_res: number): void {
13193         if(!isWasmInitialized) {
13194                 throw new Error("initializeWasm() must be awaited first!");
13195         }
13196         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_free(_res);
13197         // debug statements here
13198 }
13199         // uintptr_t CResult_FundingSignedDecodeErrorZ_clone_ptr(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR arg);
13200 /* @internal */
13201 export function CResult_FundingSignedDecodeErrorZ_clone_ptr(arg: number): number {
13202         if(!isWasmInitialized) {
13203                 throw new Error("initializeWasm() must be awaited first!");
13204         }
13205         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_clone_ptr(arg);
13206         return nativeResponseValue;
13207 }
13208         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_clone(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR orig);
13209 /* @internal */
13210 export function CResult_FundingSignedDecodeErrorZ_clone(orig: number): number {
13211         if(!isWasmInitialized) {
13212                 throw new Error("initializeWasm() must be awaited first!");
13213         }
13214         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_clone(orig);
13215         return nativeResponseValue;
13216 }
13217         // struct LDKCResult_FundingLockedDecodeErrorZ CResult_FundingLockedDecodeErrorZ_ok(struct LDKFundingLocked o);
13218 /* @internal */
13219 export function CResult_FundingLockedDecodeErrorZ_ok(o: number): number {
13220         if(!isWasmInitialized) {
13221                 throw new Error("initializeWasm() must be awaited first!");
13222         }
13223         const nativeResponseValue = wasm.TS_CResult_FundingLockedDecodeErrorZ_ok(o);
13224         return nativeResponseValue;
13225 }
13226         // struct LDKCResult_FundingLockedDecodeErrorZ CResult_FundingLockedDecodeErrorZ_err(struct LDKDecodeError e);
13227 /* @internal */
13228 export function CResult_FundingLockedDecodeErrorZ_err(e: number): number {
13229         if(!isWasmInitialized) {
13230                 throw new Error("initializeWasm() must be awaited first!");
13231         }
13232         const nativeResponseValue = wasm.TS_CResult_FundingLockedDecodeErrorZ_err(e);
13233         return nativeResponseValue;
13234 }
13235         // bool CResult_FundingLockedDecodeErrorZ_is_ok(const struct LDKCResult_FundingLockedDecodeErrorZ *NONNULL_PTR o);
13236 /* @internal */
13237 export function CResult_FundingLockedDecodeErrorZ_is_ok(o: number): boolean {
13238         if(!isWasmInitialized) {
13239                 throw new Error("initializeWasm() must be awaited first!");
13240         }
13241         const nativeResponseValue = wasm.TS_CResult_FundingLockedDecodeErrorZ_is_ok(o);
13242         return nativeResponseValue;
13243 }
13244         // void CResult_FundingLockedDecodeErrorZ_free(struct LDKCResult_FundingLockedDecodeErrorZ _res);
13245 /* @internal */
13246 export function CResult_FundingLockedDecodeErrorZ_free(_res: number): void {
13247         if(!isWasmInitialized) {
13248                 throw new Error("initializeWasm() must be awaited first!");
13249         }
13250         const nativeResponseValue = wasm.TS_CResult_FundingLockedDecodeErrorZ_free(_res);
13251         // debug statements here
13252 }
13253         // uintptr_t CResult_FundingLockedDecodeErrorZ_clone_ptr(LDKCResult_FundingLockedDecodeErrorZ *NONNULL_PTR arg);
13254 /* @internal */
13255 export function CResult_FundingLockedDecodeErrorZ_clone_ptr(arg: number): number {
13256         if(!isWasmInitialized) {
13257                 throw new Error("initializeWasm() must be awaited first!");
13258         }
13259         const nativeResponseValue = wasm.TS_CResult_FundingLockedDecodeErrorZ_clone_ptr(arg);
13260         return nativeResponseValue;
13261 }
13262         // struct LDKCResult_FundingLockedDecodeErrorZ CResult_FundingLockedDecodeErrorZ_clone(const struct LDKCResult_FundingLockedDecodeErrorZ *NONNULL_PTR orig);
13263 /* @internal */
13264 export function CResult_FundingLockedDecodeErrorZ_clone(orig: number): number {
13265         if(!isWasmInitialized) {
13266                 throw new Error("initializeWasm() must be awaited first!");
13267         }
13268         const nativeResponseValue = wasm.TS_CResult_FundingLockedDecodeErrorZ_clone(orig);
13269         return nativeResponseValue;
13270 }
13271         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o);
13272 /* @internal */
13273 export function CResult_InitDecodeErrorZ_ok(o: number): number {
13274         if(!isWasmInitialized) {
13275                 throw new Error("initializeWasm() must be awaited first!");
13276         }
13277         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_ok(o);
13278         return nativeResponseValue;
13279 }
13280         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e);
13281 /* @internal */
13282 export function CResult_InitDecodeErrorZ_err(e: number): number {
13283         if(!isWasmInitialized) {
13284                 throw new Error("initializeWasm() must be awaited first!");
13285         }
13286         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_err(e);
13287         return nativeResponseValue;
13288 }
13289         // bool CResult_InitDecodeErrorZ_is_ok(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR o);
13290 /* @internal */
13291 export function CResult_InitDecodeErrorZ_is_ok(o: number): boolean {
13292         if(!isWasmInitialized) {
13293                 throw new Error("initializeWasm() must be awaited first!");
13294         }
13295         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_is_ok(o);
13296         return nativeResponseValue;
13297 }
13298         // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res);
13299 /* @internal */
13300 export function CResult_InitDecodeErrorZ_free(_res: number): void {
13301         if(!isWasmInitialized) {
13302                 throw new Error("initializeWasm() must be awaited first!");
13303         }
13304         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_free(_res);
13305         // debug statements here
13306 }
13307         // uintptr_t CResult_InitDecodeErrorZ_clone_ptr(LDKCResult_InitDecodeErrorZ *NONNULL_PTR arg);
13308 /* @internal */
13309 export function CResult_InitDecodeErrorZ_clone_ptr(arg: number): number {
13310         if(!isWasmInitialized) {
13311                 throw new Error("initializeWasm() must be awaited first!");
13312         }
13313         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_clone_ptr(arg);
13314         return nativeResponseValue;
13315 }
13316         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_clone(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR orig);
13317 /* @internal */
13318 export function CResult_InitDecodeErrorZ_clone(orig: number): number {
13319         if(!isWasmInitialized) {
13320                 throw new Error("initializeWasm() must be awaited first!");
13321         }
13322         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_clone(orig);
13323         return nativeResponseValue;
13324 }
13325         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_ok(struct LDKOpenChannel o);
13326 /* @internal */
13327 export function CResult_OpenChannelDecodeErrorZ_ok(o: number): number {
13328         if(!isWasmInitialized) {
13329                 throw new Error("initializeWasm() must be awaited first!");
13330         }
13331         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_ok(o);
13332         return nativeResponseValue;
13333 }
13334         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_err(struct LDKDecodeError e);
13335 /* @internal */
13336 export function CResult_OpenChannelDecodeErrorZ_err(e: number): number {
13337         if(!isWasmInitialized) {
13338                 throw new Error("initializeWasm() must be awaited first!");
13339         }
13340         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_err(e);
13341         return nativeResponseValue;
13342 }
13343         // bool CResult_OpenChannelDecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR o);
13344 /* @internal */
13345 export function CResult_OpenChannelDecodeErrorZ_is_ok(o: number): boolean {
13346         if(!isWasmInitialized) {
13347                 throw new Error("initializeWasm() must be awaited first!");
13348         }
13349         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_is_ok(o);
13350         return nativeResponseValue;
13351 }
13352         // void CResult_OpenChannelDecodeErrorZ_free(struct LDKCResult_OpenChannelDecodeErrorZ _res);
13353 /* @internal */
13354 export function CResult_OpenChannelDecodeErrorZ_free(_res: number): void {
13355         if(!isWasmInitialized) {
13356                 throw new Error("initializeWasm() must be awaited first!");
13357         }
13358         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_free(_res);
13359         // debug statements here
13360 }
13361         // uintptr_t CResult_OpenChannelDecodeErrorZ_clone_ptr(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR arg);
13362 /* @internal */
13363 export function CResult_OpenChannelDecodeErrorZ_clone_ptr(arg: number): number {
13364         if(!isWasmInitialized) {
13365                 throw new Error("initializeWasm() must be awaited first!");
13366         }
13367         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_clone_ptr(arg);
13368         return nativeResponseValue;
13369 }
13370         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_clone(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR orig);
13371 /* @internal */
13372 export function CResult_OpenChannelDecodeErrorZ_clone(orig: number): number {
13373         if(!isWasmInitialized) {
13374                 throw new Error("initializeWasm() must be awaited first!");
13375         }
13376         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_clone(orig);
13377         return nativeResponseValue;
13378 }
13379         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_ok(struct LDKRevokeAndACK o);
13380 /* @internal */
13381 export function CResult_RevokeAndACKDecodeErrorZ_ok(o: number): number {
13382         if(!isWasmInitialized) {
13383                 throw new Error("initializeWasm() must be awaited first!");
13384         }
13385         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_ok(o);
13386         return nativeResponseValue;
13387 }
13388         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_err(struct LDKDecodeError e);
13389 /* @internal */
13390 export function CResult_RevokeAndACKDecodeErrorZ_err(e: number): number {
13391         if(!isWasmInitialized) {
13392                 throw new Error("initializeWasm() must be awaited first!");
13393         }
13394         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_err(e);
13395         return nativeResponseValue;
13396 }
13397         // bool CResult_RevokeAndACKDecodeErrorZ_is_ok(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR o);
13398 /* @internal */
13399 export function CResult_RevokeAndACKDecodeErrorZ_is_ok(o: number): boolean {
13400         if(!isWasmInitialized) {
13401                 throw new Error("initializeWasm() must be awaited first!");
13402         }
13403         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_is_ok(o);
13404         return nativeResponseValue;
13405 }
13406         // void CResult_RevokeAndACKDecodeErrorZ_free(struct LDKCResult_RevokeAndACKDecodeErrorZ _res);
13407 /* @internal */
13408 export function CResult_RevokeAndACKDecodeErrorZ_free(_res: number): void {
13409         if(!isWasmInitialized) {
13410                 throw new Error("initializeWasm() must be awaited first!");
13411         }
13412         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_free(_res);
13413         // debug statements here
13414 }
13415         // uintptr_t CResult_RevokeAndACKDecodeErrorZ_clone_ptr(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR arg);
13416 /* @internal */
13417 export function CResult_RevokeAndACKDecodeErrorZ_clone_ptr(arg: number): number {
13418         if(!isWasmInitialized) {
13419                 throw new Error("initializeWasm() must be awaited first!");
13420         }
13421         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_clone_ptr(arg);
13422         return nativeResponseValue;
13423 }
13424         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_clone(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR orig);
13425 /* @internal */
13426 export function CResult_RevokeAndACKDecodeErrorZ_clone(orig: number): number {
13427         if(!isWasmInitialized) {
13428                 throw new Error("initializeWasm() must be awaited first!");
13429         }
13430         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_clone(orig);
13431         return nativeResponseValue;
13432 }
13433         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_ok(struct LDKShutdown o);
13434 /* @internal */
13435 export function CResult_ShutdownDecodeErrorZ_ok(o: number): number {
13436         if(!isWasmInitialized) {
13437                 throw new Error("initializeWasm() must be awaited first!");
13438         }
13439         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_ok(o);
13440         return nativeResponseValue;
13441 }
13442         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_err(struct LDKDecodeError e);
13443 /* @internal */
13444 export function CResult_ShutdownDecodeErrorZ_err(e: number): number {
13445         if(!isWasmInitialized) {
13446                 throw new Error("initializeWasm() must be awaited first!");
13447         }
13448         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_err(e);
13449         return nativeResponseValue;
13450 }
13451         // bool CResult_ShutdownDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR o);
13452 /* @internal */
13453 export function CResult_ShutdownDecodeErrorZ_is_ok(o: number): boolean {
13454         if(!isWasmInitialized) {
13455                 throw new Error("initializeWasm() must be awaited first!");
13456         }
13457         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_is_ok(o);
13458         return nativeResponseValue;
13459 }
13460         // void CResult_ShutdownDecodeErrorZ_free(struct LDKCResult_ShutdownDecodeErrorZ _res);
13461 /* @internal */
13462 export function CResult_ShutdownDecodeErrorZ_free(_res: number): void {
13463         if(!isWasmInitialized) {
13464                 throw new Error("initializeWasm() must be awaited first!");
13465         }
13466         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_free(_res);
13467         // debug statements here
13468 }
13469         // uintptr_t CResult_ShutdownDecodeErrorZ_clone_ptr(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR arg);
13470 /* @internal */
13471 export function CResult_ShutdownDecodeErrorZ_clone_ptr(arg: number): number {
13472         if(!isWasmInitialized) {
13473                 throw new Error("initializeWasm() must be awaited first!");
13474         }
13475         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_clone_ptr(arg);
13476         return nativeResponseValue;
13477 }
13478         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_clone(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR orig);
13479 /* @internal */
13480 export function CResult_ShutdownDecodeErrorZ_clone(orig: number): number {
13481         if(!isWasmInitialized) {
13482                 throw new Error("initializeWasm() must be awaited first!");
13483         }
13484         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_clone(orig);
13485         return nativeResponseValue;
13486 }
13487         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_ok(struct LDKUpdateFailHTLC o);
13488 /* @internal */
13489 export function CResult_UpdateFailHTLCDecodeErrorZ_ok(o: number): number {
13490         if(!isWasmInitialized) {
13491                 throw new Error("initializeWasm() must be awaited first!");
13492         }
13493         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_ok(o);
13494         return nativeResponseValue;
13495 }
13496         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_err(struct LDKDecodeError e);
13497 /* @internal */
13498 export function CResult_UpdateFailHTLCDecodeErrorZ_err(e: number): number {
13499         if(!isWasmInitialized) {
13500                 throw new Error("initializeWasm() must be awaited first!");
13501         }
13502         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_err(e);
13503         return nativeResponseValue;
13504 }
13505         // bool CResult_UpdateFailHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR o);
13506 /* @internal */
13507 export function CResult_UpdateFailHTLCDecodeErrorZ_is_ok(o: number): boolean {
13508         if(!isWasmInitialized) {
13509                 throw new Error("initializeWasm() must be awaited first!");
13510         }
13511         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_is_ok(o);
13512         return nativeResponseValue;
13513 }
13514         // void CResult_UpdateFailHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailHTLCDecodeErrorZ _res);
13515 /* @internal */
13516 export function CResult_UpdateFailHTLCDecodeErrorZ_free(_res: number): void {
13517         if(!isWasmInitialized) {
13518                 throw new Error("initializeWasm() must be awaited first!");
13519         }
13520         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_free(_res);
13521         // debug statements here
13522 }
13523         // uintptr_t CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR arg);
13524 /* @internal */
13525 export function CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(arg: number): number {
13526         if(!isWasmInitialized) {
13527                 throw new Error("initializeWasm() must be awaited first!");
13528         }
13529         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(arg);
13530         return nativeResponseValue;
13531 }
13532         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR orig);
13533 /* @internal */
13534 export function CResult_UpdateFailHTLCDecodeErrorZ_clone(orig: number): number {
13535         if(!isWasmInitialized) {
13536                 throw new Error("initializeWasm() must be awaited first!");
13537         }
13538         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_clone(orig);
13539         return nativeResponseValue;
13540 }
13541         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(struct LDKUpdateFailMalformedHTLC o);
13542 /* @internal */
13543 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(o: number): number {
13544         if(!isWasmInitialized) {
13545                 throw new Error("initializeWasm() must be awaited first!");
13546         }
13547         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(o);
13548         return nativeResponseValue;
13549 }
13550         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
13551 /* @internal */
13552 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(e: number): number {
13553         if(!isWasmInitialized) {
13554                 throw new Error("initializeWasm() must be awaited first!");
13555         }
13556         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(e);
13557         return nativeResponseValue;
13558 }
13559         // bool CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR o);
13560 /* @internal */
13561 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(o: number): boolean {
13562         if(!isWasmInitialized) {
13563                 throw new Error("initializeWasm() must be awaited first!");
13564         }
13565         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(o);
13566         return nativeResponseValue;
13567 }
13568         // void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ _res);
13569 /* @internal */
13570 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(_res: number): void {
13571         if(!isWasmInitialized) {
13572                 throw new Error("initializeWasm() must be awaited first!");
13573         }
13574         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(_res);
13575         // debug statements here
13576 }
13577         // uintptr_t CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR arg);
13578 /* @internal */
13579 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(arg: number): number {
13580         if(!isWasmInitialized) {
13581                 throw new Error("initializeWasm() must be awaited first!");
13582         }
13583         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(arg);
13584         return nativeResponseValue;
13585 }
13586         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR orig);
13587 /* @internal */
13588 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(orig: number): number {
13589         if(!isWasmInitialized) {
13590                 throw new Error("initializeWasm() must be awaited first!");
13591         }
13592         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(orig);
13593         return nativeResponseValue;
13594 }
13595         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_ok(struct LDKUpdateFee o);
13596 /* @internal */
13597 export function CResult_UpdateFeeDecodeErrorZ_ok(o: number): number {
13598         if(!isWasmInitialized) {
13599                 throw new Error("initializeWasm() must be awaited first!");
13600         }
13601         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_ok(o);
13602         return nativeResponseValue;
13603 }
13604         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_err(struct LDKDecodeError e);
13605 /* @internal */
13606 export function CResult_UpdateFeeDecodeErrorZ_err(e: number): number {
13607         if(!isWasmInitialized) {
13608                 throw new Error("initializeWasm() must be awaited first!");
13609         }
13610         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_err(e);
13611         return nativeResponseValue;
13612 }
13613         // bool CResult_UpdateFeeDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR o);
13614 /* @internal */
13615 export function CResult_UpdateFeeDecodeErrorZ_is_ok(o: number): boolean {
13616         if(!isWasmInitialized) {
13617                 throw new Error("initializeWasm() must be awaited first!");
13618         }
13619         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_is_ok(o);
13620         return nativeResponseValue;
13621 }
13622         // void CResult_UpdateFeeDecodeErrorZ_free(struct LDKCResult_UpdateFeeDecodeErrorZ _res);
13623 /* @internal */
13624 export function CResult_UpdateFeeDecodeErrorZ_free(_res: number): void {
13625         if(!isWasmInitialized) {
13626                 throw new Error("initializeWasm() must be awaited first!");
13627         }
13628         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_free(_res);
13629         // debug statements here
13630 }
13631         // uintptr_t CResult_UpdateFeeDecodeErrorZ_clone_ptr(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR arg);
13632 /* @internal */
13633 export function CResult_UpdateFeeDecodeErrorZ_clone_ptr(arg: number): number {
13634         if(!isWasmInitialized) {
13635                 throw new Error("initializeWasm() must be awaited first!");
13636         }
13637         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_clone_ptr(arg);
13638         return nativeResponseValue;
13639 }
13640         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_clone(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR orig);
13641 /* @internal */
13642 export function CResult_UpdateFeeDecodeErrorZ_clone(orig: number): number {
13643         if(!isWasmInitialized) {
13644                 throw new Error("initializeWasm() must be awaited first!");
13645         }
13646         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_clone(orig);
13647         return nativeResponseValue;
13648 }
13649         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_ok(struct LDKUpdateFulfillHTLC o);
13650 /* @internal */
13651 export function CResult_UpdateFulfillHTLCDecodeErrorZ_ok(o: number): number {
13652         if(!isWasmInitialized) {
13653                 throw new Error("initializeWasm() must be awaited first!");
13654         }
13655         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_ok(o);
13656         return nativeResponseValue;
13657 }
13658         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_err(struct LDKDecodeError e);
13659 /* @internal */
13660 export function CResult_UpdateFulfillHTLCDecodeErrorZ_err(e: number): number {
13661         if(!isWasmInitialized) {
13662                 throw new Error("initializeWasm() must be awaited first!");
13663         }
13664         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_err(e);
13665         return nativeResponseValue;
13666 }
13667         // bool CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR o);
13668 /* @internal */
13669 export function CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(o: number): boolean {
13670         if(!isWasmInitialized) {
13671                 throw new Error("initializeWasm() must be awaited first!");
13672         }
13673         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(o);
13674         return nativeResponseValue;
13675 }
13676         // void CResult_UpdateFulfillHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ _res);
13677 /* @internal */
13678 export function CResult_UpdateFulfillHTLCDecodeErrorZ_free(_res: number): void {
13679         if(!isWasmInitialized) {
13680                 throw new Error("initializeWasm() must be awaited first!");
13681         }
13682         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_free(_res);
13683         // debug statements here
13684 }
13685         // uintptr_t CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR arg);
13686 /* @internal */
13687 export function CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(arg: number): number {
13688         if(!isWasmInitialized) {
13689                 throw new Error("initializeWasm() must be awaited first!");
13690         }
13691         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(arg);
13692         return nativeResponseValue;
13693 }
13694         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR orig);
13695 /* @internal */
13696 export function CResult_UpdateFulfillHTLCDecodeErrorZ_clone(orig: number): number {
13697         if(!isWasmInitialized) {
13698                 throw new Error("initializeWasm() must be awaited first!");
13699         }
13700         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_clone(orig);
13701         return nativeResponseValue;
13702 }
13703         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_ok(struct LDKUpdateAddHTLC o);
13704 /* @internal */
13705 export function CResult_UpdateAddHTLCDecodeErrorZ_ok(o: number): number {
13706         if(!isWasmInitialized) {
13707                 throw new Error("initializeWasm() must be awaited first!");
13708         }
13709         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_ok(o);
13710         return nativeResponseValue;
13711 }
13712         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_err(struct LDKDecodeError e);
13713 /* @internal */
13714 export function CResult_UpdateAddHTLCDecodeErrorZ_err(e: number): number {
13715         if(!isWasmInitialized) {
13716                 throw new Error("initializeWasm() must be awaited first!");
13717         }
13718         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_err(e);
13719         return nativeResponseValue;
13720 }
13721         // bool CResult_UpdateAddHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR o);
13722 /* @internal */
13723 export function CResult_UpdateAddHTLCDecodeErrorZ_is_ok(o: number): boolean {
13724         if(!isWasmInitialized) {
13725                 throw new Error("initializeWasm() must be awaited first!");
13726         }
13727         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_is_ok(o);
13728         return nativeResponseValue;
13729 }
13730         // void CResult_UpdateAddHTLCDecodeErrorZ_free(struct LDKCResult_UpdateAddHTLCDecodeErrorZ _res);
13731 /* @internal */
13732 export function CResult_UpdateAddHTLCDecodeErrorZ_free(_res: number): void {
13733         if(!isWasmInitialized) {
13734                 throw new Error("initializeWasm() must be awaited first!");
13735         }
13736         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_free(_res);
13737         // debug statements here
13738 }
13739         // uintptr_t CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR arg);
13740 /* @internal */
13741 export function CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(arg: number): number {
13742         if(!isWasmInitialized) {
13743                 throw new Error("initializeWasm() must be awaited first!");
13744         }
13745         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(arg);
13746         return nativeResponseValue;
13747 }
13748         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR orig);
13749 /* @internal */
13750 export function CResult_UpdateAddHTLCDecodeErrorZ_clone(orig: number): number {
13751         if(!isWasmInitialized) {
13752                 throw new Error("initializeWasm() must be awaited first!");
13753         }
13754         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_clone(orig);
13755         return nativeResponseValue;
13756 }
13757         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o);
13758 /* @internal */
13759 export function CResult_PingDecodeErrorZ_ok(o: number): number {
13760         if(!isWasmInitialized) {
13761                 throw new Error("initializeWasm() must be awaited first!");
13762         }
13763         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_ok(o);
13764         return nativeResponseValue;
13765 }
13766         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e);
13767 /* @internal */
13768 export function CResult_PingDecodeErrorZ_err(e: number): number {
13769         if(!isWasmInitialized) {
13770                 throw new Error("initializeWasm() must be awaited first!");
13771         }
13772         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_err(e);
13773         return nativeResponseValue;
13774 }
13775         // bool CResult_PingDecodeErrorZ_is_ok(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR o);
13776 /* @internal */
13777 export function CResult_PingDecodeErrorZ_is_ok(o: number): boolean {
13778         if(!isWasmInitialized) {
13779                 throw new Error("initializeWasm() must be awaited first!");
13780         }
13781         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_is_ok(o);
13782         return nativeResponseValue;
13783 }
13784         // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res);
13785 /* @internal */
13786 export function CResult_PingDecodeErrorZ_free(_res: number): void {
13787         if(!isWasmInitialized) {
13788                 throw new Error("initializeWasm() must be awaited first!");
13789         }
13790         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_free(_res);
13791         // debug statements here
13792 }
13793         // uintptr_t CResult_PingDecodeErrorZ_clone_ptr(LDKCResult_PingDecodeErrorZ *NONNULL_PTR arg);
13794 /* @internal */
13795 export function CResult_PingDecodeErrorZ_clone_ptr(arg: number): number {
13796         if(!isWasmInitialized) {
13797                 throw new Error("initializeWasm() must be awaited first!");
13798         }
13799         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_clone_ptr(arg);
13800         return nativeResponseValue;
13801 }
13802         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_clone(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR orig);
13803 /* @internal */
13804 export function CResult_PingDecodeErrorZ_clone(orig: number): number {
13805         if(!isWasmInitialized) {
13806                 throw new Error("initializeWasm() must be awaited first!");
13807         }
13808         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_clone(orig);
13809         return nativeResponseValue;
13810 }
13811         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o);
13812 /* @internal */
13813 export function CResult_PongDecodeErrorZ_ok(o: number): number {
13814         if(!isWasmInitialized) {
13815                 throw new Error("initializeWasm() must be awaited first!");
13816         }
13817         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_ok(o);
13818         return nativeResponseValue;
13819 }
13820         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e);
13821 /* @internal */
13822 export function CResult_PongDecodeErrorZ_err(e: number): number {
13823         if(!isWasmInitialized) {
13824                 throw new Error("initializeWasm() must be awaited first!");
13825         }
13826         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_err(e);
13827         return nativeResponseValue;
13828 }
13829         // bool CResult_PongDecodeErrorZ_is_ok(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR o);
13830 /* @internal */
13831 export function CResult_PongDecodeErrorZ_is_ok(o: number): boolean {
13832         if(!isWasmInitialized) {
13833                 throw new Error("initializeWasm() must be awaited first!");
13834         }
13835         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_is_ok(o);
13836         return nativeResponseValue;
13837 }
13838         // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res);
13839 /* @internal */
13840 export function CResult_PongDecodeErrorZ_free(_res: number): void {
13841         if(!isWasmInitialized) {
13842                 throw new Error("initializeWasm() must be awaited first!");
13843         }
13844         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_free(_res);
13845         // debug statements here
13846 }
13847         // uintptr_t CResult_PongDecodeErrorZ_clone_ptr(LDKCResult_PongDecodeErrorZ *NONNULL_PTR arg);
13848 /* @internal */
13849 export function CResult_PongDecodeErrorZ_clone_ptr(arg: number): number {
13850         if(!isWasmInitialized) {
13851                 throw new Error("initializeWasm() must be awaited first!");
13852         }
13853         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_clone_ptr(arg);
13854         return nativeResponseValue;
13855 }
13856         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_clone(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR orig);
13857 /* @internal */
13858 export function CResult_PongDecodeErrorZ_clone(orig: number): number {
13859         if(!isWasmInitialized) {
13860                 throw new Error("initializeWasm() must be awaited first!");
13861         }
13862         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_clone(orig);
13863         return nativeResponseValue;
13864 }
13865         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o);
13866 /* @internal */
13867 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(o: number): number {
13868         if(!isWasmInitialized) {
13869                 throw new Error("initializeWasm() must be awaited first!");
13870         }
13871         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(o);
13872         return nativeResponseValue;
13873 }
13874         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
13875 /* @internal */
13876 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(e: number): number {
13877         if(!isWasmInitialized) {
13878                 throw new Error("initializeWasm() must be awaited first!");
13879         }
13880         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(e);
13881         return nativeResponseValue;
13882 }
13883         // bool CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
13884 /* @internal */
13885 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
13886         if(!isWasmInitialized) {
13887                 throw new Error("initializeWasm() must be awaited first!");
13888         }
13889         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(o);
13890         return nativeResponseValue;
13891 }
13892         // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res);
13893 /* @internal */
13894 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(_res: number): void {
13895         if(!isWasmInitialized) {
13896                 throw new Error("initializeWasm() must be awaited first!");
13897         }
13898         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(_res);
13899         // debug statements here
13900 }
13901         // uintptr_t CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
13902 /* @internal */
13903 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
13904         if(!isWasmInitialized) {
13905                 throw new Error("initializeWasm() must be awaited first!");
13906         }
13907         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(arg);
13908         return nativeResponseValue;
13909 }
13910         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
13911 /* @internal */
13912 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(orig: number): number {
13913         if(!isWasmInitialized) {
13914                 throw new Error("initializeWasm() must be awaited first!");
13915         }
13916         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(orig);
13917         return nativeResponseValue;
13918 }
13919         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_ok(struct LDKChannelAnnouncement o);
13920 /* @internal */
13921 export function CResult_ChannelAnnouncementDecodeErrorZ_ok(o: number): number {
13922         if(!isWasmInitialized) {
13923                 throw new Error("initializeWasm() must be awaited first!");
13924         }
13925         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_ok(o);
13926         return nativeResponseValue;
13927 }
13928         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
13929 /* @internal */
13930 export function CResult_ChannelAnnouncementDecodeErrorZ_err(e: number): number {
13931         if(!isWasmInitialized) {
13932                 throw new Error("initializeWasm() must be awaited first!");
13933         }
13934         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_err(e);
13935         return nativeResponseValue;
13936 }
13937         // bool CResult_ChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
13938 /* @internal */
13939 export function CResult_ChannelAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
13940         if(!isWasmInitialized) {
13941                 throw new Error("initializeWasm() must be awaited first!");
13942         }
13943         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_is_ok(o);
13944         return nativeResponseValue;
13945 }
13946         // void CResult_ChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_ChannelAnnouncementDecodeErrorZ _res);
13947 /* @internal */
13948 export function CResult_ChannelAnnouncementDecodeErrorZ_free(_res: number): void {
13949         if(!isWasmInitialized) {
13950                 throw new Error("initializeWasm() must be awaited first!");
13951         }
13952         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_free(_res);
13953         // debug statements here
13954 }
13955         // uintptr_t CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
13956 /* @internal */
13957 export function CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
13958         if(!isWasmInitialized) {
13959                 throw new Error("initializeWasm() must be awaited first!");
13960         }
13961         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(arg);
13962         return nativeResponseValue;
13963 }
13964         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
13965 /* @internal */
13966 export function CResult_ChannelAnnouncementDecodeErrorZ_clone(orig: number): number {
13967         if(!isWasmInitialized) {
13968                 throw new Error("initializeWasm() must be awaited first!");
13969         }
13970         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_clone(orig);
13971         return nativeResponseValue;
13972 }
13973         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o);
13974 /* @internal */
13975 export function CResult_UnsignedChannelUpdateDecodeErrorZ_ok(o: number): number {
13976         if(!isWasmInitialized) {
13977                 throw new Error("initializeWasm() must be awaited first!");
13978         }
13979         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_ok(o);
13980         return nativeResponseValue;
13981 }
13982         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
13983 /* @internal */
13984 export function CResult_UnsignedChannelUpdateDecodeErrorZ_err(e: number): number {
13985         if(!isWasmInitialized) {
13986                 throw new Error("initializeWasm() must be awaited first!");
13987         }
13988         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_err(e);
13989         return nativeResponseValue;
13990 }
13991         // bool CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR o);
13992 /* @internal */
13993 export function CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(o: number): boolean {
13994         if(!isWasmInitialized) {
13995                 throw new Error("initializeWasm() must be awaited first!");
13996         }
13997         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(o);
13998         return nativeResponseValue;
13999 }
14000         // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res);
14001 /* @internal */
14002 export function CResult_UnsignedChannelUpdateDecodeErrorZ_free(_res: number): void {
14003         if(!isWasmInitialized) {
14004                 throw new Error("initializeWasm() must be awaited first!");
14005         }
14006         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_free(_res);
14007         // debug statements here
14008 }
14009         // uintptr_t CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
14010 /* @internal */
14011 export function CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(arg: number): number {
14012         if(!isWasmInitialized) {
14013                 throw new Error("initializeWasm() must be awaited first!");
14014         }
14015         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(arg);
14016         return nativeResponseValue;
14017 }
14018         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
14019 /* @internal */
14020 export function CResult_UnsignedChannelUpdateDecodeErrorZ_clone(orig: number): number {
14021         if(!isWasmInitialized) {
14022                 throw new Error("initializeWasm() must be awaited first!");
14023         }
14024         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_clone(orig);
14025         return nativeResponseValue;
14026 }
14027         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_ok(struct LDKChannelUpdate o);
14028 /* @internal */
14029 export function CResult_ChannelUpdateDecodeErrorZ_ok(o: number): number {
14030         if(!isWasmInitialized) {
14031                 throw new Error("initializeWasm() must be awaited first!");
14032         }
14033         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_ok(o);
14034         return nativeResponseValue;
14035 }
14036         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
14037 /* @internal */
14038 export function CResult_ChannelUpdateDecodeErrorZ_err(e: number): number {
14039         if(!isWasmInitialized) {
14040                 throw new Error("initializeWasm() must be awaited first!");
14041         }
14042         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_err(e);
14043         return nativeResponseValue;
14044 }
14045         // bool CResult_ChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR o);
14046 /* @internal */
14047 export function CResult_ChannelUpdateDecodeErrorZ_is_ok(o: number): boolean {
14048         if(!isWasmInitialized) {
14049                 throw new Error("initializeWasm() must be awaited first!");
14050         }
14051         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_is_ok(o);
14052         return nativeResponseValue;
14053 }
14054         // void CResult_ChannelUpdateDecodeErrorZ_free(struct LDKCResult_ChannelUpdateDecodeErrorZ _res);
14055 /* @internal */
14056 export function CResult_ChannelUpdateDecodeErrorZ_free(_res: number): void {
14057         if(!isWasmInitialized) {
14058                 throw new Error("initializeWasm() must be awaited first!");
14059         }
14060         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_free(_res);
14061         // debug statements here
14062 }
14063         // uintptr_t CResult_ChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
14064 /* @internal */
14065 export function CResult_ChannelUpdateDecodeErrorZ_clone_ptr(arg: number): number {
14066         if(!isWasmInitialized) {
14067                 throw new Error("initializeWasm() must be awaited first!");
14068         }
14069         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_clone_ptr(arg);
14070         return nativeResponseValue;
14071 }
14072         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
14073 /* @internal */
14074 export function CResult_ChannelUpdateDecodeErrorZ_clone(orig: number): number {
14075         if(!isWasmInitialized) {
14076                 throw new Error("initializeWasm() must be awaited first!");
14077         }
14078         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_clone(orig);
14079         return nativeResponseValue;
14080 }
14081         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o);
14082 /* @internal */
14083 export function CResult_ErrorMessageDecodeErrorZ_ok(o: number): number {
14084         if(!isWasmInitialized) {
14085                 throw new Error("initializeWasm() must be awaited first!");
14086         }
14087         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_ok(o);
14088         return nativeResponseValue;
14089 }
14090         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e);
14091 /* @internal */
14092 export function CResult_ErrorMessageDecodeErrorZ_err(e: number): number {
14093         if(!isWasmInitialized) {
14094                 throw new Error("initializeWasm() must be awaited first!");
14095         }
14096         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_err(e);
14097         return nativeResponseValue;
14098 }
14099         // bool CResult_ErrorMessageDecodeErrorZ_is_ok(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR o);
14100 /* @internal */
14101 export function CResult_ErrorMessageDecodeErrorZ_is_ok(o: number): boolean {
14102         if(!isWasmInitialized) {
14103                 throw new Error("initializeWasm() must be awaited first!");
14104         }
14105         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_is_ok(o);
14106         return nativeResponseValue;
14107 }
14108         // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res);
14109 /* @internal */
14110 export function CResult_ErrorMessageDecodeErrorZ_free(_res: number): void {
14111         if(!isWasmInitialized) {
14112                 throw new Error("initializeWasm() must be awaited first!");
14113         }
14114         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_free(_res);
14115         // debug statements here
14116 }
14117         // uintptr_t CResult_ErrorMessageDecodeErrorZ_clone_ptr(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR arg);
14118 /* @internal */
14119 export function CResult_ErrorMessageDecodeErrorZ_clone_ptr(arg: number): number {
14120         if(!isWasmInitialized) {
14121                 throw new Error("initializeWasm() must be awaited first!");
14122         }
14123         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_clone_ptr(arg);
14124         return nativeResponseValue;
14125 }
14126         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_clone(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR orig);
14127 /* @internal */
14128 export function CResult_ErrorMessageDecodeErrorZ_clone(orig: number): number {
14129         if(!isWasmInitialized) {
14130                 throw new Error("initializeWasm() must be awaited first!");
14131         }
14132         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_clone(orig);
14133         return nativeResponseValue;
14134 }
14135         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_ok(struct LDKWarningMessage o);
14136 /* @internal */
14137 export function CResult_WarningMessageDecodeErrorZ_ok(o: number): number {
14138         if(!isWasmInitialized) {
14139                 throw new Error("initializeWasm() must be awaited first!");
14140         }
14141         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_ok(o);
14142         return nativeResponseValue;
14143 }
14144         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_err(struct LDKDecodeError e);
14145 /* @internal */
14146 export function CResult_WarningMessageDecodeErrorZ_err(e: number): number {
14147         if(!isWasmInitialized) {
14148                 throw new Error("initializeWasm() must be awaited first!");
14149         }
14150         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_err(e);
14151         return nativeResponseValue;
14152 }
14153         // bool CResult_WarningMessageDecodeErrorZ_is_ok(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR o);
14154 /* @internal */
14155 export function CResult_WarningMessageDecodeErrorZ_is_ok(o: number): boolean {
14156         if(!isWasmInitialized) {
14157                 throw new Error("initializeWasm() must be awaited first!");
14158         }
14159         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_is_ok(o);
14160         return nativeResponseValue;
14161 }
14162         // void CResult_WarningMessageDecodeErrorZ_free(struct LDKCResult_WarningMessageDecodeErrorZ _res);
14163 /* @internal */
14164 export function CResult_WarningMessageDecodeErrorZ_free(_res: number): void {
14165         if(!isWasmInitialized) {
14166                 throw new Error("initializeWasm() must be awaited first!");
14167         }
14168         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_free(_res);
14169         // debug statements here
14170 }
14171         // uintptr_t CResult_WarningMessageDecodeErrorZ_clone_ptr(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR arg);
14172 /* @internal */
14173 export function CResult_WarningMessageDecodeErrorZ_clone_ptr(arg: number): number {
14174         if(!isWasmInitialized) {
14175                 throw new Error("initializeWasm() must be awaited first!");
14176         }
14177         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_clone_ptr(arg);
14178         return nativeResponseValue;
14179 }
14180         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_clone(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR orig);
14181 /* @internal */
14182 export function CResult_WarningMessageDecodeErrorZ_clone(orig: number): number {
14183         if(!isWasmInitialized) {
14184                 throw new Error("initializeWasm() must be awaited first!");
14185         }
14186         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_clone(orig);
14187         return nativeResponseValue;
14188 }
14189         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o);
14190 /* @internal */
14191 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(o: number): number {
14192         if(!isWasmInitialized) {
14193                 throw new Error("initializeWasm() must be awaited first!");
14194         }
14195         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(o);
14196         return nativeResponseValue;
14197 }
14198         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
14199 /* @internal */
14200 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(e: number): number {
14201         if(!isWasmInitialized) {
14202                 throw new Error("initializeWasm() must be awaited first!");
14203         }
14204         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(e);
14205         return nativeResponseValue;
14206 }
14207         // bool CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
14208 /* @internal */
14209 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
14210         if(!isWasmInitialized) {
14211                 throw new Error("initializeWasm() must be awaited first!");
14212         }
14213         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(o);
14214         return nativeResponseValue;
14215 }
14216         // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res);
14217 /* @internal */
14218 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(_res: number): void {
14219         if(!isWasmInitialized) {
14220                 throw new Error("initializeWasm() must be awaited first!");
14221         }
14222         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(_res);
14223         // debug statements here
14224 }
14225         // uintptr_t CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
14226 /* @internal */
14227 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
14228         if(!isWasmInitialized) {
14229                 throw new Error("initializeWasm() must be awaited first!");
14230         }
14231         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(arg);
14232         return nativeResponseValue;
14233 }
14234         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
14235 /* @internal */
14236 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(orig: number): number {
14237         if(!isWasmInitialized) {
14238                 throw new Error("initializeWasm() must be awaited first!");
14239         }
14240         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(orig);
14241         return nativeResponseValue;
14242 }
14243         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_ok(struct LDKNodeAnnouncement o);
14244 /* @internal */
14245 export function CResult_NodeAnnouncementDecodeErrorZ_ok(o: number): number {
14246         if(!isWasmInitialized) {
14247                 throw new Error("initializeWasm() must be awaited first!");
14248         }
14249         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_ok(o);
14250         return nativeResponseValue;
14251 }
14252         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
14253 /* @internal */
14254 export function CResult_NodeAnnouncementDecodeErrorZ_err(e: number): number {
14255         if(!isWasmInitialized) {
14256                 throw new Error("initializeWasm() must be awaited first!");
14257         }
14258         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_err(e);
14259         return nativeResponseValue;
14260 }
14261         // bool CResult_NodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
14262 /* @internal */
14263 export function CResult_NodeAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
14264         if(!isWasmInitialized) {
14265                 throw new Error("initializeWasm() must be awaited first!");
14266         }
14267         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_is_ok(o);
14268         return nativeResponseValue;
14269 }
14270         // void CResult_NodeAnnouncementDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementDecodeErrorZ _res);
14271 /* @internal */
14272 export function CResult_NodeAnnouncementDecodeErrorZ_free(_res: number): void {
14273         if(!isWasmInitialized) {
14274                 throw new Error("initializeWasm() must be awaited first!");
14275         }
14276         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_free(_res);
14277         // debug statements here
14278 }
14279         // uintptr_t CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
14280 /* @internal */
14281 export function CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
14282         if(!isWasmInitialized) {
14283                 throw new Error("initializeWasm() must be awaited first!");
14284         }
14285         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(arg);
14286         return nativeResponseValue;
14287 }
14288         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
14289 /* @internal */
14290 export function CResult_NodeAnnouncementDecodeErrorZ_clone(orig: number): number {
14291         if(!isWasmInitialized) {
14292                 throw new Error("initializeWasm() must be awaited first!");
14293         }
14294         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_clone(orig);
14295         return nativeResponseValue;
14296 }
14297         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o);
14298 /* @internal */
14299 export function CResult_QueryShortChannelIdsDecodeErrorZ_ok(o: number): number {
14300         if(!isWasmInitialized) {
14301                 throw new Error("initializeWasm() must be awaited first!");
14302         }
14303         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_ok(o);
14304         return nativeResponseValue;
14305 }
14306         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e);
14307 /* @internal */
14308 export function CResult_QueryShortChannelIdsDecodeErrorZ_err(e: number): number {
14309         if(!isWasmInitialized) {
14310                 throw new Error("initializeWasm() must be awaited first!");
14311         }
14312         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_err(e);
14313         return nativeResponseValue;
14314 }
14315         // bool CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR o);
14316 /* @internal */
14317 export function CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(o: number): boolean {
14318         if(!isWasmInitialized) {
14319                 throw new Error("initializeWasm() must be awaited first!");
14320         }
14321         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(o);
14322         return nativeResponseValue;
14323 }
14324         // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res);
14325 /* @internal */
14326 export function CResult_QueryShortChannelIdsDecodeErrorZ_free(_res: number): void {
14327         if(!isWasmInitialized) {
14328                 throw new Error("initializeWasm() must be awaited first!");
14329         }
14330         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_free(_res);
14331         // debug statements here
14332 }
14333         // uintptr_t CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR arg);
14334 /* @internal */
14335 export function CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(arg: number): number {
14336         if(!isWasmInitialized) {
14337                 throw new Error("initializeWasm() must be awaited first!");
14338         }
14339         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(arg);
14340         return nativeResponseValue;
14341 }
14342         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_clone(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR orig);
14343 /* @internal */
14344 export function CResult_QueryShortChannelIdsDecodeErrorZ_clone(orig: number): number {
14345         if(!isWasmInitialized) {
14346                 throw new Error("initializeWasm() must be awaited first!");
14347         }
14348         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_clone(orig);
14349         return nativeResponseValue;
14350 }
14351         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o);
14352 /* @internal */
14353 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(o: number): number {
14354         if(!isWasmInitialized) {
14355                 throw new Error("initializeWasm() must be awaited first!");
14356         }
14357         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(o);
14358         return nativeResponseValue;
14359 }
14360         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e);
14361 /* @internal */
14362 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(e: number): number {
14363         if(!isWasmInitialized) {
14364                 throw new Error("initializeWasm() must be awaited first!");
14365         }
14366         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(e);
14367         return nativeResponseValue;
14368 }
14369         // bool CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR o);
14370 /* @internal */
14371 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(o: number): boolean {
14372         if(!isWasmInitialized) {
14373                 throw new Error("initializeWasm() must be awaited first!");
14374         }
14375         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(o);
14376         return nativeResponseValue;
14377 }
14378         // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res);
14379 /* @internal */
14380 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(_res: number): void {
14381         if(!isWasmInitialized) {
14382                 throw new Error("initializeWasm() must be awaited first!");
14383         }
14384         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(_res);
14385         // debug statements here
14386 }
14387         // uintptr_t CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR arg);
14388 /* @internal */
14389 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(arg: number): number {
14390         if(!isWasmInitialized) {
14391                 throw new Error("initializeWasm() must be awaited first!");
14392         }
14393         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(arg);
14394         return nativeResponseValue;
14395 }
14396         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR orig);
14397 /* @internal */
14398 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(orig: number): number {
14399         if(!isWasmInitialized) {
14400                 throw new Error("initializeWasm() must be awaited first!");
14401         }
14402         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(orig);
14403         return nativeResponseValue;
14404 }
14405         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o);
14406 /* @internal */
14407 export function CResult_QueryChannelRangeDecodeErrorZ_ok(o: number): number {
14408         if(!isWasmInitialized) {
14409                 throw new Error("initializeWasm() must be awaited first!");
14410         }
14411         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_ok(o);
14412         return nativeResponseValue;
14413 }
14414         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
14415 /* @internal */
14416 export function CResult_QueryChannelRangeDecodeErrorZ_err(e: number): number {
14417         if(!isWasmInitialized) {
14418                 throw new Error("initializeWasm() must be awaited first!");
14419         }
14420         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_err(e);
14421         return nativeResponseValue;
14422 }
14423         // bool CResult_QueryChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR o);
14424 /* @internal */
14425 export function CResult_QueryChannelRangeDecodeErrorZ_is_ok(o: number): boolean {
14426         if(!isWasmInitialized) {
14427                 throw new Error("initializeWasm() must be awaited first!");
14428         }
14429         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_is_ok(o);
14430         return nativeResponseValue;
14431 }
14432         // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res);
14433 /* @internal */
14434 export function CResult_QueryChannelRangeDecodeErrorZ_free(_res: number): void {
14435         if(!isWasmInitialized) {
14436                 throw new Error("initializeWasm() must be awaited first!");
14437         }
14438         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_free(_res);
14439         // debug statements here
14440 }
14441         // uintptr_t CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR arg);
14442 /* @internal */
14443 export function CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(arg: number): number {
14444         if(!isWasmInitialized) {
14445                 throw new Error("initializeWasm() must be awaited first!");
14446         }
14447         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(arg);
14448         return nativeResponseValue;
14449 }
14450         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_clone(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR orig);
14451 /* @internal */
14452 export function CResult_QueryChannelRangeDecodeErrorZ_clone(orig: number): number {
14453         if(!isWasmInitialized) {
14454                 throw new Error("initializeWasm() must be awaited first!");
14455         }
14456         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_clone(orig);
14457         return nativeResponseValue;
14458 }
14459         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o);
14460 /* @internal */
14461 export function CResult_ReplyChannelRangeDecodeErrorZ_ok(o: number): number {
14462         if(!isWasmInitialized) {
14463                 throw new Error("initializeWasm() must be awaited first!");
14464         }
14465         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_ok(o);
14466         return nativeResponseValue;
14467 }
14468         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
14469 /* @internal */
14470 export function CResult_ReplyChannelRangeDecodeErrorZ_err(e: number): number {
14471         if(!isWasmInitialized) {
14472                 throw new Error("initializeWasm() must be awaited first!");
14473         }
14474         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_err(e);
14475         return nativeResponseValue;
14476 }
14477         // bool CResult_ReplyChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR o);
14478 /* @internal */
14479 export function CResult_ReplyChannelRangeDecodeErrorZ_is_ok(o: number): boolean {
14480         if(!isWasmInitialized) {
14481                 throw new Error("initializeWasm() must be awaited first!");
14482         }
14483         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_is_ok(o);
14484         return nativeResponseValue;
14485 }
14486         // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res);
14487 /* @internal */
14488 export function CResult_ReplyChannelRangeDecodeErrorZ_free(_res: number): void {
14489         if(!isWasmInitialized) {
14490                 throw new Error("initializeWasm() must be awaited first!");
14491         }
14492         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_free(_res);
14493         // debug statements here
14494 }
14495         // uintptr_t CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR arg);
14496 /* @internal */
14497 export function CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(arg: number): number {
14498         if(!isWasmInitialized) {
14499                 throw new Error("initializeWasm() must be awaited first!");
14500         }
14501         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(arg);
14502         return nativeResponseValue;
14503 }
14504         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_clone(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR orig);
14505 /* @internal */
14506 export function CResult_ReplyChannelRangeDecodeErrorZ_clone(orig: number): number {
14507         if(!isWasmInitialized) {
14508                 throw new Error("initializeWasm() must be awaited first!");
14509         }
14510         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_clone(orig);
14511         return nativeResponseValue;
14512 }
14513         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o);
14514 /* @internal */
14515 export function CResult_GossipTimestampFilterDecodeErrorZ_ok(o: number): number {
14516         if(!isWasmInitialized) {
14517                 throw new Error("initializeWasm() must be awaited first!");
14518         }
14519         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_ok(o);
14520         return nativeResponseValue;
14521 }
14522         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e);
14523 /* @internal */
14524 export function CResult_GossipTimestampFilterDecodeErrorZ_err(e: number): number {
14525         if(!isWasmInitialized) {
14526                 throw new Error("initializeWasm() must be awaited first!");
14527         }
14528         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_err(e);
14529         return nativeResponseValue;
14530 }
14531         // bool CResult_GossipTimestampFilterDecodeErrorZ_is_ok(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR o);
14532 /* @internal */
14533 export function CResult_GossipTimestampFilterDecodeErrorZ_is_ok(o: number): boolean {
14534         if(!isWasmInitialized) {
14535                 throw new Error("initializeWasm() must be awaited first!");
14536         }
14537         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_is_ok(o);
14538         return nativeResponseValue;
14539 }
14540         // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res);
14541 /* @internal */
14542 export function CResult_GossipTimestampFilterDecodeErrorZ_free(_res: number): void {
14543         if(!isWasmInitialized) {
14544                 throw new Error("initializeWasm() must be awaited first!");
14545         }
14546         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_free(_res);
14547         // debug statements here
14548 }
14549         // uintptr_t CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR arg);
14550 /* @internal */
14551 export function CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(arg: number): number {
14552         if(!isWasmInitialized) {
14553                 throw new Error("initializeWasm() must be awaited first!");
14554         }
14555         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(arg);
14556         return nativeResponseValue;
14557 }
14558         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_clone(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR orig);
14559 /* @internal */
14560 export function CResult_GossipTimestampFilterDecodeErrorZ_clone(orig: number): number {
14561         if(!isWasmInitialized) {
14562                 throw new Error("initializeWasm() must be awaited first!");
14563         }
14564         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_clone(orig);
14565         return nativeResponseValue;
14566 }
14567         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_ok(struct LDKInvoice o);
14568 /* @internal */
14569 export function CResult_InvoiceSignOrCreationErrorZ_ok(o: number): number {
14570         if(!isWasmInitialized) {
14571                 throw new Error("initializeWasm() must be awaited first!");
14572         }
14573         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_ok(o);
14574         return nativeResponseValue;
14575 }
14576         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_err(struct LDKSignOrCreationError e);
14577 /* @internal */
14578 export function CResult_InvoiceSignOrCreationErrorZ_err(e: number): number {
14579         if(!isWasmInitialized) {
14580                 throw new Error("initializeWasm() must be awaited first!");
14581         }
14582         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_err(e);
14583         return nativeResponseValue;
14584 }
14585         // bool CResult_InvoiceSignOrCreationErrorZ_is_ok(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR o);
14586 /* @internal */
14587 export function CResult_InvoiceSignOrCreationErrorZ_is_ok(o: number): boolean {
14588         if(!isWasmInitialized) {
14589                 throw new Error("initializeWasm() must be awaited first!");
14590         }
14591         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_is_ok(o);
14592         return nativeResponseValue;
14593 }
14594         // void CResult_InvoiceSignOrCreationErrorZ_free(struct LDKCResult_InvoiceSignOrCreationErrorZ _res);
14595 /* @internal */
14596 export function CResult_InvoiceSignOrCreationErrorZ_free(_res: number): void {
14597         if(!isWasmInitialized) {
14598                 throw new Error("initializeWasm() must be awaited first!");
14599         }
14600         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_free(_res);
14601         // debug statements here
14602 }
14603         // uintptr_t CResult_InvoiceSignOrCreationErrorZ_clone_ptr(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR arg);
14604 /* @internal */
14605 export function CResult_InvoiceSignOrCreationErrorZ_clone_ptr(arg: number): number {
14606         if(!isWasmInitialized) {
14607                 throw new Error("initializeWasm() must be awaited first!");
14608         }
14609         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_clone_ptr(arg);
14610         return nativeResponseValue;
14611 }
14612         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_clone(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR orig);
14613 /* @internal */
14614 export function CResult_InvoiceSignOrCreationErrorZ_clone(orig: number): number {
14615         if(!isWasmInitialized) {
14616                 throw new Error("initializeWasm() must be awaited first!");
14617         }
14618         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_clone(orig);
14619         return nativeResponseValue;
14620 }
14621         // struct LDKCOption_FilterZ COption_FilterZ_some(struct LDKFilter o);
14622 /* @internal */
14623 export function COption_FilterZ_some(o: number): number {
14624         if(!isWasmInitialized) {
14625                 throw new Error("initializeWasm() must be awaited first!");
14626         }
14627         const nativeResponseValue = wasm.TS_COption_FilterZ_some(o);
14628         return nativeResponseValue;
14629 }
14630         // struct LDKCOption_FilterZ COption_FilterZ_none(void);
14631 /* @internal */
14632 export function COption_FilterZ_none(): number {
14633         if(!isWasmInitialized) {
14634                 throw new Error("initializeWasm() must be awaited first!");
14635         }
14636         const nativeResponseValue = wasm.TS_COption_FilterZ_none();
14637         return nativeResponseValue;
14638 }
14639         // void COption_FilterZ_free(struct LDKCOption_FilterZ _res);
14640 /* @internal */
14641 export function COption_FilterZ_free(_res: number): void {
14642         if(!isWasmInitialized) {
14643                 throw new Error("initializeWasm() must be awaited first!");
14644         }
14645         const nativeResponseValue = wasm.TS_COption_FilterZ_free(_res);
14646         // debug statements here
14647 }
14648         // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_ok(struct LDKLockedChannelMonitor o);
14649 /* @internal */
14650 export function CResult_LockedChannelMonitorNoneZ_ok(o: number): number {
14651         if(!isWasmInitialized) {
14652                 throw new Error("initializeWasm() must be awaited first!");
14653         }
14654         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_ok(o);
14655         return nativeResponseValue;
14656 }
14657         // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_err(void);
14658 /* @internal */
14659 export function CResult_LockedChannelMonitorNoneZ_err(): number {
14660         if(!isWasmInitialized) {
14661                 throw new Error("initializeWasm() must be awaited first!");
14662         }
14663         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_err();
14664         return nativeResponseValue;
14665 }
14666         // bool CResult_LockedChannelMonitorNoneZ_is_ok(const struct LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR o);
14667 /* @internal */
14668 export function CResult_LockedChannelMonitorNoneZ_is_ok(o: number): boolean {
14669         if(!isWasmInitialized) {
14670                 throw new Error("initializeWasm() must be awaited first!");
14671         }
14672         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_is_ok(o);
14673         return nativeResponseValue;
14674 }
14675         // void CResult_LockedChannelMonitorNoneZ_free(struct LDKCResult_LockedChannelMonitorNoneZ _res);
14676 /* @internal */
14677 export function CResult_LockedChannelMonitorNoneZ_free(_res: number): void {
14678         if(!isWasmInitialized) {
14679                 throw new Error("initializeWasm() must be awaited first!");
14680         }
14681         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_free(_res);
14682         // debug statements here
14683 }
14684         // void CVec_OutPointZ_free(struct LDKCVec_OutPointZ _res);
14685 /* @internal */
14686 export function CVec_OutPointZ_free(_res: number): void {
14687         if(!isWasmInitialized) {
14688                 throw new Error("initializeWasm() must be awaited first!");
14689         }
14690         const nativeResponseValue = wasm.TS_CVec_OutPointZ_free(_res);
14691         // debug statements here
14692 }
14693         // void PaymentPurpose_free(struct LDKPaymentPurpose this_ptr);
14694 /* @internal */
14695 export function PaymentPurpose_free(this_ptr: number): void {
14696         if(!isWasmInitialized) {
14697                 throw new Error("initializeWasm() must be awaited first!");
14698         }
14699         const nativeResponseValue = wasm.TS_PaymentPurpose_free(this_ptr);
14700         // debug statements here
14701 }
14702         // uintptr_t PaymentPurpose_clone_ptr(LDKPaymentPurpose *NONNULL_PTR arg);
14703 /* @internal */
14704 export function PaymentPurpose_clone_ptr(arg: number): number {
14705         if(!isWasmInitialized) {
14706                 throw new Error("initializeWasm() must be awaited first!");
14707         }
14708         const nativeResponseValue = wasm.TS_PaymentPurpose_clone_ptr(arg);
14709         return nativeResponseValue;
14710 }
14711         // struct LDKPaymentPurpose PaymentPurpose_clone(const struct LDKPaymentPurpose *NONNULL_PTR orig);
14712 /* @internal */
14713 export function PaymentPurpose_clone(orig: number): number {
14714         if(!isWasmInitialized) {
14715                 throw new Error("initializeWasm() must be awaited first!");
14716         }
14717         const nativeResponseValue = wasm.TS_PaymentPurpose_clone(orig);
14718         return nativeResponseValue;
14719 }
14720         // struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_secret);
14721 /* @internal */
14722 export function PaymentPurpose_invoice_payment(payment_preimage: number, payment_secret: number): number {
14723         if(!isWasmInitialized) {
14724                 throw new Error("initializeWasm() must be awaited first!");
14725         }
14726         const nativeResponseValue = wasm.TS_PaymentPurpose_invoice_payment(payment_preimage, payment_secret);
14727         return nativeResponseValue;
14728 }
14729         // struct LDKPaymentPurpose PaymentPurpose_spontaneous_payment(struct LDKThirtyTwoBytes a);
14730 /* @internal */
14731 export function PaymentPurpose_spontaneous_payment(a: number): number {
14732         if(!isWasmInitialized) {
14733                 throw new Error("initializeWasm() must be awaited first!");
14734         }
14735         const nativeResponseValue = wasm.TS_PaymentPurpose_spontaneous_payment(a);
14736         return nativeResponseValue;
14737 }
14738         // void ClosureReason_free(struct LDKClosureReason this_ptr);
14739 /* @internal */
14740 export function ClosureReason_free(this_ptr: number): void {
14741         if(!isWasmInitialized) {
14742                 throw new Error("initializeWasm() must be awaited first!");
14743         }
14744         const nativeResponseValue = wasm.TS_ClosureReason_free(this_ptr);
14745         // debug statements here
14746 }
14747         // uintptr_t ClosureReason_clone_ptr(LDKClosureReason *NONNULL_PTR arg);
14748 /* @internal */
14749 export function ClosureReason_clone_ptr(arg: number): number {
14750         if(!isWasmInitialized) {
14751                 throw new Error("initializeWasm() must be awaited first!");
14752         }
14753         const nativeResponseValue = wasm.TS_ClosureReason_clone_ptr(arg);
14754         return nativeResponseValue;
14755 }
14756         // struct LDKClosureReason ClosureReason_clone(const struct LDKClosureReason *NONNULL_PTR orig);
14757 /* @internal */
14758 export function ClosureReason_clone(orig: number): number {
14759         if(!isWasmInitialized) {
14760                 throw new Error("initializeWasm() must be awaited first!");
14761         }
14762         const nativeResponseValue = wasm.TS_ClosureReason_clone(orig);
14763         return nativeResponseValue;
14764 }
14765         // struct LDKClosureReason ClosureReason_counterparty_force_closed(struct LDKStr peer_msg);
14766 /* @internal */
14767 export function ClosureReason_counterparty_force_closed(peer_msg: number): number {
14768         if(!isWasmInitialized) {
14769                 throw new Error("initializeWasm() must be awaited first!");
14770         }
14771         const nativeResponseValue = wasm.TS_ClosureReason_counterparty_force_closed(peer_msg);
14772         return nativeResponseValue;
14773 }
14774         // struct LDKClosureReason ClosureReason_holder_force_closed(void);
14775 /* @internal */
14776 export function ClosureReason_holder_force_closed(): number {
14777         if(!isWasmInitialized) {
14778                 throw new Error("initializeWasm() must be awaited first!");
14779         }
14780         const nativeResponseValue = wasm.TS_ClosureReason_holder_force_closed();
14781         return nativeResponseValue;
14782 }
14783         // struct LDKClosureReason ClosureReason_cooperative_closure(void);
14784 /* @internal */
14785 export function ClosureReason_cooperative_closure(): number {
14786         if(!isWasmInitialized) {
14787                 throw new Error("initializeWasm() must be awaited first!");
14788         }
14789         const nativeResponseValue = wasm.TS_ClosureReason_cooperative_closure();
14790         return nativeResponseValue;
14791 }
14792         // struct LDKClosureReason ClosureReason_commitment_tx_confirmed(void);
14793 /* @internal */
14794 export function ClosureReason_commitment_tx_confirmed(): number {
14795         if(!isWasmInitialized) {
14796                 throw new Error("initializeWasm() must be awaited first!");
14797         }
14798         const nativeResponseValue = wasm.TS_ClosureReason_commitment_tx_confirmed();
14799         return nativeResponseValue;
14800 }
14801         // struct LDKClosureReason ClosureReason_funding_timed_out(void);
14802 /* @internal */
14803 export function ClosureReason_funding_timed_out(): number {
14804         if(!isWasmInitialized) {
14805                 throw new Error("initializeWasm() must be awaited first!");
14806         }
14807         const nativeResponseValue = wasm.TS_ClosureReason_funding_timed_out();
14808         return nativeResponseValue;
14809 }
14810         // struct LDKClosureReason ClosureReason_processing_error(struct LDKStr err);
14811 /* @internal */
14812 export function ClosureReason_processing_error(err: number): number {
14813         if(!isWasmInitialized) {
14814                 throw new Error("initializeWasm() must be awaited first!");
14815         }
14816         const nativeResponseValue = wasm.TS_ClosureReason_processing_error(err);
14817         return nativeResponseValue;
14818 }
14819         // struct LDKClosureReason ClosureReason_disconnected_peer(void);
14820 /* @internal */
14821 export function ClosureReason_disconnected_peer(): number {
14822         if(!isWasmInitialized) {
14823                 throw new Error("initializeWasm() must be awaited first!");
14824         }
14825         const nativeResponseValue = wasm.TS_ClosureReason_disconnected_peer();
14826         return nativeResponseValue;
14827 }
14828         // struct LDKClosureReason ClosureReason_outdated_channel_manager(void);
14829 /* @internal */
14830 export function ClosureReason_outdated_channel_manager(): number {
14831         if(!isWasmInitialized) {
14832                 throw new Error("initializeWasm() must be awaited first!");
14833         }
14834         const nativeResponseValue = wasm.TS_ClosureReason_outdated_channel_manager();
14835         return nativeResponseValue;
14836 }
14837         // struct LDKCVec_u8Z ClosureReason_write(const struct LDKClosureReason *NONNULL_PTR obj);
14838 /* @internal */
14839 export function ClosureReason_write(obj: number): number {
14840         if(!isWasmInitialized) {
14841                 throw new Error("initializeWasm() must be awaited first!");
14842         }
14843         const nativeResponseValue = wasm.TS_ClosureReason_write(obj);
14844         return nativeResponseValue;
14845 }
14846         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ ClosureReason_read(struct LDKu8slice ser);
14847 /* @internal */
14848 export function ClosureReason_read(ser: number): number {
14849         if(!isWasmInitialized) {
14850                 throw new Error("initializeWasm() must be awaited first!");
14851         }
14852         const nativeResponseValue = wasm.TS_ClosureReason_read(ser);
14853         return nativeResponseValue;
14854 }
14855         // void Event_free(struct LDKEvent this_ptr);
14856 /* @internal */
14857 export function Event_free(this_ptr: number): void {
14858         if(!isWasmInitialized) {
14859                 throw new Error("initializeWasm() must be awaited first!");
14860         }
14861         const nativeResponseValue = wasm.TS_Event_free(this_ptr);
14862         // debug statements here
14863 }
14864         // uintptr_t Event_clone_ptr(LDKEvent *NONNULL_PTR arg);
14865 /* @internal */
14866 export function Event_clone_ptr(arg: number): number {
14867         if(!isWasmInitialized) {
14868                 throw new Error("initializeWasm() must be awaited first!");
14869         }
14870         const nativeResponseValue = wasm.TS_Event_clone_ptr(arg);
14871         return nativeResponseValue;
14872 }
14873         // struct LDKEvent Event_clone(const struct LDKEvent *NONNULL_PTR orig);
14874 /* @internal */
14875 export function Event_clone(orig: number): number {
14876         if(!isWasmInitialized) {
14877                 throw new Error("initializeWasm() must be awaited first!");
14878         }
14879         const nativeResponseValue = wasm.TS_Event_clone(orig);
14880         return nativeResponseValue;
14881 }
14882         // 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);
14883 /* @internal */
14884 export function Event_funding_generation_ready(temporary_channel_id: number, channel_value_satoshis: bigint, output_script: number, user_channel_id: bigint): number {
14885         if(!isWasmInitialized) {
14886                 throw new Error("initializeWasm() must be awaited first!");
14887         }
14888         const nativeResponseValue = wasm.TS_Event_funding_generation_ready(temporary_channel_id, channel_value_satoshis, output_script, user_channel_id);
14889         return nativeResponseValue;
14890 }
14891         // struct LDKEvent Event_payment_received(struct LDKThirtyTwoBytes payment_hash, uint64_t amt, struct LDKPaymentPurpose purpose);
14892 /* @internal */
14893 export function Event_payment_received(payment_hash: number, amt: bigint, purpose: number): number {
14894         if(!isWasmInitialized) {
14895                 throw new Error("initializeWasm() must be awaited first!");
14896         }
14897         const nativeResponseValue = wasm.TS_Event_payment_received(payment_hash, amt, purpose);
14898         return nativeResponseValue;
14899 }
14900         // struct LDKEvent Event_payment_sent(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat);
14901 /* @internal */
14902 export function Event_payment_sent(payment_id: number, payment_preimage: number, payment_hash: number, fee_paid_msat: number): number {
14903         if(!isWasmInitialized) {
14904                 throw new Error("initializeWasm() must be awaited first!");
14905         }
14906         const nativeResponseValue = wasm.TS_Event_payment_sent(payment_id, payment_preimage, payment_hash, fee_paid_msat);
14907         return nativeResponseValue;
14908 }
14909         // 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);
14910 /* @internal */
14911 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 {
14912         if(!isWasmInitialized) {
14913                 throw new Error("initializeWasm() must be awaited first!");
14914         }
14915         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);
14916         return nativeResponseValue;
14917 }
14918         // struct LDKEvent Event_payment_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash);
14919 /* @internal */
14920 export function Event_payment_failed(payment_id: number, payment_hash: number): number {
14921         if(!isWasmInitialized) {
14922                 throw new Error("initializeWasm() must be awaited first!");
14923         }
14924         const nativeResponseValue = wasm.TS_Event_payment_failed(payment_id, payment_hash);
14925         return nativeResponseValue;
14926 }
14927         // struct LDKEvent Event_pending_htlcs_forwardable(uint64_t time_forwardable);
14928 /* @internal */
14929 export function Event_pending_htlcs_forwardable(time_forwardable: bigint): number {
14930         if(!isWasmInitialized) {
14931                 throw new Error("initializeWasm() must be awaited first!");
14932         }
14933         const nativeResponseValue = wasm.TS_Event_pending_htlcs_forwardable(time_forwardable);
14934         return nativeResponseValue;
14935 }
14936         // struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs);
14937 /* @internal */
14938 export function Event_spendable_outputs(outputs: number): number {
14939         if(!isWasmInitialized) {
14940                 throw new Error("initializeWasm() must be awaited first!");
14941         }
14942         const nativeResponseValue = wasm.TS_Event_spendable_outputs(outputs);
14943         return nativeResponseValue;
14944 }
14945         // struct LDKEvent Event_payment_forwarded(struct LDKCOption_u64Z fee_earned_msat, bool claim_from_onchain_tx);
14946 /* @internal */
14947 export function Event_payment_forwarded(fee_earned_msat: number, claim_from_onchain_tx: boolean): number {
14948         if(!isWasmInitialized) {
14949                 throw new Error("initializeWasm() must be awaited first!");
14950         }
14951         const nativeResponseValue = wasm.TS_Event_payment_forwarded(fee_earned_msat, claim_from_onchain_tx);
14952         return nativeResponseValue;
14953 }
14954         // struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, uint64_t user_channel_id, struct LDKClosureReason reason);
14955 /* @internal */
14956 export function Event_channel_closed(channel_id: number, user_channel_id: bigint, reason: number): number {
14957         if(!isWasmInitialized) {
14958                 throw new Error("initializeWasm() must be awaited first!");
14959         }
14960         const nativeResponseValue = wasm.TS_Event_channel_closed(channel_id, user_channel_id, reason);
14961         return nativeResponseValue;
14962 }
14963         // struct LDKEvent Event_discard_funding(struct LDKThirtyTwoBytes channel_id, struct LDKTransaction transaction);
14964 /* @internal */
14965 export function Event_discard_funding(channel_id: number, transaction: number): number {
14966         if(!isWasmInitialized) {
14967                 throw new Error("initializeWasm() must be awaited first!");
14968         }
14969         const nativeResponseValue = wasm.TS_Event_discard_funding(channel_id, transaction);
14970         return nativeResponseValue;
14971 }
14972         // struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCVec_RouteHopZ path);
14973 /* @internal */
14974 export function Event_payment_path_successful(payment_id: number, payment_hash: number, path: number): number {
14975         if(!isWasmInitialized) {
14976                 throw new Error("initializeWasm() must be awaited first!");
14977         }
14978         const nativeResponseValue = wasm.TS_Event_payment_path_successful(payment_id, payment_hash, path);
14979         return nativeResponseValue;
14980 }
14981         // struct LDKEvent Event_open_channel_request(struct LDKThirtyTwoBytes temporary_channel_id, struct LDKPublicKey counterparty_node_id, uint64_t funding_satoshis, uint64_t push_msat, struct LDKChannelTypeFeatures channel_type);
14982 /* @internal */
14983 export function Event_open_channel_request(temporary_channel_id: number, counterparty_node_id: number, funding_satoshis: bigint, push_msat: bigint, channel_type: number): number {
14984         if(!isWasmInitialized) {
14985                 throw new Error("initializeWasm() must be awaited first!");
14986         }
14987         const nativeResponseValue = wasm.TS_Event_open_channel_request(temporary_channel_id, counterparty_node_id, funding_satoshis, push_msat, channel_type);
14988         return nativeResponseValue;
14989 }
14990         // struct LDKCVec_u8Z Event_write(const struct LDKEvent *NONNULL_PTR obj);
14991 /* @internal */
14992 export function Event_write(obj: number): number {
14993         if(!isWasmInitialized) {
14994                 throw new Error("initializeWasm() must be awaited first!");
14995         }
14996         const nativeResponseValue = wasm.TS_Event_write(obj);
14997         return nativeResponseValue;
14998 }
14999         // struct LDKCResult_COption_EventZDecodeErrorZ Event_read(struct LDKu8slice ser);
15000 /* @internal */
15001 export function Event_read(ser: number): number {
15002         if(!isWasmInitialized) {
15003                 throw new Error("initializeWasm() must be awaited first!");
15004         }
15005         const nativeResponseValue = wasm.TS_Event_read(ser);
15006         return nativeResponseValue;
15007 }
15008         // void MessageSendEvent_free(struct LDKMessageSendEvent this_ptr);
15009 /* @internal */
15010 export function MessageSendEvent_free(this_ptr: number): void {
15011         if(!isWasmInitialized) {
15012                 throw new Error("initializeWasm() must be awaited first!");
15013         }
15014         const nativeResponseValue = wasm.TS_MessageSendEvent_free(this_ptr);
15015         // debug statements here
15016 }
15017         // uintptr_t MessageSendEvent_clone_ptr(LDKMessageSendEvent *NONNULL_PTR arg);
15018 /* @internal */
15019 export function MessageSendEvent_clone_ptr(arg: number): number {
15020         if(!isWasmInitialized) {
15021                 throw new Error("initializeWasm() must be awaited first!");
15022         }
15023         const nativeResponseValue = wasm.TS_MessageSendEvent_clone_ptr(arg);
15024         return nativeResponseValue;
15025 }
15026         // struct LDKMessageSendEvent MessageSendEvent_clone(const struct LDKMessageSendEvent *NONNULL_PTR orig);
15027 /* @internal */
15028 export function MessageSendEvent_clone(orig: number): number {
15029         if(!isWasmInitialized) {
15030                 throw new Error("initializeWasm() must be awaited first!");
15031         }
15032         const nativeResponseValue = wasm.TS_MessageSendEvent_clone(orig);
15033         return nativeResponseValue;
15034 }
15035         // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel(struct LDKPublicKey node_id, struct LDKAcceptChannel msg);
15036 /* @internal */
15037 export function MessageSendEvent_send_accept_channel(node_id: number, msg: number): number {
15038         if(!isWasmInitialized) {
15039                 throw new Error("initializeWasm() must be awaited first!");
15040         }
15041         const nativeResponseValue = wasm.TS_MessageSendEvent_send_accept_channel(node_id, msg);
15042         return nativeResponseValue;
15043 }
15044         // struct LDKMessageSendEvent MessageSendEvent_send_open_channel(struct LDKPublicKey node_id, struct LDKOpenChannel msg);
15045 /* @internal */
15046 export function MessageSendEvent_send_open_channel(node_id: number, msg: number): number {
15047         if(!isWasmInitialized) {
15048                 throw new Error("initializeWasm() must be awaited first!");
15049         }
15050         const nativeResponseValue = wasm.TS_MessageSendEvent_send_open_channel(node_id, msg);
15051         return nativeResponseValue;
15052 }
15053         // struct LDKMessageSendEvent MessageSendEvent_send_funding_created(struct LDKPublicKey node_id, struct LDKFundingCreated msg);
15054 /* @internal */
15055 export function MessageSendEvent_send_funding_created(node_id: number, msg: number): number {
15056         if(!isWasmInitialized) {
15057                 throw new Error("initializeWasm() must be awaited first!");
15058         }
15059         const nativeResponseValue = wasm.TS_MessageSendEvent_send_funding_created(node_id, msg);
15060         return nativeResponseValue;
15061 }
15062         // struct LDKMessageSendEvent MessageSendEvent_send_funding_signed(struct LDKPublicKey node_id, struct LDKFundingSigned msg);
15063 /* @internal */
15064 export function MessageSendEvent_send_funding_signed(node_id: number, msg: number): number {
15065         if(!isWasmInitialized) {
15066                 throw new Error("initializeWasm() must be awaited first!");
15067         }
15068         const nativeResponseValue = wasm.TS_MessageSendEvent_send_funding_signed(node_id, msg);
15069         return nativeResponseValue;
15070 }
15071         // struct LDKMessageSendEvent MessageSendEvent_send_funding_locked(struct LDKPublicKey node_id, struct LDKFundingLocked msg);
15072 /* @internal */
15073 export function MessageSendEvent_send_funding_locked(node_id: number, msg: number): number {
15074         if(!isWasmInitialized) {
15075                 throw new Error("initializeWasm() must be awaited first!");
15076         }
15077         const nativeResponseValue = wasm.TS_MessageSendEvent_send_funding_locked(node_id, msg);
15078         return nativeResponseValue;
15079 }
15080         // struct LDKMessageSendEvent MessageSendEvent_send_announcement_signatures(struct LDKPublicKey node_id, struct LDKAnnouncementSignatures msg);
15081 /* @internal */
15082 export function MessageSendEvent_send_announcement_signatures(node_id: number, msg: number): number {
15083         if(!isWasmInitialized) {
15084                 throw new Error("initializeWasm() must be awaited first!");
15085         }
15086         const nativeResponseValue = wasm.TS_MessageSendEvent_send_announcement_signatures(node_id, msg);
15087         return nativeResponseValue;
15088 }
15089         // struct LDKMessageSendEvent MessageSendEvent_update_htlcs(struct LDKPublicKey node_id, struct LDKCommitmentUpdate updates);
15090 /* @internal */
15091 export function MessageSendEvent_update_htlcs(node_id: number, updates: number): number {
15092         if(!isWasmInitialized) {
15093                 throw new Error("initializeWasm() must be awaited first!");
15094         }
15095         const nativeResponseValue = wasm.TS_MessageSendEvent_update_htlcs(node_id, updates);
15096         return nativeResponseValue;
15097 }
15098         // struct LDKMessageSendEvent MessageSendEvent_send_revoke_and_ack(struct LDKPublicKey node_id, struct LDKRevokeAndACK msg);
15099 /* @internal */
15100 export function MessageSendEvent_send_revoke_and_ack(node_id: number, msg: number): number {
15101         if(!isWasmInitialized) {
15102                 throw new Error("initializeWasm() must be awaited first!");
15103         }
15104         const nativeResponseValue = wasm.TS_MessageSendEvent_send_revoke_and_ack(node_id, msg);
15105         return nativeResponseValue;
15106 }
15107         // struct LDKMessageSendEvent MessageSendEvent_send_closing_signed(struct LDKPublicKey node_id, struct LDKClosingSigned msg);
15108 /* @internal */
15109 export function MessageSendEvent_send_closing_signed(node_id: number, msg: number): number {
15110         if(!isWasmInitialized) {
15111                 throw new Error("initializeWasm() must be awaited first!");
15112         }
15113         const nativeResponseValue = wasm.TS_MessageSendEvent_send_closing_signed(node_id, msg);
15114         return nativeResponseValue;
15115 }
15116         // struct LDKMessageSendEvent MessageSendEvent_send_shutdown(struct LDKPublicKey node_id, struct LDKShutdown msg);
15117 /* @internal */
15118 export function MessageSendEvent_send_shutdown(node_id: number, msg: number): number {
15119         if(!isWasmInitialized) {
15120                 throw new Error("initializeWasm() must be awaited first!");
15121         }
15122         const nativeResponseValue = wasm.TS_MessageSendEvent_send_shutdown(node_id, msg);
15123         return nativeResponseValue;
15124 }
15125         // struct LDKMessageSendEvent MessageSendEvent_send_channel_reestablish(struct LDKPublicKey node_id, struct LDKChannelReestablish msg);
15126 /* @internal */
15127 export function MessageSendEvent_send_channel_reestablish(node_id: number, msg: number): number {
15128         if(!isWasmInitialized) {
15129                 throw new Error("initializeWasm() must be awaited first!");
15130         }
15131         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_reestablish(node_id, msg);
15132         return nativeResponseValue;
15133 }
15134         // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_announcement(struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
15135 /* @internal */
15136 export function MessageSendEvent_broadcast_channel_announcement(msg: number, update_msg: number): number {
15137         if(!isWasmInitialized) {
15138                 throw new Error("initializeWasm() must be awaited first!");
15139         }
15140         const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_channel_announcement(msg, update_msg);
15141         return nativeResponseValue;
15142 }
15143         // struct LDKMessageSendEvent MessageSendEvent_broadcast_node_announcement(struct LDKNodeAnnouncement msg);
15144 /* @internal */
15145 export function MessageSendEvent_broadcast_node_announcement(msg: number): number {
15146         if(!isWasmInitialized) {
15147                 throw new Error("initializeWasm() must be awaited first!");
15148         }
15149         const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_node_announcement(msg);
15150         return nativeResponseValue;
15151 }
15152         // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_update(struct LDKChannelUpdate msg);
15153 /* @internal */
15154 export function MessageSendEvent_broadcast_channel_update(msg: number): number {
15155         if(!isWasmInitialized) {
15156                 throw new Error("initializeWasm() must be awaited first!");
15157         }
15158         const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_channel_update(msg);
15159         return nativeResponseValue;
15160 }
15161         // struct LDKMessageSendEvent MessageSendEvent_send_channel_update(struct LDKPublicKey node_id, struct LDKChannelUpdate msg);
15162 /* @internal */
15163 export function MessageSendEvent_send_channel_update(node_id: number, msg: number): number {
15164         if(!isWasmInitialized) {
15165                 throw new Error("initializeWasm() must be awaited first!");
15166         }
15167         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_update(node_id, msg);
15168         return nativeResponseValue;
15169 }
15170         // struct LDKMessageSendEvent MessageSendEvent_handle_error(struct LDKPublicKey node_id, struct LDKErrorAction action);
15171 /* @internal */
15172 export function MessageSendEvent_handle_error(node_id: number, action: number): number {
15173         if(!isWasmInitialized) {
15174                 throw new Error("initializeWasm() must be awaited first!");
15175         }
15176         const nativeResponseValue = wasm.TS_MessageSendEvent_handle_error(node_id, action);
15177         return nativeResponseValue;
15178 }
15179         // struct LDKMessageSendEvent MessageSendEvent_send_channel_range_query(struct LDKPublicKey node_id, struct LDKQueryChannelRange msg);
15180 /* @internal */
15181 export function MessageSendEvent_send_channel_range_query(node_id: number, msg: number): number {
15182         if(!isWasmInitialized) {
15183                 throw new Error("initializeWasm() must be awaited first!");
15184         }
15185         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_range_query(node_id, msg);
15186         return nativeResponseValue;
15187 }
15188         // struct LDKMessageSendEvent MessageSendEvent_send_short_ids_query(struct LDKPublicKey node_id, struct LDKQueryShortChannelIds msg);
15189 /* @internal */
15190 export function MessageSendEvent_send_short_ids_query(node_id: number, msg: number): number {
15191         if(!isWasmInitialized) {
15192                 throw new Error("initializeWasm() must be awaited first!");
15193         }
15194         const nativeResponseValue = wasm.TS_MessageSendEvent_send_short_ids_query(node_id, msg);
15195         return nativeResponseValue;
15196 }
15197         // struct LDKMessageSendEvent MessageSendEvent_send_reply_channel_range(struct LDKPublicKey node_id, struct LDKReplyChannelRange msg);
15198 /* @internal */
15199 export function MessageSendEvent_send_reply_channel_range(node_id: number, msg: number): number {
15200         if(!isWasmInitialized) {
15201                 throw new Error("initializeWasm() must be awaited first!");
15202         }
15203         const nativeResponseValue = wasm.TS_MessageSendEvent_send_reply_channel_range(node_id, msg);
15204         return nativeResponseValue;
15205 }
15206         // struct LDKMessageSendEvent MessageSendEvent_send_gossip_timestamp_filter(struct LDKPublicKey node_id, struct LDKGossipTimestampFilter msg);
15207 /* @internal */
15208 export function MessageSendEvent_send_gossip_timestamp_filter(node_id: number, msg: number): number {
15209         if(!isWasmInitialized) {
15210                 throw new Error("initializeWasm() must be awaited first!");
15211         }
15212         const nativeResponseValue = wasm.TS_MessageSendEvent_send_gossip_timestamp_filter(node_id, msg);
15213         return nativeResponseValue;
15214 }
15215         // void MessageSendEventsProvider_free(struct LDKMessageSendEventsProvider this_ptr);
15216 /* @internal */
15217 export function MessageSendEventsProvider_free(this_ptr: number): void {
15218         if(!isWasmInitialized) {
15219                 throw new Error("initializeWasm() must be awaited first!");
15220         }
15221         const nativeResponseValue = wasm.TS_MessageSendEventsProvider_free(this_ptr);
15222         // debug statements here
15223 }
15224         // void EventsProvider_free(struct LDKEventsProvider this_ptr);
15225 /* @internal */
15226 export function EventsProvider_free(this_ptr: number): void {
15227         if(!isWasmInitialized) {
15228                 throw new Error("initializeWasm() must be awaited first!");
15229         }
15230         const nativeResponseValue = wasm.TS_EventsProvider_free(this_ptr);
15231         // debug statements here
15232 }
15233         // void EventHandler_free(struct LDKEventHandler this_ptr);
15234 /* @internal */
15235 export function EventHandler_free(this_ptr: number): void {
15236         if(!isWasmInitialized) {
15237                 throw new Error("initializeWasm() must be awaited first!");
15238         }
15239         const nativeResponseValue = wasm.TS_EventHandler_free(this_ptr);
15240         // debug statements here
15241 }
15242         // void APIError_free(struct LDKAPIError this_ptr);
15243 /* @internal */
15244 export function APIError_free(this_ptr: number): void {
15245         if(!isWasmInitialized) {
15246                 throw new Error("initializeWasm() must be awaited first!");
15247         }
15248         const nativeResponseValue = wasm.TS_APIError_free(this_ptr);
15249         // debug statements here
15250 }
15251         // uintptr_t APIError_clone_ptr(LDKAPIError *NONNULL_PTR arg);
15252 /* @internal */
15253 export function APIError_clone_ptr(arg: number): number {
15254         if(!isWasmInitialized) {
15255                 throw new Error("initializeWasm() must be awaited first!");
15256         }
15257         const nativeResponseValue = wasm.TS_APIError_clone_ptr(arg);
15258         return nativeResponseValue;
15259 }
15260         // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig);
15261 /* @internal */
15262 export function APIError_clone(orig: number): number {
15263         if(!isWasmInitialized) {
15264                 throw new Error("initializeWasm() must be awaited first!");
15265         }
15266         const nativeResponseValue = wasm.TS_APIError_clone(orig);
15267         return nativeResponseValue;
15268 }
15269         // struct LDKAPIError APIError_apimisuse_error(struct LDKStr err);
15270 /* @internal */
15271 export function APIError_apimisuse_error(err: number): number {
15272         if(!isWasmInitialized) {
15273                 throw new Error("initializeWasm() must be awaited first!");
15274         }
15275         const nativeResponseValue = wasm.TS_APIError_apimisuse_error(err);
15276         return nativeResponseValue;
15277 }
15278         // struct LDKAPIError APIError_fee_rate_too_high(struct LDKStr err, uint32_t feerate);
15279 /* @internal */
15280 export function APIError_fee_rate_too_high(err: number, feerate: number): number {
15281         if(!isWasmInitialized) {
15282                 throw new Error("initializeWasm() must be awaited first!");
15283         }
15284         const nativeResponseValue = wasm.TS_APIError_fee_rate_too_high(err, feerate);
15285         return nativeResponseValue;
15286 }
15287         // struct LDKAPIError APIError_route_error(struct LDKStr err);
15288 /* @internal */
15289 export function APIError_route_error(err: number): number {
15290         if(!isWasmInitialized) {
15291                 throw new Error("initializeWasm() must be awaited first!");
15292         }
15293         const nativeResponseValue = wasm.TS_APIError_route_error(err);
15294         return nativeResponseValue;
15295 }
15296         // struct LDKAPIError APIError_channel_unavailable(struct LDKStr err);
15297 /* @internal */
15298 export function APIError_channel_unavailable(err: number): number {
15299         if(!isWasmInitialized) {
15300                 throw new Error("initializeWasm() must be awaited first!");
15301         }
15302         const nativeResponseValue = wasm.TS_APIError_channel_unavailable(err);
15303         return nativeResponseValue;
15304 }
15305         // struct LDKAPIError APIError_monitor_update_failed(void);
15306 /* @internal */
15307 export function APIError_monitor_update_failed(): number {
15308         if(!isWasmInitialized) {
15309                 throw new Error("initializeWasm() must be awaited first!");
15310         }
15311         const nativeResponseValue = wasm.TS_APIError_monitor_update_failed();
15312         return nativeResponseValue;
15313 }
15314         // struct LDKAPIError APIError_incompatible_shutdown_script(struct LDKShutdownScript script);
15315 /* @internal */
15316 export function APIError_incompatible_shutdown_script(script: number): number {
15317         if(!isWasmInitialized) {
15318                 throw new Error("initializeWasm() must be awaited first!");
15319         }
15320         const nativeResponseValue = wasm.TS_APIError_incompatible_shutdown_script(script);
15321         return nativeResponseValue;
15322 }
15323         // struct LDKCResult_StringErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]);
15324 /* @internal */
15325 export function sign(msg: number, sk: number): number {
15326         if(!isWasmInitialized) {
15327                 throw new Error("initializeWasm() must be awaited first!");
15328         }
15329         const nativeResponseValue = wasm.TS_sign(msg, sk);
15330         return nativeResponseValue;
15331 }
15332         // struct LDKCResult_PublicKeyErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig);
15333 /* @internal */
15334 export function recover_pk(msg: number, sig: number): number {
15335         if(!isWasmInitialized) {
15336                 throw new Error("initializeWasm() must be awaited first!");
15337         }
15338         const nativeResponseValue = wasm.TS_recover_pk(msg, sig);
15339         return nativeResponseValue;
15340 }
15341         // bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk);
15342 /* @internal */
15343 export function verify(msg: number, sig: number, pk: number): boolean {
15344         if(!isWasmInitialized) {
15345                 throw new Error("initializeWasm() must be awaited first!");
15346         }
15347         const nativeResponseValue = wasm.TS_verify(msg, sig, pk);
15348         return nativeResponseValue;
15349 }
15350         // struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_u5Z data_without_signature);
15351 /* @internal */
15352 export function construct_invoice_preimage(hrp_bytes: number, data_without_signature: number): number {
15353         if(!isWasmInitialized) {
15354                 throw new Error("initializeWasm() must be awaited first!");
15355         }
15356         const nativeResponseValue = wasm.TS_construct_invoice_preimage(hrp_bytes, data_without_signature);
15357         return nativeResponseValue;
15358 }
15359         // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig);
15360 /* @internal */
15361 export function Level_clone(orig: number): Level {
15362         if(!isWasmInitialized) {
15363                 throw new Error("initializeWasm() must be awaited first!");
15364         }
15365         const nativeResponseValue = wasm.TS_Level_clone(orig);
15366         return nativeResponseValue;
15367 }
15368         // enum LDKLevel Level_gossip(void);
15369 /* @internal */
15370 export function Level_gossip(): Level {
15371         if(!isWasmInitialized) {
15372                 throw new Error("initializeWasm() must be awaited first!");
15373         }
15374         const nativeResponseValue = wasm.TS_Level_gossip();
15375         return nativeResponseValue;
15376 }
15377         // enum LDKLevel Level_trace(void);
15378 /* @internal */
15379 export function Level_trace(): Level {
15380         if(!isWasmInitialized) {
15381                 throw new Error("initializeWasm() must be awaited first!");
15382         }
15383         const nativeResponseValue = wasm.TS_Level_trace();
15384         return nativeResponseValue;
15385 }
15386         // enum LDKLevel Level_debug(void);
15387 /* @internal */
15388 export function Level_debug(): Level {
15389         if(!isWasmInitialized) {
15390                 throw new Error("initializeWasm() must be awaited first!");
15391         }
15392         const nativeResponseValue = wasm.TS_Level_debug();
15393         return nativeResponseValue;
15394 }
15395         // enum LDKLevel Level_info(void);
15396 /* @internal */
15397 export function Level_info(): Level {
15398         if(!isWasmInitialized) {
15399                 throw new Error("initializeWasm() must be awaited first!");
15400         }
15401         const nativeResponseValue = wasm.TS_Level_info();
15402         return nativeResponseValue;
15403 }
15404         // enum LDKLevel Level_warn(void);
15405 /* @internal */
15406 export function Level_warn(): Level {
15407         if(!isWasmInitialized) {
15408                 throw new Error("initializeWasm() must be awaited first!");
15409         }
15410         const nativeResponseValue = wasm.TS_Level_warn();
15411         return nativeResponseValue;
15412 }
15413         // enum LDKLevel Level_error(void);
15414 /* @internal */
15415 export function Level_error(): Level {
15416         if(!isWasmInitialized) {
15417                 throw new Error("initializeWasm() must be awaited first!");
15418         }
15419         const nativeResponseValue = wasm.TS_Level_error();
15420         return nativeResponseValue;
15421 }
15422         // bool Level_eq(const enum LDKLevel *NONNULL_PTR a, const enum LDKLevel *NONNULL_PTR b);
15423 /* @internal */
15424 export function Level_eq(a: number, b: number): boolean {
15425         if(!isWasmInitialized) {
15426                 throw new Error("initializeWasm() must be awaited first!");
15427         }
15428         const nativeResponseValue = wasm.TS_Level_eq(a, b);
15429         return nativeResponseValue;
15430 }
15431         // uint64_t Level_hash(const enum LDKLevel *NONNULL_PTR o);
15432 /* @internal */
15433 export function Level_hash(o: number): bigint {
15434         if(!isWasmInitialized) {
15435                 throw new Error("initializeWasm() must be awaited first!");
15436         }
15437         const nativeResponseValue = wasm.TS_Level_hash(o);
15438         return nativeResponseValue;
15439 }
15440         // MUST_USE_RES enum LDKLevel Level_max(void);
15441 /* @internal */
15442 export function Level_max(): Level {
15443         if(!isWasmInitialized) {
15444                 throw new Error("initializeWasm() must be awaited first!");
15445         }
15446         const nativeResponseValue = wasm.TS_Level_max();
15447         return nativeResponseValue;
15448 }
15449         // void Record_free(struct LDKRecord this_obj);
15450 /* @internal */
15451 export function Record_free(this_obj: number): void {
15452         if(!isWasmInitialized) {
15453                 throw new Error("initializeWasm() must be awaited first!");
15454         }
15455         const nativeResponseValue = wasm.TS_Record_free(this_obj);
15456         // debug statements here
15457 }
15458         // enum LDKLevel Record_get_level(const struct LDKRecord *NONNULL_PTR this_ptr);
15459 /* @internal */
15460 export function Record_get_level(this_ptr: number): Level {
15461         if(!isWasmInitialized) {
15462                 throw new Error("initializeWasm() must be awaited first!");
15463         }
15464         const nativeResponseValue = wasm.TS_Record_get_level(this_ptr);
15465         return nativeResponseValue;
15466 }
15467         // void Record_set_level(struct LDKRecord *NONNULL_PTR this_ptr, enum LDKLevel val);
15468 /* @internal */
15469 export function Record_set_level(this_ptr: number, val: Level): void {
15470         if(!isWasmInitialized) {
15471                 throw new Error("initializeWasm() must be awaited first!");
15472         }
15473         const nativeResponseValue = wasm.TS_Record_set_level(this_ptr, val);
15474         // debug statements here
15475 }
15476         // struct LDKStr Record_get_args(const struct LDKRecord *NONNULL_PTR this_ptr);
15477 /* @internal */
15478 export function Record_get_args(this_ptr: number): number {
15479         if(!isWasmInitialized) {
15480                 throw new Error("initializeWasm() must be awaited first!");
15481         }
15482         const nativeResponseValue = wasm.TS_Record_get_args(this_ptr);
15483         return nativeResponseValue;
15484 }
15485         // void Record_set_args(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
15486 /* @internal */
15487 export function Record_set_args(this_ptr: number, val: number): void {
15488         if(!isWasmInitialized) {
15489                 throw new Error("initializeWasm() must be awaited first!");
15490         }
15491         const nativeResponseValue = wasm.TS_Record_set_args(this_ptr, val);
15492         // debug statements here
15493 }
15494         // struct LDKStr Record_get_module_path(const struct LDKRecord *NONNULL_PTR this_ptr);
15495 /* @internal */
15496 export function Record_get_module_path(this_ptr: number): number {
15497         if(!isWasmInitialized) {
15498                 throw new Error("initializeWasm() must be awaited first!");
15499         }
15500         const nativeResponseValue = wasm.TS_Record_get_module_path(this_ptr);
15501         return nativeResponseValue;
15502 }
15503         // void Record_set_module_path(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
15504 /* @internal */
15505 export function Record_set_module_path(this_ptr: number, val: number): void {
15506         if(!isWasmInitialized) {
15507                 throw new Error("initializeWasm() must be awaited first!");
15508         }
15509         const nativeResponseValue = wasm.TS_Record_set_module_path(this_ptr, val);
15510         // debug statements here
15511 }
15512         // struct LDKStr Record_get_file(const struct LDKRecord *NONNULL_PTR this_ptr);
15513 /* @internal */
15514 export function Record_get_file(this_ptr: number): number {
15515         if(!isWasmInitialized) {
15516                 throw new Error("initializeWasm() must be awaited first!");
15517         }
15518         const nativeResponseValue = wasm.TS_Record_get_file(this_ptr);
15519         return nativeResponseValue;
15520 }
15521         // void Record_set_file(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
15522 /* @internal */
15523 export function Record_set_file(this_ptr: number, val: number): void {
15524         if(!isWasmInitialized) {
15525                 throw new Error("initializeWasm() must be awaited first!");
15526         }
15527         const nativeResponseValue = wasm.TS_Record_set_file(this_ptr, val);
15528         // debug statements here
15529 }
15530         // uint32_t Record_get_line(const struct LDKRecord *NONNULL_PTR this_ptr);
15531 /* @internal */
15532 export function Record_get_line(this_ptr: number): number {
15533         if(!isWasmInitialized) {
15534                 throw new Error("initializeWasm() must be awaited first!");
15535         }
15536         const nativeResponseValue = wasm.TS_Record_get_line(this_ptr);
15537         return nativeResponseValue;
15538 }
15539         // void Record_set_line(struct LDKRecord *NONNULL_PTR this_ptr, uint32_t val);
15540 /* @internal */
15541 export function Record_set_line(this_ptr: number, val: number): void {
15542         if(!isWasmInitialized) {
15543                 throw new Error("initializeWasm() must be awaited first!");
15544         }
15545         const nativeResponseValue = wasm.TS_Record_set_line(this_ptr, val);
15546         // debug statements here
15547 }
15548         // uintptr_t Record_clone_ptr(LDKRecord *NONNULL_PTR arg);
15549 /* @internal */
15550 export function Record_clone_ptr(arg: number): number {
15551         if(!isWasmInitialized) {
15552                 throw new Error("initializeWasm() must be awaited first!");
15553         }
15554         const nativeResponseValue = wasm.TS_Record_clone_ptr(arg);
15555         return nativeResponseValue;
15556 }
15557         // struct LDKRecord Record_clone(const struct LDKRecord *NONNULL_PTR orig);
15558 /* @internal */
15559 export function Record_clone(orig: number): number {
15560         if(!isWasmInitialized) {
15561                 throw new Error("initializeWasm() must be awaited first!");
15562         }
15563         const nativeResponseValue = wasm.TS_Record_clone(orig);
15564         return nativeResponseValue;
15565 }
15566         // void Logger_free(struct LDKLogger this_ptr);
15567 /* @internal */
15568 export function Logger_free(this_ptr: number): void {
15569         if(!isWasmInitialized) {
15570                 throw new Error("initializeWasm() must be awaited first!");
15571         }
15572         const nativeResponseValue = wasm.TS_Logger_free(this_ptr);
15573         // debug statements here
15574 }
15575         // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj);
15576 /* @internal */
15577 export function ChannelHandshakeConfig_free(this_obj: number): void {
15578         if(!isWasmInitialized) {
15579                 throw new Error("initializeWasm() must be awaited first!");
15580         }
15581         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_free(this_obj);
15582         // debug statements here
15583 }
15584         // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
15585 /* @internal */
15586 export function ChannelHandshakeConfig_get_minimum_depth(this_ptr: number): number {
15587         if(!isWasmInitialized) {
15588                 throw new Error("initializeWasm() must be awaited first!");
15589         }
15590         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_minimum_depth(this_ptr);
15591         return nativeResponseValue;
15592 }
15593         // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
15594 /* @internal */
15595 export function ChannelHandshakeConfig_set_minimum_depth(this_ptr: number, val: number): void {
15596         if(!isWasmInitialized) {
15597                 throw new Error("initializeWasm() must be awaited first!");
15598         }
15599         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_minimum_depth(this_ptr, val);
15600         // debug statements here
15601 }
15602         // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
15603 /* @internal */
15604 export function ChannelHandshakeConfig_get_our_to_self_delay(this_ptr: number): number {
15605         if(!isWasmInitialized) {
15606                 throw new Error("initializeWasm() must be awaited first!");
15607         }
15608         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_to_self_delay(this_ptr);
15609         return nativeResponseValue;
15610 }
15611         // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
15612 /* @internal */
15613 export function ChannelHandshakeConfig_set_our_to_self_delay(this_ptr: number, val: number): void {
15614         if(!isWasmInitialized) {
15615                 throw new Error("initializeWasm() must be awaited first!");
15616         }
15617         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_to_self_delay(this_ptr, val);
15618         // debug statements here
15619 }
15620         // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
15621 /* @internal */
15622 export function ChannelHandshakeConfig_get_our_htlc_minimum_msat(this_ptr: number): bigint {
15623         if(!isWasmInitialized) {
15624                 throw new Error("initializeWasm() must be awaited first!");
15625         }
15626         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_htlc_minimum_msat(this_ptr);
15627         return nativeResponseValue;
15628 }
15629         // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val);
15630 /* @internal */
15631 export function ChannelHandshakeConfig_set_our_htlc_minimum_msat(this_ptr: number, val: bigint): void {
15632         if(!isWasmInitialized) {
15633                 throw new Error("initializeWasm() must be awaited first!");
15634         }
15635         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_htlc_minimum_msat(this_ptr, val);
15636         // debug statements here
15637 }
15638         // bool ChannelHandshakeConfig_get_negotiate_scid_privacy(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
15639 /* @internal */
15640 export function ChannelHandshakeConfig_get_negotiate_scid_privacy(this_ptr: number): boolean {
15641         if(!isWasmInitialized) {
15642                 throw new Error("initializeWasm() must be awaited first!");
15643         }
15644         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_negotiate_scid_privacy(this_ptr);
15645         return nativeResponseValue;
15646 }
15647         // void ChannelHandshakeConfig_set_negotiate_scid_privacy(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
15648 /* @internal */
15649 export function ChannelHandshakeConfig_set_negotiate_scid_privacy(this_ptr: number, val: boolean): void {
15650         if(!isWasmInitialized) {
15651                 throw new Error("initializeWasm() must be awaited first!");
15652         }
15653         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_negotiate_scid_privacy(this_ptr, val);
15654         // debug statements here
15655 }
15656         // 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, bool negotiate_scid_privacy_arg);
15657 /* @internal */
15658 export function ChannelHandshakeConfig_new(minimum_depth_arg: number, our_to_self_delay_arg: number, our_htlc_minimum_msat_arg: bigint, negotiate_scid_privacy_arg: boolean): number {
15659         if(!isWasmInitialized) {
15660                 throw new Error("initializeWasm() must be awaited first!");
15661         }
15662         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_new(minimum_depth_arg, our_to_self_delay_arg, our_htlc_minimum_msat_arg, negotiate_scid_privacy_arg);
15663         return nativeResponseValue;
15664 }
15665         // uintptr_t ChannelHandshakeConfig_clone_ptr(LDKChannelHandshakeConfig *NONNULL_PTR arg);
15666 /* @internal */
15667 export function ChannelHandshakeConfig_clone_ptr(arg: number): number {
15668         if(!isWasmInitialized) {
15669                 throw new Error("initializeWasm() must be awaited first!");
15670         }
15671         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_clone_ptr(arg);
15672         return nativeResponseValue;
15673 }
15674         // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig);
15675 /* @internal */
15676 export function ChannelHandshakeConfig_clone(orig: number): number {
15677         if(!isWasmInitialized) {
15678                 throw new Error("initializeWasm() must be awaited first!");
15679         }
15680         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_clone(orig);
15681         return nativeResponseValue;
15682 }
15683         // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void);
15684 /* @internal */
15685 export function ChannelHandshakeConfig_default(): number {
15686         if(!isWasmInitialized) {
15687                 throw new Error("initializeWasm() must be awaited first!");
15688         }
15689         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_default();
15690         return nativeResponseValue;
15691 }
15692         // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj);
15693 /* @internal */
15694 export function ChannelHandshakeLimits_free(this_obj: number): void {
15695         if(!isWasmInitialized) {
15696                 throw new Error("initializeWasm() must be awaited first!");
15697         }
15698         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_free(this_obj);
15699         // debug statements here
15700 }
15701         // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
15702 /* @internal */
15703 export function ChannelHandshakeLimits_get_min_funding_satoshis(this_ptr: number): bigint {
15704         if(!isWasmInitialized) {
15705                 throw new Error("initializeWasm() must be awaited first!");
15706         }
15707         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_funding_satoshis(this_ptr);
15708         return nativeResponseValue;
15709 }
15710         // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
15711 /* @internal */
15712 export function ChannelHandshakeLimits_set_min_funding_satoshis(this_ptr: number, val: bigint): void {
15713         if(!isWasmInitialized) {
15714                 throw new Error("initializeWasm() must be awaited first!");
15715         }
15716         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_funding_satoshis(this_ptr, val);
15717         // debug statements here
15718 }
15719         // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
15720 /* @internal */
15721 export function ChannelHandshakeLimits_get_max_htlc_minimum_msat(this_ptr: number): bigint {
15722         if(!isWasmInitialized) {
15723                 throw new Error("initializeWasm() must be awaited first!");
15724         }
15725         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_htlc_minimum_msat(this_ptr);
15726         return nativeResponseValue;
15727 }
15728         // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
15729 /* @internal */
15730 export function ChannelHandshakeLimits_set_max_htlc_minimum_msat(this_ptr: number, val: bigint): void {
15731         if(!isWasmInitialized) {
15732                 throw new Error("initializeWasm() must be awaited first!");
15733         }
15734         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_htlc_minimum_msat(this_ptr, val);
15735         // debug statements here
15736 }
15737         // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
15738 /* @internal */
15739 export function ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this_ptr: number): bigint {
15740         if(!isWasmInitialized) {
15741                 throw new Error("initializeWasm() must be awaited first!");
15742         }
15743         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this_ptr);
15744         return nativeResponseValue;
15745 }
15746         // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
15747 /* @internal */
15748 export function ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this_ptr: number, val: bigint): void {
15749         if(!isWasmInitialized) {
15750                 throw new Error("initializeWasm() must be awaited first!");
15751         }
15752         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this_ptr, val);
15753         // debug statements here
15754 }
15755         // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
15756 /* @internal */
15757 export function ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this_ptr: number): bigint {
15758         if(!isWasmInitialized) {
15759                 throw new Error("initializeWasm() must be awaited first!");
15760         }
15761         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this_ptr);
15762         return nativeResponseValue;
15763 }
15764         // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
15765 /* @internal */
15766 export function ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this_ptr: number, val: bigint): void {
15767         if(!isWasmInitialized) {
15768                 throw new Error("initializeWasm() must be awaited first!");
15769         }
15770         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this_ptr, val);
15771         // debug statements here
15772 }
15773         // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
15774 /* @internal */
15775 export function ChannelHandshakeLimits_get_min_max_accepted_htlcs(this_ptr: number): number {
15776         if(!isWasmInitialized) {
15777                 throw new Error("initializeWasm() must be awaited first!");
15778         }
15779         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_max_accepted_htlcs(this_ptr);
15780         return nativeResponseValue;
15781 }
15782         // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
15783 /* @internal */
15784 export function ChannelHandshakeLimits_set_min_max_accepted_htlcs(this_ptr: number, val: number): void {
15785         if(!isWasmInitialized) {
15786                 throw new Error("initializeWasm() must be awaited first!");
15787         }
15788         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_max_accepted_htlcs(this_ptr, val);
15789         // debug statements here
15790 }
15791         // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
15792 /* @internal */
15793 export function ChannelHandshakeLimits_get_max_minimum_depth(this_ptr: number): number {
15794         if(!isWasmInitialized) {
15795                 throw new Error("initializeWasm() must be awaited first!");
15796         }
15797         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_minimum_depth(this_ptr);
15798         return nativeResponseValue;
15799 }
15800         // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val);
15801 /* @internal */
15802 export function ChannelHandshakeLimits_set_max_minimum_depth(this_ptr: number, val: number): void {
15803         if(!isWasmInitialized) {
15804                 throw new Error("initializeWasm() must be awaited first!");
15805         }
15806         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_minimum_depth(this_ptr, val);
15807         // debug statements here
15808 }
15809         // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
15810 /* @internal */
15811 export function ChannelHandshakeLimits_get_force_announced_channel_preference(this_ptr: number): boolean {
15812         if(!isWasmInitialized) {
15813                 throw new Error("initializeWasm() must be awaited first!");
15814         }
15815         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_force_announced_channel_preference(this_ptr);
15816         return nativeResponseValue;
15817 }
15818         // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
15819 /* @internal */
15820 export function ChannelHandshakeLimits_set_force_announced_channel_preference(this_ptr: number, val: boolean): void {
15821         if(!isWasmInitialized) {
15822                 throw new Error("initializeWasm() must be awaited first!");
15823         }
15824         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_force_announced_channel_preference(this_ptr, val);
15825         // debug statements here
15826 }
15827         // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
15828 /* @internal */
15829 export function ChannelHandshakeLimits_get_their_to_self_delay(this_ptr: number): number {
15830         if(!isWasmInitialized) {
15831                 throw new Error("initializeWasm() must be awaited first!");
15832         }
15833         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_their_to_self_delay(this_ptr);
15834         return nativeResponseValue;
15835 }
15836         // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
15837 /* @internal */
15838 export function ChannelHandshakeLimits_set_their_to_self_delay(this_ptr: number, val: number): void {
15839         if(!isWasmInitialized) {
15840                 throw new Error("initializeWasm() must be awaited first!");
15841         }
15842         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_their_to_self_delay(this_ptr, val);
15843         // debug statements here
15844 }
15845         // 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);
15846 /* @internal */
15847 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 {
15848         if(!isWasmInitialized) {
15849                 throw new Error("initializeWasm() must be awaited first!");
15850         }
15851         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);
15852         return nativeResponseValue;
15853 }
15854         // uintptr_t ChannelHandshakeLimits_clone_ptr(LDKChannelHandshakeLimits *NONNULL_PTR arg);
15855 /* @internal */
15856 export function ChannelHandshakeLimits_clone_ptr(arg: number): number {
15857         if(!isWasmInitialized) {
15858                 throw new Error("initializeWasm() must be awaited first!");
15859         }
15860         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_clone_ptr(arg);
15861         return nativeResponseValue;
15862 }
15863         // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig);
15864 /* @internal */
15865 export function ChannelHandshakeLimits_clone(orig: number): number {
15866         if(!isWasmInitialized) {
15867                 throw new Error("initializeWasm() must be awaited first!");
15868         }
15869         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_clone(orig);
15870         return nativeResponseValue;
15871 }
15872         // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void);
15873 /* @internal */
15874 export function ChannelHandshakeLimits_default(): number {
15875         if(!isWasmInitialized) {
15876                 throw new Error("initializeWasm() must be awaited first!");
15877         }
15878         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_default();
15879         return nativeResponseValue;
15880 }
15881         // void ChannelConfig_free(struct LDKChannelConfig this_obj);
15882 /* @internal */
15883 export function ChannelConfig_free(this_obj: number): void {
15884         if(!isWasmInitialized) {
15885                 throw new Error("initializeWasm() must be awaited first!");
15886         }
15887         const nativeResponseValue = wasm.TS_ChannelConfig_free(this_obj);
15888         // debug statements here
15889 }
15890         // uint32_t ChannelConfig_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
15891 /* @internal */
15892 export function ChannelConfig_get_forwarding_fee_proportional_millionths(this_ptr: number): number {
15893         if(!isWasmInitialized) {
15894                 throw new Error("initializeWasm() must be awaited first!");
15895         }
15896         const nativeResponseValue = wasm.TS_ChannelConfig_get_forwarding_fee_proportional_millionths(this_ptr);
15897         return nativeResponseValue;
15898 }
15899         // void ChannelConfig_set_forwarding_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
15900 /* @internal */
15901 export function ChannelConfig_set_forwarding_fee_proportional_millionths(this_ptr: number, val: number): void {
15902         if(!isWasmInitialized) {
15903                 throw new Error("initializeWasm() must be awaited first!");
15904         }
15905         const nativeResponseValue = wasm.TS_ChannelConfig_set_forwarding_fee_proportional_millionths(this_ptr, val);
15906         // debug statements here
15907 }
15908         // uint32_t ChannelConfig_get_forwarding_fee_base_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
15909 /* @internal */
15910 export function ChannelConfig_get_forwarding_fee_base_msat(this_ptr: number): number {
15911         if(!isWasmInitialized) {
15912                 throw new Error("initializeWasm() must be awaited first!");
15913         }
15914         const nativeResponseValue = wasm.TS_ChannelConfig_get_forwarding_fee_base_msat(this_ptr);
15915         return nativeResponseValue;
15916 }
15917         // void ChannelConfig_set_forwarding_fee_base_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
15918 /* @internal */
15919 export function ChannelConfig_set_forwarding_fee_base_msat(this_ptr: number, val: number): void {
15920         if(!isWasmInitialized) {
15921                 throw new Error("initializeWasm() must be awaited first!");
15922         }
15923         const nativeResponseValue = wasm.TS_ChannelConfig_set_forwarding_fee_base_msat(this_ptr, val);
15924         // debug statements here
15925 }
15926         // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
15927 /* @internal */
15928 export function ChannelConfig_get_cltv_expiry_delta(this_ptr: number): number {
15929         if(!isWasmInitialized) {
15930                 throw new Error("initializeWasm() must be awaited first!");
15931         }
15932         const nativeResponseValue = wasm.TS_ChannelConfig_get_cltv_expiry_delta(this_ptr);
15933         return nativeResponseValue;
15934 }
15935         // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val);
15936 /* @internal */
15937 export function ChannelConfig_set_cltv_expiry_delta(this_ptr: number, val: number): void {
15938         if(!isWasmInitialized) {
15939                 throw new Error("initializeWasm() must be awaited first!");
15940         }
15941         const nativeResponseValue = wasm.TS_ChannelConfig_set_cltv_expiry_delta(this_ptr, val);
15942         // debug statements here
15943 }
15944         // bool ChannelConfig_get_announced_channel(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
15945 /* @internal */
15946 export function ChannelConfig_get_announced_channel(this_ptr: number): boolean {
15947         if(!isWasmInitialized) {
15948                 throw new Error("initializeWasm() must be awaited first!");
15949         }
15950         const nativeResponseValue = wasm.TS_ChannelConfig_get_announced_channel(this_ptr);
15951         return nativeResponseValue;
15952 }
15953         // void ChannelConfig_set_announced_channel(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val);
15954 /* @internal */
15955 export function ChannelConfig_set_announced_channel(this_ptr: number, val: boolean): void {
15956         if(!isWasmInitialized) {
15957                 throw new Error("initializeWasm() must be awaited first!");
15958         }
15959         const nativeResponseValue = wasm.TS_ChannelConfig_set_announced_channel(this_ptr, val);
15960         // debug statements here
15961 }
15962         // bool ChannelConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
15963 /* @internal */
15964 export function ChannelConfig_get_commit_upfront_shutdown_pubkey(this_ptr: number): boolean {
15965         if(!isWasmInitialized) {
15966                 throw new Error("initializeWasm() must be awaited first!");
15967         }
15968         const nativeResponseValue = wasm.TS_ChannelConfig_get_commit_upfront_shutdown_pubkey(this_ptr);
15969         return nativeResponseValue;
15970 }
15971         // void ChannelConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val);
15972 /* @internal */
15973 export function ChannelConfig_set_commit_upfront_shutdown_pubkey(this_ptr: number, val: boolean): void {
15974         if(!isWasmInitialized) {
15975                 throw new Error("initializeWasm() must be awaited first!");
15976         }
15977         const nativeResponseValue = wasm.TS_ChannelConfig_set_commit_upfront_shutdown_pubkey(this_ptr, val);
15978         // debug statements here
15979 }
15980         // uint64_t ChannelConfig_get_max_dust_htlc_exposure_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
15981 /* @internal */
15982 export function ChannelConfig_get_max_dust_htlc_exposure_msat(this_ptr: number): bigint {
15983         if(!isWasmInitialized) {
15984                 throw new Error("initializeWasm() must be awaited first!");
15985         }
15986         const nativeResponseValue = wasm.TS_ChannelConfig_get_max_dust_htlc_exposure_msat(this_ptr);
15987         return nativeResponseValue;
15988 }
15989         // void ChannelConfig_set_max_dust_htlc_exposure_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
15990 /* @internal */
15991 export function ChannelConfig_set_max_dust_htlc_exposure_msat(this_ptr: number, val: bigint): void {
15992         if(!isWasmInitialized) {
15993                 throw new Error("initializeWasm() must be awaited first!");
15994         }
15995         const nativeResponseValue = wasm.TS_ChannelConfig_set_max_dust_htlc_exposure_msat(this_ptr, val);
15996         // debug statements here
15997 }
15998         // uint64_t ChannelConfig_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
15999 /* @internal */
16000 export function ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this_ptr: number): bigint {
16001         if(!isWasmInitialized) {
16002                 throw new Error("initializeWasm() must be awaited first!");
16003         }
16004         const nativeResponseValue = wasm.TS_ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this_ptr);
16005         return nativeResponseValue;
16006 }
16007         // void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
16008 /* @internal */
16009 export function ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this_ptr: number, val: bigint): void {
16010         if(!isWasmInitialized) {
16011                 throw new Error("initializeWasm() must be awaited first!");
16012         }
16013         const nativeResponseValue = wasm.TS_ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this_ptr, val);
16014         // debug statements here
16015 }
16016         // 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);
16017 /* @internal */
16018 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 {
16019         if(!isWasmInitialized) {
16020                 throw new Error("initializeWasm() must be awaited first!");
16021         }
16022         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);
16023         return nativeResponseValue;
16024 }
16025         // uintptr_t ChannelConfig_clone_ptr(LDKChannelConfig *NONNULL_PTR arg);
16026 /* @internal */
16027 export function ChannelConfig_clone_ptr(arg: number): number {
16028         if(!isWasmInitialized) {
16029                 throw new Error("initializeWasm() must be awaited first!");
16030         }
16031         const nativeResponseValue = wasm.TS_ChannelConfig_clone_ptr(arg);
16032         return nativeResponseValue;
16033 }
16034         // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig);
16035 /* @internal */
16036 export function ChannelConfig_clone(orig: number): number {
16037         if(!isWasmInitialized) {
16038                 throw new Error("initializeWasm() must be awaited first!");
16039         }
16040         const nativeResponseValue = wasm.TS_ChannelConfig_clone(orig);
16041         return nativeResponseValue;
16042 }
16043         // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void);
16044 /* @internal */
16045 export function ChannelConfig_default(): number {
16046         if(!isWasmInitialized) {
16047                 throw new Error("initializeWasm() must be awaited first!");
16048         }
16049         const nativeResponseValue = wasm.TS_ChannelConfig_default();
16050         return nativeResponseValue;
16051 }
16052         // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj);
16053 /* @internal */
16054 export function ChannelConfig_write(obj: number): number {
16055         if(!isWasmInitialized) {
16056                 throw new Error("initializeWasm() must be awaited first!");
16057         }
16058         const nativeResponseValue = wasm.TS_ChannelConfig_write(obj);
16059         return nativeResponseValue;
16060 }
16061         // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser);
16062 /* @internal */
16063 export function ChannelConfig_read(ser: number): number {
16064         if(!isWasmInitialized) {
16065                 throw new Error("initializeWasm() must be awaited first!");
16066         }
16067         const nativeResponseValue = wasm.TS_ChannelConfig_read(ser);
16068         return nativeResponseValue;
16069 }
16070         // void UserConfig_free(struct LDKUserConfig this_obj);
16071 /* @internal */
16072 export function UserConfig_free(this_obj: number): void {
16073         if(!isWasmInitialized) {
16074                 throw new Error("initializeWasm() must be awaited first!");
16075         }
16076         const nativeResponseValue = wasm.TS_UserConfig_free(this_obj);
16077         // debug statements here
16078 }
16079         // struct LDKChannelHandshakeConfig UserConfig_get_own_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16080 /* @internal */
16081 export function UserConfig_get_own_channel_config(this_ptr: number): number {
16082         if(!isWasmInitialized) {
16083                 throw new Error("initializeWasm() must be awaited first!");
16084         }
16085         const nativeResponseValue = wasm.TS_UserConfig_get_own_channel_config(this_ptr);
16086         return nativeResponseValue;
16087 }
16088         // void UserConfig_set_own_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val);
16089 /* @internal */
16090 export function UserConfig_set_own_channel_config(this_ptr: number, val: number): void {
16091         if(!isWasmInitialized) {
16092                 throw new Error("initializeWasm() must be awaited first!");
16093         }
16094         const nativeResponseValue = wasm.TS_UserConfig_set_own_channel_config(this_ptr, val);
16095         // debug statements here
16096 }
16097         // struct LDKChannelHandshakeLimits UserConfig_get_peer_channel_config_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16098 /* @internal */
16099 export function UserConfig_get_peer_channel_config_limits(this_ptr: number): number {
16100         if(!isWasmInitialized) {
16101                 throw new Error("initializeWasm() must be awaited first!");
16102         }
16103         const nativeResponseValue = wasm.TS_UserConfig_get_peer_channel_config_limits(this_ptr);
16104         return nativeResponseValue;
16105 }
16106         // void UserConfig_set_peer_channel_config_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val);
16107 /* @internal */
16108 export function UserConfig_set_peer_channel_config_limits(this_ptr: number, val: number): void {
16109         if(!isWasmInitialized) {
16110                 throw new Error("initializeWasm() must be awaited first!");
16111         }
16112         const nativeResponseValue = wasm.TS_UserConfig_set_peer_channel_config_limits(this_ptr, val);
16113         // debug statements here
16114 }
16115         // struct LDKChannelConfig UserConfig_get_channel_options(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16116 /* @internal */
16117 export function UserConfig_get_channel_options(this_ptr: number): number {
16118         if(!isWasmInitialized) {
16119                 throw new Error("initializeWasm() must be awaited first!");
16120         }
16121         const nativeResponseValue = wasm.TS_UserConfig_get_channel_options(this_ptr);
16122         return nativeResponseValue;
16123 }
16124         // void UserConfig_set_channel_options(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
16125 /* @internal */
16126 export function UserConfig_set_channel_options(this_ptr: number, val: number): void {
16127         if(!isWasmInitialized) {
16128                 throw new Error("initializeWasm() must be awaited first!");
16129         }
16130         const nativeResponseValue = wasm.TS_UserConfig_set_channel_options(this_ptr, val);
16131         // debug statements here
16132 }
16133         // bool UserConfig_get_accept_forwards_to_priv_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16134 /* @internal */
16135 export function UserConfig_get_accept_forwards_to_priv_channels(this_ptr: number): boolean {
16136         if(!isWasmInitialized) {
16137                 throw new Error("initializeWasm() must be awaited first!");
16138         }
16139         const nativeResponseValue = wasm.TS_UserConfig_get_accept_forwards_to_priv_channels(this_ptr);
16140         return nativeResponseValue;
16141 }
16142         // void UserConfig_set_accept_forwards_to_priv_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
16143 /* @internal */
16144 export function UserConfig_set_accept_forwards_to_priv_channels(this_ptr: number, val: boolean): void {
16145         if(!isWasmInitialized) {
16146                 throw new Error("initializeWasm() must be awaited first!");
16147         }
16148         const nativeResponseValue = wasm.TS_UserConfig_set_accept_forwards_to_priv_channels(this_ptr, val);
16149         // debug statements here
16150 }
16151         // bool UserConfig_get_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16152 /* @internal */
16153 export function UserConfig_get_accept_inbound_channels(this_ptr: number): boolean {
16154         if(!isWasmInitialized) {
16155                 throw new Error("initializeWasm() must be awaited first!");
16156         }
16157         const nativeResponseValue = wasm.TS_UserConfig_get_accept_inbound_channels(this_ptr);
16158         return nativeResponseValue;
16159 }
16160         // void UserConfig_set_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
16161 /* @internal */
16162 export function UserConfig_set_accept_inbound_channels(this_ptr: number, val: boolean): void {
16163         if(!isWasmInitialized) {
16164                 throw new Error("initializeWasm() must be awaited first!");
16165         }
16166         const nativeResponseValue = wasm.TS_UserConfig_set_accept_inbound_channels(this_ptr, val);
16167         // debug statements here
16168 }
16169         // bool UserConfig_get_manually_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16170 /* @internal */
16171 export function UserConfig_get_manually_accept_inbound_channels(this_ptr: number): boolean {
16172         if(!isWasmInitialized) {
16173                 throw new Error("initializeWasm() must be awaited first!");
16174         }
16175         const nativeResponseValue = wasm.TS_UserConfig_get_manually_accept_inbound_channels(this_ptr);
16176         return nativeResponseValue;
16177 }
16178         // void UserConfig_set_manually_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
16179 /* @internal */
16180 export function UserConfig_set_manually_accept_inbound_channels(this_ptr: number, val: boolean): void {
16181         if(!isWasmInitialized) {
16182                 throw new Error("initializeWasm() must be awaited first!");
16183         }
16184         const nativeResponseValue = wasm.TS_UserConfig_set_manually_accept_inbound_channels(this_ptr, val);
16185         // debug statements here
16186 }
16187         // 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);
16188 /* @internal */
16189 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 {
16190         if(!isWasmInitialized) {
16191                 throw new Error("initializeWasm() must be awaited first!");
16192         }
16193         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);
16194         return nativeResponseValue;
16195 }
16196         // uintptr_t UserConfig_clone_ptr(LDKUserConfig *NONNULL_PTR arg);
16197 /* @internal */
16198 export function UserConfig_clone_ptr(arg: number): number {
16199         if(!isWasmInitialized) {
16200                 throw new Error("initializeWasm() must be awaited first!");
16201         }
16202         const nativeResponseValue = wasm.TS_UserConfig_clone_ptr(arg);
16203         return nativeResponseValue;
16204 }
16205         // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig);
16206 /* @internal */
16207 export function UserConfig_clone(orig: number): number {
16208         if(!isWasmInitialized) {
16209                 throw new Error("initializeWasm() must be awaited first!");
16210         }
16211         const nativeResponseValue = wasm.TS_UserConfig_clone(orig);
16212         return nativeResponseValue;
16213 }
16214         // MUST_USE_RES struct LDKUserConfig UserConfig_default(void);
16215 /* @internal */
16216 export function UserConfig_default(): number {
16217         if(!isWasmInitialized) {
16218                 throw new Error("initializeWasm() must be awaited first!");
16219         }
16220         const nativeResponseValue = wasm.TS_UserConfig_default();
16221         return nativeResponseValue;
16222 }
16223         // void BestBlock_free(struct LDKBestBlock this_obj);
16224 /* @internal */
16225 export function BestBlock_free(this_obj: number): void {
16226         if(!isWasmInitialized) {
16227                 throw new Error("initializeWasm() must be awaited first!");
16228         }
16229         const nativeResponseValue = wasm.TS_BestBlock_free(this_obj);
16230         // debug statements here
16231 }
16232         // uintptr_t BestBlock_clone_ptr(LDKBestBlock *NONNULL_PTR arg);
16233 /* @internal */
16234 export function BestBlock_clone_ptr(arg: number): number {
16235         if(!isWasmInitialized) {
16236                 throw new Error("initializeWasm() must be awaited first!");
16237         }
16238         const nativeResponseValue = wasm.TS_BestBlock_clone_ptr(arg);
16239         return nativeResponseValue;
16240 }
16241         // struct LDKBestBlock BestBlock_clone(const struct LDKBestBlock *NONNULL_PTR orig);
16242 /* @internal */
16243 export function BestBlock_clone(orig: number): number {
16244         if(!isWasmInitialized) {
16245                 throw new Error("initializeWasm() must be awaited first!");
16246         }
16247         const nativeResponseValue = wasm.TS_BestBlock_clone(orig);
16248         return nativeResponseValue;
16249 }
16250         // MUST_USE_RES struct LDKBestBlock BestBlock_from_genesis(enum LDKNetwork network);
16251 /* @internal */
16252 export function BestBlock_from_genesis(network: Network): number {
16253         if(!isWasmInitialized) {
16254                 throw new Error("initializeWasm() must be awaited first!");
16255         }
16256         const nativeResponseValue = wasm.TS_BestBlock_from_genesis(network);
16257         return nativeResponseValue;
16258 }
16259         // MUST_USE_RES struct LDKBestBlock BestBlock_new(struct LDKThirtyTwoBytes block_hash, uint32_t height);
16260 /* @internal */
16261 export function BestBlock_new(block_hash: number, height: number): number {
16262         if(!isWasmInitialized) {
16263                 throw new Error("initializeWasm() must be awaited first!");
16264         }
16265         const nativeResponseValue = wasm.TS_BestBlock_new(block_hash, height);
16266         return nativeResponseValue;
16267 }
16268         // MUST_USE_RES struct LDKThirtyTwoBytes BestBlock_block_hash(const struct LDKBestBlock *NONNULL_PTR this_arg);
16269 /* @internal */
16270 export function BestBlock_block_hash(this_arg: number): number {
16271         if(!isWasmInitialized) {
16272                 throw new Error("initializeWasm() must be awaited first!");
16273         }
16274         const nativeResponseValue = wasm.TS_BestBlock_block_hash(this_arg);
16275         return nativeResponseValue;
16276 }
16277         // MUST_USE_RES uint32_t BestBlock_height(const struct LDKBestBlock *NONNULL_PTR this_arg);
16278 /* @internal */
16279 export function BestBlock_height(this_arg: number): number {
16280         if(!isWasmInitialized) {
16281                 throw new Error("initializeWasm() must be awaited first!");
16282         }
16283         const nativeResponseValue = wasm.TS_BestBlock_height(this_arg);
16284         return nativeResponseValue;
16285 }
16286         // enum LDKAccessError AccessError_clone(const enum LDKAccessError *NONNULL_PTR orig);
16287 /* @internal */
16288 export function AccessError_clone(orig: number): AccessError {
16289         if(!isWasmInitialized) {
16290                 throw new Error("initializeWasm() must be awaited first!");
16291         }
16292         const nativeResponseValue = wasm.TS_AccessError_clone(orig);
16293         return nativeResponseValue;
16294 }
16295         // enum LDKAccessError AccessError_unknown_chain(void);
16296 /* @internal */
16297 export function AccessError_unknown_chain(): AccessError {
16298         if(!isWasmInitialized) {
16299                 throw new Error("initializeWasm() must be awaited first!");
16300         }
16301         const nativeResponseValue = wasm.TS_AccessError_unknown_chain();
16302         return nativeResponseValue;
16303 }
16304         // enum LDKAccessError AccessError_unknown_tx(void);
16305 /* @internal */
16306 export function AccessError_unknown_tx(): AccessError {
16307         if(!isWasmInitialized) {
16308                 throw new Error("initializeWasm() must be awaited first!");
16309         }
16310         const nativeResponseValue = wasm.TS_AccessError_unknown_tx();
16311         return nativeResponseValue;
16312 }
16313         // void Access_free(struct LDKAccess this_ptr);
16314 /* @internal */
16315 export function Access_free(this_ptr: number): void {
16316         if(!isWasmInitialized) {
16317                 throw new Error("initializeWasm() must be awaited first!");
16318         }
16319         const nativeResponseValue = wasm.TS_Access_free(this_ptr);
16320         // debug statements here
16321 }
16322         // void Listen_free(struct LDKListen this_ptr);
16323 /* @internal */
16324 export function Listen_free(this_ptr: number): void {
16325         if(!isWasmInitialized) {
16326                 throw new Error("initializeWasm() must be awaited first!");
16327         }
16328         const nativeResponseValue = wasm.TS_Listen_free(this_ptr);
16329         // debug statements here
16330 }
16331         // void Confirm_free(struct LDKConfirm this_ptr);
16332 /* @internal */
16333 export function Confirm_free(this_ptr: number): void {
16334         if(!isWasmInitialized) {
16335                 throw new Error("initializeWasm() must be awaited first!");
16336         }
16337         const nativeResponseValue = wasm.TS_Confirm_free(this_ptr);
16338         // debug statements here
16339 }
16340         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_clone(const enum LDKChannelMonitorUpdateErr *NONNULL_PTR orig);
16341 /* @internal */
16342 export function ChannelMonitorUpdateErr_clone(orig: number): ChannelMonitorUpdateErr {
16343         if(!isWasmInitialized) {
16344                 throw new Error("initializeWasm() must be awaited first!");
16345         }
16346         const nativeResponseValue = wasm.TS_ChannelMonitorUpdateErr_clone(orig);
16347         return nativeResponseValue;
16348 }
16349         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_temporary_failure(void);
16350 /* @internal */
16351 export function ChannelMonitorUpdateErr_temporary_failure(): ChannelMonitorUpdateErr {
16352         if(!isWasmInitialized) {
16353                 throw new Error("initializeWasm() must be awaited first!");
16354         }
16355         const nativeResponseValue = wasm.TS_ChannelMonitorUpdateErr_temporary_failure();
16356         return nativeResponseValue;
16357 }
16358         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_permanent_failure(void);
16359 /* @internal */
16360 export function ChannelMonitorUpdateErr_permanent_failure(): ChannelMonitorUpdateErr {
16361         if(!isWasmInitialized) {
16362                 throw new Error("initializeWasm() must be awaited first!");
16363         }
16364         const nativeResponseValue = wasm.TS_ChannelMonitorUpdateErr_permanent_failure();
16365         return nativeResponseValue;
16366 }
16367         // void Watch_free(struct LDKWatch this_ptr);
16368 /* @internal */
16369 export function Watch_free(this_ptr: number): void {
16370         if(!isWasmInitialized) {
16371                 throw new Error("initializeWasm() must be awaited first!");
16372         }
16373         const nativeResponseValue = wasm.TS_Watch_free(this_ptr);
16374         // debug statements here
16375 }
16376         // void Filter_free(struct LDKFilter this_ptr);
16377 /* @internal */
16378 export function Filter_free(this_ptr: number): void {
16379         if(!isWasmInitialized) {
16380                 throw new Error("initializeWasm() must be awaited first!");
16381         }
16382         const nativeResponseValue = wasm.TS_Filter_free(this_ptr);
16383         // debug statements here
16384 }
16385         // void WatchedOutput_free(struct LDKWatchedOutput this_obj);
16386 /* @internal */
16387 export function WatchedOutput_free(this_obj: number): void {
16388         if(!isWasmInitialized) {
16389                 throw new Error("initializeWasm() must be awaited first!");
16390         }
16391         const nativeResponseValue = wasm.TS_WatchedOutput_free(this_obj);
16392         // debug statements here
16393 }
16394         // struct LDKThirtyTwoBytes WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
16395 /* @internal */
16396 export function WatchedOutput_get_block_hash(this_ptr: number): number {
16397         if(!isWasmInitialized) {
16398                 throw new Error("initializeWasm() must be awaited first!");
16399         }
16400         const nativeResponseValue = wasm.TS_WatchedOutput_get_block_hash(this_ptr);
16401         return nativeResponseValue;
16402 }
16403         // void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
16404 /* @internal */
16405 export function WatchedOutput_set_block_hash(this_ptr: number, val: number): void {
16406         if(!isWasmInitialized) {
16407                 throw new Error("initializeWasm() must be awaited first!");
16408         }
16409         const nativeResponseValue = wasm.TS_WatchedOutput_set_block_hash(this_ptr, val);
16410         // debug statements here
16411 }
16412         // struct LDKOutPoint WatchedOutput_get_outpoint(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
16413 /* @internal */
16414 export function WatchedOutput_get_outpoint(this_ptr: number): number {
16415         if(!isWasmInitialized) {
16416                 throw new Error("initializeWasm() must be awaited first!");
16417         }
16418         const nativeResponseValue = wasm.TS_WatchedOutput_get_outpoint(this_ptr);
16419         return nativeResponseValue;
16420 }
16421         // void WatchedOutput_set_outpoint(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
16422 /* @internal */
16423 export function WatchedOutput_set_outpoint(this_ptr: number, val: number): void {
16424         if(!isWasmInitialized) {
16425                 throw new Error("initializeWasm() must be awaited first!");
16426         }
16427         const nativeResponseValue = wasm.TS_WatchedOutput_set_outpoint(this_ptr, val);
16428         // debug statements here
16429 }
16430         // struct LDKu8slice WatchedOutput_get_script_pubkey(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
16431 /* @internal */
16432 export function WatchedOutput_get_script_pubkey(this_ptr: number): number {
16433         if(!isWasmInitialized) {
16434                 throw new Error("initializeWasm() must be awaited first!");
16435         }
16436         const nativeResponseValue = wasm.TS_WatchedOutput_get_script_pubkey(this_ptr);
16437         return nativeResponseValue;
16438 }
16439         // void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
16440 /* @internal */
16441 export function WatchedOutput_set_script_pubkey(this_ptr: number, val: number): void {
16442         if(!isWasmInitialized) {
16443                 throw new Error("initializeWasm() must be awaited first!");
16444         }
16445         const nativeResponseValue = wasm.TS_WatchedOutput_set_script_pubkey(this_ptr, val);
16446         // debug statements here
16447 }
16448         // MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKThirtyTwoBytes block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg);
16449 /* @internal */
16450 export function WatchedOutput_new(block_hash_arg: number, outpoint_arg: number, script_pubkey_arg: number): number {
16451         if(!isWasmInitialized) {
16452                 throw new Error("initializeWasm() must be awaited first!");
16453         }
16454         const nativeResponseValue = wasm.TS_WatchedOutput_new(block_hash_arg, outpoint_arg, script_pubkey_arg);
16455         return nativeResponseValue;
16456 }
16457         // uintptr_t WatchedOutput_clone_ptr(LDKWatchedOutput *NONNULL_PTR arg);
16458 /* @internal */
16459 export function WatchedOutput_clone_ptr(arg: number): number {
16460         if(!isWasmInitialized) {
16461                 throw new Error("initializeWasm() must be awaited first!");
16462         }
16463         const nativeResponseValue = wasm.TS_WatchedOutput_clone_ptr(arg);
16464         return nativeResponseValue;
16465 }
16466         // struct LDKWatchedOutput WatchedOutput_clone(const struct LDKWatchedOutput *NONNULL_PTR orig);
16467 /* @internal */
16468 export function WatchedOutput_clone(orig: number): number {
16469         if(!isWasmInitialized) {
16470                 throw new Error("initializeWasm() must be awaited first!");
16471         }
16472         const nativeResponseValue = wasm.TS_WatchedOutput_clone(orig);
16473         return nativeResponseValue;
16474 }
16475         // uint64_t WatchedOutput_hash(const struct LDKWatchedOutput *NONNULL_PTR o);
16476 /* @internal */
16477 export function WatchedOutput_hash(o: number): bigint {
16478         if(!isWasmInitialized) {
16479                 throw new Error("initializeWasm() must be awaited first!");
16480         }
16481         const nativeResponseValue = wasm.TS_WatchedOutput_hash(o);
16482         return nativeResponseValue;
16483 }
16484         // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr);
16485 /* @internal */
16486 export function BroadcasterInterface_free(this_ptr: number): void {
16487         if(!isWasmInitialized) {
16488                 throw new Error("initializeWasm() must be awaited first!");
16489         }
16490         const nativeResponseValue = wasm.TS_BroadcasterInterface_free(this_ptr);
16491         // debug statements here
16492 }
16493         // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig);
16494 /* @internal */
16495 export function ConfirmationTarget_clone(orig: number): ConfirmationTarget {
16496         if(!isWasmInitialized) {
16497                 throw new Error("initializeWasm() must be awaited first!");
16498         }
16499         const nativeResponseValue = wasm.TS_ConfirmationTarget_clone(orig);
16500         return nativeResponseValue;
16501 }
16502         // enum LDKConfirmationTarget ConfirmationTarget_background(void);
16503 /* @internal */
16504 export function ConfirmationTarget_background(): ConfirmationTarget {
16505         if(!isWasmInitialized) {
16506                 throw new Error("initializeWasm() must be awaited first!");
16507         }
16508         const nativeResponseValue = wasm.TS_ConfirmationTarget_background();
16509         return nativeResponseValue;
16510 }
16511         // enum LDKConfirmationTarget ConfirmationTarget_normal(void);
16512 /* @internal */
16513 export function ConfirmationTarget_normal(): ConfirmationTarget {
16514         if(!isWasmInitialized) {
16515                 throw new Error("initializeWasm() must be awaited first!");
16516         }
16517         const nativeResponseValue = wasm.TS_ConfirmationTarget_normal();
16518         return nativeResponseValue;
16519 }
16520         // enum LDKConfirmationTarget ConfirmationTarget_high_priority(void);
16521 /* @internal */
16522 export function ConfirmationTarget_high_priority(): ConfirmationTarget {
16523         if(!isWasmInitialized) {
16524                 throw new Error("initializeWasm() must be awaited first!");
16525         }
16526         const nativeResponseValue = wasm.TS_ConfirmationTarget_high_priority();
16527         return nativeResponseValue;
16528 }
16529         // bool ConfirmationTarget_eq(const enum LDKConfirmationTarget *NONNULL_PTR a, const enum LDKConfirmationTarget *NONNULL_PTR b);
16530 /* @internal */
16531 export function ConfirmationTarget_eq(a: number, b: number): boolean {
16532         if(!isWasmInitialized) {
16533                 throw new Error("initializeWasm() must be awaited first!");
16534         }
16535         const nativeResponseValue = wasm.TS_ConfirmationTarget_eq(a, b);
16536         return nativeResponseValue;
16537 }
16538         // void FeeEstimator_free(struct LDKFeeEstimator this_ptr);
16539 /* @internal */
16540 export function FeeEstimator_free(this_ptr: number): void {
16541         if(!isWasmInitialized) {
16542                 throw new Error("initializeWasm() must be awaited first!");
16543         }
16544         const nativeResponseValue = wasm.TS_FeeEstimator_free(this_ptr);
16545         // debug statements here
16546 }
16547         // void MonitorUpdateId_free(struct LDKMonitorUpdateId this_obj);
16548 /* @internal */
16549 export function MonitorUpdateId_free(this_obj: number): void {
16550         if(!isWasmInitialized) {
16551                 throw new Error("initializeWasm() must be awaited first!");
16552         }
16553         const nativeResponseValue = wasm.TS_MonitorUpdateId_free(this_obj);
16554         // debug statements here
16555 }
16556         // uintptr_t MonitorUpdateId_clone_ptr(LDKMonitorUpdateId *NONNULL_PTR arg);
16557 /* @internal */
16558 export function MonitorUpdateId_clone_ptr(arg: number): number {
16559         if(!isWasmInitialized) {
16560                 throw new Error("initializeWasm() must be awaited first!");
16561         }
16562         const nativeResponseValue = wasm.TS_MonitorUpdateId_clone_ptr(arg);
16563         return nativeResponseValue;
16564 }
16565         // struct LDKMonitorUpdateId MonitorUpdateId_clone(const struct LDKMonitorUpdateId *NONNULL_PTR orig);
16566 /* @internal */
16567 export function MonitorUpdateId_clone(orig: number): number {
16568         if(!isWasmInitialized) {
16569                 throw new Error("initializeWasm() must be awaited first!");
16570         }
16571         const nativeResponseValue = wasm.TS_MonitorUpdateId_clone(orig);
16572         return nativeResponseValue;
16573 }
16574         // uint64_t MonitorUpdateId_hash(const struct LDKMonitorUpdateId *NONNULL_PTR o);
16575 /* @internal */
16576 export function MonitorUpdateId_hash(o: number): bigint {
16577         if(!isWasmInitialized) {
16578                 throw new Error("initializeWasm() must be awaited first!");
16579         }
16580         const nativeResponseValue = wasm.TS_MonitorUpdateId_hash(o);
16581         return nativeResponseValue;
16582 }
16583         // bool MonitorUpdateId_eq(const struct LDKMonitorUpdateId *NONNULL_PTR a, const struct LDKMonitorUpdateId *NONNULL_PTR b);
16584 /* @internal */
16585 export function MonitorUpdateId_eq(a: number, b: number): boolean {
16586         if(!isWasmInitialized) {
16587                 throw new Error("initializeWasm() must be awaited first!");
16588         }
16589         const nativeResponseValue = wasm.TS_MonitorUpdateId_eq(a, b);
16590         return nativeResponseValue;
16591 }
16592         // void Persist_free(struct LDKPersist this_ptr);
16593 /* @internal */
16594 export function Persist_free(this_ptr: number): void {
16595         if(!isWasmInitialized) {
16596                 throw new Error("initializeWasm() must be awaited first!");
16597         }
16598         const nativeResponseValue = wasm.TS_Persist_free(this_ptr);
16599         // debug statements here
16600 }
16601         // void LockedChannelMonitor_free(struct LDKLockedChannelMonitor this_obj);
16602 /* @internal */
16603 export function LockedChannelMonitor_free(this_obj: number): void {
16604         if(!isWasmInitialized) {
16605                 throw new Error("initializeWasm() must be awaited first!");
16606         }
16607         const nativeResponseValue = wasm.TS_LockedChannelMonitor_free(this_obj);
16608         // debug statements here
16609 }
16610         // void ChainMonitor_free(struct LDKChainMonitor this_obj);
16611 /* @internal */
16612 export function ChainMonitor_free(this_obj: number): void {
16613         if(!isWasmInitialized) {
16614                 throw new Error("initializeWasm() must be awaited first!");
16615         }
16616         const nativeResponseValue = wasm.TS_ChainMonitor_free(this_obj);
16617         // debug statements here
16618 }
16619         // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKCOption_FilterZ chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister);
16620 /* @internal */
16621 export function ChainMonitor_new(chain_source: number, broadcaster: number, logger: number, feeest: number, persister: number): number {
16622         if(!isWasmInitialized) {
16623                 throw new Error("initializeWasm() must be awaited first!");
16624         }
16625         const nativeResponseValue = wasm.TS_ChainMonitor_new(chain_source, broadcaster, logger, feeest, persister);
16626         return nativeResponseValue;
16627 }
16628         // MUST_USE_RES struct LDKCVec_BalanceZ ChainMonitor_get_claimable_balances(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKCVec_ChannelDetailsZ ignored_channels);
16629 /* @internal */
16630 export function ChainMonitor_get_claimable_balances(this_arg: number, ignored_channels: number): number {
16631         if(!isWasmInitialized) {
16632                 throw new Error("initializeWasm() must be awaited first!");
16633         }
16634         const nativeResponseValue = wasm.TS_ChainMonitor_get_claimable_balances(this_arg, ignored_channels);
16635         return nativeResponseValue;
16636 }
16637         // MUST_USE_RES struct LDKCResult_LockedChannelMonitorNoneZ ChainMonitor_get_monitor(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo);
16638 /* @internal */
16639 export function ChainMonitor_get_monitor(this_arg: number, funding_txo: number): number {
16640         if(!isWasmInitialized) {
16641                 throw new Error("initializeWasm() must be awaited first!");
16642         }
16643         const nativeResponseValue = wasm.TS_ChainMonitor_get_monitor(this_arg, funding_txo);
16644         return nativeResponseValue;
16645 }
16646         // MUST_USE_RES struct LDKCVec_OutPointZ ChainMonitor_list_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg);
16647 /* @internal */
16648 export function ChainMonitor_list_monitors(this_arg: number): number {
16649         if(!isWasmInitialized) {
16650                 throw new Error("initializeWasm() must be awaited first!");
16651         }
16652         const nativeResponseValue = wasm.TS_ChainMonitor_list_monitors(this_arg);
16653         return nativeResponseValue;
16654 }
16655         // 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);
16656 /* @internal */
16657 export function ChainMonitor_channel_monitor_updated(this_arg: number, funding_txo: number, completed_update_id: number): number {
16658         if(!isWasmInitialized) {
16659                 throw new Error("initializeWasm() must be awaited first!");
16660         }
16661         const nativeResponseValue = wasm.TS_ChainMonitor_channel_monitor_updated(this_arg, funding_txo, completed_update_id);
16662         return nativeResponseValue;
16663 }
16664         // struct LDKListen ChainMonitor_as_Listen(const struct LDKChainMonitor *NONNULL_PTR this_arg);
16665 /* @internal */
16666 export function ChainMonitor_as_Listen(this_arg: number): number {
16667         if(!isWasmInitialized) {
16668                 throw new Error("initializeWasm() must be awaited first!");
16669         }
16670         const nativeResponseValue = wasm.TS_ChainMonitor_as_Listen(this_arg);
16671         return nativeResponseValue;
16672 }
16673         // struct LDKConfirm ChainMonitor_as_Confirm(const struct LDKChainMonitor *NONNULL_PTR this_arg);
16674 /* @internal */
16675 export function ChainMonitor_as_Confirm(this_arg: number): number {
16676         if(!isWasmInitialized) {
16677                 throw new Error("initializeWasm() must be awaited first!");
16678         }
16679         const nativeResponseValue = wasm.TS_ChainMonitor_as_Confirm(this_arg);
16680         return nativeResponseValue;
16681 }
16682         // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg);
16683 /* @internal */
16684 export function ChainMonitor_as_Watch(this_arg: number): number {
16685         if(!isWasmInitialized) {
16686                 throw new Error("initializeWasm() must be awaited first!");
16687         }
16688         const nativeResponseValue = wasm.TS_ChainMonitor_as_Watch(this_arg);
16689         return nativeResponseValue;
16690 }
16691         // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg);
16692 /* @internal */
16693 export function ChainMonitor_as_EventsProvider(this_arg: number): number {
16694         if(!isWasmInitialized) {
16695                 throw new Error("initializeWasm() must be awaited first!");
16696         }
16697         const nativeResponseValue = wasm.TS_ChainMonitor_as_EventsProvider(this_arg);
16698         return nativeResponseValue;
16699 }
16700         // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj);
16701 /* @internal */
16702 export function ChannelMonitorUpdate_free(this_obj: number): void {
16703         if(!isWasmInitialized) {
16704                 throw new Error("initializeWasm() must be awaited first!");
16705         }
16706         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_free(this_obj);
16707         // debug statements here
16708 }
16709         // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr);
16710 /* @internal */
16711 export function ChannelMonitorUpdate_get_update_id(this_ptr: number): bigint {
16712         if(!isWasmInitialized) {
16713                 throw new Error("initializeWasm() must be awaited first!");
16714         }
16715         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_get_update_id(this_ptr);
16716         return nativeResponseValue;
16717 }
16718         // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val);
16719 /* @internal */
16720 export function ChannelMonitorUpdate_set_update_id(this_ptr: number, val: bigint): void {
16721         if(!isWasmInitialized) {
16722                 throw new Error("initializeWasm() must be awaited first!");
16723         }
16724         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_set_update_id(this_ptr, val);
16725         // debug statements here
16726 }
16727         // uintptr_t ChannelMonitorUpdate_clone_ptr(LDKChannelMonitorUpdate *NONNULL_PTR arg);
16728 /* @internal */
16729 export function ChannelMonitorUpdate_clone_ptr(arg: number): number {
16730         if(!isWasmInitialized) {
16731                 throw new Error("initializeWasm() must be awaited first!");
16732         }
16733         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_clone_ptr(arg);
16734         return nativeResponseValue;
16735 }
16736         // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig);
16737 /* @internal */
16738 export function ChannelMonitorUpdate_clone(orig: number): number {
16739         if(!isWasmInitialized) {
16740                 throw new Error("initializeWasm() must be awaited first!");
16741         }
16742         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_clone(orig);
16743         return nativeResponseValue;
16744 }
16745         // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj);
16746 /* @internal */
16747 export function ChannelMonitorUpdate_write(obj: number): number {
16748         if(!isWasmInitialized) {
16749                 throw new Error("initializeWasm() must be awaited first!");
16750         }
16751         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_write(obj);
16752         return nativeResponseValue;
16753 }
16754         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser);
16755 /* @internal */
16756 export function ChannelMonitorUpdate_read(ser: number): number {
16757         if(!isWasmInitialized) {
16758                 throw new Error("initializeWasm() must be awaited first!");
16759         }
16760         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_read(ser);
16761         return nativeResponseValue;
16762 }
16763         // void MonitorEvent_free(struct LDKMonitorEvent this_ptr);
16764 /* @internal */
16765 export function MonitorEvent_free(this_ptr: number): void {
16766         if(!isWasmInitialized) {
16767                 throw new Error("initializeWasm() must be awaited first!");
16768         }
16769         const nativeResponseValue = wasm.TS_MonitorEvent_free(this_ptr);
16770         // debug statements here
16771 }
16772         // uintptr_t MonitorEvent_clone_ptr(LDKMonitorEvent *NONNULL_PTR arg);
16773 /* @internal */
16774 export function MonitorEvent_clone_ptr(arg: number): number {
16775         if(!isWasmInitialized) {
16776                 throw new Error("initializeWasm() must be awaited first!");
16777         }
16778         const nativeResponseValue = wasm.TS_MonitorEvent_clone_ptr(arg);
16779         return nativeResponseValue;
16780 }
16781         // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig);
16782 /* @internal */
16783 export function MonitorEvent_clone(orig: number): number {
16784         if(!isWasmInitialized) {
16785                 throw new Error("initializeWasm() must be awaited first!");
16786         }
16787         const nativeResponseValue = wasm.TS_MonitorEvent_clone(orig);
16788         return nativeResponseValue;
16789 }
16790         // struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a);
16791 /* @internal */
16792 export function MonitorEvent_htlcevent(a: number): number {
16793         if(!isWasmInitialized) {
16794                 throw new Error("initializeWasm() must be awaited first!");
16795         }
16796         const nativeResponseValue = wasm.TS_MonitorEvent_htlcevent(a);
16797         return nativeResponseValue;
16798 }
16799         // struct LDKMonitorEvent MonitorEvent_commitment_tx_confirmed(struct LDKOutPoint a);
16800 /* @internal */
16801 export function MonitorEvent_commitment_tx_confirmed(a: number): number {
16802         if(!isWasmInitialized) {
16803                 throw new Error("initializeWasm() must be awaited first!");
16804         }
16805         const nativeResponseValue = wasm.TS_MonitorEvent_commitment_tx_confirmed(a);
16806         return nativeResponseValue;
16807 }
16808         // struct LDKMonitorEvent MonitorEvent_update_completed(struct LDKOutPoint funding_txo, uint64_t monitor_update_id);
16809 /* @internal */
16810 export function MonitorEvent_update_completed(funding_txo: number, monitor_update_id: bigint): number {
16811         if(!isWasmInitialized) {
16812                 throw new Error("initializeWasm() must be awaited first!");
16813         }
16814         const nativeResponseValue = wasm.TS_MonitorEvent_update_completed(funding_txo, monitor_update_id);
16815         return nativeResponseValue;
16816 }
16817         // struct LDKMonitorEvent MonitorEvent_update_failed(struct LDKOutPoint a);
16818 /* @internal */
16819 export function MonitorEvent_update_failed(a: number): number {
16820         if(!isWasmInitialized) {
16821                 throw new Error("initializeWasm() must be awaited first!");
16822         }
16823         const nativeResponseValue = wasm.TS_MonitorEvent_update_failed(a);
16824         return nativeResponseValue;
16825 }
16826         // struct LDKCVec_u8Z MonitorEvent_write(const struct LDKMonitorEvent *NONNULL_PTR obj);
16827 /* @internal */
16828 export function MonitorEvent_write(obj: number): number {
16829         if(!isWasmInitialized) {
16830                 throw new Error("initializeWasm() must be awaited first!");
16831         }
16832         const nativeResponseValue = wasm.TS_MonitorEvent_write(obj);
16833         return nativeResponseValue;
16834 }
16835         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(struct LDKu8slice ser);
16836 /* @internal */
16837 export function MonitorEvent_read(ser: number): number {
16838         if(!isWasmInitialized) {
16839                 throw new Error("initializeWasm() must be awaited first!");
16840         }
16841         const nativeResponseValue = wasm.TS_MonitorEvent_read(ser);
16842         return nativeResponseValue;
16843 }
16844         // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj);
16845 /* @internal */
16846 export function HTLCUpdate_free(this_obj: number): void {
16847         if(!isWasmInitialized) {
16848                 throw new Error("initializeWasm() must be awaited first!");
16849         }
16850         const nativeResponseValue = wasm.TS_HTLCUpdate_free(this_obj);
16851         // debug statements here
16852 }
16853         // uintptr_t HTLCUpdate_clone_ptr(LDKHTLCUpdate *NONNULL_PTR arg);
16854 /* @internal */
16855 export function HTLCUpdate_clone_ptr(arg: number): number {
16856         if(!isWasmInitialized) {
16857                 throw new Error("initializeWasm() must be awaited first!");
16858         }
16859         const nativeResponseValue = wasm.TS_HTLCUpdate_clone_ptr(arg);
16860         return nativeResponseValue;
16861 }
16862         // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig);
16863 /* @internal */
16864 export function HTLCUpdate_clone(orig: number): number {
16865         if(!isWasmInitialized) {
16866                 throw new Error("initializeWasm() must be awaited first!");
16867         }
16868         const nativeResponseValue = wasm.TS_HTLCUpdate_clone(orig);
16869         return nativeResponseValue;
16870 }
16871         // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj);
16872 /* @internal */
16873 export function HTLCUpdate_write(obj: number): number {
16874         if(!isWasmInitialized) {
16875                 throw new Error("initializeWasm() must be awaited first!");
16876         }
16877         const nativeResponseValue = wasm.TS_HTLCUpdate_write(obj);
16878         return nativeResponseValue;
16879 }
16880         // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser);
16881 /* @internal */
16882 export function HTLCUpdate_read(ser: number): number {
16883         if(!isWasmInitialized) {
16884                 throw new Error("initializeWasm() must be awaited first!");
16885         }
16886         const nativeResponseValue = wasm.TS_HTLCUpdate_read(ser);
16887         return nativeResponseValue;
16888 }
16889         // void Balance_free(struct LDKBalance this_ptr);
16890 /* @internal */
16891 export function Balance_free(this_ptr: number): void {
16892         if(!isWasmInitialized) {
16893                 throw new Error("initializeWasm() must be awaited first!");
16894         }
16895         const nativeResponseValue = wasm.TS_Balance_free(this_ptr);
16896         // debug statements here
16897 }
16898         // uintptr_t Balance_clone_ptr(LDKBalance *NONNULL_PTR arg);
16899 /* @internal */
16900 export function Balance_clone_ptr(arg: number): number {
16901         if(!isWasmInitialized) {
16902                 throw new Error("initializeWasm() must be awaited first!");
16903         }
16904         const nativeResponseValue = wasm.TS_Balance_clone_ptr(arg);
16905         return nativeResponseValue;
16906 }
16907         // struct LDKBalance Balance_clone(const struct LDKBalance *NONNULL_PTR orig);
16908 /* @internal */
16909 export function Balance_clone(orig: number): number {
16910         if(!isWasmInitialized) {
16911                 throw new Error("initializeWasm() must be awaited first!");
16912         }
16913         const nativeResponseValue = wasm.TS_Balance_clone(orig);
16914         return nativeResponseValue;
16915 }
16916         // struct LDKBalance Balance_claimable_on_channel_close(uint64_t claimable_amount_satoshis);
16917 /* @internal */
16918 export function Balance_claimable_on_channel_close(claimable_amount_satoshis: bigint): number {
16919         if(!isWasmInitialized) {
16920                 throw new Error("initializeWasm() must be awaited first!");
16921         }
16922         const nativeResponseValue = wasm.TS_Balance_claimable_on_channel_close(claimable_amount_satoshis);
16923         return nativeResponseValue;
16924 }
16925         // struct LDKBalance Balance_claimable_awaiting_confirmations(uint64_t claimable_amount_satoshis, uint32_t confirmation_height);
16926 /* @internal */
16927 export function Balance_claimable_awaiting_confirmations(claimable_amount_satoshis: bigint, confirmation_height: number): number {
16928         if(!isWasmInitialized) {
16929                 throw new Error("initializeWasm() must be awaited first!");
16930         }
16931         const nativeResponseValue = wasm.TS_Balance_claimable_awaiting_confirmations(claimable_amount_satoshis, confirmation_height);
16932         return nativeResponseValue;
16933 }
16934         // struct LDKBalance Balance_contentious_claimable(uint64_t claimable_amount_satoshis, uint32_t timeout_height);
16935 /* @internal */
16936 export function Balance_contentious_claimable(claimable_amount_satoshis: bigint, timeout_height: number): number {
16937         if(!isWasmInitialized) {
16938                 throw new Error("initializeWasm() must be awaited first!");
16939         }
16940         const nativeResponseValue = wasm.TS_Balance_contentious_claimable(claimable_amount_satoshis, timeout_height);
16941         return nativeResponseValue;
16942 }
16943         // struct LDKBalance Balance_maybe_claimable_htlcawaiting_timeout(uint64_t claimable_amount_satoshis, uint32_t claimable_height);
16944 /* @internal */
16945 export function Balance_maybe_claimable_htlcawaiting_timeout(claimable_amount_satoshis: bigint, claimable_height: number): number {
16946         if(!isWasmInitialized) {
16947                 throw new Error("initializeWasm() must be awaited first!");
16948         }
16949         const nativeResponseValue = wasm.TS_Balance_maybe_claimable_htlcawaiting_timeout(claimable_amount_satoshis, claimable_height);
16950         return nativeResponseValue;
16951 }
16952         // bool Balance_eq(const struct LDKBalance *NONNULL_PTR a, const struct LDKBalance *NONNULL_PTR b);
16953 /* @internal */
16954 export function Balance_eq(a: number, b: number): boolean {
16955         if(!isWasmInitialized) {
16956                 throw new Error("initializeWasm() must be awaited first!");
16957         }
16958         const nativeResponseValue = wasm.TS_Balance_eq(a, b);
16959         return nativeResponseValue;
16960 }
16961         // void ChannelMonitor_free(struct LDKChannelMonitor this_obj);
16962 /* @internal */
16963 export function ChannelMonitor_free(this_obj: number): void {
16964         if(!isWasmInitialized) {
16965                 throw new Error("initializeWasm() must be awaited first!");
16966         }
16967         const nativeResponseValue = wasm.TS_ChannelMonitor_free(this_obj);
16968         // debug statements here
16969 }
16970         // uintptr_t ChannelMonitor_clone_ptr(LDKChannelMonitor *NONNULL_PTR arg);
16971 /* @internal */
16972 export function ChannelMonitor_clone_ptr(arg: number): number {
16973         if(!isWasmInitialized) {
16974                 throw new Error("initializeWasm() must be awaited first!");
16975         }
16976         const nativeResponseValue = wasm.TS_ChannelMonitor_clone_ptr(arg);
16977         return nativeResponseValue;
16978 }
16979         // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig);
16980 /* @internal */
16981 export function ChannelMonitor_clone(orig: number): number {
16982         if(!isWasmInitialized) {
16983                 throw new Error("initializeWasm() must be awaited first!");
16984         }
16985         const nativeResponseValue = wasm.TS_ChannelMonitor_clone(orig);
16986         return nativeResponseValue;
16987 }
16988         // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj);
16989 /* @internal */
16990 export function ChannelMonitor_write(obj: number): number {
16991         if(!isWasmInitialized) {
16992                 throw new Error("initializeWasm() must be awaited first!");
16993         }
16994         const nativeResponseValue = wasm.TS_ChannelMonitor_write(obj);
16995         return nativeResponseValue;
16996 }
16997         // 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);
16998 /* @internal */
16999 export function ChannelMonitor_update_monitor(this_arg: number, updates: number, broadcaster: number, fee_estimator: number, logger: number): number {
17000         if(!isWasmInitialized) {
17001                 throw new Error("initializeWasm() must be awaited first!");
17002         }
17003         const nativeResponseValue = wasm.TS_ChannelMonitor_update_monitor(this_arg, updates, broadcaster, fee_estimator, logger);
17004         return nativeResponseValue;
17005 }
17006         // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17007 /* @internal */
17008 export function ChannelMonitor_get_latest_update_id(this_arg: number): bigint {
17009         if(!isWasmInitialized) {
17010                 throw new Error("initializeWasm() must be awaited first!");
17011         }
17012         const nativeResponseValue = wasm.TS_ChannelMonitor_get_latest_update_id(this_arg);
17013         return nativeResponseValue;
17014 }
17015         // MUST_USE_RES struct LDKC2Tuple_OutPointScriptZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17016 /* @internal */
17017 export function ChannelMonitor_get_funding_txo(this_arg: number): number {
17018         if(!isWasmInitialized) {
17019                 throw new Error("initializeWasm() must be awaited first!");
17020         }
17021         const nativeResponseValue = wasm.TS_ChannelMonitor_get_funding_txo(this_arg);
17022         return nativeResponseValue;
17023 }
17024         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17025 /* @internal */
17026 export function ChannelMonitor_get_outputs_to_watch(this_arg: number): number {
17027         if(!isWasmInitialized) {
17028                 throw new Error("initializeWasm() must be awaited first!");
17029         }
17030         const nativeResponseValue = wasm.TS_ChannelMonitor_get_outputs_to_watch(this_arg);
17031         return nativeResponseValue;
17032 }
17033         // void ChannelMonitor_load_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKFilter *NONNULL_PTR filter);
17034 /* @internal */
17035 export function ChannelMonitor_load_outputs_to_watch(this_arg: number, filter: number): void {
17036         if(!isWasmInitialized) {
17037                 throw new Error("initializeWasm() must be awaited first!");
17038         }
17039         const nativeResponseValue = wasm.TS_ChannelMonitor_load_outputs_to_watch(this_arg, filter);
17040         // debug statements here
17041 }
17042         // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17043 /* @internal */
17044 export function ChannelMonitor_get_and_clear_pending_monitor_events(this_arg: number): number {
17045         if(!isWasmInitialized) {
17046                 throw new Error("initializeWasm() must be awaited first!");
17047         }
17048         const nativeResponseValue = wasm.TS_ChannelMonitor_get_and_clear_pending_monitor_events(this_arg);
17049         return nativeResponseValue;
17050 }
17051         // MUST_USE_RES struct LDKCVec_EventZ ChannelMonitor_get_and_clear_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17052 /* @internal */
17053 export function ChannelMonitor_get_and_clear_pending_events(this_arg: number): number {
17054         if(!isWasmInitialized) {
17055                 throw new Error("initializeWasm() must be awaited first!");
17056         }
17057         const nativeResponseValue = wasm.TS_ChannelMonitor_get_and_clear_pending_events(this_arg);
17058         return nativeResponseValue;
17059 }
17060         // 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);
17061 /* @internal */
17062 export function ChannelMonitor_get_latest_holder_commitment_txn(this_arg: number, logger: number): number {
17063         if(!isWasmInitialized) {
17064                 throw new Error("initializeWasm() must be awaited first!");
17065         }
17066         const nativeResponseValue = wasm.TS_ChannelMonitor_get_latest_holder_commitment_txn(this_arg, logger);
17067         return nativeResponseValue;
17068 }
17069         // 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);
17070 /* @internal */
17071 export function ChannelMonitor_block_connected(this_arg: number, header: number, txdata: number, height: number, broadcaster: number, fee_estimator: number, logger: number): number {
17072         if(!isWasmInitialized) {
17073                 throw new Error("initializeWasm() must be awaited first!");
17074         }
17075         const nativeResponseValue = wasm.TS_ChannelMonitor_block_connected(this_arg, header, txdata, height, broadcaster, fee_estimator, logger);
17076         return nativeResponseValue;
17077 }
17078         // 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);
17079 /* @internal */
17080 export function ChannelMonitor_block_disconnected(this_arg: number, header: number, height: number, broadcaster: number, fee_estimator: number, logger: number): void {
17081         if(!isWasmInitialized) {
17082                 throw new Error("initializeWasm() must be awaited first!");
17083         }
17084         const nativeResponseValue = wasm.TS_ChannelMonitor_block_disconnected(this_arg, header, height, broadcaster, fee_estimator, logger);
17085         // debug statements here
17086 }
17087         // 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);
17088 /* @internal */
17089 export function ChannelMonitor_transactions_confirmed(this_arg: number, header: number, txdata: number, height: number, broadcaster: number, fee_estimator: number, logger: number): number {
17090         if(!isWasmInitialized) {
17091                 throw new Error("initializeWasm() must be awaited first!");
17092         }
17093         const nativeResponseValue = wasm.TS_ChannelMonitor_transactions_confirmed(this_arg, header, txdata, height, broadcaster, fee_estimator, logger);
17094         return nativeResponseValue;
17095 }
17096         // 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);
17097 /* @internal */
17098 export function ChannelMonitor_transaction_unconfirmed(this_arg: number, txid: number, broadcaster: number, fee_estimator: number, logger: number): void {
17099         if(!isWasmInitialized) {
17100                 throw new Error("initializeWasm() must be awaited first!");
17101         }
17102         const nativeResponseValue = wasm.TS_ChannelMonitor_transaction_unconfirmed(this_arg, txid, broadcaster, fee_estimator, logger);
17103         // debug statements here
17104 }
17105         // 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);
17106 /* @internal */
17107 export function ChannelMonitor_best_block_updated(this_arg: number, header: number, height: number, broadcaster: number, fee_estimator: number, logger: number): number {
17108         if(!isWasmInitialized) {
17109                 throw new Error("initializeWasm() must be awaited first!");
17110         }
17111         const nativeResponseValue = wasm.TS_ChannelMonitor_best_block_updated(this_arg, header, height, broadcaster, fee_estimator, logger);
17112         return nativeResponseValue;
17113 }
17114         // MUST_USE_RES struct LDKCVec_TxidZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17115 /* @internal */
17116 export function ChannelMonitor_get_relevant_txids(this_arg: number): number {
17117         if(!isWasmInitialized) {
17118                 throw new Error("initializeWasm() must be awaited first!");
17119         }
17120         const nativeResponseValue = wasm.TS_ChannelMonitor_get_relevant_txids(this_arg);
17121         return nativeResponseValue;
17122 }
17123         // MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17124 /* @internal */
17125 export function ChannelMonitor_current_best_block(this_arg: number): number {
17126         if(!isWasmInitialized) {
17127                 throw new Error("initializeWasm() must be awaited first!");
17128         }
17129         const nativeResponseValue = wasm.TS_ChannelMonitor_current_best_block(this_arg);
17130         return nativeResponseValue;
17131 }
17132         // MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17133 /* @internal */
17134 export function ChannelMonitor_get_claimable_balances(this_arg: number): number {
17135         if(!isWasmInitialized) {
17136                 throw new Error("initializeWasm() must be awaited first!");
17137         }
17138         const nativeResponseValue = wasm.TS_ChannelMonitor_get_claimable_balances(this_arg);
17139         return nativeResponseValue;
17140 }
17141         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ C2Tuple_BlockHashChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKKeysInterface *NONNULL_PTR arg);
17142 /* @internal */
17143 export function C2Tuple_BlockHashChannelMonitorZ_read(ser: number, arg: number): number {
17144         if(!isWasmInitialized) {
17145                 throw new Error("initializeWasm() must be awaited first!");
17146         }
17147         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_read(ser, arg);
17148         return nativeResponseValue;
17149 }
17150         // void OutPoint_free(struct LDKOutPoint this_obj);
17151 /* @internal */
17152 export function OutPoint_free(this_obj: number): void {
17153         if(!isWasmInitialized) {
17154                 throw new Error("initializeWasm() must be awaited first!");
17155         }
17156         const nativeResponseValue = wasm.TS_OutPoint_free(this_obj);
17157         // debug statements here
17158 }
17159         // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32];
17160 /* @internal */
17161 export function OutPoint_get_txid(this_ptr: number): number {
17162         if(!isWasmInitialized) {
17163                 throw new Error("initializeWasm() must be awaited first!");
17164         }
17165         const nativeResponseValue = wasm.TS_OutPoint_get_txid(this_ptr);
17166         return nativeResponseValue;
17167 }
17168         // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
17169 /* @internal */
17170 export function OutPoint_set_txid(this_ptr: number, val: number): void {
17171         if(!isWasmInitialized) {
17172                 throw new Error("initializeWasm() must be awaited first!");
17173         }
17174         const nativeResponseValue = wasm.TS_OutPoint_set_txid(this_ptr, val);
17175         // debug statements here
17176 }
17177         // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr);
17178 /* @internal */
17179 export function OutPoint_get_index(this_ptr: number): number {
17180         if(!isWasmInitialized) {
17181                 throw new Error("initializeWasm() must be awaited first!");
17182         }
17183         const nativeResponseValue = wasm.TS_OutPoint_get_index(this_ptr);
17184         return nativeResponseValue;
17185 }
17186         // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val);
17187 /* @internal */
17188 export function OutPoint_set_index(this_ptr: number, val: number): void {
17189         if(!isWasmInitialized) {
17190                 throw new Error("initializeWasm() must be awaited first!");
17191         }
17192         const nativeResponseValue = wasm.TS_OutPoint_set_index(this_ptr, val);
17193         // debug statements here
17194 }
17195         // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg);
17196 /* @internal */
17197 export function OutPoint_new(txid_arg: number, index_arg: number): number {
17198         if(!isWasmInitialized) {
17199                 throw new Error("initializeWasm() must be awaited first!");
17200         }
17201         const nativeResponseValue = wasm.TS_OutPoint_new(txid_arg, index_arg);
17202         return nativeResponseValue;
17203 }
17204         // uintptr_t OutPoint_clone_ptr(LDKOutPoint *NONNULL_PTR arg);
17205 /* @internal */
17206 export function OutPoint_clone_ptr(arg: number): number {
17207         if(!isWasmInitialized) {
17208                 throw new Error("initializeWasm() must be awaited first!");
17209         }
17210         const nativeResponseValue = wasm.TS_OutPoint_clone_ptr(arg);
17211         return nativeResponseValue;
17212 }
17213         // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig);
17214 /* @internal */
17215 export function OutPoint_clone(orig: number): number {
17216         if(!isWasmInitialized) {
17217                 throw new Error("initializeWasm() must be awaited first!");
17218         }
17219         const nativeResponseValue = wasm.TS_OutPoint_clone(orig);
17220         return nativeResponseValue;
17221 }
17222         // bool OutPoint_eq(const struct LDKOutPoint *NONNULL_PTR a, const struct LDKOutPoint *NONNULL_PTR b);
17223 /* @internal */
17224 export function OutPoint_eq(a: number, b: number): boolean {
17225         if(!isWasmInitialized) {
17226                 throw new Error("initializeWasm() must be awaited first!");
17227         }
17228         const nativeResponseValue = wasm.TS_OutPoint_eq(a, b);
17229         return nativeResponseValue;
17230 }
17231         // uint64_t OutPoint_hash(const struct LDKOutPoint *NONNULL_PTR o);
17232 /* @internal */
17233 export function OutPoint_hash(o: number): bigint {
17234         if(!isWasmInitialized) {
17235                 throw new Error("initializeWasm() must be awaited first!");
17236         }
17237         const nativeResponseValue = wasm.TS_OutPoint_hash(o);
17238         return nativeResponseValue;
17239 }
17240         // MUST_USE_RES struct LDKThirtyTwoBytes OutPoint_to_channel_id(const struct LDKOutPoint *NONNULL_PTR this_arg);
17241 /* @internal */
17242 export function OutPoint_to_channel_id(this_arg: number): number {
17243         if(!isWasmInitialized) {
17244                 throw new Error("initializeWasm() must be awaited first!");
17245         }
17246         const nativeResponseValue = wasm.TS_OutPoint_to_channel_id(this_arg);
17247         return nativeResponseValue;
17248 }
17249         // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj);
17250 /* @internal */
17251 export function OutPoint_write(obj: number): number {
17252         if(!isWasmInitialized) {
17253                 throw new Error("initializeWasm() must be awaited first!");
17254         }
17255         const nativeResponseValue = wasm.TS_OutPoint_write(obj);
17256         return nativeResponseValue;
17257 }
17258         // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser);
17259 /* @internal */
17260 export function OutPoint_read(ser: number): number {
17261         if(!isWasmInitialized) {
17262                 throw new Error("initializeWasm() must be awaited first!");
17263         }
17264         const nativeResponseValue = wasm.TS_OutPoint_read(ser);
17265         return nativeResponseValue;
17266 }
17267         // void DelayedPaymentOutputDescriptor_free(struct LDKDelayedPaymentOutputDescriptor this_obj);
17268 /* @internal */
17269 export function DelayedPaymentOutputDescriptor_free(this_obj: number): void {
17270         if(!isWasmInitialized) {
17271                 throw new Error("initializeWasm() must be awaited first!");
17272         }
17273         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_free(this_obj);
17274         // debug statements here
17275 }
17276         // struct LDKOutPoint DelayedPaymentOutputDescriptor_get_outpoint(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17277 /* @internal */
17278 export function DelayedPaymentOutputDescriptor_get_outpoint(this_ptr: number): number {
17279         if(!isWasmInitialized) {
17280                 throw new Error("initializeWasm() must be awaited first!");
17281         }
17282         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_outpoint(this_ptr);
17283         return nativeResponseValue;
17284 }
17285         // void DelayedPaymentOutputDescriptor_set_outpoint(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
17286 /* @internal */
17287 export function DelayedPaymentOutputDescriptor_set_outpoint(this_ptr: number, val: number): void {
17288         if(!isWasmInitialized) {
17289                 throw new Error("initializeWasm() must be awaited first!");
17290         }
17291         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_outpoint(this_ptr, val);
17292         // debug statements here
17293 }
17294         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_per_commitment_point(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17295 /* @internal */
17296 export function DelayedPaymentOutputDescriptor_get_per_commitment_point(this_ptr: number): number {
17297         if(!isWasmInitialized) {
17298                 throw new Error("initializeWasm() must be awaited first!");
17299         }
17300         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_per_commitment_point(this_ptr);
17301         return nativeResponseValue;
17302 }
17303         // void DelayedPaymentOutputDescriptor_set_per_commitment_point(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
17304 /* @internal */
17305 export function DelayedPaymentOutputDescriptor_set_per_commitment_point(this_ptr: number, val: number): void {
17306         if(!isWasmInitialized) {
17307                 throw new Error("initializeWasm() must be awaited first!");
17308         }
17309         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_per_commitment_point(this_ptr, val);
17310         // debug statements here
17311 }
17312         // uint16_t DelayedPaymentOutputDescriptor_get_to_self_delay(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17313 /* @internal */
17314 export function DelayedPaymentOutputDescriptor_get_to_self_delay(this_ptr: number): number {
17315         if(!isWasmInitialized) {
17316                 throw new Error("initializeWasm() must be awaited first!");
17317         }
17318         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_to_self_delay(this_ptr);
17319         return nativeResponseValue;
17320 }
17321         // void DelayedPaymentOutputDescriptor_set_to_self_delay(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint16_t val);
17322 /* @internal */
17323 export function DelayedPaymentOutputDescriptor_set_to_self_delay(this_ptr: number, val: number): void {
17324         if(!isWasmInitialized) {
17325                 throw new Error("initializeWasm() must be awaited first!");
17326         }
17327         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_to_self_delay(this_ptr, val);
17328         // debug statements here
17329 }
17330         // void DelayedPaymentOutputDescriptor_set_output(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
17331 /* @internal */
17332 export function DelayedPaymentOutputDescriptor_set_output(this_ptr: number, val: number): void {
17333         if(!isWasmInitialized) {
17334                 throw new Error("initializeWasm() must be awaited first!");
17335         }
17336         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_output(this_ptr, val);
17337         // debug statements here
17338 }
17339         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_revocation_pubkey(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17340 /* @internal */
17341 export function DelayedPaymentOutputDescriptor_get_revocation_pubkey(this_ptr: number): number {
17342         if(!isWasmInitialized) {
17343                 throw new Error("initializeWasm() must be awaited first!");
17344         }
17345         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_revocation_pubkey(this_ptr);
17346         return nativeResponseValue;
17347 }
17348         // void DelayedPaymentOutputDescriptor_set_revocation_pubkey(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
17349 /* @internal */
17350 export function DelayedPaymentOutputDescriptor_set_revocation_pubkey(this_ptr: number, val: number): void {
17351         if(!isWasmInitialized) {
17352                 throw new Error("initializeWasm() must be awaited first!");
17353         }
17354         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_revocation_pubkey(this_ptr, val);
17355         // debug statements here
17356 }
17357         // const uint8_t (*DelayedPaymentOutputDescriptor_get_channel_keys_id(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
17358 /* @internal */
17359 export function DelayedPaymentOutputDescriptor_get_channel_keys_id(this_ptr: number): number {
17360         if(!isWasmInitialized) {
17361                 throw new Error("initializeWasm() must be awaited first!");
17362         }
17363         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_channel_keys_id(this_ptr);
17364         return nativeResponseValue;
17365 }
17366         // void DelayedPaymentOutputDescriptor_set_channel_keys_id(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
17367 /* @internal */
17368 export function DelayedPaymentOutputDescriptor_set_channel_keys_id(this_ptr: number, val: number): void {
17369         if(!isWasmInitialized) {
17370                 throw new Error("initializeWasm() must be awaited first!");
17371         }
17372         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_channel_keys_id(this_ptr, val);
17373         // debug statements here
17374 }
17375         // uint64_t DelayedPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17376 /* @internal */
17377 export function DelayedPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr: number): bigint {
17378         if(!isWasmInitialized) {
17379                 throw new Error("initializeWasm() must be awaited first!");
17380         }
17381         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr);
17382         return nativeResponseValue;
17383 }
17384         // void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
17385 /* @internal */
17386 export function DelayedPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr: number, val: bigint): void {
17387         if(!isWasmInitialized) {
17388                 throw new Error("initializeWasm() must be awaited first!");
17389         }
17390         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr, val);
17391         // debug statements here
17392 }
17393         // 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);
17394 /* @internal */
17395 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 {
17396         if(!isWasmInitialized) {
17397                 throw new Error("initializeWasm() must be awaited first!");
17398         }
17399         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);
17400         return nativeResponseValue;
17401 }
17402         // uintptr_t DelayedPaymentOutputDescriptor_clone_ptr(LDKDelayedPaymentOutputDescriptor *NONNULL_PTR arg);
17403 /* @internal */
17404 export function DelayedPaymentOutputDescriptor_clone_ptr(arg: number): number {
17405         if(!isWasmInitialized) {
17406                 throw new Error("initializeWasm() must be awaited first!");
17407         }
17408         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_clone_ptr(arg);
17409         return nativeResponseValue;
17410 }
17411         // struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_clone(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR orig);
17412 /* @internal */
17413 export function DelayedPaymentOutputDescriptor_clone(orig: number): number {
17414         if(!isWasmInitialized) {
17415                 throw new Error("initializeWasm() must be awaited first!");
17416         }
17417         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_clone(orig);
17418         return nativeResponseValue;
17419 }
17420         // struct LDKCVec_u8Z DelayedPaymentOutputDescriptor_write(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR obj);
17421 /* @internal */
17422 export function DelayedPaymentOutputDescriptor_write(obj: number): number {
17423         if(!isWasmInitialized) {
17424                 throw new Error("initializeWasm() must be awaited first!");
17425         }
17426         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_write(obj);
17427         return nativeResponseValue;
17428 }
17429         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ DelayedPaymentOutputDescriptor_read(struct LDKu8slice ser);
17430 /* @internal */
17431 export function DelayedPaymentOutputDescriptor_read(ser: number): number {
17432         if(!isWasmInitialized) {
17433                 throw new Error("initializeWasm() must be awaited first!");
17434         }
17435         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_read(ser);
17436         return nativeResponseValue;
17437 }
17438         // void StaticPaymentOutputDescriptor_free(struct LDKStaticPaymentOutputDescriptor this_obj);
17439 /* @internal */
17440 export function StaticPaymentOutputDescriptor_free(this_obj: number): void {
17441         if(!isWasmInitialized) {
17442                 throw new Error("initializeWasm() must be awaited first!");
17443         }
17444         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_free(this_obj);
17445         // debug statements here
17446 }
17447         // struct LDKOutPoint StaticPaymentOutputDescriptor_get_outpoint(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17448 /* @internal */
17449 export function StaticPaymentOutputDescriptor_get_outpoint(this_ptr: number): number {
17450         if(!isWasmInitialized) {
17451                 throw new Error("initializeWasm() must be awaited first!");
17452         }
17453         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_outpoint(this_ptr);
17454         return nativeResponseValue;
17455 }
17456         // void StaticPaymentOutputDescriptor_set_outpoint(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
17457 /* @internal */
17458 export function StaticPaymentOutputDescriptor_set_outpoint(this_ptr: number, val: number): void {
17459         if(!isWasmInitialized) {
17460                 throw new Error("initializeWasm() must be awaited first!");
17461         }
17462         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_outpoint(this_ptr, val);
17463         // debug statements here
17464 }
17465         // void StaticPaymentOutputDescriptor_set_output(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
17466 /* @internal */
17467 export function StaticPaymentOutputDescriptor_set_output(this_ptr: number, val: number): void {
17468         if(!isWasmInitialized) {
17469                 throw new Error("initializeWasm() must be awaited first!");
17470         }
17471         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_output(this_ptr, val);
17472         // debug statements here
17473 }
17474         // const uint8_t (*StaticPaymentOutputDescriptor_get_channel_keys_id(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
17475 /* @internal */
17476 export function StaticPaymentOutputDescriptor_get_channel_keys_id(this_ptr: number): number {
17477         if(!isWasmInitialized) {
17478                 throw new Error("initializeWasm() must be awaited first!");
17479         }
17480         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_channel_keys_id(this_ptr);
17481         return nativeResponseValue;
17482 }
17483         // void StaticPaymentOutputDescriptor_set_channel_keys_id(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
17484 /* @internal */
17485 export function StaticPaymentOutputDescriptor_set_channel_keys_id(this_ptr: number, val: number): void {
17486         if(!isWasmInitialized) {
17487                 throw new Error("initializeWasm() must be awaited first!");
17488         }
17489         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_channel_keys_id(this_ptr, val);
17490         // debug statements here
17491 }
17492         // uint64_t StaticPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17493 /* @internal */
17494 export function StaticPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr: number): bigint {
17495         if(!isWasmInitialized) {
17496                 throw new Error("initializeWasm() must be awaited first!");
17497         }
17498         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr);
17499         return nativeResponseValue;
17500 }
17501         // void StaticPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
17502 /* @internal */
17503 export function StaticPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr: number, val: bigint): void {
17504         if(!isWasmInitialized) {
17505                 throw new Error("initializeWasm() must be awaited first!");
17506         }
17507         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr, val);
17508         // debug statements here
17509 }
17510         // 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);
17511 /* @internal */
17512 export function StaticPaymentOutputDescriptor_new(outpoint_arg: number, output_arg: number, channel_keys_id_arg: number, channel_value_satoshis_arg: bigint): number {
17513         if(!isWasmInitialized) {
17514                 throw new Error("initializeWasm() must be awaited first!");
17515         }
17516         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_new(outpoint_arg, output_arg, channel_keys_id_arg, channel_value_satoshis_arg);
17517         return nativeResponseValue;
17518 }
17519         // uintptr_t StaticPaymentOutputDescriptor_clone_ptr(LDKStaticPaymentOutputDescriptor *NONNULL_PTR arg);
17520 /* @internal */
17521 export function StaticPaymentOutputDescriptor_clone_ptr(arg: number): number {
17522         if(!isWasmInitialized) {
17523                 throw new Error("initializeWasm() must be awaited first!");
17524         }
17525         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_clone_ptr(arg);
17526         return nativeResponseValue;
17527 }
17528         // struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR orig);
17529 /* @internal */
17530 export function StaticPaymentOutputDescriptor_clone(orig: number): number {
17531         if(!isWasmInitialized) {
17532                 throw new Error("initializeWasm() must be awaited first!");
17533         }
17534         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_clone(orig);
17535         return nativeResponseValue;
17536 }
17537         // struct LDKCVec_u8Z StaticPaymentOutputDescriptor_write(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR obj);
17538 /* @internal */
17539 export function StaticPaymentOutputDescriptor_write(obj: number): number {
17540         if(!isWasmInitialized) {
17541                 throw new Error("initializeWasm() must be awaited first!");
17542         }
17543         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_write(obj);
17544         return nativeResponseValue;
17545 }
17546         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ StaticPaymentOutputDescriptor_read(struct LDKu8slice ser);
17547 /* @internal */
17548 export function StaticPaymentOutputDescriptor_read(ser: number): number {
17549         if(!isWasmInitialized) {
17550                 throw new Error("initializeWasm() must be awaited first!");
17551         }
17552         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_read(ser);
17553         return nativeResponseValue;
17554 }
17555         // void SpendableOutputDescriptor_free(struct LDKSpendableOutputDescriptor this_ptr);
17556 /* @internal */
17557 export function SpendableOutputDescriptor_free(this_ptr: number): void {
17558         if(!isWasmInitialized) {
17559                 throw new Error("initializeWasm() must be awaited first!");
17560         }
17561         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_free(this_ptr);
17562         // debug statements here
17563 }
17564         // uintptr_t SpendableOutputDescriptor_clone_ptr(LDKSpendableOutputDescriptor *NONNULL_PTR arg);
17565 /* @internal */
17566 export function SpendableOutputDescriptor_clone_ptr(arg: number): number {
17567         if(!isWasmInitialized) {
17568                 throw new Error("initializeWasm() must be awaited first!");
17569         }
17570         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_clone_ptr(arg);
17571         return nativeResponseValue;
17572 }
17573         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_clone(const struct LDKSpendableOutputDescriptor *NONNULL_PTR orig);
17574 /* @internal */
17575 export function SpendableOutputDescriptor_clone(orig: number): number {
17576         if(!isWasmInitialized) {
17577                 throw new Error("initializeWasm() must be awaited first!");
17578         }
17579         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_clone(orig);
17580         return nativeResponseValue;
17581 }
17582         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_output(struct LDKOutPoint outpoint, struct LDKTxOut output);
17583 /* @internal */
17584 export function SpendableOutputDescriptor_static_output(outpoint: number, output: number): number {
17585         if(!isWasmInitialized) {
17586                 throw new Error("initializeWasm() must be awaited first!");
17587         }
17588         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_static_output(outpoint, output);
17589         return nativeResponseValue;
17590 }
17591         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_delayed_payment_output(struct LDKDelayedPaymentOutputDescriptor a);
17592 /* @internal */
17593 export function SpendableOutputDescriptor_delayed_payment_output(a: number): number {
17594         if(!isWasmInitialized) {
17595                 throw new Error("initializeWasm() must be awaited first!");
17596         }
17597         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_delayed_payment_output(a);
17598         return nativeResponseValue;
17599 }
17600         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_payment_output(struct LDKStaticPaymentOutputDescriptor a);
17601 /* @internal */
17602 export function SpendableOutputDescriptor_static_payment_output(a: number): number {
17603         if(!isWasmInitialized) {
17604                 throw new Error("initializeWasm() must be awaited first!");
17605         }
17606         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_static_payment_output(a);
17607         return nativeResponseValue;
17608 }
17609         // struct LDKCVec_u8Z SpendableOutputDescriptor_write(const struct LDKSpendableOutputDescriptor *NONNULL_PTR obj);
17610 /* @internal */
17611 export function SpendableOutputDescriptor_write(obj: number): number {
17612         if(!isWasmInitialized) {
17613                 throw new Error("initializeWasm() must be awaited first!");
17614         }
17615         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_write(obj);
17616         return nativeResponseValue;
17617 }
17618         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescriptor_read(struct LDKu8slice ser);
17619 /* @internal */
17620 export function SpendableOutputDescriptor_read(ser: number): number {
17621         if(!isWasmInitialized) {
17622                 throw new Error("initializeWasm() must be awaited first!");
17623         }
17624         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_read(ser);
17625         return nativeResponseValue;
17626 }
17627         // void BaseSign_free(struct LDKBaseSign this_ptr);
17628 /* @internal */
17629 export function BaseSign_free(this_ptr: number): void {
17630         if(!isWasmInitialized) {
17631                 throw new Error("initializeWasm() must be awaited first!");
17632         }
17633         const nativeResponseValue = wasm.TS_BaseSign_free(this_ptr);
17634         // debug statements here
17635 }
17636         // uintptr_t Sign_clone_ptr(LDKSign *NONNULL_PTR arg);
17637 /* @internal */
17638 export function Sign_clone_ptr(arg: number): number {
17639         if(!isWasmInitialized) {
17640                 throw new Error("initializeWasm() must be awaited first!");
17641         }
17642         const nativeResponseValue = wasm.TS_Sign_clone_ptr(arg);
17643         return nativeResponseValue;
17644 }
17645         // struct LDKSign Sign_clone(const struct LDKSign *NONNULL_PTR orig);
17646 /* @internal */
17647 export function Sign_clone(orig: number): number {
17648         if(!isWasmInitialized) {
17649                 throw new Error("initializeWasm() must be awaited first!");
17650         }
17651         const nativeResponseValue = wasm.TS_Sign_clone(orig);
17652         return nativeResponseValue;
17653 }
17654         // void Sign_free(struct LDKSign this_ptr);
17655 /* @internal */
17656 export function Sign_free(this_ptr: number): void {
17657         if(!isWasmInitialized) {
17658                 throw new Error("initializeWasm() must be awaited first!");
17659         }
17660         const nativeResponseValue = wasm.TS_Sign_free(this_ptr);
17661         // debug statements here
17662 }
17663         // enum LDKRecipient Recipient_clone(const enum LDKRecipient *NONNULL_PTR orig);
17664 /* @internal */
17665 export function Recipient_clone(orig: number): Recipient {
17666         if(!isWasmInitialized) {
17667                 throw new Error("initializeWasm() must be awaited first!");
17668         }
17669         const nativeResponseValue = wasm.TS_Recipient_clone(orig);
17670         return nativeResponseValue;
17671 }
17672         // enum LDKRecipient Recipient_node(void);
17673 /* @internal */
17674 export function Recipient_node(): Recipient {
17675         if(!isWasmInitialized) {
17676                 throw new Error("initializeWasm() must be awaited first!");
17677         }
17678         const nativeResponseValue = wasm.TS_Recipient_node();
17679         return nativeResponseValue;
17680 }
17681         // enum LDKRecipient Recipient_phantom_node(void);
17682 /* @internal */
17683 export function Recipient_phantom_node(): Recipient {
17684         if(!isWasmInitialized) {
17685                 throw new Error("initializeWasm() must be awaited first!");
17686         }
17687         const nativeResponseValue = wasm.TS_Recipient_phantom_node();
17688         return nativeResponseValue;
17689 }
17690         // void KeysInterface_free(struct LDKKeysInterface this_ptr);
17691 /* @internal */
17692 export function KeysInterface_free(this_ptr: number): void {
17693         if(!isWasmInitialized) {
17694                 throw new Error("initializeWasm() must be awaited first!");
17695         }
17696         const nativeResponseValue = wasm.TS_KeysInterface_free(this_ptr);
17697         // debug statements here
17698 }
17699         // void InMemorySigner_free(struct LDKInMemorySigner this_obj);
17700 /* @internal */
17701 export function InMemorySigner_free(this_obj: number): void {
17702         if(!isWasmInitialized) {
17703                 throw new Error("initializeWasm() must be awaited first!");
17704         }
17705         const nativeResponseValue = wasm.TS_InMemorySigner_free(this_obj);
17706         // debug statements here
17707 }
17708         // const uint8_t (*InMemorySigner_get_funding_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
17709 /* @internal */
17710 export function InMemorySigner_get_funding_key(this_ptr: number): number {
17711         if(!isWasmInitialized) {
17712                 throw new Error("initializeWasm() must be awaited first!");
17713         }
17714         const nativeResponseValue = wasm.TS_InMemorySigner_get_funding_key(this_ptr);
17715         return nativeResponseValue;
17716 }
17717         // void InMemorySigner_set_funding_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
17718 /* @internal */
17719 export function InMemorySigner_set_funding_key(this_ptr: number, val: number): void {
17720         if(!isWasmInitialized) {
17721                 throw new Error("initializeWasm() must be awaited first!");
17722         }
17723         const nativeResponseValue = wasm.TS_InMemorySigner_set_funding_key(this_ptr, val);
17724         // debug statements here
17725 }
17726         // const uint8_t (*InMemorySigner_get_revocation_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
17727 /* @internal */
17728 export function InMemorySigner_get_revocation_base_key(this_ptr: number): number {
17729         if(!isWasmInitialized) {
17730                 throw new Error("initializeWasm() must be awaited first!");
17731         }
17732         const nativeResponseValue = wasm.TS_InMemorySigner_get_revocation_base_key(this_ptr);
17733         return nativeResponseValue;
17734 }
17735         // void InMemorySigner_set_revocation_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
17736 /* @internal */
17737 export function InMemorySigner_set_revocation_base_key(this_ptr: number, val: number): void {
17738         if(!isWasmInitialized) {
17739                 throw new Error("initializeWasm() must be awaited first!");
17740         }
17741         const nativeResponseValue = wasm.TS_InMemorySigner_set_revocation_base_key(this_ptr, val);
17742         // debug statements here
17743 }
17744         // const uint8_t (*InMemorySigner_get_payment_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
17745 /* @internal */
17746 export function InMemorySigner_get_payment_key(this_ptr: number): number {
17747         if(!isWasmInitialized) {
17748                 throw new Error("initializeWasm() must be awaited first!");
17749         }
17750         const nativeResponseValue = wasm.TS_InMemorySigner_get_payment_key(this_ptr);
17751         return nativeResponseValue;
17752 }
17753         // void InMemorySigner_set_payment_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
17754 /* @internal */
17755 export function InMemorySigner_set_payment_key(this_ptr: number, val: number): void {
17756         if(!isWasmInitialized) {
17757                 throw new Error("initializeWasm() must be awaited first!");
17758         }
17759         const nativeResponseValue = wasm.TS_InMemorySigner_set_payment_key(this_ptr, val);
17760         // debug statements here
17761 }
17762         // const uint8_t (*InMemorySigner_get_delayed_payment_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
17763 /* @internal */
17764 export function InMemorySigner_get_delayed_payment_base_key(this_ptr: number): number {
17765         if(!isWasmInitialized) {
17766                 throw new Error("initializeWasm() must be awaited first!");
17767         }
17768         const nativeResponseValue = wasm.TS_InMemorySigner_get_delayed_payment_base_key(this_ptr);
17769         return nativeResponseValue;
17770 }
17771         // void InMemorySigner_set_delayed_payment_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
17772 /* @internal */
17773 export function InMemorySigner_set_delayed_payment_base_key(this_ptr: number, val: number): void {
17774         if(!isWasmInitialized) {
17775                 throw new Error("initializeWasm() must be awaited first!");
17776         }
17777         const nativeResponseValue = wasm.TS_InMemorySigner_set_delayed_payment_base_key(this_ptr, val);
17778         // debug statements here
17779 }
17780         // const uint8_t (*InMemorySigner_get_htlc_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
17781 /* @internal */
17782 export function InMemorySigner_get_htlc_base_key(this_ptr: number): number {
17783         if(!isWasmInitialized) {
17784                 throw new Error("initializeWasm() must be awaited first!");
17785         }
17786         const nativeResponseValue = wasm.TS_InMemorySigner_get_htlc_base_key(this_ptr);
17787         return nativeResponseValue;
17788 }
17789         // void InMemorySigner_set_htlc_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
17790 /* @internal */
17791 export function InMemorySigner_set_htlc_base_key(this_ptr: number, val: number): void {
17792         if(!isWasmInitialized) {
17793                 throw new Error("initializeWasm() must be awaited first!");
17794         }
17795         const nativeResponseValue = wasm.TS_InMemorySigner_set_htlc_base_key(this_ptr, val);
17796         // debug statements here
17797 }
17798         // const uint8_t (*InMemorySigner_get_commitment_seed(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
17799 /* @internal */
17800 export function InMemorySigner_get_commitment_seed(this_ptr: number): number {
17801         if(!isWasmInitialized) {
17802                 throw new Error("initializeWasm() must be awaited first!");
17803         }
17804         const nativeResponseValue = wasm.TS_InMemorySigner_get_commitment_seed(this_ptr);
17805         return nativeResponseValue;
17806 }
17807         // void InMemorySigner_set_commitment_seed(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
17808 /* @internal */
17809 export function InMemorySigner_set_commitment_seed(this_ptr: number, val: number): void {
17810         if(!isWasmInitialized) {
17811                 throw new Error("initializeWasm() must be awaited first!");
17812         }
17813         const nativeResponseValue = wasm.TS_InMemorySigner_set_commitment_seed(this_ptr, val);
17814         // debug statements here
17815 }
17816         // uintptr_t InMemorySigner_clone_ptr(LDKInMemorySigner *NONNULL_PTR arg);
17817 /* @internal */
17818 export function InMemorySigner_clone_ptr(arg: number): number {
17819         if(!isWasmInitialized) {
17820                 throw new Error("initializeWasm() must be awaited first!");
17821         }
17822         const nativeResponseValue = wasm.TS_InMemorySigner_clone_ptr(arg);
17823         return nativeResponseValue;
17824 }
17825         // struct LDKInMemorySigner InMemorySigner_clone(const struct LDKInMemorySigner *NONNULL_PTR orig);
17826 /* @internal */
17827 export function InMemorySigner_clone(orig: number): number {
17828         if(!isWasmInitialized) {
17829                 throw new Error("initializeWasm() must be awaited first!");
17830         }
17831         const nativeResponseValue = wasm.TS_InMemorySigner_clone(orig);
17832         return nativeResponseValue;
17833 }
17834         // 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);
17835 /* @internal */
17836 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 {
17837         if(!isWasmInitialized) {
17838                 throw new Error("initializeWasm() must be awaited first!");
17839         }
17840         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);
17841         return nativeResponseValue;
17842 }
17843         // MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
17844 /* @internal */
17845 export function InMemorySigner_counterparty_pubkeys(this_arg: number): number {
17846         if(!isWasmInitialized) {
17847                 throw new Error("initializeWasm() must be awaited first!");
17848         }
17849         const nativeResponseValue = wasm.TS_InMemorySigner_counterparty_pubkeys(this_arg);
17850         return nativeResponseValue;
17851 }
17852         // MUST_USE_RES uint16_t InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
17853 /* @internal */
17854 export function InMemorySigner_counterparty_selected_contest_delay(this_arg: number): number {
17855         if(!isWasmInitialized) {
17856                 throw new Error("initializeWasm() must be awaited first!");
17857         }
17858         const nativeResponseValue = wasm.TS_InMemorySigner_counterparty_selected_contest_delay(this_arg);
17859         return nativeResponseValue;
17860 }
17861         // MUST_USE_RES uint16_t InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
17862 /* @internal */
17863 export function InMemorySigner_holder_selected_contest_delay(this_arg: number): number {
17864         if(!isWasmInitialized) {
17865                 throw new Error("initializeWasm() must be awaited first!");
17866         }
17867         const nativeResponseValue = wasm.TS_InMemorySigner_holder_selected_contest_delay(this_arg);
17868         return nativeResponseValue;
17869 }
17870         // MUST_USE_RES bool InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
17871 /* @internal */
17872 export function InMemorySigner_is_outbound(this_arg: number): boolean {
17873         if(!isWasmInitialized) {
17874                 throw new Error("initializeWasm() must be awaited first!");
17875         }
17876         const nativeResponseValue = wasm.TS_InMemorySigner_is_outbound(this_arg);
17877         return nativeResponseValue;
17878 }
17879         // MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
17880 /* @internal */
17881 export function InMemorySigner_funding_outpoint(this_arg: number): number {
17882         if(!isWasmInitialized) {
17883                 throw new Error("initializeWasm() must be awaited first!");
17884         }
17885         const nativeResponseValue = wasm.TS_InMemorySigner_funding_outpoint(this_arg);
17886         return nativeResponseValue;
17887 }
17888         // MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_parameters(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
17889 /* @internal */
17890 export function InMemorySigner_get_channel_parameters(this_arg: number): number {
17891         if(!isWasmInitialized) {
17892                 throw new Error("initializeWasm() must be awaited first!");
17893         }
17894         const nativeResponseValue = wasm.TS_InMemorySigner_get_channel_parameters(this_arg);
17895         return nativeResponseValue;
17896 }
17897         // MUST_USE_RES bool InMemorySigner_opt_anchors(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
17898 /* @internal */
17899 export function InMemorySigner_opt_anchors(this_arg: number): boolean {
17900         if(!isWasmInitialized) {
17901                 throw new Error("initializeWasm() must be awaited first!");
17902         }
17903         const nativeResponseValue = wasm.TS_InMemorySigner_opt_anchors(this_arg);
17904         return nativeResponseValue;
17905 }
17906         // 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);
17907 /* @internal */
17908 export function InMemorySigner_sign_counterparty_payment_input(this_arg: number, spend_tx: number, input_idx: number, descriptor: number): number {
17909         if(!isWasmInitialized) {
17910                 throw new Error("initializeWasm() must be awaited first!");
17911         }
17912         const nativeResponseValue = wasm.TS_InMemorySigner_sign_counterparty_payment_input(this_arg, spend_tx, input_idx, descriptor);
17913         return nativeResponseValue;
17914 }
17915         // 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);
17916 /* @internal */
17917 export function InMemorySigner_sign_dynamic_p2wsh_input(this_arg: number, spend_tx: number, input_idx: number, descriptor: number): number {
17918         if(!isWasmInitialized) {
17919                 throw new Error("initializeWasm() must be awaited first!");
17920         }
17921         const nativeResponseValue = wasm.TS_InMemorySigner_sign_dynamic_p2wsh_input(this_arg, spend_tx, input_idx, descriptor);
17922         return nativeResponseValue;
17923 }
17924         // struct LDKBaseSign InMemorySigner_as_BaseSign(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
17925 /* @internal */
17926 export function InMemorySigner_as_BaseSign(this_arg: number): number {
17927         if(!isWasmInitialized) {
17928                 throw new Error("initializeWasm() must be awaited first!");
17929         }
17930         const nativeResponseValue = wasm.TS_InMemorySigner_as_BaseSign(this_arg);
17931         return nativeResponseValue;
17932 }
17933         // struct LDKSign InMemorySigner_as_Sign(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
17934 /* @internal */
17935 export function InMemorySigner_as_Sign(this_arg: number): number {
17936         if(!isWasmInitialized) {
17937                 throw new Error("initializeWasm() must be awaited first!");
17938         }
17939         const nativeResponseValue = wasm.TS_InMemorySigner_as_Sign(this_arg);
17940         return nativeResponseValue;
17941 }
17942         // struct LDKCVec_u8Z InMemorySigner_write(const struct LDKInMemorySigner *NONNULL_PTR obj);
17943 /* @internal */
17944 export function InMemorySigner_write(obj: number): number {
17945         if(!isWasmInitialized) {
17946                 throw new Error("initializeWasm() must be awaited first!");
17947         }
17948         const nativeResponseValue = wasm.TS_InMemorySigner_write(obj);
17949         return nativeResponseValue;
17950 }
17951         // struct LDKCResult_InMemorySignerDecodeErrorZ InMemorySigner_read(struct LDKu8slice ser, struct LDKSecretKey arg);
17952 /* @internal */
17953 export function InMemorySigner_read(ser: number, arg: number): number {
17954         if(!isWasmInitialized) {
17955                 throw new Error("initializeWasm() must be awaited first!");
17956         }
17957         const nativeResponseValue = wasm.TS_InMemorySigner_read(ser, arg);
17958         return nativeResponseValue;
17959 }
17960         // void KeysManager_free(struct LDKKeysManager this_obj);
17961 /* @internal */
17962 export function KeysManager_free(this_obj: number): void {
17963         if(!isWasmInitialized) {
17964                 throw new Error("initializeWasm() must be awaited first!");
17965         }
17966         const nativeResponseValue = wasm.TS_KeysManager_free(this_obj);
17967         // debug statements here
17968 }
17969         // MUST_USE_RES struct LDKKeysManager KeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos);
17970 /* @internal */
17971 export function KeysManager_new(seed: number, starting_time_secs: bigint, starting_time_nanos: number): number {
17972         if(!isWasmInitialized) {
17973                 throw new Error("initializeWasm() must be awaited first!");
17974         }
17975         const nativeResponseValue = wasm.TS_KeysManager_new(seed, starting_time_secs, starting_time_nanos);
17976         return nativeResponseValue;
17977 }
17978         // 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]);
17979 /* @internal */
17980 export function KeysManager_derive_channel_keys(this_arg: number, channel_value_satoshis: bigint, params: number): number {
17981         if(!isWasmInitialized) {
17982                 throw new Error("initializeWasm() must be awaited first!");
17983         }
17984         const nativeResponseValue = wasm.TS_KeysManager_derive_channel_keys(this_arg, channel_value_satoshis, params);
17985         return nativeResponseValue;
17986 }
17987         // 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);
17988 /* @internal */
17989 export function KeysManager_spend_spendable_outputs(this_arg: number, descriptors: number, outputs: number, change_destination_script: number, feerate_sat_per_1000_weight: number): number {
17990         if(!isWasmInitialized) {
17991                 throw new Error("initializeWasm() must be awaited first!");
17992         }
17993         const nativeResponseValue = wasm.TS_KeysManager_spend_spendable_outputs(this_arg, descriptors, outputs, change_destination_script, feerate_sat_per_1000_weight);
17994         return nativeResponseValue;
17995 }
17996         // struct LDKKeysInterface KeysManager_as_KeysInterface(const struct LDKKeysManager *NONNULL_PTR this_arg);
17997 /* @internal */
17998 export function KeysManager_as_KeysInterface(this_arg: number): number {
17999         if(!isWasmInitialized) {
18000                 throw new Error("initializeWasm() must be awaited first!");
18001         }
18002         const nativeResponseValue = wasm.TS_KeysManager_as_KeysInterface(this_arg);
18003         return nativeResponseValue;
18004 }
18005         // void PhantomKeysManager_free(struct LDKPhantomKeysManager this_obj);
18006 /* @internal */
18007 export function PhantomKeysManager_free(this_obj: number): void {
18008         if(!isWasmInitialized) {
18009                 throw new Error("initializeWasm() must be awaited first!");
18010         }
18011         const nativeResponseValue = wasm.TS_PhantomKeysManager_free(this_obj);
18012         // debug statements here
18013 }
18014         // struct LDKKeysInterface PhantomKeysManager_as_KeysInterface(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
18015 /* @internal */
18016 export function PhantomKeysManager_as_KeysInterface(this_arg: number): number {
18017         if(!isWasmInitialized) {
18018                 throw new Error("initializeWasm() must be awaited first!");
18019         }
18020         const nativeResponseValue = wasm.TS_PhantomKeysManager_as_KeysInterface(this_arg);
18021         return nativeResponseValue;
18022 }
18023         // 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]);
18024 /* @internal */
18025 export function PhantomKeysManager_new(seed: number, starting_time_secs: bigint, starting_time_nanos: number, cross_node_seed: number): number {
18026         if(!isWasmInitialized) {
18027                 throw new Error("initializeWasm() must be awaited first!");
18028         }
18029         const nativeResponseValue = wasm.TS_PhantomKeysManager_new(seed, starting_time_secs, starting_time_nanos, cross_node_seed);
18030         return nativeResponseValue;
18031 }
18032         // 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);
18033 /* @internal */
18034 export function PhantomKeysManager_spend_spendable_outputs(this_arg: number, descriptors: number, outputs: number, change_destination_script: number, feerate_sat_per_1000_weight: number): number {
18035         if(!isWasmInitialized) {
18036                 throw new Error("initializeWasm() must be awaited first!");
18037         }
18038         const nativeResponseValue = wasm.TS_PhantomKeysManager_spend_spendable_outputs(this_arg, descriptors, outputs, change_destination_script, feerate_sat_per_1000_weight);
18039         return nativeResponseValue;
18040 }
18041         // 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]);
18042 /* @internal */
18043 export function PhantomKeysManager_derive_channel_keys(this_arg: number, channel_value_satoshis: bigint, params: number): number {
18044         if(!isWasmInitialized) {
18045                 throw new Error("initializeWasm() must be awaited first!");
18046         }
18047         const nativeResponseValue = wasm.TS_PhantomKeysManager_derive_channel_keys(this_arg, channel_value_satoshis, params);
18048         return nativeResponseValue;
18049 }
18050         // void ChannelManager_free(struct LDKChannelManager this_obj);
18051 /* @internal */
18052 export function ChannelManager_free(this_obj: number): void {
18053         if(!isWasmInitialized) {
18054                 throw new Error("initializeWasm() must be awaited first!");
18055         }
18056         const nativeResponseValue = wasm.TS_ChannelManager_free(this_obj);
18057         // debug statements here
18058 }
18059         // void ChainParameters_free(struct LDKChainParameters this_obj);
18060 /* @internal */
18061 export function ChainParameters_free(this_obj: number): void {
18062         if(!isWasmInitialized) {
18063                 throw new Error("initializeWasm() must be awaited first!");
18064         }
18065         const nativeResponseValue = wasm.TS_ChainParameters_free(this_obj);
18066         // debug statements here
18067 }
18068         // enum LDKNetwork ChainParameters_get_network(const struct LDKChainParameters *NONNULL_PTR this_ptr);
18069 /* @internal */
18070 export function ChainParameters_get_network(this_ptr: number): Network {
18071         if(!isWasmInitialized) {
18072                 throw new Error("initializeWasm() must be awaited first!");
18073         }
18074         const nativeResponseValue = wasm.TS_ChainParameters_get_network(this_ptr);
18075         return nativeResponseValue;
18076 }
18077         // void ChainParameters_set_network(struct LDKChainParameters *NONNULL_PTR this_ptr, enum LDKNetwork val);
18078 /* @internal */
18079 export function ChainParameters_set_network(this_ptr: number, val: Network): void {
18080         if(!isWasmInitialized) {
18081                 throw new Error("initializeWasm() must be awaited first!");
18082         }
18083         const nativeResponseValue = wasm.TS_ChainParameters_set_network(this_ptr, val);
18084         // debug statements here
18085 }
18086         // struct LDKBestBlock ChainParameters_get_best_block(const struct LDKChainParameters *NONNULL_PTR this_ptr);
18087 /* @internal */
18088 export function ChainParameters_get_best_block(this_ptr: number): number {
18089         if(!isWasmInitialized) {
18090                 throw new Error("initializeWasm() must be awaited first!");
18091         }
18092         const nativeResponseValue = wasm.TS_ChainParameters_get_best_block(this_ptr);
18093         return nativeResponseValue;
18094 }
18095         // void ChainParameters_set_best_block(struct LDKChainParameters *NONNULL_PTR this_ptr, struct LDKBestBlock val);
18096 /* @internal */
18097 export function ChainParameters_set_best_block(this_ptr: number, val: number): void {
18098         if(!isWasmInitialized) {
18099                 throw new Error("initializeWasm() must be awaited first!");
18100         }
18101         const nativeResponseValue = wasm.TS_ChainParameters_set_best_block(this_ptr, val);
18102         // debug statements here
18103 }
18104         // MUST_USE_RES struct LDKChainParameters ChainParameters_new(enum LDKNetwork network_arg, struct LDKBestBlock best_block_arg);
18105 /* @internal */
18106 export function ChainParameters_new(network_arg: Network, best_block_arg: number): number {
18107         if(!isWasmInitialized) {
18108                 throw new Error("initializeWasm() must be awaited first!");
18109         }
18110         const nativeResponseValue = wasm.TS_ChainParameters_new(network_arg, best_block_arg);
18111         return nativeResponseValue;
18112 }
18113         // uintptr_t ChainParameters_clone_ptr(LDKChainParameters *NONNULL_PTR arg);
18114 /* @internal */
18115 export function ChainParameters_clone_ptr(arg: number): number {
18116         if(!isWasmInitialized) {
18117                 throw new Error("initializeWasm() must be awaited first!");
18118         }
18119         const nativeResponseValue = wasm.TS_ChainParameters_clone_ptr(arg);
18120         return nativeResponseValue;
18121 }
18122         // struct LDKChainParameters ChainParameters_clone(const struct LDKChainParameters *NONNULL_PTR orig);
18123 /* @internal */
18124 export function ChainParameters_clone(orig: number): number {
18125         if(!isWasmInitialized) {
18126                 throw new Error("initializeWasm() must be awaited first!");
18127         }
18128         const nativeResponseValue = wasm.TS_ChainParameters_clone(orig);
18129         return nativeResponseValue;
18130 }
18131         // void CounterpartyForwardingInfo_free(struct LDKCounterpartyForwardingInfo this_obj);
18132 /* @internal */
18133 export function CounterpartyForwardingInfo_free(this_obj: number): void {
18134         if(!isWasmInitialized) {
18135                 throw new Error("initializeWasm() must be awaited first!");
18136         }
18137         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_free(this_obj);
18138         // debug statements here
18139 }
18140         // uint32_t CounterpartyForwardingInfo_get_fee_base_msat(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
18141 /* @internal */
18142 export function CounterpartyForwardingInfo_get_fee_base_msat(this_ptr: number): number {
18143         if(!isWasmInitialized) {
18144                 throw new Error("initializeWasm() must be awaited first!");
18145         }
18146         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_fee_base_msat(this_ptr);
18147         return nativeResponseValue;
18148 }
18149         // void CounterpartyForwardingInfo_set_fee_base_msat(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
18150 /* @internal */
18151 export function CounterpartyForwardingInfo_set_fee_base_msat(this_ptr: number, val: number): void {
18152         if(!isWasmInitialized) {
18153                 throw new Error("initializeWasm() must be awaited first!");
18154         }
18155         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_fee_base_msat(this_ptr, val);
18156         // debug statements here
18157 }
18158         // uint32_t CounterpartyForwardingInfo_get_fee_proportional_millionths(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
18159 /* @internal */
18160 export function CounterpartyForwardingInfo_get_fee_proportional_millionths(this_ptr: number): number {
18161         if(!isWasmInitialized) {
18162                 throw new Error("initializeWasm() must be awaited first!");
18163         }
18164         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_fee_proportional_millionths(this_ptr);
18165         return nativeResponseValue;
18166 }
18167         // void CounterpartyForwardingInfo_set_fee_proportional_millionths(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
18168 /* @internal */
18169 export function CounterpartyForwardingInfo_set_fee_proportional_millionths(this_ptr: number, val: number): void {
18170         if(!isWasmInitialized) {
18171                 throw new Error("initializeWasm() must be awaited first!");
18172         }
18173         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_fee_proportional_millionths(this_ptr, val);
18174         // debug statements here
18175 }
18176         // uint16_t CounterpartyForwardingInfo_get_cltv_expiry_delta(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
18177 /* @internal */
18178 export function CounterpartyForwardingInfo_get_cltv_expiry_delta(this_ptr: number): number {
18179         if(!isWasmInitialized) {
18180                 throw new Error("initializeWasm() must be awaited first!");
18181         }
18182         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_cltv_expiry_delta(this_ptr);
18183         return nativeResponseValue;
18184 }
18185         // void CounterpartyForwardingInfo_set_cltv_expiry_delta(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint16_t val);
18186 /* @internal */
18187 export function CounterpartyForwardingInfo_set_cltv_expiry_delta(this_ptr: number, val: number): void {
18188         if(!isWasmInitialized) {
18189                 throw new Error("initializeWasm() must be awaited first!");
18190         }
18191         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_cltv_expiry_delta(this_ptr, val);
18192         // debug statements here
18193 }
18194         // 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);
18195 /* @internal */
18196 export function CounterpartyForwardingInfo_new(fee_base_msat_arg: number, fee_proportional_millionths_arg: number, cltv_expiry_delta_arg: number): number {
18197         if(!isWasmInitialized) {
18198                 throw new Error("initializeWasm() must be awaited first!");
18199         }
18200         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_new(fee_base_msat_arg, fee_proportional_millionths_arg, cltv_expiry_delta_arg);
18201         return nativeResponseValue;
18202 }
18203         // uintptr_t CounterpartyForwardingInfo_clone_ptr(LDKCounterpartyForwardingInfo *NONNULL_PTR arg);
18204 /* @internal */
18205 export function CounterpartyForwardingInfo_clone_ptr(arg: number): number {
18206         if(!isWasmInitialized) {
18207                 throw new Error("initializeWasm() must be awaited first!");
18208         }
18209         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_clone_ptr(arg);
18210         return nativeResponseValue;
18211 }
18212         // struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_clone(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR orig);
18213 /* @internal */
18214 export function CounterpartyForwardingInfo_clone(orig: number): number {
18215         if(!isWasmInitialized) {
18216                 throw new Error("initializeWasm() must be awaited first!");
18217         }
18218         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_clone(orig);
18219         return nativeResponseValue;
18220 }
18221         // void ChannelCounterparty_free(struct LDKChannelCounterparty this_obj);
18222 /* @internal */
18223 export function ChannelCounterparty_free(this_obj: number): void {
18224         if(!isWasmInitialized) {
18225                 throw new Error("initializeWasm() must be awaited first!");
18226         }
18227         const nativeResponseValue = wasm.TS_ChannelCounterparty_free(this_obj);
18228         // debug statements here
18229 }
18230         // struct LDKPublicKey ChannelCounterparty_get_node_id(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18231 /* @internal */
18232 export function ChannelCounterparty_get_node_id(this_ptr: number): number {
18233         if(!isWasmInitialized) {
18234                 throw new Error("initializeWasm() must be awaited first!");
18235         }
18236         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_node_id(this_ptr);
18237         return nativeResponseValue;
18238 }
18239         // void ChannelCounterparty_set_node_id(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKPublicKey val);
18240 /* @internal */
18241 export function ChannelCounterparty_set_node_id(this_ptr: number, val: number): void {
18242         if(!isWasmInitialized) {
18243                 throw new Error("initializeWasm() must be awaited first!");
18244         }
18245         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_node_id(this_ptr, val);
18246         // debug statements here
18247 }
18248         // struct LDKInitFeatures ChannelCounterparty_get_features(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18249 /* @internal */
18250 export function ChannelCounterparty_get_features(this_ptr: number): number {
18251         if(!isWasmInitialized) {
18252                 throw new Error("initializeWasm() must be awaited first!");
18253         }
18254         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_features(this_ptr);
18255         return nativeResponseValue;
18256 }
18257         // void ChannelCounterparty_set_features(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
18258 /* @internal */
18259 export function ChannelCounterparty_set_features(this_ptr: number, val: number): void {
18260         if(!isWasmInitialized) {
18261                 throw new Error("initializeWasm() must be awaited first!");
18262         }
18263         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_features(this_ptr, val);
18264         // debug statements here
18265 }
18266         // uint64_t ChannelCounterparty_get_unspendable_punishment_reserve(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18267 /* @internal */
18268 export function ChannelCounterparty_get_unspendable_punishment_reserve(this_ptr: number): bigint {
18269         if(!isWasmInitialized) {
18270                 throw new Error("initializeWasm() must be awaited first!");
18271         }
18272         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_unspendable_punishment_reserve(this_ptr);
18273         return nativeResponseValue;
18274 }
18275         // void ChannelCounterparty_set_unspendable_punishment_reserve(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, uint64_t val);
18276 /* @internal */
18277 export function ChannelCounterparty_set_unspendable_punishment_reserve(this_ptr: number, val: bigint): void {
18278         if(!isWasmInitialized) {
18279                 throw new Error("initializeWasm() must be awaited first!");
18280         }
18281         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_unspendable_punishment_reserve(this_ptr, val);
18282         // debug statements here
18283 }
18284         // struct LDKCounterpartyForwardingInfo ChannelCounterparty_get_forwarding_info(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18285 /* @internal */
18286 export function ChannelCounterparty_get_forwarding_info(this_ptr: number): number {
18287         if(!isWasmInitialized) {
18288                 throw new Error("initializeWasm() must be awaited first!");
18289         }
18290         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_forwarding_info(this_ptr);
18291         return nativeResponseValue;
18292 }
18293         // void ChannelCounterparty_set_forwarding_info(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCounterpartyForwardingInfo val);
18294 /* @internal */
18295 export function ChannelCounterparty_set_forwarding_info(this_ptr: number, val: number): void {
18296         if(!isWasmInitialized) {
18297                 throw new Error("initializeWasm() must be awaited first!");
18298         }
18299         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_forwarding_info(this_ptr, val);
18300         // debug statements here
18301 }
18302         // 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);
18303 /* @internal */
18304 export function ChannelCounterparty_new(node_id_arg: number, features_arg: number, unspendable_punishment_reserve_arg: bigint, forwarding_info_arg: number): number {
18305         if(!isWasmInitialized) {
18306                 throw new Error("initializeWasm() must be awaited first!");
18307         }
18308         const nativeResponseValue = wasm.TS_ChannelCounterparty_new(node_id_arg, features_arg, unspendable_punishment_reserve_arg, forwarding_info_arg);
18309         return nativeResponseValue;
18310 }
18311         // uintptr_t ChannelCounterparty_clone_ptr(LDKChannelCounterparty *NONNULL_PTR arg);
18312 /* @internal */
18313 export function ChannelCounterparty_clone_ptr(arg: number): number {
18314         if(!isWasmInitialized) {
18315                 throw new Error("initializeWasm() must be awaited first!");
18316         }
18317         const nativeResponseValue = wasm.TS_ChannelCounterparty_clone_ptr(arg);
18318         return nativeResponseValue;
18319 }
18320         // struct LDKChannelCounterparty ChannelCounterparty_clone(const struct LDKChannelCounterparty *NONNULL_PTR orig);
18321 /* @internal */
18322 export function ChannelCounterparty_clone(orig: number): number {
18323         if(!isWasmInitialized) {
18324                 throw new Error("initializeWasm() must be awaited first!");
18325         }
18326         const nativeResponseValue = wasm.TS_ChannelCounterparty_clone(orig);
18327         return nativeResponseValue;
18328 }
18329         // void ChannelDetails_free(struct LDKChannelDetails this_obj);
18330 /* @internal */
18331 export function ChannelDetails_free(this_obj: number): void {
18332         if(!isWasmInitialized) {
18333                 throw new Error("initializeWasm() must be awaited first!");
18334         }
18335         const nativeResponseValue = wasm.TS_ChannelDetails_free(this_obj);
18336         // debug statements here
18337 }
18338         // const uint8_t (*ChannelDetails_get_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr))[32];
18339 /* @internal */
18340 export function ChannelDetails_get_channel_id(this_ptr: number): number {
18341         if(!isWasmInitialized) {
18342                 throw new Error("initializeWasm() must be awaited first!");
18343         }
18344         const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_id(this_ptr);
18345         return nativeResponseValue;
18346 }
18347         // void ChannelDetails_set_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
18348 /* @internal */
18349 export function ChannelDetails_set_channel_id(this_ptr: number, val: number): void {
18350         if(!isWasmInitialized) {
18351                 throw new Error("initializeWasm() must be awaited first!");
18352         }
18353         const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_id(this_ptr, val);
18354         // debug statements here
18355 }
18356         // struct LDKChannelCounterparty ChannelDetails_get_counterparty(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18357 /* @internal */
18358 export function ChannelDetails_get_counterparty(this_ptr: number): number {
18359         if(!isWasmInitialized) {
18360                 throw new Error("initializeWasm() must be awaited first!");
18361         }
18362         const nativeResponseValue = wasm.TS_ChannelDetails_get_counterparty(this_ptr);
18363         return nativeResponseValue;
18364 }
18365         // void ChannelDetails_set_counterparty(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelCounterparty val);
18366 /* @internal */
18367 export function ChannelDetails_set_counterparty(this_ptr: number, val: number): void {
18368         if(!isWasmInitialized) {
18369                 throw new Error("initializeWasm() must be awaited first!");
18370         }
18371         const nativeResponseValue = wasm.TS_ChannelDetails_set_counterparty(this_ptr, val);
18372         // debug statements here
18373 }
18374         // struct LDKOutPoint ChannelDetails_get_funding_txo(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18375 /* @internal */
18376 export function ChannelDetails_get_funding_txo(this_ptr: number): number {
18377         if(!isWasmInitialized) {
18378                 throw new Error("initializeWasm() must be awaited first!");
18379         }
18380         const nativeResponseValue = wasm.TS_ChannelDetails_get_funding_txo(this_ptr);
18381         return nativeResponseValue;
18382 }
18383         // void ChannelDetails_set_funding_txo(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKOutPoint val);
18384 /* @internal */
18385 export function ChannelDetails_set_funding_txo(this_ptr: number, val: number): void {
18386         if(!isWasmInitialized) {
18387                 throw new Error("initializeWasm() must be awaited first!");
18388         }
18389         const nativeResponseValue = wasm.TS_ChannelDetails_set_funding_txo(this_ptr, val);
18390         // debug statements here
18391 }
18392         // struct LDKChannelTypeFeatures ChannelDetails_get_channel_type(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18393 /* @internal */
18394 export function ChannelDetails_get_channel_type(this_ptr: number): number {
18395         if(!isWasmInitialized) {
18396                 throw new Error("initializeWasm() must be awaited first!");
18397         }
18398         const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_type(this_ptr);
18399         return nativeResponseValue;
18400 }
18401         // void ChannelDetails_set_channel_type(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
18402 /* @internal */
18403 export function ChannelDetails_set_channel_type(this_ptr: number, val: number): void {
18404         if(!isWasmInitialized) {
18405                 throw new Error("initializeWasm() must be awaited first!");
18406         }
18407         const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_type(this_ptr, val);
18408         // debug statements here
18409 }
18410         // struct LDKCOption_u64Z ChannelDetails_get_short_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18411 /* @internal */
18412 export function ChannelDetails_get_short_channel_id(this_ptr: number): number {
18413         if(!isWasmInitialized) {
18414                 throw new Error("initializeWasm() must be awaited first!");
18415         }
18416         const nativeResponseValue = wasm.TS_ChannelDetails_get_short_channel_id(this_ptr);
18417         return nativeResponseValue;
18418 }
18419         // void ChannelDetails_set_short_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
18420 /* @internal */
18421 export function ChannelDetails_set_short_channel_id(this_ptr: number, val: number): void {
18422         if(!isWasmInitialized) {
18423                 throw new Error("initializeWasm() must be awaited first!");
18424         }
18425         const nativeResponseValue = wasm.TS_ChannelDetails_set_short_channel_id(this_ptr, val);
18426         // debug statements here
18427 }
18428         // struct LDKCOption_u64Z ChannelDetails_get_inbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18429 /* @internal */
18430 export function ChannelDetails_get_inbound_scid_alias(this_ptr: number): number {
18431         if(!isWasmInitialized) {
18432                 throw new Error("initializeWasm() must be awaited first!");
18433         }
18434         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_scid_alias(this_ptr);
18435         return nativeResponseValue;
18436 }
18437         // void ChannelDetails_set_inbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
18438 /* @internal */
18439 export function ChannelDetails_set_inbound_scid_alias(this_ptr: number, val: number): void {
18440         if(!isWasmInitialized) {
18441                 throw new Error("initializeWasm() must be awaited first!");
18442         }
18443         const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_scid_alias(this_ptr, val);
18444         // debug statements here
18445 }
18446         // uint64_t ChannelDetails_get_channel_value_satoshis(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18447 /* @internal */
18448 export function ChannelDetails_get_channel_value_satoshis(this_ptr: number): bigint {
18449         if(!isWasmInitialized) {
18450                 throw new Error("initializeWasm() must be awaited first!");
18451         }
18452         const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_value_satoshis(this_ptr);
18453         return nativeResponseValue;
18454 }
18455         // void ChannelDetails_set_channel_value_satoshis(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
18456 /* @internal */
18457 export function ChannelDetails_set_channel_value_satoshis(this_ptr: number, val: bigint): void {
18458         if(!isWasmInitialized) {
18459                 throw new Error("initializeWasm() must be awaited first!");
18460         }
18461         const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_value_satoshis(this_ptr, val);
18462         // debug statements here
18463 }
18464         // struct LDKCOption_u64Z ChannelDetails_get_unspendable_punishment_reserve(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18465 /* @internal */
18466 export function ChannelDetails_get_unspendable_punishment_reserve(this_ptr: number): number {
18467         if(!isWasmInitialized) {
18468                 throw new Error("initializeWasm() must be awaited first!");
18469         }
18470         const nativeResponseValue = wasm.TS_ChannelDetails_get_unspendable_punishment_reserve(this_ptr);
18471         return nativeResponseValue;
18472 }
18473         // void ChannelDetails_set_unspendable_punishment_reserve(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
18474 /* @internal */
18475 export function ChannelDetails_set_unspendable_punishment_reserve(this_ptr: number, val: number): void {
18476         if(!isWasmInitialized) {
18477                 throw new Error("initializeWasm() must be awaited first!");
18478         }
18479         const nativeResponseValue = wasm.TS_ChannelDetails_set_unspendable_punishment_reserve(this_ptr, val);
18480         // debug statements here
18481 }
18482         // uint64_t ChannelDetails_get_user_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18483 /* @internal */
18484 export function ChannelDetails_get_user_channel_id(this_ptr: number): bigint {
18485         if(!isWasmInitialized) {
18486                 throw new Error("initializeWasm() must be awaited first!");
18487         }
18488         const nativeResponseValue = wasm.TS_ChannelDetails_get_user_channel_id(this_ptr);
18489         return nativeResponseValue;
18490 }
18491         // void ChannelDetails_set_user_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
18492 /* @internal */
18493 export function ChannelDetails_set_user_channel_id(this_ptr: number, val: bigint): void {
18494         if(!isWasmInitialized) {
18495                 throw new Error("initializeWasm() must be awaited first!");
18496         }
18497         const nativeResponseValue = wasm.TS_ChannelDetails_set_user_channel_id(this_ptr, val);
18498         // debug statements here
18499 }
18500         // uint64_t ChannelDetails_get_balance_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18501 /* @internal */
18502 export function ChannelDetails_get_balance_msat(this_ptr: number): bigint {
18503         if(!isWasmInitialized) {
18504                 throw new Error("initializeWasm() must be awaited first!");
18505         }
18506         const nativeResponseValue = wasm.TS_ChannelDetails_get_balance_msat(this_ptr);
18507         return nativeResponseValue;
18508 }
18509         // void ChannelDetails_set_balance_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
18510 /* @internal */
18511 export function ChannelDetails_set_balance_msat(this_ptr: number, val: bigint): void {
18512         if(!isWasmInitialized) {
18513                 throw new Error("initializeWasm() must be awaited first!");
18514         }
18515         const nativeResponseValue = wasm.TS_ChannelDetails_set_balance_msat(this_ptr, val);
18516         // debug statements here
18517 }
18518         // uint64_t ChannelDetails_get_outbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18519 /* @internal */
18520 export function ChannelDetails_get_outbound_capacity_msat(this_ptr: number): bigint {
18521         if(!isWasmInitialized) {
18522                 throw new Error("initializeWasm() must be awaited first!");
18523         }
18524         const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_capacity_msat(this_ptr);
18525         return nativeResponseValue;
18526 }
18527         // void ChannelDetails_set_outbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
18528 /* @internal */
18529 export function ChannelDetails_set_outbound_capacity_msat(this_ptr: number, val: bigint): void {
18530         if(!isWasmInitialized) {
18531                 throw new Error("initializeWasm() must be awaited first!");
18532         }
18533         const nativeResponseValue = wasm.TS_ChannelDetails_set_outbound_capacity_msat(this_ptr, val);
18534         // debug statements here
18535 }
18536         // uint64_t ChannelDetails_get_inbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18537 /* @internal */
18538 export function ChannelDetails_get_inbound_capacity_msat(this_ptr: number): bigint {
18539         if(!isWasmInitialized) {
18540                 throw new Error("initializeWasm() must be awaited first!");
18541         }
18542         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_capacity_msat(this_ptr);
18543         return nativeResponseValue;
18544 }
18545         // void ChannelDetails_set_inbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
18546 /* @internal */
18547 export function ChannelDetails_set_inbound_capacity_msat(this_ptr: number, val: bigint): void {
18548         if(!isWasmInitialized) {
18549                 throw new Error("initializeWasm() must be awaited first!");
18550         }
18551         const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_capacity_msat(this_ptr, val);
18552         // debug statements here
18553 }
18554         // struct LDKCOption_u32Z ChannelDetails_get_confirmations_required(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18555 /* @internal */
18556 export function ChannelDetails_get_confirmations_required(this_ptr: number): number {
18557         if(!isWasmInitialized) {
18558                 throw new Error("initializeWasm() must be awaited first!");
18559         }
18560         const nativeResponseValue = wasm.TS_ChannelDetails_get_confirmations_required(this_ptr);
18561         return nativeResponseValue;
18562 }
18563         // void ChannelDetails_set_confirmations_required(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
18564 /* @internal */
18565 export function ChannelDetails_set_confirmations_required(this_ptr: number, val: number): void {
18566         if(!isWasmInitialized) {
18567                 throw new Error("initializeWasm() must be awaited first!");
18568         }
18569         const nativeResponseValue = wasm.TS_ChannelDetails_set_confirmations_required(this_ptr, val);
18570         // debug statements here
18571 }
18572         // struct LDKCOption_u16Z ChannelDetails_get_force_close_spend_delay(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18573 /* @internal */
18574 export function ChannelDetails_get_force_close_spend_delay(this_ptr: number): number {
18575         if(!isWasmInitialized) {
18576                 throw new Error("initializeWasm() must be awaited first!");
18577         }
18578         const nativeResponseValue = wasm.TS_ChannelDetails_get_force_close_spend_delay(this_ptr);
18579         return nativeResponseValue;
18580 }
18581         // void ChannelDetails_set_force_close_spend_delay(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val);
18582 /* @internal */
18583 export function ChannelDetails_set_force_close_spend_delay(this_ptr: number, val: number): void {
18584         if(!isWasmInitialized) {
18585                 throw new Error("initializeWasm() must be awaited first!");
18586         }
18587         const nativeResponseValue = wasm.TS_ChannelDetails_set_force_close_spend_delay(this_ptr, val);
18588         // debug statements here
18589 }
18590         // bool ChannelDetails_get_is_outbound(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18591 /* @internal */
18592 export function ChannelDetails_get_is_outbound(this_ptr: number): boolean {
18593         if(!isWasmInitialized) {
18594                 throw new Error("initializeWasm() must be awaited first!");
18595         }
18596         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_outbound(this_ptr);
18597         return nativeResponseValue;
18598 }
18599         // void ChannelDetails_set_is_outbound(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
18600 /* @internal */
18601 export function ChannelDetails_set_is_outbound(this_ptr: number, val: boolean): void {
18602         if(!isWasmInitialized) {
18603                 throw new Error("initializeWasm() must be awaited first!");
18604         }
18605         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_outbound(this_ptr, val);
18606         // debug statements here
18607 }
18608         // bool ChannelDetails_get_is_funding_locked(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18609 /* @internal */
18610 export function ChannelDetails_get_is_funding_locked(this_ptr: number): boolean {
18611         if(!isWasmInitialized) {
18612                 throw new Error("initializeWasm() must be awaited first!");
18613         }
18614         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_funding_locked(this_ptr);
18615         return nativeResponseValue;
18616 }
18617         // void ChannelDetails_set_is_funding_locked(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
18618 /* @internal */
18619 export function ChannelDetails_set_is_funding_locked(this_ptr: number, val: boolean): void {
18620         if(!isWasmInitialized) {
18621                 throw new Error("initializeWasm() must be awaited first!");
18622         }
18623         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_funding_locked(this_ptr, val);
18624         // debug statements here
18625 }
18626         // bool ChannelDetails_get_is_usable(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18627 /* @internal */
18628 export function ChannelDetails_get_is_usable(this_ptr: number): boolean {
18629         if(!isWasmInitialized) {
18630                 throw new Error("initializeWasm() must be awaited first!");
18631         }
18632         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_usable(this_ptr);
18633         return nativeResponseValue;
18634 }
18635         // void ChannelDetails_set_is_usable(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
18636 /* @internal */
18637 export function ChannelDetails_set_is_usable(this_ptr: number, val: boolean): void {
18638         if(!isWasmInitialized) {
18639                 throw new Error("initializeWasm() must be awaited first!");
18640         }
18641         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_usable(this_ptr, val);
18642         // debug statements here
18643 }
18644         // bool ChannelDetails_get_is_public(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
18645 /* @internal */
18646 export function ChannelDetails_get_is_public(this_ptr: number): boolean {
18647         if(!isWasmInitialized) {
18648                 throw new Error("initializeWasm() must be awaited first!");
18649         }
18650         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_public(this_ptr);
18651         return nativeResponseValue;
18652 }
18653         // void ChannelDetails_set_is_public(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
18654 /* @internal */
18655 export function ChannelDetails_set_is_public(this_ptr: number, val: boolean): void {
18656         if(!isWasmInitialized) {
18657                 throw new Error("initializeWasm() must be awaited first!");
18658         }
18659         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_public(this_ptr, val);
18660         // debug statements here
18661 }
18662         // MUST_USE_RES struct LDKChannelDetails ChannelDetails_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKChannelCounterparty counterparty_arg, struct LDKOutPoint funding_txo_arg, struct LDKChannelTypeFeatures channel_type_arg, struct LDKCOption_u64Z short_channel_id_arg, struct LDKCOption_u64Z inbound_scid_alias_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);
18663 /* @internal */
18664 export function ChannelDetails_new(channel_id_arg: number, counterparty_arg: number, funding_txo_arg: number, channel_type_arg: number, short_channel_id_arg: number, inbound_scid_alias_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 {
18665         if(!isWasmInitialized) {
18666                 throw new Error("initializeWasm() must be awaited first!");
18667         }
18668         const nativeResponseValue = wasm.TS_ChannelDetails_new(channel_id_arg, counterparty_arg, funding_txo_arg, channel_type_arg, short_channel_id_arg, inbound_scid_alias_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);
18669         return nativeResponseValue;
18670 }
18671         // uintptr_t ChannelDetails_clone_ptr(LDKChannelDetails *NONNULL_PTR arg);
18672 /* @internal */
18673 export function ChannelDetails_clone_ptr(arg: number): number {
18674         if(!isWasmInitialized) {
18675                 throw new Error("initializeWasm() must be awaited first!");
18676         }
18677         const nativeResponseValue = wasm.TS_ChannelDetails_clone_ptr(arg);
18678         return nativeResponseValue;
18679 }
18680         // struct LDKChannelDetails ChannelDetails_clone(const struct LDKChannelDetails *NONNULL_PTR orig);
18681 /* @internal */
18682 export function ChannelDetails_clone(orig: number): number {
18683         if(!isWasmInitialized) {
18684                 throw new Error("initializeWasm() must be awaited first!");
18685         }
18686         const nativeResponseValue = wasm.TS_ChannelDetails_clone(orig);
18687         return nativeResponseValue;
18688 }
18689         // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_inbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
18690 /* @internal */
18691 export function ChannelDetails_get_inbound_payment_scid(this_arg: number): number {
18692         if(!isWasmInitialized) {
18693                 throw new Error("initializeWasm() must be awaited first!");
18694         }
18695         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_payment_scid(this_arg);
18696         return nativeResponseValue;
18697 }
18698         // void PaymentSendFailure_free(struct LDKPaymentSendFailure this_ptr);
18699 /* @internal */
18700 export function PaymentSendFailure_free(this_ptr: number): void {
18701         if(!isWasmInitialized) {
18702                 throw new Error("initializeWasm() must be awaited first!");
18703         }
18704         const nativeResponseValue = wasm.TS_PaymentSendFailure_free(this_ptr);
18705         // debug statements here
18706 }
18707         // uintptr_t PaymentSendFailure_clone_ptr(LDKPaymentSendFailure *NONNULL_PTR arg);
18708 /* @internal */
18709 export function PaymentSendFailure_clone_ptr(arg: number): number {
18710         if(!isWasmInitialized) {
18711                 throw new Error("initializeWasm() must be awaited first!");
18712         }
18713         const nativeResponseValue = wasm.TS_PaymentSendFailure_clone_ptr(arg);
18714         return nativeResponseValue;
18715 }
18716         // struct LDKPaymentSendFailure PaymentSendFailure_clone(const struct LDKPaymentSendFailure *NONNULL_PTR orig);
18717 /* @internal */
18718 export function PaymentSendFailure_clone(orig: number): number {
18719         if(!isWasmInitialized) {
18720                 throw new Error("initializeWasm() must be awaited first!");
18721         }
18722         const nativeResponseValue = wasm.TS_PaymentSendFailure_clone(orig);
18723         return nativeResponseValue;
18724 }
18725         // struct LDKPaymentSendFailure PaymentSendFailure_parameter_error(struct LDKAPIError a);
18726 /* @internal */
18727 export function PaymentSendFailure_parameter_error(a: number): number {
18728         if(!isWasmInitialized) {
18729                 throw new Error("initializeWasm() must be awaited first!");
18730         }
18731         const nativeResponseValue = wasm.TS_PaymentSendFailure_parameter_error(a);
18732         return nativeResponseValue;
18733 }
18734         // struct LDKPaymentSendFailure PaymentSendFailure_path_parameter_error(struct LDKCVec_CResult_NoneAPIErrorZZ a);
18735 /* @internal */
18736 export function PaymentSendFailure_path_parameter_error(a: number): number {
18737         if(!isWasmInitialized) {
18738                 throw new Error("initializeWasm() must be awaited first!");
18739         }
18740         const nativeResponseValue = wasm.TS_PaymentSendFailure_path_parameter_error(a);
18741         return nativeResponseValue;
18742 }
18743         // struct LDKPaymentSendFailure PaymentSendFailure_all_failed_retry_safe(struct LDKCVec_APIErrorZ a);
18744 /* @internal */
18745 export function PaymentSendFailure_all_failed_retry_safe(a: number): number {
18746         if(!isWasmInitialized) {
18747                 throw new Error("initializeWasm() must be awaited first!");
18748         }
18749         const nativeResponseValue = wasm.TS_PaymentSendFailure_all_failed_retry_safe(a);
18750         return nativeResponseValue;
18751 }
18752         // struct LDKPaymentSendFailure PaymentSendFailure_partial_failure(struct LDKCVec_CResult_NoneAPIErrorZZ results, struct LDKRouteParameters failed_paths_retry, struct LDKThirtyTwoBytes payment_id);
18753 /* @internal */
18754 export function PaymentSendFailure_partial_failure(results: number, failed_paths_retry: number, payment_id: number): number {
18755         if(!isWasmInitialized) {
18756                 throw new Error("initializeWasm() must be awaited first!");
18757         }
18758         const nativeResponseValue = wasm.TS_PaymentSendFailure_partial_failure(results, failed_paths_retry, payment_id);
18759         return nativeResponseValue;
18760 }
18761         // void PhantomRouteHints_free(struct LDKPhantomRouteHints this_obj);
18762 /* @internal */
18763 export function PhantomRouteHints_free(this_obj: number): void {
18764         if(!isWasmInitialized) {
18765                 throw new Error("initializeWasm() must be awaited first!");
18766         }
18767         const nativeResponseValue = wasm.TS_PhantomRouteHints_free(this_obj);
18768         // debug statements here
18769 }
18770         // struct LDKCVec_ChannelDetailsZ PhantomRouteHints_get_channels(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
18771 /* @internal */
18772 export function PhantomRouteHints_get_channels(this_ptr: number): number {
18773         if(!isWasmInitialized) {
18774                 throw new Error("initializeWasm() must be awaited first!");
18775         }
18776         const nativeResponseValue = wasm.TS_PhantomRouteHints_get_channels(this_ptr);
18777         return nativeResponseValue;
18778 }
18779         // void PhantomRouteHints_set_channels(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKCVec_ChannelDetailsZ val);
18780 /* @internal */
18781 export function PhantomRouteHints_set_channels(this_ptr: number, val: number): void {
18782         if(!isWasmInitialized) {
18783                 throw new Error("initializeWasm() must be awaited first!");
18784         }
18785         const nativeResponseValue = wasm.TS_PhantomRouteHints_set_channels(this_ptr, val);
18786         // debug statements here
18787 }
18788         // uint64_t PhantomRouteHints_get_phantom_scid(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
18789 /* @internal */
18790 export function PhantomRouteHints_get_phantom_scid(this_ptr: number): bigint {
18791         if(!isWasmInitialized) {
18792                 throw new Error("initializeWasm() must be awaited first!");
18793         }
18794         const nativeResponseValue = wasm.TS_PhantomRouteHints_get_phantom_scid(this_ptr);
18795         return nativeResponseValue;
18796 }
18797         // void PhantomRouteHints_set_phantom_scid(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, uint64_t val);
18798 /* @internal */
18799 export function PhantomRouteHints_set_phantom_scid(this_ptr: number, val: bigint): void {
18800         if(!isWasmInitialized) {
18801                 throw new Error("initializeWasm() must be awaited first!");
18802         }
18803         const nativeResponseValue = wasm.TS_PhantomRouteHints_set_phantom_scid(this_ptr, val);
18804         // debug statements here
18805 }
18806         // struct LDKPublicKey PhantomRouteHints_get_real_node_pubkey(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
18807 /* @internal */
18808 export function PhantomRouteHints_get_real_node_pubkey(this_ptr: number): number {
18809         if(!isWasmInitialized) {
18810                 throw new Error("initializeWasm() must be awaited first!");
18811         }
18812         const nativeResponseValue = wasm.TS_PhantomRouteHints_get_real_node_pubkey(this_ptr);
18813         return nativeResponseValue;
18814 }
18815         // void PhantomRouteHints_set_real_node_pubkey(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKPublicKey val);
18816 /* @internal */
18817 export function PhantomRouteHints_set_real_node_pubkey(this_ptr: number, val: number): void {
18818         if(!isWasmInitialized) {
18819                 throw new Error("initializeWasm() must be awaited first!");
18820         }
18821         const nativeResponseValue = wasm.TS_PhantomRouteHints_set_real_node_pubkey(this_ptr, val);
18822         // debug statements here
18823 }
18824         // MUST_USE_RES struct LDKPhantomRouteHints PhantomRouteHints_new(struct LDKCVec_ChannelDetailsZ channels_arg, uint64_t phantom_scid_arg, struct LDKPublicKey real_node_pubkey_arg);
18825 /* @internal */
18826 export function PhantomRouteHints_new(channels_arg: number, phantom_scid_arg: bigint, real_node_pubkey_arg: number): number {
18827         if(!isWasmInitialized) {
18828                 throw new Error("initializeWasm() must be awaited first!");
18829         }
18830         const nativeResponseValue = wasm.TS_PhantomRouteHints_new(channels_arg, phantom_scid_arg, real_node_pubkey_arg);
18831         return nativeResponseValue;
18832 }
18833         // uintptr_t PhantomRouteHints_clone_ptr(LDKPhantomRouteHints *NONNULL_PTR arg);
18834 /* @internal */
18835 export function PhantomRouteHints_clone_ptr(arg: number): number {
18836         if(!isWasmInitialized) {
18837                 throw new Error("initializeWasm() must be awaited first!");
18838         }
18839         const nativeResponseValue = wasm.TS_PhantomRouteHints_clone_ptr(arg);
18840         return nativeResponseValue;
18841 }
18842         // struct LDKPhantomRouteHints PhantomRouteHints_clone(const struct LDKPhantomRouteHints *NONNULL_PTR orig);
18843 /* @internal */
18844 export function PhantomRouteHints_clone(orig: number): number {
18845         if(!isWasmInitialized) {
18846                 throw new Error("initializeWasm() must be awaited first!");
18847         }
18848         const nativeResponseValue = wasm.TS_PhantomRouteHints_clone(orig);
18849         return nativeResponseValue;
18850 }
18851         // 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);
18852 /* @internal */
18853 export function ChannelManager_new(fee_est: number, chain_monitor: number, tx_broadcaster: number, logger: number, keys_manager: number, config: number, params: number): number {
18854         if(!isWasmInitialized) {
18855                 throw new Error("initializeWasm() must be awaited first!");
18856         }
18857         const nativeResponseValue = wasm.TS_ChannelManager_new(fee_est, chain_monitor, tx_broadcaster, logger, keys_manager, config, params);
18858         return nativeResponseValue;
18859 }
18860         // MUST_USE_RES struct LDKUserConfig ChannelManager_get_current_default_configuration(const struct LDKChannelManager *NONNULL_PTR this_arg);
18861 /* @internal */
18862 export function ChannelManager_get_current_default_configuration(this_arg: number): number {
18863         if(!isWasmInitialized) {
18864                 throw new Error("initializeWasm() must be awaited first!");
18865         }
18866         const nativeResponseValue = wasm.TS_ChannelManager_get_current_default_configuration(this_arg);
18867         return nativeResponseValue;
18868 }
18869         // 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);
18870 /* @internal */
18871 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 {
18872         if(!isWasmInitialized) {
18873                 throw new Error("initializeWasm() must be awaited first!");
18874         }
18875         const nativeResponseValue = wasm.TS_ChannelManager_create_channel(this_arg, their_network_key, channel_value_satoshis, push_msat, user_channel_id, override_config);
18876         return nativeResponseValue;
18877 }
18878         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
18879 /* @internal */
18880 export function ChannelManager_list_channels(this_arg: number): number {
18881         if(!isWasmInitialized) {
18882                 throw new Error("initializeWasm() must be awaited first!");
18883         }
18884         const nativeResponseValue = wasm.TS_ChannelManager_list_channels(this_arg);
18885         return nativeResponseValue;
18886 }
18887         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
18888 /* @internal */
18889 export function ChannelManager_list_usable_channels(this_arg: number): number {
18890         if(!isWasmInitialized) {
18891                 throw new Error("initializeWasm() must be awaited first!");
18892         }
18893         const nativeResponseValue = wasm.TS_ChannelManager_list_usable_channels(this_arg);
18894         return nativeResponseValue;
18895 }
18896         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32]);
18897 /* @internal */
18898 export function ChannelManager_close_channel(this_arg: number, channel_id: number): number {
18899         if(!isWasmInitialized) {
18900                 throw new Error("initializeWasm() must be awaited first!");
18901         }
18902         const nativeResponseValue = wasm.TS_ChannelManager_close_channel(this_arg, channel_id);
18903         return nativeResponseValue;
18904 }
18905         // 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);
18906 /* @internal */
18907 export function ChannelManager_close_channel_with_target_feerate(this_arg: number, channel_id: number, target_feerate_sats_per_1000_weight: number): number {
18908         if(!isWasmInitialized) {
18909                 throw new Error("initializeWasm() must be awaited first!");
18910         }
18911         const nativeResponseValue = wasm.TS_ChannelManager_close_channel_with_target_feerate(this_arg, channel_id, target_feerate_sats_per_1000_weight);
18912         return nativeResponseValue;
18913 }
18914         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32]);
18915 /* @internal */
18916 export function ChannelManager_force_close_channel(this_arg: number, channel_id: number): number {
18917         if(!isWasmInitialized) {
18918                 throw new Error("initializeWasm() must be awaited first!");
18919         }
18920         const nativeResponseValue = wasm.TS_ChannelManager_force_close_channel(this_arg, channel_id);
18921         return nativeResponseValue;
18922 }
18923         // void ChannelManager_force_close_all_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
18924 /* @internal */
18925 export function ChannelManager_force_close_all_channels(this_arg: number): void {
18926         if(!isWasmInitialized) {
18927                 throw new Error("initializeWasm() must be awaited first!");
18928         }
18929         const nativeResponseValue = wasm.TS_ChannelManager_force_close_all_channels(this_arg);
18930         // debug statements here
18931 }
18932         // 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);
18933 /* @internal */
18934 export function ChannelManager_send_payment(this_arg: number, route: number, payment_hash: number, payment_secret: number): number {
18935         if(!isWasmInitialized) {
18936                 throw new Error("initializeWasm() must be awaited first!");
18937         }
18938         const nativeResponseValue = wasm.TS_ChannelManager_send_payment(this_arg, route, payment_hash, payment_secret);
18939         return nativeResponseValue;
18940 }
18941         // 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);
18942 /* @internal */
18943 export function ChannelManager_retry_payment(this_arg: number, route: number, payment_id: number): number {
18944         if(!isWasmInitialized) {
18945                 throw new Error("initializeWasm() must be awaited first!");
18946         }
18947         const nativeResponseValue = wasm.TS_ChannelManager_retry_payment(this_arg, route, payment_id);
18948         return nativeResponseValue;
18949 }
18950         // void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id);
18951 /* @internal */
18952 export function ChannelManager_abandon_payment(this_arg: number, payment_id: number): void {
18953         if(!isWasmInitialized) {
18954                 throw new Error("initializeWasm() must be awaited first!");
18955         }
18956         const nativeResponseValue = wasm.TS_ChannelManager_abandon_payment(this_arg, payment_id);
18957         // debug statements here
18958 }
18959         // 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);
18960 /* @internal */
18961 export function ChannelManager_send_spontaneous_payment(this_arg: number, route: number, payment_preimage: number): number {
18962         if(!isWasmInitialized) {
18963                 throw new Error("initializeWasm() must be awaited first!");
18964         }
18965         const nativeResponseValue = wasm.TS_ChannelManager_send_spontaneous_payment(this_arg, route, payment_preimage);
18966         return nativeResponseValue;
18967 }
18968         // 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);
18969 /* @internal */
18970 export function ChannelManager_funding_transaction_generated(this_arg: number, temporary_channel_id: number, funding_transaction: number): number {
18971         if(!isWasmInitialized) {
18972                 throw new Error("initializeWasm() must be awaited first!");
18973         }
18974         const nativeResponseValue = wasm.TS_ChannelManager_funding_transaction_generated(this_arg, temporary_channel_id, funding_transaction);
18975         return nativeResponseValue;
18976 }
18977         // void ChannelManager_broadcast_node_announcement(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_NetAddressZ addresses);
18978 /* @internal */
18979 export function ChannelManager_broadcast_node_announcement(this_arg: number, rgb: number, alias: number, addresses: number): void {
18980         if(!isWasmInitialized) {
18981                 throw new Error("initializeWasm() must be awaited first!");
18982         }
18983         const nativeResponseValue = wasm.TS_ChannelManager_broadcast_node_announcement(this_arg, rgb, alias, addresses);
18984         // debug statements here
18985 }
18986         // void ChannelManager_process_pending_htlc_forwards(const struct LDKChannelManager *NONNULL_PTR this_arg);
18987 /* @internal */
18988 export function ChannelManager_process_pending_htlc_forwards(this_arg: number): void {
18989         if(!isWasmInitialized) {
18990                 throw new Error("initializeWasm() must be awaited first!");
18991         }
18992         const nativeResponseValue = wasm.TS_ChannelManager_process_pending_htlc_forwards(this_arg);
18993         // debug statements here
18994 }
18995         // void ChannelManager_timer_tick_occurred(const struct LDKChannelManager *NONNULL_PTR this_arg);
18996 /* @internal */
18997 export function ChannelManager_timer_tick_occurred(this_arg: number): void {
18998         if(!isWasmInitialized) {
18999                 throw new Error("initializeWasm() must be awaited first!");
19000         }
19001         const nativeResponseValue = wasm.TS_ChannelManager_timer_tick_occurred(this_arg);
19002         // debug statements here
19003 }
19004         // MUST_USE_RES bool ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
19005 /* @internal */
19006 export function ChannelManager_fail_htlc_backwards(this_arg: number, payment_hash: number): boolean {
19007         if(!isWasmInitialized) {
19008                 throw new Error("initializeWasm() must be awaited first!");
19009         }
19010         const nativeResponseValue = wasm.TS_ChannelManager_fail_htlc_backwards(this_arg, payment_hash);
19011         return nativeResponseValue;
19012 }
19013         // MUST_USE_RES bool ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage);
19014 /* @internal */
19015 export function ChannelManager_claim_funds(this_arg: number, payment_preimage: number): boolean {
19016         if(!isWasmInitialized) {
19017                 throw new Error("initializeWasm() must be awaited first!");
19018         }
19019         const nativeResponseValue = wasm.TS_ChannelManager_claim_funds(this_arg, payment_preimage);
19020         return nativeResponseValue;
19021 }
19022         // MUST_USE_RES struct LDKPublicKey ChannelManager_get_our_node_id(const struct LDKChannelManager *NONNULL_PTR this_arg);
19023 /* @internal */
19024 export function ChannelManager_get_our_node_id(this_arg: number): number {
19025         if(!isWasmInitialized) {
19026                 throw new Error("initializeWasm() must be awaited first!");
19027         }
19028         const nativeResponseValue = wasm.TS_ChannelManager_get_our_node_id(this_arg);
19029         return nativeResponseValue;
19030 }
19031         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_accept_inbound_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], uint64_t user_channel_id);
19032 /* @internal */
19033 export function ChannelManager_accept_inbound_channel(this_arg: number, temporary_channel_id: number, user_channel_id: bigint): number {
19034         if(!isWasmInitialized) {
19035                 throw new Error("initializeWasm() must be awaited first!");
19036         }
19037         const nativeResponseValue = wasm.TS_ChannelManager_accept_inbound_channel(this_arg, temporary_channel_id, user_channel_id);
19038         return nativeResponseValue;
19039 }
19040         // 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);
19041 /* @internal */
19042 export function ChannelManager_create_inbound_payment(this_arg: number, min_value_msat: number, invoice_expiry_delta_secs: number): number {
19043         if(!isWasmInitialized) {
19044                 throw new Error("initializeWasm() must be awaited first!");
19045         }
19046         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment(this_arg, min_value_msat, invoice_expiry_delta_secs);
19047         return nativeResponseValue;
19048 }
19049         // 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);
19050 /* @internal */
19051 export function ChannelManager_create_inbound_payment_legacy(this_arg: number, min_value_msat: number, invoice_expiry_delta_secs: number): number {
19052         if(!isWasmInitialized) {
19053                 throw new Error("initializeWasm() must be awaited first!");
19054         }
19055         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_legacy(this_arg, min_value_msat, invoice_expiry_delta_secs);
19056         return nativeResponseValue;
19057 }
19058         // 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);
19059 /* @internal */
19060 export function ChannelManager_create_inbound_payment_for_hash(this_arg: number, payment_hash: number, min_value_msat: number, invoice_expiry_delta_secs: number): number {
19061         if(!isWasmInitialized) {
19062                 throw new Error("initializeWasm() must be awaited first!");
19063         }
19064         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_for_hash(this_arg, payment_hash, min_value_msat, invoice_expiry_delta_secs);
19065         return nativeResponseValue;
19066 }
19067         // 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);
19068 /* @internal */
19069 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 {
19070         if(!isWasmInitialized) {
19071                 throw new Error("initializeWasm() must be awaited first!");
19072         }
19073         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_for_hash_legacy(this_arg, payment_hash, min_value_msat, invoice_expiry_delta_secs);
19074         return nativeResponseValue;
19075 }
19076         // 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);
19077 /* @internal */
19078 export function ChannelManager_get_payment_preimage(this_arg: number, payment_hash: number, payment_secret: number): number {
19079         if(!isWasmInitialized) {
19080                 throw new Error("initializeWasm() must be awaited first!");
19081         }
19082         const nativeResponseValue = wasm.TS_ChannelManager_get_payment_preimage(this_arg, payment_hash, payment_secret);
19083         return nativeResponseValue;
19084 }
19085         // MUST_USE_RES uint64_t ChannelManager_get_phantom_scid(const struct LDKChannelManager *NONNULL_PTR this_arg);
19086 /* @internal */
19087 export function ChannelManager_get_phantom_scid(this_arg: number): bigint {
19088         if(!isWasmInitialized) {
19089                 throw new Error("initializeWasm() must be awaited first!");
19090         }
19091         const nativeResponseValue = wasm.TS_ChannelManager_get_phantom_scid(this_arg);
19092         return nativeResponseValue;
19093 }
19094         // MUST_USE_RES struct LDKPhantomRouteHints ChannelManager_get_phantom_route_hints(const struct LDKChannelManager *NONNULL_PTR this_arg);
19095 /* @internal */
19096 export function ChannelManager_get_phantom_route_hints(this_arg: number): number {
19097         if(!isWasmInitialized) {
19098                 throw new Error("initializeWasm() must be awaited first!");
19099         }
19100         const nativeResponseValue = wasm.TS_ChannelManager_get_phantom_route_hints(this_arg);
19101         return nativeResponseValue;
19102 }
19103         // struct LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
19104 /* @internal */
19105 export function ChannelManager_as_MessageSendEventsProvider(this_arg: number): number {
19106         if(!isWasmInitialized) {
19107                 throw new Error("initializeWasm() must be awaited first!");
19108         }
19109         const nativeResponseValue = wasm.TS_ChannelManager_as_MessageSendEventsProvider(this_arg);
19110         return nativeResponseValue;
19111 }
19112         // struct LDKEventsProvider ChannelManager_as_EventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
19113 /* @internal */
19114 export function ChannelManager_as_EventsProvider(this_arg: number): number {
19115         if(!isWasmInitialized) {
19116                 throw new Error("initializeWasm() must be awaited first!");
19117         }
19118         const nativeResponseValue = wasm.TS_ChannelManager_as_EventsProvider(this_arg);
19119         return nativeResponseValue;
19120 }
19121         // struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNULL_PTR this_arg);
19122 /* @internal */
19123 export function ChannelManager_as_Listen(this_arg: number): number {
19124         if(!isWasmInitialized) {
19125                 throw new Error("initializeWasm() must be awaited first!");
19126         }
19127         const nativeResponseValue = wasm.TS_ChannelManager_as_Listen(this_arg);
19128         return nativeResponseValue;
19129 }
19130         // struct LDKConfirm ChannelManager_as_Confirm(const struct LDKChannelManager *NONNULL_PTR this_arg);
19131 /* @internal */
19132 export function ChannelManager_as_Confirm(this_arg: number): number {
19133         if(!isWasmInitialized) {
19134                 throw new Error("initializeWasm() must be awaited first!");
19135         }
19136         const nativeResponseValue = wasm.TS_ChannelManager_as_Confirm(this_arg);
19137         return nativeResponseValue;
19138 }
19139         // void ChannelManager_await_persistable_update(const struct LDKChannelManager *NONNULL_PTR this_arg);
19140 /* @internal */
19141 export function ChannelManager_await_persistable_update(this_arg: number): void {
19142         if(!isWasmInitialized) {
19143                 throw new Error("initializeWasm() must be awaited first!");
19144         }
19145         const nativeResponseValue = wasm.TS_ChannelManager_await_persistable_update(this_arg);
19146         // debug statements here
19147 }
19148         // MUST_USE_RES struct LDKBestBlock ChannelManager_current_best_block(const struct LDKChannelManager *NONNULL_PTR this_arg);
19149 /* @internal */
19150 export function ChannelManager_current_best_block(this_arg: number): number {
19151         if(!isWasmInitialized) {
19152                 throw new Error("initializeWasm() must be awaited first!");
19153         }
19154         const nativeResponseValue = wasm.TS_ChannelManager_current_best_block(this_arg);
19155         return nativeResponseValue;
19156 }
19157         // struct LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg);
19158 /* @internal */
19159 export function ChannelManager_as_ChannelMessageHandler(this_arg: number): number {
19160         if(!isWasmInitialized) {
19161                 throw new Error("initializeWasm() must be awaited first!");
19162         }
19163         const nativeResponseValue = wasm.TS_ChannelManager_as_ChannelMessageHandler(this_arg);
19164         return nativeResponseValue;
19165 }
19166         // struct LDKCVec_u8Z CounterpartyForwardingInfo_write(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR obj);
19167 /* @internal */
19168 export function CounterpartyForwardingInfo_write(obj: number): number {
19169         if(!isWasmInitialized) {
19170                 throw new Error("initializeWasm() must be awaited first!");
19171         }
19172         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_write(obj);
19173         return nativeResponseValue;
19174 }
19175         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CounterpartyForwardingInfo_read(struct LDKu8slice ser);
19176 /* @internal */
19177 export function CounterpartyForwardingInfo_read(ser: number): number {
19178         if(!isWasmInitialized) {
19179                 throw new Error("initializeWasm() must be awaited first!");
19180         }
19181         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_read(ser);
19182         return nativeResponseValue;
19183 }
19184         // struct LDKCVec_u8Z ChannelCounterparty_write(const struct LDKChannelCounterparty *NONNULL_PTR obj);
19185 /* @internal */
19186 export function ChannelCounterparty_write(obj: number): number {
19187         if(!isWasmInitialized) {
19188                 throw new Error("initializeWasm() must be awaited first!");
19189         }
19190         const nativeResponseValue = wasm.TS_ChannelCounterparty_write(obj);
19191         return nativeResponseValue;
19192 }
19193         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ ChannelCounterparty_read(struct LDKu8slice ser);
19194 /* @internal */
19195 export function ChannelCounterparty_read(ser: number): number {
19196         if(!isWasmInitialized) {
19197                 throw new Error("initializeWasm() must be awaited first!");
19198         }
19199         const nativeResponseValue = wasm.TS_ChannelCounterparty_read(ser);
19200         return nativeResponseValue;
19201 }
19202         // struct LDKCVec_u8Z ChannelDetails_write(const struct LDKChannelDetails *NONNULL_PTR obj);
19203 /* @internal */
19204 export function ChannelDetails_write(obj: number): number {
19205         if(!isWasmInitialized) {
19206                 throw new Error("initializeWasm() must be awaited first!");
19207         }
19208         const nativeResponseValue = wasm.TS_ChannelDetails_write(obj);
19209         return nativeResponseValue;
19210 }
19211         // struct LDKCResult_ChannelDetailsDecodeErrorZ ChannelDetails_read(struct LDKu8slice ser);
19212 /* @internal */
19213 export function ChannelDetails_read(ser: number): number {
19214         if(!isWasmInitialized) {
19215                 throw new Error("initializeWasm() must be awaited first!");
19216         }
19217         const nativeResponseValue = wasm.TS_ChannelDetails_read(ser);
19218         return nativeResponseValue;
19219 }
19220         // struct LDKCVec_u8Z PhantomRouteHints_write(const struct LDKPhantomRouteHints *NONNULL_PTR obj);
19221 /* @internal */
19222 export function PhantomRouteHints_write(obj: number): number {
19223         if(!isWasmInitialized) {
19224                 throw new Error("initializeWasm() must be awaited first!");
19225         }
19226         const nativeResponseValue = wasm.TS_PhantomRouteHints_write(obj);
19227         return nativeResponseValue;
19228 }
19229         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ PhantomRouteHints_read(struct LDKu8slice ser);
19230 /* @internal */
19231 export function PhantomRouteHints_read(ser: number): number {
19232         if(!isWasmInitialized) {
19233                 throw new Error("initializeWasm() must be awaited first!");
19234         }
19235         const nativeResponseValue = wasm.TS_PhantomRouteHints_read(ser);
19236         return nativeResponseValue;
19237 }
19238         // struct LDKCVec_u8Z ChannelManager_write(const struct LDKChannelManager *NONNULL_PTR obj);
19239 /* @internal */
19240 export function ChannelManager_write(obj: number): number {
19241         if(!isWasmInitialized) {
19242                 throw new Error("initializeWasm() must be awaited first!");
19243         }
19244         const nativeResponseValue = wasm.TS_ChannelManager_write(obj);
19245         return nativeResponseValue;
19246 }
19247         // void ChannelManagerReadArgs_free(struct LDKChannelManagerReadArgs this_obj);
19248 /* @internal */
19249 export function ChannelManagerReadArgs_free(this_obj: number): void {
19250         if(!isWasmInitialized) {
19251                 throw new Error("initializeWasm() must be awaited first!");
19252         }
19253         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_free(this_obj);
19254         // debug statements here
19255 }
19256         // const struct LDKKeysInterface *ChannelManagerReadArgs_get_keys_manager(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
19257 /* @internal */
19258 export function ChannelManagerReadArgs_get_keys_manager(this_ptr: number): number {
19259         if(!isWasmInitialized) {
19260                 throw new Error("initializeWasm() must be awaited first!");
19261         }
19262         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_keys_manager(this_ptr);
19263         return nativeResponseValue;
19264 }
19265         // void ChannelManagerReadArgs_set_keys_manager(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKKeysInterface val);
19266 /* @internal */
19267 export function ChannelManagerReadArgs_set_keys_manager(this_ptr: number, val: number): void {
19268         if(!isWasmInitialized) {
19269                 throw new Error("initializeWasm() must be awaited first!");
19270         }
19271         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_keys_manager(this_ptr, val);
19272         // debug statements here
19273 }
19274         // const struct LDKFeeEstimator *ChannelManagerReadArgs_get_fee_estimator(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
19275 /* @internal */
19276 export function ChannelManagerReadArgs_get_fee_estimator(this_ptr: number): number {
19277         if(!isWasmInitialized) {
19278                 throw new Error("initializeWasm() must be awaited first!");
19279         }
19280         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_fee_estimator(this_ptr);
19281         return nativeResponseValue;
19282 }
19283         // void ChannelManagerReadArgs_set_fee_estimator(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKFeeEstimator val);
19284 /* @internal */
19285 export function ChannelManagerReadArgs_set_fee_estimator(this_ptr: number, val: number): void {
19286         if(!isWasmInitialized) {
19287                 throw new Error("initializeWasm() must be awaited first!");
19288         }
19289         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_fee_estimator(this_ptr, val);
19290         // debug statements here
19291 }
19292         // const struct LDKWatch *ChannelManagerReadArgs_get_chain_monitor(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
19293 /* @internal */
19294 export function ChannelManagerReadArgs_get_chain_monitor(this_ptr: number): number {
19295         if(!isWasmInitialized) {
19296                 throw new Error("initializeWasm() must be awaited first!");
19297         }
19298         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_chain_monitor(this_ptr);
19299         return nativeResponseValue;
19300 }
19301         // void ChannelManagerReadArgs_set_chain_monitor(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKWatch val);
19302 /* @internal */
19303 export function ChannelManagerReadArgs_set_chain_monitor(this_ptr: number, val: number): void {
19304         if(!isWasmInitialized) {
19305                 throw new Error("initializeWasm() must be awaited first!");
19306         }
19307         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_chain_monitor(this_ptr, val);
19308         // debug statements here
19309 }
19310         // const struct LDKBroadcasterInterface *ChannelManagerReadArgs_get_tx_broadcaster(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
19311 /* @internal */
19312 export function ChannelManagerReadArgs_get_tx_broadcaster(this_ptr: number): number {
19313         if(!isWasmInitialized) {
19314                 throw new Error("initializeWasm() must be awaited first!");
19315         }
19316         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_tx_broadcaster(this_ptr);
19317         return nativeResponseValue;
19318 }
19319         // void ChannelManagerReadArgs_set_tx_broadcaster(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKBroadcasterInterface val);
19320 /* @internal */
19321 export function ChannelManagerReadArgs_set_tx_broadcaster(this_ptr: number, val: number): void {
19322         if(!isWasmInitialized) {
19323                 throw new Error("initializeWasm() must be awaited first!");
19324         }
19325         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_tx_broadcaster(this_ptr, val);
19326         // debug statements here
19327 }
19328         // const struct LDKLogger *ChannelManagerReadArgs_get_logger(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
19329 /* @internal */
19330 export function ChannelManagerReadArgs_get_logger(this_ptr: number): number {
19331         if(!isWasmInitialized) {
19332                 throw new Error("initializeWasm() must be awaited first!");
19333         }
19334         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_logger(this_ptr);
19335         return nativeResponseValue;
19336 }
19337         // void ChannelManagerReadArgs_set_logger(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKLogger val);
19338 /* @internal */
19339 export function ChannelManagerReadArgs_set_logger(this_ptr: number, val: number): void {
19340         if(!isWasmInitialized) {
19341                 throw new Error("initializeWasm() must be awaited first!");
19342         }
19343         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_logger(this_ptr, val);
19344         // debug statements here
19345 }
19346         // struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
19347 /* @internal */
19348 export function ChannelManagerReadArgs_get_default_config(this_ptr: number): number {
19349         if(!isWasmInitialized) {
19350                 throw new Error("initializeWasm() must be awaited first!");
19351         }
19352         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_default_config(this_ptr);
19353         return nativeResponseValue;
19354 }
19355         // void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKUserConfig val);
19356 /* @internal */
19357 export function ChannelManagerReadArgs_set_default_config(this_ptr: number, val: number): void {
19358         if(!isWasmInitialized) {
19359                 throw new Error("initializeWasm() must be awaited first!");
19360         }
19361         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_default_config(this_ptr, val);
19362         // debug statements here
19363 }
19364         // 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);
19365 /* @internal */
19366 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 {
19367         if(!isWasmInitialized) {
19368                 throw new Error("initializeWasm() must be awaited first!");
19369         }
19370         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_new(keys_manager, fee_estimator, chain_monitor, tx_broadcaster, logger, default_config, channel_monitors);
19371         return nativeResponseValue;
19372 }
19373         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ C2Tuple_BlockHashChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg);
19374 /* @internal */
19375 export function C2Tuple_BlockHashChannelManagerZ_read(ser: number, arg: number): number {
19376         if(!isWasmInitialized) {
19377                 throw new Error("initializeWasm() must be awaited first!");
19378         }
19379         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_read(ser, arg);
19380         return nativeResponseValue;
19381 }
19382         // void DecodeError_free(struct LDKDecodeError this_obj);
19383 /* @internal */
19384 export function DecodeError_free(this_obj: number): void {
19385         if(!isWasmInitialized) {
19386                 throw new Error("initializeWasm() must be awaited first!");
19387         }
19388         const nativeResponseValue = wasm.TS_DecodeError_free(this_obj);
19389         // debug statements here
19390 }
19391         // uintptr_t DecodeError_clone_ptr(LDKDecodeError *NONNULL_PTR arg);
19392 /* @internal */
19393 export function DecodeError_clone_ptr(arg: number): number {
19394         if(!isWasmInitialized) {
19395                 throw new Error("initializeWasm() must be awaited first!");
19396         }
19397         const nativeResponseValue = wasm.TS_DecodeError_clone_ptr(arg);
19398         return nativeResponseValue;
19399 }
19400         // struct LDKDecodeError DecodeError_clone(const struct LDKDecodeError *NONNULL_PTR orig);
19401 /* @internal */
19402 export function DecodeError_clone(orig: number): number {
19403         if(!isWasmInitialized) {
19404                 throw new Error("initializeWasm() must be awaited first!");
19405         }
19406         const nativeResponseValue = wasm.TS_DecodeError_clone(orig);
19407         return nativeResponseValue;
19408 }
19409         // void Init_free(struct LDKInit this_obj);
19410 /* @internal */
19411 export function Init_free(this_obj: number): void {
19412         if(!isWasmInitialized) {
19413                 throw new Error("initializeWasm() must be awaited first!");
19414         }
19415         const nativeResponseValue = wasm.TS_Init_free(this_obj);
19416         // debug statements here
19417 }
19418         // struct LDKInitFeatures Init_get_features(const struct LDKInit *NONNULL_PTR this_ptr);
19419 /* @internal */
19420 export function Init_get_features(this_ptr: number): number {
19421         if(!isWasmInitialized) {
19422                 throw new Error("initializeWasm() must be awaited first!");
19423         }
19424         const nativeResponseValue = wasm.TS_Init_get_features(this_ptr);
19425         return nativeResponseValue;
19426 }
19427         // void Init_set_features(struct LDKInit *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
19428 /* @internal */
19429 export function Init_set_features(this_ptr: number, val: number): void {
19430         if(!isWasmInitialized) {
19431                 throw new Error("initializeWasm() must be awaited first!");
19432         }
19433         const nativeResponseValue = wasm.TS_Init_set_features(this_ptr, val);
19434         // debug statements here
19435 }
19436         // struct LDKCOption_NetAddressZ Init_get_remote_network_address(const struct LDKInit *NONNULL_PTR this_ptr);
19437 /* @internal */
19438 export function Init_get_remote_network_address(this_ptr: number): number {
19439         if(!isWasmInitialized) {
19440                 throw new Error("initializeWasm() must be awaited first!");
19441         }
19442         const nativeResponseValue = wasm.TS_Init_get_remote_network_address(this_ptr);
19443         return nativeResponseValue;
19444 }
19445         // void Init_set_remote_network_address(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_NetAddressZ val);
19446 /* @internal */
19447 export function Init_set_remote_network_address(this_ptr: number, val: number): void {
19448         if(!isWasmInitialized) {
19449                 throw new Error("initializeWasm() must be awaited first!");
19450         }
19451         const nativeResponseValue = wasm.TS_Init_set_remote_network_address(this_ptr, val);
19452         // debug statements here
19453 }
19454         // MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg, struct LDKCOption_NetAddressZ remote_network_address_arg);
19455 /* @internal */
19456 export function Init_new(features_arg: number, remote_network_address_arg: number): number {
19457         if(!isWasmInitialized) {
19458                 throw new Error("initializeWasm() must be awaited first!");
19459         }
19460         const nativeResponseValue = wasm.TS_Init_new(features_arg, remote_network_address_arg);
19461         return nativeResponseValue;
19462 }
19463         // uintptr_t Init_clone_ptr(LDKInit *NONNULL_PTR arg);
19464 /* @internal */
19465 export function Init_clone_ptr(arg: number): number {
19466         if(!isWasmInitialized) {
19467                 throw new Error("initializeWasm() must be awaited first!");
19468         }
19469         const nativeResponseValue = wasm.TS_Init_clone_ptr(arg);
19470         return nativeResponseValue;
19471 }
19472         // struct LDKInit Init_clone(const struct LDKInit *NONNULL_PTR orig);
19473 /* @internal */
19474 export function Init_clone(orig: number): number {
19475         if(!isWasmInitialized) {
19476                 throw new Error("initializeWasm() must be awaited first!");
19477         }
19478         const nativeResponseValue = wasm.TS_Init_clone(orig);
19479         return nativeResponseValue;
19480 }
19481         // void ErrorMessage_free(struct LDKErrorMessage this_obj);
19482 /* @internal */
19483 export function ErrorMessage_free(this_obj: number): void {
19484         if(!isWasmInitialized) {
19485                 throw new Error("initializeWasm() must be awaited first!");
19486         }
19487         const nativeResponseValue = wasm.TS_ErrorMessage_free(this_obj);
19488         // debug statements here
19489 }
19490         // const uint8_t (*ErrorMessage_get_channel_id(const struct LDKErrorMessage *NONNULL_PTR this_ptr))[32];
19491 /* @internal */
19492 export function ErrorMessage_get_channel_id(this_ptr: number): number {
19493         if(!isWasmInitialized) {
19494                 throw new Error("initializeWasm() must be awaited first!");
19495         }
19496         const nativeResponseValue = wasm.TS_ErrorMessage_get_channel_id(this_ptr);
19497         return nativeResponseValue;
19498 }
19499         // void ErrorMessage_set_channel_id(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
19500 /* @internal */
19501 export function ErrorMessage_set_channel_id(this_ptr: number, val: number): void {
19502         if(!isWasmInitialized) {
19503                 throw new Error("initializeWasm() must be awaited first!");
19504         }
19505         const nativeResponseValue = wasm.TS_ErrorMessage_set_channel_id(this_ptr, val);
19506         // debug statements here
19507 }
19508         // struct LDKStr ErrorMessage_get_data(const struct LDKErrorMessage *NONNULL_PTR this_ptr);
19509 /* @internal */
19510 export function ErrorMessage_get_data(this_ptr: number): number {
19511         if(!isWasmInitialized) {
19512                 throw new Error("initializeWasm() must be awaited first!");
19513         }
19514         const nativeResponseValue = wasm.TS_ErrorMessage_get_data(this_ptr);
19515         return nativeResponseValue;
19516 }
19517         // void ErrorMessage_set_data(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKStr val);
19518 /* @internal */
19519 export function ErrorMessage_set_data(this_ptr: number, val: number): void {
19520         if(!isWasmInitialized) {
19521                 throw new Error("initializeWasm() must be awaited first!");
19522         }
19523         const nativeResponseValue = wasm.TS_ErrorMessage_set_data(this_ptr, val);
19524         // debug statements here
19525 }
19526         // MUST_USE_RES struct LDKErrorMessage ErrorMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
19527 /* @internal */
19528 export function ErrorMessage_new(channel_id_arg: number, data_arg: number): number {
19529         if(!isWasmInitialized) {
19530                 throw new Error("initializeWasm() must be awaited first!");
19531         }
19532         const nativeResponseValue = wasm.TS_ErrorMessage_new(channel_id_arg, data_arg);
19533         return nativeResponseValue;
19534 }
19535         // uintptr_t ErrorMessage_clone_ptr(LDKErrorMessage *NONNULL_PTR arg);
19536 /* @internal */
19537 export function ErrorMessage_clone_ptr(arg: number): number {
19538         if(!isWasmInitialized) {
19539                 throw new Error("initializeWasm() must be awaited first!");
19540         }
19541         const nativeResponseValue = wasm.TS_ErrorMessage_clone_ptr(arg);
19542         return nativeResponseValue;
19543 }
19544         // struct LDKErrorMessage ErrorMessage_clone(const struct LDKErrorMessage *NONNULL_PTR orig);
19545 /* @internal */
19546 export function ErrorMessage_clone(orig: number): number {
19547         if(!isWasmInitialized) {
19548                 throw new Error("initializeWasm() must be awaited first!");
19549         }
19550         const nativeResponseValue = wasm.TS_ErrorMessage_clone(orig);
19551         return nativeResponseValue;
19552 }
19553         // void WarningMessage_free(struct LDKWarningMessage this_obj);
19554 /* @internal */
19555 export function WarningMessage_free(this_obj: number): void {
19556         if(!isWasmInitialized) {
19557                 throw new Error("initializeWasm() must be awaited first!");
19558         }
19559         const nativeResponseValue = wasm.TS_WarningMessage_free(this_obj);
19560         // debug statements here
19561 }
19562         // const uint8_t (*WarningMessage_get_channel_id(const struct LDKWarningMessage *NONNULL_PTR this_ptr))[32];
19563 /* @internal */
19564 export function WarningMessage_get_channel_id(this_ptr: number): number {
19565         if(!isWasmInitialized) {
19566                 throw new Error("initializeWasm() must be awaited first!");
19567         }
19568         const nativeResponseValue = wasm.TS_WarningMessage_get_channel_id(this_ptr);
19569         return nativeResponseValue;
19570 }
19571         // void WarningMessage_set_channel_id(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
19572 /* @internal */
19573 export function WarningMessage_set_channel_id(this_ptr: number, val: number): void {
19574         if(!isWasmInitialized) {
19575                 throw new Error("initializeWasm() must be awaited first!");
19576         }
19577         const nativeResponseValue = wasm.TS_WarningMessage_set_channel_id(this_ptr, val);
19578         // debug statements here
19579 }
19580         // struct LDKStr WarningMessage_get_data(const struct LDKWarningMessage *NONNULL_PTR this_ptr);
19581 /* @internal */
19582 export function WarningMessage_get_data(this_ptr: number): number {
19583         if(!isWasmInitialized) {
19584                 throw new Error("initializeWasm() must be awaited first!");
19585         }
19586         const nativeResponseValue = wasm.TS_WarningMessage_get_data(this_ptr);
19587         return nativeResponseValue;
19588 }
19589         // void WarningMessage_set_data(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKStr val);
19590 /* @internal */
19591 export function WarningMessage_set_data(this_ptr: number, val: number): void {
19592         if(!isWasmInitialized) {
19593                 throw new Error("initializeWasm() must be awaited first!");
19594         }
19595         const nativeResponseValue = wasm.TS_WarningMessage_set_data(this_ptr, val);
19596         // debug statements here
19597 }
19598         // MUST_USE_RES struct LDKWarningMessage WarningMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
19599 /* @internal */
19600 export function WarningMessage_new(channel_id_arg: number, data_arg: number): number {
19601         if(!isWasmInitialized) {
19602                 throw new Error("initializeWasm() must be awaited first!");
19603         }
19604         const nativeResponseValue = wasm.TS_WarningMessage_new(channel_id_arg, data_arg);
19605         return nativeResponseValue;
19606 }
19607         // uintptr_t WarningMessage_clone_ptr(LDKWarningMessage *NONNULL_PTR arg);
19608 /* @internal */
19609 export function WarningMessage_clone_ptr(arg: number): number {
19610         if(!isWasmInitialized) {
19611                 throw new Error("initializeWasm() must be awaited first!");
19612         }
19613         const nativeResponseValue = wasm.TS_WarningMessage_clone_ptr(arg);
19614         return nativeResponseValue;
19615 }
19616         // struct LDKWarningMessage WarningMessage_clone(const struct LDKWarningMessage *NONNULL_PTR orig);
19617 /* @internal */
19618 export function WarningMessage_clone(orig: number): number {
19619         if(!isWasmInitialized) {
19620                 throw new Error("initializeWasm() must be awaited first!");
19621         }
19622         const nativeResponseValue = wasm.TS_WarningMessage_clone(orig);
19623         return nativeResponseValue;
19624 }
19625         // void Ping_free(struct LDKPing this_obj);
19626 /* @internal */
19627 export function Ping_free(this_obj: number): void {
19628         if(!isWasmInitialized) {
19629                 throw new Error("initializeWasm() must be awaited first!");
19630         }
19631         const nativeResponseValue = wasm.TS_Ping_free(this_obj);
19632         // debug statements here
19633 }
19634         // uint16_t Ping_get_ponglen(const struct LDKPing *NONNULL_PTR this_ptr);
19635 /* @internal */
19636 export function Ping_get_ponglen(this_ptr: number): number {
19637         if(!isWasmInitialized) {
19638                 throw new Error("initializeWasm() must be awaited first!");
19639         }
19640         const nativeResponseValue = wasm.TS_Ping_get_ponglen(this_ptr);
19641         return nativeResponseValue;
19642 }
19643         // void Ping_set_ponglen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
19644 /* @internal */
19645 export function Ping_set_ponglen(this_ptr: number, val: number): void {
19646         if(!isWasmInitialized) {
19647                 throw new Error("initializeWasm() must be awaited first!");
19648         }
19649         const nativeResponseValue = wasm.TS_Ping_set_ponglen(this_ptr, val);
19650         // debug statements here
19651 }
19652         // uint16_t Ping_get_byteslen(const struct LDKPing *NONNULL_PTR this_ptr);
19653 /* @internal */
19654 export function Ping_get_byteslen(this_ptr: number): number {
19655         if(!isWasmInitialized) {
19656                 throw new Error("initializeWasm() must be awaited first!");
19657         }
19658         const nativeResponseValue = wasm.TS_Ping_get_byteslen(this_ptr);
19659         return nativeResponseValue;
19660 }
19661         // void Ping_set_byteslen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
19662 /* @internal */
19663 export function Ping_set_byteslen(this_ptr: number, val: number): void {
19664         if(!isWasmInitialized) {
19665                 throw new Error("initializeWasm() must be awaited first!");
19666         }
19667         const nativeResponseValue = wasm.TS_Ping_set_byteslen(this_ptr, val);
19668         // debug statements here
19669 }
19670         // MUST_USE_RES struct LDKPing Ping_new(uint16_t ponglen_arg, uint16_t byteslen_arg);
19671 /* @internal */
19672 export function Ping_new(ponglen_arg: number, byteslen_arg: number): number {
19673         if(!isWasmInitialized) {
19674                 throw new Error("initializeWasm() must be awaited first!");
19675         }
19676         const nativeResponseValue = wasm.TS_Ping_new(ponglen_arg, byteslen_arg);
19677         return nativeResponseValue;
19678 }
19679         // uintptr_t Ping_clone_ptr(LDKPing *NONNULL_PTR arg);
19680 /* @internal */
19681 export function Ping_clone_ptr(arg: number): number {
19682         if(!isWasmInitialized) {
19683                 throw new Error("initializeWasm() must be awaited first!");
19684         }
19685         const nativeResponseValue = wasm.TS_Ping_clone_ptr(arg);
19686         return nativeResponseValue;
19687 }
19688         // struct LDKPing Ping_clone(const struct LDKPing *NONNULL_PTR orig);
19689 /* @internal */
19690 export function Ping_clone(orig: number): number {
19691         if(!isWasmInitialized) {
19692                 throw new Error("initializeWasm() must be awaited first!");
19693         }
19694         const nativeResponseValue = wasm.TS_Ping_clone(orig);
19695         return nativeResponseValue;
19696 }
19697         // void Pong_free(struct LDKPong this_obj);
19698 /* @internal */
19699 export function Pong_free(this_obj: number): void {
19700         if(!isWasmInitialized) {
19701                 throw new Error("initializeWasm() must be awaited first!");
19702         }
19703         const nativeResponseValue = wasm.TS_Pong_free(this_obj);
19704         // debug statements here
19705 }
19706         // uint16_t Pong_get_byteslen(const struct LDKPong *NONNULL_PTR this_ptr);
19707 /* @internal */
19708 export function Pong_get_byteslen(this_ptr: number): number {
19709         if(!isWasmInitialized) {
19710                 throw new Error("initializeWasm() must be awaited first!");
19711         }
19712         const nativeResponseValue = wasm.TS_Pong_get_byteslen(this_ptr);
19713         return nativeResponseValue;
19714 }
19715         // void Pong_set_byteslen(struct LDKPong *NONNULL_PTR this_ptr, uint16_t val);
19716 /* @internal */
19717 export function Pong_set_byteslen(this_ptr: number, val: number): void {
19718         if(!isWasmInitialized) {
19719                 throw new Error("initializeWasm() must be awaited first!");
19720         }
19721         const nativeResponseValue = wasm.TS_Pong_set_byteslen(this_ptr, val);
19722         // debug statements here
19723 }
19724         // MUST_USE_RES struct LDKPong Pong_new(uint16_t byteslen_arg);
19725 /* @internal */
19726 export function Pong_new(byteslen_arg: number): number {
19727         if(!isWasmInitialized) {
19728                 throw new Error("initializeWasm() must be awaited first!");
19729         }
19730         const nativeResponseValue = wasm.TS_Pong_new(byteslen_arg);
19731         return nativeResponseValue;
19732 }
19733         // uintptr_t Pong_clone_ptr(LDKPong *NONNULL_PTR arg);
19734 /* @internal */
19735 export function Pong_clone_ptr(arg: number): number {
19736         if(!isWasmInitialized) {
19737                 throw new Error("initializeWasm() must be awaited first!");
19738         }
19739         const nativeResponseValue = wasm.TS_Pong_clone_ptr(arg);
19740         return nativeResponseValue;
19741 }
19742         // struct LDKPong Pong_clone(const struct LDKPong *NONNULL_PTR orig);
19743 /* @internal */
19744 export function Pong_clone(orig: number): number {
19745         if(!isWasmInitialized) {
19746                 throw new Error("initializeWasm() must be awaited first!");
19747         }
19748         const nativeResponseValue = wasm.TS_Pong_clone(orig);
19749         return nativeResponseValue;
19750 }
19751         // void OpenChannel_free(struct LDKOpenChannel this_obj);
19752 /* @internal */
19753 export function OpenChannel_free(this_obj: number): void {
19754         if(!isWasmInitialized) {
19755                 throw new Error("initializeWasm() must be awaited first!");
19756         }
19757         const nativeResponseValue = wasm.TS_OpenChannel_free(this_obj);
19758         // debug statements here
19759 }
19760         // const uint8_t (*OpenChannel_get_chain_hash(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
19761 /* @internal */
19762 export function OpenChannel_get_chain_hash(this_ptr: number): number {
19763         if(!isWasmInitialized) {
19764                 throw new Error("initializeWasm() must be awaited first!");
19765         }
19766         const nativeResponseValue = wasm.TS_OpenChannel_get_chain_hash(this_ptr);
19767         return nativeResponseValue;
19768 }
19769         // void OpenChannel_set_chain_hash(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
19770 /* @internal */
19771 export function OpenChannel_set_chain_hash(this_ptr: number, val: number): void {
19772         if(!isWasmInitialized) {
19773                 throw new Error("initializeWasm() must be awaited first!");
19774         }
19775         const nativeResponseValue = wasm.TS_OpenChannel_set_chain_hash(this_ptr, val);
19776         // debug statements here
19777 }
19778         // const uint8_t (*OpenChannel_get_temporary_channel_id(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
19779 /* @internal */
19780 export function OpenChannel_get_temporary_channel_id(this_ptr: number): number {
19781         if(!isWasmInitialized) {
19782                 throw new Error("initializeWasm() must be awaited first!");
19783         }
19784         const nativeResponseValue = wasm.TS_OpenChannel_get_temporary_channel_id(this_ptr);
19785         return nativeResponseValue;
19786 }
19787         // void OpenChannel_set_temporary_channel_id(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
19788 /* @internal */
19789 export function OpenChannel_set_temporary_channel_id(this_ptr: number, val: number): void {
19790         if(!isWasmInitialized) {
19791                 throw new Error("initializeWasm() must be awaited first!");
19792         }
19793         const nativeResponseValue = wasm.TS_OpenChannel_set_temporary_channel_id(this_ptr, val);
19794         // debug statements here
19795 }
19796         // uint64_t OpenChannel_get_funding_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19797 /* @internal */
19798 export function OpenChannel_get_funding_satoshis(this_ptr: number): bigint {
19799         if(!isWasmInitialized) {
19800                 throw new Error("initializeWasm() must be awaited first!");
19801         }
19802         const nativeResponseValue = wasm.TS_OpenChannel_get_funding_satoshis(this_ptr);
19803         return nativeResponseValue;
19804 }
19805         // void OpenChannel_set_funding_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
19806 /* @internal */
19807 export function OpenChannel_set_funding_satoshis(this_ptr: number, val: bigint): void {
19808         if(!isWasmInitialized) {
19809                 throw new Error("initializeWasm() must be awaited first!");
19810         }
19811         const nativeResponseValue = wasm.TS_OpenChannel_set_funding_satoshis(this_ptr, val);
19812         // debug statements here
19813 }
19814         // uint64_t OpenChannel_get_push_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19815 /* @internal */
19816 export function OpenChannel_get_push_msat(this_ptr: number): bigint {
19817         if(!isWasmInitialized) {
19818                 throw new Error("initializeWasm() must be awaited first!");
19819         }
19820         const nativeResponseValue = wasm.TS_OpenChannel_get_push_msat(this_ptr);
19821         return nativeResponseValue;
19822 }
19823         // void OpenChannel_set_push_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
19824 /* @internal */
19825 export function OpenChannel_set_push_msat(this_ptr: number, val: bigint): void {
19826         if(!isWasmInitialized) {
19827                 throw new Error("initializeWasm() must be awaited first!");
19828         }
19829         const nativeResponseValue = wasm.TS_OpenChannel_set_push_msat(this_ptr, val);
19830         // debug statements here
19831 }
19832         // uint64_t OpenChannel_get_dust_limit_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19833 /* @internal */
19834 export function OpenChannel_get_dust_limit_satoshis(this_ptr: number): bigint {
19835         if(!isWasmInitialized) {
19836                 throw new Error("initializeWasm() must be awaited first!");
19837         }
19838         const nativeResponseValue = wasm.TS_OpenChannel_get_dust_limit_satoshis(this_ptr);
19839         return nativeResponseValue;
19840 }
19841         // void OpenChannel_set_dust_limit_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
19842 /* @internal */
19843 export function OpenChannel_set_dust_limit_satoshis(this_ptr: number, val: bigint): void {
19844         if(!isWasmInitialized) {
19845                 throw new Error("initializeWasm() must be awaited first!");
19846         }
19847         const nativeResponseValue = wasm.TS_OpenChannel_set_dust_limit_satoshis(this_ptr, val);
19848         // debug statements here
19849 }
19850         // uint64_t OpenChannel_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19851 /* @internal */
19852 export function OpenChannel_get_max_htlc_value_in_flight_msat(this_ptr: number): bigint {
19853         if(!isWasmInitialized) {
19854                 throw new Error("initializeWasm() must be awaited first!");
19855         }
19856         const nativeResponseValue = wasm.TS_OpenChannel_get_max_htlc_value_in_flight_msat(this_ptr);
19857         return nativeResponseValue;
19858 }
19859         // void OpenChannel_set_max_htlc_value_in_flight_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
19860 /* @internal */
19861 export function OpenChannel_set_max_htlc_value_in_flight_msat(this_ptr: number, val: bigint): void {
19862         if(!isWasmInitialized) {
19863                 throw new Error("initializeWasm() must be awaited first!");
19864         }
19865         const nativeResponseValue = wasm.TS_OpenChannel_set_max_htlc_value_in_flight_msat(this_ptr, val);
19866         // debug statements here
19867 }
19868         // uint64_t OpenChannel_get_channel_reserve_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19869 /* @internal */
19870 export function OpenChannel_get_channel_reserve_satoshis(this_ptr: number): bigint {
19871         if(!isWasmInitialized) {
19872                 throw new Error("initializeWasm() must be awaited first!");
19873         }
19874         const nativeResponseValue = wasm.TS_OpenChannel_get_channel_reserve_satoshis(this_ptr);
19875         return nativeResponseValue;
19876 }
19877         // void OpenChannel_set_channel_reserve_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
19878 /* @internal */
19879 export function OpenChannel_set_channel_reserve_satoshis(this_ptr: number, val: bigint): void {
19880         if(!isWasmInitialized) {
19881                 throw new Error("initializeWasm() must be awaited first!");
19882         }
19883         const nativeResponseValue = wasm.TS_OpenChannel_set_channel_reserve_satoshis(this_ptr, val);
19884         // debug statements here
19885 }
19886         // uint64_t OpenChannel_get_htlc_minimum_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19887 /* @internal */
19888 export function OpenChannel_get_htlc_minimum_msat(this_ptr: number): bigint {
19889         if(!isWasmInitialized) {
19890                 throw new Error("initializeWasm() must be awaited first!");
19891         }
19892         const nativeResponseValue = wasm.TS_OpenChannel_get_htlc_minimum_msat(this_ptr);
19893         return nativeResponseValue;
19894 }
19895         // void OpenChannel_set_htlc_minimum_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
19896 /* @internal */
19897 export function OpenChannel_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
19898         if(!isWasmInitialized) {
19899                 throw new Error("initializeWasm() must be awaited first!");
19900         }
19901         const nativeResponseValue = wasm.TS_OpenChannel_set_htlc_minimum_msat(this_ptr, val);
19902         // debug statements here
19903 }
19904         // uint32_t OpenChannel_get_feerate_per_kw(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19905 /* @internal */
19906 export function OpenChannel_get_feerate_per_kw(this_ptr: number): number {
19907         if(!isWasmInitialized) {
19908                 throw new Error("initializeWasm() must be awaited first!");
19909         }
19910         const nativeResponseValue = wasm.TS_OpenChannel_get_feerate_per_kw(this_ptr);
19911         return nativeResponseValue;
19912 }
19913         // void OpenChannel_set_feerate_per_kw(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint32_t val);
19914 /* @internal */
19915 export function OpenChannel_set_feerate_per_kw(this_ptr: number, val: number): void {
19916         if(!isWasmInitialized) {
19917                 throw new Error("initializeWasm() must be awaited first!");
19918         }
19919         const nativeResponseValue = wasm.TS_OpenChannel_set_feerate_per_kw(this_ptr, val);
19920         // debug statements here
19921 }
19922         // uint16_t OpenChannel_get_to_self_delay(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19923 /* @internal */
19924 export function OpenChannel_get_to_self_delay(this_ptr: number): number {
19925         if(!isWasmInitialized) {
19926                 throw new Error("initializeWasm() must be awaited first!");
19927         }
19928         const nativeResponseValue = wasm.TS_OpenChannel_get_to_self_delay(this_ptr);
19929         return nativeResponseValue;
19930 }
19931         // void OpenChannel_set_to_self_delay(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
19932 /* @internal */
19933 export function OpenChannel_set_to_self_delay(this_ptr: number, val: number): void {
19934         if(!isWasmInitialized) {
19935                 throw new Error("initializeWasm() must be awaited first!");
19936         }
19937         const nativeResponseValue = wasm.TS_OpenChannel_set_to_self_delay(this_ptr, val);
19938         // debug statements here
19939 }
19940         // uint16_t OpenChannel_get_max_accepted_htlcs(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19941 /* @internal */
19942 export function OpenChannel_get_max_accepted_htlcs(this_ptr: number): number {
19943         if(!isWasmInitialized) {
19944                 throw new Error("initializeWasm() must be awaited first!");
19945         }
19946         const nativeResponseValue = wasm.TS_OpenChannel_get_max_accepted_htlcs(this_ptr);
19947         return nativeResponseValue;
19948 }
19949         // void OpenChannel_set_max_accepted_htlcs(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
19950 /* @internal */
19951 export function OpenChannel_set_max_accepted_htlcs(this_ptr: number, val: number): void {
19952         if(!isWasmInitialized) {
19953                 throw new Error("initializeWasm() must be awaited first!");
19954         }
19955         const nativeResponseValue = wasm.TS_OpenChannel_set_max_accepted_htlcs(this_ptr, val);
19956         // debug statements here
19957 }
19958         // struct LDKPublicKey OpenChannel_get_funding_pubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19959 /* @internal */
19960 export function OpenChannel_get_funding_pubkey(this_ptr: number): number {
19961         if(!isWasmInitialized) {
19962                 throw new Error("initializeWasm() must be awaited first!");
19963         }
19964         const nativeResponseValue = wasm.TS_OpenChannel_get_funding_pubkey(this_ptr);
19965         return nativeResponseValue;
19966 }
19967         // void OpenChannel_set_funding_pubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
19968 /* @internal */
19969 export function OpenChannel_set_funding_pubkey(this_ptr: number, val: number): void {
19970         if(!isWasmInitialized) {
19971                 throw new Error("initializeWasm() must be awaited first!");
19972         }
19973         const nativeResponseValue = wasm.TS_OpenChannel_set_funding_pubkey(this_ptr, val);
19974         // debug statements here
19975 }
19976         // struct LDKPublicKey OpenChannel_get_revocation_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19977 /* @internal */
19978 export function OpenChannel_get_revocation_basepoint(this_ptr: number): number {
19979         if(!isWasmInitialized) {
19980                 throw new Error("initializeWasm() must be awaited first!");
19981         }
19982         const nativeResponseValue = wasm.TS_OpenChannel_get_revocation_basepoint(this_ptr);
19983         return nativeResponseValue;
19984 }
19985         // void OpenChannel_set_revocation_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
19986 /* @internal */
19987 export function OpenChannel_set_revocation_basepoint(this_ptr: number, val: number): void {
19988         if(!isWasmInitialized) {
19989                 throw new Error("initializeWasm() must be awaited first!");
19990         }
19991         const nativeResponseValue = wasm.TS_OpenChannel_set_revocation_basepoint(this_ptr, val);
19992         // debug statements here
19993 }
19994         // struct LDKPublicKey OpenChannel_get_payment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
19995 /* @internal */
19996 export function OpenChannel_get_payment_point(this_ptr: number): number {
19997         if(!isWasmInitialized) {
19998                 throw new Error("initializeWasm() must be awaited first!");
19999         }
20000         const nativeResponseValue = wasm.TS_OpenChannel_get_payment_point(this_ptr);
20001         return nativeResponseValue;
20002 }
20003         // void OpenChannel_set_payment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20004 /* @internal */
20005 export function OpenChannel_set_payment_point(this_ptr: number, val: number): void {
20006         if(!isWasmInitialized) {
20007                 throw new Error("initializeWasm() must be awaited first!");
20008         }
20009         const nativeResponseValue = wasm.TS_OpenChannel_set_payment_point(this_ptr, val);
20010         // debug statements here
20011 }
20012         // struct LDKPublicKey OpenChannel_get_delayed_payment_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20013 /* @internal */
20014 export function OpenChannel_get_delayed_payment_basepoint(this_ptr: number): number {
20015         if(!isWasmInitialized) {
20016                 throw new Error("initializeWasm() must be awaited first!");
20017         }
20018         const nativeResponseValue = wasm.TS_OpenChannel_get_delayed_payment_basepoint(this_ptr);
20019         return nativeResponseValue;
20020 }
20021         // void OpenChannel_set_delayed_payment_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20022 /* @internal */
20023 export function OpenChannel_set_delayed_payment_basepoint(this_ptr: number, val: number): void {
20024         if(!isWasmInitialized) {
20025                 throw new Error("initializeWasm() must be awaited first!");
20026         }
20027         const nativeResponseValue = wasm.TS_OpenChannel_set_delayed_payment_basepoint(this_ptr, val);
20028         // debug statements here
20029 }
20030         // struct LDKPublicKey OpenChannel_get_htlc_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20031 /* @internal */
20032 export function OpenChannel_get_htlc_basepoint(this_ptr: number): number {
20033         if(!isWasmInitialized) {
20034                 throw new Error("initializeWasm() must be awaited first!");
20035         }
20036         const nativeResponseValue = wasm.TS_OpenChannel_get_htlc_basepoint(this_ptr);
20037         return nativeResponseValue;
20038 }
20039         // void OpenChannel_set_htlc_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20040 /* @internal */
20041 export function OpenChannel_set_htlc_basepoint(this_ptr: number, val: number): void {
20042         if(!isWasmInitialized) {
20043                 throw new Error("initializeWasm() must be awaited first!");
20044         }
20045         const nativeResponseValue = wasm.TS_OpenChannel_set_htlc_basepoint(this_ptr, val);
20046         // debug statements here
20047 }
20048         // struct LDKPublicKey OpenChannel_get_first_per_commitment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20049 /* @internal */
20050 export function OpenChannel_get_first_per_commitment_point(this_ptr: number): number {
20051         if(!isWasmInitialized) {
20052                 throw new Error("initializeWasm() must be awaited first!");
20053         }
20054         const nativeResponseValue = wasm.TS_OpenChannel_get_first_per_commitment_point(this_ptr);
20055         return nativeResponseValue;
20056 }
20057         // void OpenChannel_set_first_per_commitment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20058 /* @internal */
20059 export function OpenChannel_set_first_per_commitment_point(this_ptr: number, val: number): void {
20060         if(!isWasmInitialized) {
20061                 throw new Error("initializeWasm() must be awaited first!");
20062         }
20063         const nativeResponseValue = wasm.TS_OpenChannel_set_first_per_commitment_point(this_ptr, val);
20064         // debug statements here
20065 }
20066         // uint8_t OpenChannel_get_channel_flags(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20067 /* @internal */
20068 export function OpenChannel_get_channel_flags(this_ptr: number): number {
20069         if(!isWasmInitialized) {
20070                 throw new Error("initializeWasm() must be awaited first!");
20071         }
20072         const nativeResponseValue = wasm.TS_OpenChannel_get_channel_flags(this_ptr);
20073         return nativeResponseValue;
20074 }
20075         // void OpenChannel_set_channel_flags(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint8_t val);
20076 /* @internal */
20077 export function OpenChannel_set_channel_flags(this_ptr: number, val: number): void {
20078         if(!isWasmInitialized) {
20079                 throw new Error("initializeWasm() must be awaited first!");
20080         }
20081         const nativeResponseValue = wasm.TS_OpenChannel_set_channel_flags(this_ptr, val);
20082         // debug statements here
20083 }
20084         // struct LDKChannelTypeFeatures OpenChannel_get_channel_type(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20085 /* @internal */
20086 export function OpenChannel_get_channel_type(this_ptr: number): number {
20087         if(!isWasmInitialized) {
20088                 throw new Error("initializeWasm() must be awaited first!");
20089         }
20090         const nativeResponseValue = wasm.TS_OpenChannel_get_channel_type(this_ptr);
20091         return nativeResponseValue;
20092 }
20093         // void OpenChannel_set_channel_type(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
20094 /* @internal */
20095 export function OpenChannel_set_channel_type(this_ptr: number, val: number): void {
20096         if(!isWasmInitialized) {
20097                 throw new Error("initializeWasm() must be awaited first!");
20098         }
20099         const nativeResponseValue = wasm.TS_OpenChannel_set_channel_type(this_ptr, val);
20100         // debug statements here
20101 }
20102         // uintptr_t OpenChannel_clone_ptr(LDKOpenChannel *NONNULL_PTR arg);
20103 /* @internal */
20104 export function OpenChannel_clone_ptr(arg: number): number {
20105         if(!isWasmInitialized) {
20106                 throw new Error("initializeWasm() must be awaited first!");
20107         }
20108         const nativeResponseValue = wasm.TS_OpenChannel_clone_ptr(arg);
20109         return nativeResponseValue;
20110 }
20111         // struct LDKOpenChannel OpenChannel_clone(const struct LDKOpenChannel *NONNULL_PTR orig);
20112 /* @internal */
20113 export function OpenChannel_clone(orig: number): number {
20114         if(!isWasmInitialized) {
20115                 throw new Error("initializeWasm() must be awaited first!");
20116         }
20117         const nativeResponseValue = wasm.TS_OpenChannel_clone(orig);
20118         return nativeResponseValue;
20119 }
20120         // void AcceptChannel_free(struct LDKAcceptChannel this_obj);
20121 /* @internal */
20122 export function AcceptChannel_free(this_obj: number): void {
20123         if(!isWasmInitialized) {
20124                 throw new Error("initializeWasm() must be awaited first!");
20125         }
20126         const nativeResponseValue = wasm.TS_AcceptChannel_free(this_obj);
20127         // debug statements here
20128 }
20129         // const uint8_t (*AcceptChannel_get_temporary_channel_id(const struct LDKAcceptChannel *NONNULL_PTR this_ptr))[32];
20130 /* @internal */
20131 export function AcceptChannel_get_temporary_channel_id(this_ptr: number): number {
20132         if(!isWasmInitialized) {
20133                 throw new Error("initializeWasm() must be awaited first!");
20134         }
20135         const nativeResponseValue = wasm.TS_AcceptChannel_get_temporary_channel_id(this_ptr);
20136         return nativeResponseValue;
20137 }
20138         // void AcceptChannel_set_temporary_channel_id(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20139 /* @internal */
20140 export function AcceptChannel_set_temporary_channel_id(this_ptr: number, val: number): void {
20141         if(!isWasmInitialized) {
20142                 throw new Error("initializeWasm() must be awaited first!");
20143         }
20144         const nativeResponseValue = wasm.TS_AcceptChannel_set_temporary_channel_id(this_ptr, val);
20145         // debug statements here
20146 }
20147         // uint64_t AcceptChannel_get_dust_limit_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20148 /* @internal */
20149 export function AcceptChannel_get_dust_limit_satoshis(this_ptr: number): bigint {
20150         if(!isWasmInitialized) {
20151                 throw new Error("initializeWasm() must be awaited first!");
20152         }
20153         const nativeResponseValue = wasm.TS_AcceptChannel_get_dust_limit_satoshis(this_ptr);
20154         return nativeResponseValue;
20155 }
20156         // void AcceptChannel_set_dust_limit_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
20157 /* @internal */
20158 export function AcceptChannel_set_dust_limit_satoshis(this_ptr: number, val: bigint): void {
20159         if(!isWasmInitialized) {
20160                 throw new Error("initializeWasm() must be awaited first!");
20161         }
20162         const nativeResponseValue = wasm.TS_AcceptChannel_set_dust_limit_satoshis(this_ptr, val);
20163         // debug statements here
20164 }
20165         // uint64_t AcceptChannel_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20166 /* @internal */
20167 export function AcceptChannel_get_max_htlc_value_in_flight_msat(this_ptr: number): bigint {
20168         if(!isWasmInitialized) {
20169                 throw new Error("initializeWasm() must be awaited first!");
20170         }
20171         const nativeResponseValue = wasm.TS_AcceptChannel_get_max_htlc_value_in_flight_msat(this_ptr);
20172         return nativeResponseValue;
20173 }
20174         // void AcceptChannel_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
20175 /* @internal */
20176 export function AcceptChannel_set_max_htlc_value_in_flight_msat(this_ptr: number, val: bigint): void {
20177         if(!isWasmInitialized) {
20178                 throw new Error("initializeWasm() must be awaited first!");
20179         }
20180         const nativeResponseValue = wasm.TS_AcceptChannel_set_max_htlc_value_in_flight_msat(this_ptr, val);
20181         // debug statements here
20182 }
20183         // uint64_t AcceptChannel_get_channel_reserve_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20184 /* @internal */
20185 export function AcceptChannel_get_channel_reserve_satoshis(this_ptr: number): bigint {
20186         if(!isWasmInitialized) {
20187                 throw new Error("initializeWasm() must be awaited first!");
20188         }
20189         const nativeResponseValue = wasm.TS_AcceptChannel_get_channel_reserve_satoshis(this_ptr);
20190         return nativeResponseValue;
20191 }
20192         // void AcceptChannel_set_channel_reserve_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
20193 /* @internal */
20194 export function AcceptChannel_set_channel_reserve_satoshis(this_ptr: number, val: bigint): void {
20195         if(!isWasmInitialized) {
20196                 throw new Error("initializeWasm() must be awaited first!");
20197         }
20198         const nativeResponseValue = wasm.TS_AcceptChannel_set_channel_reserve_satoshis(this_ptr, val);
20199         // debug statements here
20200 }
20201         // uint64_t AcceptChannel_get_htlc_minimum_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20202 /* @internal */
20203 export function AcceptChannel_get_htlc_minimum_msat(this_ptr: number): bigint {
20204         if(!isWasmInitialized) {
20205                 throw new Error("initializeWasm() must be awaited first!");
20206         }
20207         const nativeResponseValue = wasm.TS_AcceptChannel_get_htlc_minimum_msat(this_ptr);
20208         return nativeResponseValue;
20209 }
20210         // void AcceptChannel_set_htlc_minimum_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
20211 /* @internal */
20212 export function AcceptChannel_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
20213         if(!isWasmInitialized) {
20214                 throw new Error("initializeWasm() must be awaited first!");
20215         }
20216         const nativeResponseValue = wasm.TS_AcceptChannel_set_htlc_minimum_msat(this_ptr, val);
20217         // debug statements here
20218 }
20219         // uint32_t AcceptChannel_get_minimum_depth(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20220 /* @internal */
20221 export function AcceptChannel_get_minimum_depth(this_ptr: number): number {
20222         if(!isWasmInitialized) {
20223                 throw new Error("initializeWasm() must be awaited first!");
20224         }
20225         const nativeResponseValue = wasm.TS_AcceptChannel_get_minimum_depth(this_ptr);
20226         return nativeResponseValue;
20227 }
20228         // void AcceptChannel_set_minimum_depth(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint32_t val);
20229 /* @internal */
20230 export function AcceptChannel_set_minimum_depth(this_ptr: number, val: number): void {
20231         if(!isWasmInitialized) {
20232                 throw new Error("initializeWasm() must be awaited first!");
20233         }
20234         const nativeResponseValue = wasm.TS_AcceptChannel_set_minimum_depth(this_ptr, val);
20235         // debug statements here
20236 }
20237         // uint16_t AcceptChannel_get_to_self_delay(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20238 /* @internal */
20239 export function AcceptChannel_get_to_self_delay(this_ptr: number): number {
20240         if(!isWasmInitialized) {
20241                 throw new Error("initializeWasm() must be awaited first!");
20242         }
20243         const nativeResponseValue = wasm.TS_AcceptChannel_get_to_self_delay(this_ptr);
20244         return nativeResponseValue;
20245 }
20246         // void AcceptChannel_set_to_self_delay(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
20247 /* @internal */
20248 export function AcceptChannel_set_to_self_delay(this_ptr: number, val: number): void {
20249         if(!isWasmInitialized) {
20250                 throw new Error("initializeWasm() must be awaited first!");
20251         }
20252         const nativeResponseValue = wasm.TS_AcceptChannel_set_to_self_delay(this_ptr, val);
20253         // debug statements here
20254 }
20255         // uint16_t AcceptChannel_get_max_accepted_htlcs(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20256 /* @internal */
20257 export function AcceptChannel_get_max_accepted_htlcs(this_ptr: number): number {
20258         if(!isWasmInitialized) {
20259                 throw new Error("initializeWasm() must be awaited first!");
20260         }
20261         const nativeResponseValue = wasm.TS_AcceptChannel_get_max_accepted_htlcs(this_ptr);
20262         return nativeResponseValue;
20263 }
20264         // void AcceptChannel_set_max_accepted_htlcs(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
20265 /* @internal */
20266 export function AcceptChannel_set_max_accepted_htlcs(this_ptr: number, val: number): void {
20267         if(!isWasmInitialized) {
20268                 throw new Error("initializeWasm() must be awaited first!");
20269         }
20270         const nativeResponseValue = wasm.TS_AcceptChannel_set_max_accepted_htlcs(this_ptr, val);
20271         // debug statements here
20272 }
20273         // struct LDKPublicKey AcceptChannel_get_funding_pubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20274 /* @internal */
20275 export function AcceptChannel_get_funding_pubkey(this_ptr: number): number {
20276         if(!isWasmInitialized) {
20277                 throw new Error("initializeWasm() must be awaited first!");
20278         }
20279         const nativeResponseValue = wasm.TS_AcceptChannel_get_funding_pubkey(this_ptr);
20280         return nativeResponseValue;
20281 }
20282         // void AcceptChannel_set_funding_pubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20283 /* @internal */
20284 export function AcceptChannel_set_funding_pubkey(this_ptr: number, val: number): void {
20285         if(!isWasmInitialized) {
20286                 throw new Error("initializeWasm() must be awaited first!");
20287         }
20288         const nativeResponseValue = wasm.TS_AcceptChannel_set_funding_pubkey(this_ptr, val);
20289         // debug statements here
20290 }
20291         // struct LDKPublicKey AcceptChannel_get_revocation_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20292 /* @internal */
20293 export function AcceptChannel_get_revocation_basepoint(this_ptr: number): number {
20294         if(!isWasmInitialized) {
20295                 throw new Error("initializeWasm() must be awaited first!");
20296         }
20297         const nativeResponseValue = wasm.TS_AcceptChannel_get_revocation_basepoint(this_ptr);
20298         return nativeResponseValue;
20299 }
20300         // void AcceptChannel_set_revocation_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20301 /* @internal */
20302 export function AcceptChannel_set_revocation_basepoint(this_ptr: number, val: number): void {
20303         if(!isWasmInitialized) {
20304                 throw new Error("initializeWasm() must be awaited first!");
20305         }
20306         const nativeResponseValue = wasm.TS_AcceptChannel_set_revocation_basepoint(this_ptr, val);
20307         // debug statements here
20308 }
20309         // struct LDKPublicKey AcceptChannel_get_payment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20310 /* @internal */
20311 export function AcceptChannel_get_payment_point(this_ptr: number): number {
20312         if(!isWasmInitialized) {
20313                 throw new Error("initializeWasm() must be awaited first!");
20314         }
20315         const nativeResponseValue = wasm.TS_AcceptChannel_get_payment_point(this_ptr);
20316         return nativeResponseValue;
20317 }
20318         // void AcceptChannel_set_payment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20319 /* @internal */
20320 export function AcceptChannel_set_payment_point(this_ptr: number, val: number): void {
20321         if(!isWasmInitialized) {
20322                 throw new Error("initializeWasm() must be awaited first!");
20323         }
20324         const nativeResponseValue = wasm.TS_AcceptChannel_set_payment_point(this_ptr, val);
20325         // debug statements here
20326 }
20327         // struct LDKPublicKey AcceptChannel_get_delayed_payment_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20328 /* @internal */
20329 export function AcceptChannel_get_delayed_payment_basepoint(this_ptr: number): number {
20330         if(!isWasmInitialized) {
20331                 throw new Error("initializeWasm() must be awaited first!");
20332         }
20333         const nativeResponseValue = wasm.TS_AcceptChannel_get_delayed_payment_basepoint(this_ptr);
20334         return nativeResponseValue;
20335 }
20336         // void AcceptChannel_set_delayed_payment_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20337 /* @internal */
20338 export function AcceptChannel_set_delayed_payment_basepoint(this_ptr: number, val: number): void {
20339         if(!isWasmInitialized) {
20340                 throw new Error("initializeWasm() must be awaited first!");
20341         }
20342         const nativeResponseValue = wasm.TS_AcceptChannel_set_delayed_payment_basepoint(this_ptr, val);
20343         // debug statements here
20344 }
20345         // struct LDKPublicKey AcceptChannel_get_htlc_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20346 /* @internal */
20347 export function AcceptChannel_get_htlc_basepoint(this_ptr: number): number {
20348         if(!isWasmInitialized) {
20349                 throw new Error("initializeWasm() must be awaited first!");
20350         }
20351         const nativeResponseValue = wasm.TS_AcceptChannel_get_htlc_basepoint(this_ptr);
20352         return nativeResponseValue;
20353 }
20354         // void AcceptChannel_set_htlc_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20355 /* @internal */
20356 export function AcceptChannel_set_htlc_basepoint(this_ptr: number, val: number): void {
20357         if(!isWasmInitialized) {
20358                 throw new Error("initializeWasm() must be awaited first!");
20359         }
20360         const nativeResponseValue = wasm.TS_AcceptChannel_set_htlc_basepoint(this_ptr, val);
20361         // debug statements here
20362 }
20363         // struct LDKPublicKey AcceptChannel_get_first_per_commitment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20364 /* @internal */
20365 export function AcceptChannel_get_first_per_commitment_point(this_ptr: number): number {
20366         if(!isWasmInitialized) {
20367                 throw new Error("initializeWasm() must be awaited first!");
20368         }
20369         const nativeResponseValue = wasm.TS_AcceptChannel_get_first_per_commitment_point(this_ptr);
20370         return nativeResponseValue;
20371 }
20372         // void AcceptChannel_set_first_per_commitment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20373 /* @internal */
20374 export function AcceptChannel_set_first_per_commitment_point(this_ptr: number, val: number): void {
20375         if(!isWasmInitialized) {
20376                 throw new Error("initializeWasm() must be awaited first!");
20377         }
20378         const nativeResponseValue = wasm.TS_AcceptChannel_set_first_per_commitment_point(this_ptr, val);
20379         // debug statements here
20380 }
20381         // struct LDKChannelTypeFeatures AcceptChannel_get_channel_type(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
20382 /* @internal */
20383 export function AcceptChannel_get_channel_type(this_ptr: number): number {
20384         if(!isWasmInitialized) {
20385                 throw new Error("initializeWasm() must be awaited first!");
20386         }
20387         const nativeResponseValue = wasm.TS_AcceptChannel_get_channel_type(this_ptr);
20388         return nativeResponseValue;
20389 }
20390         // void AcceptChannel_set_channel_type(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
20391 /* @internal */
20392 export function AcceptChannel_set_channel_type(this_ptr: number, val: number): void {
20393         if(!isWasmInitialized) {
20394                 throw new Error("initializeWasm() must be awaited first!");
20395         }
20396         const nativeResponseValue = wasm.TS_AcceptChannel_set_channel_type(this_ptr, val);
20397         // debug statements here
20398 }
20399         // uintptr_t AcceptChannel_clone_ptr(LDKAcceptChannel *NONNULL_PTR arg);
20400 /* @internal */
20401 export function AcceptChannel_clone_ptr(arg: number): number {
20402         if(!isWasmInitialized) {
20403                 throw new Error("initializeWasm() must be awaited first!");
20404         }
20405         const nativeResponseValue = wasm.TS_AcceptChannel_clone_ptr(arg);
20406         return nativeResponseValue;
20407 }
20408         // struct LDKAcceptChannel AcceptChannel_clone(const struct LDKAcceptChannel *NONNULL_PTR orig);
20409 /* @internal */
20410 export function AcceptChannel_clone(orig: number): number {
20411         if(!isWasmInitialized) {
20412                 throw new Error("initializeWasm() must be awaited first!");
20413         }
20414         const nativeResponseValue = wasm.TS_AcceptChannel_clone(orig);
20415         return nativeResponseValue;
20416 }
20417         // void FundingCreated_free(struct LDKFundingCreated this_obj);
20418 /* @internal */
20419 export function FundingCreated_free(this_obj: number): void {
20420         if(!isWasmInitialized) {
20421                 throw new Error("initializeWasm() must be awaited first!");
20422         }
20423         const nativeResponseValue = wasm.TS_FundingCreated_free(this_obj);
20424         // debug statements here
20425 }
20426         // const uint8_t (*FundingCreated_get_temporary_channel_id(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
20427 /* @internal */
20428 export function FundingCreated_get_temporary_channel_id(this_ptr: number): number {
20429         if(!isWasmInitialized) {
20430                 throw new Error("initializeWasm() must be awaited first!");
20431         }
20432         const nativeResponseValue = wasm.TS_FundingCreated_get_temporary_channel_id(this_ptr);
20433         return nativeResponseValue;
20434 }
20435         // void FundingCreated_set_temporary_channel_id(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20436 /* @internal */
20437 export function FundingCreated_set_temporary_channel_id(this_ptr: number, val: number): void {
20438         if(!isWasmInitialized) {
20439                 throw new Error("initializeWasm() must be awaited first!");
20440         }
20441         const nativeResponseValue = wasm.TS_FundingCreated_set_temporary_channel_id(this_ptr, val);
20442         // debug statements here
20443 }
20444         // const uint8_t (*FundingCreated_get_funding_txid(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
20445 /* @internal */
20446 export function FundingCreated_get_funding_txid(this_ptr: number): number {
20447         if(!isWasmInitialized) {
20448                 throw new Error("initializeWasm() must be awaited first!");
20449         }
20450         const nativeResponseValue = wasm.TS_FundingCreated_get_funding_txid(this_ptr);
20451         return nativeResponseValue;
20452 }
20453         // void FundingCreated_set_funding_txid(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20454 /* @internal */
20455 export function FundingCreated_set_funding_txid(this_ptr: number, val: number): void {
20456         if(!isWasmInitialized) {
20457                 throw new Error("initializeWasm() must be awaited first!");
20458         }
20459         const nativeResponseValue = wasm.TS_FundingCreated_set_funding_txid(this_ptr, val);
20460         // debug statements here
20461 }
20462         // uint16_t FundingCreated_get_funding_output_index(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
20463 /* @internal */
20464 export function FundingCreated_get_funding_output_index(this_ptr: number): number {
20465         if(!isWasmInitialized) {
20466                 throw new Error("initializeWasm() must be awaited first!");
20467         }
20468         const nativeResponseValue = wasm.TS_FundingCreated_get_funding_output_index(this_ptr);
20469         return nativeResponseValue;
20470 }
20471         // void FundingCreated_set_funding_output_index(struct LDKFundingCreated *NONNULL_PTR this_ptr, uint16_t val);
20472 /* @internal */
20473 export function FundingCreated_set_funding_output_index(this_ptr: number, val: number): void {
20474         if(!isWasmInitialized) {
20475                 throw new Error("initializeWasm() must be awaited first!");
20476         }
20477         const nativeResponseValue = wasm.TS_FundingCreated_set_funding_output_index(this_ptr, val);
20478         // debug statements here
20479 }
20480         // struct LDKSignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
20481 /* @internal */
20482 export function FundingCreated_get_signature(this_ptr: number): number {
20483         if(!isWasmInitialized) {
20484                 throw new Error("initializeWasm() must be awaited first!");
20485         }
20486         const nativeResponseValue = wasm.TS_FundingCreated_get_signature(this_ptr);
20487         return nativeResponseValue;
20488 }
20489         // void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKSignature val);
20490 /* @internal */
20491 export function FundingCreated_set_signature(this_ptr: number, val: number): void {
20492         if(!isWasmInitialized) {
20493                 throw new Error("initializeWasm() must be awaited first!");
20494         }
20495         const nativeResponseValue = wasm.TS_FundingCreated_set_signature(this_ptr, val);
20496         // debug statements here
20497 }
20498         // 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);
20499 /* @internal */
20500 export function FundingCreated_new(temporary_channel_id_arg: number, funding_txid_arg: number, funding_output_index_arg: number, signature_arg: number): number {
20501         if(!isWasmInitialized) {
20502                 throw new Error("initializeWasm() must be awaited first!");
20503         }
20504         const nativeResponseValue = wasm.TS_FundingCreated_new(temporary_channel_id_arg, funding_txid_arg, funding_output_index_arg, signature_arg);
20505         return nativeResponseValue;
20506 }
20507         // uintptr_t FundingCreated_clone_ptr(LDKFundingCreated *NONNULL_PTR arg);
20508 /* @internal */
20509 export function FundingCreated_clone_ptr(arg: number): number {
20510         if(!isWasmInitialized) {
20511                 throw new Error("initializeWasm() must be awaited first!");
20512         }
20513         const nativeResponseValue = wasm.TS_FundingCreated_clone_ptr(arg);
20514         return nativeResponseValue;
20515 }
20516         // struct LDKFundingCreated FundingCreated_clone(const struct LDKFundingCreated *NONNULL_PTR orig);
20517 /* @internal */
20518 export function FundingCreated_clone(orig: number): number {
20519         if(!isWasmInitialized) {
20520                 throw new Error("initializeWasm() must be awaited first!");
20521         }
20522         const nativeResponseValue = wasm.TS_FundingCreated_clone(orig);
20523         return nativeResponseValue;
20524 }
20525         // void FundingSigned_free(struct LDKFundingSigned this_obj);
20526 /* @internal */
20527 export function FundingSigned_free(this_obj: number): void {
20528         if(!isWasmInitialized) {
20529                 throw new Error("initializeWasm() must be awaited first!");
20530         }
20531         const nativeResponseValue = wasm.TS_FundingSigned_free(this_obj);
20532         // debug statements here
20533 }
20534         // const uint8_t (*FundingSigned_get_channel_id(const struct LDKFundingSigned *NONNULL_PTR this_ptr))[32];
20535 /* @internal */
20536 export function FundingSigned_get_channel_id(this_ptr: number): number {
20537         if(!isWasmInitialized) {
20538                 throw new Error("initializeWasm() must be awaited first!");
20539         }
20540         const nativeResponseValue = wasm.TS_FundingSigned_get_channel_id(this_ptr);
20541         return nativeResponseValue;
20542 }
20543         // void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20544 /* @internal */
20545 export function FundingSigned_set_channel_id(this_ptr: number, val: number): void {
20546         if(!isWasmInitialized) {
20547                 throw new Error("initializeWasm() must be awaited first!");
20548         }
20549         const nativeResponseValue = wasm.TS_FundingSigned_set_channel_id(this_ptr, val);
20550         // debug statements here
20551 }
20552         // struct LDKSignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr);
20553 /* @internal */
20554 export function FundingSigned_get_signature(this_ptr: number): number {
20555         if(!isWasmInitialized) {
20556                 throw new Error("initializeWasm() must be awaited first!");
20557         }
20558         const nativeResponseValue = wasm.TS_FundingSigned_get_signature(this_ptr);
20559         return nativeResponseValue;
20560 }
20561         // void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
20562 /* @internal */
20563 export function FundingSigned_set_signature(this_ptr: number, val: number): void {
20564         if(!isWasmInitialized) {
20565                 throw new Error("initializeWasm() must be awaited first!");
20566         }
20567         const nativeResponseValue = wasm.TS_FundingSigned_set_signature(this_ptr, val);
20568         // debug statements here
20569 }
20570         // MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg);
20571 /* @internal */
20572 export function FundingSigned_new(channel_id_arg: number, signature_arg: number): number {
20573         if(!isWasmInitialized) {
20574                 throw new Error("initializeWasm() must be awaited first!");
20575         }
20576         const nativeResponseValue = wasm.TS_FundingSigned_new(channel_id_arg, signature_arg);
20577         return nativeResponseValue;
20578 }
20579         // uintptr_t FundingSigned_clone_ptr(LDKFundingSigned *NONNULL_PTR arg);
20580 /* @internal */
20581 export function FundingSigned_clone_ptr(arg: number): number {
20582         if(!isWasmInitialized) {
20583                 throw new Error("initializeWasm() must be awaited first!");
20584         }
20585         const nativeResponseValue = wasm.TS_FundingSigned_clone_ptr(arg);
20586         return nativeResponseValue;
20587 }
20588         // struct LDKFundingSigned FundingSigned_clone(const struct LDKFundingSigned *NONNULL_PTR orig);
20589 /* @internal */
20590 export function FundingSigned_clone(orig: number): number {
20591         if(!isWasmInitialized) {
20592                 throw new Error("initializeWasm() must be awaited first!");
20593         }
20594         const nativeResponseValue = wasm.TS_FundingSigned_clone(orig);
20595         return nativeResponseValue;
20596 }
20597         // void FundingLocked_free(struct LDKFundingLocked this_obj);
20598 /* @internal */
20599 export function FundingLocked_free(this_obj: number): void {
20600         if(!isWasmInitialized) {
20601                 throw new Error("initializeWasm() must be awaited first!");
20602         }
20603         const nativeResponseValue = wasm.TS_FundingLocked_free(this_obj);
20604         // debug statements here
20605 }
20606         // const uint8_t (*FundingLocked_get_channel_id(const struct LDKFundingLocked *NONNULL_PTR this_ptr))[32];
20607 /* @internal */
20608 export function FundingLocked_get_channel_id(this_ptr: number): number {
20609         if(!isWasmInitialized) {
20610                 throw new Error("initializeWasm() must be awaited first!");
20611         }
20612         const nativeResponseValue = wasm.TS_FundingLocked_get_channel_id(this_ptr);
20613         return nativeResponseValue;
20614 }
20615         // void FundingLocked_set_channel_id(struct LDKFundingLocked *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20616 /* @internal */
20617 export function FundingLocked_set_channel_id(this_ptr: number, val: number): void {
20618         if(!isWasmInitialized) {
20619                 throw new Error("initializeWasm() must be awaited first!");
20620         }
20621         const nativeResponseValue = wasm.TS_FundingLocked_set_channel_id(this_ptr, val);
20622         // debug statements here
20623 }
20624         // struct LDKPublicKey FundingLocked_get_next_per_commitment_point(const struct LDKFundingLocked *NONNULL_PTR this_ptr);
20625 /* @internal */
20626 export function FundingLocked_get_next_per_commitment_point(this_ptr: number): number {
20627         if(!isWasmInitialized) {
20628                 throw new Error("initializeWasm() must be awaited first!");
20629         }
20630         const nativeResponseValue = wasm.TS_FundingLocked_get_next_per_commitment_point(this_ptr);
20631         return nativeResponseValue;
20632 }
20633         // void FundingLocked_set_next_per_commitment_point(struct LDKFundingLocked *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20634 /* @internal */
20635 export function FundingLocked_set_next_per_commitment_point(this_ptr: number, val: number): void {
20636         if(!isWasmInitialized) {
20637                 throw new Error("initializeWasm() must be awaited first!");
20638         }
20639         const nativeResponseValue = wasm.TS_FundingLocked_set_next_per_commitment_point(this_ptr, val);
20640         // debug statements here
20641 }
20642         // struct LDKCOption_u64Z FundingLocked_get_short_channel_id_alias(const struct LDKFundingLocked *NONNULL_PTR this_ptr);
20643 /* @internal */
20644 export function FundingLocked_get_short_channel_id_alias(this_ptr: number): number {
20645         if(!isWasmInitialized) {
20646                 throw new Error("initializeWasm() must be awaited first!");
20647         }
20648         const nativeResponseValue = wasm.TS_FundingLocked_get_short_channel_id_alias(this_ptr);
20649         return nativeResponseValue;
20650 }
20651         // void FundingLocked_set_short_channel_id_alias(struct LDKFundingLocked *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
20652 /* @internal */
20653 export function FundingLocked_set_short_channel_id_alias(this_ptr: number, val: number): void {
20654         if(!isWasmInitialized) {
20655                 throw new Error("initializeWasm() must be awaited first!");
20656         }
20657         const nativeResponseValue = wasm.TS_FundingLocked_set_short_channel_id_alias(this_ptr, val);
20658         // debug statements here
20659 }
20660         // MUST_USE_RES struct LDKFundingLocked FundingLocked_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKPublicKey next_per_commitment_point_arg, struct LDKCOption_u64Z short_channel_id_alias_arg);
20661 /* @internal */
20662 export function FundingLocked_new(channel_id_arg: number, next_per_commitment_point_arg: number, short_channel_id_alias_arg: number): number {
20663         if(!isWasmInitialized) {
20664                 throw new Error("initializeWasm() must be awaited first!");
20665         }
20666         const nativeResponseValue = wasm.TS_FundingLocked_new(channel_id_arg, next_per_commitment_point_arg, short_channel_id_alias_arg);
20667         return nativeResponseValue;
20668 }
20669         // uintptr_t FundingLocked_clone_ptr(LDKFundingLocked *NONNULL_PTR arg);
20670 /* @internal */
20671 export function FundingLocked_clone_ptr(arg: number): number {
20672         if(!isWasmInitialized) {
20673                 throw new Error("initializeWasm() must be awaited first!");
20674         }
20675         const nativeResponseValue = wasm.TS_FundingLocked_clone_ptr(arg);
20676         return nativeResponseValue;
20677 }
20678         // struct LDKFundingLocked FundingLocked_clone(const struct LDKFundingLocked *NONNULL_PTR orig);
20679 /* @internal */
20680 export function FundingLocked_clone(orig: number): number {
20681         if(!isWasmInitialized) {
20682                 throw new Error("initializeWasm() must be awaited first!");
20683         }
20684         const nativeResponseValue = wasm.TS_FundingLocked_clone(orig);
20685         return nativeResponseValue;
20686 }
20687         // void Shutdown_free(struct LDKShutdown this_obj);
20688 /* @internal */
20689 export function Shutdown_free(this_obj: number): void {
20690         if(!isWasmInitialized) {
20691                 throw new Error("initializeWasm() must be awaited first!");
20692         }
20693         const nativeResponseValue = wasm.TS_Shutdown_free(this_obj);
20694         // debug statements here
20695 }
20696         // const uint8_t (*Shutdown_get_channel_id(const struct LDKShutdown *NONNULL_PTR this_ptr))[32];
20697 /* @internal */
20698 export function Shutdown_get_channel_id(this_ptr: number): number {
20699         if(!isWasmInitialized) {
20700                 throw new Error("initializeWasm() must be awaited first!");
20701         }
20702         const nativeResponseValue = wasm.TS_Shutdown_get_channel_id(this_ptr);
20703         return nativeResponseValue;
20704 }
20705         // void Shutdown_set_channel_id(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20706 /* @internal */
20707 export function Shutdown_set_channel_id(this_ptr: number, val: number): void {
20708         if(!isWasmInitialized) {
20709                 throw new Error("initializeWasm() must be awaited first!");
20710         }
20711         const nativeResponseValue = wasm.TS_Shutdown_set_channel_id(this_ptr, val);
20712         // debug statements here
20713 }
20714         // struct LDKu8slice Shutdown_get_scriptpubkey(const struct LDKShutdown *NONNULL_PTR this_ptr);
20715 /* @internal */
20716 export function Shutdown_get_scriptpubkey(this_ptr: number): number {
20717         if(!isWasmInitialized) {
20718                 throw new Error("initializeWasm() must be awaited first!");
20719         }
20720         const nativeResponseValue = wasm.TS_Shutdown_get_scriptpubkey(this_ptr);
20721         return nativeResponseValue;
20722 }
20723         // void Shutdown_set_scriptpubkey(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
20724 /* @internal */
20725 export function Shutdown_set_scriptpubkey(this_ptr: number, val: number): void {
20726         if(!isWasmInitialized) {
20727                 throw new Error("initializeWasm() must be awaited first!");
20728         }
20729         const nativeResponseValue = wasm.TS_Shutdown_set_scriptpubkey(this_ptr, val);
20730         // debug statements here
20731 }
20732         // MUST_USE_RES struct LDKShutdown Shutdown_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z scriptpubkey_arg);
20733 /* @internal */
20734 export function Shutdown_new(channel_id_arg: number, scriptpubkey_arg: number): number {
20735         if(!isWasmInitialized) {
20736                 throw new Error("initializeWasm() must be awaited first!");
20737         }
20738         const nativeResponseValue = wasm.TS_Shutdown_new(channel_id_arg, scriptpubkey_arg);
20739         return nativeResponseValue;
20740 }
20741         // uintptr_t Shutdown_clone_ptr(LDKShutdown *NONNULL_PTR arg);
20742 /* @internal */
20743 export function Shutdown_clone_ptr(arg: number): number {
20744         if(!isWasmInitialized) {
20745                 throw new Error("initializeWasm() must be awaited first!");
20746         }
20747         const nativeResponseValue = wasm.TS_Shutdown_clone_ptr(arg);
20748         return nativeResponseValue;
20749 }
20750         // struct LDKShutdown Shutdown_clone(const struct LDKShutdown *NONNULL_PTR orig);
20751 /* @internal */
20752 export function Shutdown_clone(orig: number): number {
20753         if(!isWasmInitialized) {
20754                 throw new Error("initializeWasm() must be awaited first!");
20755         }
20756         const nativeResponseValue = wasm.TS_Shutdown_clone(orig);
20757         return nativeResponseValue;
20758 }
20759         // void ClosingSignedFeeRange_free(struct LDKClosingSignedFeeRange this_obj);
20760 /* @internal */
20761 export function ClosingSignedFeeRange_free(this_obj: number): void {
20762         if(!isWasmInitialized) {
20763                 throw new Error("initializeWasm() must be awaited first!");
20764         }
20765         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_free(this_obj);
20766         // debug statements here
20767 }
20768         // uint64_t ClosingSignedFeeRange_get_min_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
20769 /* @internal */
20770 export function ClosingSignedFeeRange_get_min_fee_satoshis(this_ptr: number): bigint {
20771         if(!isWasmInitialized) {
20772                 throw new Error("initializeWasm() must be awaited first!");
20773         }
20774         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_get_min_fee_satoshis(this_ptr);
20775         return nativeResponseValue;
20776 }
20777         // void ClosingSignedFeeRange_set_min_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
20778 /* @internal */
20779 export function ClosingSignedFeeRange_set_min_fee_satoshis(this_ptr: number, val: bigint): void {
20780         if(!isWasmInitialized) {
20781                 throw new Error("initializeWasm() must be awaited first!");
20782         }
20783         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_set_min_fee_satoshis(this_ptr, val);
20784         // debug statements here
20785 }
20786         // uint64_t ClosingSignedFeeRange_get_max_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
20787 /* @internal */
20788 export function ClosingSignedFeeRange_get_max_fee_satoshis(this_ptr: number): bigint {
20789         if(!isWasmInitialized) {
20790                 throw new Error("initializeWasm() must be awaited first!");
20791         }
20792         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_get_max_fee_satoshis(this_ptr);
20793         return nativeResponseValue;
20794 }
20795         // void ClosingSignedFeeRange_set_max_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
20796 /* @internal */
20797 export function ClosingSignedFeeRange_set_max_fee_satoshis(this_ptr: number, val: bigint): void {
20798         if(!isWasmInitialized) {
20799                 throw new Error("initializeWasm() must be awaited first!");
20800         }
20801         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_set_max_fee_satoshis(this_ptr, val);
20802         // debug statements here
20803 }
20804         // MUST_USE_RES struct LDKClosingSignedFeeRange ClosingSignedFeeRange_new(uint64_t min_fee_satoshis_arg, uint64_t max_fee_satoshis_arg);
20805 /* @internal */
20806 export function ClosingSignedFeeRange_new(min_fee_satoshis_arg: bigint, max_fee_satoshis_arg: bigint): number {
20807         if(!isWasmInitialized) {
20808                 throw new Error("initializeWasm() must be awaited first!");
20809         }
20810         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_new(min_fee_satoshis_arg, max_fee_satoshis_arg);
20811         return nativeResponseValue;
20812 }
20813         // uintptr_t ClosingSignedFeeRange_clone_ptr(LDKClosingSignedFeeRange *NONNULL_PTR arg);
20814 /* @internal */
20815 export function ClosingSignedFeeRange_clone_ptr(arg: number): number {
20816         if(!isWasmInitialized) {
20817                 throw new Error("initializeWasm() must be awaited first!");
20818         }
20819         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_clone_ptr(arg);
20820         return nativeResponseValue;
20821 }
20822         // struct LDKClosingSignedFeeRange ClosingSignedFeeRange_clone(const struct LDKClosingSignedFeeRange *NONNULL_PTR orig);
20823 /* @internal */
20824 export function ClosingSignedFeeRange_clone(orig: number): number {
20825         if(!isWasmInitialized) {
20826                 throw new Error("initializeWasm() must be awaited first!");
20827         }
20828         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_clone(orig);
20829         return nativeResponseValue;
20830 }
20831         // void ClosingSigned_free(struct LDKClosingSigned this_obj);
20832 /* @internal */
20833 export function ClosingSigned_free(this_obj: number): void {
20834         if(!isWasmInitialized) {
20835                 throw new Error("initializeWasm() must be awaited first!");
20836         }
20837         const nativeResponseValue = wasm.TS_ClosingSigned_free(this_obj);
20838         // debug statements here
20839 }
20840         // const uint8_t (*ClosingSigned_get_channel_id(const struct LDKClosingSigned *NONNULL_PTR this_ptr))[32];
20841 /* @internal */
20842 export function ClosingSigned_get_channel_id(this_ptr: number): number {
20843         if(!isWasmInitialized) {
20844                 throw new Error("initializeWasm() must be awaited first!");
20845         }
20846         const nativeResponseValue = wasm.TS_ClosingSigned_get_channel_id(this_ptr);
20847         return nativeResponseValue;
20848 }
20849         // void ClosingSigned_set_channel_id(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20850 /* @internal */
20851 export function ClosingSigned_set_channel_id(this_ptr: number, val: number): void {
20852         if(!isWasmInitialized) {
20853                 throw new Error("initializeWasm() must be awaited first!");
20854         }
20855         const nativeResponseValue = wasm.TS_ClosingSigned_set_channel_id(this_ptr, val);
20856         // debug statements here
20857 }
20858         // uint64_t ClosingSigned_get_fee_satoshis(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
20859 /* @internal */
20860 export function ClosingSigned_get_fee_satoshis(this_ptr: number): bigint {
20861         if(!isWasmInitialized) {
20862                 throw new Error("initializeWasm() must be awaited first!");
20863         }
20864         const nativeResponseValue = wasm.TS_ClosingSigned_get_fee_satoshis(this_ptr);
20865         return nativeResponseValue;
20866 }
20867         // void ClosingSigned_set_fee_satoshis(struct LDKClosingSigned *NONNULL_PTR this_ptr, uint64_t val);
20868 /* @internal */
20869 export function ClosingSigned_set_fee_satoshis(this_ptr: number, val: bigint): void {
20870         if(!isWasmInitialized) {
20871                 throw new Error("initializeWasm() must be awaited first!");
20872         }
20873         const nativeResponseValue = wasm.TS_ClosingSigned_set_fee_satoshis(this_ptr, val);
20874         // debug statements here
20875 }
20876         // struct LDKSignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
20877 /* @internal */
20878 export function ClosingSigned_get_signature(this_ptr: number): number {
20879         if(!isWasmInitialized) {
20880                 throw new Error("initializeWasm() must be awaited first!");
20881         }
20882         const nativeResponseValue = wasm.TS_ClosingSigned_get_signature(this_ptr);
20883         return nativeResponseValue;
20884 }
20885         // void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
20886 /* @internal */
20887 export function ClosingSigned_set_signature(this_ptr: number, val: number): void {
20888         if(!isWasmInitialized) {
20889                 throw new Error("initializeWasm() must be awaited first!");
20890         }
20891         const nativeResponseValue = wasm.TS_ClosingSigned_set_signature(this_ptr, val);
20892         // debug statements here
20893 }
20894         // struct LDKClosingSignedFeeRange ClosingSigned_get_fee_range(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
20895 /* @internal */
20896 export function ClosingSigned_get_fee_range(this_ptr: number): number {
20897         if(!isWasmInitialized) {
20898                 throw new Error("initializeWasm() must be awaited first!");
20899         }
20900         const nativeResponseValue = wasm.TS_ClosingSigned_get_fee_range(this_ptr);
20901         return nativeResponseValue;
20902 }
20903         // void ClosingSigned_set_fee_range(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKClosingSignedFeeRange val);
20904 /* @internal */
20905 export function ClosingSigned_set_fee_range(this_ptr: number, val: number): void {
20906         if(!isWasmInitialized) {
20907                 throw new Error("initializeWasm() must be awaited first!");
20908         }
20909         const nativeResponseValue = wasm.TS_ClosingSigned_set_fee_range(this_ptr, val);
20910         // debug statements here
20911 }
20912         // 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);
20913 /* @internal */
20914 export function ClosingSigned_new(channel_id_arg: number, fee_satoshis_arg: bigint, signature_arg: number, fee_range_arg: number): number {
20915         if(!isWasmInitialized) {
20916                 throw new Error("initializeWasm() must be awaited first!");
20917         }
20918         const nativeResponseValue = wasm.TS_ClosingSigned_new(channel_id_arg, fee_satoshis_arg, signature_arg, fee_range_arg);
20919         return nativeResponseValue;
20920 }
20921         // uintptr_t ClosingSigned_clone_ptr(LDKClosingSigned *NONNULL_PTR arg);
20922 /* @internal */
20923 export function ClosingSigned_clone_ptr(arg: number): number {
20924         if(!isWasmInitialized) {
20925                 throw new Error("initializeWasm() must be awaited first!");
20926         }
20927         const nativeResponseValue = wasm.TS_ClosingSigned_clone_ptr(arg);
20928         return nativeResponseValue;
20929 }
20930         // struct LDKClosingSigned ClosingSigned_clone(const struct LDKClosingSigned *NONNULL_PTR orig);
20931 /* @internal */
20932 export function ClosingSigned_clone(orig: number): number {
20933         if(!isWasmInitialized) {
20934                 throw new Error("initializeWasm() must be awaited first!");
20935         }
20936         const nativeResponseValue = wasm.TS_ClosingSigned_clone(orig);
20937         return nativeResponseValue;
20938 }
20939         // void UpdateAddHTLC_free(struct LDKUpdateAddHTLC this_obj);
20940 /* @internal */
20941 export function UpdateAddHTLC_free(this_obj: number): void {
20942         if(!isWasmInitialized) {
20943                 throw new Error("initializeWasm() must be awaited first!");
20944         }
20945         const nativeResponseValue = wasm.TS_UpdateAddHTLC_free(this_obj);
20946         // debug statements here
20947 }
20948         // const uint8_t (*UpdateAddHTLC_get_channel_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
20949 /* @internal */
20950 export function UpdateAddHTLC_get_channel_id(this_ptr: number): number {
20951         if(!isWasmInitialized) {
20952                 throw new Error("initializeWasm() must be awaited first!");
20953         }
20954         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_channel_id(this_ptr);
20955         return nativeResponseValue;
20956 }
20957         // void UpdateAddHTLC_set_channel_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20958 /* @internal */
20959 export function UpdateAddHTLC_set_channel_id(this_ptr: number, val: number): void {
20960         if(!isWasmInitialized) {
20961                 throw new Error("initializeWasm() must be awaited first!");
20962         }
20963         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_channel_id(this_ptr, val);
20964         // debug statements here
20965 }
20966         // uint64_t UpdateAddHTLC_get_htlc_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
20967 /* @internal */
20968 export function UpdateAddHTLC_get_htlc_id(this_ptr: number): bigint {
20969         if(!isWasmInitialized) {
20970                 throw new Error("initializeWasm() must be awaited first!");
20971         }
20972         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_htlc_id(this_ptr);
20973         return nativeResponseValue;
20974 }
20975         // void UpdateAddHTLC_set_htlc_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
20976 /* @internal */
20977 export function UpdateAddHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
20978         if(!isWasmInitialized) {
20979                 throw new Error("initializeWasm() must be awaited first!");
20980         }
20981         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_htlc_id(this_ptr, val);
20982         // debug statements here
20983 }
20984         // uint64_t UpdateAddHTLC_get_amount_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
20985 /* @internal */
20986 export function UpdateAddHTLC_get_amount_msat(this_ptr: number): bigint {
20987         if(!isWasmInitialized) {
20988                 throw new Error("initializeWasm() must be awaited first!");
20989         }
20990         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_amount_msat(this_ptr);
20991         return nativeResponseValue;
20992 }
20993         // void UpdateAddHTLC_set_amount_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
20994 /* @internal */
20995 export function UpdateAddHTLC_set_amount_msat(this_ptr: number, val: bigint): void {
20996         if(!isWasmInitialized) {
20997                 throw new Error("initializeWasm() must be awaited first!");
20998         }
20999         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_amount_msat(this_ptr, val);
21000         // debug statements here
21001 }
21002         // const uint8_t (*UpdateAddHTLC_get_payment_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
21003 /* @internal */
21004 export function UpdateAddHTLC_get_payment_hash(this_ptr: number): number {
21005         if(!isWasmInitialized) {
21006                 throw new Error("initializeWasm() must be awaited first!");
21007         }
21008         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_payment_hash(this_ptr);
21009         return nativeResponseValue;
21010 }
21011         // void UpdateAddHTLC_set_payment_hash(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21012 /* @internal */
21013 export function UpdateAddHTLC_set_payment_hash(this_ptr: number, val: number): void {
21014         if(!isWasmInitialized) {
21015                 throw new Error("initializeWasm() must be awaited first!");
21016         }
21017         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_payment_hash(this_ptr, val);
21018         // debug statements here
21019 }
21020         // uint32_t UpdateAddHTLC_get_cltv_expiry(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
21021 /* @internal */
21022 export function UpdateAddHTLC_get_cltv_expiry(this_ptr: number): number {
21023         if(!isWasmInitialized) {
21024                 throw new Error("initializeWasm() must be awaited first!");
21025         }
21026         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_cltv_expiry(this_ptr);
21027         return nativeResponseValue;
21028 }
21029         // void UpdateAddHTLC_set_cltv_expiry(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint32_t val);
21030 /* @internal */
21031 export function UpdateAddHTLC_set_cltv_expiry(this_ptr: number, val: number): void {
21032         if(!isWasmInitialized) {
21033                 throw new Error("initializeWasm() must be awaited first!");
21034         }
21035         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_cltv_expiry(this_ptr, val);
21036         // debug statements here
21037 }
21038         // uintptr_t UpdateAddHTLC_clone_ptr(LDKUpdateAddHTLC *NONNULL_PTR arg);
21039 /* @internal */
21040 export function UpdateAddHTLC_clone_ptr(arg: number): number {
21041         if(!isWasmInitialized) {
21042                 throw new Error("initializeWasm() must be awaited first!");
21043         }
21044         const nativeResponseValue = wasm.TS_UpdateAddHTLC_clone_ptr(arg);
21045         return nativeResponseValue;
21046 }
21047         // struct LDKUpdateAddHTLC UpdateAddHTLC_clone(const struct LDKUpdateAddHTLC *NONNULL_PTR orig);
21048 /* @internal */
21049 export function UpdateAddHTLC_clone(orig: number): number {
21050         if(!isWasmInitialized) {
21051                 throw new Error("initializeWasm() must be awaited first!");
21052         }
21053         const nativeResponseValue = wasm.TS_UpdateAddHTLC_clone(orig);
21054         return nativeResponseValue;
21055 }
21056         // void UpdateFulfillHTLC_free(struct LDKUpdateFulfillHTLC this_obj);
21057 /* @internal */
21058 export function UpdateFulfillHTLC_free(this_obj: number): void {
21059         if(!isWasmInitialized) {
21060                 throw new Error("initializeWasm() must be awaited first!");
21061         }
21062         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_free(this_obj);
21063         // debug statements here
21064 }
21065         // const uint8_t (*UpdateFulfillHTLC_get_channel_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
21066 /* @internal */
21067 export function UpdateFulfillHTLC_get_channel_id(this_ptr: number): number {
21068         if(!isWasmInitialized) {
21069                 throw new Error("initializeWasm() must be awaited first!");
21070         }
21071         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_channel_id(this_ptr);
21072         return nativeResponseValue;
21073 }
21074         // void UpdateFulfillHTLC_set_channel_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21075 /* @internal */
21076 export function UpdateFulfillHTLC_set_channel_id(this_ptr: number, val: number): void {
21077         if(!isWasmInitialized) {
21078                 throw new Error("initializeWasm() must be awaited first!");
21079         }
21080         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_channel_id(this_ptr, val);
21081         // debug statements here
21082 }
21083         // uint64_t UpdateFulfillHTLC_get_htlc_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr);
21084 /* @internal */
21085 export function UpdateFulfillHTLC_get_htlc_id(this_ptr: number): bigint {
21086         if(!isWasmInitialized) {
21087                 throw new Error("initializeWasm() must be awaited first!");
21088         }
21089         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_htlc_id(this_ptr);
21090         return nativeResponseValue;
21091 }
21092         // void UpdateFulfillHTLC_set_htlc_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, uint64_t val);
21093 /* @internal */
21094 export function UpdateFulfillHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
21095         if(!isWasmInitialized) {
21096                 throw new Error("initializeWasm() must be awaited first!");
21097         }
21098         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_htlc_id(this_ptr, val);
21099         // debug statements here
21100 }
21101         // const uint8_t (*UpdateFulfillHTLC_get_payment_preimage(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
21102 /* @internal */
21103 export function UpdateFulfillHTLC_get_payment_preimage(this_ptr: number): number {
21104         if(!isWasmInitialized) {
21105                 throw new Error("initializeWasm() must be awaited first!");
21106         }
21107         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_payment_preimage(this_ptr);
21108         return nativeResponseValue;
21109 }
21110         // void UpdateFulfillHTLC_set_payment_preimage(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21111 /* @internal */
21112 export function UpdateFulfillHTLC_set_payment_preimage(this_ptr: number, val: number): void {
21113         if(!isWasmInitialized) {
21114                 throw new Error("initializeWasm() must be awaited first!");
21115         }
21116         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_payment_preimage(this_ptr, val);
21117         // debug statements here
21118 }
21119         // MUST_USE_RES struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t htlc_id_arg, struct LDKThirtyTwoBytes payment_preimage_arg);
21120 /* @internal */
21121 export function UpdateFulfillHTLC_new(channel_id_arg: number, htlc_id_arg: bigint, payment_preimage_arg: number): number {
21122         if(!isWasmInitialized) {
21123                 throw new Error("initializeWasm() must be awaited first!");
21124         }
21125         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_new(channel_id_arg, htlc_id_arg, payment_preimage_arg);
21126         return nativeResponseValue;
21127 }
21128         // uintptr_t UpdateFulfillHTLC_clone_ptr(LDKUpdateFulfillHTLC *NONNULL_PTR arg);
21129 /* @internal */
21130 export function UpdateFulfillHTLC_clone_ptr(arg: number): number {
21131         if(!isWasmInitialized) {
21132                 throw new Error("initializeWasm() must be awaited first!");
21133         }
21134         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_clone_ptr(arg);
21135         return nativeResponseValue;
21136 }
21137         // struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_clone(const struct LDKUpdateFulfillHTLC *NONNULL_PTR orig);
21138 /* @internal */
21139 export function UpdateFulfillHTLC_clone(orig: number): number {
21140         if(!isWasmInitialized) {
21141                 throw new Error("initializeWasm() must be awaited first!");
21142         }
21143         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_clone(orig);
21144         return nativeResponseValue;
21145 }
21146         // void UpdateFailHTLC_free(struct LDKUpdateFailHTLC this_obj);
21147 /* @internal */
21148 export function UpdateFailHTLC_free(this_obj: number): void {
21149         if(!isWasmInitialized) {
21150                 throw new Error("initializeWasm() must be awaited first!");
21151         }
21152         const nativeResponseValue = wasm.TS_UpdateFailHTLC_free(this_obj);
21153         // debug statements here
21154 }
21155         // const uint8_t (*UpdateFailHTLC_get_channel_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr))[32];
21156 /* @internal */
21157 export function UpdateFailHTLC_get_channel_id(this_ptr: number): number {
21158         if(!isWasmInitialized) {
21159                 throw new Error("initializeWasm() must be awaited first!");
21160         }
21161         const nativeResponseValue = wasm.TS_UpdateFailHTLC_get_channel_id(this_ptr);
21162         return nativeResponseValue;
21163 }
21164         // void UpdateFailHTLC_set_channel_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21165 /* @internal */
21166 export function UpdateFailHTLC_set_channel_id(this_ptr: number, val: number): void {
21167         if(!isWasmInitialized) {
21168                 throw new Error("initializeWasm() must be awaited first!");
21169         }
21170         const nativeResponseValue = wasm.TS_UpdateFailHTLC_set_channel_id(this_ptr, val);
21171         // debug statements here
21172 }
21173         // uint64_t UpdateFailHTLC_get_htlc_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr);
21174 /* @internal */
21175 export function UpdateFailHTLC_get_htlc_id(this_ptr: number): bigint {
21176         if(!isWasmInitialized) {
21177                 throw new Error("initializeWasm() must be awaited first!");
21178         }
21179         const nativeResponseValue = wasm.TS_UpdateFailHTLC_get_htlc_id(this_ptr);
21180         return nativeResponseValue;
21181 }
21182         // void UpdateFailHTLC_set_htlc_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, uint64_t val);
21183 /* @internal */
21184 export function UpdateFailHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
21185         if(!isWasmInitialized) {
21186                 throw new Error("initializeWasm() must be awaited first!");
21187         }
21188         const nativeResponseValue = wasm.TS_UpdateFailHTLC_set_htlc_id(this_ptr, val);
21189         // debug statements here
21190 }
21191         // uintptr_t UpdateFailHTLC_clone_ptr(LDKUpdateFailHTLC *NONNULL_PTR arg);
21192 /* @internal */
21193 export function UpdateFailHTLC_clone_ptr(arg: number): number {
21194         if(!isWasmInitialized) {
21195                 throw new Error("initializeWasm() must be awaited first!");
21196         }
21197         const nativeResponseValue = wasm.TS_UpdateFailHTLC_clone_ptr(arg);
21198         return nativeResponseValue;
21199 }
21200         // struct LDKUpdateFailHTLC UpdateFailHTLC_clone(const struct LDKUpdateFailHTLC *NONNULL_PTR orig);
21201 /* @internal */
21202 export function UpdateFailHTLC_clone(orig: number): number {
21203         if(!isWasmInitialized) {
21204                 throw new Error("initializeWasm() must be awaited first!");
21205         }
21206         const nativeResponseValue = wasm.TS_UpdateFailHTLC_clone(orig);
21207         return nativeResponseValue;
21208 }
21209         // void UpdateFailMalformedHTLC_free(struct LDKUpdateFailMalformedHTLC this_obj);
21210 /* @internal */
21211 export function UpdateFailMalformedHTLC_free(this_obj: number): void {
21212         if(!isWasmInitialized) {
21213                 throw new Error("initializeWasm() must be awaited first!");
21214         }
21215         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_free(this_obj);
21216         // debug statements here
21217 }
21218         // const uint8_t (*UpdateFailMalformedHTLC_get_channel_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr))[32];
21219 /* @internal */
21220 export function UpdateFailMalformedHTLC_get_channel_id(this_ptr: number): number {
21221         if(!isWasmInitialized) {
21222                 throw new Error("initializeWasm() must be awaited first!");
21223         }
21224         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_channel_id(this_ptr);
21225         return nativeResponseValue;
21226 }
21227         // void UpdateFailMalformedHTLC_set_channel_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21228 /* @internal */
21229 export function UpdateFailMalformedHTLC_set_channel_id(this_ptr: number, val: number): void {
21230         if(!isWasmInitialized) {
21231                 throw new Error("initializeWasm() must be awaited first!");
21232         }
21233         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_channel_id(this_ptr, val);
21234         // debug statements here
21235 }
21236         // uint64_t UpdateFailMalformedHTLC_get_htlc_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
21237 /* @internal */
21238 export function UpdateFailMalformedHTLC_get_htlc_id(this_ptr: number): bigint {
21239         if(!isWasmInitialized) {
21240                 throw new Error("initializeWasm() must be awaited first!");
21241         }
21242         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_htlc_id(this_ptr);
21243         return nativeResponseValue;
21244 }
21245         // void UpdateFailMalformedHTLC_set_htlc_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint64_t val);
21246 /* @internal */
21247 export function UpdateFailMalformedHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
21248         if(!isWasmInitialized) {
21249                 throw new Error("initializeWasm() must be awaited first!");
21250         }
21251         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_htlc_id(this_ptr, val);
21252         // debug statements here
21253 }
21254         // uint16_t UpdateFailMalformedHTLC_get_failure_code(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
21255 /* @internal */
21256 export function UpdateFailMalformedHTLC_get_failure_code(this_ptr: number): number {
21257         if(!isWasmInitialized) {
21258                 throw new Error("initializeWasm() must be awaited first!");
21259         }
21260         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_failure_code(this_ptr);
21261         return nativeResponseValue;
21262 }
21263         // void UpdateFailMalformedHTLC_set_failure_code(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint16_t val);
21264 /* @internal */
21265 export function UpdateFailMalformedHTLC_set_failure_code(this_ptr: number, val: number): void {
21266         if(!isWasmInitialized) {
21267                 throw new Error("initializeWasm() must be awaited first!");
21268         }
21269         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_failure_code(this_ptr, val);
21270         // debug statements here
21271 }
21272         // uintptr_t UpdateFailMalformedHTLC_clone_ptr(LDKUpdateFailMalformedHTLC *NONNULL_PTR arg);
21273 /* @internal */
21274 export function UpdateFailMalformedHTLC_clone_ptr(arg: number): number {
21275         if(!isWasmInitialized) {
21276                 throw new Error("initializeWasm() must be awaited first!");
21277         }
21278         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_clone_ptr(arg);
21279         return nativeResponseValue;
21280 }
21281         // struct LDKUpdateFailMalformedHTLC UpdateFailMalformedHTLC_clone(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR orig);
21282 /* @internal */
21283 export function UpdateFailMalformedHTLC_clone(orig: number): number {
21284         if(!isWasmInitialized) {
21285                 throw new Error("initializeWasm() must be awaited first!");
21286         }
21287         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_clone(orig);
21288         return nativeResponseValue;
21289 }
21290         // void CommitmentSigned_free(struct LDKCommitmentSigned this_obj);
21291 /* @internal */
21292 export function CommitmentSigned_free(this_obj: number): void {
21293         if(!isWasmInitialized) {
21294                 throw new Error("initializeWasm() must be awaited first!");
21295         }
21296         const nativeResponseValue = wasm.TS_CommitmentSigned_free(this_obj);
21297         // debug statements here
21298 }
21299         // const uint8_t (*CommitmentSigned_get_channel_id(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr))[32];
21300 /* @internal */
21301 export function CommitmentSigned_get_channel_id(this_ptr: number): number {
21302         if(!isWasmInitialized) {
21303                 throw new Error("initializeWasm() must be awaited first!");
21304         }
21305         const nativeResponseValue = wasm.TS_CommitmentSigned_get_channel_id(this_ptr);
21306         return nativeResponseValue;
21307 }
21308         // void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21309 /* @internal */
21310 export function CommitmentSigned_set_channel_id(this_ptr: number, val: number): void {
21311         if(!isWasmInitialized) {
21312                 throw new Error("initializeWasm() must be awaited first!");
21313         }
21314         const nativeResponseValue = wasm.TS_CommitmentSigned_set_channel_id(this_ptr, val);
21315         // debug statements here
21316 }
21317         // struct LDKSignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
21318 /* @internal */
21319 export function CommitmentSigned_get_signature(this_ptr: number): number {
21320         if(!isWasmInitialized) {
21321                 throw new Error("initializeWasm() must be awaited first!");
21322         }
21323         const nativeResponseValue = wasm.TS_CommitmentSigned_get_signature(this_ptr);
21324         return nativeResponseValue;
21325 }
21326         // void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
21327 /* @internal */
21328 export function CommitmentSigned_set_signature(this_ptr: number, val: number): void {
21329         if(!isWasmInitialized) {
21330                 throw new Error("initializeWasm() must be awaited first!");
21331         }
21332         const nativeResponseValue = wasm.TS_CommitmentSigned_set_signature(this_ptr, val);
21333         // debug statements here
21334 }
21335         // void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
21336 /* @internal */
21337 export function CommitmentSigned_set_htlc_signatures(this_ptr: number, val: number): void {
21338         if(!isWasmInitialized) {
21339                 throw new Error("initializeWasm() must be awaited first!");
21340         }
21341         const nativeResponseValue = wasm.TS_CommitmentSigned_set_htlc_signatures(this_ptr, val);
21342         // debug statements here
21343 }
21344         // MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg, struct LDKCVec_SignatureZ htlc_signatures_arg);
21345 /* @internal */
21346 export function CommitmentSigned_new(channel_id_arg: number, signature_arg: number, htlc_signatures_arg: number): number {
21347         if(!isWasmInitialized) {
21348                 throw new Error("initializeWasm() must be awaited first!");
21349         }
21350         const nativeResponseValue = wasm.TS_CommitmentSigned_new(channel_id_arg, signature_arg, htlc_signatures_arg);
21351         return nativeResponseValue;
21352 }
21353         // uintptr_t CommitmentSigned_clone_ptr(LDKCommitmentSigned *NONNULL_PTR arg);
21354 /* @internal */
21355 export function CommitmentSigned_clone_ptr(arg: number): number {
21356         if(!isWasmInitialized) {
21357                 throw new Error("initializeWasm() must be awaited first!");
21358         }
21359         const nativeResponseValue = wasm.TS_CommitmentSigned_clone_ptr(arg);
21360         return nativeResponseValue;
21361 }
21362         // struct LDKCommitmentSigned CommitmentSigned_clone(const struct LDKCommitmentSigned *NONNULL_PTR orig);
21363 /* @internal */
21364 export function CommitmentSigned_clone(orig: number): number {
21365         if(!isWasmInitialized) {
21366                 throw new Error("initializeWasm() must be awaited first!");
21367         }
21368         const nativeResponseValue = wasm.TS_CommitmentSigned_clone(orig);
21369         return nativeResponseValue;
21370 }
21371         // void RevokeAndACK_free(struct LDKRevokeAndACK this_obj);
21372 /* @internal */
21373 export function RevokeAndACK_free(this_obj: number): void {
21374         if(!isWasmInitialized) {
21375                 throw new Error("initializeWasm() must be awaited first!");
21376         }
21377         const nativeResponseValue = wasm.TS_RevokeAndACK_free(this_obj);
21378         // debug statements here
21379 }
21380         // const uint8_t (*RevokeAndACK_get_channel_id(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
21381 /* @internal */
21382 export function RevokeAndACK_get_channel_id(this_ptr: number): number {
21383         if(!isWasmInitialized) {
21384                 throw new Error("initializeWasm() must be awaited first!");
21385         }
21386         const nativeResponseValue = wasm.TS_RevokeAndACK_get_channel_id(this_ptr);
21387         return nativeResponseValue;
21388 }
21389         // void RevokeAndACK_set_channel_id(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21390 /* @internal */
21391 export function RevokeAndACK_set_channel_id(this_ptr: number, val: number): void {
21392         if(!isWasmInitialized) {
21393                 throw new Error("initializeWasm() must be awaited first!");
21394         }
21395         const nativeResponseValue = wasm.TS_RevokeAndACK_set_channel_id(this_ptr, val);
21396         // debug statements here
21397 }
21398         // const uint8_t (*RevokeAndACK_get_per_commitment_secret(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
21399 /* @internal */
21400 export function RevokeAndACK_get_per_commitment_secret(this_ptr: number): number {
21401         if(!isWasmInitialized) {
21402                 throw new Error("initializeWasm() must be awaited first!");
21403         }
21404         const nativeResponseValue = wasm.TS_RevokeAndACK_get_per_commitment_secret(this_ptr);
21405         return nativeResponseValue;
21406 }
21407         // void RevokeAndACK_set_per_commitment_secret(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21408 /* @internal */
21409 export function RevokeAndACK_set_per_commitment_secret(this_ptr: number, val: number): void {
21410         if(!isWasmInitialized) {
21411                 throw new Error("initializeWasm() must be awaited first!");
21412         }
21413         const nativeResponseValue = wasm.TS_RevokeAndACK_set_per_commitment_secret(this_ptr, val);
21414         // debug statements here
21415 }
21416         // struct LDKPublicKey RevokeAndACK_get_next_per_commitment_point(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr);
21417 /* @internal */
21418 export function RevokeAndACK_get_next_per_commitment_point(this_ptr: number): number {
21419         if(!isWasmInitialized) {
21420                 throw new Error("initializeWasm() must be awaited first!");
21421         }
21422         const nativeResponseValue = wasm.TS_RevokeAndACK_get_next_per_commitment_point(this_ptr);
21423         return nativeResponseValue;
21424 }
21425         // void RevokeAndACK_set_next_per_commitment_point(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21426 /* @internal */
21427 export function RevokeAndACK_set_next_per_commitment_point(this_ptr: number, val: number): void {
21428         if(!isWasmInitialized) {
21429                 throw new Error("initializeWasm() must be awaited first!");
21430         }
21431         const nativeResponseValue = wasm.TS_RevokeAndACK_set_next_per_commitment_point(this_ptr, val);
21432         // debug statements here
21433 }
21434         // 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);
21435 /* @internal */
21436 export function RevokeAndACK_new(channel_id_arg: number, per_commitment_secret_arg: number, next_per_commitment_point_arg: number): number {
21437         if(!isWasmInitialized) {
21438                 throw new Error("initializeWasm() must be awaited first!");
21439         }
21440         const nativeResponseValue = wasm.TS_RevokeAndACK_new(channel_id_arg, per_commitment_secret_arg, next_per_commitment_point_arg);
21441         return nativeResponseValue;
21442 }
21443         // uintptr_t RevokeAndACK_clone_ptr(LDKRevokeAndACK *NONNULL_PTR arg);
21444 /* @internal */
21445 export function RevokeAndACK_clone_ptr(arg: number): number {
21446         if(!isWasmInitialized) {
21447                 throw new Error("initializeWasm() must be awaited first!");
21448         }
21449         const nativeResponseValue = wasm.TS_RevokeAndACK_clone_ptr(arg);
21450         return nativeResponseValue;
21451 }
21452         // struct LDKRevokeAndACK RevokeAndACK_clone(const struct LDKRevokeAndACK *NONNULL_PTR orig);
21453 /* @internal */
21454 export function RevokeAndACK_clone(orig: number): number {
21455         if(!isWasmInitialized) {
21456                 throw new Error("initializeWasm() must be awaited first!");
21457         }
21458         const nativeResponseValue = wasm.TS_RevokeAndACK_clone(orig);
21459         return nativeResponseValue;
21460 }
21461         // void UpdateFee_free(struct LDKUpdateFee this_obj);
21462 /* @internal */
21463 export function UpdateFee_free(this_obj: number): void {
21464         if(!isWasmInitialized) {
21465                 throw new Error("initializeWasm() must be awaited first!");
21466         }
21467         const nativeResponseValue = wasm.TS_UpdateFee_free(this_obj);
21468         // debug statements here
21469 }
21470         // const uint8_t (*UpdateFee_get_channel_id(const struct LDKUpdateFee *NONNULL_PTR this_ptr))[32];
21471 /* @internal */
21472 export function UpdateFee_get_channel_id(this_ptr: number): number {
21473         if(!isWasmInitialized) {
21474                 throw new Error("initializeWasm() must be awaited first!");
21475         }
21476         const nativeResponseValue = wasm.TS_UpdateFee_get_channel_id(this_ptr);
21477         return nativeResponseValue;
21478 }
21479         // void UpdateFee_set_channel_id(struct LDKUpdateFee *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21480 /* @internal */
21481 export function UpdateFee_set_channel_id(this_ptr: number, val: number): void {
21482         if(!isWasmInitialized) {
21483                 throw new Error("initializeWasm() must be awaited first!");
21484         }
21485         const nativeResponseValue = wasm.TS_UpdateFee_set_channel_id(this_ptr, val);
21486         // debug statements here
21487 }
21488         // uint32_t UpdateFee_get_feerate_per_kw(const struct LDKUpdateFee *NONNULL_PTR this_ptr);
21489 /* @internal */
21490 export function UpdateFee_get_feerate_per_kw(this_ptr: number): number {
21491         if(!isWasmInitialized) {
21492                 throw new Error("initializeWasm() must be awaited first!");
21493         }
21494         const nativeResponseValue = wasm.TS_UpdateFee_get_feerate_per_kw(this_ptr);
21495         return nativeResponseValue;
21496 }
21497         // void UpdateFee_set_feerate_per_kw(struct LDKUpdateFee *NONNULL_PTR this_ptr, uint32_t val);
21498 /* @internal */
21499 export function UpdateFee_set_feerate_per_kw(this_ptr: number, val: number): void {
21500         if(!isWasmInitialized) {
21501                 throw new Error("initializeWasm() must be awaited first!");
21502         }
21503         const nativeResponseValue = wasm.TS_UpdateFee_set_feerate_per_kw(this_ptr, val);
21504         // debug statements here
21505 }
21506         // MUST_USE_RES struct LDKUpdateFee UpdateFee_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t feerate_per_kw_arg);
21507 /* @internal */
21508 export function UpdateFee_new(channel_id_arg: number, feerate_per_kw_arg: number): number {
21509         if(!isWasmInitialized) {
21510                 throw new Error("initializeWasm() must be awaited first!");
21511         }
21512         const nativeResponseValue = wasm.TS_UpdateFee_new(channel_id_arg, feerate_per_kw_arg);
21513         return nativeResponseValue;
21514 }
21515         // uintptr_t UpdateFee_clone_ptr(LDKUpdateFee *NONNULL_PTR arg);
21516 /* @internal */
21517 export function UpdateFee_clone_ptr(arg: number): number {
21518         if(!isWasmInitialized) {
21519                 throw new Error("initializeWasm() must be awaited first!");
21520         }
21521         const nativeResponseValue = wasm.TS_UpdateFee_clone_ptr(arg);
21522         return nativeResponseValue;
21523 }
21524         // struct LDKUpdateFee UpdateFee_clone(const struct LDKUpdateFee *NONNULL_PTR orig);
21525 /* @internal */
21526 export function UpdateFee_clone(orig: number): number {
21527         if(!isWasmInitialized) {
21528                 throw new Error("initializeWasm() must be awaited first!");
21529         }
21530         const nativeResponseValue = wasm.TS_UpdateFee_clone(orig);
21531         return nativeResponseValue;
21532 }
21533         // void DataLossProtect_free(struct LDKDataLossProtect this_obj);
21534 /* @internal */
21535 export function DataLossProtect_free(this_obj: number): void {
21536         if(!isWasmInitialized) {
21537                 throw new Error("initializeWasm() must be awaited first!");
21538         }
21539         const nativeResponseValue = wasm.TS_DataLossProtect_free(this_obj);
21540         // debug statements here
21541 }
21542         // const uint8_t (*DataLossProtect_get_your_last_per_commitment_secret(const struct LDKDataLossProtect *NONNULL_PTR this_ptr))[32];
21543 /* @internal */
21544 export function DataLossProtect_get_your_last_per_commitment_secret(this_ptr: number): number {
21545         if(!isWasmInitialized) {
21546                 throw new Error("initializeWasm() must be awaited first!");
21547         }
21548         const nativeResponseValue = wasm.TS_DataLossProtect_get_your_last_per_commitment_secret(this_ptr);
21549         return nativeResponseValue;
21550 }
21551         // void DataLossProtect_set_your_last_per_commitment_secret(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21552 /* @internal */
21553 export function DataLossProtect_set_your_last_per_commitment_secret(this_ptr: number, val: number): void {
21554         if(!isWasmInitialized) {
21555                 throw new Error("initializeWasm() must be awaited first!");
21556         }
21557         const nativeResponseValue = wasm.TS_DataLossProtect_set_your_last_per_commitment_secret(this_ptr, val);
21558         // debug statements here
21559 }
21560         // struct LDKPublicKey DataLossProtect_get_my_current_per_commitment_point(const struct LDKDataLossProtect *NONNULL_PTR this_ptr);
21561 /* @internal */
21562 export function DataLossProtect_get_my_current_per_commitment_point(this_ptr: number): number {
21563         if(!isWasmInitialized) {
21564                 throw new Error("initializeWasm() must be awaited first!");
21565         }
21566         const nativeResponseValue = wasm.TS_DataLossProtect_get_my_current_per_commitment_point(this_ptr);
21567         return nativeResponseValue;
21568 }
21569         // void DataLossProtect_set_my_current_per_commitment_point(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21570 /* @internal */
21571 export function DataLossProtect_set_my_current_per_commitment_point(this_ptr: number, val: number): void {
21572         if(!isWasmInitialized) {
21573                 throw new Error("initializeWasm() must be awaited first!");
21574         }
21575         const nativeResponseValue = wasm.TS_DataLossProtect_set_my_current_per_commitment_point(this_ptr, val);
21576         // debug statements here
21577 }
21578         // MUST_USE_RES struct LDKDataLossProtect DataLossProtect_new(struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg);
21579 /* @internal */
21580 export function DataLossProtect_new(your_last_per_commitment_secret_arg: number, my_current_per_commitment_point_arg: number): number {
21581         if(!isWasmInitialized) {
21582                 throw new Error("initializeWasm() must be awaited first!");
21583         }
21584         const nativeResponseValue = wasm.TS_DataLossProtect_new(your_last_per_commitment_secret_arg, my_current_per_commitment_point_arg);
21585         return nativeResponseValue;
21586 }
21587         // uintptr_t DataLossProtect_clone_ptr(LDKDataLossProtect *NONNULL_PTR arg);
21588 /* @internal */
21589 export function DataLossProtect_clone_ptr(arg: number): number {
21590         if(!isWasmInitialized) {
21591                 throw new Error("initializeWasm() must be awaited first!");
21592         }
21593         const nativeResponseValue = wasm.TS_DataLossProtect_clone_ptr(arg);
21594         return nativeResponseValue;
21595 }
21596         // struct LDKDataLossProtect DataLossProtect_clone(const struct LDKDataLossProtect *NONNULL_PTR orig);
21597 /* @internal */
21598 export function DataLossProtect_clone(orig: number): number {
21599         if(!isWasmInitialized) {
21600                 throw new Error("initializeWasm() must be awaited first!");
21601         }
21602         const nativeResponseValue = wasm.TS_DataLossProtect_clone(orig);
21603         return nativeResponseValue;
21604 }
21605         // void ChannelReestablish_free(struct LDKChannelReestablish this_obj);
21606 /* @internal */
21607 export function ChannelReestablish_free(this_obj: number): void {
21608         if(!isWasmInitialized) {
21609                 throw new Error("initializeWasm() must be awaited first!");
21610         }
21611         const nativeResponseValue = wasm.TS_ChannelReestablish_free(this_obj);
21612         // debug statements here
21613 }
21614         // const uint8_t (*ChannelReestablish_get_channel_id(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32];
21615 /* @internal */
21616 export function ChannelReestablish_get_channel_id(this_ptr: number): number {
21617         if(!isWasmInitialized) {
21618                 throw new Error("initializeWasm() must be awaited first!");
21619         }
21620         const nativeResponseValue = wasm.TS_ChannelReestablish_get_channel_id(this_ptr);
21621         return nativeResponseValue;
21622 }
21623         // void ChannelReestablish_set_channel_id(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21624 /* @internal */
21625 export function ChannelReestablish_set_channel_id(this_ptr: number, val: number): void {
21626         if(!isWasmInitialized) {
21627                 throw new Error("initializeWasm() must be awaited first!");
21628         }
21629         const nativeResponseValue = wasm.TS_ChannelReestablish_set_channel_id(this_ptr, val);
21630         // debug statements here
21631 }
21632         // uint64_t ChannelReestablish_get_next_local_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
21633 /* @internal */
21634 export function ChannelReestablish_get_next_local_commitment_number(this_ptr: number): bigint {
21635         if(!isWasmInitialized) {
21636                 throw new Error("initializeWasm() must be awaited first!");
21637         }
21638         const nativeResponseValue = wasm.TS_ChannelReestablish_get_next_local_commitment_number(this_ptr);
21639         return nativeResponseValue;
21640 }
21641         // void ChannelReestablish_set_next_local_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
21642 /* @internal */
21643 export function ChannelReestablish_set_next_local_commitment_number(this_ptr: number, val: bigint): void {
21644         if(!isWasmInitialized) {
21645                 throw new Error("initializeWasm() must be awaited first!");
21646         }
21647         const nativeResponseValue = wasm.TS_ChannelReestablish_set_next_local_commitment_number(this_ptr, val);
21648         // debug statements here
21649 }
21650         // uint64_t ChannelReestablish_get_next_remote_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
21651 /* @internal */
21652 export function ChannelReestablish_get_next_remote_commitment_number(this_ptr: number): bigint {
21653         if(!isWasmInitialized) {
21654                 throw new Error("initializeWasm() must be awaited first!");
21655         }
21656         const nativeResponseValue = wasm.TS_ChannelReestablish_get_next_remote_commitment_number(this_ptr);
21657         return nativeResponseValue;
21658 }
21659         // void ChannelReestablish_set_next_remote_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
21660 /* @internal */
21661 export function ChannelReestablish_set_next_remote_commitment_number(this_ptr: number, val: bigint): void {
21662         if(!isWasmInitialized) {
21663                 throw new Error("initializeWasm() must be awaited first!");
21664         }
21665         const nativeResponseValue = wasm.TS_ChannelReestablish_set_next_remote_commitment_number(this_ptr, val);
21666         // debug statements here
21667 }
21668         // uintptr_t ChannelReestablish_clone_ptr(LDKChannelReestablish *NONNULL_PTR arg);
21669 /* @internal */
21670 export function ChannelReestablish_clone_ptr(arg: number): number {
21671         if(!isWasmInitialized) {
21672                 throw new Error("initializeWasm() must be awaited first!");
21673         }
21674         const nativeResponseValue = wasm.TS_ChannelReestablish_clone_ptr(arg);
21675         return nativeResponseValue;
21676 }
21677         // struct LDKChannelReestablish ChannelReestablish_clone(const struct LDKChannelReestablish *NONNULL_PTR orig);
21678 /* @internal */
21679 export function ChannelReestablish_clone(orig: number): number {
21680         if(!isWasmInitialized) {
21681                 throw new Error("initializeWasm() must be awaited first!");
21682         }
21683         const nativeResponseValue = wasm.TS_ChannelReestablish_clone(orig);
21684         return nativeResponseValue;
21685 }
21686         // void AnnouncementSignatures_free(struct LDKAnnouncementSignatures this_obj);
21687 /* @internal */
21688 export function AnnouncementSignatures_free(this_obj: number): void {
21689         if(!isWasmInitialized) {
21690                 throw new Error("initializeWasm() must be awaited first!");
21691         }
21692         const nativeResponseValue = wasm.TS_AnnouncementSignatures_free(this_obj);
21693         // debug statements here
21694 }
21695         // const uint8_t (*AnnouncementSignatures_get_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr))[32];
21696 /* @internal */
21697 export function AnnouncementSignatures_get_channel_id(this_ptr: number): number {
21698         if(!isWasmInitialized) {
21699                 throw new Error("initializeWasm() must be awaited first!");
21700         }
21701         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_channel_id(this_ptr);
21702         return nativeResponseValue;
21703 }
21704         // void AnnouncementSignatures_set_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21705 /* @internal */
21706 export function AnnouncementSignatures_set_channel_id(this_ptr: number, val: number): void {
21707         if(!isWasmInitialized) {
21708                 throw new Error("initializeWasm() must be awaited first!");
21709         }
21710         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_channel_id(this_ptr, val);
21711         // debug statements here
21712 }
21713         // uint64_t AnnouncementSignatures_get_short_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
21714 /* @internal */
21715 export function AnnouncementSignatures_get_short_channel_id(this_ptr: number): bigint {
21716         if(!isWasmInitialized) {
21717                 throw new Error("initializeWasm() must be awaited first!");
21718         }
21719         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_short_channel_id(this_ptr);
21720         return nativeResponseValue;
21721 }
21722         // void AnnouncementSignatures_set_short_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, uint64_t val);
21723 /* @internal */
21724 export function AnnouncementSignatures_set_short_channel_id(this_ptr: number, val: bigint): void {
21725         if(!isWasmInitialized) {
21726                 throw new Error("initializeWasm() must be awaited first!");
21727         }
21728         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_short_channel_id(this_ptr, val);
21729         // debug statements here
21730 }
21731         // struct LDKSignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
21732 /* @internal */
21733 export function AnnouncementSignatures_get_node_signature(this_ptr: number): number {
21734         if(!isWasmInitialized) {
21735                 throw new Error("initializeWasm() must be awaited first!");
21736         }
21737         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_node_signature(this_ptr);
21738         return nativeResponseValue;
21739 }
21740         // void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
21741 /* @internal */
21742 export function AnnouncementSignatures_set_node_signature(this_ptr: number, val: number): void {
21743         if(!isWasmInitialized) {
21744                 throw new Error("initializeWasm() must be awaited first!");
21745         }
21746         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_node_signature(this_ptr, val);
21747         // debug statements here
21748 }
21749         // struct LDKSignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
21750 /* @internal */
21751 export function AnnouncementSignatures_get_bitcoin_signature(this_ptr: number): number {
21752         if(!isWasmInitialized) {
21753                 throw new Error("initializeWasm() must be awaited first!");
21754         }
21755         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_bitcoin_signature(this_ptr);
21756         return nativeResponseValue;
21757 }
21758         // void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
21759 /* @internal */
21760 export function AnnouncementSignatures_set_bitcoin_signature(this_ptr: number, val: number): void {
21761         if(!isWasmInitialized) {
21762                 throw new Error("initializeWasm() must be awaited first!");
21763         }
21764         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_bitcoin_signature(this_ptr, val);
21765         // debug statements here
21766 }
21767         // 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);
21768 /* @internal */
21769 export function AnnouncementSignatures_new(channel_id_arg: number, short_channel_id_arg: bigint, node_signature_arg: number, bitcoin_signature_arg: number): number {
21770         if(!isWasmInitialized) {
21771                 throw new Error("initializeWasm() must be awaited first!");
21772         }
21773         const nativeResponseValue = wasm.TS_AnnouncementSignatures_new(channel_id_arg, short_channel_id_arg, node_signature_arg, bitcoin_signature_arg);
21774         return nativeResponseValue;
21775 }
21776         // uintptr_t AnnouncementSignatures_clone_ptr(LDKAnnouncementSignatures *NONNULL_PTR arg);
21777 /* @internal */
21778 export function AnnouncementSignatures_clone_ptr(arg: number): number {
21779         if(!isWasmInitialized) {
21780                 throw new Error("initializeWasm() must be awaited first!");
21781         }
21782         const nativeResponseValue = wasm.TS_AnnouncementSignatures_clone_ptr(arg);
21783         return nativeResponseValue;
21784 }
21785         // struct LDKAnnouncementSignatures AnnouncementSignatures_clone(const struct LDKAnnouncementSignatures *NONNULL_PTR orig);
21786 /* @internal */
21787 export function AnnouncementSignatures_clone(orig: number): number {
21788         if(!isWasmInitialized) {
21789                 throw new Error("initializeWasm() must be awaited first!");
21790         }
21791         const nativeResponseValue = wasm.TS_AnnouncementSignatures_clone(orig);
21792         return nativeResponseValue;
21793 }
21794         // void NetAddress_free(struct LDKNetAddress this_ptr);
21795 /* @internal */
21796 export function NetAddress_free(this_ptr: number): void {
21797         if(!isWasmInitialized) {
21798                 throw new Error("initializeWasm() must be awaited first!");
21799         }
21800         const nativeResponseValue = wasm.TS_NetAddress_free(this_ptr);
21801         // debug statements here
21802 }
21803         // uintptr_t NetAddress_clone_ptr(LDKNetAddress *NONNULL_PTR arg);
21804 /* @internal */
21805 export function NetAddress_clone_ptr(arg: number): number {
21806         if(!isWasmInitialized) {
21807                 throw new Error("initializeWasm() must be awaited first!");
21808         }
21809         const nativeResponseValue = wasm.TS_NetAddress_clone_ptr(arg);
21810         return nativeResponseValue;
21811 }
21812         // struct LDKNetAddress NetAddress_clone(const struct LDKNetAddress *NONNULL_PTR orig);
21813 /* @internal */
21814 export function NetAddress_clone(orig: number): number {
21815         if(!isWasmInitialized) {
21816                 throw new Error("initializeWasm() must be awaited first!");
21817         }
21818         const nativeResponseValue = wasm.TS_NetAddress_clone(orig);
21819         return nativeResponseValue;
21820 }
21821         // struct LDKNetAddress NetAddress_ipv4(struct LDKFourBytes addr, uint16_t port);
21822 /* @internal */
21823 export function NetAddress_ipv4(addr: number, port: number): number {
21824         if(!isWasmInitialized) {
21825                 throw new Error("initializeWasm() must be awaited first!");
21826         }
21827         const nativeResponseValue = wasm.TS_NetAddress_ipv4(addr, port);
21828         return nativeResponseValue;
21829 }
21830         // struct LDKNetAddress NetAddress_ipv6(struct LDKSixteenBytes addr, uint16_t port);
21831 /* @internal */
21832 export function NetAddress_ipv6(addr: number, port: number): number {
21833         if(!isWasmInitialized) {
21834                 throw new Error("initializeWasm() must be awaited first!");
21835         }
21836         const nativeResponseValue = wasm.TS_NetAddress_ipv6(addr, port);
21837         return nativeResponseValue;
21838 }
21839         // struct LDKNetAddress NetAddress_onion_v2(struct LDKTwelveBytes a);
21840 /* @internal */
21841 export function NetAddress_onion_v2(a: number): number {
21842         if(!isWasmInitialized) {
21843                 throw new Error("initializeWasm() must be awaited first!");
21844         }
21845         const nativeResponseValue = wasm.TS_NetAddress_onion_v2(a);
21846         return nativeResponseValue;
21847 }
21848         // struct LDKNetAddress NetAddress_onion_v3(struct LDKThirtyTwoBytes ed25519_pubkey, uint16_t checksum, uint8_t version, uint16_t port);
21849 /* @internal */
21850 export function NetAddress_onion_v3(ed25519_pubkey: number, checksum: number, version: number, port: number): number {
21851         if(!isWasmInitialized) {
21852                 throw new Error("initializeWasm() must be awaited first!");
21853         }
21854         const nativeResponseValue = wasm.TS_NetAddress_onion_v3(ed25519_pubkey, checksum, version, port);
21855         return nativeResponseValue;
21856 }
21857         // struct LDKCVec_u8Z NetAddress_write(const struct LDKNetAddress *NONNULL_PTR obj);
21858 /* @internal */
21859 export function NetAddress_write(obj: number): number {
21860         if(!isWasmInitialized) {
21861                 throw new Error("initializeWasm() must be awaited first!");
21862         }
21863         const nativeResponseValue = wasm.TS_NetAddress_write(obj);
21864         return nativeResponseValue;
21865 }
21866         // struct LDKCResult_NetAddressDecodeErrorZ NetAddress_read(struct LDKu8slice ser);
21867 /* @internal */
21868 export function NetAddress_read(ser: number): number {
21869         if(!isWasmInitialized) {
21870                 throw new Error("initializeWasm() must be awaited first!");
21871         }
21872         const nativeResponseValue = wasm.TS_NetAddress_read(ser);
21873         return nativeResponseValue;
21874 }
21875         // void UnsignedNodeAnnouncement_free(struct LDKUnsignedNodeAnnouncement this_obj);
21876 /* @internal */
21877 export function UnsignedNodeAnnouncement_free(this_obj: number): void {
21878         if(!isWasmInitialized) {
21879                 throw new Error("initializeWasm() must be awaited first!");
21880         }
21881         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_free(this_obj);
21882         // debug statements here
21883 }
21884         // struct LDKNodeFeatures UnsignedNodeAnnouncement_get_features(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
21885 /* @internal */
21886 export function UnsignedNodeAnnouncement_get_features(this_ptr: number): number {
21887         if(!isWasmInitialized) {
21888                 throw new Error("initializeWasm() must be awaited first!");
21889         }
21890         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_features(this_ptr);
21891         return nativeResponseValue;
21892 }
21893         // void UnsignedNodeAnnouncement_set_features(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
21894 /* @internal */
21895 export function UnsignedNodeAnnouncement_set_features(this_ptr: number, val: number): void {
21896         if(!isWasmInitialized) {
21897                 throw new Error("initializeWasm() must be awaited first!");
21898         }
21899         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_features(this_ptr, val);
21900         // debug statements here
21901 }
21902         // uint32_t UnsignedNodeAnnouncement_get_timestamp(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
21903 /* @internal */
21904 export function UnsignedNodeAnnouncement_get_timestamp(this_ptr: number): number {
21905         if(!isWasmInitialized) {
21906                 throw new Error("initializeWasm() must be awaited first!");
21907         }
21908         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_timestamp(this_ptr);
21909         return nativeResponseValue;
21910 }
21911         // void UnsignedNodeAnnouncement_set_timestamp(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, uint32_t val);
21912 /* @internal */
21913 export function UnsignedNodeAnnouncement_set_timestamp(this_ptr: number, val: number): void {
21914         if(!isWasmInitialized) {
21915                 throw new Error("initializeWasm() must be awaited first!");
21916         }
21917         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_timestamp(this_ptr, val);
21918         // debug statements here
21919 }
21920         // struct LDKPublicKey UnsignedNodeAnnouncement_get_node_id(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
21921 /* @internal */
21922 export function UnsignedNodeAnnouncement_get_node_id(this_ptr: number): number {
21923         if(!isWasmInitialized) {
21924                 throw new Error("initializeWasm() must be awaited first!");
21925         }
21926         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_node_id(this_ptr);
21927         return nativeResponseValue;
21928 }
21929         // void UnsignedNodeAnnouncement_set_node_id(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21930 /* @internal */
21931 export function UnsignedNodeAnnouncement_set_node_id(this_ptr: number, val: number): void {
21932         if(!isWasmInitialized) {
21933                 throw new Error("initializeWasm() must be awaited first!");
21934         }
21935         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_node_id(this_ptr, val);
21936         // debug statements here
21937 }
21938         // const uint8_t (*UnsignedNodeAnnouncement_get_rgb(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[3];
21939 /* @internal */
21940 export function UnsignedNodeAnnouncement_get_rgb(this_ptr: number): number {
21941         if(!isWasmInitialized) {
21942                 throw new Error("initializeWasm() must be awaited first!");
21943         }
21944         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_rgb(this_ptr);
21945         return nativeResponseValue;
21946 }
21947         // void UnsignedNodeAnnouncement_set_rgb(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
21948 /* @internal */
21949 export function UnsignedNodeAnnouncement_set_rgb(this_ptr: number, val: number): void {
21950         if(!isWasmInitialized) {
21951                 throw new Error("initializeWasm() must be awaited first!");
21952         }
21953         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_rgb(this_ptr, val);
21954         // debug statements here
21955 }
21956         // const uint8_t (*UnsignedNodeAnnouncement_get_alias(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[32];
21957 /* @internal */
21958 export function UnsignedNodeAnnouncement_get_alias(this_ptr: number): number {
21959         if(!isWasmInitialized) {
21960                 throw new Error("initializeWasm() must be awaited first!");
21961         }
21962         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_alias(this_ptr);
21963         return nativeResponseValue;
21964 }
21965         // void UnsignedNodeAnnouncement_set_alias(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21966 /* @internal */
21967 export function UnsignedNodeAnnouncement_set_alias(this_ptr: number, val: number): void {
21968         if(!isWasmInitialized) {
21969                 throw new Error("initializeWasm() must be awaited first!");
21970         }
21971         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_alias(this_ptr, val);
21972         // debug statements here
21973 }
21974         // void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
21975 /* @internal */
21976 export function UnsignedNodeAnnouncement_set_addresses(this_ptr: number, val: number): void {
21977         if(!isWasmInitialized) {
21978                 throw new Error("initializeWasm() must be awaited first!");
21979         }
21980         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_addresses(this_ptr, val);
21981         // debug statements here
21982 }
21983         // uintptr_t UnsignedNodeAnnouncement_clone_ptr(LDKUnsignedNodeAnnouncement *NONNULL_PTR arg);
21984 /* @internal */
21985 export function UnsignedNodeAnnouncement_clone_ptr(arg: number): number {
21986         if(!isWasmInitialized) {
21987                 throw new Error("initializeWasm() must be awaited first!");
21988         }
21989         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_clone_ptr(arg);
21990         return nativeResponseValue;
21991 }
21992         // struct LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_clone(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR orig);
21993 /* @internal */
21994 export function UnsignedNodeAnnouncement_clone(orig: number): number {
21995         if(!isWasmInitialized) {
21996                 throw new Error("initializeWasm() must be awaited first!");
21997         }
21998         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_clone(orig);
21999         return nativeResponseValue;
22000 }
22001         // void NodeAnnouncement_free(struct LDKNodeAnnouncement this_obj);
22002 /* @internal */
22003 export function NodeAnnouncement_free(this_obj: number): void {
22004         if(!isWasmInitialized) {
22005                 throw new Error("initializeWasm() must be awaited first!");
22006         }
22007         const nativeResponseValue = wasm.TS_NodeAnnouncement_free(this_obj);
22008         // debug statements here
22009 }
22010         // struct LDKSignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
22011 /* @internal */
22012 export function NodeAnnouncement_get_signature(this_ptr: number): number {
22013         if(!isWasmInitialized) {
22014                 throw new Error("initializeWasm() must be awaited first!");
22015         }
22016         const nativeResponseValue = wasm.TS_NodeAnnouncement_get_signature(this_ptr);
22017         return nativeResponseValue;
22018 }
22019         // void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
22020 /* @internal */
22021 export function NodeAnnouncement_set_signature(this_ptr: number, val: number): void {
22022         if(!isWasmInitialized) {
22023                 throw new Error("initializeWasm() must be awaited first!");
22024         }
22025         const nativeResponseValue = wasm.TS_NodeAnnouncement_set_signature(this_ptr, val);
22026         // debug statements here
22027 }
22028         // struct LDKUnsignedNodeAnnouncement NodeAnnouncement_get_contents(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
22029 /* @internal */
22030 export function NodeAnnouncement_get_contents(this_ptr: number): number {
22031         if(!isWasmInitialized) {
22032                 throw new Error("initializeWasm() must be awaited first!");
22033         }
22034         const nativeResponseValue = wasm.TS_NodeAnnouncement_get_contents(this_ptr);
22035         return nativeResponseValue;
22036 }
22037         // void NodeAnnouncement_set_contents(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedNodeAnnouncement val);
22038 /* @internal */
22039 export function NodeAnnouncement_set_contents(this_ptr: number, val: number): void {
22040         if(!isWasmInitialized) {
22041                 throw new Error("initializeWasm() must be awaited first!");
22042         }
22043         const nativeResponseValue = wasm.TS_NodeAnnouncement_set_contents(this_ptr, val);
22044         // debug statements here
22045 }
22046         // MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKSignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg);
22047 /* @internal */
22048 export function NodeAnnouncement_new(signature_arg: number, contents_arg: number): number {
22049         if(!isWasmInitialized) {
22050                 throw new Error("initializeWasm() must be awaited first!");
22051         }
22052         const nativeResponseValue = wasm.TS_NodeAnnouncement_new(signature_arg, contents_arg);
22053         return nativeResponseValue;
22054 }
22055         // uintptr_t NodeAnnouncement_clone_ptr(LDKNodeAnnouncement *NONNULL_PTR arg);
22056 /* @internal */
22057 export function NodeAnnouncement_clone_ptr(arg: number): number {
22058         if(!isWasmInitialized) {
22059                 throw new Error("initializeWasm() must be awaited first!");
22060         }
22061         const nativeResponseValue = wasm.TS_NodeAnnouncement_clone_ptr(arg);
22062         return nativeResponseValue;
22063 }
22064         // struct LDKNodeAnnouncement NodeAnnouncement_clone(const struct LDKNodeAnnouncement *NONNULL_PTR orig);
22065 /* @internal */
22066 export function NodeAnnouncement_clone(orig: number): number {
22067         if(!isWasmInitialized) {
22068                 throw new Error("initializeWasm() must be awaited first!");
22069         }
22070         const nativeResponseValue = wasm.TS_NodeAnnouncement_clone(orig);
22071         return nativeResponseValue;
22072 }
22073         // void UnsignedChannelAnnouncement_free(struct LDKUnsignedChannelAnnouncement this_obj);
22074 /* @internal */
22075 export function UnsignedChannelAnnouncement_free(this_obj: number): void {
22076         if(!isWasmInitialized) {
22077                 throw new Error("initializeWasm() must be awaited first!");
22078         }
22079         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_free(this_obj);
22080         // debug statements here
22081 }
22082         // struct LDKChannelFeatures UnsignedChannelAnnouncement_get_features(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
22083 /* @internal */
22084 export function UnsignedChannelAnnouncement_get_features(this_ptr: number): number {
22085         if(!isWasmInitialized) {
22086                 throw new Error("initializeWasm() must be awaited first!");
22087         }
22088         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_features(this_ptr);
22089         return nativeResponseValue;
22090 }
22091         // void UnsignedChannelAnnouncement_set_features(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
22092 /* @internal */
22093 export function UnsignedChannelAnnouncement_set_features(this_ptr: number, val: number): void {
22094         if(!isWasmInitialized) {
22095                 throw new Error("initializeWasm() must be awaited first!");
22096         }
22097         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_features(this_ptr, val);
22098         // debug statements here
22099 }
22100         // const uint8_t (*UnsignedChannelAnnouncement_get_chain_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr))[32];
22101 /* @internal */
22102 export function UnsignedChannelAnnouncement_get_chain_hash(this_ptr: number): number {
22103         if(!isWasmInitialized) {
22104                 throw new Error("initializeWasm() must be awaited first!");
22105         }
22106         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_chain_hash(this_ptr);
22107         return nativeResponseValue;
22108 }
22109         // void UnsignedChannelAnnouncement_set_chain_hash(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22110 /* @internal */
22111 export function UnsignedChannelAnnouncement_set_chain_hash(this_ptr: number, val: number): void {
22112         if(!isWasmInitialized) {
22113                 throw new Error("initializeWasm() must be awaited first!");
22114         }
22115         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_chain_hash(this_ptr, val);
22116         // debug statements here
22117 }
22118         // uint64_t UnsignedChannelAnnouncement_get_short_channel_id(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
22119 /* @internal */
22120 export function UnsignedChannelAnnouncement_get_short_channel_id(this_ptr: number): bigint {
22121         if(!isWasmInitialized) {
22122                 throw new Error("initializeWasm() must be awaited first!");
22123         }
22124         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_short_channel_id(this_ptr);
22125         return nativeResponseValue;
22126 }
22127         // void UnsignedChannelAnnouncement_set_short_channel_id(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, uint64_t val);
22128 /* @internal */
22129 export function UnsignedChannelAnnouncement_set_short_channel_id(this_ptr: number, val: bigint): void {
22130         if(!isWasmInitialized) {
22131                 throw new Error("initializeWasm() must be awaited first!");
22132         }
22133         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_short_channel_id(this_ptr, val);
22134         // debug statements here
22135 }
22136         // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
22137 /* @internal */
22138 export function UnsignedChannelAnnouncement_get_node_id_1(this_ptr: number): number {
22139         if(!isWasmInitialized) {
22140                 throw new Error("initializeWasm() must be awaited first!");
22141         }
22142         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_node_id_1(this_ptr);
22143         return nativeResponseValue;
22144 }
22145         // void UnsignedChannelAnnouncement_set_node_id_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22146 /* @internal */
22147 export function UnsignedChannelAnnouncement_set_node_id_1(this_ptr: number, val: number): void {
22148         if(!isWasmInitialized) {
22149                 throw new Error("initializeWasm() must be awaited first!");
22150         }
22151         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_node_id_1(this_ptr, val);
22152         // debug statements here
22153 }
22154         // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
22155 /* @internal */
22156 export function UnsignedChannelAnnouncement_get_node_id_2(this_ptr: number): number {
22157         if(!isWasmInitialized) {
22158                 throw new Error("initializeWasm() must be awaited first!");
22159         }
22160         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_node_id_2(this_ptr);
22161         return nativeResponseValue;
22162 }
22163         // void UnsignedChannelAnnouncement_set_node_id_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22164 /* @internal */
22165 export function UnsignedChannelAnnouncement_set_node_id_2(this_ptr: number, val: number): void {
22166         if(!isWasmInitialized) {
22167                 throw new Error("initializeWasm() must be awaited first!");
22168         }
22169         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_node_id_2(this_ptr, val);
22170         // debug statements here
22171 }
22172         // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
22173 /* @internal */
22174 export function UnsignedChannelAnnouncement_get_bitcoin_key_1(this_ptr: number): number {
22175         if(!isWasmInitialized) {
22176                 throw new Error("initializeWasm() must be awaited first!");
22177         }
22178         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_bitcoin_key_1(this_ptr);
22179         return nativeResponseValue;
22180 }
22181         // void UnsignedChannelAnnouncement_set_bitcoin_key_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22182 /* @internal */
22183 export function UnsignedChannelAnnouncement_set_bitcoin_key_1(this_ptr: number, val: number): void {
22184         if(!isWasmInitialized) {
22185                 throw new Error("initializeWasm() must be awaited first!");
22186         }
22187         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_bitcoin_key_1(this_ptr, val);
22188         // debug statements here
22189 }
22190         // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
22191 /* @internal */
22192 export function UnsignedChannelAnnouncement_get_bitcoin_key_2(this_ptr: number): number {
22193         if(!isWasmInitialized) {
22194                 throw new Error("initializeWasm() must be awaited first!");
22195         }
22196         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_bitcoin_key_2(this_ptr);
22197         return nativeResponseValue;
22198 }
22199         // void UnsignedChannelAnnouncement_set_bitcoin_key_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22200 /* @internal */
22201 export function UnsignedChannelAnnouncement_set_bitcoin_key_2(this_ptr: number, val: number): void {
22202         if(!isWasmInitialized) {
22203                 throw new Error("initializeWasm() must be awaited first!");
22204         }
22205         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_bitcoin_key_2(this_ptr, val);
22206         // debug statements here
22207 }
22208         // uintptr_t UnsignedChannelAnnouncement_clone_ptr(LDKUnsignedChannelAnnouncement *NONNULL_PTR arg);
22209 /* @internal */
22210 export function UnsignedChannelAnnouncement_clone_ptr(arg: number): number {
22211         if(!isWasmInitialized) {
22212                 throw new Error("initializeWasm() must be awaited first!");
22213         }
22214         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_clone_ptr(arg);
22215         return nativeResponseValue;
22216 }
22217         // struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_clone(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR orig);
22218 /* @internal */
22219 export function UnsignedChannelAnnouncement_clone(orig: number): number {
22220         if(!isWasmInitialized) {
22221                 throw new Error("initializeWasm() must be awaited first!");
22222         }
22223         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_clone(orig);
22224         return nativeResponseValue;
22225 }
22226         // void ChannelAnnouncement_free(struct LDKChannelAnnouncement this_obj);
22227 /* @internal */
22228 export function ChannelAnnouncement_free(this_obj: number): void {
22229         if(!isWasmInitialized) {
22230                 throw new Error("initializeWasm() must be awaited first!");
22231         }
22232         const nativeResponseValue = wasm.TS_ChannelAnnouncement_free(this_obj);
22233         // debug statements here
22234 }
22235         // struct LDKSignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
22236 /* @internal */
22237 export function ChannelAnnouncement_get_node_signature_1(this_ptr: number): number {
22238         if(!isWasmInitialized) {
22239                 throw new Error("initializeWasm() must be awaited first!");
22240         }
22241         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_node_signature_1(this_ptr);
22242         return nativeResponseValue;
22243 }
22244         // void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
22245 /* @internal */
22246 export function ChannelAnnouncement_set_node_signature_1(this_ptr: number, val: number): void {
22247         if(!isWasmInitialized) {
22248                 throw new Error("initializeWasm() must be awaited first!");
22249         }
22250         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_node_signature_1(this_ptr, val);
22251         // debug statements here
22252 }
22253         // struct LDKSignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
22254 /* @internal */
22255 export function ChannelAnnouncement_get_node_signature_2(this_ptr: number): number {
22256         if(!isWasmInitialized) {
22257                 throw new Error("initializeWasm() must be awaited first!");
22258         }
22259         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_node_signature_2(this_ptr);
22260         return nativeResponseValue;
22261 }
22262         // void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
22263 /* @internal */
22264 export function ChannelAnnouncement_set_node_signature_2(this_ptr: number, val: number): void {
22265         if(!isWasmInitialized) {
22266                 throw new Error("initializeWasm() must be awaited first!");
22267         }
22268         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_node_signature_2(this_ptr, val);
22269         // debug statements here
22270 }
22271         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
22272 /* @internal */
22273 export function ChannelAnnouncement_get_bitcoin_signature_1(this_ptr: number): number {
22274         if(!isWasmInitialized) {
22275                 throw new Error("initializeWasm() must be awaited first!");
22276         }
22277         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_bitcoin_signature_1(this_ptr);
22278         return nativeResponseValue;
22279 }
22280         // void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
22281 /* @internal */
22282 export function ChannelAnnouncement_set_bitcoin_signature_1(this_ptr: number, val: number): void {
22283         if(!isWasmInitialized) {
22284                 throw new Error("initializeWasm() must be awaited first!");
22285         }
22286         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_bitcoin_signature_1(this_ptr, val);
22287         // debug statements here
22288 }
22289         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
22290 /* @internal */
22291 export function ChannelAnnouncement_get_bitcoin_signature_2(this_ptr: number): number {
22292         if(!isWasmInitialized) {
22293                 throw new Error("initializeWasm() must be awaited first!");
22294         }
22295         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_bitcoin_signature_2(this_ptr);
22296         return nativeResponseValue;
22297 }
22298         // void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
22299 /* @internal */
22300 export function ChannelAnnouncement_set_bitcoin_signature_2(this_ptr: number, val: number): void {
22301         if(!isWasmInitialized) {
22302                 throw new Error("initializeWasm() must be awaited first!");
22303         }
22304         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_bitcoin_signature_2(this_ptr, val);
22305         // debug statements here
22306 }
22307         // struct LDKUnsignedChannelAnnouncement ChannelAnnouncement_get_contents(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
22308 /* @internal */
22309 export function ChannelAnnouncement_get_contents(this_ptr: number): number {
22310         if(!isWasmInitialized) {
22311                 throw new Error("initializeWasm() must be awaited first!");
22312         }
22313         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_contents(this_ptr);
22314         return nativeResponseValue;
22315 }
22316         // void ChannelAnnouncement_set_contents(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedChannelAnnouncement val);
22317 /* @internal */
22318 export function ChannelAnnouncement_set_contents(this_ptr: number, val: number): void {
22319         if(!isWasmInitialized) {
22320                 throw new Error("initializeWasm() must be awaited first!");
22321         }
22322         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_contents(this_ptr, val);
22323         // debug statements here
22324 }
22325         // 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);
22326 /* @internal */
22327 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 {
22328         if(!isWasmInitialized) {
22329                 throw new Error("initializeWasm() must be awaited first!");
22330         }
22331         const nativeResponseValue = wasm.TS_ChannelAnnouncement_new(node_signature_1_arg, node_signature_2_arg, bitcoin_signature_1_arg, bitcoin_signature_2_arg, contents_arg);
22332         return nativeResponseValue;
22333 }
22334         // uintptr_t ChannelAnnouncement_clone_ptr(LDKChannelAnnouncement *NONNULL_PTR arg);
22335 /* @internal */
22336 export function ChannelAnnouncement_clone_ptr(arg: number): number {
22337         if(!isWasmInitialized) {
22338                 throw new Error("initializeWasm() must be awaited first!");
22339         }
22340         const nativeResponseValue = wasm.TS_ChannelAnnouncement_clone_ptr(arg);
22341         return nativeResponseValue;
22342 }
22343         // struct LDKChannelAnnouncement ChannelAnnouncement_clone(const struct LDKChannelAnnouncement *NONNULL_PTR orig);
22344 /* @internal */
22345 export function ChannelAnnouncement_clone(orig: number): number {
22346         if(!isWasmInitialized) {
22347                 throw new Error("initializeWasm() must be awaited first!");
22348         }
22349         const nativeResponseValue = wasm.TS_ChannelAnnouncement_clone(orig);
22350         return nativeResponseValue;
22351 }
22352         // void UnsignedChannelUpdate_free(struct LDKUnsignedChannelUpdate this_obj);
22353 /* @internal */
22354 export function UnsignedChannelUpdate_free(this_obj: number): void {
22355         if(!isWasmInitialized) {
22356                 throw new Error("initializeWasm() must be awaited first!");
22357         }
22358         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_free(this_obj);
22359         // debug statements here
22360 }
22361         // const uint8_t (*UnsignedChannelUpdate_get_chain_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr))[32];
22362 /* @internal */
22363 export function UnsignedChannelUpdate_get_chain_hash(this_ptr: number): number {
22364         if(!isWasmInitialized) {
22365                 throw new Error("initializeWasm() must be awaited first!");
22366         }
22367         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_chain_hash(this_ptr);
22368         return nativeResponseValue;
22369 }
22370         // void UnsignedChannelUpdate_set_chain_hash(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22371 /* @internal */
22372 export function UnsignedChannelUpdate_set_chain_hash(this_ptr: number, val: number): void {
22373         if(!isWasmInitialized) {
22374                 throw new Error("initializeWasm() must be awaited first!");
22375         }
22376         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_chain_hash(this_ptr, val);
22377         // debug statements here
22378 }
22379         // uint64_t UnsignedChannelUpdate_get_short_channel_id(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
22380 /* @internal */
22381 export function UnsignedChannelUpdate_get_short_channel_id(this_ptr: number): bigint {
22382         if(!isWasmInitialized) {
22383                 throw new Error("initializeWasm() must be awaited first!");
22384         }
22385         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_short_channel_id(this_ptr);
22386         return nativeResponseValue;
22387 }
22388         // void UnsignedChannelUpdate_set_short_channel_id(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
22389 /* @internal */
22390 export function UnsignedChannelUpdate_set_short_channel_id(this_ptr: number, val: bigint): void {
22391         if(!isWasmInitialized) {
22392                 throw new Error("initializeWasm() must be awaited first!");
22393         }
22394         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_short_channel_id(this_ptr, val);
22395         // debug statements here
22396 }
22397         // uint32_t UnsignedChannelUpdate_get_timestamp(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
22398 /* @internal */
22399 export function UnsignedChannelUpdate_get_timestamp(this_ptr: number): number {
22400         if(!isWasmInitialized) {
22401                 throw new Error("initializeWasm() must be awaited first!");
22402         }
22403         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_timestamp(this_ptr);
22404         return nativeResponseValue;
22405 }
22406         // void UnsignedChannelUpdate_set_timestamp(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
22407 /* @internal */
22408 export function UnsignedChannelUpdate_set_timestamp(this_ptr: number, val: number): void {
22409         if(!isWasmInitialized) {
22410                 throw new Error("initializeWasm() must be awaited first!");
22411         }
22412         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_timestamp(this_ptr, val);
22413         // debug statements here
22414 }
22415         // uint8_t UnsignedChannelUpdate_get_flags(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
22416 /* @internal */
22417 export function UnsignedChannelUpdate_get_flags(this_ptr: number): number {
22418         if(!isWasmInitialized) {
22419                 throw new Error("initializeWasm() must be awaited first!");
22420         }
22421         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_flags(this_ptr);
22422         return nativeResponseValue;
22423 }
22424         // void UnsignedChannelUpdate_set_flags(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint8_t val);
22425 /* @internal */
22426 export function UnsignedChannelUpdate_set_flags(this_ptr: number, val: number): void {
22427         if(!isWasmInitialized) {
22428                 throw new Error("initializeWasm() must be awaited first!");
22429         }
22430         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_flags(this_ptr, val);
22431         // debug statements here
22432 }
22433         // uint16_t UnsignedChannelUpdate_get_cltv_expiry_delta(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
22434 /* @internal */
22435 export function UnsignedChannelUpdate_get_cltv_expiry_delta(this_ptr: number): number {
22436         if(!isWasmInitialized) {
22437                 throw new Error("initializeWasm() must be awaited first!");
22438         }
22439         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_cltv_expiry_delta(this_ptr);
22440         return nativeResponseValue;
22441 }
22442         // void UnsignedChannelUpdate_set_cltv_expiry_delta(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint16_t val);
22443 /* @internal */
22444 export function UnsignedChannelUpdate_set_cltv_expiry_delta(this_ptr: number, val: number): void {
22445         if(!isWasmInitialized) {
22446                 throw new Error("initializeWasm() must be awaited first!");
22447         }
22448         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_cltv_expiry_delta(this_ptr, val);
22449         // debug statements here
22450 }
22451         // uint64_t UnsignedChannelUpdate_get_htlc_minimum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
22452 /* @internal */
22453 export function UnsignedChannelUpdate_get_htlc_minimum_msat(this_ptr: number): bigint {
22454         if(!isWasmInitialized) {
22455                 throw new Error("initializeWasm() must be awaited first!");
22456         }
22457         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_htlc_minimum_msat(this_ptr);
22458         return nativeResponseValue;
22459 }
22460         // void UnsignedChannelUpdate_set_htlc_minimum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
22461 /* @internal */
22462 export function UnsignedChannelUpdate_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
22463         if(!isWasmInitialized) {
22464                 throw new Error("initializeWasm() must be awaited first!");
22465         }
22466         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_htlc_minimum_msat(this_ptr, val);
22467         // debug statements here
22468 }
22469         // uint32_t UnsignedChannelUpdate_get_fee_base_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
22470 /* @internal */
22471 export function UnsignedChannelUpdate_get_fee_base_msat(this_ptr: number): number {
22472         if(!isWasmInitialized) {
22473                 throw new Error("initializeWasm() must be awaited first!");
22474         }
22475         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_fee_base_msat(this_ptr);
22476         return nativeResponseValue;
22477 }
22478         // void UnsignedChannelUpdate_set_fee_base_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
22479 /* @internal */
22480 export function UnsignedChannelUpdate_set_fee_base_msat(this_ptr: number, val: number): void {
22481         if(!isWasmInitialized) {
22482                 throw new Error("initializeWasm() must be awaited first!");
22483         }
22484         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_fee_base_msat(this_ptr, val);
22485         // debug statements here
22486 }
22487         // uint32_t UnsignedChannelUpdate_get_fee_proportional_millionths(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
22488 /* @internal */
22489 export function UnsignedChannelUpdate_get_fee_proportional_millionths(this_ptr: number): number {
22490         if(!isWasmInitialized) {
22491                 throw new Error("initializeWasm() must be awaited first!");
22492         }
22493         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_fee_proportional_millionths(this_ptr);
22494         return nativeResponseValue;
22495 }
22496         // void UnsignedChannelUpdate_set_fee_proportional_millionths(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
22497 /* @internal */
22498 export function UnsignedChannelUpdate_set_fee_proportional_millionths(this_ptr: number, val: number): void {
22499         if(!isWasmInitialized) {
22500                 throw new Error("initializeWasm() must be awaited first!");
22501         }
22502         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_fee_proportional_millionths(this_ptr, val);
22503         // debug statements here
22504 }
22505         // uintptr_t UnsignedChannelUpdate_clone_ptr(LDKUnsignedChannelUpdate *NONNULL_PTR arg);
22506 /* @internal */
22507 export function UnsignedChannelUpdate_clone_ptr(arg: number): number {
22508         if(!isWasmInitialized) {
22509                 throw new Error("initializeWasm() must be awaited first!");
22510         }
22511         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_clone_ptr(arg);
22512         return nativeResponseValue;
22513 }
22514         // struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_clone(const struct LDKUnsignedChannelUpdate *NONNULL_PTR orig);
22515 /* @internal */
22516 export function UnsignedChannelUpdate_clone(orig: number): number {
22517         if(!isWasmInitialized) {
22518                 throw new Error("initializeWasm() must be awaited first!");
22519         }
22520         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_clone(orig);
22521         return nativeResponseValue;
22522 }
22523         // void ChannelUpdate_free(struct LDKChannelUpdate this_obj);
22524 /* @internal */
22525 export function ChannelUpdate_free(this_obj: number): void {
22526         if(!isWasmInitialized) {
22527                 throw new Error("initializeWasm() must be awaited first!");
22528         }
22529         const nativeResponseValue = wasm.TS_ChannelUpdate_free(this_obj);
22530         // debug statements here
22531 }
22532         // struct LDKSignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
22533 /* @internal */
22534 export function ChannelUpdate_get_signature(this_ptr: number): number {
22535         if(!isWasmInitialized) {
22536                 throw new Error("initializeWasm() must be awaited first!");
22537         }
22538         const nativeResponseValue = wasm.TS_ChannelUpdate_get_signature(this_ptr);
22539         return nativeResponseValue;
22540 }
22541         // void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKSignature val);
22542 /* @internal */
22543 export function ChannelUpdate_set_signature(this_ptr: number, val: number): void {
22544         if(!isWasmInitialized) {
22545                 throw new Error("initializeWasm() must be awaited first!");
22546         }
22547         const nativeResponseValue = wasm.TS_ChannelUpdate_set_signature(this_ptr, val);
22548         // debug statements here
22549 }
22550         // struct LDKUnsignedChannelUpdate ChannelUpdate_get_contents(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
22551 /* @internal */
22552 export function ChannelUpdate_get_contents(this_ptr: number): number {
22553         if(!isWasmInitialized) {
22554                 throw new Error("initializeWasm() must be awaited first!");
22555         }
22556         const nativeResponseValue = wasm.TS_ChannelUpdate_get_contents(this_ptr);
22557         return nativeResponseValue;
22558 }
22559         // void ChannelUpdate_set_contents(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKUnsignedChannelUpdate val);
22560 /* @internal */
22561 export function ChannelUpdate_set_contents(this_ptr: number, val: number): void {
22562         if(!isWasmInitialized) {
22563                 throw new Error("initializeWasm() must be awaited first!");
22564         }
22565         const nativeResponseValue = wasm.TS_ChannelUpdate_set_contents(this_ptr, val);
22566         // debug statements here
22567 }
22568         // MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKSignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg);
22569 /* @internal */
22570 export function ChannelUpdate_new(signature_arg: number, contents_arg: number): number {
22571         if(!isWasmInitialized) {
22572                 throw new Error("initializeWasm() must be awaited first!");
22573         }
22574         const nativeResponseValue = wasm.TS_ChannelUpdate_new(signature_arg, contents_arg);
22575         return nativeResponseValue;
22576 }
22577         // uintptr_t ChannelUpdate_clone_ptr(LDKChannelUpdate *NONNULL_PTR arg);
22578 /* @internal */
22579 export function ChannelUpdate_clone_ptr(arg: number): number {
22580         if(!isWasmInitialized) {
22581                 throw new Error("initializeWasm() must be awaited first!");
22582         }
22583         const nativeResponseValue = wasm.TS_ChannelUpdate_clone_ptr(arg);
22584         return nativeResponseValue;
22585 }
22586         // struct LDKChannelUpdate ChannelUpdate_clone(const struct LDKChannelUpdate *NONNULL_PTR orig);
22587 /* @internal */
22588 export function ChannelUpdate_clone(orig: number): number {
22589         if(!isWasmInitialized) {
22590                 throw new Error("initializeWasm() must be awaited first!");
22591         }
22592         const nativeResponseValue = wasm.TS_ChannelUpdate_clone(orig);
22593         return nativeResponseValue;
22594 }
22595         // void QueryChannelRange_free(struct LDKQueryChannelRange this_obj);
22596 /* @internal */
22597 export function QueryChannelRange_free(this_obj: number): void {
22598         if(!isWasmInitialized) {
22599                 throw new Error("initializeWasm() must be awaited first!");
22600         }
22601         const nativeResponseValue = wasm.TS_QueryChannelRange_free(this_obj);
22602         // debug statements here
22603 }
22604         // const uint8_t (*QueryChannelRange_get_chain_hash(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr))[32];
22605 /* @internal */
22606 export function QueryChannelRange_get_chain_hash(this_ptr: number): number {
22607         if(!isWasmInitialized) {
22608                 throw new Error("initializeWasm() must be awaited first!");
22609         }
22610         const nativeResponseValue = wasm.TS_QueryChannelRange_get_chain_hash(this_ptr);
22611         return nativeResponseValue;
22612 }
22613         // void QueryChannelRange_set_chain_hash(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22614 /* @internal */
22615 export function QueryChannelRange_set_chain_hash(this_ptr: number, val: number): void {
22616         if(!isWasmInitialized) {
22617                 throw new Error("initializeWasm() must be awaited first!");
22618         }
22619         const nativeResponseValue = wasm.TS_QueryChannelRange_set_chain_hash(this_ptr, val);
22620         // debug statements here
22621 }
22622         // uint32_t QueryChannelRange_get_first_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
22623 /* @internal */
22624 export function QueryChannelRange_get_first_blocknum(this_ptr: number): number {
22625         if(!isWasmInitialized) {
22626                 throw new Error("initializeWasm() must be awaited first!");
22627         }
22628         const nativeResponseValue = wasm.TS_QueryChannelRange_get_first_blocknum(this_ptr);
22629         return nativeResponseValue;
22630 }
22631         // void QueryChannelRange_set_first_blocknum(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
22632 /* @internal */
22633 export function QueryChannelRange_set_first_blocknum(this_ptr: number, val: number): void {
22634         if(!isWasmInitialized) {
22635                 throw new Error("initializeWasm() must be awaited first!");
22636         }
22637         const nativeResponseValue = wasm.TS_QueryChannelRange_set_first_blocknum(this_ptr, val);
22638         // debug statements here
22639 }
22640         // uint32_t QueryChannelRange_get_number_of_blocks(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
22641 /* @internal */
22642 export function QueryChannelRange_get_number_of_blocks(this_ptr: number): number {
22643         if(!isWasmInitialized) {
22644                 throw new Error("initializeWasm() must be awaited first!");
22645         }
22646         const nativeResponseValue = wasm.TS_QueryChannelRange_get_number_of_blocks(this_ptr);
22647         return nativeResponseValue;
22648 }
22649         // void QueryChannelRange_set_number_of_blocks(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
22650 /* @internal */
22651 export function QueryChannelRange_set_number_of_blocks(this_ptr: number, val: number): void {
22652         if(!isWasmInitialized) {
22653                 throw new Error("initializeWasm() must be awaited first!");
22654         }
22655         const nativeResponseValue = wasm.TS_QueryChannelRange_set_number_of_blocks(this_ptr, val);
22656         // debug statements here
22657 }
22658         // MUST_USE_RES struct LDKQueryChannelRange QueryChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg);
22659 /* @internal */
22660 export function QueryChannelRange_new(chain_hash_arg: number, first_blocknum_arg: number, number_of_blocks_arg: number): number {
22661         if(!isWasmInitialized) {
22662                 throw new Error("initializeWasm() must be awaited first!");
22663         }
22664         const nativeResponseValue = wasm.TS_QueryChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg);
22665         return nativeResponseValue;
22666 }
22667         // uintptr_t QueryChannelRange_clone_ptr(LDKQueryChannelRange *NONNULL_PTR arg);
22668 /* @internal */
22669 export function QueryChannelRange_clone_ptr(arg: number): number {
22670         if(!isWasmInitialized) {
22671                 throw new Error("initializeWasm() must be awaited first!");
22672         }
22673         const nativeResponseValue = wasm.TS_QueryChannelRange_clone_ptr(arg);
22674         return nativeResponseValue;
22675 }
22676         // struct LDKQueryChannelRange QueryChannelRange_clone(const struct LDKQueryChannelRange *NONNULL_PTR orig);
22677 /* @internal */
22678 export function QueryChannelRange_clone(orig: number): number {
22679         if(!isWasmInitialized) {
22680                 throw new Error("initializeWasm() must be awaited first!");
22681         }
22682         const nativeResponseValue = wasm.TS_QueryChannelRange_clone(orig);
22683         return nativeResponseValue;
22684 }
22685         // void ReplyChannelRange_free(struct LDKReplyChannelRange this_obj);
22686 /* @internal */
22687 export function ReplyChannelRange_free(this_obj: number): void {
22688         if(!isWasmInitialized) {
22689                 throw new Error("initializeWasm() must be awaited first!");
22690         }
22691         const nativeResponseValue = wasm.TS_ReplyChannelRange_free(this_obj);
22692         // debug statements here
22693 }
22694         // const uint8_t (*ReplyChannelRange_get_chain_hash(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr))[32];
22695 /* @internal */
22696 export function ReplyChannelRange_get_chain_hash(this_ptr: number): number {
22697         if(!isWasmInitialized) {
22698                 throw new Error("initializeWasm() must be awaited first!");
22699         }
22700         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_chain_hash(this_ptr);
22701         return nativeResponseValue;
22702 }
22703         // void ReplyChannelRange_set_chain_hash(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22704 /* @internal */
22705 export function ReplyChannelRange_set_chain_hash(this_ptr: number, val: number): void {
22706         if(!isWasmInitialized) {
22707                 throw new Error("initializeWasm() must be awaited first!");
22708         }
22709         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_chain_hash(this_ptr, val);
22710         // debug statements here
22711 }
22712         // uint32_t ReplyChannelRange_get_first_blocknum(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
22713 /* @internal */
22714 export function ReplyChannelRange_get_first_blocknum(this_ptr: number): number {
22715         if(!isWasmInitialized) {
22716                 throw new Error("initializeWasm() must be awaited first!");
22717         }
22718         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_first_blocknum(this_ptr);
22719         return nativeResponseValue;
22720 }
22721         // void ReplyChannelRange_set_first_blocknum(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
22722 /* @internal */
22723 export function ReplyChannelRange_set_first_blocknum(this_ptr: number, val: number): void {
22724         if(!isWasmInitialized) {
22725                 throw new Error("initializeWasm() must be awaited first!");
22726         }
22727         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_first_blocknum(this_ptr, val);
22728         // debug statements here
22729 }
22730         // uint32_t ReplyChannelRange_get_number_of_blocks(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
22731 /* @internal */
22732 export function ReplyChannelRange_get_number_of_blocks(this_ptr: number): number {
22733         if(!isWasmInitialized) {
22734                 throw new Error("initializeWasm() must be awaited first!");
22735         }
22736         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_number_of_blocks(this_ptr);
22737         return nativeResponseValue;
22738 }
22739         // void ReplyChannelRange_set_number_of_blocks(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
22740 /* @internal */
22741 export function ReplyChannelRange_set_number_of_blocks(this_ptr: number, val: number): void {
22742         if(!isWasmInitialized) {
22743                 throw new Error("initializeWasm() must be awaited first!");
22744         }
22745         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_number_of_blocks(this_ptr, val);
22746         // debug statements here
22747 }
22748         // bool ReplyChannelRange_get_sync_complete(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
22749 /* @internal */
22750 export function ReplyChannelRange_get_sync_complete(this_ptr: number): boolean {
22751         if(!isWasmInitialized) {
22752                 throw new Error("initializeWasm() must be awaited first!");
22753         }
22754         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_sync_complete(this_ptr);
22755         return nativeResponseValue;
22756 }
22757         // void ReplyChannelRange_set_sync_complete(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, bool val);
22758 /* @internal */
22759 export function ReplyChannelRange_set_sync_complete(this_ptr: number, val: boolean): void {
22760         if(!isWasmInitialized) {
22761                 throw new Error("initializeWasm() must be awaited first!");
22762         }
22763         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_sync_complete(this_ptr, val);
22764         // debug statements here
22765 }
22766         // void ReplyChannelRange_set_short_channel_ids(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
22767 /* @internal */
22768 export function ReplyChannelRange_set_short_channel_ids(this_ptr: number, val: number): void {
22769         if(!isWasmInitialized) {
22770                 throw new Error("initializeWasm() must be awaited first!");
22771         }
22772         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_short_channel_ids(this_ptr, val);
22773         // debug statements here
22774 }
22775         // 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);
22776 /* @internal */
22777 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 {
22778         if(!isWasmInitialized) {
22779                 throw new Error("initializeWasm() must be awaited first!");
22780         }
22781         const nativeResponseValue = wasm.TS_ReplyChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg, sync_complete_arg, short_channel_ids_arg);
22782         return nativeResponseValue;
22783 }
22784         // uintptr_t ReplyChannelRange_clone_ptr(LDKReplyChannelRange *NONNULL_PTR arg);
22785 /* @internal */
22786 export function ReplyChannelRange_clone_ptr(arg: number): number {
22787         if(!isWasmInitialized) {
22788                 throw new Error("initializeWasm() must be awaited first!");
22789         }
22790         const nativeResponseValue = wasm.TS_ReplyChannelRange_clone_ptr(arg);
22791         return nativeResponseValue;
22792 }
22793         // struct LDKReplyChannelRange ReplyChannelRange_clone(const struct LDKReplyChannelRange *NONNULL_PTR orig);
22794 /* @internal */
22795 export function ReplyChannelRange_clone(orig: number): number {
22796         if(!isWasmInitialized) {
22797                 throw new Error("initializeWasm() must be awaited first!");
22798         }
22799         const nativeResponseValue = wasm.TS_ReplyChannelRange_clone(orig);
22800         return nativeResponseValue;
22801 }
22802         // void QueryShortChannelIds_free(struct LDKQueryShortChannelIds this_obj);
22803 /* @internal */
22804 export function QueryShortChannelIds_free(this_obj: number): void {
22805         if(!isWasmInitialized) {
22806                 throw new Error("initializeWasm() must be awaited first!");
22807         }
22808         const nativeResponseValue = wasm.TS_QueryShortChannelIds_free(this_obj);
22809         // debug statements here
22810 }
22811         // const uint8_t (*QueryShortChannelIds_get_chain_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr))[32];
22812 /* @internal */
22813 export function QueryShortChannelIds_get_chain_hash(this_ptr: number): number {
22814         if(!isWasmInitialized) {
22815                 throw new Error("initializeWasm() must be awaited first!");
22816         }
22817         const nativeResponseValue = wasm.TS_QueryShortChannelIds_get_chain_hash(this_ptr);
22818         return nativeResponseValue;
22819 }
22820         // void QueryShortChannelIds_set_chain_hash(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22821 /* @internal */
22822 export function QueryShortChannelIds_set_chain_hash(this_ptr: number, val: number): void {
22823         if(!isWasmInitialized) {
22824                 throw new Error("initializeWasm() must be awaited first!");
22825         }
22826         const nativeResponseValue = wasm.TS_QueryShortChannelIds_set_chain_hash(this_ptr, val);
22827         // debug statements here
22828 }
22829         // void QueryShortChannelIds_set_short_channel_ids(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
22830 /* @internal */
22831 export function QueryShortChannelIds_set_short_channel_ids(this_ptr: number, val: number): void {
22832         if(!isWasmInitialized) {
22833                 throw new Error("initializeWasm() must be awaited first!");
22834         }
22835         const nativeResponseValue = wasm.TS_QueryShortChannelIds_set_short_channel_ids(this_ptr, val);
22836         // debug statements here
22837 }
22838         // MUST_USE_RES struct LDKQueryShortChannelIds QueryShortChannelIds_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKCVec_u64Z short_channel_ids_arg);
22839 /* @internal */
22840 export function QueryShortChannelIds_new(chain_hash_arg: number, short_channel_ids_arg: number): number {
22841         if(!isWasmInitialized) {
22842                 throw new Error("initializeWasm() must be awaited first!");
22843         }
22844         const nativeResponseValue = wasm.TS_QueryShortChannelIds_new(chain_hash_arg, short_channel_ids_arg);
22845         return nativeResponseValue;
22846 }
22847         // uintptr_t QueryShortChannelIds_clone_ptr(LDKQueryShortChannelIds *NONNULL_PTR arg);
22848 /* @internal */
22849 export function QueryShortChannelIds_clone_ptr(arg: number): number {
22850         if(!isWasmInitialized) {
22851                 throw new Error("initializeWasm() must be awaited first!");
22852         }
22853         const nativeResponseValue = wasm.TS_QueryShortChannelIds_clone_ptr(arg);
22854         return nativeResponseValue;
22855 }
22856         // struct LDKQueryShortChannelIds QueryShortChannelIds_clone(const struct LDKQueryShortChannelIds *NONNULL_PTR orig);
22857 /* @internal */
22858 export function QueryShortChannelIds_clone(orig: number): number {
22859         if(!isWasmInitialized) {
22860                 throw new Error("initializeWasm() must be awaited first!");
22861         }
22862         const nativeResponseValue = wasm.TS_QueryShortChannelIds_clone(orig);
22863         return nativeResponseValue;
22864 }
22865         // void ReplyShortChannelIdsEnd_free(struct LDKReplyShortChannelIdsEnd this_obj);
22866 /* @internal */
22867 export function ReplyShortChannelIdsEnd_free(this_obj: number): void {
22868         if(!isWasmInitialized) {
22869                 throw new Error("initializeWasm() must be awaited first!");
22870         }
22871         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_free(this_obj);
22872         // debug statements here
22873 }
22874         // const uint8_t (*ReplyShortChannelIdsEnd_get_chain_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr))[32];
22875 /* @internal */
22876 export function ReplyShortChannelIdsEnd_get_chain_hash(this_ptr: number): number {
22877         if(!isWasmInitialized) {
22878                 throw new Error("initializeWasm() must be awaited first!");
22879         }
22880         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_get_chain_hash(this_ptr);
22881         return nativeResponseValue;
22882 }
22883         // void ReplyShortChannelIdsEnd_set_chain_hash(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22884 /* @internal */
22885 export function ReplyShortChannelIdsEnd_set_chain_hash(this_ptr: number, val: number): void {
22886         if(!isWasmInitialized) {
22887                 throw new Error("initializeWasm() must be awaited first!");
22888         }
22889         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_set_chain_hash(this_ptr, val);
22890         // debug statements here
22891 }
22892         // bool ReplyShortChannelIdsEnd_get_full_information(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr);
22893 /* @internal */
22894 export function ReplyShortChannelIdsEnd_get_full_information(this_ptr: number): boolean {
22895         if(!isWasmInitialized) {
22896                 throw new Error("initializeWasm() must be awaited first!");
22897         }
22898         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_get_full_information(this_ptr);
22899         return nativeResponseValue;
22900 }
22901         // void ReplyShortChannelIdsEnd_set_full_information(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, bool val);
22902 /* @internal */
22903 export function ReplyShortChannelIdsEnd_set_full_information(this_ptr: number, val: boolean): void {
22904         if(!isWasmInitialized) {
22905                 throw new Error("initializeWasm() must be awaited first!");
22906         }
22907         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_set_full_information(this_ptr, val);
22908         // debug statements here
22909 }
22910         // MUST_USE_RES struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_new(struct LDKThirtyTwoBytes chain_hash_arg, bool full_information_arg);
22911 /* @internal */
22912 export function ReplyShortChannelIdsEnd_new(chain_hash_arg: number, full_information_arg: boolean): number {
22913         if(!isWasmInitialized) {
22914                 throw new Error("initializeWasm() must be awaited first!");
22915         }
22916         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_new(chain_hash_arg, full_information_arg);
22917         return nativeResponseValue;
22918 }
22919         // uintptr_t ReplyShortChannelIdsEnd_clone_ptr(LDKReplyShortChannelIdsEnd *NONNULL_PTR arg);
22920 /* @internal */
22921 export function ReplyShortChannelIdsEnd_clone_ptr(arg: number): number {
22922         if(!isWasmInitialized) {
22923                 throw new Error("initializeWasm() must be awaited first!");
22924         }
22925         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_clone_ptr(arg);
22926         return nativeResponseValue;
22927 }
22928         // struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_clone(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR orig);
22929 /* @internal */
22930 export function ReplyShortChannelIdsEnd_clone(orig: number): number {
22931         if(!isWasmInitialized) {
22932                 throw new Error("initializeWasm() must be awaited first!");
22933         }
22934         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_clone(orig);
22935         return nativeResponseValue;
22936 }
22937         // void GossipTimestampFilter_free(struct LDKGossipTimestampFilter this_obj);
22938 /* @internal */
22939 export function GossipTimestampFilter_free(this_obj: number): void {
22940         if(!isWasmInitialized) {
22941                 throw new Error("initializeWasm() must be awaited first!");
22942         }
22943         const nativeResponseValue = wasm.TS_GossipTimestampFilter_free(this_obj);
22944         // debug statements here
22945 }
22946         // const uint8_t (*GossipTimestampFilter_get_chain_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr))[32];
22947 /* @internal */
22948 export function GossipTimestampFilter_get_chain_hash(this_ptr: number): number {
22949         if(!isWasmInitialized) {
22950                 throw new Error("initializeWasm() must be awaited first!");
22951         }
22952         const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_chain_hash(this_ptr);
22953         return nativeResponseValue;
22954 }
22955         // void GossipTimestampFilter_set_chain_hash(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22956 /* @internal */
22957 export function GossipTimestampFilter_set_chain_hash(this_ptr: number, val: number): void {
22958         if(!isWasmInitialized) {
22959                 throw new Error("initializeWasm() must be awaited first!");
22960         }
22961         const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_chain_hash(this_ptr, val);
22962         // debug statements here
22963 }
22964         // uint32_t GossipTimestampFilter_get_first_timestamp(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
22965 /* @internal */
22966 export function GossipTimestampFilter_get_first_timestamp(this_ptr: number): number {
22967         if(!isWasmInitialized) {
22968                 throw new Error("initializeWasm() must be awaited first!");
22969         }
22970         const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_first_timestamp(this_ptr);
22971         return nativeResponseValue;
22972 }
22973         // void GossipTimestampFilter_set_first_timestamp(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
22974 /* @internal */
22975 export function GossipTimestampFilter_set_first_timestamp(this_ptr: number, val: number): void {
22976         if(!isWasmInitialized) {
22977                 throw new Error("initializeWasm() must be awaited first!");
22978         }
22979         const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_first_timestamp(this_ptr, val);
22980         // debug statements here
22981 }
22982         // uint32_t GossipTimestampFilter_get_timestamp_range(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
22983 /* @internal */
22984 export function GossipTimestampFilter_get_timestamp_range(this_ptr: number): number {
22985         if(!isWasmInitialized) {
22986                 throw new Error("initializeWasm() must be awaited first!");
22987         }
22988         const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_timestamp_range(this_ptr);
22989         return nativeResponseValue;
22990 }
22991         // void GossipTimestampFilter_set_timestamp_range(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
22992 /* @internal */
22993 export function GossipTimestampFilter_set_timestamp_range(this_ptr: number, val: number): void {
22994         if(!isWasmInitialized) {
22995                 throw new Error("initializeWasm() must be awaited first!");
22996         }
22997         const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_timestamp_range(this_ptr, val);
22998         // debug statements here
22999 }
23000         // MUST_USE_RES struct LDKGossipTimestampFilter GossipTimestampFilter_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_timestamp_arg, uint32_t timestamp_range_arg);
23001 /* @internal */
23002 export function GossipTimestampFilter_new(chain_hash_arg: number, first_timestamp_arg: number, timestamp_range_arg: number): number {
23003         if(!isWasmInitialized) {
23004                 throw new Error("initializeWasm() must be awaited first!");
23005         }
23006         const nativeResponseValue = wasm.TS_GossipTimestampFilter_new(chain_hash_arg, first_timestamp_arg, timestamp_range_arg);
23007         return nativeResponseValue;
23008 }
23009         // uintptr_t GossipTimestampFilter_clone_ptr(LDKGossipTimestampFilter *NONNULL_PTR arg);
23010 /* @internal */
23011 export function GossipTimestampFilter_clone_ptr(arg: number): number {
23012         if(!isWasmInitialized) {
23013                 throw new Error("initializeWasm() must be awaited first!");
23014         }
23015         const nativeResponseValue = wasm.TS_GossipTimestampFilter_clone_ptr(arg);
23016         return nativeResponseValue;
23017 }
23018         // struct LDKGossipTimestampFilter GossipTimestampFilter_clone(const struct LDKGossipTimestampFilter *NONNULL_PTR orig);
23019 /* @internal */
23020 export function GossipTimestampFilter_clone(orig: number): number {
23021         if(!isWasmInitialized) {
23022                 throw new Error("initializeWasm() must be awaited first!");
23023         }
23024         const nativeResponseValue = wasm.TS_GossipTimestampFilter_clone(orig);
23025         return nativeResponseValue;
23026 }
23027         // void ErrorAction_free(struct LDKErrorAction this_ptr);
23028 /* @internal */
23029 export function ErrorAction_free(this_ptr: number): void {
23030         if(!isWasmInitialized) {
23031                 throw new Error("initializeWasm() must be awaited first!");
23032         }
23033         const nativeResponseValue = wasm.TS_ErrorAction_free(this_ptr);
23034         // debug statements here
23035 }
23036         // uintptr_t ErrorAction_clone_ptr(LDKErrorAction *NONNULL_PTR arg);
23037 /* @internal */
23038 export function ErrorAction_clone_ptr(arg: number): number {
23039         if(!isWasmInitialized) {
23040                 throw new Error("initializeWasm() must be awaited first!");
23041         }
23042         const nativeResponseValue = wasm.TS_ErrorAction_clone_ptr(arg);
23043         return nativeResponseValue;
23044 }
23045         // struct LDKErrorAction ErrorAction_clone(const struct LDKErrorAction *NONNULL_PTR orig);
23046 /* @internal */
23047 export function ErrorAction_clone(orig: number): number {
23048         if(!isWasmInitialized) {
23049                 throw new Error("initializeWasm() must be awaited first!");
23050         }
23051         const nativeResponseValue = wasm.TS_ErrorAction_clone(orig);
23052         return nativeResponseValue;
23053 }
23054         // struct LDKErrorAction ErrorAction_disconnect_peer(struct LDKErrorMessage msg);
23055 /* @internal */
23056 export function ErrorAction_disconnect_peer(msg: number): number {
23057         if(!isWasmInitialized) {
23058                 throw new Error("initializeWasm() must be awaited first!");
23059         }
23060         const nativeResponseValue = wasm.TS_ErrorAction_disconnect_peer(msg);
23061         return nativeResponseValue;
23062 }
23063         // struct LDKErrorAction ErrorAction_ignore_error(void);
23064 /* @internal */
23065 export function ErrorAction_ignore_error(): number {
23066         if(!isWasmInitialized) {
23067                 throw new Error("initializeWasm() must be awaited first!");
23068         }
23069         const nativeResponseValue = wasm.TS_ErrorAction_ignore_error();
23070         return nativeResponseValue;
23071 }
23072         // struct LDKErrorAction ErrorAction_ignore_and_log(enum LDKLevel a);
23073 /* @internal */
23074 export function ErrorAction_ignore_and_log(a: Level): number {
23075         if(!isWasmInitialized) {
23076                 throw new Error("initializeWasm() must be awaited first!");
23077         }
23078         const nativeResponseValue = wasm.TS_ErrorAction_ignore_and_log(a);
23079         return nativeResponseValue;
23080 }
23081         // struct LDKErrorAction ErrorAction_ignore_duplicate_gossip(void);
23082 /* @internal */
23083 export function ErrorAction_ignore_duplicate_gossip(): number {
23084         if(!isWasmInitialized) {
23085                 throw new Error("initializeWasm() must be awaited first!");
23086         }
23087         const nativeResponseValue = wasm.TS_ErrorAction_ignore_duplicate_gossip();
23088         return nativeResponseValue;
23089 }
23090         // struct LDKErrorAction ErrorAction_send_error_message(struct LDKErrorMessage msg);
23091 /* @internal */
23092 export function ErrorAction_send_error_message(msg: number): number {
23093         if(!isWasmInitialized) {
23094                 throw new Error("initializeWasm() must be awaited first!");
23095         }
23096         const nativeResponseValue = wasm.TS_ErrorAction_send_error_message(msg);
23097         return nativeResponseValue;
23098 }
23099         // struct LDKErrorAction ErrorAction_send_warning_message(struct LDKWarningMessage msg, enum LDKLevel log_level);
23100 /* @internal */
23101 export function ErrorAction_send_warning_message(msg: number, log_level: Level): number {
23102         if(!isWasmInitialized) {
23103                 throw new Error("initializeWasm() must be awaited first!");
23104         }
23105         const nativeResponseValue = wasm.TS_ErrorAction_send_warning_message(msg, log_level);
23106         return nativeResponseValue;
23107 }
23108         // void LightningError_free(struct LDKLightningError this_obj);
23109 /* @internal */
23110 export function LightningError_free(this_obj: number): void {
23111         if(!isWasmInitialized) {
23112                 throw new Error("initializeWasm() must be awaited first!");
23113         }
23114         const nativeResponseValue = wasm.TS_LightningError_free(this_obj);
23115         // debug statements here
23116 }
23117         // struct LDKStr LightningError_get_err(const struct LDKLightningError *NONNULL_PTR this_ptr);
23118 /* @internal */
23119 export function LightningError_get_err(this_ptr: number): number {
23120         if(!isWasmInitialized) {
23121                 throw new Error("initializeWasm() must be awaited first!");
23122         }
23123         const nativeResponseValue = wasm.TS_LightningError_get_err(this_ptr);
23124         return nativeResponseValue;
23125 }
23126         // void LightningError_set_err(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKStr val);
23127 /* @internal */
23128 export function LightningError_set_err(this_ptr: number, val: number): void {
23129         if(!isWasmInitialized) {
23130                 throw new Error("initializeWasm() must be awaited first!");
23131         }
23132         const nativeResponseValue = wasm.TS_LightningError_set_err(this_ptr, val);
23133         // debug statements here
23134 }
23135         // struct LDKErrorAction LightningError_get_action(const struct LDKLightningError *NONNULL_PTR this_ptr);
23136 /* @internal */
23137 export function LightningError_get_action(this_ptr: number): number {
23138         if(!isWasmInitialized) {
23139                 throw new Error("initializeWasm() must be awaited first!");
23140         }
23141         const nativeResponseValue = wasm.TS_LightningError_get_action(this_ptr);
23142         return nativeResponseValue;
23143 }
23144         // void LightningError_set_action(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKErrorAction val);
23145 /* @internal */
23146 export function LightningError_set_action(this_ptr: number, val: number): void {
23147         if(!isWasmInitialized) {
23148                 throw new Error("initializeWasm() must be awaited first!");
23149         }
23150         const nativeResponseValue = wasm.TS_LightningError_set_action(this_ptr, val);
23151         // debug statements here
23152 }
23153         // MUST_USE_RES struct LDKLightningError LightningError_new(struct LDKStr err_arg, struct LDKErrorAction action_arg);
23154 /* @internal */
23155 export function LightningError_new(err_arg: number, action_arg: number): number {
23156         if(!isWasmInitialized) {
23157                 throw new Error("initializeWasm() must be awaited first!");
23158         }
23159         const nativeResponseValue = wasm.TS_LightningError_new(err_arg, action_arg);
23160         return nativeResponseValue;
23161 }
23162         // uintptr_t LightningError_clone_ptr(LDKLightningError *NONNULL_PTR arg);
23163 /* @internal */
23164 export function LightningError_clone_ptr(arg: number): number {
23165         if(!isWasmInitialized) {
23166                 throw new Error("initializeWasm() must be awaited first!");
23167         }
23168         const nativeResponseValue = wasm.TS_LightningError_clone_ptr(arg);
23169         return nativeResponseValue;
23170 }
23171         // struct LDKLightningError LightningError_clone(const struct LDKLightningError *NONNULL_PTR orig);
23172 /* @internal */
23173 export function LightningError_clone(orig: number): number {
23174         if(!isWasmInitialized) {
23175                 throw new Error("initializeWasm() must be awaited first!");
23176         }
23177         const nativeResponseValue = wasm.TS_LightningError_clone(orig);
23178         return nativeResponseValue;
23179 }
23180         // void CommitmentUpdate_free(struct LDKCommitmentUpdate this_obj);
23181 /* @internal */
23182 export function CommitmentUpdate_free(this_obj: number): void {
23183         if(!isWasmInitialized) {
23184                 throw new Error("initializeWasm() must be awaited first!");
23185         }
23186         const nativeResponseValue = wasm.TS_CommitmentUpdate_free(this_obj);
23187         // debug statements here
23188 }
23189         // struct LDKCVec_UpdateAddHTLCZ CommitmentUpdate_get_update_add_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
23190 /* @internal */
23191 export function CommitmentUpdate_get_update_add_htlcs(this_ptr: number): number {
23192         if(!isWasmInitialized) {
23193                 throw new Error("initializeWasm() must be awaited first!");
23194         }
23195         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_add_htlcs(this_ptr);
23196         return nativeResponseValue;
23197 }
23198         // void CommitmentUpdate_set_update_add_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateAddHTLCZ val);
23199 /* @internal */
23200 export function CommitmentUpdate_set_update_add_htlcs(this_ptr: number, val: number): void {
23201         if(!isWasmInitialized) {
23202                 throw new Error("initializeWasm() must be awaited first!");
23203         }
23204         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_add_htlcs(this_ptr, val);
23205         // debug statements here
23206 }
23207         // struct LDKCVec_UpdateFulfillHTLCZ CommitmentUpdate_get_update_fulfill_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
23208 /* @internal */
23209 export function CommitmentUpdate_get_update_fulfill_htlcs(this_ptr: number): number {
23210         if(!isWasmInitialized) {
23211                 throw new Error("initializeWasm() must be awaited first!");
23212         }
23213         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fulfill_htlcs(this_ptr);
23214         return nativeResponseValue;
23215 }
23216         // void CommitmentUpdate_set_update_fulfill_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFulfillHTLCZ val);
23217 /* @internal */
23218 export function CommitmentUpdate_set_update_fulfill_htlcs(this_ptr: number, val: number): void {
23219         if(!isWasmInitialized) {
23220                 throw new Error("initializeWasm() must be awaited first!");
23221         }
23222         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fulfill_htlcs(this_ptr, val);
23223         // debug statements here
23224 }
23225         // struct LDKCVec_UpdateFailHTLCZ CommitmentUpdate_get_update_fail_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
23226 /* @internal */
23227 export function CommitmentUpdate_get_update_fail_htlcs(this_ptr: number): number {
23228         if(!isWasmInitialized) {
23229                 throw new Error("initializeWasm() must be awaited first!");
23230         }
23231         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fail_htlcs(this_ptr);
23232         return nativeResponseValue;
23233 }
23234         // void CommitmentUpdate_set_update_fail_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailHTLCZ val);
23235 /* @internal */
23236 export function CommitmentUpdate_set_update_fail_htlcs(this_ptr: number, val: number): void {
23237         if(!isWasmInitialized) {
23238                 throw new Error("initializeWasm() must be awaited first!");
23239         }
23240         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fail_htlcs(this_ptr, val);
23241         // debug statements here
23242 }
23243         // struct LDKCVec_UpdateFailMalformedHTLCZ CommitmentUpdate_get_update_fail_malformed_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
23244 /* @internal */
23245 export function CommitmentUpdate_get_update_fail_malformed_htlcs(this_ptr: number): number {
23246         if(!isWasmInitialized) {
23247                 throw new Error("initializeWasm() must be awaited first!");
23248         }
23249         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fail_malformed_htlcs(this_ptr);
23250         return nativeResponseValue;
23251 }
23252         // void CommitmentUpdate_set_update_fail_malformed_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailMalformedHTLCZ val);
23253 /* @internal */
23254 export function CommitmentUpdate_set_update_fail_malformed_htlcs(this_ptr: number, val: number): void {
23255         if(!isWasmInitialized) {
23256                 throw new Error("initializeWasm() must be awaited first!");
23257         }
23258         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fail_malformed_htlcs(this_ptr, val);
23259         // debug statements here
23260 }
23261         // struct LDKUpdateFee CommitmentUpdate_get_update_fee(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
23262 /* @internal */
23263 export function CommitmentUpdate_get_update_fee(this_ptr: number): number {
23264         if(!isWasmInitialized) {
23265                 throw new Error("initializeWasm() must be awaited first!");
23266         }
23267         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fee(this_ptr);
23268         return nativeResponseValue;
23269 }
23270         // void CommitmentUpdate_set_update_fee(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKUpdateFee val);
23271 /* @internal */
23272 export function CommitmentUpdate_set_update_fee(this_ptr: number, val: number): void {
23273         if(!isWasmInitialized) {
23274                 throw new Error("initializeWasm() must be awaited first!");
23275         }
23276         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fee(this_ptr, val);
23277         // debug statements here
23278 }
23279         // struct LDKCommitmentSigned CommitmentUpdate_get_commitment_signed(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
23280 /* @internal */
23281 export function CommitmentUpdate_get_commitment_signed(this_ptr: number): number {
23282         if(!isWasmInitialized) {
23283                 throw new Error("initializeWasm() must be awaited first!");
23284         }
23285         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_commitment_signed(this_ptr);
23286         return nativeResponseValue;
23287 }
23288         // void CommitmentUpdate_set_commitment_signed(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCommitmentSigned val);
23289 /* @internal */
23290 export function CommitmentUpdate_set_commitment_signed(this_ptr: number, val: number): void {
23291         if(!isWasmInitialized) {
23292                 throw new Error("initializeWasm() must be awaited first!");
23293         }
23294         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_commitment_signed(this_ptr, val);
23295         // debug statements here
23296 }
23297         // 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);
23298 /* @internal */
23299 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 {
23300         if(!isWasmInitialized) {
23301                 throw new Error("initializeWasm() must be awaited first!");
23302         }
23303         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);
23304         return nativeResponseValue;
23305 }
23306         // uintptr_t CommitmentUpdate_clone_ptr(LDKCommitmentUpdate *NONNULL_PTR arg);
23307 /* @internal */
23308 export function CommitmentUpdate_clone_ptr(arg: number): number {
23309         if(!isWasmInitialized) {
23310                 throw new Error("initializeWasm() must be awaited first!");
23311         }
23312         const nativeResponseValue = wasm.TS_CommitmentUpdate_clone_ptr(arg);
23313         return nativeResponseValue;
23314 }
23315         // struct LDKCommitmentUpdate CommitmentUpdate_clone(const struct LDKCommitmentUpdate *NONNULL_PTR orig);
23316 /* @internal */
23317 export function CommitmentUpdate_clone(orig: number): number {
23318         if(!isWasmInitialized) {
23319                 throw new Error("initializeWasm() must be awaited first!");
23320         }
23321         const nativeResponseValue = wasm.TS_CommitmentUpdate_clone(orig);
23322         return nativeResponseValue;
23323 }
23324         // void ChannelMessageHandler_free(struct LDKChannelMessageHandler this_ptr);
23325 /* @internal */
23326 export function ChannelMessageHandler_free(this_ptr: number): void {
23327         if(!isWasmInitialized) {
23328                 throw new Error("initializeWasm() must be awaited first!");
23329         }
23330         const nativeResponseValue = wasm.TS_ChannelMessageHandler_free(this_ptr);
23331         // debug statements here
23332 }
23333         // void RoutingMessageHandler_free(struct LDKRoutingMessageHandler this_ptr);
23334 /* @internal */
23335 export function RoutingMessageHandler_free(this_ptr: number): void {
23336         if(!isWasmInitialized) {
23337                 throw new Error("initializeWasm() must be awaited first!");
23338         }
23339         const nativeResponseValue = wasm.TS_RoutingMessageHandler_free(this_ptr);
23340         // debug statements here
23341 }
23342         // struct LDKCVec_u8Z AcceptChannel_write(const struct LDKAcceptChannel *NONNULL_PTR obj);
23343 /* @internal */
23344 export function AcceptChannel_write(obj: number): number {
23345         if(!isWasmInitialized) {
23346                 throw new Error("initializeWasm() must be awaited first!");
23347         }
23348         const nativeResponseValue = wasm.TS_AcceptChannel_write(obj);
23349         return nativeResponseValue;
23350 }
23351         // struct LDKCResult_AcceptChannelDecodeErrorZ AcceptChannel_read(struct LDKu8slice ser);
23352 /* @internal */
23353 export function AcceptChannel_read(ser: number): number {
23354         if(!isWasmInitialized) {
23355                 throw new Error("initializeWasm() must be awaited first!");
23356         }
23357         const nativeResponseValue = wasm.TS_AcceptChannel_read(ser);
23358         return nativeResponseValue;
23359 }
23360         // struct LDKCVec_u8Z AnnouncementSignatures_write(const struct LDKAnnouncementSignatures *NONNULL_PTR obj);
23361 /* @internal */
23362 export function AnnouncementSignatures_write(obj: number): number {
23363         if(!isWasmInitialized) {
23364                 throw new Error("initializeWasm() must be awaited first!");
23365         }
23366         const nativeResponseValue = wasm.TS_AnnouncementSignatures_write(obj);
23367         return nativeResponseValue;
23368 }
23369         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ AnnouncementSignatures_read(struct LDKu8slice ser);
23370 /* @internal */
23371 export function AnnouncementSignatures_read(ser: number): number {
23372         if(!isWasmInitialized) {
23373                 throw new Error("initializeWasm() must be awaited first!");
23374         }
23375         const nativeResponseValue = wasm.TS_AnnouncementSignatures_read(ser);
23376         return nativeResponseValue;
23377 }
23378         // struct LDKCVec_u8Z ChannelReestablish_write(const struct LDKChannelReestablish *NONNULL_PTR obj);
23379 /* @internal */
23380 export function ChannelReestablish_write(obj: number): number {
23381         if(!isWasmInitialized) {
23382                 throw new Error("initializeWasm() must be awaited first!");
23383         }
23384         const nativeResponseValue = wasm.TS_ChannelReestablish_write(obj);
23385         return nativeResponseValue;
23386 }
23387         // struct LDKCResult_ChannelReestablishDecodeErrorZ ChannelReestablish_read(struct LDKu8slice ser);
23388 /* @internal */
23389 export function ChannelReestablish_read(ser: number): number {
23390         if(!isWasmInitialized) {
23391                 throw new Error("initializeWasm() must be awaited first!");
23392         }
23393         const nativeResponseValue = wasm.TS_ChannelReestablish_read(ser);
23394         return nativeResponseValue;
23395 }
23396         // struct LDKCVec_u8Z ClosingSigned_write(const struct LDKClosingSigned *NONNULL_PTR obj);
23397 /* @internal */
23398 export function ClosingSigned_write(obj: number): number {
23399         if(!isWasmInitialized) {
23400                 throw new Error("initializeWasm() must be awaited first!");
23401         }
23402         const nativeResponseValue = wasm.TS_ClosingSigned_write(obj);
23403         return nativeResponseValue;
23404 }
23405         // struct LDKCResult_ClosingSignedDecodeErrorZ ClosingSigned_read(struct LDKu8slice ser);
23406 /* @internal */
23407 export function ClosingSigned_read(ser: number): number {
23408         if(!isWasmInitialized) {
23409                 throw new Error("initializeWasm() must be awaited first!");
23410         }
23411         const nativeResponseValue = wasm.TS_ClosingSigned_read(ser);
23412         return nativeResponseValue;
23413 }
23414         // struct LDKCVec_u8Z ClosingSignedFeeRange_write(const struct LDKClosingSignedFeeRange *NONNULL_PTR obj);
23415 /* @internal */
23416 export function ClosingSignedFeeRange_write(obj: number): number {
23417         if(!isWasmInitialized) {
23418                 throw new Error("initializeWasm() must be awaited first!");
23419         }
23420         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_write(obj);
23421         return nativeResponseValue;
23422 }
23423         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ ClosingSignedFeeRange_read(struct LDKu8slice ser);
23424 /* @internal */
23425 export function ClosingSignedFeeRange_read(ser: number): number {
23426         if(!isWasmInitialized) {
23427                 throw new Error("initializeWasm() must be awaited first!");
23428         }
23429         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_read(ser);
23430         return nativeResponseValue;
23431 }
23432         // struct LDKCVec_u8Z CommitmentSigned_write(const struct LDKCommitmentSigned *NONNULL_PTR obj);
23433 /* @internal */
23434 export function CommitmentSigned_write(obj: number): number {
23435         if(!isWasmInitialized) {
23436                 throw new Error("initializeWasm() must be awaited first!");
23437         }
23438         const nativeResponseValue = wasm.TS_CommitmentSigned_write(obj);
23439         return nativeResponseValue;
23440 }
23441         // struct LDKCResult_CommitmentSignedDecodeErrorZ CommitmentSigned_read(struct LDKu8slice ser);
23442 /* @internal */
23443 export function CommitmentSigned_read(ser: number): number {
23444         if(!isWasmInitialized) {
23445                 throw new Error("initializeWasm() must be awaited first!");
23446         }
23447         const nativeResponseValue = wasm.TS_CommitmentSigned_read(ser);
23448         return nativeResponseValue;
23449 }
23450         // struct LDKCVec_u8Z FundingCreated_write(const struct LDKFundingCreated *NONNULL_PTR obj);
23451 /* @internal */
23452 export function FundingCreated_write(obj: number): number {
23453         if(!isWasmInitialized) {
23454                 throw new Error("initializeWasm() must be awaited first!");
23455         }
23456         const nativeResponseValue = wasm.TS_FundingCreated_write(obj);
23457         return nativeResponseValue;
23458 }
23459         // struct LDKCResult_FundingCreatedDecodeErrorZ FundingCreated_read(struct LDKu8slice ser);
23460 /* @internal */
23461 export function FundingCreated_read(ser: number): number {
23462         if(!isWasmInitialized) {
23463                 throw new Error("initializeWasm() must be awaited first!");
23464         }
23465         const nativeResponseValue = wasm.TS_FundingCreated_read(ser);
23466         return nativeResponseValue;
23467 }
23468         // struct LDKCVec_u8Z FundingSigned_write(const struct LDKFundingSigned *NONNULL_PTR obj);
23469 /* @internal */
23470 export function FundingSigned_write(obj: number): number {
23471         if(!isWasmInitialized) {
23472                 throw new Error("initializeWasm() must be awaited first!");
23473         }
23474         const nativeResponseValue = wasm.TS_FundingSigned_write(obj);
23475         return nativeResponseValue;
23476 }
23477         // struct LDKCResult_FundingSignedDecodeErrorZ FundingSigned_read(struct LDKu8slice ser);
23478 /* @internal */
23479 export function FundingSigned_read(ser: number): number {
23480         if(!isWasmInitialized) {
23481                 throw new Error("initializeWasm() must be awaited first!");
23482         }
23483         const nativeResponseValue = wasm.TS_FundingSigned_read(ser);
23484         return nativeResponseValue;
23485 }
23486         // struct LDKCVec_u8Z FundingLocked_write(const struct LDKFundingLocked *NONNULL_PTR obj);
23487 /* @internal */
23488 export function FundingLocked_write(obj: number): number {
23489         if(!isWasmInitialized) {
23490                 throw new Error("initializeWasm() must be awaited first!");
23491         }
23492         const nativeResponseValue = wasm.TS_FundingLocked_write(obj);
23493         return nativeResponseValue;
23494 }
23495         // struct LDKCResult_FundingLockedDecodeErrorZ FundingLocked_read(struct LDKu8slice ser);
23496 /* @internal */
23497 export function FundingLocked_read(ser: number): number {
23498         if(!isWasmInitialized) {
23499                 throw new Error("initializeWasm() must be awaited first!");
23500         }
23501         const nativeResponseValue = wasm.TS_FundingLocked_read(ser);
23502         return nativeResponseValue;
23503 }
23504         // struct LDKCVec_u8Z Init_write(const struct LDKInit *NONNULL_PTR obj);
23505 /* @internal */
23506 export function Init_write(obj: number): number {
23507         if(!isWasmInitialized) {
23508                 throw new Error("initializeWasm() must be awaited first!");
23509         }
23510         const nativeResponseValue = wasm.TS_Init_write(obj);
23511         return nativeResponseValue;
23512 }
23513         // struct LDKCResult_InitDecodeErrorZ Init_read(struct LDKu8slice ser);
23514 /* @internal */
23515 export function Init_read(ser: number): number {
23516         if(!isWasmInitialized) {
23517                 throw new Error("initializeWasm() must be awaited first!");
23518         }
23519         const nativeResponseValue = wasm.TS_Init_read(ser);
23520         return nativeResponseValue;
23521 }
23522         // struct LDKCVec_u8Z OpenChannel_write(const struct LDKOpenChannel *NONNULL_PTR obj);
23523 /* @internal */
23524 export function OpenChannel_write(obj: number): number {
23525         if(!isWasmInitialized) {
23526                 throw new Error("initializeWasm() must be awaited first!");
23527         }
23528         const nativeResponseValue = wasm.TS_OpenChannel_write(obj);
23529         return nativeResponseValue;
23530 }
23531         // struct LDKCResult_OpenChannelDecodeErrorZ OpenChannel_read(struct LDKu8slice ser);
23532 /* @internal */
23533 export function OpenChannel_read(ser: number): number {
23534         if(!isWasmInitialized) {
23535                 throw new Error("initializeWasm() must be awaited first!");
23536         }
23537         const nativeResponseValue = wasm.TS_OpenChannel_read(ser);
23538         return nativeResponseValue;
23539 }
23540         // struct LDKCVec_u8Z RevokeAndACK_write(const struct LDKRevokeAndACK *NONNULL_PTR obj);
23541 /* @internal */
23542 export function RevokeAndACK_write(obj: number): number {
23543         if(!isWasmInitialized) {
23544                 throw new Error("initializeWasm() must be awaited first!");
23545         }
23546         const nativeResponseValue = wasm.TS_RevokeAndACK_write(obj);
23547         return nativeResponseValue;
23548 }
23549         // struct LDKCResult_RevokeAndACKDecodeErrorZ RevokeAndACK_read(struct LDKu8slice ser);
23550 /* @internal */
23551 export function RevokeAndACK_read(ser: number): number {
23552         if(!isWasmInitialized) {
23553                 throw new Error("initializeWasm() must be awaited first!");
23554         }
23555         const nativeResponseValue = wasm.TS_RevokeAndACK_read(ser);
23556         return nativeResponseValue;
23557 }
23558         // struct LDKCVec_u8Z Shutdown_write(const struct LDKShutdown *NONNULL_PTR obj);
23559 /* @internal */
23560 export function Shutdown_write(obj: number): number {
23561         if(!isWasmInitialized) {
23562                 throw new Error("initializeWasm() must be awaited first!");
23563         }
23564         const nativeResponseValue = wasm.TS_Shutdown_write(obj);
23565         return nativeResponseValue;
23566 }
23567         // struct LDKCResult_ShutdownDecodeErrorZ Shutdown_read(struct LDKu8slice ser);
23568 /* @internal */
23569 export function Shutdown_read(ser: number): number {
23570         if(!isWasmInitialized) {
23571                 throw new Error("initializeWasm() must be awaited first!");
23572         }
23573         const nativeResponseValue = wasm.TS_Shutdown_read(ser);
23574         return nativeResponseValue;
23575 }
23576         // struct LDKCVec_u8Z UpdateFailHTLC_write(const struct LDKUpdateFailHTLC *NONNULL_PTR obj);
23577 /* @internal */
23578 export function UpdateFailHTLC_write(obj: number): number {
23579         if(!isWasmInitialized) {
23580                 throw new Error("initializeWasm() must be awaited first!");
23581         }
23582         const nativeResponseValue = wasm.TS_UpdateFailHTLC_write(obj);
23583         return nativeResponseValue;
23584 }
23585         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ UpdateFailHTLC_read(struct LDKu8slice ser);
23586 /* @internal */
23587 export function UpdateFailHTLC_read(ser: number): number {
23588         if(!isWasmInitialized) {
23589                 throw new Error("initializeWasm() must be awaited first!");
23590         }
23591         const nativeResponseValue = wasm.TS_UpdateFailHTLC_read(ser);
23592         return nativeResponseValue;
23593 }
23594         // struct LDKCVec_u8Z UpdateFailMalformedHTLC_write(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR obj);
23595 /* @internal */
23596 export function UpdateFailMalformedHTLC_write(obj: number): number {
23597         if(!isWasmInitialized) {
23598                 throw new Error("initializeWasm() must be awaited first!");
23599         }
23600         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_write(obj);
23601         return nativeResponseValue;
23602 }
23603         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ UpdateFailMalformedHTLC_read(struct LDKu8slice ser);
23604 /* @internal */
23605 export function UpdateFailMalformedHTLC_read(ser: number): number {
23606         if(!isWasmInitialized) {
23607                 throw new Error("initializeWasm() must be awaited first!");
23608         }
23609         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_read(ser);
23610         return nativeResponseValue;
23611 }
23612         // struct LDKCVec_u8Z UpdateFee_write(const struct LDKUpdateFee *NONNULL_PTR obj);
23613 /* @internal */
23614 export function UpdateFee_write(obj: number): number {
23615         if(!isWasmInitialized) {
23616                 throw new Error("initializeWasm() must be awaited first!");
23617         }
23618         const nativeResponseValue = wasm.TS_UpdateFee_write(obj);
23619         return nativeResponseValue;
23620 }
23621         // struct LDKCResult_UpdateFeeDecodeErrorZ UpdateFee_read(struct LDKu8slice ser);
23622 /* @internal */
23623 export function UpdateFee_read(ser: number): number {
23624         if(!isWasmInitialized) {
23625                 throw new Error("initializeWasm() must be awaited first!");
23626         }
23627         const nativeResponseValue = wasm.TS_UpdateFee_read(ser);
23628         return nativeResponseValue;
23629 }
23630         // struct LDKCVec_u8Z UpdateFulfillHTLC_write(const struct LDKUpdateFulfillHTLC *NONNULL_PTR obj);
23631 /* @internal */
23632 export function UpdateFulfillHTLC_write(obj: number): number {
23633         if(!isWasmInitialized) {
23634                 throw new Error("initializeWasm() must be awaited first!");
23635         }
23636         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_write(obj);
23637         return nativeResponseValue;
23638 }
23639         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ UpdateFulfillHTLC_read(struct LDKu8slice ser);
23640 /* @internal */
23641 export function UpdateFulfillHTLC_read(ser: number): number {
23642         if(!isWasmInitialized) {
23643                 throw new Error("initializeWasm() must be awaited first!");
23644         }
23645         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_read(ser);
23646         return nativeResponseValue;
23647 }
23648         // struct LDKCVec_u8Z UpdateAddHTLC_write(const struct LDKUpdateAddHTLC *NONNULL_PTR obj);
23649 /* @internal */
23650 export function UpdateAddHTLC_write(obj: number): number {
23651         if(!isWasmInitialized) {
23652                 throw new Error("initializeWasm() must be awaited first!");
23653         }
23654         const nativeResponseValue = wasm.TS_UpdateAddHTLC_write(obj);
23655         return nativeResponseValue;
23656 }
23657         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ UpdateAddHTLC_read(struct LDKu8slice ser);
23658 /* @internal */
23659 export function UpdateAddHTLC_read(ser: number): number {
23660         if(!isWasmInitialized) {
23661                 throw new Error("initializeWasm() must be awaited first!");
23662         }
23663         const nativeResponseValue = wasm.TS_UpdateAddHTLC_read(ser);
23664         return nativeResponseValue;
23665 }
23666         // struct LDKCVec_u8Z Ping_write(const struct LDKPing *NONNULL_PTR obj);
23667 /* @internal */
23668 export function Ping_write(obj: number): number {
23669         if(!isWasmInitialized) {
23670                 throw new Error("initializeWasm() must be awaited first!");
23671         }
23672         const nativeResponseValue = wasm.TS_Ping_write(obj);
23673         return nativeResponseValue;
23674 }
23675         // struct LDKCResult_PingDecodeErrorZ Ping_read(struct LDKu8slice ser);
23676 /* @internal */
23677 export function Ping_read(ser: number): number {
23678         if(!isWasmInitialized) {
23679                 throw new Error("initializeWasm() must be awaited first!");
23680         }
23681         const nativeResponseValue = wasm.TS_Ping_read(ser);
23682         return nativeResponseValue;
23683 }
23684         // struct LDKCVec_u8Z Pong_write(const struct LDKPong *NONNULL_PTR obj);
23685 /* @internal */
23686 export function Pong_write(obj: number): number {
23687         if(!isWasmInitialized) {
23688                 throw new Error("initializeWasm() must be awaited first!");
23689         }
23690         const nativeResponseValue = wasm.TS_Pong_write(obj);
23691         return nativeResponseValue;
23692 }
23693         // struct LDKCResult_PongDecodeErrorZ Pong_read(struct LDKu8slice ser);
23694 /* @internal */
23695 export function Pong_read(ser: number): number {
23696         if(!isWasmInitialized) {
23697                 throw new Error("initializeWasm() must be awaited first!");
23698         }
23699         const nativeResponseValue = wasm.TS_Pong_read(ser);
23700         return nativeResponseValue;
23701 }
23702         // struct LDKCVec_u8Z UnsignedChannelAnnouncement_write(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR obj);
23703 /* @internal */
23704 export function UnsignedChannelAnnouncement_write(obj: number): number {
23705         if(!isWasmInitialized) {
23706                 throw new Error("initializeWasm() must be awaited first!");
23707         }
23708         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_write(obj);
23709         return nativeResponseValue;
23710 }
23711         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ UnsignedChannelAnnouncement_read(struct LDKu8slice ser);
23712 /* @internal */
23713 export function UnsignedChannelAnnouncement_read(ser: number): number {
23714         if(!isWasmInitialized) {
23715                 throw new Error("initializeWasm() must be awaited first!");
23716         }
23717         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_read(ser);
23718         return nativeResponseValue;
23719 }
23720         // struct LDKCVec_u8Z ChannelAnnouncement_write(const struct LDKChannelAnnouncement *NONNULL_PTR obj);
23721 /* @internal */
23722 export function ChannelAnnouncement_write(obj: number): number {
23723         if(!isWasmInitialized) {
23724                 throw new Error("initializeWasm() must be awaited first!");
23725         }
23726         const nativeResponseValue = wasm.TS_ChannelAnnouncement_write(obj);
23727         return nativeResponseValue;
23728 }
23729         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ ChannelAnnouncement_read(struct LDKu8slice ser);
23730 /* @internal */
23731 export function ChannelAnnouncement_read(ser: number): number {
23732         if(!isWasmInitialized) {
23733                 throw new Error("initializeWasm() must be awaited first!");
23734         }
23735         const nativeResponseValue = wasm.TS_ChannelAnnouncement_read(ser);
23736         return nativeResponseValue;
23737 }
23738         // struct LDKCVec_u8Z UnsignedChannelUpdate_write(const struct LDKUnsignedChannelUpdate *NONNULL_PTR obj);
23739 /* @internal */
23740 export function UnsignedChannelUpdate_write(obj: number): number {
23741         if(!isWasmInitialized) {
23742                 throw new Error("initializeWasm() must be awaited first!");
23743         }
23744         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_write(obj);
23745         return nativeResponseValue;
23746 }
23747         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ UnsignedChannelUpdate_read(struct LDKu8slice ser);
23748 /* @internal */
23749 export function UnsignedChannelUpdate_read(ser: number): number {
23750         if(!isWasmInitialized) {
23751                 throw new Error("initializeWasm() must be awaited first!");
23752         }
23753         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_read(ser);
23754         return nativeResponseValue;
23755 }
23756         // struct LDKCVec_u8Z ChannelUpdate_write(const struct LDKChannelUpdate *NONNULL_PTR obj);
23757 /* @internal */
23758 export function ChannelUpdate_write(obj: number): number {
23759         if(!isWasmInitialized) {
23760                 throw new Error("initializeWasm() must be awaited first!");
23761         }
23762         const nativeResponseValue = wasm.TS_ChannelUpdate_write(obj);
23763         return nativeResponseValue;
23764 }
23765         // struct LDKCResult_ChannelUpdateDecodeErrorZ ChannelUpdate_read(struct LDKu8slice ser);
23766 /* @internal */
23767 export function ChannelUpdate_read(ser: number): number {
23768         if(!isWasmInitialized) {
23769                 throw new Error("initializeWasm() must be awaited first!");
23770         }
23771         const nativeResponseValue = wasm.TS_ChannelUpdate_read(ser);
23772         return nativeResponseValue;
23773 }
23774         // struct LDKCVec_u8Z ErrorMessage_write(const struct LDKErrorMessage *NONNULL_PTR obj);
23775 /* @internal */
23776 export function ErrorMessage_write(obj: number): number {
23777         if(!isWasmInitialized) {
23778                 throw new Error("initializeWasm() must be awaited first!");
23779         }
23780         const nativeResponseValue = wasm.TS_ErrorMessage_write(obj);
23781         return nativeResponseValue;
23782 }
23783         // struct LDKCResult_ErrorMessageDecodeErrorZ ErrorMessage_read(struct LDKu8slice ser);
23784 /* @internal */
23785 export function ErrorMessage_read(ser: number): number {
23786         if(!isWasmInitialized) {
23787                 throw new Error("initializeWasm() must be awaited first!");
23788         }
23789         const nativeResponseValue = wasm.TS_ErrorMessage_read(ser);
23790         return nativeResponseValue;
23791 }
23792         // struct LDKCVec_u8Z WarningMessage_write(const struct LDKWarningMessage *NONNULL_PTR obj);
23793 /* @internal */
23794 export function WarningMessage_write(obj: number): number {
23795         if(!isWasmInitialized) {
23796                 throw new Error("initializeWasm() must be awaited first!");
23797         }
23798         const nativeResponseValue = wasm.TS_WarningMessage_write(obj);
23799         return nativeResponseValue;
23800 }
23801         // struct LDKCResult_WarningMessageDecodeErrorZ WarningMessage_read(struct LDKu8slice ser);
23802 /* @internal */
23803 export function WarningMessage_read(ser: number): number {
23804         if(!isWasmInitialized) {
23805                 throw new Error("initializeWasm() must be awaited first!");
23806         }
23807         const nativeResponseValue = wasm.TS_WarningMessage_read(ser);
23808         return nativeResponseValue;
23809 }
23810         // struct LDKCVec_u8Z UnsignedNodeAnnouncement_write(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR obj);
23811 /* @internal */
23812 export function UnsignedNodeAnnouncement_write(obj: number): number {
23813         if(!isWasmInitialized) {
23814                 throw new Error("initializeWasm() must be awaited first!");
23815         }
23816         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_write(obj);
23817         return nativeResponseValue;
23818 }
23819         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ UnsignedNodeAnnouncement_read(struct LDKu8slice ser);
23820 /* @internal */
23821 export function UnsignedNodeAnnouncement_read(ser: number): number {
23822         if(!isWasmInitialized) {
23823                 throw new Error("initializeWasm() must be awaited first!");
23824         }
23825         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_read(ser);
23826         return nativeResponseValue;
23827 }
23828         // struct LDKCVec_u8Z NodeAnnouncement_write(const struct LDKNodeAnnouncement *NONNULL_PTR obj);
23829 /* @internal */
23830 export function NodeAnnouncement_write(obj: number): number {
23831         if(!isWasmInitialized) {
23832                 throw new Error("initializeWasm() must be awaited first!");
23833         }
23834         const nativeResponseValue = wasm.TS_NodeAnnouncement_write(obj);
23835         return nativeResponseValue;
23836 }
23837         // struct LDKCResult_NodeAnnouncementDecodeErrorZ NodeAnnouncement_read(struct LDKu8slice ser);
23838 /* @internal */
23839 export function NodeAnnouncement_read(ser: number): number {
23840         if(!isWasmInitialized) {
23841                 throw new Error("initializeWasm() must be awaited first!");
23842         }
23843         const nativeResponseValue = wasm.TS_NodeAnnouncement_read(ser);
23844         return nativeResponseValue;
23845 }
23846         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ QueryShortChannelIds_read(struct LDKu8slice ser);
23847 /* @internal */
23848 export function QueryShortChannelIds_read(ser: number): number {
23849         if(!isWasmInitialized) {
23850                 throw new Error("initializeWasm() must be awaited first!");
23851         }
23852         const nativeResponseValue = wasm.TS_QueryShortChannelIds_read(ser);
23853         return nativeResponseValue;
23854 }
23855         // struct LDKCVec_u8Z QueryShortChannelIds_write(const struct LDKQueryShortChannelIds *NONNULL_PTR obj);
23856 /* @internal */
23857 export function QueryShortChannelIds_write(obj: number): number {
23858         if(!isWasmInitialized) {
23859                 throw new Error("initializeWasm() must be awaited first!");
23860         }
23861         const nativeResponseValue = wasm.TS_QueryShortChannelIds_write(obj);
23862         return nativeResponseValue;
23863 }
23864         // struct LDKCVec_u8Z ReplyShortChannelIdsEnd_write(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR obj);
23865 /* @internal */
23866 export function ReplyShortChannelIdsEnd_write(obj: number): number {
23867         if(!isWasmInitialized) {
23868                 throw new Error("initializeWasm() must be awaited first!");
23869         }
23870         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_write(obj);
23871         return nativeResponseValue;
23872 }
23873         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ ReplyShortChannelIdsEnd_read(struct LDKu8slice ser);
23874 /* @internal */
23875 export function ReplyShortChannelIdsEnd_read(ser: number): number {
23876         if(!isWasmInitialized) {
23877                 throw new Error("initializeWasm() must be awaited first!");
23878         }
23879         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_read(ser);
23880         return nativeResponseValue;
23881 }
23882         // MUST_USE_RES uint32_t QueryChannelRange_end_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_arg);
23883 /* @internal */
23884 export function QueryChannelRange_end_blocknum(this_arg: number): number {
23885         if(!isWasmInitialized) {
23886                 throw new Error("initializeWasm() must be awaited first!");
23887         }
23888         const nativeResponseValue = wasm.TS_QueryChannelRange_end_blocknum(this_arg);
23889         return nativeResponseValue;
23890 }
23891         // struct LDKCVec_u8Z QueryChannelRange_write(const struct LDKQueryChannelRange *NONNULL_PTR obj);
23892 /* @internal */
23893 export function QueryChannelRange_write(obj: number): number {
23894         if(!isWasmInitialized) {
23895                 throw new Error("initializeWasm() must be awaited first!");
23896         }
23897         const nativeResponseValue = wasm.TS_QueryChannelRange_write(obj);
23898         return nativeResponseValue;
23899 }
23900         // struct LDKCResult_QueryChannelRangeDecodeErrorZ QueryChannelRange_read(struct LDKu8slice ser);
23901 /* @internal */
23902 export function QueryChannelRange_read(ser: number): number {
23903         if(!isWasmInitialized) {
23904                 throw new Error("initializeWasm() must be awaited first!");
23905         }
23906         const nativeResponseValue = wasm.TS_QueryChannelRange_read(ser);
23907         return nativeResponseValue;
23908 }
23909         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ ReplyChannelRange_read(struct LDKu8slice ser);
23910 /* @internal */
23911 export function ReplyChannelRange_read(ser: number): number {
23912         if(!isWasmInitialized) {
23913                 throw new Error("initializeWasm() must be awaited first!");
23914         }
23915         const nativeResponseValue = wasm.TS_ReplyChannelRange_read(ser);
23916         return nativeResponseValue;
23917 }
23918         // struct LDKCVec_u8Z ReplyChannelRange_write(const struct LDKReplyChannelRange *NONNULL_PTR obj);
23919 /* @internal */
23920 export function ReplyChannelRange_write(obj: number): number {
23921         if(!isWasmInitialized) {
23922                 throw new Error("initializeWasm() must be awaited first!");
23923         }
23924         const nativeResponseValue = wasm.TS_ReplyChannelRange_write(obj);
23925         return nativeResponseValue;
23926 }
23927         // struct LDKCVec_u8Z GossipTimestampFilter_write(const struct LDKGossipTimestampFilter *NONNULL_PTR obj);
23928 /* @internal */
23929 export function GossipTimestampFilter_write(obj: number): number {
23930         if(!isWasmInitialized) {
23931                 throw new Error("initializeWasm() must be awaited first!");
23932         }
23933         const nativeResponseValue = wasm.TS_GossipTimestampFilter_write(obj);
23934         return nativeResponseValue;
23935 }
23936         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ GossipTimestampFilter_read(struct LDKu8slice ser);
23937 /* @internal */
23938 export function GossipTimestampFilter_read(ser: number): number {
23939         if(!isWasmInitialized) {
23940                 throw new Error("initializeWasm() must be awaited first!");
23941         }
23942         const nativeResponseValue = wasm.TS_GossipTimestampFilter_read(ser);
23943         return nativeResponseValue;
23944 }
23945         // void CustomMessageHandler_free(struct LDKCustomMessageHandler this_ptr);
23946 /* @internal */
23947 export function CustomMessageHandler_free(this_ptr: number): void {
23948         if(!isWasmInitialized) {
23949                 throw new Error("initializeWasm() must be awaited first!");
23950         }
23951         const nativeResponseValue = wasm.TS_CustomMessageHandler_free(this_ptr);
23952         // debug statements here
23953 }
23954         // void IgnoringMessageHandler_free(struct LDKIgnoringMessageHandler this_obj);
23955 /* @internal */
23956 export function IgnoringMessageHandler_free(this_obj: number): void {
23957         if(!isWasmInitialized) {
23958                 throw new Error("initializeWasm() must be awaited first!");
23959         }
23960         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_free(this_obj);
23961         // debug statements here
23962 }
23963         // MUST_USE_RES struct LDKIgnoringMessageHandler IgnoringMessageHandler_new(void);
23964 /* @internal */
23965 export function IgnoringMessageHandler_new(): number {
23966         if(!isWasmInitialized) {
23967                 throw new Error("initializeWasm() must be awaited first!");
23968         }
23969         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_new();
23970         return nativeResponseValue;
23971 }
23972         // struct LDKMessageSendEventsProvider IgnoringMessageHandler_as_MessageSendEventsProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
23973 /* @internal */
23974 export function IgnoringMessageHandler_as_MessageSendEventsProvider(this_arg: number): number {
23975         if(!isWasmInitialized) {
23976                 throw new Error("initializeWasm() must be awaited first!");
23977         }
23978         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_MessageSendEventsProvider(this_arg);
23979         return nativeResponseValue;
23980 }
23981         // struct LDKRoutingMessageHandler IgnoringMessageHandler_as_RoutingMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
23982 /* @internal */
23983 export function IgnoringMessageHandler_as_RoutingMessageHandler(this_arg: number): number {
23984         if(!isWasmInitialized) {
23985                 throw new Error("initializeWasm() must be awaited first!");
23986         }
23987         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_RoutingMessageHandler(this_arg);
23988         return nativeResponseValue;
23989 }
23990         // struct LDKCustomMessageReader IgnoringMessageHandler_as_CustomMessageReader(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
23991 /* @internal */
23992 export function IgnoringMessageHandler_as_CustomMessageReader(this_arg: number): number {
23993         if(!isWasmInitialized) {
23994                 throw new Error("initializeWasm() must be awaited first!");
23995         }
23996         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_CustomMessageReader(this_arg);
23997         return nativeResponseValue;
23998 }
23999         // struct LDKCustomMessageHandler IgnoringMessageHandler_as_CustomMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
24000 /* @internal */
24001 export function IgnoringMessageHandler_as_CustomMessageHandler(this_arg: number): number {
24002         if(!isWasmInitialized) {
24003                 throw new Error("initializeWasm() must be awaited first!");
24004         }
24005         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_CustomMessageHandler(this_arg);
24006         return nativeResponseValue;
24007 }
24008         // void ErroringMessageHandler_free(struct LDKErroringMessageHandler this_obj);
24009 /* @internal */
24010 export function ErroringMessageHandler_free(this_obj: number): void {
24011         if(!isWasmInitialized) {
24012                 throw new Error("initializeWasm() must be awaited first!");
24013         }
24014         const nativeResponseValue = wasm.TS_ErroringMessageHandler_free(this_obj);
24015         // debug statements here
24016 }
24017         // MUST_USE_RES struct LDKErroringMessageHandler ErroringMessageHandler_new(void);
24018 /* @internal */
24019 export function ErroringMessageHandler_new(): number {
24020         if(!isWasmInitialized) {
24021                 throw new Error("initializeWasm() must be awaited first!");
24022         }
24023         const nativeResponseValue = wasm.TS_ErroringMessageHandler_new();
24024         return nativeResponseValue;
24025 }
24026         // struct LDKMessageSendEventsProvider ErroringMessageHandler_as_MessageSendEventsProvider(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
24027 /* @internal */
24028 export function ErroringMessageHandler_as_MessageSendEventsProvider(this_arg: number): number {
24029         if(!isWasmInitialized) {
24030                 throw new Error("initializeWasm() must be awaited first!");
24031         }
24032         const nativeResponseValue = wasm.TS_ErroringMessageHandler_as_MessageSendEventsProvider(this_arg);
24033         return nativeResponseValue;
24034 }
24035         // struct LDKChannelMessageHandler ErroringMessageHandler_as_ChannelMessageHandler(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
24036 /* @internal */
24037 export function ErroringMessageHandler_as_ChannelMessageHandler(this_arg: number): number {
24038         if(!isWasmInitialized) {
24039                 throw new Error("initializeWasm() must be awaited first!");
24040         }
24041         const nativeResponseValue = wasm.TS_ErroringMessageHandler_as_ChannelMessageHandler(this_arg);
24042         return nativeResponseValue;
24043 }
24044         // void MessageHandler_free(struct LDKMessageHandler this_obj);
24045 /* @internal */
24046 export function MessageHandler_free(this_obj: number): void {
24047         if(!isWasmInitialized) {
24048                 throw new Error("initializeWasm() must be awaited first!");
24049         }
24050         const nativeResponseValue = wasm.TS_MessageHandler_free(this_obj);
24051         // debug statements here
24052 }
24053         // const struct LDKChannelMessageHandler *MessageHandler_get_chan_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
24054 /* @internal */
24055 export function MessageHandler_get_chan_handler(this_ptr: number): number {
24056         if(!isWasmInitialized) {
24057                 throw new Error("initializeWasm() must be awaited first!");
24058         }
24059         const nativeResponseValue = wasm.TS_MessageHandler_get_chan_handler(this_ptr);
24060         return nativeResponseValue;
24061 }
24062         // void MessageHandler_set_chan_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKChannelMessageHandler val);
24063 /* @internal */
24064 export function MessageHandler_set_chan_handler(this_ptr: number, val: number): void {
24065         if(!isWasmInitialized) {
24066                 throw new Error("initializeWasm() must be awaited first!");
24067         }
24068         const nativeResponseValue = wasm.TS_MessageHandler_set_chan_handler(this_ptr, val);
24069         // debug statements here
24070 }
24071         // const struct LDKRoutingMessageHandler *MessageHandler_get_route_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
24072 /* @internal */
24073 export function MessageHandler_get_route_handler(this_ptr: number): number {
24074         if(!isWasmInitialized) {
24075                 throw new Error("initializeWasm() must be awaited first!");
24076         }
24077         const nativeResponseValue = wasm.TS_MessageHandler_get_route_handler(this_ptr);
24078         return nativeResponseValue;
24079 }
24080         // void MessageHandler_set_route_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKRoutingMessageHandler val);
24081 /* @internal */
24082 export function MessageHandler_set_route_handler(this_ptr: number, val: number): void {
24083         if(!isWasmInitialized) {
24084                 throw new Error("initializeWasm() must be awaited first!");
24085         }
24086         const nativeResponseValue = wasm.TS_MessageHandler_set_route_handler(this_ptr, val);
24087         // debug statements here
24088 }
24089         // MUST_USE_RES struct LDKMessageHandler MessageHandler_new(struct LDKChannelMessageHandler chan_handler_arg, struct LDKRoutingMessageHandler route_handler_arg);
24090 /* @internal */
24091 export function MessageHandler_new(chan_handler_arg: number, route_handler_arg: number): number {
24092         if(!isWasmInitialized) {
24093                 throw new Error("initializeWasm() must be awaited first!");
24094         }
24095         const nativeResponseValue = wasm.TS_MessageHandler_new(chan_handler_arg, route_handler_arg);
24096         return nativeResponseValue;
24097 }
24098         // uintptr_t SocketDescriptor_clone_ptr(LDKSocketDescriptor *NONNULL_PTR arg);
24099 /* @internal */
24100 export function SocketDescriptor_clone_ptr(arg: number): number {
24101         if(!isWasmInitialized) {
24102                 throw new Error("initializeWasm() must be awaited first!");
24103         }
24104         const nativeResponseValue = wasm.TS_SocketDescriptor_clone_ptr(arg);
24105         return nativeResponseValue;
24106 }
24107         // struct LDKSocketDescriptor SocketDescriptor_clone(const struct LDKSocketDescriptor *NONNULL_PTR orig);
24108 /* @internal */
24109 export function SocketDescriptor_clone(orig: number): number {
24110         if(!isWasmInitialized) {
24111                 throw new Error("initializeWasm() must be awaited first!");
24112         }
24113         const nativeResponseValue = wasm.TS_SocketDescriptor_clone(orig);
24114         return nativeResponseValue;
24115 }
24116         // void SocketDescriptor_free(struct LDKSocketDescriptor this_ptr);
24117 /* @internal */
24118 export function SocketDescriptor_free(this_ptr: number): void {
24119         if(!isWasmInitialized) {
24120                 throw new Error("initializeWasm() must be awaited first!");
24121         }
24122         const nativeResponseValue = wasm.TS_SocketDescriptor_free(this_ptr);
24123         // debug statements here
24124 }
24125         // void PeerHandleError_free(struct LDKPeerHandleError this_obj);
24126 /* @internal */
24127 export function PeerHandleError_free(this_obj: number): void {
24128         if(!isWasmInitialized) {
24129                 throw new Error("initializeWasm() must be awaited first!");
24130         }
24131         const nativeResponseValue = wasm.TS_PeerHandleError_free(this_obj);
24132         // debug statements here
24133 }
24134         // bool PeerHandleError_get_no_connection_possible(const struct LDKPeerHandleError *NONNULL_PTR this_ptr);
24135 /* @internal */
24136 export function PeerHandleError_get_no_connection_possible(this_ptr: number): boolean {
24137         if(!isWasmInitialized) {
24138                 throw new Error("initializeWasm() must be awaited first!");
24139         }
24140         const nativeResponseValue = wasm.TS_PeerHandleError_get_no_connection_possible(this_ptr);
24141         return nativeResponseValue;
24142 }
24143         // void PeerHandleError_set_no_connection_possible(struct LDKPeerHandleError *NONNULL_PTR this_ptr, bool val);
24144 /* @internal */
24145 export function PeerHandleError_set_no_connection_possible(this_ptr: number, val: boolean): void {
24146         if(!isWasmInitialized) {
24147                 throw new Error("initializeWasm() must be awaited first!");
24148         }
24149         const nativeResponseValue = wasm.TS_PeerHandleError_set_no_connection_possible(this_ptr, val);
24150         // debug statements here
24151 }
24152         // MUST_USE_RES struct LDKPeerHandleError PeerHandleError_new(bool no_connection_possible_arg);
24153 /* @internal */
24154 export function PeerHandleError_new(no_connection_possible_arg: boolean): number {
24155         if(!isWasmInitialized) {
24156                 throw new Error("initializeWasm() must be awaited first!");
24157         }
24158         const nativeResponseValue = wasm.TS_PeerHandleError_new(no_connection_possible_arg);
24159         return nativeResponseValue;
24160 }
24161         // uintptr_t PeerHandleError_clone_ptr(LDKPeerHandleError *NONNULL_PTR arg);
24162 /* @internal */
24163 export function PeerHandleError_clone_ptr(arg: number): number {
24164         if(!isWasmInitialized) {
24165                 throw new Error("initializeWasm() must be awaited first!");
24166         }
24167         const nativeResponseValue = wasm.TS_PeerHandleError_clone_ptr(arg);
24168         return nativeResponseValue;
24169 }
24170         // struct LDKPeerHandleError PeerHandleError_clone(const struct LDKPeerHandleError *NONNULL_PTR orig);
24171 /* @internal */
24172 export function PeerHandleError_clone(orig: number): number {
24173         if(!isWasmInitialized) {
24174                 throw new Error("initializeWasm() must be awaited first!");
24175         }
24176         const nativeResponseValue = wasm.TS_PeerHandleError_clone(orig);
24177         return nativeResponseValue;
24178 }
24179         // void PeerManager_free(struct LDKPeerManager this_obj);
24180 /* @internal */
24181 export function PeerManager_free(this_obj: number): void {
24182         if(!isWasmInitialized) {
24183                 throw new Error("initializeWasm() must be awaited first!");
24184         }
24185         const nativeResponseValue = wasm.TS_PeerManager_free(this_obj);
24186         // debug statements here
24187 }
24188         // 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);
24189 /* @internal */
24190 export function PeerManager_new(message_handler: number, our_node_secret: number, ephemeral_random_data: number, logger: number, custom_message_handler: number): number {
24191         if(!isWasmInitialized) {
24192                 throw new Error("initializeWasm() must be awaited first!");
24193         }
24194         const nativeResponseValue = wasm.TS_PeerManager_new(message_handler, our_node_secret, ephemeral_random_data, logger, custom_message_handler);
24195         return nativeResponseValue;
24196 }
24197         // MUST_USE_RES struct LDKCVec_PublicKeyZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg);
24198 /* @internal */
24199 export function PeerManager_get_peer_node_ids(this_arg: number): number {
24200         if(!isWasmInitialized) {
24201                 throw new Error("initializeWasm() must be awaited first!");
24202         }
24203         const nativeResponseValue = wasm.TS_PeerManager_get_peer_node_ids(this_arg);
24204         return nativeResponseValue;
24205 }
24206         // 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, struct LDKCOption_NetAddressZ remote_network_address);
24207 /* @internal */
24208 export function PeerManager_new_outbound_connection(this_arg: number, their_node_id: number, descriptor: number, remote_network_address: number): number {
24209         if(!isWasmInitialized) {
24210                 throw new Error("initializeWasm() must be awaited first!");
24211         }
24212         const nativeResponseValue = wasm.TS_PeerManager_new_outbound_connection(this_arg, their_node_id, descriptor, remote_network_address);
24213         return nativeResponseValue;
24214 }
24215         // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_new_inbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor descriptor, struct LDKCOption_NetAddressZ remote_network_address);
24216 /* @internal */
24217 export function PeerManager_new_inbound_connection(this_arg: number, descriptor: number, remote_network_address: number): number {
24218         if(!isWasmInitialized) {
24219                 throw new Error("initializeWasm() must be awaited first!");
24220         }
24221         const nativeResponseValue = wasm.TS_PeerManager_new_inbound_connection(this_arg, descriptor, remote_network_address);
24222         return nativeResponseValue;
24223 }
24224         // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_write_buffer_space_avail(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR descriptor);
24225 /* @internal */
24226 export function PeerManager_write_buffer_space_avail(this_arg: number, descriptor: number): number {
24227         if(!isWasmInitialized) {
24228                 throw new Error("initializeWasm() must be awaited first!");
24229         }
24230         const nativeResponseValue = wasm.TS_PeerManager_write_buffer_space_avail(this_arg, descriptor);
24231         return nativeResponseValue;
24232 }
24233         // 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);
24234 /* @internal */
24235 export function PeerManager_read_event(this_arg: number, peer_descriptor: number, data: number): number {
24236         if(!isWasmInitialized) {
24237                 throw new Error("initializeWasm() must be awaited first!");
24238         }
24239         const nativeResponseValue = wasm.TS_PeerManager_read_event(this_arg, peer_descriptor, data);
24240         return nativeResponseValue;
24241 }
24242         // void PeerManager_process_events(const struct LDKPeerManager *NONNULL_PTR this_arg);
24243 /* @internal */
24244 export function PeerManager_process_events(this_arg: number): void {
24245         if(!isWasmInitialized) {
24246                 throw new Error("initializeWasm() must be awaited first!");
24247         }
24248         const nativeResponseValue = wasm.TS_PeerManager_process_events(this_arg);
24249         // debug statements here
24250 }
24251         // void PeerManager_socket_disconnected(const struct LDKPeerManager *NONNULL_PTR this_arg, const struct LDKSocketDescriptor *NONNULL_PTR descriptor);
24252 /* @internal */
24253 export function PeerManager_socket_disconnected(this_arg: number, descriptor: number): void {
24254         if(!isWasmInitialized) {
24255                 throw new Error("initializeWasm() must be awaited first!");
24256         }
24257         const nativeResponseValue = wasm.TS_PeerManager_socket_disconnected(this_arg, descriptor);
24258         // debug statements here
24259 }
24260         // void PeerManager_disconnect_by_node_id(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id, bool no_connection_possible);
24261 /* @internal */
24262 export function PeerManager_disconnect_by_node_id(this_arg: number, node_id: number, no_connection_possible: boolean): void {
24263         if(!isWasmInitialized) {
24264                 throw new Error("initializeWasm() must be awaited first!");
24265         }
24266         const nativeResponseValue = wasm.TS_PeerManager_disconnect_by_node_id(this_arg, node_id, no_connection_possible);
24267         // debug statements here
24268 }
24269         // void PeerManager_disconnect_all_peers(const struct LDKPeerManager *NONNULL_PTR this_arg);
24270 /* @internal */
24271 export function PeerManager_disconnect_all_peers(this_arg: number): void {
24272         if(!isWasmInitialized) {
24273                 throw new Error("initializeWasm() must be awaited first!");
24274         }
24275         const nativeResponseValue = wasm.TS_PeerManager_disconnect_all_peers(this_arg);
24276         // debug statements here
24277 }
24278         // void PeerManager_timer_tick_occurred(const struct LDKPeerManager *NONNULL_PTR this_arg);
24279 /* @internal */
24280 export function PeerManager_timer_tick_occurred(this_arg: number): void {
24281         if(!isWasmInitialized) {
24282                 throw new Error("initializeWasm() must be awaited first!");
24283         }
24284         const nativeResponseValue = wasm.TS_PeerManager_timer_tick_occurred(this_arg);
24285         // debug statements here
24286 }
24287         // uint64_t htlc_success_tx_weight(bool opt_anchors);
24288 /* @internal */
24289 export function htlc_success_tx_weight(opt_anchors: boolean): bigint {
24290         if(!isWasmInitialized) {
24291                 throw new Error("initializeWasm() must be awaited first!");
24292         }
24293         const nativeResponseValue = wasm.TS_htlc_success_tx_weight(opt_anchors);
24294         return nativeResponseValue;
24295 }
24296         // uint64_t htlc_timeout_tx_weight(bool opt_anchors);
24297 /* @internal */
24298 export function htlc_timeout_tx_weight(opt_anchors: boolean): bigint {
24299         if(!isWasmInitialized) {
24300                 throw new Error("initializeWasm() must be awaited first!");
24301         }
24302         const nativeResponseValue = wasm.TS_htlc_timeout_tx_weight(opt_anchors);
24303         return nativeResponseValue;
24304 }
24305         // struct LDKThirtyTwoBytes build_commitment_secret(const uint8_t (*commitment_seed)[32], uint64_t idx);
24306 /* @internal */
24307 export function build_commitment_secret(commitment_seed: number, idx: bigint): number {
24308         if(!isWasmInitialized) {
24309                 throw new Error("initializeWasm() must be awaited first!");
24310         }
24311         const nativeResponseValue = wasm.TS_build_commitment_secret(commitment_seed, idx);
24312         return nativeResponseValue;
24313 }
24314         // 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);
24315 /* @internal */
24316 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 {
24317         if(!isWasmInitialized) {
24318                 throw new Error("initializeWasm() must be awaited first!");
24319         }
24320         const nativeResponseValue = wasm.TS_build_closing_transaction(to_holder_value_sat, to_counterparty_value_sat, to_holder_script, to_counterparty_script, funding_outpoint);
24321         return nativeResponseValue;
24322 }
24323         // void CounterpartyCommitmentSecrets_free(struct LDKCounterpartyCommitmentSecrets this_obj);
24324 /* @internal */
24325 export function CounterpartyCommitmentSecrets_free(this_obj: number): void {
24326         if(!isWasmInitialized) {
24327                 throw new Error("initializeWasm() must be awaited first!");
24328         }
24329         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_free(this_obj);
24330         // debug statements here
24331 }
24332         // uintptr_t CounterpartyCommitmentSecrets_clone_ptr(LDKCounterpartyCommitmentSecrets *NONNULL_PTR arg);
24333 /* @internal */
24334 export function CounterpartyCommitmentSecrets_clone_ptr(arg: number): number {
24335         if(!isWasmInitialized) {
24336                 throw new Error("initializeWasm() must be awaited first!");
24337         }
24338         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_clone_ptr(arg);
24339         return nativeResponseValue;
24340 }
24341         // struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_clone(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR orig);
24342 /* @internal */
24343 export function CounterpartyCommitmentSecrets_clone(orig: number): number {
24344         if(!isWasmInitialized) {
24345                 throw new Error("initializeWasm() must be awaited first!");
24346         }
24347         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_clone(orig);
24348         return nativeResponseValue;
24349 }
24350         // MUST_USE_RES struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_new(void);
24351 /* @internal */
24352 export function CounterpartyCommitmentSecrets_new(): number {
24353         if(!isWasmInitialized) {
24354                 throw new Error("initializeWasm() must be awaited first!");
24355         }
24356         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_new();
24357         return nativeResponseValue;
24358 }
24359         // MUST_USE_RES uint64_t CounterpartyCommitmentSecrets_get_min_seen_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg);
24360 /* @internal */
24361 export function CounterpartyCommitmentSecrets_get_min_seen_secret(this_arg: number): bigint {
24362         if(!isWasmInitialized) {
24363                 throw new Error("initializeWasm() must be awaited first!");
24364         }
24365         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_get_min_seen_secret(this_arg);
24366         return nativeResponseValue;
24367 }
24368         // MUST_USE_RES struct LDKCResult_NoneNoneZ CounterpartyCommitmentSecrets_provide_secret(struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx, struct LDKThirtyTwoBytes secret);
24369 /* @internal */
24370 export function CounterpartyCommitmentSecrets_provide_secret(this_arg: number, idx: bigint, secret: number): number {
24371         if(!isWasmInitialized) {
24372                 throw new Error("initializeWasm() must be awaited first!");
24373         }
24374         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_provide_secret(this_arg, idx, secret);
24375         return nativeResponseValue;
24376 }
24377         // MUST_USE_RES struct LDKThirtyTwoBytes CounterpartyCommitmentSecrets_get_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx);
24378 /* @internal */
24379 export function CounterpartyCommitmentSecrets_get_secret(this_arg: number, idx: bigint): number {
24380         if(!isWasmInitialized) {
24381                 throw new Error("initializeWasm() must be awaited first!");
24382         }
24383         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_get_secret(this_arg, idx);
24384         return nativeResponseValue;
24385 }
24386         // struct LDKCVec_u8Z CounterpartyCommitmentSecrets_write(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR obj);
24387 /* @internal */
24388 export function CounterpartyCommitmentSecrets_write(obj: number): number {
24389         if(!isWasmInitialized) {
24390                 throw new Error("initializeWasm() must be awaited first!");
24391         }
24392         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_write(obj);
24393         return nativeResponseValue;
24394 }
24395         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CounterpartyCommitmentSecrets_read(struct LDKu8slice ser);
24396 /* @internal */
24397 export function CounterpartyCommitmentSecrets_read(ser: number): number {
24398         if(!isWasmInitialized) {
24399                 throw new Error("initializeWasm() must be awaited first!");
24400         }
24401         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_read(ser);
24402         return nativeResponseValue;
24403 }
24404         // struct LDKCResult_SecretKeyErrorZ derive_private_key(struct LDKPublicKey per_commitment_point, const uint8_t (*base_secret)[32]);
24405 /* @internal */
24406 export function derive_private_key(per_commitment_point: number, base_secret: number): number {
24407         if(!isWasmInitialized) {
24408                 throw new Error("initializeWasm() must be awaited first!");
24409         }
24410         const nativeResponseValue = wasm.TS_derive_private_key(per_commitment_point, base_secret);
24411         return nativeResponseValue;
24412 }
24413         // struct LDKCResult_PublicKeyErrorZ derive_public_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey base_point);
24414 /* @internal */
24415 export function derive_public_key(per_commitment_point: number, base_point: number): number {
24416         if(!isWasmInitialized) {
24417                 throw new Error("initializeWasm() must be awaited first!");
24418         }
24419         const nativeResponseValue = wasm.TS_derive_public_key(per_commitment_point, base_point);
24420         return nativeResponseValue;
24421 }
24422         // struct LDKCResult_SecretKeyErrorZ derive_private_revocation_key(const uint8_t (*per_commitment_secret)[32], const uint8_t (*countersignatory_revocation_base_secret)[32]);
24423 /* @internal */
24424 export function derive_private_revocation_key(per_commitment_secret: number, countersignatory_revocation_base_secret: number): number {
24425         if(!isWasmInitialized) {
24426                 throw new Error("initializeWasm() must be awaited first!");
24427         }
24428         const nativeResponseValue = wasm.TS_derive_private_revocation_key(per_commitment_secret, countersignatory_revocation_base_secret);
24429         return nativeResponseValue;
24430 }
24431         // struct LDKCResult_PublicKeyErrorZ derive_public_revocation_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey countersignatory_revocation_base_point);
24432 /* @internal */
24433 export function derive_public_revocation_key(per_commitment_point: number, countersignatory_revocation_base_point: number): number {
24434         if(!isWasmInitialized) {
24435                 throw new Error("initializeWasm() must be awaited first!");
24436         }
24437         const nativeResponseValue = wasm.TS_derive_public_revocation_key(per_commitment_point, countersignatory_revocation_base_point);
24438         return nativeResponseValue;
24439 }
24440         // void TxCreationKeys_free(struct LDKTxCreationKeys this_obj);
24441 /* @internal */
24442 export function TxCreationKeys_free(this_obj: number): void {
24443         if(!isWasmInitialized) {
24444                 throw new Error("initializeWasm() must be awaited first!");
24445         }
24446         const nativeResponseValue = wasm.TS_TxCreationKeys_free(this_obj);
24447         // debug statements here
24448 }
24449         // struct LDKPublicKey TxCreationKeys_get_per_commitment_point(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
24450 /* @internal */
24451 export function TxCreationKeys_get_per_commitment_point(this_ptr: number): number {
24452         if(!isWasmInitialized) {
24453                 throw new Error("initializeWasm() must be awaited first!");
24454         }
24455         const nativeResponseValue = wasm.TS_TxCreationKeys_get_per_commitment_point(this_ptr);
24456         return nativeResponseValue;
24457 }
24458         // void TxCreationKeys_set_per_commitment_point(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24459 /* @internal */
24460 export function TxCreationKeys_set_per_commitment_point(this_ptr: number, val: number): void {
24461         if(!isWasmInitialized) {
24462                 throw new Error("initializeWasm() must be awaited first!");
24463         }
24464         const nativeResponseValue = wasm.TS_TxCreationKeys_set_per_commitment_point(this_ptr, val);
24465         // debug statements here
24466 }
24467         // struct LDKPublicKey TxCreationKeys_get_revocation_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
24468 /* @internal */
24469 export function TxCreationKeys_get_revocation_key(this_ptr: number): number {
24470         if(!isWasmInitialized) {
24471                 throw new Error("initializeWasm() must be awaited first!");
24472         }
24473         const nativeResponseValue = wasm.TS_TxCreationKeys_get_revocation_key(this_ptr);
24474         return nativeResponseValue;
24475 }
24476         // void TxCreationKeys_set_revocation_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24477 /* @internal */
24478 export function TxCreationKeys_set_revocation_key(this_ptr: number, val: number): void {
24479         if(!isWasmInitialized) {
24480                 throw new Error("initializeWasm() must be awaited first!");
24481         }
24482         const nativeResponseValue = wasm.TS_TxCreationKeys_set_revocation_key(this_ptr, val);
24483         // debug statements here
24484 }
24485         // struct LDKPublicKey TxCreationKeys_get_broadcaster_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
24486 /* @internal */
24487 export function TxCreationKeys_get_broadcaster_htlc_key(this_ptr: number): number {
24488         if(!isWasmInitialized) {
24489                 throw new Error("initializeWasm() must be awaited first!");
24490         }
24491         const nativeResponseValue = wasm.TS_TxCreationKeys_get_broadcaster_htlc_key(this_ptr);
24492         return nativeResponseValue;
24493 }
24494         // void TxCreationKeys_set_broadcaster_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24495 /* @internal */
24496 export function TxCreationKeys_set_broadcaster_htlc_key(this_ptr: number, val: number): void {
24497         if(!isWasmInitialized) {
24498                 throw new Error("initializeWasm() must be awaited first!");
24499         }
24500         const nativeResponseValue = wasm.TS_TxCreationKeys_set_broadcaster_htlc_key(this_ptr, val);
24501         // debug statements here
24502 }
24503         // struct LDKPublicKey TxCreationKeys_get_countersignatory_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
24504 /* @internal */
24505 export function TxCreationKeys_get_countersignatory_htlc_key(this_ptr: number): number {
24506         if(!isWasmInitialized) {
24507                 throw new Error("initializeWasm() must be awaited first!");
24508         }
24509         const nativeResponseValue = wasm.TS_TxCreationKeys_get_countersignatory_htlc_key(this_ptr);
24510         return nativeResponseValue;
24511 }
24512         // void TxCreationKeys_set_countersignatory_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24513 /* @internal */
24514 export function TxCreationKeys_set_countersignatory_htlc_key(this_ptr: number, val: number): void {
24515         if(!isWasmInitialized) {
24516                 throw new Error("initializeWasm() must be awaited first!");
24517         }
24518         const nativeResponseValue = wasm.TS_TxCreationKeys_set_countersignatory_htlc_key(this_ptr, val);
24519         // debug statements here
24520 }
24521         // struct LDKPublicKey TxCreationKeys_get_broadcaster_delayed_payment_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
24522 /* @internal */
24523 export function TxCreationKeys_get_broadcaster_delayed_payment_key(this_ptr: number): number {
24524         if(!isWasmInitialized) {
24525                 throw new Error("initializeWasm() must be awaited first!");
24526         }
24527         const nativeResponseValue = wasm.TS_TxCreationKeys_get_broadcaster_delayed_payment_key(this_ptr);
24528         return nativeResponseValue;
24529 }
24530         // void TxCreationKeys_set_broadcaster_delayed_payment_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24531 /* @internal */
24532 export function TxCreationKeys_set_broadcaster_delayed_payment_key(this_ptr: number, val: number): void {
24533         if(!isWasmInitialized) {
24534                 throw new Error("initializeWasm() must be awaited first!");
24535         }
24536         const nativeResponseValue = wasm.TS_TxCreationKeys_set_broadcaster_delayed_payment_key(this_ptr, val);
24537         // debug statements here
24538 }
24539         // 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);
24540 /* @internal */
24541 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 {
24542         if(!isWasmInitialized) {
24543                 throw new Error("initializeWasm() must be awaited first!");
24544         }
24545         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);
24546         return nativeResponseValue;
24547 }
24548         // uintptr_t TxCreationKeys_clone_ptr(LDKTxCreationKeys *NONNULL_PTR arg);
24549 /* @internal */
24550 export function TxCreationKeys_clone_ptr(arg: number): number {
24551         if(!isWasmInitialized) {
24552                 throw new Error("initializeWasm() must be awaited first!");
24553         }
24554         const nativeResponseValue = wasm.TS_TxCreationKeys_clone_ptr(arg);
24555         return nativeResponseValue;
24556 }
24557         // struct LDKTxCreationKeys TxCreationKeys_clone(const struct LDKTxCreationKeys *NONNULL_PTR orig);
24558 /* @internal */
24559 export function TxCreationKeys_clone(orig: number): number {
24560         if(!isWasmInitialized) {
24561                 throw new Error("initializeWasm() must be awaited first!");
24562         }
24563         const nativeResponseValue = wasm.TS_TxCreationKeys_clone(orig);
24564         return nativeResponseValue;
24565 }
24566         // struct LDKCVec_u8Z TxCreationKeys_write(const struct LDKTxCreationKeys *NONNULL_PTR obj);
24567 /* @internal */
24568 export function TxCreationKeys_write(obj: number): number {
24569         if(!isWasmInitialized) {
24570                 throw new Error("initializeWasm() must be awaited first!");
24571         }
24572         const nativeResponseValue = wasm.TS_TxCreationKeys_write(obj);
24573         return nativeResponseValue;
24574 }
24575         // struct LDKCResult_TxCreationKeysDecodeErrorZ TxCreationKeys_read(struct LDKu8slice ser);
24576 /* @internal */
24577 export function TxCreationKeys_read(ser: number): number {
24578         if(!isWasmInitialized) {
24579                 throw new Error("initializeWasm() must be awaited first!");
24580         }
24581         const nativeResponseValue = wasm.TS_TxCreationKeys_read(ser);
24582         return nativeResponseValue;
24583 }
24584         // void ChannelPublicKeys_free(struct LDKChannelPublicKeys this_obj);
24585 /* @internal */
24586 export function ChannelPublicKeys_free(this_obj: number): void {
24587         if(!isWasmInitialized) {
24588                 throw new Error("initializeWasm() must be awaited first!");
24589         }
24590         const nativeResponseValue = wasm.TS_ChannelPublicKeys_free(this_obj);
24591         // debug statements here
24592 }
24593         // struct LDKPublicKey ChannelPublicKeys_get_funding_pubkey(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
24594 /* @internal */
24595 export function ChannelPublicKeys_get_funding_pubkey(this_ptr: number): number {
24596         if(!isWasmInitialized) {
24597                 throw new Error("initializeWasm() must be awaited first!");
24598         }
24599         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_funding_pubkey(this_ptr);
24600         return nativeResponseValue;
24601 }
24602         // void ChannelPublicKeys_set_funding_pubkey(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24603 /* @internal */
24604 export function ChannelPublicKeys_set_funding_pubkey(this_ptr: number, val: number): void {
24605         if(!isWasmInitialized) {
24606                 throw new Error("initializeWasm() must be awaited first!");
24607         }
24608         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_funding_pubkey(this_ptr, val);
24609         // debug statements here
24610 }
24611         // struct LDKPublicKey ChannelPublicKeys_get_revocation_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
24612 /* @internal */
24613 export function ChannelPublicKeys_get_revocation_basepoint(this_ptr: number): number {
24614         if(!isWasmInitialized) {
24615                 throw new Error("initializeWasm() must be awaited first!");
24616         }
24617         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_revocation_basepoint(this_ptr);
24618         return nativeResponseValue;
24619 }
24620         // void ChannelPublicKeys_set_revocation_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24621 /* @internal */
24622 export function ChannelPublicKeys_set_revocation_basepoint(this_ptr: number, val: number): void {
24623         if(!isWasmInitialized) {
24624                 throw new Error("initializeWasm() must be awaited first!");
24625         }
24626         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_revocation_basepoint(this_ptr, val);
24627         // debug statements here
24628 }
24629         // struct LDKPublicKey ChannelPublicKeys_get_payment_point(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
24630 /* @internal */
24631 export function ChannelPublicKeys_get_payment_point(this_ptr: number): number {
24632         if(!isWasmInitialized) {
24633                 throw new Error("initializeWasm() must be awaited first!");
24634         }
24635         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_payment_point(this_ptr);
24636         return nativeResponseValue;
24637 }
24638         // void ChannelPublicKeys_set_payment_point(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24639 /* @internal */
24640 export function ChannelPublicKeys_set_payment_point(this_ptr: number, val: number): void {
24641         if(!isWasmInitialized) {
24642                 throw new Error("initializeWasm() must be awaited first!");
24643         }
24644         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_payment_point(this_ptr, val);
24645         // debug statements here
24646 }
24647         // struct LDKPublicKey ChannelPublicKeys_get_delayed_payment_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
24648 /* @internal */
24649 export function ChannelPublicKeys_get_delayed_payment_basepoint(this_ptr: number): number {
24650         if(!isWasmInitialized) {
24651                 throw new Error("initializeWasm() must be awaited first!");
24652         }
24653         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_delayed_payment_basepoint(this_ptr);
24654         return nativeResponseValue;
24655 }
24656         // void ChannelPublicKeys_set_delayed_payment_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24657 /* @internal */
24658 export function ChannelPublicKeys_set_delayed_payment_basepoint(this_ptr: number, val: number): void {
24659         if(!isWasmInitialized) {
24660                 throw new Error("initializeWasm() must be awaited first!");
24661         }
24662         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_delayed_payment_basepoint(this_ptr, val);
24663         // debug statements here
24664 }
24665         // struct LDKPublicKey ChannelPublicKeys_get_htlc_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
24666 /* @internal */
24667 export function ChannelPublicKeys_get_htlc_basepoint(this_ptr: number): number {
24668         if(!isWasmInitialized) {
24669                 throw new Error("initializeWasm() must be awaited first!");
24670         }
24671         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_htlc_basepoint(this_ptr);
24672         return nativeResponseValue;
24673 }
24674         // void ChannelPublicKeys_set_htlc_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24675 /* @internal */
24676 export function ChannelPublicKeys_set_htlc_basepoint(this_ptr: number, val: number): void {
24677         if(!isWasmInitialized) {
24678                 throw new Error("initializeWasm() must be awaited first!");
24679         }
24680         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_htlc_basepoint(this_ptr, val);
24681         // debug statements here
24682 }
24683         // 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);
24684 /* @internal */
24685 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 {
24686         if(!isWasmInitialized) {
24687                 throw new Error("initializeWasm() must be awaited first!");
24688         }
24689         const nativeResponseValue = wasm.TS_ChannelPublicKeys_new(funding_pubkey_arg, revocation_basepoint_arg, payment_point_arg, delayed_payment_basepoint_arg, htlc_basepoint_arg);
24690         return nativeResponseValue;
24691 }
24692         // uintptr_t ChannelPublicKeys_clone_ptr(LDKChannelPublicKeys *NONNULL_PTR arg);
24693 /* @internal */
24694 export function ChannelPublicKeys_clone_ptr(arg: number): number {
24695         if(!isWasmInitialized) {
24696                 throw new Error("initializeWasm() must be awaited first!");
24697         }
24698         const nativeResponseValue = wasm.TS_ChannelPublicKeys_clone_ptr(arg);
24699         return nativeResponseValue;
24700 }
24701         // struct LDKChannelPublicKeys ChannelPublicKeys_clone(const struct LDKChannelPublicKeys *NONNULL_PTR orig);
24702 /* @internal */
24703 export function ChannelPublicKeys_clone(orig: number): number {
24704         if(!isWasmInitialized) {
24705                 throw new Error("initializeWasm() must be awaited first!");
24706         }
24707         const nativeResponseValue = wasm.TS_ChannelPublicKeys_clone(orig);
24708         return nativeResponseValue;
24709 }
24710         // struct LDKCVec_u8Z ChannelPublicKeys_write(const struct LDKChannelPublicKeys *NONNULL_PTR obj);
24711 /* @internal */
24712 export function ChannelPublicKeys_write(obj: number): number {
24713         if(!isWasmInitialized) {
24714                 throw new Error("initializeWasm() must be awaited first!");
24715         }
24716         const nativeResponseValue = wasm.TS_ChannelPublicKeys_write(obj);
24717         return nativeResponseValue;
24718 }
24719         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ ChannelPublicKeys_read(struct LDKu8slice ser);
24720 /* @internal */
24721 export function ChannelPublicKeys_read(ser: number): number {
24722         if(!isWasmInitialized) {
24723                 throw new Error("initializeWasm() must be awaited first!");
24724         }
24725         const nativeResponseValue = wasm.TS_ChannelPublicKeys_read(ser);
24726         return nativeResponseValue;
24727 }
24728         // 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);
24729 /* @internal */
24730 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 {
24731         if(!isWasmInitialized) {
24732                 throw new Error("initializeWasm() must be awaited first!");
24733         }
24734         const nativeResponseValue = wasm.TS_TxCreationKeys_derive_new(per_commitment_point, broadcaster_delayed_payment_base, broadcaster_htlc_base, countersignatory_revocation_base, countersignatory_htlc_base);
24735         return nativeResponseValue;
24736 }
24737         // 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);
24738 /* @internal */
24739 export function TxCreationKeys_from_channel_static_keys(per_commitment_point: number, broadcaster_keys: number, countersignatory_keys: number): number {
24740         if(!isWasmInitialized) {
24741                 throw new Error("initializeWasm() must be awaited first!");
24742         }
24743         const nativeResponseValue = wasm.TS_TxCreationKeys_from_channel_static_keys(per_commitment_point, broadcaster_keys, countersignatory_keys);
24744         return nativeResponseValue;
24745 }
24746         // struct LDKCVec_u8Z get_revokeable_redeemscript(struct LDKPublicKey revocation_key, uint16_t contest_delay, struct LDKPublicKey broadcaster_delayed_payment_key);
24747 /* @internal */
24748 export function get_revokeable_redeemscript(revocation_key: number, contest_delay: number, broadcaster_delayed_payment_key: number): number {
24749         if(!isWasmInitialized) {
24750                 throw new Error("initializeWasm() must be awaited first!");
24751         }
24752         const nativeResponseValue = wasm.TS_get_revokeable_redeemscript(revocation_key, contest_delay, broadcaster_delayed_payment_key);
24753         return nativeResponseValue;
24754 }
24755         // void HTLCOutputInCommitment_free(struct LDKHTLCOutputInCommitment this_obj);
24756 /* @internal */
24757 export function HTLCOutputInCommitment_free(this_obj: number): void {
24758         if(!isWasmInitialized) {
24759                 throw new Error("initializeWasm() must be awaited first!");
24760         }
24761         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_free(this_obj);
24762         // debug statements here
24763 }
24764         // bool HTLCOutputInCommitment_get_offered(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
24765 /* @internal */
24766 export function HTLCOutputInCommitment_get_offered(this_ptr: number): boolean {
24767         if(!isWasmInitialized) {
24768                 throw new Error("initializeWasm() must be awaited first!");
24769         }
24770         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_offered(this_ptr);
24771         return nativeResponseValue;
24772 }
24773         // void HTLCOutputInCommitment_set_offered(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, bool val);
24774 /* @internal */
24775 export function HTLCOutputInCommitment_set_offered(this_ptr: number, val: boolean): void {
24776         if(!isWasmInitialized) {
24777                 throw new Error("initializeWasm() must be awaited first!");
24778         }
24779         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_offered(this_ptr, val);
24780         // debug statements here
24781 }
24782         // uint64_t HTLCOutputInCommitment_get_amount_msat(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
24783 /* @internal */
24784 export function HTLCOutputInCommitment_get_amount_msat(this_ptr: number): bigint {
24785         if(!isWasmInitialized) {
24786                 throw new Error("initializeWasm() must be awaited first!");
24787         }
24788         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_amount_msat(this_ptr);
24789         return nativeResponseValue;
24790 }
24791         // void HTLCOutputInCommitment_set_amount_msat(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint64_t val);
24792 /* @internal */
24793 export function HTLCOutputInCommitment_set_amount_msat(this_ptr: number, val: bigint): void {
24794         if(!isWasmInitialized) {
24795                 throw new Error("initializeWasm() must be awaited first!");
24796         }
24797         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_amount_msat(this_ptr, val);
24798         // debug statements here
24799 }
24800         // uint32_t HTLCOutputInCommitment_get_cltv_expiry(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
24801 /* @internal */
24802 export function HTLCOutputInCommitment_get_cltv_expiry(this_ptr: number): number {
24803         if(!isWasmInitialized) {
24804                 throw new Error("initializeWasm() must be awaited first!");
24805         }
24806         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_cltv_expiry(this_ptr);
24807         return nativeResponseValue;
24808 }
24809         // void HTLCOutputInCommitment_set_cltv_expiry(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint32_t val);
24810 /* @internal */
24811 export function HTLCOutputInCommitment_set_cltv_expiry(this_ptr: number, val: number): void {
24812         if(!isWasmInitialized) {
24813                 throw new Error("initializeWasm() must be awaited first!");
24814         }
24815         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_cltv_expiry(this_ptr, val);
24816         // debug statements here
24817 }
24818         // const uint8_t (*HTLCOutputInCommitment_get_payment_hash(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr))[32];
24819 /* @internal */
24820 export function HTLCOutputInCommitment_get_payment_hash(this_ptr: number): number {
24821         if(!isWasmInitialized) {
24822                 throw new Error("initializeWasm() must be awaited first!");
24823         }
24824         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_payment_hash(this_ptr);
24825         return nativeResponseValue;
24826 }
24827         // void HTLCOutputInCommitment_set_payment_hash(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
24828 /* @internal */
24829 export function HTLCOutputInCommitment_set_payment_hash(this_ptr: number, val: number): void {
24830         if(!isWasmInitialized) {
24831                 throw new Error("initializeWasm() must be awaited first!");
24832         }
24833         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_payment_hash(this_ptr, val);
24834         // debug statements here
24835 }
24836         // struct LDKCOption_u32Z HTLCOutputInCommitment_get_transaction_output_index(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
24837 /* @internal */
24838 export function HTLCOutputInCommitment_get_transaction_output_index(this_ptr: number): number {
24839         if(!isWasmInitialized) {
24840                 throw new Error("initializeWasm() must be awaited first!");
24841         }
24842         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_transaction_output_index(this_ptr);
24843         return nativeResponseValue;
24844 }
24845         // void HTLCOutputInCommitment_set_transaction_output_index(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
24846 /* @internal */
24847 export function HTLCOutputInCommitment_set_transaction_output_index(this_ptr: number, val: number): void {
24848         if(!isWasmInitialized) {
24849                 throw new Error("initializeWasm() must be awaited first!");
24850         }
24851         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_transaction_output_index(this_ptr, val);
24852         // debug statements here
24853 }
24854         // 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);
24855 /* @internal */
24856 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 {
24857         if(!isWasmInitialized) {
24858                 throw new Error("initializeWasm() must be awaited first!");
24859         }
24860         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_new(offered_arg, amount_msat_arg, cltv_expiry_arg, payment_hash_arg, transaction_output_index_arg);
24861         return nativeResponseValue;
24862 }
24863         // uintptr_t HTLCOutputInCommitment_clone_ptr(LDKHTLCOutputInCommitment *NONNULL_PTR arg);
24864 /* @internal */
24865 export function HTLCOutputInCommitment_clone_ptr(arg: number): number {
24866         if(!isWasmInitialized) {
24867                 throw new Error("initializeWasm() must be awaited first!");
24868         }
24869         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_clone_ptr(arg);
24870         return nativeResponseValue;
24871 }
24872         // struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_clone(const struct LDKHTLCOutputInCommitment *NONNULL_PTR orig);
24873 /* @internal */
24874 export function HTLCOutputInCommitment_clone(orig: number): number {
24875         if(!isWasmInitialized) {
24876                 throw new Error("initializeWasm() must be awaited first!");
24877         }
24878         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_clone(orig);
24879         return nativeResponseValue;
24880 }
24881         // struct LDKCVec_u8Z HTLCOutputInCommitment_write(const struct LDKHTLCOutputInCommitment *NONNULL_PTR obj);
24882 /* @internal */
24883 export function HTLCOutputInCommitment_write(obj: number): number {
24884         if(!isWasmInitialized) {
24885                 throw new Error("initializeWasm() must be awaited first!");
24886         }
24887         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_write(obj);
24888         return nativeResponseValue;
24889 }
24890         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ HTLCOutputInCommitment_read(struct LDKu8slice ser);
24891 /* @internal */
24892 export function HTLCOutputInCommitment_read(ser: number): number {
24893         if(!isWasmInitialized) {
24894                 throw new Error("initializeWasm() must be awaited first!");
24895         }
24896         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_read(ser);
24897         return nativeResponseValue;
24898 }
24899         // struct LDKCVec_u8Z get_htlc_redeemscript(const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, bool opt_anchors, const struct LDKTxCreationKeys *NONNULL_PTR keys);
24900 /* @internal */
24901 export function get_htlc_redeemscript(htlc: number, opt_anchors: boolean, keys: number): number {
24902         if(!isWasmInitialized) {
24903                 throw new Error("initializeWasm() must be awaited first!");
24904         }
24905         const nativeResponseValue = wasm.TS_get_htlc_redeemscript(htlc, opt_anchors, keys);
24906         return nativeResponseValue;
24907 }
24908         // struct LDKCVec_u8Z make_funding_redeemscript(struct LDKPublicKey broadcaster, struct LDKPublicKey countersignatory);
24909 /* @internal */
24910 export function make_funding_redeemscript(broadcaster: number, countersignatory: number): number {
24911         if(!isWasmInitialized) {
24912                 throw new Error("initializeWasm() must be awaited first!");
24913         }
24914         const nativeResponseValue = wasm.TS_make_funding_redeemscript(broadcaster, countersignatory);
24915         return nativeResponseValue;
24916 }
24917         // 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);
24918 /* @internal */
24919 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 {
24920         if(!isWasmInitialized) {
24921                 throw new Error("initializeWasm() must be awaited first!");
24922         }
24923         const nativeResponseValue = wasm.TS_build_htlc_transaction(commitment_txid, feerate_per_kw, contest_delay, htlc, opt_anchors, broadcaster_delayed_payment_key, revocation_key);
24924         return nativeResponseValue;
24925 }
24926         // struct LDKCVec_u8Z get_anchor_redeemscript(struct LDKPublicKey funding_pubkey);
24927 /* @internal */
24928 export function get_anchor_redeemscript(funding_pubkey: number): number {
24929         if(!isWasmInitialized) {
24930                 throw new Error("initializeWasm() must be awaited first!");
24931         }
24932         const nativeResponseValue = wasm.TS_get_anchor_redeemscript(funding_pubkey);
24933         return nativeResponseValue;
24934 }
24935         // void ChannelTransactionParameters_free(struct LDKChannelTransactionParameters this_obj);
24936 /* @internal */
24937 export function ChannelTransactionParameters_free(this_obj: number): void {
24938         if(!isWasmInitialized) {
24939                 throw new Error("initializeWasm() must be awaited first!");
24940         }
24941         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_free(this_obj);
24942         // debug statements here
24943 }
24944         // struct LDKChannelPublicKeys ChannelTransactionParameters_get_holder_pubkeys(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
24945 /* @internal */
24946 export function ChannelTransactionParameters_get_holder_pubkeys(this_ptr: number): number {
24947         if(!isWasmInitialized) {
24948                 throw new Error("initializeWasm() must be awaited first!");
24949         }
24950         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_holder_pubkeys(this_ptr);
24951         return nativeResponseValue;
24952 }
24953         // void ChannelTransactionParameters_set_holder_pubkeys(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
24954 /* @internal */
24955 export function ChannelTransactionParameters_set_holder_pubkeys(this_ptr: number, val: number): void {
24956         if(!isWasmInitialized) {
24957                 throw new Error("initializeWasm() must be awaited first!");
24958         }
24959         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_holder_pubkeys(this_ptr, val);
24960         // debug statements here
24961 }
24962         // uint16_t ChannelTransactionParameters_get_holder_selected_contest_delay(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
24963 /* @internal */
24964 export function ChannelTransactionParameters_get_holder_selected_contest_delay(this_ptr: number): number {
24965         if(!isWasmInitialized) {
24966                 throw new Error("initializeWasm() must be awaited first!");
24967         }
24968         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_holder_selected_contest_delay(this_ptr);
24969         return nativeResponseValue;
24970 }
24971         // void ChannelTransactionParameters_set_holder_selected_contest_delay(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
24972 /* @internal */
24973 export function ChannelTransactionParameters_set_holder_selected_contest_delay(this_ptr: number, val: number): void {
24974         if(!isWasmInitialized) {
24975                 throw new Error("initializeWasm() must be awaited first!");
24976         }
24977         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_holder_selected_contest_delay(this_ptr, val);
24978         // debug statements here
24979 }
24980         // bool ChannelTransactionParameters_get_is_outbound_from_holder(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
24981 /* @internal */
24982 export function ChannelTransactionParameters_get_is_outbound_from_holder(this_ptr: number): boolean {
24983         if(!isWasmInitialized) {
24984                 throw new Error("initializeWasm() must be awaited first!");
24985         }
24986         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_is_outbound_from_holder(this_ptr);
24987         return nativeResponseValue;
24988 }
24989         // void ChannelTransactionParameters_set_is_outbound_from_holder(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, bool val);
24990 /* @internal */
24991 export function ChannelTransactionParameters_set_is_outbound_from_holder(this_ptr: number, val: boolean): void {
24992         if(!isWasmInitialized) {
24993                 throw new Error("initializeWasm() must be awaited first!");
24994         }
24995         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_is_outbound_from_holder(this_ptr, val);
24996         // debug statements here
24997 }
24998         // struct LDKCounterpartyChannelTransactionParameters ChannelTransactionParameters_get_counterparty_parameters(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
24999 /* @internal */
25000 export function ChannelTransactionParameters_get_counterparty_parameters(this_ptr: number): number {
25001         if(!isWasmInitialized) {
25002                 throw new Error("initializeWasm() must be awaited first!");
25003         }
25004         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_counterparty_parameters(this_ptr);
25005         return nativeResponseValue;
25006 }
25007         // void ChannelTransactionParameters_set_counterparty_parameters(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKCounterpartyChannelTransactionParameters val);
25008 /* @internal */
25009 export function ChannelTransactionParameters_set_counterparty_parameters(this_ptr: number, val: number): void {
25010         if(!isWasmInitialized) {
25011                 throw new Error("initializeWasm() must be awaited first!");
25012         }
25013         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_counterparty_parameters(this_ptr, val);
25014         // debug statements here
25015 }
25016         // struct LDKOutPoint ChannelTransactionParameters_get_funding_outpoint(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25017 /* @internal */
25018 export function ChannelTransactionParameters_get_funding_outpoint(this_ptr: number): number {
25019         if(!isWasmInitialized) {
25020                 throw new Error("initializeWasm() must be awaited first!");
25021         }
25022         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_funding_outpoint(this_ptr);
25023         return nativeResponseValue;
25024 }
25025         // void ChannelTransactionParameters_set_funding_outpoint(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKOutPoint val);
25026 /* @internal */
25027 export function ChannelTransactionParameters_set_funding_outpoint(this_ptr: number, val: number): void {
25028         if(!isWasmInitialized) {
25029                 throw new Error("initializeWasm() must be awaited first!");
25030         }
25031         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_funding_outpoint(this_ptr, val);
25032         // debug statements here
25033 }
25034         // enum LDKCOption_NoneZ ChannelTransactionParameters_get_opt_anchors(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25035 /* @internal */
25036 export function ChannelTransactionParameters_get_opt_anchors(this_ptr: number): COption_NoneZ {
25037         if(!isWasmInitialized) {
25038                 throw new Error("initializeWasm() must be awaited first!");
25039         }
25040         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_opt_anchors(this_ptr);
25041         return nativeResponseValue;
25042 }
25043         // void ChannelTransactionParameters_set_opt_anchors(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val);
25044 /* @internal */
25045 export function ChannelTransactionParameters_set_opt_anchors(this_ptr: number, val: COption_NoneZ): void {
25046         if(!isWasmInitialized) {
25047                 throw new Error("initializeWasm() must be awaited first!");
25048         }
25049         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_opt_anchors(this_ptr, val);
25050         // debug statements here
25051 }
25052         // 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);
25053 /* @internal */
25054 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 {
25055         if(!isWasmInitialized) {
25056                 throw new Error("initializeWasm() must be awaited first!");
25057         }
25058         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);
25059         return nativeResponseValue;
25060 }
25061         // uintptr_t ChannelTransactionParameters_clone_ptr(LDKChannelTransactionParameters *NONNULL_PTR arg);
25062 /* @internal */
25063 export function ChannelTransactionParameters_clone_ptr(arg: number): number {
25064         if(!isWasmInitialized) {
25065                 throw new Error("initializeWasm() must be awaited first!");
25066         }
25067         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_clone_ptr(arg);
25068         return nativeResponseValue;
25069 }
25070         // struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig);
25071 /* @internal */
25072 export function ChannelTransactionParameters_clone(orig: number): number {
25073         if(!isWasmInitialized) {
25074                 throw new Error("initializeWasm() must be awaited first!");
25075         }
25076         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_clone(orig);
25077         return nativeResponseValue;
25078 }
25079         // void CounterpartyChannelTransactionParameters_free(struct LDKCounterpartyChannelTransactionParameters this_obj);
25080 /* @internal */
25081 export function CounterpartyChannelTransactionParameters_free(this_obj: number): void {
25082         if(!isWasmInitialized) {
25083                 throw new Error("initializeWasm() must be awaited first!");
25084         }
25085         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_free(this_obj);
25086         // debug statements here
25087 }
25088         // struct LDKChannelPublicKeys CounterpartyChannelTransactionParameters_get_pubkeys(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
25089 /* @internal */
25090 export function CounterpartyChannelTransactionParameters_get_pubkeys(this_ptr: number): number {
25091         if(!isWasmInitialized) {
25092                 throw new Error("initializeWasm() must be awaited first!");
25093         }
25094         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_get_pubkeys(this_ptr);
25095         return nativeResponseValue;
25096 }
25097         // void CounterpartyChannelTransactionParameters_set_pubkeys(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
25098 /* @internal */
25099 export function CounterpartyChannelTransactionParameters_set_pubkeys(this_ptr: number, val: number): void {
25100         if(!isWasmInitialized) {
25101                 throw new Error("initializeWasm() must be awaited first!");
25102         }
25103         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_set_pubkeys(this_ptr, val);
25104         // debug statements here
25105 }
25106         // uint16_t CounterpartyChannelTransactionParameters_get_selected_contest_delay(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
25107 /* @internal */
25108 export function CounterpartyChannelTransactionParameters_get_selected_contest_delay(this_ptr: number): number {
25109         if(!isWasmInitialized) {
25110                 throw new Error("initializeWasm() must be awaited first!");
25111         }
25112         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_get_selected_contest_delay(this_ptr);
25113         return nativeResponseValue;
25114 }
25115         // void CounterpartyChannelTransactionParameters_set_selected_contest_delay(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
25116 /* @internal */
25117 export function CounterpartyChannelTransactionParameters_set_selected_contest_delay(this_ptr: number, val: number): void {
25118         if(!isWasmInitialized) {
25119                 throw new Error("initializeWasm() must be awaited first!");
25120         }
25121         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_set_selected_contest_delay(this_ptr, val);
25122         // debug statements here
25123 }
25124         // MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_new(struct LDKChannelPublicKeys pubkeys_arg, uint16_t selected_contest_delay_arg);
25125 /* @internal */
25126 export function CounterpartyChannelTransactionParameters_new(pubkeys_arg: number, selected_contest_delay_arg: number): number {
25127         if(!isWasmInitialized) {
25128                 throw new Error("initializeWasm() must be awaited first!");
25129         }
25130         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_new(pubkeys_arg, selected_contest_delay_arg);
25131         return nativeResponseValue;
25132 }
25133         // uintptr_t CounterpartyChannelTransactionParameters_clone_ptr(LDKCounterpartyChannelTransactionParameters *NONNULL_PTR arg);
25134 /* @internal */
25135 export function CounterpartyChannelTransactionParameters_clone_ptr(arg: number): number {
25136         if(!isWasmInitialized) {
25137                 throw new Error("initializeWasm() must be awaited first!");
25138         }
25139         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_clone_ptr(arg);
25140         return nativeResponseValue;
25141 }
25142         // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig);
25143 /* @internal */
25144 export function CounterpartyChannelTransactionParameters_clone(orig: number): number {
25145         if(!isWasmInitialized) {
25146                 throw new Error("initializeWasm() must be awaited first!");
25147         }
25148         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_clone(orig);
25149         return nativeResponseValue;
25150 }
25151         // MUST_USE_RES bool ChannelTransactionParameters_is_populated(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
25152 /* @internal */
25153 export function ChannelTransactionParameters_is_populated(this_arg: number): boolean {
25154         if(!isWasmInitialized) {
25155                 throw new Error("initializeWasm() must be awaited first!");
25156         }
25157         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_is_populated(this_arg);
25158         return nativeResponseValue;
25159 }
25160         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_holder_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
25161 /* @internal */
25162 export function ChannelTransactionParameters_as_holder_broadcastable(this_arg: number): number {
25163         if(!isWasmInitialized) {
25164                 throw new Error("initializeWasm() must be awaited first!");
25165         }
25166         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_as_holder_broadcastable(this_arg);
25167         return nativeResponseValue;
25168 }
25169         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_counterparty_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
25170 /* @internal */
25171 export function ChannelTransactionParameters_as_counterparty_broadcastable(this_arg: number): number {
25172         if(!isWasmInitialized) {
25173                 throw new Error("initializeWasm() must be awaited first!");
25174         }
25175         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_as_counterparty_broadcastable(this_arg);
25176         return nativeResponseValue;
25177 }
25178         // struct LDKCVec_u8Z CounterpartyChannelTransactionParameters_write(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR obj);
25179 /* @internal */
25180 export function CounterpartyChannelTransactionParameters_write(obj: number): number {
25181         if(!isWasmInitialized) {
25182                 throw new Error("initializeWasm() must be awaited first!");
25183         }
25184         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_write(obj);
25185         return nativeResponseValue;
25186 }
25187         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CounterpartyChannelTransactionParameters_read(struct LDKu8slice ser);
25188 /* @internal */
25189 export function CounterpartyChannelTransactionParameters_read(ser: number): number {
25190         if(!isWasmInitialized) {
25191                 throw new Error("initializeWasm() must be awaited first!");
25192         }
25193         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_read(ser);
25194         return nativeResponseValue;
25195 }
25196         // struct LDKCVec_u8Z ChannelTransactionParameters_write(const struct LDKChannelTransactionParameters *NONNULL_PTR obj);
25197 /* @internal */
25198 export function ChannelTransactionParameters_write(obj: number): number {
25199         if(!isWasmInitialized) {
25200                 throw new Error("initializeWasm() must be awaited first!");
25201         }
25202         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_write(obj);
25203         return nativeResponseValue;
25204 }
25205         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ ChannelTransactionParameters_read(struct LDKu8slice ser);
25206 /* @internal */
25207 export function ChannelTransactionParameters_read(ser: number): number {
25208         if(!isWasmInitialized) {
25209                 throw new Error("initializeWasm() must be awaited first!");
25210         }
25211         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_read(ser);
25212         return nativeResponseValue;
25213 }
25214         // void DirectedChannelTransactionParameters_free(struct LDKDirectedChannelTransactionParameters this_obj);
25215 /* @internal */
25216 export function DirectedChannelTransactionParameters_free(this_obj: number): void {
25217         if(!isWasmInitialized) {
25218                 throw new Error("initializeWasm() must be awaited first!");
25219         }
25220         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_free(this_obj);
25221         // debug statements here
25222 }
25223         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_broadcaster_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
25224 /* @internal */
25225 export function DirectedChannelTransactionParameters_broadcaster_pubkeys(this_arg: number): number {
25226         if(!isWasmInitialized) {
25227                 throw new Error("initializeWasm() must be awaited first!");
25228         }
25229         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_broadcaster_pubkeys(this_arg);
25230         return nativeResponseValue;
25231 }
25232         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_countersignatory_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
25233 /* @internal */
25234 export function DirectedChannelTransactionParameters_countersignatory_pubkeys(this_arg: number): number {
25235         if(!isWasmInitialized) {
25236                 throw new Error("initializeWasm() must be awaited first!");
25237         }
25238         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_countersignatory_pubkeys(this_arg);
25239         return nativeResponseValue;
25240 }
25241         // MUST_USE_RES uint16_t DirectedChannelTransactionParameters_contest_delay(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
25242 /* @internal */
25243 export function DirectedChannelTransactionParameters_contest_delay(this_arg: number): number {
25244         if(!isWasmInitialized) {
25245                 throw new Error("initializeWasm() must be awaited first!");
25246         }
25247         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_contest_delay(this_arg);
25248         return nativeResponseValue;
25249 }
25250         // MUST_USE_RES bool DirectedChannelTransactionParameters_is_outbound(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
25251 /* @internal */
25252 export function DirectedChannelTransactionParameters_is_outbound(this_arg: number): boolean {
25253         if(!isWasmInitialized) {
25254                 throw new Error("initializeWasm() must be awaited first!");
25255         }
25256         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_is_outbound(this_arg);
25257         return nativeResponseValue;
25258 }
25259         // MUST_USE_RES struct LDKOutPoint DirectedChannelTransactionParameters_funding_outpoint(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
25260 /* @internal */
25261 export function DirectedChannelTransactionParameters_funding_outpoint(this_arg: number): number {
25262         if(!isWasmInitialized) {
25263                 throw new Error("initializeWasm() must be awaited first!");
25264         }
25265         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_funding_outpoint(this_arg);
25266         return nativeResponseValue;
25267 }
25268         // MUST_USE_RES bool DirectedChannelTransactionParameters_opt_anchors(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
25269 /* @internal */
25270 export function DirectedChannelTransactionParameters_opt_anchors(this_arg: number): boolean {
25271         if(!isWasmInitialized) {
25272                 throw new Error("initializeWasm() must be awaited first!");
25273         }
25274         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_opt_anchors(this_arg);
25275         return nativeResponseValue;
25276 }
25277         // void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this_obj);
25278 /* @internal */
25279 export function HolderCommitmentTransaction_free(this_obj: number): void {
25280         if(!isWasmInitialized) {
25281                 throw new Error("initializeWasm() must be awaited first!");
25282         }
25283         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_free(this_obj);
25284         // debug statements here
25285 }
25286         // struct LDKSignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
25287 /* @internal */
25288 export function HolderCommitmentTransaction_get_counterparty_sig(this_ptr: number): number {
25289         if(!isWasmInitialized) {
25290                 throw new Error("initializeWasm() must be awaited first!");
25291         }
25292         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_get_counterparty_sig(this_ptr);
25293         return nativeResponseValue;
25294 }
25295         // void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKSignature val);
25296 /* @internal */
25297 export function HolderCommitmentTransaction_set_counterparty_sig(this_ptr: number, val: number): void {
25298         if(!isWasmInitialized) {
25299                 throw new Error("initializeWasm() must be awaited first!");
25300         }
25301         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_set_counterparty_sig(this_ptr, val);
25302         // debug statements here
25303 }
25304         // void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
25305 /* @internal */
25306 export function HolderCommitmentTransaction_set_counterparty_htlc_sigs(this_ptr: number, val: number): void {
25307         if(!isWasmInitialized) {
25308                 throw new Error("initializeWasm() must be awaited first!");
25309         }
25310         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_set_counterparty_htlc_sigs(this_ptr, val);
25311         // debug statements here
25312 }
25313         // uintptr_t HolderCommitmentTransaction_clone_ptr(LDKHolderCommitmentTransaction *NONNULL_PTR arg);
25314 /* @internal */
25315 export function HolderCommitmentTransaction_clone_ptr(arg: number): number {
25316         if(!isWasmInitialized) {
25317                 throw new Error("initializeWasm() must be awaited first!");
25318         }
25319         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_clone_ptr(arg);
25320         return nativeResponseValue;
25321 }
25322         // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_clone(const struct LDKHolderCommitmentTransaction *NONNULL_PTR orig);
25323 /* @internal */
25324 export function HolderCommitmentTransaction_clone(orig: number): number {
25325         if(!isWasmInitialized) {
25326                 throw new Error("initializeWasm() must be awaited first!");
25327         }
25328         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_clone(orig);
25329         return nativeResponseValue;
25330 }
25331         // struct LDKCVec_u8Z HolderCommitmentTransaction_write(const struct LDKHolderCommitmentTransaction *NONNULL_PTR obj);
25332 /* @internal */
25333 export function HolderCommitmentTransaction_write(obj: number): number {
25334         if(!isWasmInitialized) {
25335                 throw new Error("initializeWasm() must be awaited first!");
25336         }
25337         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_write(obj);
25338         return nativeResponseValue;
25339 }
25340         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ HolderCommitmentTransaction_read(struct LDKu8slice ser);
25341 /* @internal */
25342 export function HolderCommitmentTransaction_read(ser: number): number {
25343         if(!isWasmInitialized) {
25344                 throw new Error("initializeWasm() must be awaited first!");
25345         }
25346         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_read(ser);
25347         return nativeResponseValue;
25348 }
25349         // 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);
25350 /* @internal */
25351 export function HolderCommitmentTransaction_new(commitment_tx: number, counterparty_sig: number, counterparty_htlc_sigs: number, holder_funding_key: number, counterparty_funding_key: number): number {
25352         if(!isWasmInitialized) {
25353                 throw new Error("initializeWasm() must be awaited first!");
25354         }
25355         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_new(commitment_tx, counterparty_sig, counterparty_htlc_sigs, holder_funding_key, counterparty_funding_key);
25356         return nativeResponseValue;
25357 }
25358         // void BuiltCommitmentTransaction_free(struct LDKBuiltCommitmentTransaction this_obj);
25359 /* @internal */
25360 export function BuiltCommitmentTransaction_free(this_obj: number): void {
25361         if(!isWasmInitialized) {
25362                 throw new Error("initializeWasm() must be awaited first!");
25363         }
25364         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_free(this_obj);
25365         // debug statements here
25366 }
25367         // struct LDKTransaction BuiltCommitmentTransaction_get_transaction(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr);
25368 /* @internal */
25369 export function BuiltCommitmentTransaction_get_transaction(this_ptr: number): number {
25370         if(!isWasmInitialized) {
25371                 throw new Error("initializeWasm() must be awaited first!");
25372         }
25373         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_transaction(this_ptr);
25374         return nativeResponseValue;
25375 }
25376         // void BuiltCommitmentTransaction_set_transaction(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKTransaction val);
25377 /* @internal */
25378 export function BuiltCommitmentTransaction_set_transaction(this_ptr: number, val: number): void {
25379         if(!isWasmInitialized) {
25380                 throw new Error("initializeWasm() must be awaited first!");
25381         }
25382         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_set_transaction(this_ptr, val);
25383         // debug statements here
25384 }
25385         // const uint8_t (*BuiltCommitmentTransaction_get_txid(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr))[32];
25386 /* @internal */
25387 export function BuiltCommitmentTransaction_get_txid(this_ptr: number): number {
25388         if(!isWasmInitialized) {
25389                 throw new Error("initializeWasm() must be awaited first!");
25390         }
25391         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_txid(this_ptr);
25392         return nativeResponseValue;
25393 }
25394         // void BuiltCommitmentTransaction_set_txid(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25395 /* @internal */
25396 export function BuiltCommitmentTransaction_set_txid(this_ptr: number, val: number): void {
25397         if(!isWasmInitialized) {
25398                 throw new Error("initializeWasm() must be awaited first!");
25399         }
25400         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_set_txid(this_ptr, val);
25401         // debug statements here
25402 }
25403         // MUST_USE_RES struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_new(struct LDKTransaction transaction_arg, struct LDKThirtyTwoBytes txid_arg);
25404 /* @internal */
25405 export function BuiltCommitmentTransaction_new(transaction_arg: number, txid_arg: number): number {
25406         if(!isWasmInitialized) {
25407                 throw new Error("initializeWasm() must be awaited first!");
25408         }
25409         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_new(transaction_arg, txid_arg);
25410         return nativeResponseValue;
25411 }
25412         // uintptr_t BuiltCommitmentTransaction_clone_ptr(LDKBuiltCommitmentTransaction *NONNULL_PTR arg);
25413 /* @internal */
25414 export function BuiltCommitmentTransaction_clone_ptr(arg: number): number {
25415         if(!isWasmInitialized) {
25416                 throw new Error("initializeWasm() must be awaited first!");
25417         }
25418         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_clone_ptr(arg);
25419         return nativeResponseValue;
25420 }
25421         // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_clone(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR orig);
25422 /* @internal */
25423 export function BuiltCommitmentTransaction_clone(orig: number): number {
25424         if(!isWasmInitialized) {
25425                 throw new Error("initializeWasm() must be awaited first!");
25426         }
25427         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_clone(orig);
25428         return nativeResponseValue;
25429 }
25430         // struct LDKCVec_u8Z BuiltCommitmentTransaction_write(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR obj);
25431 /* @internal */
25432 export function BuiltCommitmentTransaction_write(obj: number): number {
25433         if(!isWasmInitialized) {
25434                 throw new Error("initializeWasm() must be awaited first!");
25435         }
25436         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_write(obj);
25437         return nativeResponseValue;
25438 }
25439         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ BuiltCommitmentTransaction_read(struct LDKu8slice ser);
25440 /* @internal */
25441 export function BuiltCommitmentTransaction_read(ser: number): number {
25442         if(!isWasmInitialized) {
25443                 throw new Error("initializeWasm() must be awaited first!");
25444         }
25445         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_read(ser);
25446         return nativeResponseValue;
25447 }
25448         // 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);
25449 /* @internal */
25450 export function BuiltCommitmentTransaction_get_sighash_all(this_arg: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
25451         if(!isWasmInitialized) {
25452                 throw new Error("initializeWasm() must be awaited first!");
25453         }
25454         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_sighash_all(this_arg, funding_redeemscript, channel_value_satoshis);
25455         return nativeResponseValue;
25456 }
25457         // 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);
25458 /* @internal */
25459 export function BuiltCommitmentTransaction_sign(this_arg: number, funding_key: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
25460         if(!isWasmInitialized) {
25461                 throw new Error("initializeWasm() must be awaited first!");
25462         }
25463         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_sign(this_arg, funding_key, funding_redeemscript, channel_value_satoshis);
25464         return nativeResponseValue;
25465 }
25466         // void ClosingTransaction_free(struct LDKClosingTransaction this_obj);
25467 /* @internal */
25468 export function ClosingTransaction_free(this_obj: number): void {
25469         if(!isWasmInitialized) {
25470                 throw new Error("initializeWasm() must be awaited first!");
25471         }
25472         const nativeResponseValue = wasm.TS_ClosingTransaction_free(this_obj);
25473         // debug statements here
25474 }
25475         // uintptr_t ClosingTransaction_clone_ptr(LDKClosingTransaction *NONNULL_PTR arg);
25476 /* @internal */
25477 export function ClosingTransaction_clone_ptr(arg: number): number {
25478         if(!isWasmInitialized) {
25479                 throw new Error("initializeWasm() must be awaited first!");
25480         }
25481         const nativeResponseValue = wasm.TS_ClosingTransaction_clone_ptr(arg);
25482         return nativeResponseValue;
25483 }
25484         // struct LDKClosingTransaction ClosingTransaction_clone(const struct LDKClosingTransaction *NONNULL_PTR orig);
25485 /* @internal */
25486 export function ClosingTransaction_clone(orig: number): number {
25487         if(!isWasmInitialized) {
25488                 throw new Error("initializeWasm() must be awaited first!");
25489         }
25490         const nativeResponseValue = wasm.TS_ClosingTransaction_clone(orig);
25491         return nativeResponseValue;
25492 }
25493         // uint64_t ClosingTransaction_hash(const struct LDKClosingTransaction *NONNULL_PTR o);
25494 /* @internal */
25495 export function ClosingTransaction_hash(o: number): bigint {
25496         if(!isWasmInitialized) {
25497                 throw new Error("initializeWasm() must be awaited first!");
25498         }
25499         const nativeResponseValue = wasm.TS_ClosingTransaction_hash(o);
25500         return nativeResponseValue;
25501 }
25502         // 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);
25503 /* @internal */
25504 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 {
25505         if(!isWasmInitialized) {
25506                 throw new Error("initializeWasm() must be awaited first!");
25507         }
25508         const nativeResponseValue = wasm.TS_ClosingTransaction_new(to_holder_value_sat, to_counterparty_value_sat, to_holder_script, to_counterparty_script, funding_outpoint);
25509         return nativeResponseValue;
25510 }
25511         // MUST_USE_RES struct LDKTrustedClosingTransaction ClosingTransaction_trust(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
25512 /* @internal */
25513 export function ClosingTransaction_trust(this_arg: number): number {
25514         if(!isWasmInitialized) {
25515                 throw new Error("initializeWasm() must be awaited first!");
25516         }
25517         const nativeResponseValue = wasm.TS_ClosingTransaction_trust(this_arg);
25518         return nativeResponseValue;
25519 }
25520         // MUST_USE_RES struct LDKCResult_TrustedClosingTransactionNoneZ ClosingTransaction_verify(const struct LDKClosingTransaction *NONNULL_PTR this_arg, struct LDKOutPoint funding_outpoint);
25521 /* @internal */
25522 export function ClosingTransaction_verify(this_arg: number, funding_outpoint: number): number {
25523         if(!isWasmInitialized) {
25524                 throw new Error("initializeWasm() must be awaited first!");
25525         }
25526         const nativeResponseValue = wasm.TS_ClosingTransaction_verify(this_arg, funding_outpoint);
25527         return nativeResponseValue;
25528 }
25529         // MUST_USE_RES uint64_t ClosingTransaction_to_holder_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
25530 /* @internal */
25531 export function ClosingTransaction_to_holder_value_sat(this_arg: number): bigint {
25532         if(!isWasmInitialized) {
25533                 throw new Error("initializeWasm() must be awaited first!");
25534         }
25535         const nativeResponseValue = wasm.TS_ClosingTransaction_to_holder_value_sat(this_arg);
25536         return nativeResponseValue;
25537 }
25538         // MUST_USE_RES uint64_t ClosingTransaction_to_counterparty_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
25539 /* @internal */
25540 export function ClosingTransaction_to_counterparty_value_sat(this_arg: number): bigint {
25541         if(!isWasmInitialized) {
25542                 throw new Error("initializeWasm() must be awaited first!");
25543         }
25544         const nativeResponseValue = wasm.TS_ClosingTransaction_to_counterparty_value_sat(this_arg);
25545         return nativeResponseValue;
25546 }
25547         // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_holder_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
25548 /* @internal */
25549 export function ClosingTransaction_to_holder_script(this_arg: number): number {
25550         if(!isWasmInitialized) {
25551                 throw new Error("initializeWasm() must be awaited first!");
25552         }
25553         const nativeResponseValue = wasm.TS_ClosingTransaction_to_holder_script(this_arg);
25554         return nativeResponseValue;
25555 }
25556         // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_counterparty_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
25557 /* @internal */
25558 export function ClosingTransaction_to_counterparty_script(this_arg: number): number {
25559         if(!isWasmInitialized) {
25560                 throw new Error("initializeWasm() must be awaited first!");
25561         }
25562         const nativeResponseValue = wasm.TS_ClosingTransaction_to_counterparty_script(this_arg);
25563         return nativeResponseValue;
25564 }
25565         // void TrustedClosingTransaction_free(struct LDKTrustedClosingTransaction this_obj);
25566 /* @internal */
25567 export function TrustedClosingTransaction_free(this_obj: number): void {
25568         if(!isWasmInitialized) {
25569                 throw new Error("initializeWasm() must be awaited first!");
25570         }
25571         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_free(this_obj);
25572         // debug statements here
25573 }
25574         // MUST_USE_RES struct LDKTransaction TrustedClosingTransaction_built_transaction(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg);
25575 /* @internal */
25576 export function TrustedClosingTransaction_built_transaction(this_arg: number): number {
25577         if(!isWasmInitialized) {
25578                 throw new Error("initializeWasm() must be awaited first!");
25579         }
25580         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_built_transaction(this_arg);
25581         return nativeResponseValue;
25582 }
25583         // 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);
25584 /* @internal */
25585 export function TrustedClosingTransaction_get_sighash_all(this_arg: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
25586         if(!isWasmInitialized) {
25587                 throw new Error("initializeWasm() must be awaited first!");
25588         }
25589         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_get_sighash_all(this_arg, funding_redeemscript, channel_value_satoshis);
25590         return nativeResponseValue;
25591 }
25592         // 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);
25593 /* @internal */
25594 export function TrustedClosingTransaction_sign(this_arg: number, funding_key: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
25595         if(!isWasmInitialized) {
25596                 throw new Error("initializeWasm() must be awaited first!");
25597         }
25598         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_sign(this_arg, funding_key, funding_redeemscript, channel_value_satoshis);
25599         return nativeResponseValue;
25600 }
25601         // void CommitmentTransaction_free(struct LDKCommitmentTransaction this_obj);
25602 /* @internal */
25603 export function CommitmentTransaction_free(this_obj: number): void {
25604         if(!isWasmInitialized) {
25605                 throw new Error("initializeWasm() must be awaited first!");
25606         }
25607         const nativeResponseValue = wasm.TS_CommitmentTransaction_free(this_obj);
25608         // debug statements here
25609 }
25610         // uintptr_t CommitmentTransaction_clone_ptr(LDKCommitmentTransaction *NONNULL_PTR arg);
25611 /* @internal */
25612 export function CommitmentTransaction_clone_ptr(arg: number): number {
25613         if(!isWasmInitialized) {
25614                 throw new Error("initializeWasm() must be awaited first!");
25615         }
25616         const nativeResponseValue = wasm.TS_CommitmentTransaction_clone_ptr(arg);
25617         return nativeResponseValue;
25618 }
25619         // struct LDKCommitmentTransaction CommitmentTransaction_clone(const struct LDKCommitmentTransaction *NONNULL_PTR orig);
25620 /* @internal */
25621 export function CommitmentTransaction_clone(orig: number): number {
25622         if(!isWasmInitialized) {
25623                 throw new Error("initializeWasm() must be awaited first!");
25624         }
25625         const nativeResponseValue = wasm.TS_CommitmentTransaction_clone(orig);
25626         return nativeResponseValue;
25627 }
25628         // struct LDKCVec_u8Z CommitmentTransaction_write(const struct LDKCommitmentTransaction *NONNULL_PTR obj);
25629 /* @internal */
25630 export function CommitmentTransaction_write(obj: number): number {
25631         if(!isWasmInitialized) {
25632                 throw new Error("initializeWasm() must be awaited first!");
25633         }
25634         const nativeResponseValue = wasm.TS_CommitmentTransaction_write(obj);
25635         return nativeResponseValue;
25636 }
25637         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CommitmentTransaction_read(struct LDKu8slice ser);
25638 /* @internal */
25639 export function CommitmentTransaction_read(ser: number): number {
25640         if(!isWasmInitialized) {
25641                 throw new Error("initializeWasm() must be awaited first!");
25642         }
25643         const nativeResponseValue = wasm.TS_CommitmentTransaction_read(ser);
25644         return nativeResponseValue;
25645 }
25646         // MUST_USE_RES uint64_t CommitmentTransaction_commitment_number(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
25647 /* @internal */
25648 export function CommitmentTransaction_commitment_number(this_arg: number): bigint {
25649         if(!isWasmInitialized) {
25650                 throw new Error("initializeWasm() must be awaited first!");
25651         }
25652         const nativeResponseValue = wasm.TS_CommitmentTransaction_commitment_number(this_arg);
25653         return nativeResponseValue;
25654 }
25655         // MUST_USE_RES uint64_t CommitmentTransaction_to_broadcaster_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
25656 /* @internal */
25657 export function CommitmentTransaction_to_broadcaster_value_sat(this_arg: number): bigint {
25658         if(!isWasmInitialized) {
25659                 throw new Error("initializeWasm() must be awaited first!");
25660         }
25661         const nativeResponseValue = wasm.TS_CommitmentTransaction_to_broadcaster_value_sat(this_arg);
25662         return nativeResponseValue;
25663 }
25664         // MUST_USE_RES uint64_t CommitmentTransaction_to_countersignatory_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
25665 /* @internal */
25666 export function CommitmentTransaction_to_countersignatory_value_sat(this_arg: number): bigint {
25667         if(!isWasmInitialized) {
25668                 throw new Error("initializeWasm() must be awaited first!");
25669         }
25670         const nativeResponseValue = wasm.TS_CommitmentTransaction_to_countersignatory_value_sat(this_arg);
25671         return nativeResponseValue;
25672 }
25673         // MUST_USE_RES uint32_t CommitmentTransaction_feerate_per_kw(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
25674 /* @internal */
25675 export function CommitmentTransaction_feerate_per_kw(this_arg: number): number {
25676         if(!isWasmInitialized) {
25677                 throw new Error("initializeWasm() must be awaited first!");
25678         }
25679         const nativeResponseValue = wasm.TS_CommitmentTransaction_feerate_per_kw(this_arg);
25680         return nativeResponseValue;
25681 }
25682         // MUST_USE_RES struct LDKTrustedCommitmentTransaction CommitmentTransaction_trust(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
25683 /* @internal */
25684 export function CommitmentTransaction_trust(this_arg: number): number {
25685         if(!isWasmInitialized) {
25686                 throw new Error("initializeWasm() must be awaited first!");
25687         }
25688         const nativeResponseValue = wasm.TS_CommitmentTransaction_trust(this_arg);
25689         return nativeResponseValue;
25690 }
25691         // 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);
25692 /* @internal */
25693 export function CommitmentTransaction_verify(this_arg: number, channel_parameters: number, broadcaster_keys: number, countersignatory_keys: number): number {
25694         if(!isWasmInitialized) {
25695                 throw new Error("initializeWasm() must be awaited first!");
25696         }
25697         const nativeResponseValue = wasm.TS_CommitmentTransaction_verify(this_arg, channel_parameters, broadcaster_keys, countersignatory_keys);
25698         return nativeResponseValue;
25699 }
25700         // void TrustedCommitmentTransaction_free(struct LDKTrustedCommitmentTransaction this_obj);
25701 /* @internal */
25702 export function TrustedCommitmentTransaction_free(this_obj: number): void {
25703         if(!isWasmInitialized) {
25704                 throw new Error("initializeWasm() must be awaited first!");
25705         }
25706         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_free(this_obj);
25707         // debug statements here
25708 }
25709         // MUST_USE_RES struct LDKThirtyTwoBytes TrustedCommitmentTransaction_txid(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
25710 /* @internal */
25711 export function TrustedCommitmentTransaction_txid(this_arg: number): number {
25712         if(!isWasmInitialized) {
25713                 throw new Error("initializeWasm() must be awaited first!");
25714         }
25715         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_txid(this_arg);
25716         return nativeResponseValue;
25717 }
25718         // MUST_USE_RES struct LDKBuiltCommitmentTransaction TrustedCommitmentTransaction_built_transaction(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
25719 /* @internal */
25720 export function TrustedCommitmentTransaction_built_transaction(this_arg: number): number {
25721         if(!isWasmInitialized) {
25722                 throw new Error("initializeWasm() must be awaited first!");
25723         }
25724         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_built_transaction(this_arg);
25725         return nativeResponseValue;
25726 }
25727         // MUST_USE_RES struct LDKTxCreationKeys TrustedCommitmentTransaction_keys(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
25728 /* @internal */
25729 export function TrustedCommitmentTransaction_keys(this_arg: number): number {
25730         if(!isWasmInitialized) {
25731                 throw new Error("initializeWasm() must be awaited first!");
25732         }
25733         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_keys(this_arg);
25734         return nativeResponseValue;
25735 }
25736         // MUST_USE_RES bool TrustedCommitmentTransaction_opt_anchors(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
25737 /* @internal */
25738 export function TrustedCommitmentTransaction_opt_anchors(this_arg: number): boolean {
25739         if(!isWasmInitialized) {
25740                 throw new Error("initializeWasm() must be awaited first!");
25741         }
25742         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_opt_anchors(this_arg);
25743         return nativeResponseValue;
25744 }
25745         // 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);
25746 /* @internal */
25747 export function TrustedCommitmentTransaction_get_htlc_sigs(this_arg: number, htlc_base_key: number, channel_parameters: number): number {
25748         if(!isWasmInitialized) {
25749                 throw new Error("initializeWasm() must be awaited first!");
25750         }
25751         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_get_htlc_sigs(this_arg, htlc_base_key, channel_parameters);
25752         return nativeResponseValue;
25753 }
25754         // uint64_t get_commitment_transaction_number_obscure_factor(struct LDKPublicKey broadcaster_payment_basepoint, struct LDKPublicKey countersignatory_payment_basepoint, bool outbound_from_broadcaster);
25755 /* @internal */
25756 export function get_commitment_transaction_number_obscure_factor(broadcaster_payment_basepoint: number, countersignatory_payment_basepoint: number, outbound_from_broadcaster: boolean): bigint {
25757         if(!isWasmInitialized) {
25758                 throw new Error("initializeWasm() must be awaited first!");
25759         }
25760         const nativeResponseValue = wasm.TS_get_commitment_transaction_number_obscure_factor(broadcaster_payment_basepoint, countersignatory_payment_basepoint, outbound_from_broadcaster);
25761         return nativeResponseValue;
25762 }
25763         // bool InitFeatures_eq(const struct LDKInitFeatures *NONNULL_PTR a, const struct LDKInitFeatures *NONNULL_PTR b);
25764 /* @internal */
25765 export function InitFeatures_eq(a: number, b: number): boolean {
25766         if(!isWasmInitialized) {
25767                 throw new Error("initializeWasm() must be awaited first!");
25768         }
25769         const nativeResponseValue = wasm.TS_InitFeatures_eq(a, b);
25770         return nativeResponseValue;
25771 }
25772         // bool NodeFeatures_eq(const struct LDKNodeFeatures *NONNULL_PTR a, const struct LDKNodeFeatures *NONNULL_PTR b);
25773 /* @internal */
25774 export function NodeFeatures_eq(a: number, b: number): boolean {
25775         if(!isWasmInitialized) {
25776                 throw new Error("initializeWasm() must be awaited first!");
25777         }
25778         const nativeResponseValue = wasm.TS_NodeFeatures_eq(a, b);
25779         return nativeResponseValue;
25780 }
25781         // bool ChannelFeatures_eq(const struct LDKChannelFeatures *NONNULL_PTR a, const struct LDKChannelFeatures *NONNULL_PTR b);
25782 /* @internal */
25783 export function ChannelFeatures_eq(a: number, b: number): boolean {
25784         if(!isWasmInitialized) {
25785                 throw new Error("initializeWasm() must be awaited first!");
25786         }
25787         const nativeResponseValue = wasm.TS_ChannelFeatures_eq(a, b);
25788         return nativeResponseValue;
25789 }
25790         // bool InvoiceFeatures_eq(const struct LDKInvoiceFeatures *NONNULL_PTR a, const struct LDKInvoiceFeatures *NONNULL_PTR b);
25791 /* @internal */
25792 export function InvoiceFeatures_eq(a: number, b: number): boolean {
25793         if(!isWasmInitialized) {
25794                 throw new Error("initializeWasm() must be awaited first!");
25795         }
25796         const nativeResponseValue = wasm.TS_InvoiceFeatures_eq(a, b);
25797         return nativeResponseValue;
25798 }
25799         // bool ChannelTypeFeatures_eq(const struct LDKChannelTypeFeatures *NONNULL_PTR a, const struct LDKChannelTypeFeatures *NONNULL_PTR b);
25800 /* @internal */
25801 export function ChannelTypeFeatures_eq(a: number, b: number): boolean {
25802         if(!isWasmInitialized) {
25803                 throw new Error("initializeWasm() must be awaited first!");
25804         }
25805         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_eq(a, b);
25806         return nativeResponseValue;
25807 }
25808         // uintptr_t InitFeatures_clone_ptr(LDKInitFeatures *NONNULL_PTR arg);
25809 /* @internal */
25810 export function InitFeatures_clone_ptr(arg: number): number {
25811         if(!isWasmInitialized) {
25812                 throw new Error("initializeWasm() must be awaited first!");
25813         }
25814         const nativeResponseValue = wasm.TS_InitFeatures_clone_ptr(arg);
25815         return nativeResponseValue;
25816 }
25817         // struct LDKInitFeatures InitFeatures_clone(const struct LDKInitFeatures *NONNULL_PTR orig);
25818 /* @internal */
25819 export function InitFeatures_clone(orig: number): number {
25820         if(!isWasmInitialized) {
25821                 throw new Error("initializeWasm() must be awaited first!");
25822         }
25823         const nativeResponseValue = wasm.TS_InitFeatures_clone(orig);
25824         return nativeResponseValue;
25825 }
25826         // uintptr_t NodeFeatures_clone_ptr(LDKNodeFeatures *NONNULL_PTR arg);
25827 /* @internal */
25828 export function NodeFeatures_clone_ptr(arg: number): number {
25829         if(!isWasmInitialized) {
25830                 throw new Error("initializeWasm() must be awaited first!");
25831         }
25832         const nativeResponseValue = wasm.TS_NodeFeatures_clone_ptr(arg);
25833         return nativeResponseValue;
25834 }
25835         // struct LDKNodeFeatures NodeFeatures_clone(const struct LDKNodeFeatures *NONNULL_PTR orig);
25836 /* @internal */
25837 export function NodeFeatures_clone(orig: number): number {
25838         if(!isWasmInitialized) {
25839                 throw new Error("initializeWasm() must be awaited first!");
25840         }
25841         const nativeResponseValue = wasm.TS_NodeFeatures_clone(orig);
25842         return nativeResponseValue;
25843 }
25844         // uintptr_t ChannelFeatures_clone_ptr(LDKChannelFeatures *NONNULL_PTR arg);
25845 /* @internal */
25846 export function ChannelFeatures_clone_ptr(arg: number): number {
25847         if(!isWasmInitialized) {
25848                 throw new Error("initializeWasm() must be awaited first!");
25849         }
25850         const nativeResponseValue = wasm.TS_ChannelFeatures_clone_ptr(arg);
25851         return nativeResponseValue;
25852 }
25853         // struct LDKChannelFeatures ChannelFeatures_clone(const struct LDKChannelFeatures *NONNULL_PTR orig);
25854 /* @internal */
25855 export function ChannelFeatures_clone(orig: number): number {
25856         if(!isWasmInitialized) {
25857                 throw new Error("initializeWasm() must be awaited first!");
25858         }
25859         const nativeResponseValue = wasm.TS_ChannelFeatures_clone(orig);
25860         return nativeResponseValue;
25861 }
25862         // uintptr_t InvoiceFeatures_clone_ptr(LDKInvoiceFeatures *NONNULL_PTR arg);
25863 /* @internal */
25864 export function InvoiceFeatures_clone_ptr(arg: number): number {
25865         if(!isWasmInitialized) {
25866                 throw new Error("initializeWasm() must be awaited first!");
25867         }
25868         const nativeResponseValue = wasm.TS_InvoiceFeatures_clone_ptr(arg);
25869         return nativeResponseValue;
25870 }
25871         // struct LDKInvoiceFeatures InvoiceFeatures_clone(const struct LDKInvoiceFeatures *NONNULL_PTR orig);
25872 /* @internal */
25873 export function InvoiceFeatures_clone(orig: number): number {
25874         if(!isWasmInitialized) {
25875                 throw new Error("initializeWasm() must be awaited first!");
25876         }
25877         const nativeResponseValue = wasm.TS_InvoiceFeatures_clone(orig);
25878         return nativeResponseValue;
25879 }
25880         // uintptr_t ChannelTypeFeatures_clone_ptr(LDKChannelTypeFeatures *NONNULL_PTR arg);
25881 /* @internal */
25882 export function ChannelTypeFeatures_clone_ptr(arg: number): number {
25883         if(!isWasmInitialized) {
25884                 throw new Error("initializeWasm() must be awaited first!");
25885         }
25886         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_clone_ptr(arg);
25887         return nativeResponseValue;
25888 }
25889         // struct LDKChannelTypeFeatures ChannelTypeFeatures_clone(const struct LDKChannelTypeFeatures *NONNULL_PTR orig);
25890 /* @internal */
25891 export function ChannelTypeFeatures_clone(orig: number): number {
25892         if(!isWasmInitialized) {
25893                 throw new Error("initializeWasm() must be awaited first!");
25894         }
25895         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_clone(orig);
25896         return nativeResponseValue;
25897 }
25898         // void InitFeatures_free(struct LDKInitFeatures this_obj);
25899 /* @internal */
25900 export function InitFeatures_free(this_obj: number): void {
25901         if(!isWasmInitialized) {
25902                 throw new Error("initializeWasm() must be awaited first!");
25903         }
25904         const nativeResponseValue = wasm.TS_InitFeatures_free(this_obj);
25905         // debug statements here
25906 }
25907         // void NodeFeatures_free(struct LDKNodeFeatures this_obj);
25908 /* @internal */
25909 export function NodeFeatures_free(this_obj: number): void {
25910         if(!isWasmInitialized) {
25911                 throw new Error("initializeWasm() must be awaited first!");
25912         }
25913         const nativeResponseValue = wasm.TS_NodeFeatures_free(this_obj);
25914         // debug statements here
25915 }
25916         // void ChannelFeatures_free(struct LDKChannelFeatures this_obj);
25917 /* @internal */
25918 export function ChannelFeatures_free(this_obj: number): void {
25919         if(!isWasmInitialized) {
25920                 throw new Error("initializeWasm() must be awaited first!");
25921         }
25922         const nativeResponseValue = wasm.TS_ChannelFeatures_free(this_obj);
25923         // debug statements here
25924 }
25925         // void InvoiceFeatures_free(struct LDKInvoiceFeatures this_obj);
25926 /* @internal */
25927 export function InvoiceFeatures_free(this_obj: number): void {
25928         if(!isWasmInitialized) {
25929                 throw new Error("initializeWasm() must be awaited first!");
25930         }
25931         const nativeResponseValue = wasm.TS_InvoiceFeatures_free(this_obj);
25932         // debug statements here
25933 }
25934         // void ChannelTypeFeatures_free(struct LDKChannelTypeFeatures this_obj);
25935 /* @internal */
25936 export function ChannelTypeFeatures_free(this_obj: number): void {
25937         if(!isWasmInitialized) {
25938                 throw new Error("initializeWasm() must be awaited first!");
25939         }
25940         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_free(this_obj);
25941         // debug statements here
25942 }
25943         // MUST_USE_RES struct LDKInitFeatures InitFeatures_empty(void);
25944 /* @internal */
25945 export function InitFeatures_empty(): number {
25946         if(!isWasmInitialized) {
25947                 throw new Error("initializeWasm() must be awaited first!");
25948         }
25949         const nativeResponseValue = wasm.TS_InitFeatures_empty();
25950         return nativeResponseValue;
25951 }
25952         // MUST_USE_RES struct LDKInitFeatures InitFeatures_known(void);
25953 /* @internal */
25954 export function InitFeatures_known(): number {
25955         if(!isWasmInitialized) {
25956                 throw new Error("initializeWasm() must be awaited first!");
25957         }
25958         const nativeResponseValue = wasm.TS_InitFeatures_known();
25959         return nativeResponseValue;
25960 }
25961         // MUST_USE_RES bool InitFeatures_requires_unknown_bits(const struct LDKInitFeatures *NONNULL_PTR this_arg);
25962 /* @internal */
25963 export function InitFeatures_requires_unknown_bits(this_arg: number): boolean {
25964         if(!isWasmInitialized) {
25965                 throw new Error("initializeWasm() must be awaited first!");
25966         }
25967         const nativeResponseValue = wasm.TS_InitFeatures_requires_unknown_bits(this_arg);
25968         return nativeResponseValue;
25969 }
25970         // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_empty(void);
25971 /* @internal */
25972 export function NodeFeatures_empty(): number {
25973         if(!isWasmInitialized) {
25974                 throw new Error("initializeWasm() must be awaited first!");
25975         }
25976         const nativeResponseValue = wasm.TS_NodeFeatures_empty();
25977         return nativeResponseValue;
25978 }
25979         // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_known(void);
25980 /* @internal */
25981 export function NodeFeatures_known(): number {
25982         if(!isWasmInitialized) {
25983                 throw new Error("initializeWasm() must be awaited first!");
25984         }
25985         const nativeResponseValue = wasm.TS_NodeFeatures_known();
25986         return nativeResponseValue;
25987 }
25988         // MUST_USE_RES bool NodeFeatures_requires_unknown_bits(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
25989 /* @internal */
25990 export function NodeFeatures_requires_unknown_bits(this_arg: number): boolean {
25991         if(!isWasmInitialized) {
25992                 throw new Error("initializeWasm() must be awaited first!");
25993         }
25994         const nativeResponseValue = wasm.TS_NodeFeatures_requires_unknown_bits(this_arg);
25995         return nativeResponseValue;
25996 }
25997         // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_empty(void);
25998 /* @internal */
25999 export function ChannelFeatures_empty(): number {
26000         if(!isWasmInitialized) {
26001                 throw new Error("initializeWasm() must be awaited first!");
26002         }
26003         const nativeResponseValue = wasm.TS_ChannelFeatures_empty();
26004         return nativeResponseValue;
26005 }
26006         // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_known(void);
26007 /* @internal */
26008 export function ChannelFeatures_known(): number {
26009         if(!isWasmInitialized) {
26010                 throw new Error("initializeWasm() must be awaited first!");
26011         }
26012         const nativeResponseValue = wasm.TS_ChannelFeatures_known();
26013         return nativeResponseValue;
26014 }
26015         // MUST_USE_RES bool ChannelFeatures_requires_unknown_bits(const struct LDKChannelFeatures *NONNULL_PTR this_arg);
26016 /* @internal */
26017 export function ChannelFeatures_requires_unknown_bits(this_arg: number): boolean {
26018         if(!isWasmInitialized) {
26019                 throw new Error("initializeWasm() must be awaited first!");
26020         }
26021         const nativeResponseValue = wasm.TS_ChannelFeatures_requires_unknown_bits(this_arg);
26022         return nativeResponseValue;
26023 }
26024         // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_empty(void);
26025 /* @internal */
26026 export function InvoiceFeatures_empty(): number {
26027         if(!isWasmInitialized) {
26028                 throw new Error("initializeWasm() must be awaited first!");
26029         }
26030         const nativeResponseValue = wasm.TS_InvoiceFeatures_empty();
26031         return nativeResponseValue;
26032 }
26033         // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_known(void);
26034 /* @internal */
26035 export function InvoiceFeatures_known(): number {
26036         if(!isWasmInitialized) {
26037                 throw new Error("initializeWasm() must be awaited first!");
26038         }
26039         const nativeResponseValue = wasm.TS_InvoiceFeatures_known();
26040         return nativeResponseValue;
26041 }
26042         // MUST_USE_RES bool InvoiceFeatures_requires_unknown_bits(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
26043 /* @internal */
26044 export function InvoiceFeatures_requires_unknown_bits(this_arg: number): boolean {
26045         if(!isWasmInitialized) {
26046                 throw new Error("initializeWasm() must be awaited first!");
26047         }
26048         const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_unknown_bits(this_arg);
26049         return nativeResponseValue;
26050 }
26051         // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_empty(void);
26052 /* @internal */
26053 export function ChannelTypeFeatures_empty(): number {
26054         if(!isWasmInitialized) {
26055                 throw new Error("initializeWasm() must be awaited first!");
26056         }
26057         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_empty();
26058         return nativeResponseValue;
26059 }
26060         // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_known(void);
26061 /* @internal */
26062 export function ChannelTypeFeatures_known(): number {
26063         if(!isWasmInitialized) {
26064                 throw new Error("initializeWasm() must be awaited first!");
26065         }
26066         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_known();
26067         return nativeResponseValue;
26068 }
26069         // MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
26070 /* @internal */
26071 export function ChannelTypeFeatures_requires_unknown_bits(this_arg: number): boolean {
26072         if(!isWasmInitialized) {
26073                 throw new Error("initializeWasm() must be awaited first!");
26074         }
26075         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_unknown_bits(this_arg);
26076         return nativeResponseValue;
26077 }
26078         // struct LDKCVec_u8Z InitFeatures_write(const struct LDKInitFeatures *NONNULL_PTR obj);
26079 /* @internal */
26080 export function InitFeatures_write(obj: number): number {
26081         if(!isWasmInitialized) {
26082                 throw new Error("initializeWasm() must be awaited first!");
26083         }
26084         const nativeResponseValue = wasm.TS_InitFeatures_write(obj);
26085         return nativeResponseValue;
26086 }
26087         // struct LDKCResult_InitFeaturesDecodeErrorZ InitFeatures_read(struct LDKu8slice ser);
26088 /* @internal */
26089 export function InitFeatures_read(ser: number): number {
26090         if(!isWasmInitialized) {
26091                 throw new Error("initializeWasm() must be awaited first!");
26092         }
26093         const nativeResponseValue = wasm.TS_InitFeatures_read(ser);
26094         return nativeResponseValue;
26095 }
26096         // struct LDKCVec_u8Z ChannelFeatures_write(const struct LDKChannelFeatures *NONNULL_PTR obj);
26097 /* @internal */
26098 export function ChannelFeatures_write(obj: number): number {
26099         if(!isWasmInitialized) {
26100                 throw new Error("initializeWasm() must be awaited first!");
26101         }
26102         const nativeResponseValue = wasm.TS_ChannelFeatures_write(obj);
26103         return nativeResponseValue;
26104 }
26105         // struct LDKCResult_ChannelFeaturesDecodeErrorZ ChannelFeatures_read(struct LDKu8slice ser);
26106 /* @internal */
26107 export function ChannelFeatures_read(ser: number): number {
26108         if(!isWasmInitialized) {
26109                 throw new Error("initializeWasm() must be awaited first!");
26110         }
26111         const nativeResponseValue = wasm.TS_ChannelFeatures_read(ser);
26112         return nativeResponseValue;
26113 }
26114         // struct LDKCVec_u8Z NodeFeatures_write(const struct LDKNodeFeatures *NONNULL_PTR obj);
26115 /* @internal */
26116 export function NodeFeatures_write(obj: number): number {
26117         if(!isWasmInitialized) {
26118                 throw new Error("initializeWasm() must be awaited first!");
26119         }
26120         const nativeResponseValue = wasm.TS_NodeFeatures_write(obj);
26121         return nativeResponseValue;
26122 }
26123         // struct LDKCResult_NodeFeaturesDecodeErrorZ NodeFeatures_read(struct LDKu8slice ser);
26124 /* @internal */
26125 export function NodeFeatures_read(ser: number): number {
26126         if(!isWasmInitialized) {
26127                 throw new Error("initializeWasm() must be awaited first!");
26128         }
26129         const nativeResponseValue = wasm.TS_NodeFeatures_read(ser);
26130         return nativeResponseValue;
26131 }
26132         // struct LDKCVec_u8Z InvoiceFeatures_write(const struct LDKInvoiceFeatures *NONNULL_PTR obj);
26133 /* @internal */
26134 export function InvoiceFeatures_write(obj: number): number {
26135         if(!isWasmInitialized) {
26136                 throw new Error("initializeWasm() must be awaited first!");
26137         }
26138         const nativeResponseValue = wasm.TS_InvoiceFeatures_write(obj);
26139         return nativeResponseValue;
26140 }
26141         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ InvoiceFeatures_read(struct LDKu8slice ser);
26142 /* @internal */
26143 export function InvoiceFeatures_read(ser: number): number {
26144         if(!isWasmInitialized) {
26145                 throw new Error("initializeWasm() must be awaited first!");
26146         }
26147         const nativeResponseValue = wasm.TS_InvoiceFeatures_read(ser);
26148         return nativeResponseValue;
26149 }
26150         // struct LDKCVec_u8Z ChannelTypeFeatures_write(const struct LDKChannelTypeFeatures *NONNULL_PTR obj);
26151 /* @internal */
26152 export function ChannelTypeFeatures_write(obj: number): number {
26153         if(!isWasmInitialized) {
26154                 throw new Error("initializeWasm() must be awaited first!");
26155         }
26156         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_write(obj);
26157         return nativeResponseValue;
26158 }
26159         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ ChannelTypeFeatures_read(struct LDKu8slice ser);
26160 /* @internal */
26161 export function ChannelTypeFeatures_read(ser: number): number {
26162         if(!isWasmInitialized) {
26163                 throw new Error("initializeWasm() must be awaited first!");
26164         }
26165         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_read(ser);
26166         return nativeResponseValue;
26167 }
26168         // void ShutdownScript_free(struct LDKShutdownScript this_obj);
26169 /* @internal */
26170 export function ShutdownScript_free(this_obj: number): void {
26171         if(!isWasmInitialized) {
26172                 throw new Error("initializeWasm() must be awaited first!");
26173         }
26174         const nativeResponseValue = wasm.TS_ShutdownScript_free(this_obj);
26175         // debug statements here
26176 }
26177         // uintptr_t ShutdownScript_clone_ptr(LDKShutdownScript *NONNULL_PTR arg);
26178 /* @internal */
26179 export function ShutdownScript_clone_ptr(arg: number): number {
26180         if(!isWasmInitialized) {
26181                 throw new Error("initializeWasm() must be awaited first!");
26182         }
26183         const nativeResponseValue = wasm.TS_ShutdownScript_clone_ptr(arg);
26184         return nativeResponseValue;
26185 }
26186         // struct LDKShutdownScript ShutdownScript_clone(const struct LDKShutdownScript *NONNULL_PTR orig);
26187 /* @internal */
26188 export function ShutdownScript_clone(orig: number): number {
26189         if(!isWasmInitialized) {
26190                 throw new Error("initializeWasm() must be awaited first!");
26191         }
26192         const nativeResponseValue = wasm.TS_ShutdownScript_clone(orig);
26193         return nativeResponseValue;
26194 }
26195         // void InvalidShutdownScript_free(struct LDKInvalidShutdownScript this_obj);
26196 /* @internal */
26197 export function InvalidShutdownScript_free(this_obj: number): void {
26198         if(!isWasmInitialized) {
26199                 throw new Error("initializeWasm() must be awaited first!");
26200         }
26201         const nativeResponseValue = wasm.TS_InvalidShutdownScript_free(this_obj);
26202         // debug statements here
26203 }
26204         // struct LDKu8slice InvalidShutdownScript_get_script(const struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr);
26205 /* @internal */
26206 export function InvalidShutdownScript_get_script(this_ptr: number): number {
26207         if(!isWasmInitialized) {
26208                 throw new Error("initializeWasm() must be awaited first!");
26209         }
26210         const nativeResponseValue = wasm.TS_InvalidShutdownScript_get_script(this_ptr);
26211         return nativeResponseValue;
26212 }
26213         // void InvalidShutdownScript_set_script(struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
26214 /* @internal */
26215 export function InvalidShutdownScript_set_script(this_ptr: number, val: number): void {
26216         if(!isWasmInitialized) {
26217                 throw new Error("initializeWasm() must be awaited first!");
26218         }
26219         const nativeResponseValue = wasm.TS_InvalidShutdownScript_set_script(this_ptr, val);
26220         // debug statements here
26221 }
26222         // MUST_USE_RES struct LDKInvalidShutdownScript InvalidShutdownScript_new(struct LDKCVec_u8Z script_arg);
26223 /* @internal */
26224 export function InvalidShutdownScript_new(script_arg: number): number {
26225         if(!isWasmInitialized) {
26226                 throw new Error("initializeWasm() must be awaited first!");
26227         }
26228         const nativeResponseValue = wasm.TS_InvalidShutdownScript_new(script_arg);
26229         return nativeResponseValue;
26230 }
26231         // uintptr_t InvalidShutdownScript_clone_ptr(LDKInvalidShutdownScript *NONNULL_PTR arg);
26232 /* @internal */
26233 export function InvalidShutdownScript_clone_ptr(arg: number): number {
26234         if(!isWasmInitialized) {
26235                 throw new Error("initializeWasm() must be awaited first!");
26236         }
26237         const nativeResponseValue = wasm.TS_InvalidShutdownScript_clone_ptr(arg);
26238         return nativeResponseValue;
26239 }
26240         // struct LDKInvalidShutdownScript InvalidShutdownScript_clone(const struct LDKInvalidShutdownScript *NONNULL_PTR orig);
26241 /* @internal */
26242 export function InvalidShutdownScript_clone(orig: number): number {
26243         if(!isWasmInitialized) {
26244                 throw new Error("initializeWasm() must be awaited first!");
26245         }
26246         const nativeResponseValue = wasm.TS_InvalidShutdownScript_clone(orig);
26247         return nativeResponseValue;
26248 }
26249         // struct LDKCVec_u8Z ShutdownScript_write(const struct LDKShutdownScript *NONNULL_PTR obj);
26250 /* @internal */
26251 export function ShutdownScript_write(obj: number): number {
26252         if(!isWasmInitialized) {
26253                 throw new Error("initializeWasm() must be awaited first!");
26254         }
26255         const nativeResponseValue = wasm.TS_ShutdownScript_write(obj);
26256         return nativeResponseValue;
26257 }
26258         // struct LDKCResult_ShutdownScriptDecodeErrorZ ShutdownScript_read(struct LDKu8slice ser);
26259 /* @internal */
26260 export function ShutdownScript_read(ser: number): number {
26261         if(!isWasmInitialized) {
26262                 throw new Error("initializeWasm() must be awaited first!");
26263         }
26264         const nativeResponseValue = wasm.TS_ShutdownScript_read(ser);
26265         return nativeResponseValue;
26266 }
26267         // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wpkh(const uint8_t (*pubkey_hash)[20]);
26268 /* @internal */
26269 export function ShutdownScript_new_p2wpkh(pubkey_hash: number): number {
26270         if(!isWasmInitialized) {
26271                 throw new Error("initializeWasm() must be awaited first!");
26272         }
26273         const nativeResponseValue = wasm.TS_ShutdownScript_new_p2wpkh(pubkey_hash);
26274         return nativeResponseValue;
26275 }
26276         // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wsh(const uint8_t (*script_hash)[32]);
26277 /* @internal */
26278 export function ShutdownScript_new_p2wsh(script_hash: number): number {
26279         if(!isWasmInitialized) {
26280                 throw new Error("initializeWasm() must be awaited first!");
26281         }
26282         const nativeResponseValue = wasm.TS_ShutdownScript_new_p2wsh(script_hash);
26283         return nativeResponseValue;
26284 }
26285         // MUST_USE_RES struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ ShutdownScript_new_witness_program(uint8_t version, struct LDKu8slice program);
26286 /* @internal */
26287 export function ShutdownScript_new_witness_program(version: number, program: number): number {
26288         if(!isWasmInitialized) {
26289                 throw new Error("initializeWasm() must be awaited first!");
26290         }
26291         const nativeResponseValue = wasm.TS_ShutdownScript_new_witness_program(version, program);
26292         return nativeResponseValue;
26293 }
26294         // MUST_USE_RES struct LDKCVec_u8Z ShutdownScript_into_inner(struct LDKShutdownScript this_arg);
26295 /* @internal */
26296 export function ShutdownScript_into_inner(this_arg: number): number {
26297         if(!isWasmInitialized) {
26298                 throw new Error("initializeWasm() must be awaited first!");
26299         }
26300         const nativeResponseValue = wasm.TS_ShutdownScript_into_inner(this_arg);
26301         return nativeResponseValue;
26302 }
26303         // MUST_USE_RES struct LDKPublicKey ShutdownScript_as_legacy_pubkey(const struct LDKShutdownScript *NONNULL_PTR this_arg);
26304 /* @internal */
26305 export function ShutdownScript_as_legacy_pubkey(this_arg: number): number {
26306         if(!isWasmInitialized) {
26307                 throw new Error("initializeWasm() must be awaited first!");
26308         }
26309         const nativeResponseValue = wasm.TS_ShutdownScript_as_legacy_pubkey(this_arg);
26310         return nativeResponseValue;
26311 }
26312         // MUST_USE_RES bool ShutdownScript_is_compatible(const struct LDKShutdownScript *NONNULL_PTR this_arg, const struct LDKInitFeatures *NONNULL_PTR features);
26313 /* @internal */
26314 export function ShutdownScript_is_compatible(this_arg: number, features: number): boolean {
26315         if(!isWasmInitialized) {
26316                 throw new Error("initializeWasm() must be awaited first!");
26317         }
26318         const nativeResponseValue = wasm.TS_ShutdownScript_is_compatible(this_arg, features);
26319         return nativeResponseValue;
26320 }
26321         // void CustomMessageReader_free(struct LDKCustomMessageReader this_ptr);
26322 /* @internal */
26323 export function CustomMessageReader_free(this_ptr: number): void {
26324         if(!isWasmInitialized) {
26325                 throw new Error("initializeWasm() must be awaited first!");
26326         }
26327         const nativeResponseValue = wasm.TS_CustomMessageReader_free(this_ptr);
26328         // debug statements here
26329 }
26330         // uintptr_t Type_clone_ptr(LDKType *NONNULL_PTR arg);
26331 /* @internal */
26332 export function Type_clone_ptr(arg: number): number {
26333         if(!isWasmInitialized) {
26334                 throw new Error("initializeWasm() must be awaited first!");
26335         }
26336         const nativeResponseValue = wasm.TS_Type_clone_ptr(arg);
26337         return nativeResponseValue;
26338 }
26339         // struct LDKType Type_clone(const struct LDKType *NONNULL_PTR orig);
26340 /* @internal */
26341 export function Type_clone(orig: number): number {
26342         if(!isWasmInitialized) {
26343                 throw new Error("initializeWasm() must be awaited first!");
26344         }
26345         const nativeResponseValue = wasm.TS_Type_clone(orig);
26346         return nativeResponseValue;
26347 }
26348         // void Type_free(struct LDKType this_ptr);
26349 /* @internal */
26350 export function Type_free(this_ptr: number): void {
26351         if(!isWasmInitialized) {
26352                 throw new Error("initializeWasm() must be awaited first!");
26353         }
26354         const nativeResponseValue = wasm.TS_Type_free(this_ptr);
26355         // debug statements here
26356 }
26357         // void NodeId_free(struct LDKNodeId this_obj);
26358 /* @internal */
26359 export function NodeId_free(this_obj: number): void {
26360         if(!isWasmInitialized) {
26361                 throw new Error("initializeWasm() must be awaited first!");
26362         }
26363         const nativeResponseValue = wasm.TS_NodeId_free(this_obj);
26364         // debug statements here
26365 }
26366         // uintptr_t NodeId_clone_ptr(LDKNodeId *NONNULL_PTR arg);
26367 /* @internal */
26368 export function NodeId_clone_ptr(arg: number): number {
26369         if(!isWasmInitialized) {
26370                 throw new Error("initializeWasm() must be awaited first!");
26371         }
26372         const nativeResponseValue = wasm.TS_NodeId_clone_ptr(arg);
26373         return nativeResponseValue;
26374 }
26375         // struct LDKNodeId NodeId_clone(const struct LDKNodeId *NONNULL_PTR orig);
26376 /* @internal */
26377 export function NodeId_clone(orig: number): number {
26378         if(!isWasmInitialized) {
26379                 throw new Error("initializeWasm() must be awaited first!");
26380         }
26381         const nativeResponseValue = wasm.TS_NodeId_clone(orig);
26382         return nativeResponseValue;
26383 }
26384         // MUST_USE_RES struct LDKNodeId NodeId_from_pubkey(struct LDKPublicKey pubkey);
26385 /* @internal */
26386 export function NodeId_from_pubkey(pubkey: number): number {
26387         if(!isWasmInitialized) {
26388                 throw new Error("initializeWasm() must be awaited first!");
26389         }
26390         const nativeResponseValue = wasm.TS_NodeId_from_pubkey(pubkey);
26391         return nativeResponseValue;
26392 }
26393         // MUST_USE_RES struct LDKu8slice NodeId_as_slice(const struct LDKNodeId *NONNULL_PTR this_arg);
26394 /* @internal */
26395 export function NodeId_as_slice(this_arg: number): number {
26396         if(!isWasmInitialized) {
26397                 throw new Error("initializeWasm() must be awaited first!");
26398         }
26399         const nativeResponseValue = wasm.TS_NodeId_as_slice(this_arg);
26400         return nativeResponseValue;
26401 }
26402         // uint64_t NodeId_hash(const struct LDKNodeId *NONNULL_PTR o);
26403 /* @internal */
26404 export function NodeId_hash(o: number): bigint {
26405         if(!isWasmInitialized) {
26406                 throw new Error("initializeWasm() must be awaited first!");
26407         }
26408         const nativeResponseValue = wasm.TS_NodeId_hash(o);
26409         return nativeResponseValue;
26410 }
26411         // struct LDKCVec_u8Z NodeId_write(const struct LDKNodeId *NONNULL_PTR obj);
26412 /* @internal */
26413 export function NodeId_write(obj: number): number {
26414         if(!isWasmInitialized) {
26415                 throw new Error("initializeWasm() must be awaited first!");
26416         }
26417         const nativeResponseValue = wasm.TS_NodeId_write(obj);
26418         return nativeResponseValue;
26419 }
26420         // struct LDKCResult_NodeIdDecodeErrorZ NodeId_read(struct LDKu8slice ser);
26421 /* @internal */
26422 export function NodeId_read(ser: number): number {
26423         if(!isWasmInitialized) {
26424                 throw new Error("initializeWasm() must be awaited first!");
26425         }
26426         const nativeResponseValue = wasm.TS_NodeId_read(ser);
26427         return nativeResponseValue;
26428 }
26429         // void NetworkGraph_free(struct LDKNetworkGraph this_obj);
26430 /* @internal */
26431 export function NetworkGraph_free(this_obj: number): void {
26432         if(!isWasmInitialized) {
26433                 throw new Error("initializeWasm() must be awaited first!");
26434         }
26435         const nativeResponseValue = wasm.TS_NetworkGraph_free(this_obj);
26436         // debug statements here
26437 }
26438         // uintptr_t NetworkGraph_clone_ptr(LDKNetworkGraph *NONNULL_PTR arg);
26439 /* @internal */
26440 export function NetworkGraph_clone_ptr(arg: number): number {
26441         if(!isWasmInitialized) {
26442                 throw new Error("initializeWasm() must be awaited first!");
26443         }
26444         const nativeResponseValue = wasm.TS_NetworkGraph_clone_ptr(arg);
26445         return nativeResponseValue;
26446 }
26447         // struct LDKNetworkGraph NetworkGraph_clone(const struct LDKNetworkGraph *NONNULL_PTR orig);
26448 /* @internal */
26449 export function NetworkGraph_clone(orig: number): number {
26450         if(!isWasmInitialized) {
26451                 throw new Error("initializeWasm() must be awaited first!");
26452         }
26453         const nativeResponseValue = wasm.TS_NetworkGraph_clone(orig);
26454         return nativeResponseValue;
26455 }
26456         // void ReadOnlyNetworkGraph_free(struct LDKReadOnlyNetworkGraph this_obj);
26457 /* @internal */
26458 export function ReadOnlyNetworkGraph_free(this_obj: number): void {
26459         if(!isWasmInitialized) {
26460                 throw new Error("initializeWasm() must be awaited first!");
26461         }
26462         const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_free(this_obj);
26463         // debug statements here
26464 }
26465         // void NetworkUpdate_free(struct LDKNetworkUpdate this_ptr);
26466 /* @internal */
26467 export function NetworkUpdate_free(this_ptr: number): void {
26468         if(!isWasmInitialized) {
26469                 throw new Error("initializeWasm() must be awaited first!");
26470         }
26471         const nativeResponseValue = wasm.TS_NetworkUpdate_free(this_ptr);
26472         // debug statements here
26473 }
26474         // uintptr_t NetworkUpdate_clone_ptr(LDKNetworkUpdate *NONNULL_PTR arg);
26475 /* @internal */
26476 export function NetworkUpdate_clone_ptr(arg: number): number {
26477         if(!isWasmInitialized) {
26478                 throw new Error("initializeWasm() must be awaited first!");
26479         }
26480         const nativeResponseValue = wasm.TS_NetworkUpdate_clone_ptr(arg);
26481         return nativeResponseValue;
26482 }
26483         // struct LDKNetworkUpdate NetworkUpdate_clone(const struct LDKNetworkUpdate *NONNULL_PTR orig);
26484 /* @internal */
26485 export function NetworkUpdate_clone(orig: number): number {
26486         if(!isWasmInitialized) {
26487                 throw new Error("initializeWasm() must be awaited first!");
26488         }
26489         const nativeResponseValue = wasm.TS_NetworkUpdate_clone(orig);
26490         return nativeResponseValue;
26491 }
26492         // struct LDKNetworkUpdate NetworkUpdate_channel_update_message(struct LDKChannelUpdate msg);
26493 /* @internal */
26494 export function NetworkUpdate_channel_update_message(msg: number): number {
26495         if(!isWasmInitialized) {
26496                 throw new Error("initializeWasm() must be awaited first!");
26497         }
26498         const nativeResponseValue = wasm.TS_NetworkUpdate_channel_update_message(msg);
26499         return nativeResponseValue;
26500 }
26501         // struct LDKNetworkUpdate NetworkUpdate_channel_closed(uint64_t short_channel_id, bool is_permanent);
26502 /* @internal */
26503 export function NetworkUpdate_channel_closed(short_channel_id: bigint, is_permanent: boolean): number {
26504         if(!isWasmInitialized) {
26505                 throw new Error("initializeWasm() must be awaited first!");
26506         }
26507         const nativeResponseValue = wasm.TS_NetworkUpdate_channel_closed(short_channel_id, is_permanent);
26508         return nativeResponseValue;
26509 }
26510         // struct LDKNetworkUpdate NetworkUpdate_node_failure(struct LDKPublicKey node_id, bool is_permanent);
26511 /* @internal */
26512 export function NetworkUpdate_node_failure(node_id: number, is_permanent: boolean): number {
26513         if(!isWasmInitialized) {
26514                 throw new Error("initializeWasm() must be awaited first!");
26515         }
26516         const nativeResponseValue = wasm.TS_NetworkUpdate_node_failure(node_id, is_permanent);
26517         return nativeResponseValue;
26518 }
26519         // struct LDKCVec_u8Z NetworkUpdate_write(const struct LDKNetworkUpdate *NONNULL_PTR obj);
26520 /* @internal */
26521 export function NetworkUpdate_write(obj: number): number {
26522         if(!isWasmInitialized) {
26523                 throw new Error("initializeWasm() must be awaited first!");
26524         }
26525         const nativeResponseValue = wasm.TS_NetworkUpdate_write(obj);
26526         return nativeResponseValue;
26527 }
26528         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ NetworkUpdate_read(struct LDKu8slice ser);
26529 /* @internal */
26530 export function NetworkUpdate_read(ser: number): number {
26531         if(!isWasmInitialized) {
26532                 throw new Error("initializeWasm() must be awaited first!");
26533         }
26534         const nativeResponseValue = wasm.TS_NetworkUpdate_read(ser);
26535         return nativeResponseValue;
26536 }
26537         // struct LDKEventHandler NetGraphMsgHandler_as_EventHandler(const struct LDKNetGraphMsgHandler *NONNULL_PTR this_arg);
26538 /* @internal */
26539 export function NetGraphMsgHandler_as_EventHandler(this_arg: number): number {
26540         if(!isWasmInitialized) {
26541                 throw new Error("initializeWasm() must be awaited first!");
26542         }
26543         const nativeResponseValue = wasm.TS_NetGraphMsgHandler_as_EventHandler(this_arg);
26544         return nativeResponseValue;
26545 }
26546         // void NetGraphMsgHandler_free(struct LDKNetGraphMsgHandler this_obj);
26547 /* @internal */
26548 export function NetGraphMsgHandler_free(this_obj: number): void {
26549         if(!isWasmInitialized) {
26550                 throw new Error("initializeWasm() must be awaited first!");
26551         }
26552         const nativeResponseValue = wasm.TS_NetGraphMsgHandler_free(this_obj);
26553         // debug statements here
26554 }
26555         // MUST_USE_RES struct LDKNetGraphMsgHandler NetGraphMsgHandler_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCOption_AccessZ chain_access, struct LDKLogger logger);
26556 /* @internal */
26557 export function NetGraphMsgHandler_new(network_graph: number, chain_access: number, logger: number): number {
26558         if(!isWasmInitialized) {
26559                 throw new Error("initializeWasm() must be awaited first!");
26560         }
26561         const nativeResponseValue = wasm.TS_NetGraphMsgHandler_new(network_graph, chain_access, logger);
26562         return nativeResponseValue;
26563 }
26564         // void NetGraphMsgHandler_add_chain_access(struct LDKNetGraphMsgHandler *NONNULL_PTR this_arg, struct LDKCOption_AccessZ chain_access);
26565 /* @internal */
26566 export function NetGraphMsgHandler_add_chain_access(this_arg: number, chain_access: number): void {
26567         if(!isWasmInitialized) {
26568                 throw new Error("initializeWasm() must be awaited first!");
26569         }
26570         const nativeResponseValue = wasm.TS_NetGraphMsgHandler_add_chain_access(this_arg, chain_access);
26571         // debug statements here
26572 }
26573         // struct LDKRoutingMessageHandler NetGraphMsgHandler_as_RoutingMessageHandler(const struct LDKNetGraphMsgHandler *NONNULL_PTR this_arg);
26574 /* @internal */
26575 export function NetGraphMsgHandler_as_RoutingMessageHandler(this_arg: number): number {
26576         if(!isWasmInitialized) {
26577                 throw new Error("initializeWasm() must be awaited first!");
26578         }
26579         const nativeResponseValue = wasm.TS_NetGraphMsgHandler_as_RoutingMessageHandler(this_arg);
26580         return nativeResponseValue;
26581 }
26582         // struct LDKMessageSendEventsProvider NetGraphMsgHandler_as_MessageSendEventsProvider(const struct LDKNetGraphMsgHandler *NONNULL_PTR this_arg);
26583 /* @internal */
26584 export function NetGraphMsgHandler_as_MessageSendEventsProvider(this_arg: number): number {
26585         if(!isWasmInitialized) {
26586                 throw new Error("initializeWasm() must be awaited first!");
26587         }
26588         const nativeResponseValue = wasm.TS_NetGraphMsgHandler_as_MessageSendEventsProvider(this_arg);
26589         return nativeResponseValue;
26590 }
26591         // void ChannelUpdateInfo_free(struct LDKChannelUpdateInfo this_obj);
26592 /* @internal */
26593 export function ChannelUpdateInfo_free(this_obj: number): void {
26594         if(!isWasmInitialized) {
26595                 throw new Error("initializeWasm() must be awaited first!");
26596         }
26597         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_free(this_obj);
26598         // debug statements here
26599 }
26600         // uint32_t ChannelUpdateInfo_get_last_update(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
26601 /* @internal */
26602 export function ChannelUpdateInfo_get_last_update(this_ptr: number): number {
26603         if(!isWasmInitialized) {
26604                 throw new Error("initializeWasm() must be awaited first!");
26605         }
26606         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_last_update(this_ptr);
26607         return nativeResponseValue;
26608 }
26609         // void ChannelUpdateInfo_set_last_update(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint32_t val);
26610 /* @internal */
26611 export function ChannelUpdateInfo_set_last_update(this_ptr: number, val: number): void {
26612         if(!isWasmInitialized) {
26613                 throw new Error("initializeWasm() must be awaited first!");
26614         }
26615         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_last_update(this_ptr, val);
26616         // debug statements here
26617 }
26618         // bool ChannelUpdateInfo_get_enabled(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
26619 /* @internal */
26620 export function ChannelUpdateInfo_get_enabled(this_ptr: number): boolean {
26621         if(!isWasmInitialized) {
26622                 throw new Error("initializeWasm() must be awaited first!");
26623         }
26624         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_enabled(this_ptr);
26625         return nativeResponseValue;
26626 }
26627         // void ChannelUpdateInfo_set_enabled(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, bool val);
26628 /* @internal */
26629 export function ChannelUpdateInfo_set_enabled(this_ptr: number, val: boolean): void {
26630         if(!isWasmInitialized) {
26631                 throw new Error("initializeWasm() must be awaited first!");
26632         }
26633         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_enabled(this_ptr, val);
26634         // debug statements here
26635 }
26636         // uint16_t ChannelUpdateInfo_get_cltv_expiry_delta(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
26637 /* @internal */
26638 export function ChannelUpdateInfo_get_cltv_expiry_delta(this_ptr: number): number {
26639         if(!isWasmInitialized) {
26640                 throw new Error("initializeWasm() must be awaited first!");
26641         }
26642         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_cltv_expiry_delta(this_ptr);
26643         return nativeResponseValue;
26644 }
26645         // void ChannelUpdateInfo_set_cltv_expiry_delta(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint16_t val);
26646 /* @internal */
26647 export function ChannelUpdateInfo_set_cltv_expiry_delta(this_ptr: number, val: number): void {
26648         if(!isWasmInitialized) {
26649                 throw new Error("initializeWasm() must be awaited first!");
26650         }
26651         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_cltv_expiry_delta(this_ptr, val);
26652         // debug statements here
26653 }
26654         // uint64_t ChannelUpdateInfo_get_htlc_minimum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
26655 /* @internal */
26656 export function ChannelUpdateInfo_get_htlc_minimum_msat(this_ptr: number): bigint {
26657         if(!isWasmInitialized) {
26658                 throw new Error("initializeWasm() must be awaited first!");
26659         }
26660         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_htlc_minimum_msat(this_ptr);
26661         return nativeResponseValue;
26662 }
26663         // void ChannelUpdateInfo_set_htlc_minimum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
26664 /* @internal */
26665 export function ChannelUpdateInfo_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
26666         if(!isWasmInitialized) {
26667                 throw new Error("initializeWasm() must be awaited first!");
26668         }
26669         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_htlc_minimum_msat(this_ptr, val);
26670         // debug statements here
26671 }
26672         // struct LDKCOption_u64Z ChannelUpdateInfo_get_htlc_maximum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
26673 /* @internal */
26674 export function ChannelUpdateInfo_get_htlc_maximum_msat(this_ptr: number): number {
26675         if(!isWasmInitialized) {
26676                 throw new Error("initializeWasm() must be awaited first!");
26677         }
26678         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_htlc_maximum_msat(this_ptr);
26679         return nativeResponseValue;
26680 }
26681         // void ChannelUpdateInfo_set_htlc_maximum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
26682 /* @internal */
26683 export function ChannelUpdateInfo_set_htlc_maximum_msat(this_ptr: number, val: number): void {
26684         if(!isWasmInitialized) {
26685                 throw new Error("initializeWasm() must be awaited first!");
26686         }
26687         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_htlc_maximum_msat(this_ptr, val);
26688         // debug statements here
26689 }
26690         // struct LDKRoutingFees ChannelUpdateInfo_get_fees(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
26691 /* @internal */
26692 export function ChannelUpdateInfo_get_fees(this_ptr: number): number {
26693         if(!isWasmInitialized) {
26694                 throw new Error("initializeWasm() must be awaited first!");
26695         }
26696         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_fees(this_ptr);
26697         return nativeResponseValue;
26698 }
26699         // void ChannelUpdateInfo_set_fees(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
26700 /* @internal */
26701 export function ChannelUpdateInfo_set_fees(this_ptr: number, val: number): void {
26702         if(!isWasmInitialized) {
26703                 throw new Error("initializeWasm() must be awaited first!");
26704         }
26705         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_fees(this_ptr, val);
26706         // debug statements here
26707 }
26708         // struct LDKChannelUpdate ChannelUpdateInfo_get_last_update_message(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
26709 /* @internal */
26710 export function ChannelUpdateInfo_get_last_update_message(this_ptr: number): number {
26711         if(!isWasmInitialized) {
26712                 throw new Error("initializeWasm() must be awaited first!");
26713         }
26714         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_last_update_message(this_ptr);
26715         return nativeResponseValue;
26716 }
26717         // void ChannelUpdateInfo_set_last_update_message(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdate val);
26718 /* @internal */
26719 export function ChannelUpdateInfo_set_last_update_message(this_ptr: number, val: number): void {
26720         if(!isWasmInitialized) {
26721                 throw new Error("initializeWasm() must be awaited first!");
26722         }
26723         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_last_update_message(this_ptr, val);
26724         // debug statements here
26725 }
26726         // 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);
26727 /* @internal */
26728 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 {
26729         if(!isWasmInitialized) {
26730                 throw new Error("initializeWasm() must be awaited first!");
26731         }
26732         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);
26733         return nativeResponseValue;
26734 }
26735         // uintptr_t ChannelUpdateInfo_clone_ptr(LDKChannelUpdateInfo *NONNULL_PTR arg);
26736 /* @internal */
26737 export function ChannelUpdateInfo_clone_ptr(arg: number): number {
26738         if(!isWasmInitialized) {
26739                 throw new Error("initializeWasm() must be awaited first!");
26740         }
26741         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_clone_ptr(arg);
26742         return nativeResponseValue;
26743 }
26744         // struct LDKChannelUpdateInfo ChannelUpdateInfo_clone(const struct LDKChannelUpdateInfo *NONNULL_PTR orig);
26745 /* @internal */
26746 export function ChannelUpdateInfo_clone(orig: number): number {
26747         if(!isWasmInitialized) {
26748                 throw new Error("initializeWasm() must be awaited first!");
26749         }
26750         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_clone(orig);
26751         return nativeResponseValue;
26752 }
26753         // struct LDKCVec_u8Z ChannelUpdateInfo_write(const struct LDKChannelUpdateInfo *NONNULL_PTR obj);
26754 /* @internal */
26755 export function ChannelUpdateInfo_write(obj: number): number {
26756         if(!isWasmInitialized) {
26757                 throw new Error("initializeWasm() must be awaited first!");
26758         }
26759         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_write(obj);
26760         return nativeResponseValue;
26761 }
26762         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ ChannelUpdateInfo_read(struct LDKu8slice ser);
26763 /* @internal */
26764 export function ChannelUpdateInfo_read(ser: number): number {
26765         if(!isWasmInitialized) {
26766                 throw new Error("initializeWasm() must be awaited first!");
26767         }
26768         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_read(ser);
26769         return nativeResponseValue;
26770 }
26771         // void ChannelInfo_free(struct LDKChannelInfo this_obj);
26772 /* @internal */
26773 export function ChannelInfo_free(this_obj: number): void {
26774         if(!isWasmInitialized) {
26775                 throw new Error("initializeWasm() must be awaited first!");
26776         }
26777         const nativeResponseValue = wasm.TS_ChannelInfo_free(this_obj);
26778         // debug statements here
26779 }
26780         // struct LDKChannelFeatures ChannelInfo_get_features(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
26781 /* @internal */
26782 export function ChannelInfo_get_features(this_ptr: number): number {
26783         if(!isWasmInitialized) {
26784                 throw new Error("initializeWasm() must be awaited first!");
26785         }
26786         const nativeResponseValue = wasm.TS_ChannelInfo_get_features(this_ptr);
26787         return nativeResponseValue;
26788 }
26789         // void ChannelInfo_set_features(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
26790 /* @internal */
26791 export function ChannelInfo_set_features(this_ptr: number, val: number): void {
26792         if(!isWasmInitialized) {
26793                 throw new Error("initializeWasm() must be awaited first!");
26794         }
26795         const nativeResponseValue = wasm.TS_ChannelInfo_set_features(this_ptr, val);
26796         // debug statements here
26797 }
26798         // struct LDKNodeId ChannelInfo_get_node_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
26799 /* @internal */
26800 export function ChannelInfo_get_node_one(this_ptr: number): number {
26801         if(!isWasmInitialized) {
26802                 throw new Error("initializeWasm() must be awaited first!");
26803         }
26804         const nativeResponseValue = wasm.TS_ChannelInfo_get_node_one(this_ptr);
26805         return nativeResponseValue;
26806 }
26807         // void ChannelInfo_set_node_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
26808 /* @internal */
26809 export function ChannelInfo_set_node_one(this_ptr: number, val: number): void {
26810         if(!isWasmInitialized) {
26811                 throw new Error("initializeWasm() must be awaited first!");
26812         }
26813         const nativeResponseValue = wasm.TS_ChannelInfo_set_node_one(this_ptr, val);
26814         // debug statements here
26815 }
26816         // struct LDKChannelUpdateInfo ChannelInfo_get_one_to_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
26817 /* @internal */
26818 export function ChannelInfo_get_one_to_two(this_ptr: number): number {
26819         if(!isWasmInitialized) {
26820                 throw new Error("initializeWasm() must be awaited first!");
26821         }
26822         const nativeResponseValue = wasm.TS_ChannelInfo_get_one_to_two(this_ptr);
26823         return nativeResponseValue;
26824 }
26825         // void ChannelInfo_set_one_to_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
26826 /* @internal */
26827 export function ChannelInfo_set_one_to_two(this_ptr: number, val: number): void {
26828         if(!isWasmInitialized) {
26829                 throw new Error("initializeWasm() must be awaited first!");
26830         }
26831         const nativeResponseValue = wasm.TS_ChannelInfo_set_one_to_two(this_ptr, val);
26832         // debug statements here
26833 }
26834         // struct LDKNodeId ChannelInfo_get_node_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
26835 /* @internal */
26836 export function ChannelInfo_get_node_two(this_ptr: number): number {
26837         if(!isWasmInitialized) {
26838                 throw new Error("initializeWasm() must be awaited first!");
26839         }
26840         const nativeResponseValue = wasm.TS_ChannelInfo_get_node_two(this_ptr);
26841         return nativeResponseValue;
26842 }
26843         // void ChannelInfo_set_node_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
26844 /* @internal */
26845 export function ChannelInfo_set_node_two(this_ptr: number, val: number): void {
26846         if(!isWasmInitialized) {
26847                 throw new Error("initializeWasm() must be awaited first!");
26848         }
26849         const nativeResponseValue = wasm.TS_ChannelInfo_set_node_two(this_ptr, val);
26850         // debug statements here
26851 }
26852         // struct LDKChannelUpdateInfo ChannelInfo_get_two_to_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
26853 /* @internal */
26854 export function ChannelInfo_get_two_to_one(this_ptr: number): number {
26855         if(!isWasmInitialized) {
26856                 throw new Error("initializeWasm() must be awaited first!");
26857         }
26858         const nativeResponseValue = wasm.TS_ChannelInfo_get_two_to_one(this_ptr);
26859         return nativeResponseValue;
26860 }
26861         // void ChannelInfo_set_two_to_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
26862 /* @internal */
26863 export function ChannelInfo_set_two_to_one(this_ptr: number, val: number): void {
26864         if(!isWasmInitialized) {
26865                 throw new Error("initializeWasm() must be awaited first!");
26866         }
26867         const nativeResponseValue = wasm.TS_ChannelInfo_set_two_to_one(this_ptr, val);
26868         // debug statements here
26869 }
26870         // struct LDKCOption_u64Z ChannelInfo_get_capacity_sats(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
26871 /* @internal */
26872 export function ChannelInfo_get_capacity_sats(this_ptr: number): number {
26873         if(!isWasmInitialized) {
26874                 throw new Error("initializeWasm() must be awaited first!");
26875         }
26876         const nativeResponseValue = wasm.TS_ChannelInfo_get_capacity_sats(this_ptr);
26877         return nativeResponseValue;
26878 }
26879         // void ChannelInfo_set_capacity_sats(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
26880 /* @internal */
26881 export function ChannelInfo_set_capacity_sats(this_ptr: number, val: number): void {
26882         if(!isWasmInitialized) {
26883                 throw new Error("initializeWasm() must be awaited first!");
26884         }
26885         const nativeResponseValue = wasm.TS_ChannelInfo_set_capacity_sats(this_ptr, val);
26886         // debug statements here
26887 }
26888         // struct LDKChannelAnnouncement ChannelInfo_get_announcement_message(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
26889 /* @internal */
26890 export function ChannelInfo_get_announcement_message(this_ptr: number): number {
26891         if(!isWasmInitialized) {
26892                 throw new Error("initializeWasm() must be awaited first!");
26893         }
26894         const nativeResponseValue = wasm.TS_ChannelInfo_get_announcement_message(this_ptr);
26895         return nativeResponseValue;
26896 }
26897         // void ChannelInfo_set_announcement_message(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelAnnouncement val);
26898 /* @internal */
26899 export function ChannelInfo_set_announcement_message(this_ptr: number, val: number): void {
26900         if(!isWasmInitialized) {
26901                 throw new Error("initializeWasm() must be awaited first!");
26902         }
26903         const nativeResponseValue = wasm.TS_ChannelInfo_set_announcement_message(this_ptr, val);
26904         // debug statements here
26905 }
26906         // uintptr_t ChannelInfo_clone_ptr(LDKChannelInfo *NONNULL_PTR arg);
26907 /* @internal */
26908 export function ChannelInfo_clone_ptr(arg: number): number {
26909         if(!isWasmInitialized) {
26910                 throw new Error("initializeWasm() must be awaited first!");
26911         }
26912         const nativeResponseValue = wasm.TS_ChannelInfo_clone_ptr(arg);
26913         return nativeResponseValue;
26914 }
26915         // struct LDKChannelInfo ChannelInfo_clone(const struct LDKChannelInfo *NONNULL_PTR orig);
26916 /* @internal */
26917 export function ChannelInfo_clone(orig: number): number {
26918         if(!isWasmInitialized) {
26919                 throw new Error("initializeWasm() must be awaited first!");
26920         }
26921         const nativeResponseValue = wasm.TS_ChannelInfo_clone(orig);
26922         return nativeResponseValue;
26923 }
26924         // struct LDKCVec_u8Z ChannelInfo_write(const struct LDKChannelInfo *NONNULL_PTR obj);
26925 /* @internal */
26926 export function ChannelInfo_write(obj: number): number {
26927         if(!isWasmInitialized) {
26928                 throw new Error("initializeWasm() must be awaited first!");
26929         }
26930         const nativeResponseValue = wasm.TS_ChannelInfo_write(obj);
26931         return nativeResponseValue;
26932 }
26933         // struct LDKCResult_ChannelInfoDecodeErrorZ ChannelInfo_read(struct LDKu8slice ser);
26934 /* @internal */
26935 export function ChannelInfo_read(ser: number): number {
26936         if(!isWasmInitialized) {
26937                 throw new Error("initializeWasm() must be awaited first!");
26938         }
26939         const nativeResponseValue = wasm.TS_ChannelInfo_read(ser);
26940         return nativeResponseValue;
26941 }
26942         // void DirectedChannelInfo_free(struct LDKDirectedChannelInfo this_obj);
26943 /* @internal */
26944 export function DirectedChannelInfo_free(this_obj: number): void {
26945         if(!isWasmInitialized) {
26946                 throw new Error("initializeWasm() must be awaited first!");
26947         }
26948         const nativeResponseValue = wasm.TS_DirectedChannelInfo_free(this_obj);
26949         // debug statements here
26950 }
26951         // uintptr_t DirectedChannelInfo_clone_ptr(LDKDirectedChannelInfo *NONNULL_PTR arg);
26952 /* @internal */
26953 export function DirectedChannelInfo_clone_ptr(arg: number): number {
26954         if(!isWasmInitialized) {
26955                 throw new Error("initializeWasm() must be awaited first!");
26956         }
26957         const nativeResponseValue = wasm.TS_DirectedChannelInfo_clone_ptr(arg);
26958         return nativeResponseValue;
26959 }
26960         // struct LDKDirectedChannelInfo DirectedChannelInfo_clone(const struct LDKDirectedChannelInfo *NONNULL_PTR orig);
26961 /* @internal */
26962 export function DirectedChannelInfo_clone(orig: number): number {
26963         if(!isWasmInitialized) {
26964                 throw new Error("initializeWasm() must be awaited first!");
26965         }
26966         const nativeResponseValue = wasm.TS_DirectedChannelInfo_clone(orig);
26967         return nativeResponseValue;
26968 }
26969         // MUST_USE_RES struct LDKChannelInfo DirectedChannelInfo_channel(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
26970 /* @internal */
26971 export function DirectedChannelInfo_channel(this_arg: number): number {
26972         if(!isWasmInitialized) {
26973                 throw new Error("initializeWasm() must be awaited first!");
26974         }
26975         const nativeResponseValue = wasm.TS_DirectedChannelInfo_channel(this_arg);
26976         return nativeResponseValue;
26977 }
26978         // MUST_USE_RES struct LDKChannelUpdateInfo DirectedChannelInfo_direction(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
26979 /* @internal */
26980 export function DirectedChannelInfo_direction(this_arg: number): number {
26981         if(!isWasmInitialized) {
26982                 throw new Error("initializeWasm() must be awaited first!");
26983         }
26984         const nativeResponseValue = wasm.TS_DirectedChannelInfo_direction(this_arg);
26985         return nativeResponseValue;
26986 }
26987         // MUST_USE_RES struct LDKEffectiveCapacity DirectedChannelInfo_effective_capacity(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
26988 /* @internal */
26989 export function DirectedChannelInfo_effective_capacity(this_arg: number): number {
26990         if(!isWasmInitialized) {
26991                 throw new Error("initializeWasm() must be awaited first!");
26992         }
26993         const nativeResponseValue = wasm.TS_DirectedChannelInfo_effective_capacity(this_arg);
26994         return nativeResponseValue;
26995 }
26996         // void EffectiveCapacity_free(struct LDKEffectiveCapacity this_ptr);
26997 /* @internal */
26998 export function EffectiveCapacity_free(this_ptr: number): void {
26999         if(!isWasmInitialized) {
27000                 throw new Error("initializeWasm() must be awaited first!");
27001         }
27002         const nativeResponseValue = wasm.TS_EffectiveCapacity_free(this_ptr);
27003         // debug statements here
27004 }
27005         // uintptr_t EffectiveCapacity_clone_ptr(LDKEffectiveCapacity *NONNULL_PTR arg);
27006 /* @internal */
27007 export function EffectiveCapacity_clone_ptr(arg: number): number {
27008         if(!isWasmInitialized) {
27009                 throw new Error("initializeWasm() must be awaited first!");
27010         }
27011         const nativeResponseValue = wasm.TS_EffectiveCapacity_clone_ptr(arg);
27012         return nativeResponseValue;
27013 }
27014         // struct LDKEffectiveCapacity EffectiveCapacity_clone(const struct LDKEffectiveCapacity *NONNULL_PTR orig);
27015 /* @internal */
27016 export function EffectiveCapacity_clone(orig: number): number {
27017         if(!isWasmInitialized) {
27018                 throw new Error("initializeWasm() must be awaited first!");
27019         }
27020         const nativeResponseValue = wasm.TS_EffectiveCapacity_clone(orig);
27021         return nativeResponseValue;
27022 }
27023         // struct LDKEffectiveCapacity EffectiveCapacity_exact_liquidity(uint64_t liquidity_msat);
27024 /* @internal */
27025 export function EffectiveCapacity_exact_liquidity(liquidity_msat: bigint): number {
27026         if(!isWasmInitialized) {
27027                 throw new Error("initializeWasm() must be awaited first!");
27028         }
27029         const nativeResponseValue = wasm.TS_EffectiveCapacity_exact_liquidity(liquidity_msat);
27030         return nativeResponseValue;
27031 }
27032         // struct LDKEffectiveCapacity EffectiveCapacity_maximum_htlc(uint64_t amount_msat);
27033 /* @internal */
27034 export function EffectiveCapacity_maximum_htlc(amount_msat: bigint): number {
27035         if(!isWasmInitialized) {
27036                 throw new Error("initializeWasm() must be awaited first!");
27037         }
27038         const nativeResponseValue = wasm.TS_EffectiveCapacity_maximum_htlc(amount_msat);
27039         return nativeResponseValue;
27040 }
27041         // struct LDKEffectiveCapacity EffectiveCapacity_total(uint64_t capacity_msat);
27042 /* @internal */
27043 export function EffectiveCapacity_total(capacity_msat: bigint): number {
27044         if(!isWasmInitialized) {
27045                 throw new Error("initializeWasm() must be awaited first!");
27046         }
27047         const nativeResponseValue = wasm.TS_EffectiveCapacity_total(capacity_msat);
27048         return nativeResponseValue;
27049 }
27050         // struct LDKEffectiveCapacity EffectiveCapacity_infinite(void);
27051 /* @internal */
27052 export function EffectiveCapacity_infinite(): number {
27053         if(!isWasmInitialized) {
27054                 throw new Error("initializeWasm() must be awaited first!");
27055         }
27056         const nativeResponseValue = wasm.TS_EffectiveCapacity_infinite();
27057         return nativeResponseValue;
27058 }
27059         // struct LDKEffectiveCapacity EffectiveCapacity_unknown(void);
27060 /* @internal */
27061 export function EffectiveCapacity_unknown(): number {
27062         if(!isWasmInitialized) {
27063                 throw new Error("initializeWasm() must be awaited first!");
27064         }
27065         const nativeResponseValue = wasm.TS_EffectiveCapacity_unknown();
27066         return nativeResponseValue;
27067 }
27068         // MUST_USE_RES uint64_t EffectiveCapacity_as_msat(const struct LDKEffectiveCapacity *NONNULL_PTR this_arg);
27069 /* @internal */
27070 export function EffectiveCapacity_as_msat(this_arg: number): bigint {
27071         if(!isWasmInitialized) {
27072                 throw new Error("initializeWasm() must be awaited first!");
27073         }
27074         const nativeResponseValue = wasm.TS_EffectiveCapacity_as_msat(this_arg);
27075         return nativeResponseValue;
27076 }
27077         // void RoutingFees_free(struct LDKRoutingFees this_obj);
27078 /* @internal */
27079 export function RoutingFees_free(this_obj: number): void {
27080         if(!isWasmInitialized) {
27081                 throw new Error("initializeWasm() must be awaited first!");
27082         }
27083         const nativeResponseValue = wasm.TS_RoutingFees_free(this_obj);
27084         // debug statements here
27085 }
27086         // uint32_t RoutingFees_get_base_msat(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
27087 /* @internal */
27088 export function RoutingFees_get_base_msat(this_ptr: number): number {
27089         if(!isWasmInitialized) {
27090                 throw new Error("initializeWasm() must be awaited first!");
27091         }
27092         const nativeResponseValue = wasm.TS_RoutingFees_get_base_msat(this_ptr);
27093         return nativeResponseValue;
27094 }
27095         // void RoutingFees_set_base_msat(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
27096 /* @internal */
27097 export function RoutingFees_set_base_msat(this_ptr: number, val: number): void {
27098         if(!isWasmInitialized) {
27099                 throw new Error("initializeWasm() must be awaited first!");
27100         }
27101         const nativeResponseValue = wasm.TS_RoutingFees_set_base_msat(this_ptr, val);
27102         // debug statements here
27103 }
27104         // uint32_t RoutingFees_get_proportional_millionths(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
27105 /* @internal */
27106 export function RoutingFees_get_proportional_millionths(this_ptr: number): number {
27107         if(!isWasmInitialized) {
27108                 throw new Error("initializeWasm() must be awaited first!");
27109         }
27110         const nativeResponseValue = wasm.TS_RoutingFees_get_proportional_millionths(this_ptr);
27111         return nativeResponseValue;
27112 }
27113         // void RoutingFees_set_proportional_millionths(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
27114 /* @internal */
27115 export function RoutingFees_set_proportional_millionths(this_ptr: number, val: number): void {
27116         if(!isWasmInitialized) {
27117                 throw new Error("initializeWasm() must be awaited first!");
27118         }
27119         const nativeResponseValue = wasm.TS_RoutingFees_set_proportional_millionths(this_ptr, val);
27120         // debug statements here
27121 }
27122         // MUST_USE_RES struct LDKRoutingFees RoutingFees_new(uint32_t base_msat_arg, uint32_t proportional_millionths_arg);
27123 /* @internal */
27124 export function RoutingFees_new(base_msat_arg: number, proportional_millionths_arg: number): number {
27125         if(!isWasmInitialized) {
27126                 throw new Error("initializeWasm() must be awaited first!");
27127         }
27128         const nativeResponseValue = wasm.TS_RoutingFees_new(base_msat_arg, proportional_millionths_arg);
27129         return nativeResponseValue;
27130 }
27131         // bool RoutingFees_eq(const struct LDKRoutingFees *NONNULL_PTR a, const struct LDKRoutingFees *NONNULL_PTR b);
27132 /* @internal */
27133 export function RoutingFees_eq(a: number, b: number): boolean {
27134         if(!isWasmInitialized) {
27135                 throw new Error("initializeWasm() must be awaited first!");
27136         }
27137         const nativeResponseValue = wasm.TS_RoutingFees_eq(a, b);
27138         return nativeResponseValue;
27139 }
27140         // uintptr_t RoutingFees_clone_ptr(LDKRoutingFees *NONNULL_PTR arg);
27141 /* @internal */
27142 export function RoutingFees_clone_ptr(arg: number): number {
27143         if(!isWasmInitialized) {
27144                 throw new Error("initializeWasm() must be awaited first!");
27145         }
27146         const nativeResponseValue = wasm.TS_RoutingFees_clone_ptr(arg);
27147         return nativeResponseValue;
27148 }
27149         // struct LDKRoutingFees RoutingFees_clone(const struct LDKRoutingFees *NONNULL_PTR orig);
27150 /* @internal */
27151 export function RoutingFees_clone(orig: number): number {
27152         if(!isWasmInitialized) {
27153                 throw new Error("initializeWasm() must be awaited first!");
27154         }
27155         const nativeResponseValue = wasm.TS_RoutingFees_clone(orig);
27156         return nativeResponseValue;
27157 }
27158         // uint64_t RoutingFees_hash(const struct LDKRoutingFees *NONNULL_PTR o);
27159 /* @internal */
27160 export function RoutingFees_hash(o: number): bigint {
27161         if(!isWasmInitialized) {
27162                 throw new Error("initializeWasm() must be awaited first!");
27163         }
27164         const nativeResponseValue = wasm.TS_RoutingFees_hash(o);
27165         return nativeResponseValue;
27166 }
27167         // struct LDKCVec_u8Z RoutingFees_write(const struct LDKRoutingFees *NONNULL_PTR obj);
27168 /* @internal */
27169 export function RoutingFees_write(obj: number): number {
27170         if(!isWasmInitialized) {
27171                 throw new Error("initializeWasm() must be awaited first!");
27172         }
27173         const nativeResponseValue = wasm.TS_RoutingFees_write(obj);
27174         return nativeResponseValue;
27175 }
27176         // struct LDKCResult_RoutingFeesDecodeErrorZ RoutingFees_read(struct LDKu8slice ser);
27177 /* @internal */
27178 export function RoutingFees_read(ser: number): number {
27179         if(!isWasmInitialized) {
27180                 throw new Error("initializeWasm() must be awaited first!");
27181         }
27182         const nativeResponseValue = wasm.TS_RoutingFees_read(ser);
27183         return nativeResponseValue;
27184 }
27185         // void NodeAnnouncementInfo_free(struct LDKNodeAnnouncementInfo this_obj);
27186 /* @internal */
27187 export function NodeAnnouncementInfo_free(this_obj: number): void {
27188         if(!isWasmInitialized) {
27189                 throw new Error("initializeWasm() must be awaited first!");
27190         }
27191         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_free(this_obj);
27192         // debug statements here
27193 }
27194         // struct LDKNodeFeatures NodeAnnouncementInfo_get_features(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
27195 /* @internal */
27196 export function NodeAnnouncementInfo_get_features(this_ptr: number): number {
27197         if(!isWasmInitialized) {
27198                 throw new Error("initializeWasm() must be awaited first!");
27199         }
27200         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_features(this_ptr);
27201         return nativeResponseValue;
27202 }
27203         // void NodeAnnouncementInfo_set_features(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
27204 /* @internal */
27205 export function NodeAnnouncementInfo_set_features(this_ptr: number, val: number): void {
27206         if(!isWasmInitialized) {
27207                 throw new Error("initializeWasm() must be awaited first!");
27208         }
27209         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_features(this_ptr, val);
27210         // debug statements here
27211 }
27212         // uint32_t NodeAnnouncementInfo_get_last_update(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
27213 /* @internal */
27214 export function NodeAnnouncementInfo_get_last_update(this_ptr: number): number {
27215         if(!isWasmInitialized) {
27216                 throw new Error("initializeWasm() must be awaited first!");
27217         }
27218         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_last_update(this_ptr);
27219         return nativeResponseValue;
27220 }
27221         // void NodeAnnouncementInfo_set_last_update(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, uint32_t val);
27222 /* @internal */
27223 export function NodeAnnouncementInfo_set_last_update(this_ptr: number, val: number): void {
27224         if(!isWasmInitialized) {
27225                 throw new Error("initializeWasm() must be awaited first!");
27226         }
27227         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_last_update(this_ptr, val);
27228         // debug statements here
27229 }
27230         // const uint8_t (*NodeAnnouncementInfo_get_rgb(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[3];
27231 /* @internal */
27232 export function NodeAnnouncementInfo_get_rgb(this_ptr: number): number {
27233         if(!isWasmInitialized) {
27234                 throw new Error("initializeWasm() must be awaited first!");
27235         }
27236         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_rgb(this_ptr);
27237         return nativeResponseValue;
27238 }
27239         // void NodeAnnouncementInfo_set_rgb(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
27240 /* @internal */
27241 export function NodeAnnouncementInfo_set_rgb(this_ptr: number, val: number): void {
27242         if(!isWasmInitialized) {
27243                 throw new Error("initializeWasm() must be awaited first!");
27244         }
27245         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_rgb(this_ptr, val);
27246         // debug statements here
27247 }
27248         // const uint8_t (*NodeAnnouncementInfo_get_alias(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[32];
27249 /* @internal */
27250 export function NodeAnnouncementInfo_get_alias(this_ptr: number): number {
27251         if(!isWasmInitialized) {
27252                 throw new Error("initializeWasm() must be awaited first!");
27253         }
27254         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_alias(this_ptr);
27255         return nativeResponseValue;
27256 }
27257         // void NodeAnnouncementInfo_set_alias(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
27258 /* @internal */
27259 export function NodeAnnouncementInfo_set_alias(this_ptr: number, val: number): void {
27260         if(!isWasmInitialized) {
27261                 throw new Error("initializeWasm() must be awaited first!");
27262         }
27263         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_alias(this_ptr, val);
27264         // debug statements here
27265 }
27266         // void NodeAnnouncementInfo_set_addresses(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
27267 /* @internal */
27268 export function NodeAnnouncementInfo_set_addresses(this_ptr: number, val: number): void {
27269         if(!isWasmInitialized) {
27270                 throw new Error("initializeWasm() must be awaited first!");
27271         }
27272         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_addresses(this_ptr, val);
27273         // debug statements here
27274 }
27275         // struct LDKNodeAnnouncement NodeAnnouncementInfo_get_announcement_message(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
27276 /* @internal */
27277 export function NodeAnnouncementInfo_get_announcement_message(this_ptr: number): number {
27278         if(!isWasmInitialized) {
27279                 throw new Error("initializeWasm() must be awaited first!");
27280         }
27281         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_announcement_message(this_ptr);
27282         return nativeResponseValue;
27283 }
27284         // void NodeAnnouncementInfo_set_announcement_message(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncement val);
27285 /* @internal */
27286 export function NodeAnnouncementInfo_set_announcement_message(this_ptr: number, val: number): void {
27287         if(!isWasmInitialized) {
27288                 throw new Error("initializeWasm() must be awaited first!");
27289         }
27290         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_announcement_message(this_ptr, val);
27291         // debug statements here
27292 }
27293         // 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);
27294 /* @internal */
27295 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 {
27296         if(!isWasmInitialized) {
27297                 throw new Error("initializeWasm() must be awaited first!");
27298         }
27299         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_new(features_arg, last_update_arg, rgb_arg, alias_arg, addresses_arg, announcement_message_arg);
27300         return nativeResponseValue;
27301 }
27302         // uintptr_t NodeAnnouncementInfo_clone_ptr(LDKNodeAnnouncementInfo *NONNULL_PTR arg);
27303 /* @internal */
27304 export function NodeAnnouncementInfo_clone_ptr(arg: number): number {
27305         if(!isWasmInitialized) {
27306                 throw new Error("initializeWasm() must be awaited first!");
27307         }
27308         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_clone_ptr(arg);
27309         return nativeResponseValue;
27310 }
27311         // struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_clone(const struct LDKNodeAnnouncementInfo *NONNULL_PTR orig);
27312 /* @internal */
27313 export function NodeAnnouncementInfo_clone(orig: number): number {
27314         if(!isWasmInitialized) {
27315                 throw new Error("initializeWasm() must be awaited first!");
27316         }
27317         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_clone(orig);
27318         return nativeResponseValue;
27319 }
27320         // struct LDKCVec_u8Z NodeAnnouncementInfo_write(const struct LDKNodeAnnouncementInfo *NONNULL_PTR obj);
27321 /* @internal */
27322 export function NodeAnnouncementInfo_write(obj: number): number {
27323         if(!isWasmInitialized) {
27324                 throw new Error("initializeWasm() must be awaited first!");
27325         }
27326         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_write(obj);
27327         return nativeResponseValue;
27328 }
27329         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ NodeAnnouncementInfo_read(struct LDKu8slice ser);
27330 /* @internal */
27331 export function NodeAnnouncementInfo_read(ser: number): number {
27332         if(!isWasmInitialized) {
27333                 throw new Error("initializeWasm() must be awaited first!");
27334         }
27335         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_read(ser);
27336         return nativeResponseValue;
27337 }
27338         // void NodeInfo_free(struct LDKNodeInfo this_obj);
27339 /* @internal */
27340 export function NodeInfo_free(this_obj: number): void {
27341         if(!isWasmInitialized) {
27342                 throw new Error("initializeWasm() must be awaited first!");
27343         }
27344         const nativeResponseValue = wasm.TS_NodeInfo_free(this_obj);
27345         // debug statements here
27346 }
27347         // void NodeInfo_set_channels(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
27348 /* @internal */
27349 export function NodeInfo_set_channels(this_ptr: number, val: number): void {
27350         if(!isWasmInitialized) {
27351                 throw new Error("initializeWasm() must be awaited first!");
27352         }
27353         const nativeResponseValue = wasm.TS_NodeInfo_set_channels(this_ptr, val);
27354         // debug statements here
27355 }
27356         // struct LDKRoutingFees NodeInfo_get_lowest_inbound_channel_fees(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
27357 /* @internal */
27358 export function NodeInfo_get_lowest_inbound_channel_fees(this_ptr: number): number {
27359         if(!isWasmInitialized) {
27360                 throw new Error("initializeWasm() must be awaited first!");
27361         }
27362         const nativeResponseValue = wasm.TS_NodeInfo_get_lowest_inbound_channel_fees(this_ptr);
27363         return nativeResponseValue;
27364 }
27365         // void NodeInfo_set_lowest_inbound_channel_fees(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
27366 /* @internal */
27367 export function NodeInfo_set_lowest_inbound_channel_fees(this_ptr: number, val: number): void {
27368         if(!isWasmInitialized) {
27369                 throw new Error("initializeWasm() must be awaited first!");
27370         }
27371         const nativeResponseValue = wasm.TS_NodeInfo_set_lowest_inbound_channel_fees(this_ptr, val);
27372         // debug statements here
27373 }
27374         // struct LDKNodeAnnouncementInfo NodeInfo_get_announcement_info(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
27375 /* @internal */
27376 export function NodeInfo_get_announcement_info(this_ptr: number): number {
27377         if(!isWasmInitialized) {
27378                 throw new Error("initializeWasm() must be awaited first!");
27379         }
27380         const nativeResponseValue = wasm.TS_NodeInfo_get_announcement_info(this_ptr);
27381         return nativeResponseValue;
27382 }
27383         // void NodeInfo_set_announcement_info(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncementInfo val);
27384 /* @internal */
27385 export function NodeInfo_set_announcement_info(this_ptr: number, val: number): void {
27386         if(!isWasmInitialized) {
27387                 throw new Error("initializeWasm() must be awaited first!");
27388         }
27389         const nativeResponseValue = wasm.TS_NodeInfo_set_announcement_info(this_ptr, val);
27390         // debug statements here
27391 }
27392         // MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKRoutingFees lowest_inbound_channel_fees_arg, struct LDKNodeAnnouncementInfo announcement_info_arg);
27393 /* @internal */
27394 export function NodeInfo_new(channels_arg: number, lowest_inbound_channel_fees_arg: number, announcement_info_arg: number): number {
27395         if(!isWasmInitialized) {
27396                 throw new Error("initializeWasm() must be awaited first!");
27397         }
27398         const nativeResponseValue = wasm.TS_NodeInfo_new(channels_arg, lowest_inbound_channel_fees_arg, announcement_info_arg);
27399         return nativeResponseValue;
27400 }
27401         // uintptr_t NodeInfo_clone_ptr(LDKNodeInfo *NONNULL_PTR arg);
27402 /* @internal */
27403 export function NodeInfo_clone_ptr(arg: number): number {
27404         if(!isWasmInitialized) {
27405                 throw new Error("initializeWasm() must be awaited first!");
27406         }
27407         const nativeResponseValue = wasm.TS_NodeInfo_clone_ptr(arg);
27408         return nativeResponseValue;
27409 }
27410         // struct LDKNodeInfo NodeInfo_clone(const struct LDKNodeInfo *NONNULL_PTR orig);
27411 /* @internal */
27412 export function NodeInfo_clone(orig: number): number {
27413         if(!isWasmInitialized) {
27414                 throw new Error("initializeWasm() must be awaited first!");
27415         }
27416         const nativeResponseValue = wasm.TS_NodeInfo_clone(orig);
27417         return nativeResponseValue;
27418 }
27419         // struct LDKCVec_u8Z NodeInfo_write(const struct LDKNodeInfo *NONNULL_PTR obj);
27420 /* @internal */
27421 export function NodeInfo_write(obj: number): number {
27422         if(!isWasmInitialized) {
27423                 throw new Error("initializeWasm() must be awaited first!");
27424         }
27425         const nativeResponseValue = wasm.TS_NodeInfo_write(obj);
27426         return nativeResponseValue;
27427 }
27428         // struct LDKCResult_NodeInfoDecodeErrorZ NodeInfo_read(struct LDKu8slice ser);
27429 /* @internal */
27430 export function NodeInfo_read(ser: number): number {
27431         if(!isWasmInitialized) {
27432                 throw new Error("initializeWasm() must be awaited first!");
27433         }
27434         const nativeResponseValue = wasm.TS_NodeInfo_read(ser);
27435         return nativeResponseValue;
27436 }
27437         // struct LDKCVec_u8Z NetworkGraph_write(const struct LDKNetworkGraph *NONNULL_PTR obj);
27438 /* @internal */
27439 export function NetworkGraph_write(obj: number): number {
27440         if(!isWasmInitialized) {
27441                 throw new Error("initializeWasm() must be awaited first!");
27442         }
27443         const nativeResponseValue = wasm.TS_NetworkGraph_write(obj);
27444         return nativeResponseValue;
27445 }
27446         // struct LDKCResult_NetworkGraphDecodeErrorZ NetworkGraph_read(struct LDKu8slice ser);
27447 /* @internal */
27448 export function NetworkGraph_read(ser: number): number {
27449         if(!isWasmInitialized) {
27450                 throw new Error("initializeWasm() must be awaited first!");
27451         }
27452         const nativeResponseValue = wasm.TS_NetworkGraph_read(ser);
27453         return nativeResponseValue;
27454 }
27455         // MUST_USE_RES struct LDKNetworkGraph NetworkGraph_new(struct LDKThirtyTwoBytes genesis_hash);
27456 /* @internal */
27457 export function NetworkGraph_new(genesis_hash: number): number {
27458         if(!isWasmInitialized) {
27459                 throw new Error("initializeWasm() must be awaited first!");
27460         }
27461         const nativeResponseValue = wasm.TS_NetworkGraph_new(genesis_hash);
27462         return nativeResponseValue;
27463 }
27464         // MUST_USE_RES struct LDKReadOnlyNetworkGraph NetworkGraph_read_only(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
27465 /* @internal */
27466 export function NetworkGraph_read_only(this_arg: number): number {
27467         if(!isWasmInitialized) {
27468                 throw new Error("initializeWasm() must be awaited first!");
27469         }
27470         const nativeResponseValue = wasm.TS_NetworkGraph_read_only(this_arg);
27471         return nativeResponseValue;
27472 }
27473         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg);
27474 /* @internal */
27475 export function NetworkGraph_update_node_from_announcement(this_arg: number, msg: number): number {
27476         if(!isWasmInitialized) {
27477                 throw new Error("initializeWasm() must be awaited first!");
27478         }
27479         const nativeResponseValue = wasm.TS_NetworkGraph_update_node_from_announcement(this_arg, msg);
27480         return nativeResponseValue;
27481 }
27482         // 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);
27483 /* @internal */
27484 export function NetworkGraph_update_node_from_unsigned_announcement(this_arg: number, msg: number): number {
27485         if(!isWasmInitialized) {
27486                 throw new Error("initializeWasm() must be awaited first!");
27487         }
27488         const nativeResponseValue = wasm.TS_NetworkGraph_update_node_from_unsigned_announcement(this_arg, msg);
27489         return nativeResponseValue;
27490 }
27491         // 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);
27492 /* @internal */
27493 export function NetworkGraph_update_channel_from_announcement(this_arg: number, msg: number, chain_access: number): number {
27494         if(!isWasmInitialized) {
27495                 throw new Error("initializeWasm() must be awaited first!");
27496         }
27497         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_from_announcement(this_arg, msg, chain_access);
27498         return nativeResponseValue;
27499 }
27500         // 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);
27501 /* @internal */
27502 export function NetworkGraph_update_channel_from_unsigned_announcement(this_arg: number, msg: number, chain_access: number): number {
27503         if(!isWasmInitialized) {
27504                 throw new Error("initializeWasm() must be awaited first!");
27505         }
27506         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_from_unsigned_announcement(this_arg, msg, chain_access);
27507         return nativeResponseValue;
27508 }
27509         // void NetworkGraph_close_channel_from_update(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id, bool is_permanent);
27510 /* @internal */
27511 export function NetworkGraph_close_channel_from_update(this_arg: number, short_channel_id: bigint, is_permanent: boolean): void {
27512         if(!isWasmInitialized) {
27513                 throw new Error("initializeWasm() must be awaited first!");
27514         }
27515         const nativeResponseValue = wasm.TS_NetworkGraph_close_channel_from_update(this_arg, short_channel_id, is_permanent);
27516         // debug statements here
27517 }
27518         // void NetworkGraph_fail_node(const struct LDKNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey _node_id, bool is_permanent);
27519 /* @internal */
27520 export function NetworkGraph_fail_node(this_arg: number, _node_id: number, is_permanent: boolean): void {
27521         if(!isWasmInitialized) {
27522                 throw new Error("initializeWasm() must be awaited first!");
27523         }
27524         const nativeResponseValue = wasm.TS_NetworkGraph_fail_node(this_arg, _node_id, is_permanent);
27525         // debug statements here
27526 }
27527         // void NetworkGraph_remove_stale_channels_with_time(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t current_time_unix);
27528 /* @internal */
27529 export function NetworkGraph_remove_stale_channels_with_time(this_arg: number, current_time_unix: bigint): void {
27530         if(!isWasmInitialized) {
27531                 throw new Error("initializeWasm() must be awaited first!");
27532         }
27533         const nativeResponseValue = wasm.TS_NetworkGraph_remove_stale_channels_with_time(this_arg, current_time_unix);
27534         // debug statements here
27535 }
27536         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
27537 /* @internal */
27538 export function NetworkGraph_update_channel(this_arg: number, msg: number): number {
27539         if(!isWasmInitialized) {
27540                 throw new Error("initializeWasm() must be awaited first!");
27541         }
27542         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel(this_arg, msg);
27543         return nativeResponseValue;
27544 }
27545         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_unsigned(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelUpdate *NONNULL_PTR msg);
27546 /* @internal */
27547 export function NetworkGraph_update_channel_unsigned(this_arg: number, msg: number): number {
27548         if(!isWasmInitialized) {
27549                 throw new Error("initializeWasm() must be awaited first!");
27550         }
27551         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_unsigned(this_arg, msg);
27552         return nativeResponseValue;
27553 }
27554         // MUST_USE_RES struct LDKCOption_CVec_NetAddressZZ ReadOnlyNetworkGraph_get_addresses(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey pubkey);
27555 /* @internal */
27556 export function ReadOnlyNetworkGraph_get_addresses(this_arg: number, pubkey: number): number {
27557         if(!isWasmInitialized) {
27558                 throw new Error("initializeWasm() must be awaited first!");
27559         }
27560         const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_get_addresses(this_arg, pubkey);
27561         return nativeResponseValue;
27562 }
27563         // void RouteHop_free(struct LDKRouteHop this_obj);
27564 /* @internal */
27565 export function RouteHop_free(this_obj: number): void {
27566         if(!isWasmInitialized) {
27567                 throw new Error("initializeWasm() must be awaited first!");
27568         }
27569         const nativeResponseValue = wasm.TS_RouteHop_free(this_obj);
27570         // debug statements here
27571 }
27572         // struct LDKPublicKey RouteHop_get_pubkey(const struct LDKRouteHop *NONNULL_PTR this_ptr);
27573 /* @internal */
27574 export function RouteHop_get_pubkey(this_ptr: number): number {
27575         if(!isWasmInitialized) {
27576                 throw new Error("initializeWasm() must be awaited first!");
27577         }
27578         const nativeResponseValue = wasm.TS_RouteHop_get_pubkey(this_ptr);
27579         return nativeResponseValue;
27580 }
27581         // void RouteHop_set_pubkey(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
27582 /* @internal */
27583 export function RouteHop_set_pubkey(this_ptr: number, val: number): void {
27584         if(!isWasmInitialized) {
27585                 throw new Error("initializeWasm() must be awaited first!");
27586         }
27587         const nativeResponseValue = wasm.TS_RouteHop_set_pubkey(this_ptr, val);
27588         // debug statements here
27589 }
27590         // struct LDKNodeFeatures RouteHop_get_node_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
27591 /* @internal */
27592 export function RouteHop_get_node_features(this_ptr: number): number {
27593         if(!isWasmInitialized) {
27594                 throw new Error("initializeWasm() must be awaited first!");
27595         }
27596         const nativeResponseValue = wasm.TS_RouteHop_get_node_features(this_ptr);
27597         return nativeResponseValue;
27598 }
27599         // void RouteHop_set_node_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
27600 /* @internal */
27601 export function RouteHop_set_node_features(this_ptr: number, val: number): void {
27602         if(!isWasmInitialized) {
27603                 throw new Error("initializeWasm() must be awaited first!");
27604         }
27605         const nativeResponseValue = wasm.TS_RouteHop_set_node_features(this_ptr, val);
27606         // debug statements here
27607 }
27608         // uint64_t RouteHop_get_short_channel_id(const struct LDKRouteHop *NONNULL_PTR this_ptr);
27609 /* @internal */
27610 export function RouteHop_get_short_channel_id(this_ptr: number): bigint {
27611         if(!isWasmInitialized) {
27612                 throw new Error("initializeWasm() must be awaited first!");
27613         }
27614         const nativeResponseValue = wasm.TS_RouteHop_get_short_channel_id(this_ptr);
27615         return nativeResponseValue;
27616 }
27617         // void RouteHop_set_short_channel_id(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
27618 /* @internal */
27619 export function RouteHop_set_short_channel_id(this_ptr: number, val: bigint): void {
27620         if(!isWasmInitialized) {
27621                 throw new Error("initializeWasm() must be awaited first!");
27622         }
27623         const nativeResponseValue = wasm.TS_RouteHop_set_short_channel_id(this_ptr, val);
27624         // debug statements here
27625 }
27626         // struct LDKChannelFeatures RouteHop_get_channel_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
27627 /* @internal */
27628 export function RouteHop_get_channel_features(this_ptr: number): number {
27629         if(!isWasmInitialized) {
27630                 throw new Error("initializeWasm() must be awaited first!");
27631         }
27632         const nativeResponseValue = wasm.TS_RouteHop_get_channel_features(this_ptr);
27633         return nativeResponseValue;
27634 }
27635         // void RouteHop_set_channel_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
27636 /* @internal */
27637 export function RouteHop_set_channel_features(this_ptr: number, val: number): void {
27638         if(!isWasmInitialized) {
27639                 throw new Error("initializeWasm() must be awaited first!");
27640         }
27641         const nativeResponseValue = wasm.TS_RouteHop_set_channel_features(this_ptr, val);
27642         // debug statements here
27643 }
27644         // uint64_t RouteHop_get_fee_msat(const struct LDKRouteHop *NONNULL_PTR this_ptr);
27645 /* @internal */
27646 export function RouteHop_get_fee_msat(this_ptr: number): bigint {
27647         if(!isWasmInitialized) {
27648                 throw new Error("initializeWasm() must be awaited first!");
27649         }
27650         const nativeResponseValue = wasm.TS_RouteHop_get_fee_msat(this_ptr);
27651         return nativeResponseValue;
27652 }
27653         // void RouteHop_set_fee_msat(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
27654 /* @internal */
27655 export function RouteHop_set_fee_msat(this_ptr: number, val: bigint): void {
27656         if(!isWasmInitialized) {
27657                 throw new Error("initializeWasm() must be awaited first!");
27658         }
27659         const nativeResponseValue = wasm.TS_RouteHop_set_fee_msat(this_ptr, val);
27660         // debug statements here
27661 }
27662         // uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR this_ptr);
27663 /* @internal */
27664 export function RouteHop_get_cltv_expiry_delta(this_ptr: number): number {
27665         if(!isWasmInitialized) {
27666                 throw new Error("initializeWasm() must be awaited first!");
27667         }
27668         const nativeResponseValue = wasm.TS_RouteHop_get_cltv_expiry_delta(this_ptr);
27669         return nativeResponseValue;
27670 }
27671         // void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val);
27672 /* @internal */
27673 export function RouteHop_set_cltv_expiry_delta(this_ptr: number, val: number): void {
27674         if(!isWasmInitialized) {
27675                 throw new Error("initializeWasm() must be awaited first!");
27676         }
27677         const nativeResponseValue = wasm.TS_RouteHop_set_cltv_expiry_delta(this_ptr, val);
27678         // debug statements here
27679 }
27680         // 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);
27681 /* @internal */
27682 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 {
27683         if(!isWasmInitialized) {
27684                 throw new Error("initializeWasm() must be awaited first!");
27685         }
27686         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);
27687         return nativeResponseValue;
27688 }
27689         // uintptr_t RouteHop_clone_ptr(LDKRouteHop *NONNULL_PTR arg);
27690 /* @internal */
27691 export function RouteHop_clone_ptr(arg: number): number {
27692         if(!isWasmInitialized) {
27693                 throw new Error("initializeWasm() must be awaited first!");
27694         }
27695         const nativeResponseValue = wasm.TS_RouteHop_clone_ptr(arg);
27696         return nativeResponseValue;
27697 }
27698         // struct LDKRouteHop RouteHop_clone(const struct LDKRouteHop *NONNULL_PTR orig);
27699 /* @internal */
27700 export function RouteHop_clone(orig: number): number {
27701         if(!isWasmInitialized) {
27702                 throw new Error("initializeWasm() must be awaited first!");
27703         }
27704         const nativeResponseValue = wasm.TS_RouteHop_clone(orig);
27705         return nativeResponseValue;
27706 }
27707         // uint64_t RouteHop_hash(const struct LDKRouteHop *NONNULL_PTR o);
27708 /* @internal */
27709 export function RouteHop_hash(o: number): bigint {
27710         if(!isWasmInitialized) {
27711                 throw new Error("initializeWasm() must be awaited first!");
27712         }
27713         const nativeResponseValue = wasm.TS_RouteHop_hash(o);
27714         return nativeResponseValue;
27715 }
27716         // bool RouteHop_eq(const struct LDKRouteHop *NONNULL_PTR a, const struct LDKRouteHop *NONNULL_PTR b);
27717 /* @internal */
27718 export function RouteHop_eq(a: number, b: number): boolean {
27719         if(!isWasmInitialized) {
27720                 throw new Error("initializeWasm() must be awaited first!");
27721         }
27722         const nativeResponseValue = wasm.TS_RouteHop_eq(a, b);
27723         return nativeResponseValue;
27724 }
27725         // struct LDKCVec_u8Z RouteHop_write(const struct LDKRouteHop *NONNULL_PTR obj);
27726 /* @internal */
27727 export function RouteHop_write(obj: number): number {
27728         if(!isWasmInitialized) {
27729                 throw new Error("initializeWasm() must be awaited first!");
27730         }
27731         const nativeResponseValue = wasm.TS_RouteHop_write(obj);
27732         return nativeResponseValue;
27733 }
27734         // struct LDKCResult_RouteHopDecodeErrorZ RouteHop_read(struct LDKu8slice ser);
27735 /* @internal */
27736 export function RouteHop_read(ser: number): number {
27737         if(!isWasmInitialized) {
27738                 throw new Error("initializeWasm() must be awaited first!");
27739         }
27740         const nativeResponseValue = wasm.TS_RouteHop_read(ser);
27741         return nativeResponseValue;
27742 }
27743         // void Route_free(struct LDKRoute this_obj);
27744 /* @internal */
27745 export function Route_free(this_obj: number): void {
27746         if(!isWasmInitialized) {
27747                 throw new Error("initializeWasm() must be awaited first!");
27748         }
27749         const nativeResponseValue = wasm.TS_Route_free(this_obj);
27750         // debug statements here
27751 }
27752         // struct LDKCVec_CVec_RouteHopZZ Route_get_paths(const struct LDKRoute *NONNULL_PTR this_ptr);
27753 /* @internal */
27754 export function Route_get_paths(this_ptr: number): number {
27755         if(!isWasmInitialized) {
27756                 throw new Error("initializeWasm() must be awaited first!");
27757         }
27758         const nativeResponseValue = wasm.TS_Route_get_paths(this_ptr);
27759         return nativeResponseValue;
27760 }
27761         // void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_CVec_RouteHopZZ val);
27762 /* @internal */
27763 export function Route_set_paths(this_ptr: number, val: number): void {
27764         if(!isWasmInitialized) {
27765                 throw new Error("initializeWasm() must be awaited first!");
27766         }
27767         const nativeResponseValue = wasm.TS_Route_set_paths(this_ptr, val);
27768         // debug statements here
27769 }
27770         // struct LDKPaymentParameters Route_get_payment_params(const struct LDKRoute *NONNULL_PTR this_ptr);
27771 /* @internal */
27772 export function Route_get_payment_params(this_ptr: number): number {
27773         if(!isWasmInitialized) {
27774                 throw new Error("initializeWasm() must be awaited first!");
27775         }
27776         const nativeResponseValue = wasm.TS_Route_get_payment_params(this_ptr);
27777         return nativeResponseValue;
27778 }
27779         // void Route_set_payment_params(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
27780 /* @internal */
27781 export function Route_set_payment_params(this_ptr: number, val: number): void {
27782         if(!isWasmInitialized) {
27783                 throw new Error("initializeWasm() must be awaited first!");
27784         }
27785         const nativeResponseValue = wasm.TS_Route_set_payment_params(this_ptr, val);
27786         // debug statements here
27787 }
27788         // MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_CVec_RouteHopZZ paths_arg, struct LDKPaymentParameters payment_params_arg);
27789 /* @internal */
27790 export function Route_new(paths_arg: number, payment_params_arg: number): number {
27791         if(!isWasmInitialized) {
27792                 throw new Error("initializeWasm() must be awaited first!");
27793         }
27794         const nativeResponseValue = wasm.TS_Route_new(paths_arg, payment_params_arg);
27795         return nativeResponseValue;
27796 }
27797         // uintptr_t Route_clone_ptr(LDKRoute *NONNULL_PTR arg);
27798 /* @internal */
27799 export function Route_clone_ptr(arg: number): number {
27800         if(!isWasmInitialized) {
27801                 throw new Error("initializeWasm() must be awaited first!");
27802         }
27803         const nativeResponseValue = wasm.TS_Route_clone_ptr(arg);
27804         return nativeResponseValue;
27805 }
27806         // struct LDKRoute Route_clone(const struct LDKRoute *NONNULL_PTR orig);
27807 /* @internal */
27808 export function Route_clone(orig: number): number {
27809         if(!isWasmInitialized) {
27810                 throw new Error("initializeWasm() must be awaited first!");
27811         }
27812         const nativeResponseValue = wasm.TS_Route_clone(orig);
27813         return nativeResponseValue;
27814 }
27815         // uint64_t Route_hash(const struct LDKRoute *NONNULL_PTR o);
27816 /* @internal */
27817 export function Route_hash(o: number): bigint {
27818         if(!isWasmInitialized) {
27819                 throw new Error("initializeWasm() must be awaited first!");
27820         }
27821         const nativeResponseValue = wasm.TS_Route_hash(o);
27822         return nativeResponseValue;
27823 }
27824         // bool Route_eq(const struct LDKRoute *NONNULL_PTR a, const struct LDKRoute *NONNULL_PTR b);
27825 /* @internal */
27826 export function Route_eq(a: number, b: number): boolean {
27827         if(!isWasmInitialized) {
27828                 throw new Error("initializeWasm() must be awaited first!");
27829         }
27830         const nativeResponseValue = wasm.TS_Route_eq(a, b);
27831         return nativeResponseValue;
27832 }
27833         // MUST_USE_RES uint64_t Route_get_total_fees(const struct LDKRoute *NONNULL_PTR this_arg);
27834 /* @internal */
27835 export function Route_get_total_fees(this_arg: number): bigint {
27836         if(!isWasmInitialized) {
27837                 throw new Error("initializeWasm() must be awaited first!");
27838         }
27839         const nativeResponseValue = wasm.TS_Route_get_total_fees(this_arg);
27840         return nativeResponseValue;
27841 }
27842         // MUST_USE_RES uint64_t Route_get_total_amount(const struct LDKRoute *NONNULL_PTR this_arg);
27843 /* @internal */
27844 export function Route_get_total_amount(this_arg: number): bigint {
27845         if(!isWasmInitialized) {
27846                 throw new Error("initializeWasm() must be awaited first!");
27847         }
27848         const nativeResponseValue = wasm.TS_Route_get_total_amount(this_arg);
27849         return nativeResponseValue;
27850 }
27851         // struct LDKCVec_u8Z Route_write(const struct LDKRoute *NONNULL_PTR obj);
27852 /* @internal */
27853 export function Route_write(obj: number): number {
27854         if(!isWasmInitialized) {
27855                 throw new Error("initializeWasm() must be awaited first!");
27856         }
27857         const nativeResponseValue = wasm.TS_Route_write(obj);
27858         return nativeResponseValue;
27859 }
27860         // struct LDKCResult_RouteDecodeErrorZ Route_read(struct LDKu8slice ser);
27861 /* @internal */
27862 export function Route_read(ser: number): number {
27863         if(!isWasmInitialized) {
27864                 throw new Error("initializeWasm() must be awaited first!");
27865         }
27866         const nativeResponseValue = wasm.TS_Route_read(ser);
27867         return nativeResponseValue;
27868 }
27869         // void RouteParameters_free(struct LDKRouteParameters this_obj);
27870 /* @internal */
27871 export function RouteParameters_free(this_obj: number): void {
27872         if(!isWasmInitialized) {
27873                 throw new Error("initializeWasm() must be awaited first!");
27874         }
27875         const nativeResponseValue = wasm.TS_RouteParameters_free(this_obj);
27876         // debug statements here
27877 }
27878         // struct LDKPaymentParameters RouteParameters_get_payment_params(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
27879 /* @internal */
27880 export function RouteParameters_get_payment_params(this_ptr: number): number {
27881         if(!isWasmInitialized) {
27882                 throw new Error("initializeWasm() must be awaited first!");
27883         }
27884         const nativeResponseValue = wasm.TS_RouteParameters_get_payment_params(this_ptr);
27885         return nativeResponseValue;
27886 }
27887         // void RouteParameters_set_payment_params(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
27888 /* @internal */
27889 export function RouteParameters_set_payment_params(this_ptr: number, val: number): void {
27890         if(!isWasmInitialized) {
27891                 throw new Error("initializeWasm() must be awaited first!");
27892         }
27893         const nativeResponseValue = wasm.TS_RouteParameters_set_payment_params(this_ptr, val);
27894         // debug statements here
27895 }
27896         // uint64_t RouteParameters_get_final_value_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
27897 /* @internal */
27898 export function RouteParameters_get_final_value_msat(this_ptr: number): bigint {
27899         if(!isWasmInitialized) {
27900                 throw new Error("initializeWasm() must be awaited first!");
27901         }
27902         const nativeResponseValue = wasm.TS_RouteParameters_get_final_value_msat(this_ptr);
27903         return nativeResponseValue;
27904 }
27905         // void RouteParameters_set_final_value_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint64_t val);
27906 /* @internal */
27907 export function RouteParameters_set_final_value_msat(this_ptr: number, val: bigint): void {
27908         if(!isWasmInitialized) {
27909                 throw new Error("initializeWasm() must be awaited first!");
27910         }
27911         const nativeResponseValue = wasm.TS_RouteParameters_set_final_value_msat(this_ptr, val);
27912         // debug statements here
27913 }
27914         // uint32_t RouteParameters_get_final_cltv_expiry_delta(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
27915 /* @internal */
27916 export function RouteParameters_get_final_cltv_expiry_delta(this_ptr: number): number {
27917         if(!isWasmInitialized) {
27918                 throw new Error("initializeWasm() must be awaited first!");
27919         }
27920         const nativeResponseValue = wasm.TS_RouteParameters_get_final_cltv_expiry_delta(this_ptr);
27921         return nativeResponseValue;
27922 }
27923         // void RouteParameters_set_final_cltv_expiry_delta(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint32_t val);
27924 /* @internal */
27925 export function RouteParameters_set_final_cltv_expiry_delta(this_ptr: number, val: number): void {
27926         if(!isWasmInitialized) {
27927                 throw new Error("initializeWasm() must be awaited first!");
27928         }
27929         const nativeResponseValue = wasm.TS_RouteParameters_set_final_cltv_expiry_delta(this_ptr, val);
27930         // debug statements here
27931 }
27932         // 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);
27933 /* @internal */
27934 export function RouteParameters_new(payment_params_arg: number, final_value_msat_arg: bigint, final_cltv_expiry_delta_arg: number): number {
27935         if(!isWasmInitialized) {
27936                 throw new Error("initializeWasm() must be awaited first!");
27937         }
27938         const nativeResponseValue = wasm.TS_RouteParameters_new(payment_params_arg, final_value_msat_arg, final_cltv_expiry_delta_arg);
27939         return nativeResponseValue;
27940 }
27941         // uintptr_t RouteParameters_clone_ptr(LDKRouteParameters *NONNULL_PTR arg);
27942 /* @internal */
27943 export function RouteParameters_clone_ptr(arg: number): number {
27944         if(!isWasmInitialized) {
27945                 throw new Error("initializeWasm() must be awaited first!");
27946         }
27947         const nativeResponseValue = wasm.TS_RouteParameters_clone_ptr(arg);
27948         return nativeResponseValue;
27949 }
27950         // struct LDKRouteParameters RouteParameters_clone(const struct LDKRouteParameters *NONNULL_PTR orig);
27951 /* @internal */
27952 export function RouteParameters_clone(orig: number): number {
27953         if(!isWasmInitialized) {
27954                 throw new Error("initializeWasm() must be awaited first!");
27955         }
27956         const nativeResponseValue = wasm.TS_RouteParameters_clone(orig);
27957         return nativeResponseValue;
27958 }
27959         // struct LDKCVec_u8Z RouteParameters_write(const struct LDKRouteParameters *NONNULL_PTR obj);
27960 /* @internal */
27961 export function RouteParameters_write(obj: number): number {
27962         if(!isWasmInitialized) {
27963                 throw new Error("initializeWasm() must be awaited first!");
27964         }
27965         const nativeResponseValue = wasm.TS_RouteParameters_write(obj);
27966         return nativeResponseValue;
27967 }
27968         // struct LDKCResult_RouteParametersDecodeErrorZ RouteParameters_read(struct LDKu8slice ser);
27969 /* @internal */
27970 export function RouteParameters_read(ser: number): number {
27971         if(!isWasmInitialized) {
27972                 throw new Error("initializeWasm() must be awaited first!");
27973         }
27974         const nativeResponseValue = wasm.TS_RouteParameters_read(ser);
27975         return nativeResponseValue;
27976 }
27977         // void PaymentParameters_free(struct LDKPaymentParameters this_obj);
27978 /* @internal */
27979 export function PaymentParameters_free(this_obj: number): void {
27980         if(!isWasmInitialized) {
27981                 throw new Error("initializeWasm() must be awaited first!");
27982         }
27983         const nativeResponseValue = wasm.TS_PaymentParameters_free(this_obj);
27984         // debug statements here
27985 }
27986         // struct LDKPublicKey PaymentParameters_get_payee_pubkey(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
27987 /* @internal */
27988 export function PaymentParameters_get_payee_pubkey(this_ptr: number): number {
27989         if(!isWasmInitialized) {
27990                 throw new Error("initializeWasm() must be awaited first!");
27991         }
27992         const nativeResponseValue = wasm.TS_PaymentParameters_get_payee_pubkey(this_ptr);
27993         return nativeResponseValue;
27994 }
27995         // void PaymentParameters_set_payee_pubkey(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKPublicKey val);
27996 /* @internal */
27997 export function PaymentParameters_set_payee_pubkey(this_ptr: number, val: number): void {
27998         if(!isWasmInitialized) {
27999                 throw new Error("initializeWasm() must be awaited first!");
28000         }
28001         const nativeResponseValue = wasm.TS_PaymentParameters_set_payee_pubkey(this_ptr, val);
28002         // debug statements here
28003 }
28004         // struct LDKInvoiceFeatures PaymentParameters_get_features(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
28005 /* @internal */
28006 export function PaymentParameters_get_features(this_ptr: number): number {
28007         if(!isWasmInitialized) {
28008                 throw new Error("initializeWasm() must be awaited first!");
28009         }
28010         const nativeResponseValue = wasm.TS_PaymentParameters_get_features(this_ptr);
28011         return nativeResponseValue;
28012 }
28013         // void PaymentParameters_set_features(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKInvoiceFeatures val);
28014 /* @internal */
28015 export function PaymentParameters_set_features(this_ptr: number, val: number): void {
28016         if(!isWasmInitialized) {
28017                 throw new Error("initializeWasm() must be awaited first!");
28018         }
28019         const nativeResponseValue = wasm.TS_PaymentParameters_set_features(this_ptr, val);
28020         // debug statements here
28021 }
28022         // struct LDKCVec_RouteHintZ PaymentParameters_get_route_hints(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
28023 /* @internal */
28024 export function PaymentParameters_get_route_hints(this_ptr: number): number {
28025         if(!isWasmInitialized) {
28026                 throw new Error("initializeWasm() must be awaited first!");
28027         }
28028         const nativeResponseValue = wasm.TS_PaymentParameters_get_route_hints(this_ptr);
28029         return nativeResponseValue;
28030 }
28031         // void PaymentParameters_set_route_hints(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintZ val);
28032 /* @internal */
28033 export function PaymentParameters_set_route_hints(this_ptr: number, val: number): void {
28034         if(!isWasmInitialized) {
28035                 throw new Error("initializeWasm() must be awaited first!");
28036         }
28037         const nativeResponseValue = wasm.TS_PaymentParameters_set_route_hints(this_ptr, val);
28038         // debug statements here
28039 }
28040         // struct LDKCOption_u64Z PaymentParameters_get_expiry_time(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
28041 /* @internal */
28042 export function PaymentParameters_get_expiry_time(this_ptr: number): number {
28043         if(!isWasmInitialized) {
28044                 throw new Error("initializeWasm() must be awaited first!");
28045         }
28046         const nativeResponseValue = wasm.TS_PaymentParameters_get_expiry_time(this_ptr);
28047         return nativeResponseValue;
28048 }
28049         // void PaymentParameters_set_expiry_time(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
28050 /* @internal */
28051 export function PaymentParameters_set_expiry_time(this_ptr: number, val: number): void {
28052         if(!isWasmInitialized) {
28053                 throw new Error("initializeWasm() must be awaited first!");
28054         }
28055         const nativeResponseValue = wasm.TS_PaymentParameters_set_expiry_time(this_ptr, val);
28056         // debug statements here
28057 }
28058         // uint32_t PaymentParameters_get_max_total_cltv_expiry_delta(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
28059 /* @internal */
28060 export function PaymentParameters_get_max_total_cltv_expiry_delta(this_ptr: number): number {
28061         if(!isWasmInitialized) {
28062                 throw new Error("initializeWasm() must be awaited first!");
28063         }
28064         const nativeResponseValue = wasm.TS_PaymentParameters_get_max_total_cltv_expiry_delta(this_ptr);
28065         return nativeResponseValue;
28066 }
28067         // void PaymentParameters_set_max_total_cltv_expiry_delta(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint32_t val);
28068 /* @internal */
28069 export function PaymentParameters_set_max_total_cltv_expiry_delta(this_ptr: number, val: number): void {
28070         if(!isWasmInitialized) {
28071                 throw new Error("initializeWasm() must be awaited first!");
28072         }
28073         const nativeResponseValue = wasm.TS_PaymentParameters_set_max_total_cltv_expiry_delta(this_ptr, val);
28074         // debug statements here
28075 }
28076         // 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);
28077 /* @internal */
28078 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 {
28079         if(!isWasmInitialized) {
28080                 throw new Error("initializeWasm() must be awaited first!");
28081         }
28082         const nativeResponseValue = wasm.TS_PaymentParameters_new(payee_pubkey_arg, features_arg, route_hints_arg, expiry_time_arg, max_total_cltv_expiry_delta_arg);
28083         return nativeResponseValue;
28084 }
28085         // uintptr_t PaymentParameters_clone_ptr(LDKPaymentParameters *NONNULL_PTR arg);
28086 /* @internal */
28087 export function PaymentParameters_clone_ptr(arg: number): number {
28088         if(!isWasmInitialized) {
28089                 throw new Error("initializeWasm() must be awaited first!");
28090         }
28091         const nativeResponseValue = wasm.TS_PaymentParameters_clone_ptr(arg);
28092         return nativeResponseValue;
28093 }
28094         // struct LDKPaymentParameters PaymentParameters_clone(const struct LDKPaymentParameters *NONNULL_PTR orig);
28095 /* @internal */
28096 export function PaymentParameters_clone(orig: number): number {
28097         if(!isWasmInitialized) {
28098                 throw new Error("initializeWasm() must be awaited first!");
28099         }
28100         const nativeResponseValue = wasm.TS_PaymentParameters_clone(orig);
28101         return nativeResponseValue;
28102 }
28103         // uint64_t PaymentParameters_hash(const struct LDKPaymentParameters *NONNULL_PTR o);
28104 /* @internal */
28105 export function PaymentParameters_hash(o: number): bigint {
28106         if(!isWasmInitialized) {
28107                 throw new Error("initializeWasm() must be awaited first!");
28108         }
28109         const nativeResponseValue = wasm.TS_PaymentParameters_hash(o);
28110         return nativeResponseValue;
28111 }
28112         // bool PaymentParameters_eq(const struct LDKPaymentParameters *NONNULL_PTR a, const struct LDKPaymentParameters *NONNULL_PTR b);
28113 /* @internal */
28114 export function PaymentParameters_eq(a: number, b: number): boolean {
28115         if(!isWasmInitialized) {
28116                 throw new Error("initializeWasm() must be awaited first!");
28117         }
28118         const nativeResponseValue = wasm.TS_PaymentParameters_eq(a, b);
28119         return nativeResponseValue;
28120 }
28121         // struct LDKCVec_u8Z PaymentParameters_write(const struct LDKPaymentParameters *NONNULL_PTR obj);
28122 /* @internal */
28123 export function PaymentParameters_write(obj: number): number {
28124         if(!isWasmInitialized) {
28125                 throw new Error("initializeWasm() must be awaited first!");
28126         }
28127         const nativeResponseValue = wasm.TS_PaymentParameters_write(obj);
28128         return nativeResponseValue;
28129 }
28130         // struct LDKCResult_PaymentParametersDecodeErrorZ PaymentParameters_read(struct LDKu8slice ser);
28131 /* @internal */
28132 export function PaymentParameters_read(ser: number): number {
28133         if(!isWasmInitialized) {
28134                 throw new Error("initializeWasm() must be awaited first!");
28135         }
28136         const nativeResponseValue = wasm.TS_PaymentParameters_read(ser);
28137         return nativeResponseValue;
28138 }
28139         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_node_id(struct LDKPublicKey payee_pubkey);
28140 /* @internal */
28141 export function PaymentParameters_from_node_id(payee_pubkey: number): number {
28142         if(!isWasmInitialized) {
28143                 throw new Error("initializeWasm() must be awaited first!");
28144         }
28145         const nativeResponseValue = wasm.TS_PaymentParameters_from_node_id(payee_pubkey);
28146         return nativeResponseValue;
28147 }
28148         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_for_keysend(struct LDKPublicKey payee_pubkey);
28149 /* @internal */
28150 export function PaymentParameters_for_keysend(payee_pubkey: number): number {
28151         if(!isWasmInitialized) {
28152                 throw new Error("initializeWasm() must be awaited first!");
28153         }
28154         const nativeResponseValue = wasm.TS_PaymentParameters_for_keysend(payee_pubkey);
28155         return nativeResponseValue;
28156 }
28157         // void RouteHint_free(struct LDKRouteHint this_obj);
28158 /* @internal */
28159 export function RouteHint_free(this_obj: number): void {
28160         if(!isWasmInitialized) {
28161                 throw new Error("initializeWasm() must be awaited first!");
28162         }
28163         const nativeResponseValue = wasm.TS_RouteHint_free(this_obj);
28164         // debug statements here
28165 }
28166         // struct LDKCVec_RouteHintHopZ RouteHint_get_a(const struct LDKRouteHint *NONNULL_PTR this_ptr);
28167 /* @internal */
28168 export function RouteHint_get_a(this_ptr: number): number {
28169         if(!isWasmInitialized) {
28170                 throw new Error("initializeWasm() must be awaited first!");
28171         }
28172         const nativeResponseValue = wasm.TS_RouteHint_get_a(this_ptr);
28173         return nativeResponseValue;
28174 }
28175         // void RouteHint_set_a(struct LDKRouteHint *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintHopZ val);
28176 /* @internal */
28177 export function RouteHint_set_a(this_ptr: number, val: number): void {
28178         if(!isWasmInitialized) {
28179                 throw new Error("initializeWasm() must be awaited first!");
28180         }
28181         const nativeResponseValue = wasm.TS_RouteHint_set_a(this_ptr, val);
28182         // debug statements here
28183 }
28184         // MUST_USE_RES struct LDKRouteHint RouteHint_new(struct LDKCVec_RouteHintHopZ a_arg);
28185 /* @internal */
28186 export function RouteHint_new(a_arg: number): number {
28187         if(!isWasmInitialized) {
28188                 throw new Error("initializeWasm() must be awaited first!");
28189         }
28190         const nativeResponseValue = wasm.TS_RouteHint_new(a_arg);
28191         return nativeResponseValue;
28192 }
28193         // uintptr_t RouteHint_clone_ptr(LDKRouteHint *NONNULL_PTR arg);
28194 /* @internal */
28195 export function RouteHint_clone_ptr(arg: number): number {
28196         if(!isWasmInitialized) {
28197                 throw new Error("initializeWasm() must be awaited first!");
28198         }
28199         const nativeResponseValue = wasm.TS_RouteHint_clone_ptr(arg);
28200         return nativeResponseValue;
28201 }
28202         // struct LDKRouteHint RouteHint_clone(const struct LDKRouteHint *NONNULL_PTR orig);
28203 /* @internal */
28204 export function RouteHint_clone(orig: number): number {
28205         if(!isWasmInitialized) {
28206                 throw new Error("initializeWasm() must be awaited first!");
28207         }
28208         const nativeResponseValue = wasm.TS_RouteHint_clone(orig);
28209         return nativeResponseValue;
28210 }
28211         // uint64_t RouteHint_hash(const struct LDKRouteHint *NONNULL_PTR o);
28212 /* @internal */
28213 export function RouteHint_hash(o: number): bigint {
28214         if(!isWasmInitialized) {
28215                 throw new Error("initializeWasm() must be awaited first!");
28216         }
28217         const nativeResponseValue = wasm.TS_RouteHint_hash(o);
28218         return nativeResponseValue;
28219 }
28220         // bool RouteHint_eq(const struct LDKRouteHint *NONNULL_PTR a, const struct LDKRouteHint *NONNULL_PTR b);
28221 /* @internal */
28222 export function RouteHint_eq(a: number, b: number): boolean {
28223         if(!isWasmInitialized) {
28224                 throw new Error("initializeWasm() must be awaited first!");
28225         }
28226         const nativeResponseValue = wasm.TS_RouteHint_eq(a, b);
28227         return nativeResponseValue;
28228 }
28229         // struct LDKCVec_u8Z RouteHint_write(const struct LDKRouteHint *NONNULL_PTR obj);
28230 /* @internal */
28231 export function RouteHint_write(obj: number): number {
28232         if(!isWasmInitialized) {
28233                 throw new Error("initializeWasm() must be awaited first!");
28234         }
28235         const nativeResponseValue = wasm.TS_RouteHint_write(obj);
28236         return nativeResponseValue;
28237 }
28238         // struct LDKCResult_RouteHintDecodeErrorZ RouteHint_read(struct LDKu8slice ser);
28239 /* @internal */
28240 export function RouteHint_read(ser: number): number {
28241         if(!isWasmInitialized) {
28242                 throw new Error("initializeWasm() must be awaited first!");
28243         }
28244         const nativeResponseValue = wasm.TS_RouteHint_read(ser);
28245         return nativeResponseValue;
28246 }
28247         // void RouteHintHop_free(struct LDKRouteHintHop this_obj);
28248 /* @internal */
28249 export function RouteHintHop_free(this_obj: number): void {
28250         if(!isWasmInitialized) {
28251                 throw new Error("initializeWasm() must be awaited first!");
28252         }
28253         const nativeResponseValue = wasm.TS_RouteHintHop_free(this_obj);
28254         // debug statements here
28255 }
28256         // struct LDKPublicKey RouteHintHop_get_src_node_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
28257 /* @internal */
28258 export function RouteHintHop_get_src_node_id(this_ptr: number): number {
28259         if(!isWasmInitialized) {
28260                 throw new Error("initializeWasm() must be awaited first!");
28261         }
28262         const nativeResponseValue = wasm.TS_RouteHintHop_get_src_node_id(this_ptr);
28263         return nativeResponseValue;
28264 }
28265         // void RouteHintHop_set_src_node_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
28266 /* @internal */
28267 export function RouteHintHop_set_src_node_id(this_ptr: number, val: number): void {
28268         if(!isWasmInitialized) {
28269                 throw new Error("initializeWasm() must be awaited first!");
28270         }
28271         const nativeResponseValue = wasm.TS_RouteHintHop_set_src_node_id(this_ptr, val);
28272         // debug statements here
28273 }
28274         // uint64_t RouteHintHop_get_short_channel_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
28275 /* @internal */
28276 export function RouteHintHop_get_short_channel_id(this_ptr: number): bigint {
28277         if(!isWasmInitialized) {
28278                 throw new Error("initializeWasm() must be awaited first!");
28279         }
28280         const nativeResponseValue = wasm.TS_RouteHintHop_get_short_channel_id(this_ptr);
28281         return nativeResponseValue;
28282 }
28283         // void RouteHintHop_set_short_channel_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint64_t val);
28284 /* @internal */
28285 export function RouteHintHop_set_short_channel_id(this_ptr: number, val: bigint): void {
28286         if(!isWasmInitialized) {
28287                 throw new Error("initializeWasm() must be awaited first!");
28288         }
28289         const nativeResponseValue = wasm.TS_RouteHintHop_set_short_channel_id(this_ptr, val);
28290         // debug statements here
28291 }
28292         // struct LDKRoutingFees RouteHintHop_get_fees(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
28293 /* @internal */
28294 export function RouteHintHop_get_fees(this_ptr: number): number {
28295         if(!isWasmInitialized) {
28296                 throw new Error("initializeWasm() must be awaited first!");
28297         }
28298         const nativeResponseValue = wasm.TS_RouteHintHop_get_fees(this_ptr);
28299         return nativeResponseValue;
28300 }
28301         // void RouteHintHop_set_fees(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
28302 /* @internal */
28303 export function RouteHintHop_set_fees(this_ptr: number, val: number): void {
28304         if(!isWasmInitialized) {
28305                 throw new Error("initializeWasm() must be awaited first!");
28306         }
28307         const nativeResponseValue = wasm.TS_RouteHintHop_set_fees(this_ptr, val);
28308         // debug statements here
28309 }
28310         // uint16_t RouteHintHop_get_cltv_expiry_delta(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
28311 /* @internal */
28312 export function RouteHintHop_get_cltv_expiry_delta(this_ptr: number): number {
28313         if(!isWasmInitialized) {
28314                 throw new Error("initializeWasm() must be awaited first!");
28315         }
28316         const nativeResponseValue = wasm.TS_RouteHintHop_get_cltv_expiry_delta(this_ptr);
28317         return nativeResponseValue;
28318 }
28319         // void RouteHintHop_set_cltv_expiry_delta(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint16_t val);
28320 /* @internal */
28321 export function RouteHintHop_set_cltv_expiry_delta(this_ptr: number, val: number): void {
28322         if(!isWasmInitialized) {
28323                 throw new Error("initializeWasm() must be awaited first!");
28324         }
28325         const nativeResponseValue = wasm.TS_RouteHintHop_set_cltv_expiry_delta(this_ptr, val);
28326         // debug statements here
28327 }
28328         // struct LDKCOption_u64Z RouteHintHop_get_htlc_minimum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
28329 /* @internal */
28330 export function RouteHintHop_get_htlc_minimum_msat(this_ptr: number): number {
28331         if(!isWasmInitialized) {
28332                 throw new Error("initializeWasm() must be awaited first!");
28333         }
28334         const nativeResponseValue = wasm.TS_RouteHintHop_get_htlc_minimum_msat(this_ptr);
28335         return nativeResponseValue;
28336 }
28337         // void RouteHintHop_set_htlc_minimum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
28338 /* @internal */
28339 export function RouteHintHop_set_htlc_minimum_msat(this_ptr: number, val: number): void {
28340         if(!isWasmInitialized) {
28341                 throw new Error("initializeWasm() must be awaited first!");
28342         }
28343         const nativeResponseValue = wasm.TS_RouteHintHop_set_htlc_minimum_msat(this_ptr, val);
28344         // debug statements here
28345 }
28346         // struct LDKCOption_u64Z RouteHintHop_get_htlc_maximum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
28347 /* @internal */
28348 export function RouteHintHop_get_htlc_maximum_msat(this_ptr: number): number {
28349         if(!isWasmInitialized) {
28350                 throw new Error("initializeWasm() must be awaited first!");
28351         }
28352         const nativeResponseValue = wasm.TS_RouteHintHop_get_htlc_maximum_msat(this_ptr);
28353         return nativeResponseValue;
28354 }
28355         // void RouteHintHop_set_htlc_maximum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
28356 /* @internal */
28357 export function RouteHintHop_set_htlc_maximum_msat(this_ptr: number, val: number): void {
28358         if(!isWasmInitialized) {
28359                 throw new Error("initializeWasm() must be awaited first!");
28360         }
28361         const nativeResponseValue = wasm.TS_RouteHintHop_set_htlc_maximum_msat(this_ptr, val);
28362         // debug statements here
28363 }
28364         // 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);
28365 /* @internal */
28366 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 {
28367         if(!isWasmInitialized) {
28368                 throw new Error("initializeWasm() must be awaited first!");
28369         }
28370         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);
28371         return nativeResponseValue;
28372 }
28373         // uintptr_t RouteHintHop_clone_ptr(LDKRouteHintHop *NONNULL_PTR arg);
28374 /* @internal */
28375 export function RouteHintHop_clone_ptr(arg: number): number {
28376         if(!isWasmInitialized) {
28377                 throw new Error("initializeWasm() must be awaited first!");
28378         }
28379         const nativeResponseValue = wasm.TS_RouteHintHop_clone_ptr(arg);
28380         return nativeResponseValue;
28381 }
28382         // struct LDKRouteHintHop RouteHintHop_clone(const struct LDKRouteHintHop *NONNULL_PTR orig);
28383 /* @internal */
28384 export function RouteHintHop_clone(orig: number): number {
28385         if(!isWasmInitialized) {
28386                 throw new Error("initializeWasm() must be awaited first!");
28387         }
28388         const nativeResponseValue = wasm.TS_RouteHintHop_clone(orig);
28389         return nativeResponseValue;
28390 }
28391         // uint64_t RouteHintHop_hash(const struct LDKRouteHintHop *NONNULL_PTR o);
28392 /* @internal */
28393 export function RouteHintHop_hash(o: number): bigint {
28394         if(!isWasmInitialized) {
28395                 throw new Error("initializeWasm() must be awaited first!");
28396         }
28397         const nativeResponseValue = wasm.TS_RouteHintHop_hash(o);
28398         return nativeResponseValue;
28399 }
28400         // bool RouteHintHop_eq(const struct LDKRouteHintHop *NONNULL_PTR a, const struct LDKRouteHintHop *NONNULL_PTR b);
28401 /* @internal */
28402 export function RouteHintHop_eq(a: number, b: number): boolean {
28403         if(!isWasmInitialized) {
28404                 throw new Error("initializeWasm() must be awaited first!");
28405         }
28406         const nativeResponseValue = wasm.TS_RouteHintHop_eq(a, b);
28407         return nativeResponseValue;
28408 }
28409         // struct LDKCVec_u8Z RouteHintHop_write(const struct LDKRouteHintHop *NONNULL_PTR obj);
28410 /* @internal */
28411 export function RouteHintHop_write(obj: number): number {
28412         if(!isWasmInitialized) {
28413                 throw new Error("initializeWasm() must be awaited first!");
28414         }
28415         const nativeResponseValue = wasm.TS_RouteHintHop_write(obj);
28416         return nativeResponseValue;
28417 }
28418         // struct LDKCResult_RouteHintHopDecodeErrorZ RouteHintHop_read(struct LDKu8slice ser);
28419 /* @internal */
28420 export function RouteHintHop_read(ser: number): number {
28421         if(!isWasmInitialized) {
28422                 throw new Error("initializeWasm() must be awaited first!");
28423         }
28424         const nativeResponseValue = wasm.TS_RouteHintHop_read(ser);
28425         return nativeResponseValue;
28426 }
28427         // 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, const uint8_t (*random_seed_bytes)[32]);
28428 /* @internal */
28429 export function find_route(our_node_pubkey: number, route_params: number, network: number, first_hops: number, logger: number, scorer: number, random_seed_bytes: number): number {
28430         if(!isWasmInitialized) {
28431                 throw new Error("initializeWasm() must be awaited first!");
28432         }
28433         const nativeResponseValue = wasm.TS_find_route(our_node_pubkey, route_params, network, first_hops, logger, scorer, random_seed_bytes);
28434         return nativeResponseValue;
28435 }
28436         // void Score_free(struct LDKScore this_ptr);
28437 /* @internal */
28438 export function Score_free(this_ptr: number): void {
28439         if(!isWasmInitialized) {
28440                 throw new Error("initializeWasm() must be awaited first!");
28441         }
28442         const nativeResponseValue = wasm.TS_Score_free(this_ptr);
28443         // debug statements here
28444 }
28445         // void LockableScore_free(struct LDKLockableScore this_ptr);
28446 /* @internal */
28447 export function LockableScore_free(this_ptr: number): void {
28448         if(!isWasmInitialized) {
28449                 throw new Error("initializeWasm() must be awaited first!");
28450         }
28451         const nativeResponseValue = wasm.TS_LockableScore_free(this_ptr);
28452         // debug statements here
28453 }
28454         // void MultiThreadedLockableScore_free(struct LDKMultiThreadedLockableScore this_obj);
28455 /* @internal */
28456 export function MultiThreadedLockableScore_free(this_obj: number): void {
28457         if(!isWasmInitialized) {
28458                 throw new Error("initializeWasm() must be awaited first!");
28459         }
28460         const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_free(this_obj);
28461         // debug statements here
28462 }
28463         // MUST_USE_RES struct LDKMultiThreadedLockableScore MultiThreadedLockableScore_new(struct LDKScore score);
28464 /* @internal */
28465 export function MultiThreadedLockableScore_new(score: number): number {
28466         if(!isWasmInitialized) {
28467                 throw new Error("initializeWasm() must be awaited first!");
28468         }
28469         const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_new(score);
28470         return nativeResponseValue;
28471 }
28472         // void FixedPenaltyScorer_free(struct LDKFixedPenaltyScorer this_obj);
28473 /* @internal */
28474 export function FixedPenaltyScorer_free(this_obj: number): void {
28475         if(!isWasmInitialized) {
28476                 throw new Error("initializeWasm() must be awaited first!");
28477         }
28478         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_free(this_obj);
28479         // debug statements here
28480 }
28481         // uintptr_t FixedPenaltyScorer_clone_ptr(LDKFixedPenaltyScorer *NONNULL_PTR arg);
28482 /* @internal */
28483 export function FixedPenaltyScorer_clone_ptr(arg: number): number {
28484         if(!isWasmInitialized) {
28485                 throw new Error("initializeWasm() must be awaited first!");
28486         }
28487         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_clone_ptr(arg);
28488         return nativeResponseValue;
28489 }
28490         // struct LDKFixedPenaltyScorer FixedPenaltyScorer_clone(const struct LDKFixedPenaltyScorer *NONNULL_PTR orig);
28491 /* @internal */
28492 export function FixedPenaltyScorer_clone(orig: number): number {
28493         if(!isWasmInitialized) {
28494                 throw new Error("initializeWasm() must be awaited first!");
28495         }
28496         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_clone(orig);
28497         return nativeResponseValue;
28498 }
28499         // MUST_USE_RES struct LDKFixedPenaltyScorer FixedPenaltyScorer_with_penalty(uint64_t penalty_msat);
28500 /* @internal */
28501 export function FixedPenaltyScorer_with_penalty(penalty_msat: bigint): number {
28502         if(!isWasmInitialized) {
28503                 throw new Error("initializeWasm() must be awaited first!");
28504         }
28505         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_with_penalty(penalty_msat);
28506         return nativeResponseValue;
28507 }
28508         // struct LDKScore FixedPenaltyScorer_as_Score(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg);
28509 /* @internal */
28510 export function FixedPenaltyScorer_as_Score(this_arg: number): number {
28511         if(!isWasmInitialized) {
28512                 throw new Error("initializeWasm() must be awaited first!");
28513         }
28514         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_as_Score(this_arg);
28515         return nativeResponseValue;
28516 }
28517         // struct LDKCVec_u8Z FixedPenaltyScorer_write(const struct LDKFixedPenaltyScorer *NONNULL_PTR obj);
28518 /* @internal */
28519 export function FixedPenaltyScorer_write(obj: number): number {
28520         if(!isWasmInitialized) {
28521                 throw new Error("initializeWasm() must be awaited first!");
28522         }
28523         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_write(obj);
28524         return nativeResponseValue;
28525 }
28526         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ FixedPenaltyScorer_read(struct LDKu8slice ser, uint64_t arg);
28527 /* @internal */
28528 export function FixedPenaltyScorer_read(ser: number, arg: bigint): number {
28529         if(!isWasmInitialized) {
28530                 throw new Error("initializeWasm() must be awaited first!");
28531         }
28532         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_read(ser, arg);
28533         return nativeResponseValue;
28534 }
28535         // void Scorer_free(struct LDKScorer this_obj);
28536 /* @internal */
28537 export function Scorer_free(this_obj: number): void {
28538         if(!isWasmInitialized) {
28539                 throw new Error("initializeWasm() must be awaited first!");
28540         }
28541         const nativeResponseValue = wasm.TS_Scorer_free(this_obj);
28542         // debug statements here
28543 }
28544         // void ScoringParameters_free(struct LDKScoringParameters this_obj);
28545 /* @internal */
28546 export function ScoringParameters_free(this_obj: number): void {
28547         if(!isWasmInitialized) {
28548                 throw new Error("initializeWasm() must be awaited first!");
28549         }
28550         const nativeResponseValue = wasm.TS_ScoringParameters_free(this_obj);
28551         // debug statements here
28552 }
28553         // uint64_t ScoringParameters_get_base_penalty_msat(const struct LDKScoringParameters *NONNULL_PTR this_ptr);
28554 /* @internal */
28555 export function ScoringParameters_get_base_penalty_msat(this_ptr: number): bigint {
28556         if(!isWasmInitialized) {
28557                 throw new Error("initializeWasm() must be awaited first!");
28558         }
28559         const nativeResponseValue = wasm.TS_ScoringParameters_get_base_penalty_msat(this_ptr);
28560         return nativeResponseValue;
28561 }
28562         // void ScoringParameters_set_base_penalty_msat(struct LDKScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
28563 /* @internal */
28564 export function ScoringParameters_set_base_penalty_msat(this_ptr: number, val: bigint): void {
28565         if(!isWasmInitialized) {
28566                 throw new Error("initializeWasm() must be awaited first!");
28567         }
28568         const nativeResponseValue = wasm.TS_ScoringParameters_set_base_penalty_msat(this_ptr, val);
28569         // debug statements here
28570 }
28571         // uint64_t ScoringParameters_get_failure_penalty_msat(const struct LDKScoringParameters *NONNULL_PTR this_ptr);
28572 /* @internal */
28573 export function ScoringParameters_get_failure_penalty_msat(this_ptr: number): bigint {
28574         if(!isWasmInitialized) {
28575                 throw new Error("initializeWasm() must be awaited first!");
28576         }
28577         const nativeResponseValue = wasm.TS_ScoringParameters_get_failure_penalty_msat(this_ptr);
28578         return nativeResponseValue;
28579 }
28580         // void ScoringParameters_set_failure_penalty_msat(struct LDKScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
28581 /* @internal */
28582 export function ScoringParameters_set_failure_penalty_msat(this_ptr: number, val: bigint): void {
28583         if(!isWasmInitialized) {
28584                 throw new Error("initializeWasm() must be awaited first!");
28585         }
28586         const nativeResponseValue = wasm.TS_ScoringParameters_set_failure_penalty_msat(this_ptr, val);
28587         // debug statements here
28588 }
28589         // uint16_t ScoringParameters_get_overuse_penalty_start_1024th(const struct LDKScoringParameters *NONNULL_PTR this_ptr);
28590 /* @internal */
28591 export function ScoringParameters_get_overuse_penalty_start_1024th(this_ptr: number): number {
28592         if(!isWasmInitialized) {
28593                 throw new Error("initializeWasm() must be awaited first!");
28594         }
28595         const nativeResponseValue = wasm.TS_ScoringParameters_get_overuse_penalty_start_1024th(this_ptr);
28596         return nativeResponseValue;
28597 }
28598         // void ScoringParameters_set_overuse_penalty_start_1024th(struct LDKScoringParameters *NONNULL_PTR this_ptr, uint16_t val);
28599 /* @internal */
28600 export function ScoringParameters_set_overuse_penalty_start_1024th(this_ptr: number, val: number): void {
28601         if(!isWasmInitialized) {
28602                 throw new Error("initializeWasm() must be awaited first!");
28603         }
28604         const nativeResponseValue = wasm.TS_ScoringParameters_set_overuse_penalty_start_1024th(this_ptr, val);
28605         // debug statements here
28606 }
28607         // uint64_t ScoringParameters_get_overuse_penalty_msat_per_1024th(const struct LDKScoringParameters *NONNULL_PTR this_ptr);
28608 /* @internal */
28609 export function ScoringParameters_get_overuse_penalty_msat_per_1024th(this_ptr: number): bigint {
28610         if(!isWasmInitialized) {
28611                 throw new Error("initializeWasm() must be awaited first!");
28612         }
28613         const nativeResponseValue = wasm.TS_ScoringParameters_get_overuse_penalty_msat_per_1024th(this_ptr);
28614         return nativeResponseValue;
28615 }
28616         // void ScoringParameters_set_overuse_penalty_msat_per_1024th(struct LDKScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
28617 /* @internal */
28618 export function ScoringParameters_set_overuse_penalty_msat_per_1024th(this_ptr: number, val: bigint): void {
28619         if(!isWasmInitialized) {
28620                 throw new Error("initializeWasm() must be awaited first!");
28621         }
28622         const nativeResponseValue = wasm.TS_ScoringParameters_set_overuse_penalty_msat_per_1024th(this_ptr, val);
28623         // debug statements here
28624 }
28625         // uint64_t ScoringParameters_get_failure_penalty_half_life(const struct LDKScoringParameters *NONNULL_PTR this_ptr);
28626 /* @internal */
28627 export function ScoringParameters_get_failure_penalty_half_life(this_ptr: number): bigint {
28628         if(!isWasmInitialized) {
28629                 throw new Error("initializeWasm() must be awaited first!");
28630         }
28631         const nativeResponseValue = wasm.TS_ScoringParameters_get_failure_penalty_half_life(this_ptr);
28632         return nativeResponseValue;
28633 }
28634         // void ScoringParameters_set_failure_penalty_half_life(struct LDKScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
28635 /* @internal */
28636 export function ScoringParameters_set_failure_penalty_half_life(this_ptr: number, val: bigint): void {
28637         if(!isWasmInitialized) {
28638                 throw new Error("initializeWasm() must be awaited first!");
28639         }
28640         const nativeResponseValue = wasm.TS_ScoringParameters_set_failure_penalty_half_life(this_ptr, val);
28641         // debug statements here
28642 }
28643         // 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);
28644 /* @internal */
28645 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 {
28646         if(!isWasmInitialized) {
28647                 throw new Error("initializeWasm() must be awaited first!");
28648         }
28649         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);
28650         return nativeResponseValue;
28651 }
28652         // uintptr_t ScoringParameters_clone_ptr(LDKScoringParameters *NONNULL_PTR arg);
28653 /* @internal */
28654 export function ScoringParameters_clone_ptr(arg: number): number {
28655         if(!isWasmInitialized) {
28656                 throw new Error("initializeWasm() must be awaited first!");
28657         }
28658         const nativeResponseValue = wasm.TS_ScoringParameters_clone_ptr(arg);
28659         return nativeResponseValue;
28660 }
28661         // struct LDKScoringParameters ScoringParameters_clone(const struct LDKScoringParameters *NONNULL_PTR orig);
28662 /* @internal */
28663 export function ScoringParameters_clone(orig: number): number {
28664         if(!isWasmInitialized) {
28665                 throw new Error("initializeWasm() must be awaited first!");
28666         }
28667         const nativeResponseValue = wasm.TS_ScoringParameters_clone(orig);
28668         return nativeResponseValue;
28669 }
28670         // struct LDKCVec_u8Z ScoringParameters_write(const struct LDKScoringParameters *NONNULL_PTR obj);
28671 /* @internal */
28672 export function ScoringParameters_write(obj: number): number {
28673         if(!isWasmInitialized) {
28674                 throw new Error("initializeWasm() must be awaited first!");
28675         }
28676         const nativeResponseValue = wasm.TS_ScoringParameters_write(obj);
28677         return nativeResponseValue;
28678 }
28679         // struct LDKCResult_ScoringParametersDecodeErrorZ ScoringParameters_read(struct LDKu8slice ser);
28680 /* @internal */
28681 export function ScoringParameters_read(ser: number): number {
28682         if(!isWasmInitialized) {
28683                 throw new Error("initializeWasm() must be awaited first!");
28684         }
28685         const nativeResponseValue = wasm.TS_ScoringParameters_read(ser);
28686         return nativeResponseValue;
28687 }
28688         // MUST_USE_RES struct LDKScorer Scorer_new(struct LDKScoringParameters params);
28689 /* @internal */
28690 export function Scorer_new(params: number): number {
28691         if(!isWasmInitialized) {
28692                 throw new Error("initializeWasm() must be awaited first!");
28693         }
28694         const nativeResponseValue = wasm.TS_Scorer_new(params);
28695         return nativeResponseValue;
28696 }
28697         // MUST_USE_RES struct LDKScorer Scorer_default(void);
28698 /* @internal */
28699 export function Scorer_default(): number {
28700         if(!isWasmInitialized) {
28701                 throw new Error("initializeWasm() must be awaited first!");
28702         }
28703         const nativeResponseValue = wasm.TS_Scorer_default();
28704         return nativeResponseValue;
28705 }
28706         // MUST_USE_RES struct LDKScoringParameters ScoringParameters_default(void);
28707 /* @internal */
28708 export function ScoringParameters_default(): number {
28709         if(!isWasmInitialized) {
28710                 throw new Error("initializeWasm() must be awaited first!");
28711         }
28712         const nativeResponseValue = wasm.TS_ScoringParameters_default();
28713         return nativeResponseValue;
28714 }
28715         // struct LDKScore Scorer_as_Score(const struct LDKScorer *NONNULL_PTR this_arg);
28716 /* @internal */
28717 export function Scorer_as_Score(this_arg: number): number {
28718         if(!isWasmInitialized) {
28719                 throw new Error("initializeWasm() must be awaited first!");
28720         }
28721         const nativeResponseValue = wasm.TS_Scorer_as_Score(this_arg);
28722         return nativeResponseValue;
28723 }
28724         // struct LDKCVec_u8Z Scorer_write(const struct LDKScorer *NONNULL_PTR obj);
28725 /* @internal */
28726 export function Scorer_write(obj: number): number {
28727         if(!isWasmInitialized) {
28728                 throw new Error("initializeWasm() must be awaited first!");
28729         }
28730         const nativeResponseValue = wasm.TS_Scorer_write(obj);
28731         return nativeResponseValue;
28732 }
28733         // struct LDKCResult_ScorerDecodeErrorZ Scorer_read(struct LDKu8slice ser);
28734 /* @internal */
28735 export function Scorer_read(ser: number): number {
28736         if(!isWasmInitialized) {
28737                 throw new Error("initializeWasm() must be awaited first!");
28738         }
28739         const nativeResponseValue = wasm.TS_Scorer_read(ser);
28740         return nativeResponseValue;
28741 }
28742         // void ProbabilisticScorer_free(struct LDKProbabilisticScorer this_obj);
28743 /* @internal */
28744 export function ProbabilisticScorer_free(this_obj: number): void {
28745         if(!isWasmInitialized) {
28746                 throw new Error("initializeWasm() must be awaited first!");
28747         }
28748         const nativeResponseValue = wasm.TS_ProbabilisticScorer_free(this_obj);
28749         // debug statements here
28750 }
28751         // void ProbabilisticScoringParameters_free(struct LDKProbabilisticScoringParameters this_obj);
28752 /* @internal */
28753 export function ProbabilisticScoringParameters_free(this_obj: number): void {
28754         if(!isWasmInitialized) {
28755                 throw new Error("initializeWasm() must be awaited first!");
28756         }
28757         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_free(this_obj);
28758         // debug statements here
28759 }
28760         // uint64_t ProbabilisticScoringParameters_get_base_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
28761 /* @internal */
28762 export function ProbabilisticScoringParameters_get_base_penalty_msat(this_ptr: number): bigint {
28763         if(!isWasmInitialized) {
28764                 throw new Error("initializeWasm() must be awaited first!");
28765         }
28766         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_base_penalty_msat(this_ptr);
28767         return nativeResponseValue;
28768 }
28769         // void ProbabilisticScoringParameters_set_base_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
28770 /* @internal */
28771 export function ProbabilisticScoringParameters_set_base_penalty_msat(this_ptr: number, val: bigint): void {
28772         if(!isWasmInitialized) {
28773                 throw new Error("initializeWasm() must be awaited first!");
28774         }
28775         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_base_penalty_msat(this_ptr, val);
28776         // debug statements here
28777 }
28778         // uint64_t ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
28779 /* @internal */
28780 export function ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(this_ptr: number): bigint {
28781         if(!isWasmInitialized) {
28782                 throw new Error("initializeWasm() must be awaited first!");
28783         }
28784         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(this_ptr);
28785         return nativeResponseValue;
28786 }
28787         // void ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
28788 /* @internal */
28789 export function ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(this_ptr: number, val: bigint): void {
28790         if(!isWasmInitialized) {
28791                 throw new Error("initializeWasm() must be awaited first!");
28792         }
28793         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(this_ptr, val);
28794         // debug statements here
28795 }
28796         // uint64_t ProbabilisticScoringParameters_get_liquidity_offset_half_life(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
28797 /* @internal */
28798 export function ProbabilisticScoringParameters_get_liquidity_offset_half_life(this_ptr: number): bigint {
28799         if(!isWasmInitialized) {
28800                 throw new Error("initializeWasm() must be awaited first!");
28801         }
28802         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_liquidity_offset_half_life(this_ptr);
28803         return nativeResponseValue;
28804 }
28805         // void ProbabilisticScoringParameters_set_liquidity_offset_half_life(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
28806 /* @internal */
28807 export function ProbabilisticScoringParameters_set_liquidity_offset_half_life(this_ptr: number, val: bigint): void {
28808         if(!isWasmInitialized) {
28809                 throw new Error("initializeWasm() must be awaited first!");
28810         }
28811         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_liquidity_offset_half_life(this_ptr, val);
28812         // debug statements here
28813 }
28814         // uint64_t ProbabilisticScoringParameters_get_amount_penalty_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
28815 /* @internal */
28816 export function ProbabilisticScoringParameters_get_amount_penalty_multiplier_msat(this_ptr: number): bigint {
28817         if(!isWasmInitialized) {
28818                 throw new Error("initializeWasm() must be awaited first!");
28819         }
28820         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_amount_penalty_multiplier_msat(this_ptr);
28821         return nativeResponseValue;
28822 }
28823         // void ProbabilisticScoringParameters_set_amount_penalty_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
28824 /* @internal */
28825 export function ProbabilisticScoringParameters_set_amount_penalty_multiplier_msat(this_ptr: number, val: bigint): void {
28826         if(!isWasmInitialized) {
28827                 throw new Error("initializeWasm() must be awaited first!");
28828         }
28829         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_amount_penalty_multiplier_msat(this_ptr, val);
28830         // debug statements here
28831 }
28832         // MUST_USE_RES struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_new(uint64_t base_penalty_msat_arg, uint64_t liquidity_penalty_multiplier_msat_arg, uint64_t liquidity_offset_half_life_arg, uint64_t amount_penalty_multiplier_msat_arg);
28833 /* @internal */
28834 export function ProbabilisticScoringParameters_new(base_penalty_msat_arg: bigint, liquidity_penalty_multiplier_msat_arg: bigint, liquidity_offset_half_life_arg: bigint, amount_penalty_multiplier_msat_arg: bigint): number {
28835         if(!isWasmInitialized) {
28836                 throw new Error("initializeWasm() must be awaited first!");
28837         }
28838         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_new(base_penalty_msat_arg, liquidity_penalty_multiplier_msat_arg, liquidity_offset_half_life_arg, amount_penalty_multiplier_msat_arg);
28839         return nativeResponseValue;
28840 }
28841         // uintptr_t ProbabilisticScoringParameters_clone_ptr(LDKProbabilisticScoringParameters *NONNULL_PTR arg);
28842 /* @internal */
28843 export function ProbabilisticScoringParameters_clone_ptr(arg: number): number {
28844         if(!isWasmInitialized) {
28845                 throw new Error("initializeWasm() must be awaited first!");
28846         }
28847         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_clone_ptr(arg);
28848         return nativeResponseValue;
28849 }
28850         // struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_clone(const struct LDKProbabilisticScoringParameters *NONNULL_PTR orig);
28851 /* @internal */
28852 export function ProbabilisticScoringParameters_clone(orig: number): number {
28853         if(!isWasmInitialized) {
28854                 throw new Error("initializeWasm() must be awaited first!");
28855         }
28856         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_clone(orig);
28857         return nativeResponseValue;
28858 }
28859         // MUST_USE_RES struct LDKProbabilisticScorer ProbabilisticScorer_new(struct LDKProbabilisticScoringParameters params, const struct LDKNetworkGraph *NONNULL_PTR network_graph);
28860 /* @internal */
28861 export function ProbabilisticScorer_new(params: number, network_graph: number): number {
28862         if(!isWasmInitialized) {
28863                 throw new Error("initializeWasm() must be awaited first!");
28864         }
28865         const nativeResponseValue = wasm.TS_ProbabilisticScorer_new(params, network_graph);
28866         return nativeResponseValue;
28867 }
28868         // MUST_USE_RES struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_default(void);
28869 /* @internal */
28870 export function ProbabilisticScoringParameters_default(): number {
28871         if(!isWasmInitialized) {
28872                 throw new Error("initializeWasm() must be awaited first!");
28873         }
28874         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_default();
28875         return nativeResponseValue;
28876 }
28877         // struct LDKScore ProbabilisticScorer_as_Score(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
28878 /* @internal */
28879 export function ProbabilisticScorer_as_Score(this_arg: number): number {
28880         if(!isWasmInitialized) {
28881                 throw new Error("initializeWasm() must be awaited first!");
28882         }
28883         const nativeResponseValue = wasm.TS_ProbabilisticScorer_as_Score(this_arg);
28884         return nativeResponseValue;
28885 }
28886         // struct LDKCVec_u8Z ProbabilisticScorer_write(const struct LDKProbabilisticScorer *NONNULL_PTR obj);
28887 /* @internal */
28888 export function ProbabilisticScorer_write(obj: number): number {
28889         if(!isWasmInitialized) {
28890                 throw new Error("initializeWasm() must be awaited first!");
28891         }
28892         const nativeResponseValue = wasm.TS_ProbabilisticScorer_write(obj);
28893         return nativeResponseValue;
28894 }
28895         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ ProbabilisticScorer_read(struct LDKu8slice ser, struct LDKProbabilisticScoringParameters arg_a, const struct LDKNetworkGraph *NONNULL_PTR arg_b);
28896 /* @internal */
28897 export function ProbabilisticScorer_read(ser: number, arg_a: number, arg_b: number): number {
28898         if(!isWasmInitialized) {
28899                 throw new Error("initializeWasm() must be awaited first!");
28900         }
28901         const nativeResponseValue = wasm.TS_ProbabilisticScorer_read(ser, arg_a, arg_b);
28902         return nativeResponseValue;
28903 }
28904         // void ParseError_free(struct LDKParseError this_ptr);
28905 /* @internal */
28906 export function ParseError_free(this_ptr: number): void {
28907         if(!isWasmInitialized) {
28908                 throw new Error("initializeWasm() must be awaited first!");
28909         }
28910         const nativeResponseValue = wasm.TS_ParseError_free(this_ptr);
28911         // debug statements here
28912 }
28913         // uintptr_t ParseError_clone_ptr(LDKParseError *NONNULL_PTR arg);
28914 /* @internal */
28915 export function ParseError_clone_ptr(arg: number): number {
28916         if(!isWasmInitialized) {
28917                 throw new Error("initializeWasm() must be awaited first!");
28918         }
28919         const nativeResponseValue = wasm.TS_ParseError_clone_ptr(arg);
28920         return nativeResponseValue;
28921 }
28922         // struct LDKParseError ParseError_clone(const struct LDKParseError *NONNULL_PTR orig);
28923 /* @internal */
28924 export function ParseError_clone(orig: number): number {
28925         if(!isWasmInitialized) {
28926                 throw new Error("initializeWasm() must be awaited first!");
28927         }
28928         const nativeResponseValue = wasm.TS_ParseError_clone(orig);
28929         return nativeResponseValue;
28930 }
28931         // struct LDKParseError ParseError_bech32_error(struct LDKBech32Error a);
28932 /* @internal */
28933 export function ParseError_bech32_error(a: number): number {
28934         if(!isWasmInitialized) {
28935                 throw new Error("initializeWasm() must be awaited first!");
28936         }
28937         const nativeResponseValue = wasm.TS_ParseError_bech32_error(a);
28938         return nativeResponseValue;
28939 }
28940         // struct LDKParseError ParseError_parse_amount_error(struct LDKError a);
28941 /* @internal */
28942 export function ParseError_parse_amount_error(a: number): number {
28943         if(!isWasmInitialized) {
28944                 throw new Error("initializeWasm() must be awaited first!");
28945         }
28946         const nativeResponseValue = wasm.TS_ParseError_parse_amount_error(a);
28947         return nativeResponseValue;
28948 }
28949         // struct LDKParseError ParseError_malformed_signature(enum LDKSecp256k1Error a);
28950 /* @internal */
28951 export function ParseError_malformed_signature(a: Secp256k1Error): number {
28952         if(!isWasmInitialized) {
28953                 throw new Error("initializeWasm() must be awaited first!");
28954         }
28955         const nativeResponseValue = wasm.TS_ParseError_malformed_signature(a);
28956         return nativeResponseValue;
28957 }
28958         // struct LDKParseError ParseError_bad_prefix(void);
28959 /* @internal */
28960 export function ParseError_bad_prefix(): number {
28961         if(!isWasmInitialized) {
28962                 throw new Error("initializeWasm() must be awaited first!");
28963         }
28964         const nativeResponseValue = wasm.TS_ParseError_bad_prefix();
28965         return nativeResponseValue;
28966 }
28967         // struct LDKParseError ParseError_unknown_currency(void);
28968 /* @internal */
28969 export function ParseError_unknown_currency(): number {
28970         if(!isWasmInitialized) {
28971                 throw new Error("initializeWasm() must be awaited first!");
28972         }
28973         const nativeResponseValue = wasm.TS_ParseError_unknown_currency();
28974         return nativeResponseValue;
28975 }
28976         // struct LDKParseError ParseError_unknown_si_prefix(void);
28977 /* @internal */
28978 export function ParseError_unknown_si_prefix(): number {
28979         if(!isWasmInitialized) {
28980                 throw new Error("initializeWasm() must be awaited first!");
28981         }
28982         const nativeResponseValue = wasm.TS_ParseError_unknown_si_prefix();
28983         return nativeResponseValue;
28984 }
28985         // struct LDKParseError ParseError_malformed_hrp(void);
28986 /* @internal */
28987 export function ParseError_malformed_hrp(): number {
28988         if(!isWasmInitialized) {
28989                 throw new Error("initializeWasm() must be awaited first!");
28990         }
28991         const nativeResponseValue = wasm.TS_ParseError_malformed_hrp();
28992         return nativeResponseValue;
28993 }
28994         // struct LDKParseError ParseError_too_short_data_part(void);
28995 /* @internal */
28996 export function ParseError_too_short_data_part(): number {
28997         if(!isWasmInitialized) {
28998                 throw new Error("initializeWasm() must be awaited first!");
28999         }
29000         const nativeResponseValue = wasm.TS_ParseError_too_short_data_part();
29001         return nativeResponseValue;
29002 }
29003         // struct LDKParseError ParseError_unexpected_end_of_tagged_fields(void);
29004 /* @internal */
29005 export function ParseError_unexpected_end_of_tagged_fields(): number {
29006         if(!isWasmInitialized) {
29007                 throw new Error("initializeWasm() must be awaited first!");
29008         }
29009         const nativeResponseValue = wasm.TS_ParseError_unexpected_end_of_tagged_fields();
29010         return nativeResponseValue;
29011 }
29012         // struct LDKParseError ParseError_description_decode_error(struct LDKError a);
29013 /* @internal */
29014 export function ParseError_description_decode_error(a: number): number {
29015         if(!isWasmInitialized) {
29016                 throw new Error("initializeWasm() must be awaited first!");
29017         }
29018         const nativeResponseValue = wasm.TS_ParseError_description_decode_error(a);
29019         return nativeResponseValue;
29020 }
29021         // struct LDKParseError ParseError_padding_error(void);
29022 /* @internal */
29023 export function ParseError_padding_error(): number {
29024         if(!isWasmInitialized) {
29025                 throw new Error("initializeWasm() must be awaited first!");
29026         }
29027         const nativeResponseValue = wasm.TS_ParseError_padding_error();
29028         return nativeResponseValue;
29029 }
29030         // struct LDKParseError ParseError_integer_overflow_error(void);
29031 /* @internal */
29032 export function ParseError_integer_overflow_error(): number {
29033         if(!isWasmInitialized) {
29034                 throw new Error("initializeWasm() must be awaited first!");
29035         }
29036         const nativeResponseValue = wasm.TS_ParseError_integer_overflow_error();
29037         return nativeResponseValue;
29038 }
29039         // struct LDKParseError ParseError_invalid_seg_wit_program_length(void);
29040 /* @internal */
29041 export function ParseError_invalid_seg_wit_program_length(): number {
29042         if(!isWasmInitialized) {
29043                 throw new Error("initializeWasm() must be awaited first!");
29044         }
29045         const nativeResponseValue = wasm.TS_ParseError_invalid_seg_wit_program_length();
29046         return nativeResponseValue;
29047 }
29048         // struct LDKParseError ParseError_invalid_pub_key_hash_length(void);
29049 /* @internal */
29050 export function ParseError_invalid_pub_key_hash_length(): number {
29051         if(!isWasmInitialized) {
29052                 throw new Error("initializeWasm() must be awaited first!");
29053         }
29054         const nativeResponseValue = wasm.TS_ParseError_invalid_pub_key_hash_length();
29055         return nativeResponseValue;
29056 }
29057         // struct LDKParseError ParseError_invalid_script_hash_length(void);
29058 /* @internal */
29059 export function ParseError_invalid_script_hash_length(): number {
29060         if(!isWasmInitialized) {
29061                 throw new Error("initializeWasm() must be awaited first!");
29062         }
29063         const nativeResponseValue = wasm.TS_ParseError_invalid_script_hash_length();
29064         return nativeResponseValue;
29065 }
29066         // struct LDKParseError ParseError_invalid_recovery_id(void);
29067 /* @internal */
29068 export function ParseError_invalid_recovery_id(): number {
29069         if(!isWasmInitialized) {
29070                 throw new Error("initializeWasm() must be awaited first!");
29071         }
29072         const nativeResponseValue = wasm.TS_ParseError_invalid_recovery_id();
29073         return nativeResponseValue;
29074 }
29075         // struct LDKParseError ParseError_invalid_slice_length(struct LDKStr a);
29076 /* @internal */
29077 export function ParseError_invalid_slice_length(a: number): number {
29078         if(!isWasmInitialized) {
29079                 throw new Error("initializeWasm() must be awaited first!");
29080         }
29081         const nativeResponseValue = wasm.TS_ParseError_invalid_slice_length(a);
29082         return nativeResponseValue;
29083 }
29084         // struct LDKParseError ParseError_skip(void);
29085 /* @internal */
29086 export function ParseError_skip(): number {
29087         if(!isWasmInitialized) {
29088                 throw new Error("initializeWasm() must be awaited first!");
29089         }
29090         const nativeResponseValue = wasm.TS_ParseError_skip();
29091         return nativeResponseValue;
29092 }
29093         // void ParseOrSemanticError_free(struct LDKParseOrSemanticError this_ptr);
29094 /* @internal */
29095 export function ParseOrSemanticError_free(this_ptr: number): void {
29096         if(!isWasmInitialized) {
29097                 throw new Error("initializeWasm() must be awaited first!");
29098         }
29099         const nativeResponseValue = wasm.TS_ParseOrSemanticError_free(this_ptr);
29100         // debug statements here
29101 }
29102         // uintptr_t ParseOrSemanticError_clone_ptr(LDKParseOrSemanticError *NONNULL_PTR arg);
29103 /* @internal */
29104 export function ParseOrSemanticError_clone_ptr(arg: number): number {
29105         if(!isWasmInitialized) {
29106                 throw new Error("initializeWasm() must be awaited first!");
29107         }
29108         const nativeResponseValue = wasm.TS_ParseOrSemanticError_clone_ptr(arg);
29109         return nativeResponseValue;
29110 }
29111         // struct LDKParseOrSemanticError ParseOrSemanticError_clone(const struct LDKParseOrSemanticError *NONNULL_PTR orig);
29112 /* @internal */
29113 export function ParseOrSemanticError_clone(orig: number): number {
29114         if(!isWasmInitialized) {
29115                 throw new Error("initializeWasm() must be awaited first!");
29116         }
29117         const nativeResponseValue = wasm.TS_ParseOrSemanticError_clone(orig);
29118         return nativeResponseValue;
29119 }
29120         // struct LDKParseOrSemanticError ParseOrSemanticError_parse_error(struct LDKParseError a);
29121 /* @internal */
29122 export function ParseOrSemanticError_parse_error(a: number): number {
29123         if(!isWasmInitialized) {
29124                 throw new Error("initializeWasm() must be awaited first!");
29125         }
29126         const nativeResponseValue = wasm.TS_ParseOrSemanticError_parse_error(a);
29127         return nativeResponseValue;
29128 }
29129         // struct LDKParseOrSemanticError ParseOrSemanticError_semantic_error(enum LDKSemanticError a);
29130 /* @internal */
29131 export function ParseOrSemanticError_semantic_error(a: SemanticError): number {
29132         if(!isWasmInitialized) {
29133                 throw new Error("initializeWasm() must be awaited first!");
29134         }
29135         const nativeResponseValue = wasm.TS_ParseOrSemanticError_semantic_error(a);
29136         return nativeResponseValue;
29137 }
29138         // void Invoice_free(struct LDKInvoice this_obj);
29139 /* @internal */
29140 export function Invoice_free(this_obj: number): void {
29141         if(!isWasmInitialized) {
29142                 throw new Error("initializeWasm() must be awaited first!");
29143         }
29144         const nativeResponseValue = wasm.TS_Invoice_free(this_obj);
29145         // debug statements here
29146 }
29147         // bool Invoice_eq(const struct LDKInvoice *NONNULL_PTR a, const struct LDKInvoice *NONNULL_PTR b);
29148 /* @internal */
29149 export function Invoice_eq(a: number, b: number): boolean {
29150         if(!isWasmInitialized) {
29151                 throw new Error("initializeWasm() must be awaited first!");
29152         }
29153         const nativeResponseValue = wasm.TS_Invoice_eq(a, b);
29154         return nativeResponseValue;
29155 }
29156         // uintptr_t Invoice_clone_ptr(LDKInvoice *NONNULL_PTR arg);
29157 /* @internal */
29158 export function Invoice_clone_ptr(arg: number): number {
29159         if(!isWasmInitialized) {
29160                 throw new Error("initializeWasm() must be awaited first!");
29161         }
29162         const nativeResponseValue = wasm.TS_Invoice_clone_ptr(arg);
29163         return nativeResponseValue;
29164 }
29165         // struct LDKInvoice Invoice_clone(const struct LDKInvoice *NONNULL_PTR orig);
29166 /* @internal */
29167 export function Invoice_clone(orig: number): number {
29168         if(!isWasmInitialized) {
29169                 throw new Error("initializeWasm() must be awaited first!");
29170         }
29171         const nativeResponseValue = wasm.TS_Invoice_clone(orig);
29172         return nativeResponseValue;
29173 }
29174         // void SignedRawInvoice_free(struct LDKSignedRawInvoice this_obj);
29175 /* @internal */
29176 export function SignedRawInvoice_free(this_obj: number): void {
29177         if(!isWasmInitialized) {
29178                 throw new Error("initializeWasm() must be awaited first!");
29179         }
29180         const nativeResponseValue = wasm.TS_SignedRawInvoice_free(this_obj);
29181         // debug statements here
29182 }
29183         // bool SignedRawInvoice_eq(const struct LDKSignedRawInvoice *NONNULL_PTR a, const struct LDKSignedRawInvoice *NONNULL_PTR b);
29184 /* @internal */
29185 export function SignedRawInvoice_eq(a: number, b: number): boolean {
29186         if(!isWasmInitialized) {
29187                 throw new Error("initializeWasm() must be awaited first!");
29188         }
29189         const nativeResponseValue = wasm.TS_SignedRawInvoice_eq(a, b);
29190         return nativeResponseValue;
29191 }
29192         // uintptr_t SignedRawInvoice_clone_ptr(LDKSignedRawInvoice *NONNULL_PTR arg);
29193 /* @internal */
29194 export function SignedRawInvoice_clone_ptr(arg: number): number {
29195         if(!isWasmInitialized) {
29196                 throw new Error("initializeWasm() must be awaited first!");
29197         }
29198         const nativeResponseValue = wasm.TS_SignedRawInvoice_clone_ptr(arg);
29199         return nativeResponseValue;
29200 }
29201         // struct LDKSignedRawInvoice SignedRawInvoice_clone(const struct LDKSignedRawInvoice *NONNULL_PTR orig);
29202 /* @internal */
29203 export function SignedRawInvoice_clone(orig: number): number {
29204         if(!isWasmInitialized) {
29205                 throw new Error("initializeWasm() must be awaited first!");
29206         }
29207         const nativeResponseValue = wasm.TS_SignedRawInvoice_clone(orig);
29208         return nativeResponseValue;
29209 }
29210         // void RawInvoice_free(struct LDKRawInvoice this_obj);
29211 /* @internal */
29212 export function RawInvoice_free(this_obj: number): void {
29213         if(!isWasmInitialized) {
29214                 throw new Error("initializeWasm() must be awaited first!");
29215         }
29216         const nativeResponseValue = wasm.TS_RawInvoice_free(this_obj);
29217         // debug statements here
29218 }
29219         // struct LDKRawDataPart RawInvoice_get_data(const struct LDKRawInvoice *NONNULL_PTR this_ptr);
29220 /* @internal */
29221 export function RawInvoice_get_data(this_ptr: number): number {
29222         if(!isWasmInitialized) {
29223                 throw new Error("initializeWasm() must be awaited first!");
29224         }
29225         const nativeResponseValue = wasm.TS_RawInvoice_get_data(this_ptr);
29226         return nativeResponseValue;
29227 }
29228         // void RawInvoice_set_data(struct LDKRawInvoice *NONNULL_PTR this_ptr, struct LDKRawDataPart val);
29229 /* @internal */
29230 export function RawInvoice_set_data(this_ptr: number, val: number): void {
29231         if(!isWasmInitialized) {
29232                 throw new Error("initializeWasm() must be awaited first!");
29233         }
29234         const nativeResponseValue = wasm.TS_RawInvoice_set_data(this_ptr, val);
29235         // debug statements here
29236 }
29237         // bool RawInvoice_eq(const struct LDKRawInvoice *NONNULL_PTR a, const struct LDKRawInvoice *NONNULL_PTR b);
29238 /* @internal */
29239 export function RawInvoice_eq(a: number, b: number): boolean {
29240         if(!isWasmInitialized) {
29241                 throw new Error("initializeWasm() must be awaited first!");
29242         }
29243         const nativeResponseValue = wasm.TS_RawInvoice_eq(a, b);
29244         return nativeResponseValue;
29245 }
29246         // uintptr_t RawInvoice_clone_ptr(LDKRawInvoice *NONNULL_PTR arg);
29247 /* @internal */
29248 export function RawInvoice_clone_ptr(arg: number): number {
29249         if(!isWasmInitialized) {
29250                 throw new Error("initializeWasm() must be awaited first!");
29251         }
29252         const nativeResponseValue = wasm.TS_RawInvoice_clone_ptr(arg);
29253         return nativeResponseValue;
29254 }
29255         // struct LDKRawInvoice RawInvoice_clone(const struct LDKRawInvoice *NONNULL_PTR orig);
29256 /* @internal */
29257 export function RawInvoice_clone(orig: number): number {
29258         if(!isWasmInitialized) {
29259                 throw new Error("initializeWasm() must be awaited first!");
29260         }
29261         const nativeResponseValue = wasm.TS_RawInvoice_clone(orig);
29262         return nativeResponseValue;
29263 }
29264         // void RawDataPart_free(struct LDKRawDataPart this_obj);
29265 /* @internal */
29266 export function RawDataPart_free(this_obj: number): void {
29267         if(!isWasmInitialized) {
29268                 throw new Error("initializeWasm() must be awaited first!");
29269         }
29270         const nativeResponseValue = wasm.TS_RawDataPart_free(this_obj);
29271         // debug statements here
29272 }
29273         // struct LDKPositiveTimestamp RawDataPart_get_timestamp(const struct LDKRawDataPart *NONNULL_PTR this_ptr);
29274 /* @internal */
29275 export function RawDataPart_get_timestamp(this_ptr: number): number {
29276         if(!isWasmInitialized) {
29277                 throw new Error("initializeWasm() must be awaited first!");
29278         }
29279         const nativeResponseValue = wasm.TS_RawDataPart_get_timestamp(this_ptr);
29280         return nativeResponseValue;
29281 }
29282         // void RawDataPart_set_timestamp(struct LDKRawDataPart *NONNULL_PTR this_ptr, struct LDKPositiveTimestamp val);
29283 /* @internal */
29284 export function RawDataPart_set_timestamp(this_ptr: number, val: number): void {
29285         if(!isWasmInitialized) {
29286                 throw new Error("initializeWasm() must be awaited first!");
29287         }
29288         const nativeResponseValue = wasm.TS_RawDataPart_set_timestamp(this_ptr, val);
29289         // debug statements here
29290 }
29291         // bool RawDataPart_eq(const struct LDKRawDataPart *NONNULL_PTR a, const struct LDKRawDataPart *NONNULL_PTR b);
29292 /* @internal */
29293 export function RawDataPart_eq(a: number, b: number): boolean {
29294         if(!isWasmInitialized) {
29295                 throw new Error("initializeWasm() must be awaited first!");
29296         }
29297         const nativeResponseValue = wasm.TS_RawDataPart_eq(a, b);
29298         return nativeResponseValue;
29299 }
29300         // uintptr_t RawDataPart_clone_ptr(LDKRawDataPart *NONNULL_PTR arg);
29301 /* @internal */
29302 export function RawDataPart_clone_ptr(arg: number): number {
29303         if(!isWasmInitialized) {
29304                 throw new Error("initializeWasm() must be awaited first!");
29305         }
29306         const nativeResponseValue = wasm.TS_RawDataPart_clone_ptr(arg);
29307         return nativeResponseValue;
29308 }
29309         // struct LDKRawDataPart RawDataPart_clone(const struct LDKRawDataPart *NONNULL_PTR orig);
29310 /* @internal */
29311 export function RawDataPart_clone(orig: number): number {
29312         if(!isWasmInitialized) {
29313                 throw new Error("initializeWasm() must be awaited first!");
29314         }
29315         const nativeResponseValue = wasm.TS_RawDataPart_clone(orig);
29316         return nativeResponseValue;
29317 }
29318         // void PositiveTimestamp_free(struct LDKPositiveTimestamp this_obj);
29319 /* @internal */
29320 export function PositiveTimestamp_free(this_obj: number): void {
29321         if(!isWasmInitialized) {
29322                 throw new Error("initializeWasm() must be awaited first!");
29323         }
29324         const nativeResponseValue = wasm.TS_PositiveTimestamp_free(this_obj);
29325         // debug statements here
29326 }
29327         // bool PositiveTimestamp_eq(const struct LDKPositiveTimestamp *NONNULL_PTR a, const struct LDKPositiveTimestamp *NONNULL_PTR b);
29328 /* @internal */
29329 export function PositiveTimestamp_eq(a: number, b: number): boolean {
29330         if(!isWasmInitialized) {
29331                 throw new Error("initializeWasm() must be awaited first!");
29332         }
29333         const nativeResponseValue = wasm.TS_PositiveTimestamp_eq(a, b);
29334         return nativeResponseValue;
29335 }
29336         // uintptr_t PositiveTimestamp_clone_ptr(LDKPositiveTimestamp *NONNULL_PTR arg);
29337 /* @internal */
29338 export function PositiveTimestamp_clone_ptr(arg: number): number {
29339         if(!isWasmInitialized) {
29340                 throw new Error("initializeWasm() must be awaited first!");
29341         }
29342         const nativeResponseValue = wasm.TS_PositiveTimestamp_clone_ptr(arg);
29343         return nativeResponseValue;
29344 }
29345         // struct LDKPositiveTimestamp PositiveTimestamp_clone(const struct LDKPositiveTimestamp *NONNULL_PTR orig);
29346 /* @internal */
29347 export function PositiveTimestamp_clone(orig: number): number {
29348         if(!isWasmInitialized) {
29349                 throw new Error("initializeWasm() must be awaited first!");
29350         }
29351         const nativeResponseValue = wasm.TS_PositiveTimestamp_clone(orig);
29352         return nativeResponseValue;
29353 }
29354         // enum LDKSiPrefix SiPrefix_clone(const enum LDKSiPrefix *NONNULL_PTR orig);
29355 /* @internal */
29356 export function SiPrefix_clone(orig: number): SiPrefix {
29357         if(!isWasmInitialized) {
29358                 throw new Error("initializeWasm() must be awaited first!");
29359         }
29360         const nativeResponseValue = wasm.TS_SiPrefix_clone(orig);
29361         return nativeResponseValue;
29362 }
29363         // enum LDKSiPrefix SiPrefix_milli(void);
29364 /* @internal */
29365 export function SiPrefix_milli(): SiPrefix {
29366         if(!isWasmInitialized) {
29367                 throw new Error("initializeWasm() must be awaited first!");
29368         }
29369         const nativeResponseValue = wasm.TS_SiPrefix_milli();
29370         return nativeResponseValue;
29371 }
29372         // enum LDKSiPrefix SiPrefix_micro(void);
29373 /* @internal */
29374 export function SiPrefix_micro(): SiPrefix {
29375         if(!isWasmInitialized) {
29376                 throw new Error("initializeWasm() must be awaited first!");
29377         }
29378         const nativeResponseValue = wasm.TS_SiPrefix_micro();
29379         return nativeResponseValue;
29380 }
29381         // enum LDKSiPrefix SiPrefix_nano(void);
29382 /* @internal */
29383 export function SiPrefix_nano(): SiPrefix {
29384         if(!isWasmInitialized) {
29385                 throw new Error("initializeWasm() must be awaited first!");
29386         }
29387         const nativeResponseValue = wasm.TS_SiPrefix_nano();
29388         return nativeResponseValue;
29389 }
29390         // enum LDKSiPrefix SiPrefix_pico(void);
29391 /* @internal */
29392 export function SiPrefix_pico(): SiPrefix {
29393         if(!isWasmInitialized) {
29394                 throw new Error("initializeWasm() must be awaited first!");
29395         }
29396         const nativeResponseValue = wasm.TS_SiPrefix_pico();
29397         return nativeResponseValue;
29398 }
29399         // bool SiPrefix_eq(const enum LDKSiPrefix *NONNULL_PTR a, const enum LDKSiPrefix *NONNULL_PTR b);
29400 /* @internal */
29401 export function SiPrefix_eq(a: number, b: number): boolean {
29402         if(!isWasmInitialized) {
29403                 throw new Error("initializeWasm() must be awaited first!");
29404         }
29405         const nativeResponseValue = wasm.TS_SiPrefix_eq(a, b);
29406         return nativeResponseValue;
29407 }
29408         // MUST_USE_RES uint64_t SiPrefix_multiplier(const enum LDKSiPrefix *NONNULL_PTR this_arg);
29409 /* @internal */
29410 export function SiPrefix_multiplier(this_arg: number): bigint {
29411         if(!isWasmInitialized) {
29412                 throw new Error("initializeWasm() must be awaited first!");
29413         }
29414         const nativeResponseValue = wasm.TS_SiPrefix_multiplier(this_arg);
29415         return nativeResponseValue;
29416 }
29417         // enum LDKCurrency Currency_clone(const enum LDKCurrency *NONNULL_PTR orig);
29418 /* @internal */
29419 export function Currency_clone(orig: number): Currency {
29420         if(!isWasmInitialized) {
29421                 throw new Error("initializeWasm() must be awaited first!");
29422         }
29423         const nativeResponseValue = wasm.TS_Currency_clone(orig);
29424         return nativeResponseValue;
29425 }
29426         // enum LDKCurrency Currency_bitcoin(void);
29427 /* @internal */
29428 export function Currency_bitcoin(): Currency {
29429         if(!isWasmInitialized) {
29430                 throw new Error("initializeWasm() must be awaited first!");
29431         }
29432         const nativeResponseValue = wasm.TS_Currency_bitcoin();
29433         return nativeResponseValue;
29434 }
29435         // enum LDKCurrency Currency_bitcoin_testnet(void);
29436 /* @internal */
29437 export function Currency_bitcoin_testnet(): Currency {
29438         if(!isWasmInitialized) {
29439                 throw new Error("initializeWasm() must be awaited first!");
29440         }
29441         const nativeResponseValue = wasm.TS_Currency_bitcoin_testnet();
29442         return nativeResponseValue;
29443 }
29444         // enum LDKCurrency Currency_regtest(void);
29445 /* @internal */
29446 export function Currency_regtest(): Currency {
29447         if(!isWasmInitialized) {
29448                 throw new Error("initializeWasm() must be awaited first!");
29449         }
29450         const nativeResponseValue = wasm.TS_Currency_regtest();
29451         return nativeResponseValue;
29452 }
29453         // enum LDKCurrency Currency_simnet(void);
29454 /* @internal */
29455 export function Currency_simnet(): Currency {
29456         if(!isWasmInitialized) {
29457                 throw new Error("initializeWasm() must be awaited first!");
29458         }
29459         const nativeResponseValue = wasm.TS_Currency_simnet();
29460         return nativeResponseValue;
29461 }
29462         // enum LDKCurrency Currency_signet(void);
29463 /* @internal */
29464 export function Currency_signet(): Currency {
29465         if(!isWasmInitialized) {
29466                 throw new Error("initializeWasm() must be awaited first!");
29467         }
29468         const nativeResponseValue = wasm.TS_Currency_signet();
29469         return nativeResponseValue;
29470 }
29471         // uint64_t Currency_hash(const enum LDKCurrency *NONNULL_PTR o);
29472 /* @internal */
29473 export function Currency_hash(o: number): bigint {
29474         if(!isWasmInitialized) {
29475                 throw new Error("initializeWasm() must be awaited first!");
29476         }
29477         const nativeResponseValue = wasm.TS_Currency_hash(o);
29478         return nativeResponseValue;
29479 }
29480         // bool Currency_eq(const enum LDKCurrency *NONNULL_PTR a, const enum LDKCurrency *NONNULL_PTR b);
29481 /* @internal */
29482 export function Currency_eq(a: number, b: number): boolean {
29483         if(!isWasmInitialized) {
29484                 throw new Error("initializeWasm() must be awaited first!");
29485         }
29486         const nativeResponseValue = wasm.TS_Currency_eq(a, b);
29487         return nativeResponseValue;
29488 }
29489         // void Sha256_free(struct LDKSha256 this_obj);
29490 /* @internal */
29491 export function Sha256_free(this_obj: number): void {
29492         if(!isWasmInitialized) {
29493                 throw new Error("initializeWasm() must be awaited first!");
29494         }
29495         const nativeResponseValue = wasm.TS_Sha256_free(this_obj);
29496         // debug statements here
29497 }
29498         // uintptr_t Sha256_clone_ptr(LDKSha256 *NONNULL_PTR arg);
29499 /* @internal */
29500 export function Sha256_clone_ptr(arg: number): number {
29501         if(!isWasmInitialized) {
29502                 throw new Error("initializeWasm() must be awaited first!");
29503         }
29504         const nativeResponseValue = wasm.TS_Sha256_clone_ptr(arg);
29505         return nativeResponseValue;
29506 }
29507         // struct LDKSha256 Sha256_clone(const struct LDKSha256 *NONNULL_PTR orig);
29508 /* @internal */
29509 export function Sha256_clone(orig: number): number {
29510         if(!isWasmInitialized) {
29511                 throw new Error("initializeWasm() must be awaited first!");
29512         }
29513         const nativeResponseValue = wasm.TS_Sha256_clone(orig);
29514         return nativeResponseValue;
29515 }
29516         // uint64_t Sha256_hash(const struct LDKSha256 *NONNULL_PTR o);
29517 /* @internal */
29518 export function Sha256_hash(o: number): bigint {
29519         if(!isWasmInitialized) {
29520                 throw new Error("initializeWasm() must be awaited first!");
29521         }
29522         const nativeResponseValue = wasm.TS_Sha256_hash(o);
29523         return nativeResponseValue;
29524 }
29525         // bool Sha256_eq(const struct LDKSha256 *NONNULL_PTR a, const struct LDKSha256 *NONNULL_PTR b);
29526 /* @internal */
29527 export function Sha256_eq(a: number, b: number): boolean {
29528         if(!isWasmInitialized) {
29529                 throw new Error("initializeWasm() must be awaited first!");
29530         }
29531         const nativeResponseValue = wasm.TS_Sha256_eq(a, b);
29532         return nativeResponseValue;
29533 }
29534         // void Description_free(struct LDKDescription this_obj);
29535 /* @internal */
29536 export function Description_free(this_obj: number): void {
29537         if(!isWasmInitialized) {
29538                 throw new Error("initializeWasm() must be awaited first!");
29539         }
29540         const nativeResponseValue = wasm.TS_Description_free(this_obj);
29541         // debug statements here
29542 }
29543         // uintptr_t Description_clone_ptr(LDKDescription *NONNULL_PTR arg);
29544 /* @internal */
29545 export function Description_clone_ptr(arg: number): number {
29546         if(!isWasmInitialized) {
29547                 throw new Error("initializeWasm() must be awaited first!");
29548         }
29549         const nativeResponseValue = wasm.TS_Description_clone_ptr(arg);
29550         return nativeResponseValue;
29551 }
29552         // struct LDKDescription Description_clone(const struct LDKDescription *NONNULL_PTR orig);
29553 /* @internal */
29554 export function Description_clone(orig: number): number {
29555         if(!isWasmInitialized) {
29556                 throw new Error("initializeWasm() must be awaited first!");
29557         }
29558         const nativeResponseValue = wasm.TS_Description_clone(orig);
29559         return nativeResponseValue;
29560 }
29561         // uint64_t Description_hash(const struct LDKDescription *NONNULL_PTR o);
29562 /* @internal */
29563 export function Description_hash(o: number): bigint {
29564         if(!isWasmInitialized) {
29565                 throw new Error("initializeWasm() must be awaited first!");
29566         }
29567         const nativeResponseValue = wasm.TS_Description_hash(o);
29568         return nativeResponseValue;
29569 }
29570         // bool Description_eq(const struct LDKDescription *NONNULL_PTR a, const struct LDKDescription *NONNULL_PTR b);
29571 /* @internal */
29572 export function Description_eq(a: number, b: number): boolean {
29573         if(!isWasmInitialized) {
29574                 throw new Error("initializeWasm() must be awaited first!");
29575         }
29576         const nativeResponseValue = wasm.TS_Description_eq(a, b);
29577         return nativeResponseValue;
29578 }
29579         // void PayeePubKey_free(struct LDKPayeePubKey this_obj);
29580 /* @internal */
29581 export function PayeePubKey_free(this_obj: number): void {
29582         if(!isWasmInitialized) {
29583                 throw new Error("initializeWasm() must be awaited first!");
29584         }
29585         const nativeResponseValue = wasm.TS_PayeePubKey_free(this_obj);
29586         // debug statements here
29587 }
29588         // struct LDKPublicKey PayeePubKey_get_a(const struct LDKPayeePubKey *NONNULL_PTR this_ptr);
29589 /* @internal */
29590 export function PayeePubKey_get_a(this_ptr: number): number {
29591         if(!isWasmInitialized) {
29592                 throw new Error("initializeWasm() must be awaited first!");
29593         }
29594         const nativeResponseValue = wasm.TS_PayeePubKey_get_a(this_ptr);
29595         return nativeResponseValue;
29596 }
29597         // void PayeePubKey_set_a(struct LDKPayeePubKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
29598 /* @internal */
29599 export function PayeePubKey_set_a(this_ptr: number, val: number): void {
29600         if(!isWasmInitialized) {
29601                 throw new Error("initializeWasm() must be awaited first!");
29602         }
29603         const nativeResponseValue = wasm.TS_PayeePubKey_set_a(this_ptr, val);
29604         // debug statements here
29605 }
29606         // MUST_USE_RES struct LDKPayeePubKey PayeePubKey_new(struct LDKPublicKey a_arg);
29607 /* @internal */
29608 export function PayeePubKey_new(a_arg: number): number {
29609         if(!isWasmInitialized) {
29610                 throw new Error("initializeWasm() must be awaited first!");
29611         }
29612         const nativeResponseValue = wasm.TS_PayeePubKey_new(a_arg);
29613         return nativeResponseValue;
29614 }
29615         // uintptr_t PayeePubKey_clone_ptr(LDKPayeePubKey *NONNULL_PTR arg);
29616 /* @internal */
29617 export function PayeePubKey_clone_ptr(arg: number): number {
29618         if(!isWasmInitialized) {
29619                 throw new Error("initializeWasm() must be awaited first!");
29620         }
29621         const nativeResponseValue = wasm.TS_PayeePubKey_clone_ptr(arg);
29622         return nativeResponseValue;
29623 }
29624         // struct LDKPayeePubKey PayeePubKey_clone(const struct LDKPayeePubKey *NONNULL_PTR orig);
29625 /* @internal */
29626 export function PayeePubKey_clone(orig: number): number {
29627         if(!isWasmInitialized) {
29628                 throw new Error("initializeWasm() must be awaited first!");
29629         }
29630         const nativeResponseValue = wasm.TS_PayeePubKey_clone(orig);
29631         return nativeResponseValue;
29632 }
29633         // uint64_t PayeePubKey_hash(const struct LDKPayeePubKey *NONNULL_PTR o);
29634 /* @internal */
29635 export function PayeePubKey_hash(o: number): bigint {
29636         if(!isWasmInitialized) {
29637                 throw new Error("initializeWasm() must be awaited first!");
29638         }
29639         const nativeResponseValue = wasm.TS_PayeePubKey_hash(o);
29640         return nativeResponseValue;
29641 }
29642         // bool PayeePubKey_eq(const struct LDKPayeePubKey *NONNULL_PTR a, const struct LDKPayeePubKey *NONNULL_PTR b);
29643 /* @internal */
29644 export function PayeePubKey_eq(a: number, b: number): boolean {
29645         if(!isWasmInitialized) {
29646                 throw new Error("initializeWasm() must be awaited first!");
29647         }
29648         const nativeResponseValue = wasm.TS_PayeePubKey_eq(a, b);
29649         return nativeResponseValue;
29650 }
29651         // void ExpiryTime_free(struct LDKExpiryTime this_obj);
29652 /* @internal */
29653 export function ExpiryTime_free(this_obj: number): void {
29654         if(!isWasmInitialized) {
29655                 throw new Error("initializeWasm() must be awaited first!");
29656         }
29657         const nativeResponseValue = wasm.TS_ExpiryTime_free(this_obj);
29658         // debug statements here
29659 }
29660         // uintptr_t ExpiryTime_clone_ptr(LDKExpiryTime *NONNULL_PTR arg);
29661 /* @internal */
29662 export function ExpiryTime_clone_ptr(arg: number): number {
29663         if(!isWasmInitialized) {
29664                 throw new Error("initializeWasm() must be awaited first!");
29665         }
29666         const nativeResponseValue = wasm.TS_ExpiryTime_clone_ptr(arg);
29667         return nativeResponseValue;
29668 }
29669         // struct LDKExpiryTime ExpiryTime_clone(const struct LDKExpiryTime *NONNULL_PTR orig);
29670 /* @internal */
29671 export function ExpiryTime_clone(orig: number): number {
29672         if(!isWasmInitialized) {
29673                 throw new Error("initializeWasm() must be awaited first!");
29674         }
29675         const nativeResponseValue = wasm.TS_ExpiryTime_clone(orig);
29676         return nativeResponseValue;
29677 }
29678         // uint64_t ExpiryTime_hash(const struct LDKExpiryTime *NONNULL_PTR o);
29679 /* @internal */
29680 export function ExpiryTime_hash(o: number): bigint {
29681         if(!isWasmInitialized) {
29682                 throw new Error("initializeWasm() must be awaited first!");
29683         }
29684         const nativeResponseValue = wasm.TS_ExpiryTime_hash(o);
29685         return nativeResponseValue;
29686 }
29687         // bool ExpiryTime_eq(const struct LDKExpiryTime *NONNULL_PTR a, const struct LDKExpiryTime *NONNULL_PTR b);
29688 /* @internal */
29689 export function ExpiryTime_eq(a: number, b: number): boolean {
29690         if(!isWasmInitialized) {
29691                 throw new Error("initializeWasm() must be awaited first!");
29692         }
29693         const nativeResponseValue = wasm.TS_ExpiryTime_eq(a, b);
29694         return nativeResponseValue;
29695 }
29696         // void MinFinalCltvExpiry_free(struct LDKMinFinalCltvExpiry this_obj);
29697 /* @internal */
29698 export function MinFinalCltvExpiry_free(this_obj: number): void {
29699         if(!isWasmInitialized) {
29700                 throw new Error("initializeWasm() must be awaited first!");
29701         }
29702         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_free(this_obj);
29703         // debug statements here
29704 }
29705         // uint64_t MinFinalCltvExpiry_get_a(const struct LDKMinFinalCltvExpiry *NONNULL_PTR this_ptr);
29706 /* @internal */
29707 export function MinFinalCltvExpiry_get_a(this_ptr: number): bigint {
29708         if(!isWasmInitialized) {
29709                 throw new Error("initializeWasm() must be awaited first!");
29710         }
29711         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_get_a(this_ptr);
29712         return nativeResponseValue;
29713 }
29714         // void MinFinalCltvExpiry_set_a(struct LDKMinFinalCltvExpiry *NONNULL_PTR this_ptr, uint64_t val);
29715 /* @internal */
29716 export function MinFinalCltvExpiry_set_a(this_ptr: number, val: bigint): void {
29717         if(!isWasmInitialized) {
29718                 throw new Error("initializeWasm() must be awaited first!");
29719         }
29720         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_set_a(this_ptr, val);
29721         // debug statements here
29722 }
29723         // MUST_USE_RES struct LDKMinFinalCltvExpiry MinFinalCltvExpiry_new(uint64_t a_arg);
29724 /* @internal */
29725 export function MinFinalCltvExpiry_new(a_arg: bigint): number {
29726         if(!isWasmInitialized) {
29727                 throw new Error("initializeWasm() must be awaited first!");
29728         }
29729         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_new(a_arg);
29730         return nativeResponseValue;
29731 }
29732         // uintptr_t MinFinalCltvExpiry_clone_ptr(LDKMinFinalCltvExpiry *NONNULL_PTR arg);
29733 /* @internal */
29734 export function MinFinalCltvExpiry_clone_ptr(arg: number): number {
29735         if(!isWasmInitialized) {
29736                 throw new Error("initializeWasm() must be awaited first!");
29737         }
29738         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_clone_ptr(arg);
29739         return nativeResponseValue;
29740 }
29741         // struct LDKMinFinalCltvExpiry MinFinalCltvExpiry_clone(const struct LDKMinFinalCltvExpiry *NONNULL_PTR orig);
29742 /* @internal */
29743 export function MinFinalCltvExpiry_clone(orig: number): number {
29744         if(!isWasmInitialized) {
29745                 throw new Error("initializeWasm() must be awaited first!");
29746         }
29747         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_clone(orig);
29748         return nativeResponseValue;
29749 }
29750         // uint64_t MinFinalCltvExpiry_hash(const struct LDKMinFinalCltvExpiry *NONNULL_PTR o);
29751 /* @internal */
29752 export function MinFinalCltvExpiry_hash(o: number): bigint {
29753         if(!isWasmInitialized) {
29754                 throw new Error("initializeWasm() must be awaited first!");
29755         }
29756         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_hash(o);
29757         return nativeResponseValue;
29758 }
29759         // bool MinFinalCltvExpiry_eq(const struct LDKMinFinalCltvExpiry *NONNULL_PTR a, const struct LDKMinFinalCltvExpiry *NONNULL_PTR b);
29760 /* @internal */
29761 export function MinFinalCltvExpiry_eq(a: number, b: number): boolean {
29762         if(!isWasmInitialized) {
29763                 throw new Error("initializeWasm() must be awaited first!");
29764         }
29765         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_eq(a, b);
29766         return nativeResponseValue;
29767 }
29768         // void Fallback_free(struct LDKFallback this_ptr);
29769 /* @internal */
29770 export function Fallback_free(this_ptr: number): void {
29771         if(!isWasmInitialized) {
29772                 throw new Error("initializeWasm() must be awaited first!");
29773         }
29774         const nativeResponseValue = wasm.TS_Fallback_free(this_ptr);
29775         // debug statements here
29776 }
29777         // uintptr_t Fallback_clone_ptr(LDKFallback *NONNULL_PTR arg);
29778 /* @internal */
29779 export function Fallback_clone_ptr(arg: number): number {
29780         if(!isWasmInitialized) {
29781                 throw new Error("initializeWasm() must be awaited first!");
29782         }
29783         const nativeResponseValue = wasm.TS_Fallback_clone_ptr(arg);
29784         return nativeResponseValue;
29785 }
29786         // struct LDKFallback Fallback_clone(const struct LDKFallback *NONNULL_PTR orig);
29787 /* @internal */
29788 export function Fallback_clone(orig: number): number {
29789         if(!isWasmInitialized) {
29790                 throw new Error("initializeWasm() must be awaited first!");
29791         }
29792         const nativeResponseValue = wasm.TS_Fallback_clone(orig);
29793         return nativeResponseValue;
29794 }
29795         // struct LDKFallback Fallback_seg_wit_program(struct LDKu5 version, struct LDKCVec_u8Z program);
29796 /* @internal */
29797 export function Fallback_seg_wit_program(version: number, program: number): number {
29798         if(!isWasmInitialized) {
29799                 throw new Error("initializeWasm() must be awaited first!");
29800         }
29801         const nativeResponseValue = wasm.TS_Fallback_seg_wit_program(version, program);
29802         return nativeResponseValue;
29803 }
29804         // struct LDKFallback Fallback_pub_key_hash(struct LDKTwentyBytes a);
29805 /* @internal */
29806 export function Fallback_pub_key_hash(a: number): number {
29807         if(!isWasmInitialized) {
29808                 throw new Error("initializeWasm() must be awaited first!");
29809         }
29810         const nativeResponseValue = wasm.TS_Fallback_pub_key_hash(a);
29811         return nativeResponseValue;
29812 }
29813         // struct LDKFallback Fallback_script_hash(struct LDKTwentyBytes a);
29814 /* @internal */
29815 export function Fallback_script_hash(a: number): number {
29816         if(!isWasmInitialized) {
29817                 throw new Error("initializeWasm() must be awaited first!");
29818         }
29819         const nativeResponseValue = wasm.TS_Fallback_script_hash(a);
29820         return nativeResponseValue;
29821 }
29822         // uint64_t Fallback_hash(const struct LDKFallback *NONNULL_PTR o);
29823 /* @internal */
29824 export function Fallback_hash(o: number): bigint {
29825         if(!isWasmInitialized) {
29826                 throw new Error("initializeWasm() must be awaited first!");
29827         }
29828         const nativeResponseValue = wasm.TS_Fallback_hash(o);
29829         return nativeResponseValue;
29830 }
29831         // bool Fallback_eq(const struct LDKFallback *NONNULL_PTR a, const struct LDKFallback *NONNULL_PTR b);
29832 /* @internal */
29833 export function Fallback_eq(a: number, b: number): boolean {
29834         if(!isWasmInitialized) {
29835                 throw new Error("initializeWasm() must be awaited first!");
29836         }
29837         const nativeResponseValue = wasm.TS_Fallback_eq(a, b);
29838         return nativeResponseValue;
29839 }
29840         // void InvoiceSignature_free(struct LDKInvoiceSignature this_obj);
29841 /* @internal */
29842 export function InvoiceSignature_free(this_obj: number): void {
29843         if(!isWasmInitialized) {
29844                 throw new Error("initializeWasm() must be awaited first!");
29845         }
29846         const nativeResponseValue = wasm.TS_InvoiceSignature_free(this_obj);
29847         // debug statements here
29848 }
29849         // uintptr_t InvoiceSignature_clone_ptr(LDKInvoiceSignature *NONNULL_PTR arg);
29850 /* @internal */
29851 export function InvoiceSignature_clone_ptr(arg: number): number {
29852         if(!isWasmInitialized) {
29853                 throw new Error("initializeWasm() must be awaited first!");
29854         }
29855         const nativeResponseValue = wasm.TS_InvoiceSignature_clone_ptr(arg);
29856         return nativeResponseValue;
29857 }
29858         // struct LDKInvoiceSignature InvoiceSignature_clone(const struct LDKInvoiceSignature *NONNULL_PTR orig);
29859 /* @internal */
29860 export function InvoiceSignature_clone(orig: number): number {
29861         if(!isWasmInitialized) {
29862                 throw new Error("initializeWasm() must be awaited first!");
29863         }
29864         const nativeResponseValue = wasm.TS_InvoiceSignature_clone(orig);
29865         return nativeResponseValue;
29866 }
29867         // bool InvoiceSignature_eq(const struct LDKInvoiceSignature *NONNULL_PTR a, const struct LDKInvoiceSignature *NONNULL_PTR b);
29868 /* @internal */
29869 export function InvoiceSignature_eq(a: number, b: number): boolean {
29870         if(!isWasmInitialized) {
29871                 throw new Error("initializeWasm() must be awaited first!");
29872         }
29873         const nativeResponseValue = wasm.TS_InvoiceSignature_eq(a, b);
29874         return nativeResponseValue;
29875 }
29876         // void PrivateRoute_free(struct LDKPrivateRoute this_obj);
29877 /* @internal */
29878 export function PrivateRoute_free(this_obj: number): void {
29879         if(!isWasmInitialized) {
29880                 throw new Error("initializeWasm() must be awaited first!");
29881         }
29882         const nativeResponseValue = wasm.TS_PrivateRoute_free(this_obj);
29883         // debug statements here
29884 }
29885         // uintptr_t PrivateRoute_clone_ptr(LDKPrivateRoute *NONNULL_PTR arg);
29886 /* @internal */
29887 export function PrivateRoute_clone_ptr(arg: number): number {
29888         if(!isWasmInitialized) {
29889                 throw new Error("initializeWasm() must be awaited first!");
29890         }
29891         const nativeResponseValue = wasm.TS_PrivateRoute_clone_ptr(arg);
29892         return nativeResponseValue;
29893 }
29894         // struct LDKPrivateRoute PrivateRoute_clone(const struct LDKPrivateRoute *NONNULL_PTR orig);
29895 /* @internal */
29896 export function PrivateRoute_clone(orig: number): number {
29897         if(!isWasmInitialized) {
29898                 throw new Error("initializeWasm() must be awaited first!");
29899         }
29900         const nativeResponseValue = wasm.TS_PrivateRoute_clone(orig);
29901         return nativeResponseValue;
29902 }
29903         // uint64_t PrivateRoute_hash(const struct LDKPrivateRoute *NONNULL_PTR o);
29904 /* @internal */
29905 export function PrivateRoute_hash(o: number): bigint {
29906         if(!isWasmInitialized) {
29907                 throw new Error("initializeWasm() must be awaited first!");
29908         }
29909         const nativeResponseValue = wasm.TS_PrivateRoute_hash(o);
29910         return nativeResponseValue;
29911 }
29912         // bool PrivateRoute_eq(const struct LDKPrivateRoute *NONNULL_PTR a, const struct LDKPrivateRoute *NONNULL_PTR b);
29913 /* @internal */
29914 export function PrivateRoute_eq(a: number, b: number): boolean {
29915         if(!isWasmInitialized) {
29916                 throw new Error("initializeWasm() must be awaited first!");
29917         }
29918         const nativeResponseValue = wasm.TS_PrivateRoute_eq(a, b);
29919         return nativeResponseValue;
29920 }
29921         // MUST_USE_RES struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ SignedRawInvoice_into_parts(struct LDKSignedRawInvoice this_arg);
29922 /* @internal */
29923 export function SignedRawInvoice_into_parts(this_arg: number): number {
29924         if(!isWasmInitialized) {
29925                 throw new Error("initializeWasm() must be awaited first!");
29926         }
29927         const nativeResponseValue = wasm.TS_SignedRawInvoice_into_parts(this_arg);
29928         return nativeResponseValue;
29929 }
29930         // MUST_USE_RES struct LDKRawInvoice SignedRawInvoice_raw_invoice(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
29931 /* @internal */
29932 export function SignedRawInvoice_raw_invoice(this_arg: number): number {
29933         if(!isWasmInitialized) {
29934                 throw new Error("initializeWasm() must be awaited first!");
29935         }
29936         const nativeResponseValue = wasm.TS_SignedRawInvoice_raw_invoice(this_arg);
29937         return nativeResponseValue;
29938 }
29939         // MUST_USE_RES const uint8_t (*SignedRawInvoice_hash(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg))[32];
29940 /* @internal */
29941 export function SignedRawInvoice_hash(this_arg: number): number {
29942         if(!isWasmInitialized) {
29943                 throw new Error("initializeWasm() must be awaited first!");
29944         }
29945         const nativeResponseValue = wasm.TS_SignedRawInvoice_hash(this_arg);
29946         return nativeResponseValue;
29947 }
29948         // MUST_USE_RES struct LDKInvoiceSignature SignedRawInvoice_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
29949 /* @internal */
29950 export function SignedRawInvoice_signature(this_arg: number): number {
29951         if(!isWasmInitialized) {
29952                 throw new Error("initializeWasm() must be awaited first!");
29953         }
29954         const nativeResponseValue = wasm.TS_SignedRawInvoice_signature(this_arg);
29955         return nativeResponseValue;
29956 }
29957         // MUST_USE_RES struct LDKCResult_PayeePubKeyErrorZ SignedRawInvoice_recover_payee_pub_key(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
29958 /* @internal */
29959 export function SignedRawInvoice_recover_payee_pub_key(this_arg: number): number {
29960         if(!isWasmInitialized) {
29961                 throw new Error("initializeWasm() must be awaited first!");
29962         }
29963         const nativeResponseValue = wasm.TS_SignedRawInvoice_recover_payee_pub_key(this_arg);
29964         return nativeResponseValue;
29965 }
29966         // MUST_USE_RES bool SignedRawInvoice_check_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
29967 /* @internal */
29968 export function SignedRawInvoice_check_signature(this_arg: number): boolean {
29969         if(!isWasmInitialized) {
29970                 throw new Error("initializeWasm() must be awaited first!");
29971         }
29972         const nativeResponseValue = wasm.TS_SignedRawInvoice_check_signature(this_arg);
29973         return nativeResponseValue;
29974 }
29975         // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
29976 /* @internal */
29977 export function RawInvoice_hash(this_arg: number): number {
29978         if(!isWasmInitialized) {
29979                 throw new Error("initializeWasm() must be awaited first!");
29980         }
29981         const nativeResponseValue = wasm.TS_RawInvoice_hash(this_arg);
29982         return nativeResponseValue;
29983 }
29984         // MUST_USE_RES struct LDKSha256 RawInvoice_payment_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
29985 /* @internal */
29986 export function RawInvoice_payment_hash(this_arg: number): number {
29987         if(!isWasmInitialized) {
29988                 throw new Error("initializeWasm() must be awaited first!");
29989         }
29990         const nativeResponseValue = wasm.TS_RawInvoice_payment_hash(this_arg);
29991         return nativeResponseValue;
29992 }
29993         // MUST_USE_RES struct LDKDescription RawInvoice_description(const struct LDKRawInvoice *NONNULL_PTR this_arg);
29994 /* @internal */
29995 export function RawInvoice_description(this_arg: number): number {
29996         if(!isWasmInitialized) {
29997                 throw new Error("initializeWasm() must be awaited first!");
29998         }
29999         const nativeResponseValue = wasm.TS_RawInvoice_description(this_arg);
30000         return nativeResponseValue;
30001 }
30002         // MUST_USE_RES struct LDKPayeePubKey RawInvoice_payee_pub_key(const struct LDKRawInvoice *NONNULL_PTR this_arg);
30003 /* @internal */
30004 export function RawInvoice_payee_pub_key(this_arg: number): number {
30005         if(!isWasmInitialized) {
30006                 throw new Error("initializeWasm() must be awaited first!");
30007         }
30008         const nativeResponseValue = wasm.TS_RawInvoice_payee_pub_key(this_arg);
30009         return nativeResponseValue;
30010 }
30011         // MUST_USE_RES struct LDKSha256 RawInvoice_description_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
30012 /* @internal */
30013 export function RawInvoice_description_hash(this_arg: number): number {
30014         if(!isWasmInitialized) {
30015                 throw new Error("initializeWasm() must be awaited first!");
30016         }
30017         const nativeResponseValue = wasm.TS_RawInvoice_description_hash(this_arg);
30018         return nativeResponseValue;
30019 }
30020         // MUST_USE_RES struct LDKExpiryTime RawInvoice_expiry_time(const struct LDKRawInvoice *NONNULL_PTR this_arg);
30021 /* @internal */
30022 export function RawInvoice_expiry_time(this_arg: number): number {
30023         if(!isWasmInitialized) {
30024                 throw new Error("initializeWasm() must be awaited first!");
30025         }
30026         const nativeResponseValue = wasm.TS_RawInvoice_expiry_time(this_arg);
30027         return nativeResponseValue;
30028 }
30029         // MUST_USE_RES struct LDKMinFinalCltvExpiry RawInvoice_min_final_cltv_expiry(const struct LDKRawInvoice *NONNULL_PTR this_arg);
30030 /* @internal */
30031 export function RawInvoice_min_final_cltv_expiry(this_arg: number): number {
30032         if(!isWasmInitialized) {
30033                 throw new Error("initializeWasm() must be awaited first!");
30034         }
30035         const nativeResponseValue = wasm.TS_RawInvoice_min_final_cltv_expiry(this_arg);
30036         return nativeResponseValue;
30037 }
30038         // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_payment_secret(const struct LDKRawInvoice *NONNULL_PTR this_arg);
30039 /* @internal */
30040 export function RawInvoice_payment_secret(this_arg: number): number {
30041         if(!isWasmInitialized) {
30042                 throw new Error("initializeWasm() must be awaited first!");
30043         }
30044         const nativeResponseValue = wasm.TS_RawInvoice_payment_secret(this_arg);
30045         return nativeResponseValue;
30046 }
30047         // MUST_USE_RES struct LDKInvoiceFeatures RawInvoice_features(const struct LDKRawInvoice *NONNULL_PTR this_arg);
30048 /* @internal */
30049 export function RawInvoice_features(this_arg: number): number {
30050         if(!isWasmInitialized) {
30051                 throw new Error("initializeWasm() must be awaited first!");
30052         }
30053         const nativeResponseValue = wasm.TS_RawInvoice_features(this_arg);
30054         return nativeResponseValue;
30055 }
30056         // MUST_USE_RES struct LDKCVec_PrivateRouteZ RawInvoice_private_routes(const struct LDKRawInvoice *NONNULL_PTR this_arg);
30057 /* @internal */
30058 export function RawInvoice_private_routes(this_arg: number): number {
30059         if(!isWasmInitialized) {
30060                 throw new Error("initializeWasm() must be awaited first!");
30061         }
30062         const nativeResponseValue = wasm.TS_RawInvoice_private_routes(this_arg);
30063         return nativeResponseValue;
30064 }
30065         // MUST_USE_RES struct LDKCOption_u64Z RawInvoice_amount_pico_btc(const struct LDKRawInvoice *NONNULL_PTR this_arg);
30066 /* @internal */
30067 export function RawInvoice_amount_pico_btc(this_arg: number): number {
30068         if(!isWasmInitialized) {
30069                 throw new Error("initializeWasm() must be awaited first!");
30070         }
30071         const nativeResponseValue = wasm.TS_RawInvoice_amount_pico_btc(this_arg);
30072         return nativeResponseValue;
30073 }
30074         // MUST_USE_RES enum LDKCurrency RawInvoice_currency(const struct LDKRawInvoice *NONNULL_PTR this_arg);
30075 /* @internal */
30076 export function RawInvoice_currency(this_arg: number): Currency {
30077         if(!isWasmInitialized) {
30078                 throw new Error("initializeWasm() must be awaited first!");
30079         }
30080         const nativeResponseValue = wasm.TS_RawInvoice_currency(this_arg);
30081         return nativeResponseValue;
30082 }
30083         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_unix_timestamp(uint64_t unix_seconds);
30084 /* @internal */
30085 export function PositiveTimestamp_from_unix_timestamp(unix_seconds: bigint): number {
30086         if(!isWasmInitialized) {
30087                 throw new Error("initializeWasm() must be awaited first!");
30088         }
30089         const nativeResponseValue = wasm.TS_PositiveTimestamp_from_unix_timestamp(unix_seconds);
30090         return nativeResponseValue;
30091 }
30092         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_duration_since_epoch(uint64_t duration);
30093 /* @internal */
30094 export function PositiveTimestamp_from_duration_since_epoch(duration: bigint): number {
30095         if(!isWasmInitialized) {
30096                 throw new Error("initializeWasm() must be awaited first!");
30097         }
30098         const nativeResponseValue = wasm.TS_PositiveTimestamp_from_duration_since_epoch(duration);
30099         return nativeResponseValue;
30100 }
30101         // MUST_USE_RES uint64_t PositiveTimestamp_as_unix_timestamp(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
30102 /* @internal */
30103 export function PositiveTimestamp_as_unix_timestamp(this_arg: number): bigint {
30104         if(!isWasmInitialized) {
30105                 throw new Error("initializeWasm() must be awaited first!");
30106         }
30107         const nativeResponseValue = wasm.TS_PositiveTimestamp_as_unix_timestamp(this_arg);
30108         return nativeResponseValue;
30109 }
30110         // MUST_USE_RES uint64_t PositiveTimestamp_as_duration_since_epoch(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
30111 /* @internal */
30112 export function PositiveTimestamp_as_duration_since_epoch(this_arg: number): bigint {
30113         if(!isWasmInitialized) {
30114                 throw new Error("initializeWasm() must be awaited first!");
30115         }
30116         const nativeResponseValue = wasm.TS_PositiveTimestamp_as_duration_since_epoch(this_arg);
30117         return nativeResponseValue;
30118 }
30119         // MUST_USE_RES struct LDKSignedRawInvoice Invoice_into_signed_raw(struct LDKInvoice this_arg);
30120 /* @internal */
30121 export function Invoice_into_signed_raw(this_arg: number): number {
30122         if(!isWasmInitialized) {
30123                 throw new Error("initializeWasm() must be awaited first!");
30124         }
30125         const nativeResponseValue = wasm.TS_Invoice_into_signed_raw(this_arg);
30126         return nativeResponseValue;
30127 }
30128         // MUST_USE_RES struct LDKCResult_NoneSemanticErrorZ Invoice_check_signature(const struct LDKInvoice *NONNULL_PTR this_arg);
30129 /* @internal */
30130 export function Invoice_check_signature(this_arg: number): number {
30131         if(!isWasmInitialized) {
30132                 throw new Error("initializeWasm() must be awaited first!");
30133         }
30134         const nativeResponseValue = wasm.TS_Invoice_check_signature(this_arg);
30135         return nativeResponseValue;
30136 }
30137         // MUST_USE_RES struct LDKCResult_InvoiceSemanticErrorZ Invoice_from_signed(struct LDKSignedRawInvoice signed_invoice);
30138 /* @internal */
30139 export function Invoice_from_signed(signed_invoice: number): number {
30140         if(!isWasmInitialized) {
30141                 throw new Error("initializeWasm() must be awaited first!");
30142         }
30143         const nativeResponseValue = wasm.TS_Invoice_from_signed(signed_invoice);
30144         return nativeResponseValue;
30145 }
30146         // MUST_USE_RES uint64_t Invoice_duration_since_epoch(const struct LDKInvoice *NONNULL_PTR this_arg);
30147 /* @internal */
30148 export function Invoice_duration_since_epoch(this_arg: number): bigint {
30149         if(!isWasmInitialized) {
30150                 throw new Error("initializeWasm() must be awaited first!");
30151         }
30152         const nativeResponseValue = wasm.TS_Invoice_duration_since_epoch(this_arg);
30153         return nativeResponseValue;
30154 }
30155         // MUST_USE_RES const uint8_t (*Invoice_payment_hash(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
30156 /* @internal */
30157 export function Invoice_payment_hash(this_arg: number): number {
30158         if(!isWasmInitialized) {
30159                 throw new Error("initializeWasm() must be awaited first!");
30160         }
30161         const nativeResponseValue = wasm.TS_Invoice_payment_hash(this_arg);
30162         return nativeResponseValue;
30163 }
30164         // MUST_USE_RES struct LDKPublicKey Invoice_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
30165 /* @internal */
30166 export function Invoice_payee_pub_key(this_arg: number): number {
30167         if(!isWasmInitialized) {
30168                 throw new Error("initializeWasm() must be awaited first!");
30169         }
30170         const nativeResponseValue = wasm.TS_Invoice_payee_pub_key(this_arg);
30171         return nativeResponseValue;
30172 }
30173         // MUST_USE_RES const uint8_t (*Invoice_payment_secret(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
30174 /* @internal */
30175 export function Invoice_payment_secret(this_arg: number): number {
30176         if(!isWasmInitialized) {
30177                 throw new Error("initializeWasm() must be awaited first!");
30178         }
30179         const nativeResponseValue = wasm.TS_Invoice_payment_secret(this_arg);
30180         return nativeResponseValue;
30181 }
30182         // MUST_USE_RES struct LDKInvoiceFeatures Invoice_features(const struct LDKInvoice *NONNULL_PTR this_arg);
30183 /* @internal */
30184 export function Invoice_features(this_arg: number): number {
30185         if(!isWasmInitialized) {
30186                 throw new Error("initializeWasm() must be awaited first!");
30187         }
30188         const nativeResponseValue = wasm.TS_Invoice_features(this_arg);
30189         return nativeResponseValue;
30190 }
30191         // MUST_USE_RES struct LDKPublicKey Invoice_recover_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
30192 /* @internal */
30193 export function Invoice_recover_payee_pub_key(this_arg: number): number {
30194         if(!isWasmInitialized) {
30195                 throw new Error("initializeWasm() must be awaited first!");
30196         }
30197         const nativeResponseValue = wasm.TS_Invoice_recover_payee_pub_key(this_arg);
30198         return nativeResponseValue;
30199 }
30200         // MUST_USE_RES uint64_t Invoice_expiry_time(const struct LDKInvoice *NONNULL_PTR this_arg);
30201 /* @internal */
30202 export function Invoice_expiry_time(this_arg: number): bigint {
30203         if(!isWasmInitialized) {
30204                 throw new Error("initializeWasm() must be awaited first!");
30205         }
30206         const nativeResponseValue = wasm.TS_Invoice_expiry_time(this_arg);
30207         return nativeResponseValue;
30208 }
30209         // MUST_USE_RES bool Invoice_would_expire(const struct LDKInvoice *NONNULL_PTR this_arg, uint64_t at_time);
30210 /* @internal */
30211 export function Invoice_would_expire(this_arg: number, at_time: bigint): boolean {
30212         if(!isWasmInitialized) {
30213                 throw new Error("initializeWasm() must be awaited first!");
30214         }
30215         const nativeResponseValue = wasm.TS_Invoice_would_expire(this_arg, at_time);
30216         return nativeResponseValue;
30217 }
30218         // MUST_USE_RES uint64_t Invoice_min_final_cltv_expiry(const struct LDKInvoice *NONNULL_PTR this_arg);
30219 /* @internal */
30220 export function Invoice_min_final_cltv_expiry(this_arg: number): bigint {
30221         if(!isWasmInitialized) {
30222                 throw new Error("initializeWasm() must be awaited first!");
30223         }
30224         const nativeResponseValue = wasm.TS_Invoice_min_final_cltv_expiry(this_arg);
30225         return nativeResponseValue;
30226 }
30227         // MUST_USE_RES struct LDKCVec_PrivateRouteZ Invoice_private_routes(const struct LDKInvoice *NONNULL_PTR this_arg);
30228 /* @internal */
30229 export function Invoice_private_routes(this_arg: number): number {
30230         if(!isWasmInitialized) {
30231                 throw new Error("initializeWasm() must be awaited first!");
30232         }
30233         const nativeResponseValue = wasm.TS_Invoice_private_routes(this_arg);
30234         return nativeResponseValue;
30235 }
30236         // MUST_USE_RES struct LDKCVec_RouteHintZ Invoice_route_hints(const struct LDKInvoice *NONNULL_PTR this_arg);
30237 /* @internal */
30238 export function Invoice_route_hints(this_arg: number): number {
30239         if(!isWasmInitialized) {
30240                 throw new Error("initializeWasm() must be awaited first!");
30241         }
30242         const nativeResponseValue = wasm.TS_Invoice_route_hints(this_arg);
30243         return nativeResponseValue;
30244 }
30245         // MUST_USE_RES enum LDKCurrency Invoice_currency(const struct LDKInvoice *NONNULL_PTR this_arg);
30246 /* @internal */
30247 export function Invoice_currency(this_arg: number): Currency {
30248         if(!isWasmInitialized) {
30249                 throw new Error("initializeWasm() must be awaited first!");
30250         }
30251         const nativeResponseValue = wasm.TS_Invoice_currency(this_arg);
30252         return nativeResponseValue;
30253 }
30254         // MUST_USE_RES struct LDKCOption_u64Z Invoice_amount_milli_satoshis(const struct LDKInvoice *NONNULL_PTR this_arg);
30255 /* @internal */
30256 export function Invoice_amount_milli_satoshis(this_arg: number): number {
30257         if(!isWasmInitialized) {
30258                 throw new Error("initializeWasm() must be awaited first!");
30259         }
30260         const nativeResponseValue = wasm.TS_Invoice_amount_milli_satoshis(this_arg);
30261         return nativeResponseValue;
30262 }
30263         // MUST_USE_RES struct LDKCResult_DescriptionCreationErrorZ Description_new(struct LDKStr description);
30264 /* @internal */
30265 export function Description_new(description: number): number {
30266         if(!isWasmInitialized) {
30267                 throw new Error("initializeWasm() must be awaited first!");
30268         }
30269         const nativeResponseValue = wasm.TS_Description_new(description);
30270         return nativeResponseValue;
30271 }
30272         // MUST_USE_RES struct LDKStr Description_into_inner(struct LDKDescription this_arg);
30273 /* @internal */
30274 export function Description_into_inner(this_arg: number): number {
30275         if(!isWasmInitialized) {
30276                 throw new Error("initializeWasm() must be awaited first!");
30277         }
30278         const nativeResponseValue = wasm.TS_Description_into_inner(this_arg);
30279         return nativeResponseValue;
30280 }
30281         // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_seconds(uint64_t seconds);
30282 /* @internal */
30283 export function ExpiryTime_from_seconds(seconds: bigint): number {
30284         if(!isWasmInitialized) {
30285                 throw new Error("initializeWasm() must be awaited first!");
30286         }
30287         const nativeResponseValue = wasm.TS_ExpiryTime_from_seconds(seconds);
30288         return nativeResponseValue;
30289 }
30290         // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_duration(uint64_t duration);
30291 /* @internal */
30292 export function ExpiryTime_from_duration(duration: bigint): number {
30293         if(!isWasmInitialized) {
30294                 throw new Error("initializeWasm() must be awaited first!");
30295         }
30296         const nativeResponseValue = wasm.TS_ExpiryTime_from_duration(duration);
30297         return nativeResponseValue;
30298 }
30299         // MUST_USE_RES uint64_t ExpiryTime_as_seconds(const struct LDKExpiryTime *NONNULL_PTR this_arg);
30300 /* @internal */
30301 export function ExpiryTime_as_seconds(this_arg: number): bigint {
30302         if(!isWasmInitialized) {
30303                 throw new Error("initializeWasm() must be awaited first!");
30304         }
30305         const nativeResponseValue = wasm.TS_ExpiryTime_as_seconds(this_arg);
30306         return nativeResponseValue;
30307 }
30308         // MUST_USE_RES uint64_t ExpiryTime_as_duration(const struct LDKExpiryTime *NONNULL_PTR this_arg);
30309 /* @internal */
30310 export function ExpiryTime_as_duration(this_arg: number): bigint {
30311         if(!isWasmInitialized) {
30312                 throw new Error("initializeWasm() must be awaited first!");
30313         }
30314         const nativeResponseValue = wasm.TS_ExpiryTime_as_duration(this_arg);
30315         return nativeResponseValue;
30316 }
30317         // MUST_USE_RES struct LDKCResult_PrivateRouteCreationErrorZ PrivateRoute_new(struct LDKRouteHint hops);
30318 /* @internal */
30319 export function PrivateRoute_new(hops: number): number {
30320         if(!isWasmInitialized) {
30321                 throw new Error("initializeWasm() must be awaited first!");
30322         }
30323         const nativeResponseValue = wasm.TS_PrivateRoute_new(hops);
30324         return nativeResponseValue;
30325 }
30326         // MUST_USE_RES struct LDKRouteHint PrivateRoute_into_inner(struct LDKPrivateRoute this_arg);
30327 /* @internal */
30328 export function PrivateRoute_into_inner(this_arg: number): number {
30329         if(!isWasmInitialized) {
30330                 throw new Error("initializeWasm() must be awaited first!");
30331         }
30332         const nativeResponseValue = wasm.TS_PrivateRoute_into_inner(this_arg);
30333         return nativeResponseValue;
30334 }
30335         // enum LDKCreationError CreationError_clone(const enum LDKCreationError *NONNULL_PTR orig);
30336 /* @internal */
30337 export function CreationError_clone(orig: number): CreationError {
30338         if(!isWasmInitialized) {
30339                 throw new Error("initializeWasm() must be awaited first!");
30340         }
30341         const nativeResponseValue = wasm.TS_CreationError_clone(orig);
30342         return nativeResponseValue;
30343 }
30344         // enum LDKCreationError CreationError_description_too_long(void);
30345 /* @internal */
30346 export function CreationError_description_too_long(): CreationError {
30347         if(!isWasmInitialized) {
30348                 throw new Error("initializeWasm() must be awaited first!");
30349         }
30350         const nativeResponseValue = wasm.TS_CreationError_description_too_long();
30351         return nativeResponseValue;
30352 }
30353         // enum LDKCreationError CreationError_route_too_long(void);
30354 /* @internal */
30355 export function CreationError_route_too_long(): CreationError {
30356         if(!isWasmInitialized) {
30357                 throw new Error("initializeWasm() must be awaited first!");
30358         }
30359         const nativeResponseValue = wasm.TS_CreationError_route_too_long();
30360         return nativeResponseValue;
30361 }
30362         // enum LDKCreationError CreationError_timestamp_out_of_bounds(void);
30363 /* @internal */
30364 export function CreationError_timestamp_out_of_bounds(): CreationError {
30365         if(!isWasmInitialized) {
30366                 throw new Error("initializeWasm() must be awaited first!");
30367         }
30368         const nativeResponseValue = wasm.TS_CreationError_timestamp_out_of_bounds();
30369         return nativeResponseValue;
30370 }
30371         // enum LDKCreationError CreationError_invalid_amount(void);
30372 /* @internal */
30373 export function CreationError_invalid_amount(): CreationError {
30374         if(!isWasmInitialized) {
30375                 throw new Error("initializeWasm() must be awaited first!");
30376         }
30377         const nativeResponseValue = wasm.TS_CreationError_invalid_amount();
30378         return nativeResponseValue;
30379 }
30380         // enum LDKCreationError CreationError_missing_route_hints(void);
30381 /* @internal */
30382 export function CreationError_missing_route_hints(): CreationError {
30383         if(!isWasmInitialized) {
30384                 throw new Error("initializeWasm() must be awaited first!");
30385         }
30386         const nativeResponseValue = wasm.TS_CreationError_missing_route_hints();
30387         return nativeResponseValue;
30388 }
30389         // bool CreationError_eq(const enum LDKCreationError *NONNULL_PTR a, const enum LDKCreationError *NONNULL_PTR b);
30390 /* @internal */
30391 export function CreationError_eq(a: number, b: number): boolean {
30392         if(!isWasmInitialized) {
30393                 throw new Error("initializeWasm() must be awaited first!");
30394         }
30395         const nativeResponseValue = wasm.TS_CreationError_eq(a, b);
30396         return nativeResponseValue;
30397 }
30398         // struct LDKStr CreationError_to_str(const enum LDKCreationError *NONNULL_PTR o);
30399 /* @internal */
30400 export function CreationError_to_str(o: number): number {
30401         if(!isWasmInitialized) {
30402                 throw new Error("initializeWasm() must be awaited first!");
30403         }
30404         const nativeResponseValue = wasm.TS_CreationError_to_str(o);
30405         return nativeResponseValue;
30406 }
30407         // enum LDKSemanticError SemanticError_clone(const enum LDKSemanticError *NONNULL_PTR orig);
30408 /* @internal */
30409 export function SemanticError_clone(orig: number): SemanticError {
30410         if(!isWasmInitialized) {
30411                 throw new Error("initializeWasm() must be awaited first!");
30412         }
30413         const nativeResponseValue = wasm.TS_SemanticError_clone(orig);
30414         return nativeResponseValue;
30415 }
30416         // enum LDKSemanticError SemanticError_no_payment_hash(void);
30417 /* @internal */
30418 export function SemanticError_no_payment_hash(): SemanticError {
30419         if(!isWasmInitialized) {
30420                 throw new Error("initializeWasm() must be awaited first!");
30421         }
30422         const nativeResponseValue = wasm.TS_SemanticError_no_payment_hash();
30423         return nativeResponseValue;
30424 }
30425         // enum LDKSemanticError SemanticError_multiple_payment_hashes(void);
30426 /* @internal */
30427 export function SemanticError_multiple_payment_hashes(): SemanticError {
30428         if(!isWasmInitialized) {
30429                 throw new Error("initializeWasm() must be awaited first!");
30430         }
30431         const nativeResponseValue = wasm.TS_SemanticError_multiple_payment_hashes();
30432         return nativeResponseValue;
30433 }
30434         // enum LDKSemanticError SemanticError_no_description(void);
30435 /* @internal */
30436 export function SemanticError_no_description(): SemanticError {
30437         if(!isWasmInitialized) {
30438                 throw new Error("initializeWasm() must be awaited first!");
30439         }
30440         const nativeResponseValue = wasm.TS_SemanticError_no_description();
30441         return nativeResponseValue;
30442 }
30443         // enum LDKSemanticError SemanticError_multiple_descriptions(void);
30444 /* @internal */
30445 export function SemanticError_multiple_descriptions(): SemanticError {
30446         if(!isWasmInitialized) {
30447                 throw new Error("initializeWasm() must be awaited first!");
30448         }
30449         const nativeResponseValue = wasm.TS_SemanticError_multiple_descriptions();
30450         return nativeResponseValue;
30451 }
30452         // enum LDKSemanticError SemanticError_no_payment_secret(void);
30453 /* @internal */
30454 export function SemanticError_no_payment_secret(): SemanticError {
30455         if(!isWasmInitialized) {
30456                 throw new Error("initializeWasm() must be awaited first!");
30457         }
30458         const nativeResponseValue = wasm.TS_SemanticError_no_payment_secret();
30459         return nativeResponseValue;
30460 }
30461         // enum LDKSemanticError SemanticError_multiple_payment_secrets(void);
30462 /* @internal */
30463 export function SemanticError_multiple_payment_secrets(): SemanticError {
30464         if(!isWasmInitialized) {
30465                 throw new Error("initializeWasm() must be awaited first!");
30466         }
30467         const nativeResponseValue = wasm.TS_SemanticError_multiple_payment_secrets();
30468         return nativeResponseValue;
30469 }
30470         // enum LDKSemanticError SemanticError_invalid_features(void);
30471 /* @internal */
30472 export function SemanticError_invalid_features(): SemanticError {
30473         if(!isWasmInitialized) {
30474                 throw new Error("initializeWasm() must be awaited first!");
30475         }
30476         const nativeResponseValue = wasm.TS_SemanticError_invalid_features();
30477         return nativeResponseValue;
30478 }
30479         // enum LDKSemanticError SemanticError_invalid_recovery_id(void);
30480 /* @internal */
30481 export function SemanticError_invalid_recovery_id(): SemanticError {
30482         if(!isWasmInitialized) {
30483                 throw new Error("initializeWasm() must be awaited first!");
30484         }
30485         const nativeResponseValue = wasm.TS_SemanticError_invalid_recovery_id();
30486         return nativeResponseValue;
30487 }
30488         // enum LDKSemanticError SemanticError_invalid_signature(void);
30489 /* @internal */
30490 export function SemanticError_invalid_signature(): SemanticError {
30491         if(!isWasmInitialized) {
30492                 throw new Error("initializeWasm() must be awaited first!");
30493         }
30494         const nativeResponseValue = wasm.TS_SemanticError_invalid_signature();
30495         return nativeResponseValue;
30496 }
30497         // enum LDKSemanticError SemanticError_imprecise_amount(void);
30498 /* @internal */
30499 export function SemanticError_imprecise_amount(): SemanticError {
30500         if(!isWasmInitialized) {
30501                 throw new Error("initializeWasm() must be awaited first!");
30502         }
30503         const nativeResponseValue = wasm.TS_SemanticError_imprecise_amount();
30504         return nativeResponseValue;
30505 }
30506         // bool SemanticError_eq(const enum LDKSemanticError *NONNULL_PTR a, const enum LDKSemanticError *NONNULL_PTR b);
30507 /* @internal */
30508 export function SemanticError_eq(a: number, b: number): boolean {
30509         if(!isWasmInitialized) {
30510                 throw new Error("initializeWasm() must be awaited first!");
30511         }
30512         const nativeResponseValue = wasm.TS_SemanticError_eq(a, b);
30513         return nativeResponseValue;
30514 }
30515         // struct LDKStr SemanticError_to_str(const enum LDKSemanticError *NONNULL_PTR o);
30516 /* @internal */
30517 export function SemanticError_to_str(o: number): number {
30518         if(!isWasmInitialized) {
30519                 throw new Error("initializeWasm() must be awaited first!");
30520         }
30521         const nativeResponseValue = wasm.TS_SemanticError_to_str(o);
30522         return nativeResponseValue;
30523 }
30524         // void SignOrCreationError_free(struct LDKSignOrCreationError this_ptr);
30525 /* @internal */
30526 export function SignOrCreationError_free(this_ptr: number): void {
30527         if(!isWasmInitialized) {
30528                 throw new Error("initializeWasm() must be awaited first!");
30529         }
30530         const nativeResponseValue = wasm.TS_SignOrCreationError_free(this_ptr);
30531         // debug statements here
30532 }
30533         // uintptr_t SignOrCreationError_clone_ptr(LDKSignOrCreationError *NONNULL_PTR arg);
30534 /* @internal */
30535 export function SignOrCreationError_clone_ptr(arg: number): number {
30536         if(!isWasmInitialized) {
30537                 throw new Error("initializeWasm() must be awaited first!");
30538         }
30539         const nativeResponseValue = wasm.TS_SignOrCreationError_clone_ptr(arg);
30540         return nativeResponseValue;
30541 }
30542         // struct LDKSignOrCreationError SignOrCreationError_clone(const struct LDKSignOrCreationError *NONNULL_PTR orig);
30543 /* @internal */
30544 export function SignOrCreationError_clone(orig: number): number {
30545         if(!isWasmInitialized) {
30546                 throw new Error("initializeWasm() must be awaited first!");
30547         }
30548         const nativeResponseValue = wasm.TS_SignOrCreationError_clone(orig);
30549         return nativeResponseValue;
30550 }
30551         // struct LDKSignOrCreationError SignOrCreationError_sign_error(void);
30552 /* @internal */
30553 export function SignOrCreationError_sign_error(): number {
30554         if(!isWasmInitialized) {
30555                 throw new Error("initializeWasm() must be awaited first!");
30556         }
30557         const nativeResponseValue = wasm.TS_SignOrCreationError_sign_error();
30558         return nativeResponseValue;
30559 }
30560         // struct LDKSignOrCreationError SignOrCreationError_creation_error(enum LDKCreationError a);
30561 /* @internal */
30562 export function SignOrCreationError_creation_error(a: CreationError): number {
30563         if(!isWasmInitialized) {
30564                 throw new Error("initializeWasm() must be awaited first!");
30565         }
30566         const nativeResponseValue = wasm.TS_SignOrCreationError_creation_error(a);
30567         return nativeResponseValue;
30568 }
30569         // bool SignOrCreationError_eq(const struct LDKSignOrCreationError *NONNULL_PTR a, const struct LDKSignOrCreationError *NONNULL_PTR b);
30570 /* @internal */
30571 export function SignOrCreationError_eq(a: number, b: number): boolean {
30572         if(!isWasmInitialized) {
30573                 throw new Error("initializeWasm() must be awaited first!");
30574         }
30575         const nativeResponseValue = wasm.TS_SignOrCreationError_eq(a, b);
30576         return nativeResponseValue;
30577 }
30578         // struct LDKStr SignOrCreationError_to_str(const struct LDKSignOrCreationError *NONNULL_PTR o);
30579 /* @internal */
30580 export function SignOrCreationError_to_str(o: number): number {
30581         if(!isWasmInitialized) {
30582                 throw new Error("initializeWasm() must be awaited first!");
30583         }
30584         const nativeResponseValue = wasm.TS_SignOrCreationError_to_str(o);
30585         return nativeResponseValue;
30586 }
30587         // void InvoicePayer_free(struct LDKInvoicePayer this_obj);
30588 /* @internal */
30589 export function InvoicePayer_free(this_obj: number): void {
30590         if(!isWasmInitialized) {
30591                 throw new Error("initializeWasm() must be awaited first!");
30592         }
30593         const nativeResponseValue = wasm.TS_InvoicePayer_free(this_obj);
30594         // debug statements here
30595 }
30596         // void Payer_free(struct LDKPayer this_ptr);
30597 /* @internal */
30598 export function Payer_free(this_ptr: number): void {
30599         if(!isWasmInitialized) {
30600                 throw new Error("initializeWasm() must be awaited first!");
30601         }
30602         const nativeResponseValue = wasm.TS_Payer_free(this_ptr);
30603         // debug statements here
30604 }
30605         // void Router_free(struct LDKRouter this_ptr);
30606 /* @internal */
30607 export function Router_free(this_ptr: number): void {
30608         if(!isWasmInitialized) {
30609                 throw new Error("initializeWasm() must be awaited first!");
30610         }
30611         const nativeResponseValue = wasm.TS_Router_free(this_ptr);
30612         // debug statements here
30613 }
30614         // void RetryAttempts_free(struct LDKRetryAttempts this_obj);
30615 /* @internal */
30616 export function RetryAttempts_free(this_obj: number): void {
30617         if(!isWasmInitialized) {
30618                 throw new Error("initializeWasm() must be awaited first!");
30619         }
30620         const nativeResponseValue = wasm.TS_RetryAttempts_free(this_obj);
30621         // debug statements here
30622 }
30623         // uintptr_t RetryAttempts_get_a(const struct LDKRetryAttempts *NONNULL_PTR this_ptr);
30624 /* @internal */
30625 export function RetryAttempts_get_a(this_ptr: number): number {
30626         if(!isWasmInitialized) {
30627                 throw new Error("initializeWasm() must be awaited first!");
30628         }
30629         const nativeResponseValue = wasm.TS_RetryAttempts_get_a(this_ptr);
30630         return nativeResponseValue;
30631 }
30632         // void RetryAttempts_set_a(struct LDKRetryAttempts *NONNULL_PTR this_ptr, uintptr_t val);
30633 /* @internal */
30634 export function RetryAttempts_set_a(this_ptr: number, val: number): void {
30635         if(!isWasmInitialized) {
30636                 throw new Error("initializeWasm() must be awaited first!");
30637         }
30638         const nativeResponseValue = wasm.TS_RetryAttempts_set_a(this_ptr, val);
30639         // debug statements here
30640 }
30641         // MUST_USE_RES struct LDKRetryAttempts RetryAttempts_new(uintptr_t a_arg);
30642 /* @internal */
30643 export function RetryAttempts_new(a_arg: number): number {
30644         if(!isWasmInitialized) {
30645                 throw new Error("initializeWasm() must be awaited first!");
30646         }
30647         const nativeResponseValue = wasm.TS_RetryAttempts_new(a_arg);
30648         return nativeResponseValue;
30649 }
30650         // uintptr_t RetryAttempts_clone_ptr(LDKRetryAttempts *NONNULL_PTR arg);
30651 /* @internal */
30652 export function RetryAttempts_clone_ptr(arg: number): number {
30653         if(!isWasmInitialized) {
30654                 throw new Error("initializeWasm() must be awaited first!");
30655         }
30656         const nativeResponseValue = wasm.TS_RetryAttempts_clone_ptr(arg);
30657         return nativeResponseValue;
30658 }
30659         // struct LDKRetryAttempts RetryAttempts_clone(const struct LDKRetryAttempts *NONNULL_PTR orig);
30660 /* @internal */
30661 export function RetryAttempts_clone(orig: number): number {
30662         if(!isWasmInitialized) {
30663                 throw new Error("initializeWasm() must be awaited first!");
30664         }
30665         const nativeResponseValue = wasm.TS_RetryAttempts_clone(orig);
30666         return nativeResponseValue;
30667 }
30668         // bool RetryAttempts_eq(const struct LDKRetryAttempts *NONNULL_PTR a, const struct LDKRetryAttempts *NONNULL_PTR b);
30669 /* @internal */
30670 export function RetryAttempts_eq(a: number, b: number): boolean {
30671         if(!isWasmInitialized) {
30672                 throw new Error("initializeWasm() must be awaited first!");
30673         }
30674         const nativeResponseValue = wasm.TS_RetryAttempts_eq(a, b);
30675         return nativeResponseValue;
30676 }
30677         // uint64_t RetryAttempts_hash(const struct LDKRetryAttempts *NONNULL_PTR o);
30678 /* @internal */
30679 export function RetryAttempts_hash(o: number): bigint {
30680         if(!isWasmInitialized) {
30681                 throw new Error("initializeWasm() must be awaited first!");
30682         }
30683         const nativeResponseValue = wasm.TS_RetryAttempts_hash(o);
30684         return nativeResponseValue;
30685 }
30686         // void PaymentError_free(struct LDKPaymentError this_ptr);
30687 /* @internal */
30688 export function PaymentError_free(this_ptr: number): void {
30689         if(!isWasmInitialized) {
30690                 throw new Error("initializeWasm() must be awaited first!");
30691         }
30692         const nativeResponseValue = wasm.TS_PaymentError_free(this_ptr);
30693         // debug statements here
30694 }
30695         // uintptr_t PaymentError_clone_ptr(LDKPaymentError *NONNULL_PTR arg);
30696 /* @internal */
30697 export function PaymentError_clone_ptr(arg: number): number {
30698         if(!isWasmInitialized) {
30699                 throw new Error("initializeWasm() must be awaited first!");
30700         }
30701         const nativeResponseValue = wasm.TS_PaymentError_clone_ptr(arg);
30702         return nativeResponseValue;
30703 }
30704         // struct LDKPaymentError PaymentError_clone(const struct LDKPaymentError *NONNULL_PTR orig);
30705 /* @internal */
30706 export function PaymentError_clone(orig: number): number {
30707         if(!isWasmInitialized) {
30708                 throw new Error("initializeWasm() must be awaited first!");
30709         }
30710         const nativeResponseValue = wasm.TS_PaymentError_clone(orig);
30711         return nativeResponseValue;
30712 }
30713         // struct LDKPaymentError PaymentError_invoice(struct LDKStr a);
30714 /* @internal */
30715 export function PaymentError_invoice(a: number): number {
30716         if(!isWasmInitialized) {
30717                 throw new Error("initializeWasm() must be awaited first!");
30718         }
30719         const nativeResponseValue = wasm.TS_PaymentError_invoice(a);
30720         return nativeResponseValue;
30721 }
30722         // struct LDKPaymentError PaymentError_routing(struct LDKLightningError a);
30723 /* @internal */
30724 export function PaymentError_routing(a: number): number {
30725         if(!isWasmInitialized) {
30726                 throw new Error("initializeWasm() must be awaited first!");
30727         }
30728         const nativeResponseValue = wasm.TS_PaymentError_routing(a);
30729         return nativeResponseValue;
30730 }
30731         // struct LDKPaymentError PaymentError_sending(struct LDKPaymentSendFailure a);
30732 /* @internal */
30733 export function PaymentError_sending(a: number): number {
30734         if(!isWasmInitialized) {
30735                 throw new Error("initializeWasm() must be awaited first!");
30736         }
30737         const nativeResponseValue = wasm.TS_PaymentError_sending(a);
30738         return nativeResponseValue;
30739 }
30740         // 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);
30741 /* @internal */
30742 export function InvoicePayer_new(payer: number, router: number, scorer: number, logger: number, event_handler: number, retry_attempts: number): number {
30743         if(!isWasmInitialized) {
30744                 throw new Error("initializeWasm() must be awaited first!");
30745         }
30746         const nativeResponseValue = wasm.TS_InvoicePayer_new(payer, router, scorer, logger, event_handler, retry_attempts);
30747         return nativeResponseValue;
30748 }
30749         // MUST_USE_RES struct LDKCResult_PaymentIdPaymentErrorZ InvoicePayer_pay_invoice(const struct LDKInvoicePayer *NONNULL_PTR this_arg, const struct LDKInvoice *NONNULL_PTR invoice);
30750 /* @internal */
30751 export function InvoicePayer_pay_invoice(this_arg: number, invoice: number): number {
30752         if(!isWasmInitialized) {
30753                 throw new Error("initializeWasm() must be awaited first!");
30754         }
30755         const nativeResponseValue = wasm.TS_InvoicePayer_pay_invoice(this_arg, invoice);
30756         return nativeResponseValue;
30757 }
30758         // 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);
30759 /* @internal */
30760 export function InvoicePayer_pay_zero_value_invoice(this_arg: number, invoice: number, amount_msats: bigint): number {
30761         if(!isWasmInitialized) {
30762                 throw new Error("initializeWasm() must be awaited first!");
30763         }
30764         const nativeResponseValue = wasm.TS_InvoicePayer_pay_zero_value_invoice(this_arg, invoice, amount_msats);
30765         return nativeResponseValue;
30766 }
30767         // 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);
30768 /* @internal */
30769 export function InvoicePayer_pay_pubkey(this_arg: number, pubkey: number, payment_preimage: number, amount_msats: bigint, final_cltv_expiry_delta: number): number {
30770         if(!isWasmInitialized) {
30771                 throw new Error("initializeWasm() must be awaited first!");
30772         }
30773         const nativeResponseValue = wasm.TS_InvoicePayer_pay_pubkey(this_arg, pubkey, payment_preimage, amount_msats, final_cltv_expiry_delta);
30774         return nativeResponseValue;
30775 }
30776         // void InvoicePayer_remove_cached_payment(const struct LDKInvoicePayer *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
30777 /* @internal */
30778 export function InvoicePayer_remove_cached_payment(this_arg: number, payment_hash: number): void {
30779         if(!isWasmInitialized) {
30780                 throw new Error("initializeWasm() must be awaited first!");
30781         }
30782         const nativeResponseValue = wasm.TS_InvoicePayer_remove_cached_payment(this_arg, payment_hash);
30783         // debug statements here
30784 }
30785         // struct LDKEventHandler InvoicePayer_as_EventHandler(const struct LDKInvoicePayer *NONNULL_PTR this_arg);
30786 /* @internal */
30787 export function InvoicePayer_as_EventHandler(this_arg: number): number {
30788         if(!isWasmInitialized) {
30789                 throw new Error("initializeWasm() must be awaited first!");
30790         }
30791         const nativeResponseValue = wasm.TS_InvoicePayer_as_EventHandler(this_arg);
30792         return nativeResponseValue;
30793 }
30794         // struct LDKCResult_InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKKeysInterface keys_manager, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKSha256 description_hash, uint64_t duration_since_epoch);
30795 /* @internal */
30796 export function create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch(channelmanager: number, keys_manager: number, network: Currency, amt_msat: number, description_hash: number, duration_since_epoch: bigint): number {
30797         if(!isWasmInitialized) {
30798                 throw new Error("initializeWasm() must be awaited first!");
30799         }
30800         const nativeResponseValue = wasm.TS_create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch(channelmanager, keys_manager, network, amt_msat, description_hash, duration_since_epoch);
30801         return nativeResponseValue;
30802 }
30803         // 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);
30804 /* @internal */
30805 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 {
30806         if(!isWasmInitialized) {
30807                 throw new Error("initializeWasm() must be awaited first!");
30808         }
30809         const nativeResponseValue = wasm.TS_create_invoice_from_channelmanager_and_duration_since_epoch(channelmanager, keys_manager, network, amt_msat, description, duration_since_epoch);
30810         return nativeResponseValue;
30811 }
30812         // void DefaultRouter_free(struct LDKDefaultRouter this_obj);
30813 /* @internal */
30814 export function DefaultRouter_free(this_obj: number): void {
30815         if(!isWasmInitialized) {
30816                 throw new Error("initializeWasm() must be awaited first!");
30817         }
30818         const nativeResponseValue = wasm.TS_DefaultRouter_free(this_obj);
30819         // debug statements here
30820 }
30821         // MUST_USE_RES struct LDKDefaultRouter DefaultRouter_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger, struct LDKThirtyTwoBytes random_seed_bytes);
30822 /* @internal */
30823 export function DefaultRouter_new(network_graph: number, logger: number, random_seed_bytes: number): number {
30824         if(!isWasmInitialized) {
30825                 throw new Error("initializeWasm() must be awaited first!");
30826         }
30827         const nativeResponseValue = wasm.TS_DefaultRouter_new(network_graph, logger, random_seed_bytes);
30828         return nativeResponseValue;
30829 }
30830         // struct LDKRouter DefaultRouter_as_Router(const struct LDKDefaultRouter *NONNULL_PTR this_arg);
30831 /* @internal */
30832 export function DefaultRouter_as_Router(this_arg: number): number {
30833         if(!isWasmInitialized) {
30834                 throw new Error("initializeWasm() must be awaited first!");
30835         }
30836         const nativeResponseValue = wasm.TS_DefaultRouter_as_Router(this_arg);
30837         return nativeResponseValue;
30838 }
30839         // struct LDKPayer ChannelManager_as_Payer(const struct LDKChannelManager *NONNULL_PTR this_arg);
30840 /* @internal */
30841 export function ChannelManager_as_Payer(this_arg: number): number {
30842         if(!isWasmInitialized) {
30843                 throw new Error("initializeWasm() must be awaited first!");
30844         }
30845         const nativeResponseValue = wasm.TS_ChannelManager_as_Payer(this_arg);
30846         return nativeResponseValue;
30847 }
30848         // struct LDKCResult_SiPrefixParseErrorZ SiPrefix_from_str(struct LDKStr s);
30849 /* @internal */
30850 export function SiPrefix_from_str(s: number): number {
30851         if(!isWasmInitialized) {
30852                 throw new Error("initializeWasm() must be awaited first!");
30853         }
30854         const nativeResponseValue = wasm.TS_SiPrefix_from_str(s);
30855         return nativeResponseValue;
30856 }
30857         // struct LDKCResult_InvoiceParseOrSemanticErrorZ Invoice_from_str(struct LDKStr s);
30858 /* @internal */
30859 export function Invoice_from_str(s: number): number {
30860         if(!isWasmInitialized) {
30861                 throw new Error("initializeWasm() must be awaited first!");
30862         }
30863         const nativeResponseValue = wasm.TS_Invoice_from_str(s);
30864         return nativeResponseValue;
30865 }
30866         // struct LDKCResult_SignedRawInvoiceParseErrorZ SignedRawInvoice_from_str(struct LDKStr s);
30867 /* @internal */
30868 export function SignedRawInvoice_from_str(s: number): number {
30869         if(!isWasmInitialized) {
30870                 throw new Error("initializeWasm() must be awaited first!");
30871         }
30872         const nativeResponseValue = wasm.TS_SignedRawInvoice_from_str(s);
30873         return nativeResponseValue;
30874 }
30875         // struct LDKStr ParseError_to_str(const struct LDKParseError *NONNULL_PTR o);
30876 /* @internal */
30877 export function ParseError_to_str(o: number): number {
30878         if(!isWasmInitialized) {
30879                 throw new Error("initializeWasm() must be awaited first!");
30880         }
30881         const nativeResponseValue = wasm.TS_ParseError_to_str(o);
30882         return nativeResponseValue;
30883 }
30884         // struct LDKStr ParseOrSemanticError_to_str(const struct LDKParseOrSemanticError *NONNULL_PTR o);
30885 /* @internal */
30886 export function ParseOrSemanticError_to_str(o: number): number {
30887         if(!isWasmInitialized) {
30888                 throw new Error("initializeWasm() must be awaited first!");
30889         }
30890         const nativeResponseValue = wasm.TS_ParseOrSemanticError_to_str(o);
30891         return nativeResponseValue;
30892 }
30893         // struct LDKStr Invoice_to_str(const struct LDKInvoice *NONNULL_PTR o);
30894 /* @internal */
30895 export function Invoice_to_str(o: number): number {
30896         if(!isWasmInitialized) {
30897                 throw new Error("initializeWasm() must be awaited first!");
30898         }
30899         const nativeResponseValue = wasm.TS_Invoice_to_str(o);
30900         return nativeResponseValue;
30901 }
30902         // struct LDKStr SignedRawInvoice_to_str(const struct LDKSignedRawInvoice *NONNULL_PTR o);
30903 /* @internal */
30904 export function SignedRawInvoice_to_str(o: number): number {
30905         if(!isWasmInitialized) {
30906                 throw new Error("initializeWasm() must be awaited first!");
30907         }
30908         const nativeResponseValue = wasm.TS_SignedRawInvoice_to_str(o);
30909         return nativeResponseValue;
30910 }
30911         // struct LDKStr Currency_to_str(const enum LDKCurrency *NONNULL_PTR o);
30912 /* @internal */
30913 export function Currency_to_str(o: number): number {
30914         if(!isWasmInitialized) {
30915                 throw new Error("initializeWasm() must be awaited first!");
30916         }
30917         const nativeResponseValue = wasm.TS_Currency_to_str(o);
30918         return nativeResponseValue;
30919 }
30920         // struct LDKStr SiPrefix_to_str(const enum LDKSiPrefix *NONNULL_PTR o);
30921 /* @internal */
30922 export function SiPrefix_to_str(o: number): number {
30923         if(!isWasmInitialized) {
30924                 throw new Error("initializeWasm() must be awaited first!");
30925         }
30926         const nativeResponseValue = wasm.TS_SiPrefix_to_str(o);
30927         return nativeResponseValue;
30928 }
30929
30930
30931 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) {
30932         const weak: WeakRef<object> = js_objs[obj_ptr];
30933         if (weak == null || weak == undefined) {
30934                 console.error("Got function call on unknown/free'd JS object!");
30935                 throw new Error("Got function call on unknown/free'd JS object!");
30936         }
30937         const obj: object = weak.deref();
30938         if (obj == null || obj == undefined) {
30939                 console.error("Got function call on GC'd JS object!");
30940                 throw new Error("Got function call on GC'd JS object!");
30941         }
30942         var fn;
30943         switch (fn_id) {
30944                 case 0: fn = Object.getOwnPropertyDescriptor(obj, "get_per_commitment_point"); break;
30945                 case 1: fn = Object.getOwnPropertyDescriptor(obj, "release_commitment_secret"); break;
30946                 case 2: fn = Object.getOwnPropertyDescriptor(obj, "validate_holder_commitment"); break;
30947                 case 3: fn = Object.getOwnPropertyDescriptor(obj, "channel_keys_id"); break;
30948                 case 4: fn = Object.getOwnPropertyDescriptor(obj, "sign_counterparty_commitment"); break;
30949                 case 5: fn = Object.getOwnPropertyDescriptor(obj, "validate_counterparty_revocation"); break;
30950                 case 6: fn = Object.getOwnPropertyDescriptor(obj, "sign_holder_commitment_and_htlcs"); break;
30951                 case 7: fn = Object.getOwnPropertyDescriptor(obj, "sign_justice_revoked_output"); break;
30952                 case 8: fn = Object.getOwnPropertyDescriptor(obj, "sign_justice_revoked_htlc"); break;
30953                 case 9: fn = Object.getOwnPropertyDescriptor(obj, "sign_counterparty_htlc_transaction"); break;
30954                 case 10: fn = Object.getOwnPropertyDescriptor(obj, "sign_closing_transaction"); break;
30955                 case 11: fn = Object.getOwnPropertyDescriptor(obj, "sign_channel_announcement"); break;
30956                 case 12: fn = Object.getOwnPropertyDescriptor(obj, "ready_channel"); break;
30957                 case 13: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
30958                 case 14: fn = Object.getOwnPropertyDescriptor(obj, "watch_channel"); break;
30959                 case 15: fn = Object.getOwnPropertyDescriptor(obj, "update_channel"); break;
30960                 case 16: fn = Object.getOwnPropertyDescriptor(obj, "release_pending_monitor_events"); break;
30961                 case 17: fn = Object.getOwnPropertyDescriptor(obj, "broadcast_transaction"); break;
30962                 case 18: fn = Object.getOwnPropertyDescriptor(obj, "get_node_secret"); break;
30963                 case 19: fn = Object.getOwnPropertyDescriptor(obj, "get_destination_script"); break;
30964                 case 20: fn = Object.getOwnPropertyDescriptor(obj, "get_shutdown_scriptpubkey"); break;
30965                 case 21: fn = Object.getOwnPropertyDescriptor(obj, "get_channel_signer"); break;
30966                 case 22: fn = Object.getOwnPropertyDescriptor(obj, "get_secure_random_bytes"); break;
30967                 case 23: fn = Object.getOwnPropertyDescriptor(obj, "read_chan_signer"); break;
30968                 case 24: fn = Object.getOwnPropertyDescriptor(obj, "sign_invoice"); break;
30969                 case 25: fn = Object.getOwnPropertyDescriptor(obj, "get_inbound_payment_key_material"); break;
30970                 case 26: fn = Object.getOwnPropertyDescriptor(obj, "get_est_sat_per_1000_weight"); break;
30971                 case 27: fn = Object.getOwnPropertyDescriptor(obj, "log"); break;
30972                 case 28: fn = Object.getOwnPropertyDescriptor(obj, "type_id"); break;
30973                 case 29: fn = Object.getOwnPropertyDescriptor(obj, "debug_str"); break;
30974                 case 30: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
30975                 case 31: fn = Object.getOwnPropertyDescriptor(obj, "get_utxo"); break;
30976                 case 32: fn = Object.getOwnPropertyDescriptor(obj, "register_tx"); break;
30977                 case 33: fn = Object.getOwnPropertyDescriptor(obj, "register_output"); break;
30978                 case 34: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg_events"); break;
30979                 case 35: fn = Object.getOwnPropertyDescriptor(obj, "handle_event"); break;
30980                 case 36: fn = Object.getOwnPropertyDescriptor(obj, "process_pending_events"); break;
30981                 case 37: fn = Object.getOwnPropertyDescriptor(obj, "block_connected"); break;
30982                 case 38: fn = Object.getOwnPropertyDescriptor(obj, "block_disconnected"); break;
30983                 case 39: fn = Object.getOwnPropertyDescriptor(obj, "transactions_confirmed"); break;
30984                 case 40: fn = Object.getOwnPropertyDescriptor(obj, "transaction_unconfirmed"); break;
30985                 case 41: fn = Object.getOwnPropertyDescriptor(obj, "best_block_updated"); break;
30986                 case 42: fn = Object.getOwnPropertyDescriptor(obj, "get_relevant_txids"); break;
30987                 case 43: fn = Object.getOwnPropertyDescriptor(obj, "persist_new_channel"); break;
30988                 case 44: fn = Object.getOwnPropertyDescriptor(obj, "update_persisted_channel"); break;
30989                 case 45: fn = Object.getOwnPropertyDescriptor(obj, "handle_open_channel"); break;
30990                 case 46: fn = Object.getOwnPropertyDescriptor(obj, "handle_accept_channel"); break;
30991                 case 47: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_created"); break;
30992                 case 48: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_signed"); break;
30993                 case 49: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_locked"); break;
30994                 case 50: fn = Object.getOwnPropertyDescriptor(obj, "handle_shutdown"); break;
30995                 case 51: fn = Object.getOwnPropertyDescriptor(obj, "handle_closing_signed"); break;
30996                 case 52: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_add_htlc"); break;
30997                 case 53: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fulfill_htlc"); break;
30998                 case 54: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fail_htlc"); break;
30999                 case 55: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fail_malformed_htlc"); break;
31000                 case 56: fn = Object.getOwnPropertyDescriptor(obj, "handle_commitment_signed"); break;
31001                 case 57: fn = Object.getOwnPropertyDescriptor(obj, "handle_revoke_and_ack"); break;
31002                 case 58: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fee"); break;
31003                 case 59: fn = Object.getOwnPropertyDescriptor(obj, "handle_announcement_signatures"); break;
31004                 case 60: fn = Object.getOwnPropertyDescriptor(obj, "peer_disconnected"); break;
31005                 case 61: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break;
31006                 case 62: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_reestablish"); break;
31007                 case 63: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_update"); break;
31008                 case 64: fn = Object.getOwnPropertyDescriptor(obj, "handle_error"); break;
31009                 case 65: fn = Object.getOwnPropertyDescriptor(obj, "handle_node_announcement"); break;
31010                 case 66: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_announcement"); break;
31011                 case 67: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_update"); break;
31012                 case 68: fn = Object.getOwnPropertyDescriptor(obj, "get_next_channel_announcements"); break;
31013                 case 69: fn = Object.getOwnPropertyDescriptor(obj, "get_next_node_announcements"); break;
31014                 case 70: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break;
31015                 case 71: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_channel_range"); break;
31016                 case 72: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_short_channel_ids_end"); break;
31017                 case 73: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_channel_range"); break;
31018                 case 74: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_short_channel_ids"); break;
31019                 case 75: fn = Object.getOwnPropertyDescriptor(obj, "read"); break;
31020                 case 76: fn = Object.getOwnPropertyDescriptor(obj, "handle_custom_message"); break;
31021                 case 77: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg"); break;
31022                 case 78: fn = Object.getOwnPropertyDescriptor(obj, "send_data"); break;
31023                 case 79: fn = Object.getOwnPropertyDescriptor(obj, "disconnect_socket"); break;
31024                 case 80: fn = Object.getOwnPropertyDescriptor(obj, "eq"); break;
31025                 case 81: fn = Object.getOwnPropertyDescriptor(obj, "hash"); break;
31026                 case 82: fn = Object.getOwnPropertyDescriptor(obj, "channel_penalty_msat"); break;
31027                 case 83: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_failed"); break;
31028                 case 84: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_successful"); break;
31029                 case 85: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
31030                 case 86: fn = Object.getOwnPropertyDescriptor(obj, "lock"); break;
31031                 case 87: fn = Object.getOwnPropertyDescriptor(obj, "node_id"); break;
31032                 case 88: fn = Object.getOwnPropertyDescriptor(obj, "first_hops"); break;
31033                 case 89: fn = Object.getOwnPropertyDescriptor(obj, "send_payment"); break;
31034                 case 90: fn = Object.getOwnPropertyDescriptor(obj, "send_spontaneous_payment"); break;
31035                 case 91: fn = Object.getOwnPropertyDescriptor(obj, "retry_payment"); break;
31036                 case 92: fn = Object.getOwnPropertyDescriptor(obj, "abandon_payment"); break;
31037                 case 93: fn = Object.getOwnPropertyDescriptor(obj, "find_route"); break;
31038                 default:
31039                         console.error("Got unknown function call from C!");
31040                         throw new Error("Got unknown function call from C!");
31041         }
31042         if (fn == null || fn == undefined) {
31043                 console.error("Got function call on incorrect JS object!");
31044                 throw new Error("Got function call on incorrect JS object!");
31045         }
31046         return fn.value.bind(obj)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
31047 }