Merge pull request #106 from TheBlueMatt/main
[ldk-java] / ts / bindings.mts
1
2 import * as version from './version.mjs';
3 import { UInt5, WitnessVersion } 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 files 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_u"] = js_invoke;
92         imports.env["js_invoke_function_b"] = js_invoke;
93         const { instance: wasmInstance } = await WebAssembly.instantiate(wasmBinary, imports);
94         await finishInitializeWasm(wasmInstance);
95 }
96
97 /* @internal */
98 export async function initializeWasmFetch(uri: string) {
99         const stream = fetch(uri);
100         imports.env["js_invoke_function_u"] = js_invoke;
101         imports.env["js_invoke_function_b"] = js_invoke;
102         const { instance: wasmInstance } = await WebAssembly.instantiateStreaming(stream, imports);
103         await finishInitializeWasm(wasmInstance);
104 }
105 // WASM CODEC
106
107 /* @internal */
108 export function uint5ArrToBytes(inputArray: Array<UInt5>): Uint8Array {
109         const arr = new Uint8Array(inputArray.length);
110         for (var i = 0; i < inputArray.length; i++) {
111                 arr[i] = inputArray[i].getVal();
112         }
113         return arr;
114 }
115
116 /* @internal */
117 export function WitnessVersionArrToBytes(inputArray: Array<WitnessVersion>): Uint8Array {
118         const arr = new Uint8Array(inputArray.length);
119         for (var i = 0; i < inputArray.length; i++) {
120                 arr[i] = inputArray[i].getVal();
121         }
122         return arr;
123 }
124
125
126
127 /* @internal */
128 export function encodeUint8Array (inputArray: Uint8Array): number {
129         const cArrayPointer = wasm.TS_malloc(inputArray.length + 4);
130         const arrayLengthView = new Uint32Array(wasm.memory.buffer, cArrayPointer, 1);
131         arrayLengthView[0] = inputArray.length;
132         const arrayMemoryView = new Uint8Array(wasm.memory.buffer, cArrayPointer + 4, inputArray.length);
133         arrayMemoryView.set(inputArray);
134         return cArrayPointer;
135 }
136 /* @internal */
137 export function encodeUint32Array (inputArray: Uint32Array|Array<number>): number {
138         const cArrayPointer = wasm.TS_malloc((inputArray.length + 1) * 4);
139         const arrayMemoryView = new Uint32Array(wasm.memory.buffer, cArrayPointer, inputArray.length);
140         arrayMemoryView.set(inputArray, 1);
141         arrayMemoryView[0] = inputArray.length;
142         return cArrayPointer;
143 }
144 /* @internal */
145 export function encodeUint64Array (inputArray: BigUint64Array|Array<bigint>): number {
146         const cArrayPointer = wasm.TS_malloc(inputArray.length * 8 + 1);
147         const arrayLengthView = new Uint32Array(wasm.memory.buffer, cArrayPointer, 1);
148         arrayLengthView[0] = inputArray.length;
149         const arrayMemoryView = new BigUint64Array(wasm.memory.buffer, cArrayPointer + 4, inputArray.length);
150         arrayMemoryView.set(inputArray);
151         return cArrayPointer;
152 }
153
154 /* @internal */
155 export function check_arr_len(arr: Uint8Array, len: number): Uint8Array {
156         if (arr.length != len) { throw new Error("Expected array of length " + len + "got " + arr.length); }
157         return arr;
158 }
159
160 /* @internal */
161 export function getArrayLength(arrayPointer: number): number {
162         const arraySizeViewer = new Uint32Array(wasm.memory.buffer, arrayPointer, 1);
163         return arraySizeViewer[0];
164 }
165 /* @internal */
166 export function decodeUint8Array (arrayPointer: number, free = true): Uint8Array {
167         const arraySize = getArrayLength(arrayPointer);
168         const actualArrayViewer = new Uint8Array(wasm.memory.buffer, arrayPointer + 4, arraySize);
169         // Clone the contents, TODO: In the future we should wrap the Viewer in a class that
170         // will free the underlying memory when it becomes unreachable instead of copying here.
171         // Note that doing so may have edge-case interactions with memory resizing (invalidating the buffer).
172         const actualArray = actualArrayViewer.slice(0, arraySize);
173         if (free) {
174                 wasm.TS_free(arrayPointer);
175         }
176         return actualArray;
177 }
178 const decodeUint32Array = (arrayPointer: number, free = true) => {
179         const arraySize = getArrayLength(arrayPointer);
180         const actualArrayViewer = new Uint32Array(
181                 wasm.memory.buffer, // value
182                 arrayPointer + 4, // offset (ignoring length bytes)
183                 arraySize // uint32 count
184         );
185         // Clone the contents, TODO: In the future we should wrap the Viewer in a class that
186         // will free the underlying memory when it becomes unreachable instead of copying here.
187         const actualArray = actualArrayViewer.slice(0, arraySize);
188         if (free) {
189                 wasm.TS_free(arrayPointer);
190         }
191         return actualArray;
192 }
193
194
195 export function freeWasmMemory(pointer: number) { wasm.TS_free(pointer); }
196
197 /* @internal */
198 export function getU32ArrayElem(arrayPointer: number, idx: number): number {
199         const actualArrayViewer = new Uint32Array(wasm.memory.buffer, arrayPointer + 4, idx + 1);
200         return actualArrayViewer[idx];
201 }
202
203 /* @internal */
204 export function getU8ArrayElem(arrayPointer: number, idx: number): number {
205         const actualArrayViewer = new Uint8Array(wasm.memory.buffer, arrayPointer + 4, idx + 1);
206         return actualArrayViewer[idx];
207 }
208
209
210 /* @internal */
211 export function encodeString(str: string): number {
212         const charArray = new TextEncoder().encode(str);
213         return encodeUint8Array(charArray);
214 }
215
216 /* @internal */
217 export function decodeString(stringPointer: number, free = true): string {
218         const arraySize = getArrayLength(stringPointer);
219         const memoryView = new Uint8Array(wasm.memory.buffer, stringPointer + 4, arraySize);
220         const result = new TextDecoder("utf-8").decode(memoryView);
221
222         if (free) {
223                 wasm.TS_free(stringPointer);
224         }
225
226         return result;
227 }
228
229 /* @internal */ export function getRemainingAllocationCount(): number { return 0; }
230 /* @internal */ export function debugPrintRemainingAllocs() { }
231
232 /* @internal */
233 export enum AccessError {
234         /**
235          * The requested chain is unknown.
236          */
237         LDKAccessError_UnknownChain,
238         /**
239          * The requested transaction doesn't exist or hasn't confirmed.
240          */
241         LDKAccessError_UnknownTx,
242         
243 }
244
245 /* @internal */
246 export enum COption_NoneZ {
247         /**
248          * When we're in this state, this COption_NoneZ contains a
249          */
250         LDKCOption_NoneZ_Some,
251         /**
252          * When we're in this state, this COption_NoneZ contains nothing
253          */
254         LDKCOption_NoneZ_None,
255         
256 }
257
258 /* @internal */
259 export enum ChannelMonitorUpdateErr {
260         /**
261          * Used to indicate a temporary failure (eg connection to a watchtower or remote backup of
262         our state failed, but is expected to succeed at some point in the future).
263         
264         Such a failure will \"freeze\" a channel, preventing us from revoking old states or
265         submitting new commitment transactions to the counterparty. Once the update(s) that failed
266         have been successfully applied, a [`MonitorEvent::UpdateCompleted`] event should be returned
267         via [`Watch::release_pending_monitor_events`] which will then restore the channel to an
268         operational state.
269         
270         Note that a given ChannelManager will *never* re-generate a given ChannelMonitorUpdate. If
271         you return a TemporaryFailure you must ensure that it is written to disk safely before
272         writing out the latest ChannelManager state.
273         
274         Even when a channel has been \"frozen\" updates to the ChannelMonitor can continue to occur
275         (eg if an inbound HTLC which we forwarded was claimed upstream resulting in us attempting
276         to claim it on this channel) and those updates must be applied wherever they can be. At
277         least one such updated ChannelMonitor must be persisted otherwise PermanentFailure should
278         be returned to get things on-chain ASAP using only the in-memory copy. Obviously updates to
279         the channel which would invalidate previous ChannelMonitors are not made when a channel has
280         been \"frozen\".
281         
282         Note that even if updates made after TemporaryFailure succeed you must still provide a
283         [`MonitorEvent::UpdateCompleted`] to ensure you have the latest monitor and re-enable
284         normal channel operation. Note that this is normally generated through a call to
285         [`ChainMonitor::channel_monitor_updated`].
286         
287         Note that the update being processed here will not be replayed for you when you return a
288         [`MonitorEvent::UpdateCompleted`] event via [`Watch::release_pending_monitor_events`], so
289         you must store the update itself on your own local disk prior to returning a
290         TemporaryFailure. You may, of course, employ a journaling approach, storing only the
291         ChannelMonitorUpdate on disk without updating the monitor itself, replaying the journal at
292         reload-time.
293         
294         For deployments where a copy of ChannelMonitors and other local state are backed up in a
295         remote location (with local copies persisted immediately), it is anticipated that all
296         updates will return TemporaryFailure until the remote copies could be updated.
297         
298         [`ChainMonitor::channel_monitor_updated`]: chainmonitor::ChainMonitor::channel_monitor_updated
299          */
300         LDKChannelMonitorUpdateErr_TemporaryFailure,
301         /**
302          * Used to indicate no further channel monitor updates will be allowed (eg we've moved on to a
303         different watchtower and cannot update with all watchtowers that were previously informed
304         of this channel).
305         
306         At reception of this error, ChannelManager will force-close the channel and return at
307         least a final ChannelMonitorUpdate::ChannelForceClosed which must be delivered to at
308         least one ChannelMonitor copy. Revocation secret MUST NOT be released and offchain channel
309         update must be rejected.
310         
311         This failure may also signal a failure to update the local persisted copy of one of
312         the channel monitor instance.
313         
314         Note that even when you fail a holder commitment transaction update, you must store the
315         update to ensure you can claim from it in case of a duplicate copy of this ChannelMonitor
316         broadcasts it (e.g distributed channel-monitor deployment)
317         
318         In case of distributed watchtowers deployment, the new version must be written to disk, as
319         state may have been stored but rejected due to a block forcing a commitment broadcast. This
320         storage is used to claim outputs of rejected state confirmed onchain by another watchtower,
321         lagging behind on block processing.
322          */
323         LDKChannelMonitorUpdateErr_PermanentFailure,
324         
325 }
326
327 /* @internal */
328 export enum ConfirmationTarget {
329         /**
330          * We are happy with this transaction confirming slowly when feerate drops some.
331          */
332         LDKConfirmationTarget_Background,
333         /**
334          * We'd like this transaction to confirm without major delay, but 12-18 blocks is fine.
335          */
336         LDKConfirmationTarget_Normal,
337         /**
338          * We'd like this transaction to confirm in the next few blocks.
339          */
340         LDKConfirmationTarget_HighPriority,
341         
342 }
343
344 /* @internal */
345 export enum CreationError {
346         /**
347          * The supplied description string was longer than 639 __bytes__ (see [`Description::new(...)`](./struct.Description.html#method.new))
348          */
349         LDKCreationError_DescriptionTooLong,
350         /**
351          * The specified route has too many hops and can't be encoded
352          */
353         LDKCreationError_RouteTooLong,
354         /**
355          * The Unix timestamp of the supplied date is less than zero or greater than 35-bits
356          */
357         LDKCreationError_TimestampOutOfBounds,
358         /**
359          * The supplied millisatoshi amount was greater than the total bitcoin supply.
360          */
361         LDKCreationError_InvalidAmount,
362         /**
363          * Route hints were required for this invoice and were missing. Applies to
364         [phantom invoices].
365         
366         [phantom invoices]: crate::utils::create_phantom_invoice
367          */
368         LDKCreationError_MissingRouteHints,
369         
370 }
371
372 /* @internal */
373 export enum Currency {
374         /**
375          * Bitcoin mainnet
376          */
377         LDKCurrency_Bitcoin,
378         /**
379          * Bitcoin testnet
380          */
381         LDKCurrency_BitcoinTestnet,
382         /**
383          * Bitcoin regtest
384          */
385         LDKCurrency_Regtest,
386         /**
387          * Bitcoin simnet
388          */
389         LDKCurrency_Simnet,
390         /**
391          * Bitcoin signet
392          */
393         LDKCurrency_Signet,
394         
395 }
396
397 /* @internal */
398 export enum IOError {
399                 LDKIOError_NotFound,
400                 LDKIOError_PermissionDenied,
401                 LDKIOError_ConnectionRefused,
402                 LDKIOError_ConnectionReset,
403                 LDKIOError_ConnectionAborted,
404                 LDKIOError_NotConnected,
405                 LDKIOError_AddrInUse,
406                 LDKIOError_AddrNotAvailable,
407                 LDKIOError_BrokenPipe,
408                 LDKIOError_AlreadyExists,
409                 LDKIOError_WouldBlock,
410                 LDKIOError_InvalidInput,
411                 LDKIOError_InvalidData,
412                 LDKIOError_TimedOut,
413                 LDKIOError_WriteZero,
414                 LDKIOError_Interrupted,
415                 LDKIOError_Other,
416                 LDKIOError_UnexpectedEof,
417         
418 }
419
420 /* @internal */
421 export enum Level {
422         /**
423          * Designates extremely verbose information, including gossip-induced messages
424          */
425         LDKLevel_Gossip,
426         /**
427          * Designates very low priority, often extremely verbose, information
428          */
429         LDKLevel_Trace,
430         /**
431          * Designates lower priority information
432          */
433         LDKLevel_Debug,
434         /**
435          * Designates useful information
436          */
437         LDKLevel_Info,
438         /**
439          * Designates hazardous situations
440          */
441         LDKLevel_Warn,
442         /**
443          * Designates very serious errors
444          */
445         LDKLevel_Error,
446         
447 }
448
449 /* @internal */
450 export enum Network {
451         /**
452          * The main Bitcoin blockchain.
453          */
454         LDKNetwork_Bitcoin,
455         /**
456          * The testnet3 blockchain.
457          */
458         LDKNetwork_Testnet,
459         /**
460          * A local test blockchain.
461          */
462         LDKNetwork_Regtest,
463         /**
464          * A blockchain on which blocks are signed instead of mined.
465          */
466         LDKNetwork_Signet,
467         
468 }
469
470 /* @internal */
471 export enum Recipient {
472         /**
473          * The invoice should be signed with the local node secret key.
474          */
475         LDKRecipient_Node,
476         /**
477          * The invoice should be signed with the phantom node secret key. This secret key must be the
478         same for all nodes participating in the [phantom node payment].
479         
480         [phantom node payment]: PhantomKeysManager
481          */
482         LDKRecipient_PhantomNode,
483         
484 }
485
486 /* @internal */
487 export enum Secp256k1Error {
488         /**
489          * Signature failed verification
490          */
491         LDKSecp256k1Error_IncorrectSignature,
492         /**
493          * Badly sized message ("messages" are actually fixed-sized digests; see the MESSAGE_SIZE constant)
494          */
495         LDKSecp256k1Error_InvalidMessage,
496         /**
497          * Bad public key
498          */
499         LDKSecp256k1Error_InvalidPublicKey,
500         /**
501          * Bad signature
502          */
503         LDKSecp256k1Error_InvalidSignature,
504         /**
505          * Bad secret key
506          */
507         LDKSecp256k1Error_InvalidSecretKey,
508         /**
509          * Bad shared secret.
510          */
511         LDKSecp256k1Error_InvalidSharedSecret,
512         /**
513          * Bad recovery id
514          */
515         LDKSecp256k1Error_InvalidRecoveryId,
516         /**
517          * Invalid tweak for add_assign or mul_assign
518          */
519         LDKSecp256k1Error_InvalidTweak,
520         /**
521          * Didn't pass enough memory to context creation with preallocated memory
522          */
523         LDKSecp256k1Error_NotEnoughMemory,
524         /**
525          * Bad set of public keys.
526          */
527         LDKSecp256k1Error_InvalidPublicKeySum,
528         /**
529          * The only valid parity values are 0 or 1.
530          */
531         LDKSecp256k1Error_InvalidParityValue,
532         
533 }
534
535 /* @internal */
536 export enum SemanticError {
537         /**
538          * The invoice is missing the mandatory payment hash
539          */
540         LDKSemanticError_NoPaymentHash,
541         /**
542          * The invoice has multiple payment hashes which isn't allowed
543          */
544         LDKSemanticError_MultiplePaymentHashes,
545         /**
546          * No description or description hash are part of the invoice
547          */
548         LDKSemanticError_NoDescription,
549         /**
550          * The invoice contains multiple descriptions and/or description hashes which isn't allowed
551          */
552         LDKSemanticError_MultipleDescriptions,
553         /**
554          * The invoice is missing the mandatory payment secret, which all modern lightning nodes
555         should provide.
556          */
557         LDKSemanticError_NoPaymentSecret,
558         /**
559          * The invoice contains multiple payment secrets
560          */
561         LDKSemanticError_MultiplePaymentSecrets,
562         /**
563          * The invoice's features are invalid
564          */
565         LDKSemanticError_InvalidFeatures,
566         /**
567          * The recovery id doesn't fit the signature/pub key
568          */
569         LDKSemanticError_InvalidRecoveryId,
570         /**
571          * The invoice's signature is invalid
572          */
573         LDKSemanticError_InvalidSignature,
574         /**
575          * The invoice's amount was not a whole number of millisatoshis
576          */
577         LDKSemanticError_ImpreciseAmount,
578         
579 }
580
581 /* @internal */
582 export enum SiPrefix {
583         /**
584          * 10^-3
585          */
586         LDKSiPrefix_Milli,
587         /**
588          * 10^-6
589          */
590         LDKSiPrefix_Micro,
591         /**
592          * 10^-9
593          */
594         LDKSiPrefix_Nano,
595         /**
596          * 10^-12
597          */
598         LDKSiPrefix_Pico,
599         
600 }
601 /* @internal */
602 export class LDKBech32Error {
603         protected constructor() {}
604 }
605 /* @internal */
606 export function LDKBech32Error_ty_from_ptr(ptr: number): number {
607         if(!isWasmInitialized) {
608                 throw new Error("initializeWasm() must be awaited first!");
609         }
610         const nativeResponseValue = wasm.TS_LDKBech32Error_ty_from_ptr(ptr);
611         return nativeResponseValue;
612 }
613 /* @internal */
614 export function LDKBech32Error_InvalidChar_get_invalid_char(ptr: number): number {
615         if(!isWasmInitialized) {
616                 throw new Error("initializeWasm() must be awaited first!");
617         }
618         const nativeResponseValue = wasm.TS_LDKBech32Error_InvalidChar_get_invalid_char(ptr);
619         return nativeResponseValue;
620 }
621 /* @internal */
622 export function LDKBech32Error_InvalidData_get_invalid_data(ptr: number): number {
623         if(!isWasmInitialized) {
624                 throw new Error("initializeWasm() must be awaited first!");
625         }
626         const nativeResponseValue = wasm.TS_LDKBech32Error_InvalidData_get_invalid_data(ptr);
627         return nativeResponseValue;
628 }
629         // struct LDKCVec_u8Z TxOut_get_script_pubkey (struct LDKTxOut* thing)
630 /* @internal */
631 export function TxOut_get_script_pubkey(thing: number): number {
632         if(!isWasmInitialized) {
633                 throw new Error("initializeWasm() must be awaited first!");
634         }
635         const nativeResponseValue = wasm.TS_TxOut_get_script_pubkey(thing);
636         return nativeResponseValue;
637 }
638         // uint64_t TxOut_get_value (struct LDKTxOut* thing)
639 /* @internal */
640 export function TxOut_get_value(thing: number): bigint {
641         if(!isWasmInitialized) {
642                 throw new Error("initializeWasm() must be awaited first!");
643         }
644         const nativeResponseValue = wasm.TS_TxOut_get_value(thing);
645         return nativeResponseValue;
646 }
647         // void CResult_NoneNoneZ_get_ok(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
648 /* @internal */
649 export function CResult_NoneNoneZ_get_ok(owner: number): void {
650         if(!isWasmInitialized) {
651                 throw new Error("initializeWasm() must be awaited first!");
652         }
653         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_get_ok(owner);
654         // debug statements here
655 }
656         // void CResult_NoneNoneZ_get_err(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
657 /* @internal */
658 export function CResult_NoneNoneZ_get_err(owner: number): void {
659         if(!isWasmInitialized) {
660                 throw new Error("initializeWasm() must be awaited first!");
661         }
662         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_get_err(owner);
663         // debug statements here
664 }
665         // struct LDKCounterpartyCommitmentSecrets CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
666 /* @internal */
667 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(owner: number): number {
668         if(!isWasmInitialized) {
669                 throw new Error("initializeWasm() must be awaited first!");
670         }
671         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(owner);
672         return nativeResponseValue;
673 }
674         // struct LDKDecodeError CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
675 /* @internal */
676 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(owner: number): number {
677         if(!isWasmInitialized) {
678                 throw new Error("initializeWasm() must be awaited first!");
679         }
680         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(owner);
681         return nativeResponseValue;
682 }
683         // struct LDKSecretKey CResult_SecretKeyErrorZ_get_ok(LDKCResult_SecretKeyErrorZ *NONNULL_PTR owner);
684 /* @internal */
685 export function CResult_SecretKeyErrorZ_get_ok(owner: number): number {
686         if(!isWasmInitialized) {
687                 throw new Error("initializeWasm() must be awaited first!");
688         }
689         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_get_ok(owner);
690         return nativeResponseValue;
691 }
692         // enum LDKSecp256k1Error CResult_SecretKeyErrorZ_get_err(LDKCResult_SecretKeyErrorZ *NONNULL_PTR owner);
693 /* @internal */
694 export function CResult_SecretKeyErrorZ_get_err(owner: number): Secp256k1Error {
695         if(!isWasmInitialized) {
696                 throw new Error("initializeWasm() must be awaited first!");
697         }
698         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_get_err(owner);
699         return nativeResponseValue;
700 }
701         // struct LDKPublicKey CResult_PublicKeyErrorZ_get_ok(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
702 /* @internal */
703 export function CResult_PublicKeyErrorZ_get_ok(owner: number): number {
704         if(!isWasmInitialized) {
705                 throw new Error("initializeWasm() must be awaited first!");
706         }
707         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_get_ok(owner);
708         return nativeResponseValue;
709 }
710         // enum LDKSecp256k1Error CResult_PublicKeyErrorZ_get_err(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
711 /* @internal */
712 export function CResult_PublicKeyErrorZ_get_err(owner: number): Secp256k1Error {
713         if(!isWasmInitialized) {
714                 throw new Error("initializeWasm() must be awaited first!");
715         }
716         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_get_err(owner);
717         return nativeResponseValue;
718 }
719         // struct LDKTxCreationKeys CResult_TxCreationKeysDecodeErrorZ_get_ok(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
720 /* @internal */
721 export function CResult_TxCreationKeysDecodeErrorZ_get_ok(owner: number): number {
722         if(!isWasmInitialized) {
723                 throw new Error("initializeWasm() must be awaited first!");
724         }
725         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_get_ok(owner);
726         return nativeResponseValue;
727 }
728         // struct LDKDecodeError CResult_TxCreationKeysDecodeErrorZ_get_err(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
729 /* @internal */
730 export function CResult_TxCreationKeysDecodeErrorZ_get_err(owner: number): number {
731         if(!isWasmInitialized) {
732                 throw new Error("initializeWasm() must be awaited first!");
733         }
734         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_get_err(owner);
735         return nativeResponseValue;
736 }
737         // struct LDKChannelPublicKeys CResult_ChannelPublicKeysDecodeErrorZ_get_ok(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
738 /* @internal */
739 export function CResult_ChannelPublicKeysDecodeErrorZ_get_ok(owner: number): number {
740         if(!isWasmInitialized) {
741                 throw new Error("initializeWasm() must be awaited first!");
742         }
743         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_get_ok(owner);
744         return nativeResponseValue;
745 }
746         // struct LDKDecodeError CResult_ChannelPublicKeysDecodeErrorZ_get_err(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
747 /* @internal */
748 export function CResult_ChannelPublicKeysDecodeErrorZ_get_err(owner: number): number {
749         if(!isWasmInitialized) {
750                 throw new Error("initializeWasm() must be awaited first!");
751         }
752         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_get_err(owner);
753         return nativeResponseValue;
754 }
755         // struct LDKTxCreationKeys CResult_TxCreationKeysErrorZ_get_ok(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR owner);
756 /* @internal */
757 export function CResult_TxCreationKeysErrorZ_get_ok(owner: number): number {
758         if(!isWasmInitialized) {
759                 throw new Error("initializeWasm() must be awaited first!");
760         }
761         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_get_ok(owner);
762         return nativeResponseValue;
763 }
764         // enum LDKSecp256k1Error CResult_TxCreationKeysErrorZ_get_err(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR owner);
765 /* @internal */
766 export function CResult_TxCreationKeysErrorZ_get_err(owner: number): Secp256k1Error {
767         if(!isWasmInitialized) {
768                 throw new Error("initializeWasm() must be awaited first!");
769         }
770         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_get_err(owner);
771         return nativeResponseValue;
772 }
773 /* @internal */
774 export class LDKCOption_u32Z {
775         protected constructor() {}
776 }
777 /* @internal */
778 export function LDKCOption_u32Z_ty_from_ptr(ptr: number): number {
779         if(!isWasmInitialized) {
780                 throw new Error("initializeWasm() must be awaited first!");
781         }
782         const nativeResponseValue = wasm.TS_LDKCOption_u32Z_ty_from_ptr(ptr);
783         return nativeResponseValue;
784 }
785 /* @internal */
786 export function LDKCOption_u32Z_Some_get_some(ptr: number): number {
787         if(!isWasmInitialized) {
788                 throw new Error("initializeWasm() must be awaited first!");
789         }
790         const nativeResponseValue = wasm.TS_LDKCOption_u32Z_Some_get_some(ptr);
791         return nativeResponseValue;
792 }
793         // struct LDKHTLCOutputInCommitment CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
794 /* @internal */
795 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(owner: number): number {
796         if(!isWasmInitialized) {
797                 throw new Error("initializeWasm() must be awaited first!");
798         }
799         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(owner);
800         return nativeResponseValue;
801 }
802         // struct LDKDecodeError CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
803 /* @internal */
804 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(owner: number): number {
805         if(!isWasmInitialized) {
806                 throw new Error("initializeWasm() must be awaited first!");
807         }
808         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(owner);
809         return nativeResponseValue;
810 }
811         // struct LDKCounterpartyChannelTransactionParameters CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
812 /* @internal */
813 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(owner: number): number {
814         if(!isWasmInitialized) {
815                 throw new Error("initializeWasm() must be awaited first!");
816         }
817         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(owner);
818         return nativeResponseValue;
819 }
820         // struct LDKDecodeError CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
821 /* @internal */
822 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(owner: number): number {
823         if(!isWasmInitialized) {
824                 throw new Error("initializeWasm() must be awaited first!");
825         }
826         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(owner);
827         return nativeResponseValue;
828 }
829         // struct LDKChannelTransactionParameters CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
830 /* @internal */
831 export function CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(owner: number): number {
832         if(!isWasmInitialized) {
833                 throw new Error("initializeWasm() must be awaited first!");
834         }
835         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(owner);
836         return nativeResponseValue;
837 }
838         // struct LDKDecodeError CResult_ChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
839 /* @internal */
840 export function CResult_ChannelTransactionParametersDecodeErrorZ_get_err(owner: number): number {
841         if(!isWasmInitialized) {
842                 throw new Error("initializeWasm() must be awaited first!");
843         }
844         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_get_err(owner);
845         return nativeResponseValue;
846 }
847         // struct LDKHolderCommitmentTransaction CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
848 /* @internal */
849 export function CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(owner: number): number {
850         if(!isWasmInitialized) {
851                 throw new Error("initializeWasm() must be awaited first!");
852         }
853         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(owner);
854         return nativeResponseValue;
855 }
856         // struct LDKDecodeError CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
857 /* @internal */
858 export function CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(owner: number): number {
859         if(!isWasmInitialized) {
860                 throw new Error("initializeWasm() must be awaited first!");
861         }
862         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(owner);
863         return nativeResponseValue;
864 }
865         // struct LDKBuiltCommitmentTransaction CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
866 /* @internal */
867 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(owner: number): number {
868         if(!isWasmInitialized) {
869                 throw new Error("initializeWasm() must be awaited first!");
870         }
871         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(owner);
872         return nativeResponseValue;
873 }
874         // struct LDKDecodeError CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
875 /* @internal */
876 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(owner: number): number {
877         if(!isWasmInitialized) {
878                 throw new Error("initializeWasm() must be awaited first!");
879         }
880         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(owner);
881         return nativeResponseValue;
882 }
883         // struct LDKTrustedClosingTransaction *CResult_TrustedClosingTransactionNoneZ_get_ok(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
884 /* @internal */
885 export function CResult_TrustedClosingTransactionNoneZ_get_ok(owner: number): number {
886         if(!isWasmInitialized) {
887                 throw new Error("initializeWasm() must be awaited first!");
888         }
889         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_get_ok(owner);
890         return nativeResponseValue;
891 }
892         // void CResult_TrustedClosingTransactionNoneZ_get_err(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
893 /* @internal */
894 export function CResult_TrustedClosingTransactionNoneZ_get_err(owner: number): void {
895         if(!isWasmInitialized) {
896                 throw new Error("initializeWasm() must be awaited first!");
897         }
898         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_get_err(owner);
899         // debug statements here
900 }
901         // struct LDKCommitmentTransaction CResult_CommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
902 /* @internal */
903 export function CResult_CommitmentTransactionDecodeErrorZ_get_ok(owner: number): number {
904         if(!isWasmInitialized) {
905                 throw new Error("initializeWasm() must be awaited first!");
906         }
907         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_get_ok(owner);
908         return nativeResponseValue;
909 }
910         // struct LDKDecodeError CResult_CommitmentTransactionDecodeErrorZ_get_err(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
911 /* @internal */
912 export function CResult_CommitmentTransactionDecodeErrorZ_get_err(owner: number): number {
913         if(!isWasmInitialized) {
914                 throw new Error("initializeWasm() must be awaited first!");
915         }
916         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_get_err(owner);
917         return nativeResponseValue;
918 }
919         // struct LDKTrustedCommitmentTransaction *CResult_TrustedCommitmentTransactionNoneZ_get_ok(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
920 /* @internal */
921 export function CResult_TrustedCommitmentTransactionNoneZ_get_ok(owner: number): number {
922         if(!isWasmInitialized) {
923                 throw new Error("initializeWasm() must be awaited first!");
924         }
925         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_get_ok(owner);
926         return nativeResponseValue;
927 }
928         // void CResult_TrustedCommitmentTransactionNoneZ_get_err(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
929 /* @internal */
930 export function CResult_TrustedCommitmentTransactionNoneZ_get_err(owner: number): void {
931         if(!isWasmInitialized) {
932                 throw new Error("initializeWasm() must be awaited first!");
933         }
934         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_get_err(owner);
935         // debug statements here
936 }
937         // struct LDKCVec_SignatureZ CResult_CVec_SignatureZNoneZ_get_ok(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
938 /* @internal */
939 export function CResult_CVec_SignatureZNoneZ_get_ok(owner: number): number {
940         if(!isWasmInitialized) {
941                 throw new Error("initializeWasm() must be awaited first!");
942         }
943         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_get_ok(owner);
944         return nativeResponseValue;
945 }
946         // void CResult_CVec_SignatureZNoneZ_get_err(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
947 /* @internal */
948 export function CResult_CVec_SignatureZNoneZ_get_err(owner: number): void {
949         if(!isWasmInitialized) {
950                 throw new Error("initializeWasm() must be awaited first!");
951         }
952         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_get_err(owner);
953         // debug statements here
954 }
955         // struct LDKShutdownScript CResult_ShutdownScriptDecodeErrorZ_get_ok(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
956 /* @internal */
957 export function CResult_ShutdownScriptDecodeErrorZ_get_ok(owner: number): number {
958         if(!isWasmInitialized) {
959                 throw new Error("initializeWasm() must be awaited first!");
960         }
961         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_get_ok(owner);
962         return nativeResponseValue;
963 }
964         // struct LDKDecodeError CResult_ShutdownScriptDecodeErrorZ_get_err(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
965 /* @internal */
966 export function CResult_ShutdownScriptDecodeErrorZ_get_err(owner: number): number {
967         if(!isWasmInitialized) {
968                 throw new Error("initializeWasm() must be awaited first!");
969         }
970         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_get_err(owner);
971         return nativeResponseValue;
972 }
973         // struct LDKShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
974 /* @internal */
975 export function CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(owner: number): number {
976         if(!isWasmInitialized) {
977                 throw new Error("initializeWasm() must be awaited first!");
978         }
979         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(owner);
980         return nativeResponseValue;
981 }
982         // struct LDKInvalidShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
983 /* @internal */
984 export function CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(owner: number): number {
985         if(!isWasmInitialized) {
986                 throw new Error("initializeWasm() must be awaited first!");
987         }
988         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(owner);
989         return nativeResponseValue;
990 }
991         // struct LDKRouteHop CResult_RouteHopDecodeErrorZ_get_ok(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
992 /* @internal */
993 export function CResult_RouteHopDecodeErrorZ_get_ok(owner: number): number {
994         if(!isWasmInitialized) {
995                 throw new Error("initializeWasm() must be awaited first!");
996         }
997         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_get_ok(owner);
998         return nativeResponseValue;
999 }
1000         // struct LDKDecodeError CResult_RouteHopDecodeErrorZ_get_err(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
1001 /* @internal */
1002 export function CResult_RouteHopDecodeErrorZ_get_err(owner: number): number {
1003         if(!isWasmInitialized) {
1004                 throw new Error("initializeWasm() must be awaited first!");
1005         }
1006         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_get_err(owner);
1007         return nativeResponseValue;
1008 }
1009         // struct LDKRoute CResult_RouteDecodeErrorZ_get_ok(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
1010 /* @internal */
1011 export function CResult_RouteDecodeErrorZ_get_ok(owner: number): number {
1012         if(!isWasmInitialized) {
1013                 throw new Error("initializeWasm() must be awaited first!");
1014         }
1015         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_get_ok(owner);
1016         return nativeResponseValue;
1017 }
1018         // struct LDKDecodeError CResult_RouteDecodeErrorZ_get_err(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
1019 /* @internal */
1020 export function CResult_RouteDecodeErrorZ_get_err(owner: number): number {
1021         if(!isWasmInitialized) {
1022                 throw new Error("initializeWasm() must be awaited first!");
1023         }
1024         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_get_err(owner);
1025         return nativeResponseValue;
1026 }
1027         // struct LDKRouteParameters CResult_RouteParametersDecodeErrorZ_get_ok(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
1028 /* @internal */
1029 export function CResult_RouteParametersDecodeErrorZ_get_ok(owner: number): number {
1030         if(!isWasmInitialized) {
1031                 throw new Error("initializeWasm() must be awaited first!");
1032         }
1033         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_get_ok(owner);
1034         return nativeResponseValue;
1035 }
1036         // struct LDKDecodeError CResult_RouteParametersDecodeErrorZ_get_err(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
1037 /* @internal */
1038 export function CResult_RouteParametersDecodeErrorZ_get_err(owner: number): number {
1039         if(!isWasmInitialized) {
1040                 throw new Error("initializeWasm() must be awaited first!");
1041         }
1042         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_get_err(owner);
1043         return nativeResponseValue;
1044 }
1045 /* @internal */
1046 export class LDKCOption_u64Z {
1047         protected constructor() {}
1048 }
1049 /* @internal */
1050 export function LDKCOption_u64Z_ty_from_ptr(ptr: number): number {
1051         if(!isWasmInitialized) {
1052                 throw new Error("initializeWasm() must be awaited first!");
1053         }
1054         const nativeResponseValue = wasm.TS_LDKCOption_u64Z_ty_from_ptr(ptr);
1055         return nativeResponseValue;
1056 }
1057 /* @internal */
1058 export function LDKCOption_u64Z_Some_get_some(ptr: number): bigint {
1059         if(!isWasmInitialized) {
1060                 throw new Error("initializeWasm() must be awaited first!");
1061         }
1062         const nativeResponseValue = wasm.TS_LDKCOption_u64Z_Some_get_some(ptr);
1063         return nativeResponseValue;
1064 }
1065         // struct LDKPaymentParameters CResult_PaymentParametersDecodeErrorZ_get_ok(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
1066 /* @internal */
1067 export function CResult_PaymentParametersDecodeErrorZ_get_ok(owner: number): number {
1068         if(!isWasmInitialized) {
1069                 throw new Error("initializeWasm() must be awaited first!");
1070         }
1071         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_get_ok(owner);
1072         return nativeResponseValue;
1073 }
1074         // struct LDKDecodeError CResult_PaymentParametersDecodeErrorZ_get_err(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
1075 /* @internal */
1076 export function CResult_PaymentParametersDecodeErrorZ_get_err(owner: number): number {
1077         if(!isWasmInitialized) {
1078                 throw new Error("initializeWasm() must be awaited first!");
1079         }
1080         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_get_err(owner);
1081         return nativeResponseValue;
1082 }
1083         // struct LDKRouteHint CResult_RouteHintDecodeErrorZ_get_ok(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
1084 /* @internal */
1085 export function CResult_RouteHintDecodeErrorZ_get_ok(owner: number): number {
1086         if(!isWasmInitialized) {
1087                 throw new Error("initializeWasm() must be awaited first!");
1088         }
1089         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_get_ok(owner);
1090         return nativeResponseValue;
1091 }
1092         // struct LDKDecodeError CResult_RouteHintDecodeErrorZ_get_err(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
1093 /* @internal */
1094 export function CResult_RouteHintDecodeErrorZ_get_err(owner: number): number {
1095         if(!isWasmInitialized) {
1096                 throw new Error("initializeWasm() must be awaited first!");
1097         }
1098         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_get_err(owner);
1099         return nativeResponseValue;
1100 }
1101         // struct LDKRouteHintHop CResult_RouteHintHopDecodeErrorZ_get_ok(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
1102 /* @internal */
1103 export function CResult_RouteHintHopDecodeErrorZ_get_ok(owner: number): number {
1104         if(!isWasmInitialized) {
1105                 throw new Error("initializeWasm() must be awaited first!");
1106         }
1107         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_get_ok(owner);
1108         return nativeResponseValue;
1109 }
1110         // struct LDKDecodeError CResult_RouteHintHopDecodeErrorZ_get_err(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
1111 /* @internal */
1112 export function CResult_RouteHintHopDecodeErrorZ_get_err(owner: number): number {
1113         if(!isWasmInitialized) {
1114                 throw new Error("initializeWasm() must be awaited first!");
1115         }
1116         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_get_err(owner);
1117         return nativeResponseValue;
1118 }
1119         // struct LDKRoute CResult_RouteLightningErrorZ_get_ok(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
1120 /* @internal */
1121 export function CResult_RouteLightningErrorZ_get_ok(owner: number): number {
1122         if(!isWasmInitialized) {
1123                 throw new Error("initializeWasm() must be awaited first!");
1124         }
1125         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_get_ok(owner);
1126         return nativeResponseValue;
1127 }
1128         // struct LDKLightningError CResult_RouteLightningErrorZ_get_err(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
1129 /* @internal */
1130 export function CResult_RouteLightningErrorZ_get_err(owner: number): number {
1131         if(!isWasmInitialized) {
1132                 throw new Error("initializeWasm() must be awaited first!");
1133         }
1134         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_get_err(owner);
1135         return nativeResponseValue;
1136 }
1137 /* @internal */
1138 export class LDKPaymentPurpose {
1139         protected constructor() {}
1140 }
1141 /* @internal */
1142 export function LDKPaymentPurpose_ty_from_ptr(ptr: number): number {
1143         if(!isWasmInitialized) {
1144                 throw new Error("initializeWasm() must be awaited first!");
1145         }
1146         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_ty_from_ptr(ptr);
1147         return nativeResponseValue;
1148 }
1149 /* @internal */
1150 export function LDKPaymentPurpose_InvoicePayment_get_payment_preimage(ptr: number): number {
1151         if(!isWasmInitialized) {
1152                 throw new Error("initializeWasm() must be awaited first!");
1153         }
1154         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_InvoicePayment_get_payment_preimage(ptr);
1155         return nativeResponseValue;
1156 }
1157 /* @internal */
1158 export function LDKPaymentPurpose_InvoicePayment_get_payment_secret(ptr: number): number {
1159         if(!isWasmInitialized) {
1160                 throw new Error("initializeWasm() must be awaited first!");
1161         }
1162         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_InvoicePayment_get_payment_secret(ptr);
1163         return nativeResponseValue;
1164 }
1165 /* @internal */
1166 export function LDKPaymentPurpose_SpontaneousPayment_get_spontaneous_payment(ptr: number): number {
1167         if(!isWasmInitialized) {
1168                 throw new Error("initializeWasm() must be awaited first!");
1169         }
1170         const nativeResponseValue = wasm.TS_LDKPaymentPurpose_SpontaneousPayment_get_spontaneous_payment(ptr);
1171         return nativeResponseValue;
1172 }
1173         // struct LDKPaymentPurpose CResult_PaymentPurposeDecodeErrorZ_get_ok(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
1174 /* @internal */
1175 export function CResult_PaymentPurposeDecodeErrorZ_get_ok(owner: number): number {
1176         if(!isWasmInitialized) {
1177                 throw new Error("initializeWasm() must be awaited first!");
1178         }
1179         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_get_ok(owner);
1180         return nativeResponseValue;
1181 }
1182         // struct LDKDecodeError CResult_PaymentPurposeDecodeErrorZ_get_err(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
1183 /* @internal */
1184 export function CResult_PaymentPurposeDecodeErrorZ_get_err(owner: number): number {
1185         if(!isWasmInitialized) {
1186                 throw new Error("initializeWasm() must be awaited first!");
1187         }
1188         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_get_err(owner);
1189         return nativeResponseValue;
1190 }
1191 /* @internal */
1192 export class LDKClosureReason {
1193         protected constructor() {}
1194 }
1195 /* @internal */
1196 export function LDKClosureReason_ty_from_ptr(ptr: number): number {
1197         if(!isWasmInitialized) {
1198                 throw new Error("initializeWasm() must be awaited first!");
1199         }
1200         const nativeResponseValue = wasm.TS_LDKClosureReason_ty_from_ptr(ptr);
1201         return nativeResponseValue;
1202 }
1203 /* @internal */
1204 export function LDKClosureReason_CounterpartyForceClosed_get_peer_msg(ptr: number): number {
1205         if(!isWasmInitialized) {
1206                 throw new Error("initializeWasm() must be awaited first!");
1207         }
1208         const nativeResponseValue = wasm.TS_LDKClosureReason_CounterpartyForceClosed_get_peer_msg(ptr);
1209         return nativeResponseValue;
1210 }
1211 /* @internal */
1212 export function LDKClosureReason_ProcessingError_get_err(ptr: number): number {
1213         if(!isWasmInitialized) {
1214                 throw new Error("initializeWasm() must be awaited first!");
1215         }
1216         const nativeResponseValue = wasm.TS_LDKClosureReason_ProcessingError_get_err(ptr);
1217         return nativeResponseValue;
1218 }
1219 /* @internal */
1220 export class LDKCOption_ClosureReasonZ {
1221         protected constructor() {}
1222 }
1223 /* @internal */
1224 export function LDKCOption_ClosureReasonZ_ty_from_ptr(ptr: number): number {
1225         if(!isWasmInitialized) {
1226                 throw new Error("initializeWasm() must be awaited first!");
1227         }
1228         const nativeResponseValue = wasm.TS_LDKCOption_ClosureReasonZ_ty_from_ptr(ptr);
1229         return nativeResponseValue;
1230 }
1231 /* @internal */
1232 export function LDKCOption_ClosureReasonZ_Some_get_some(ptr: number): number {
1233         if(!isWasmInitialized) {
1234                 throw new Error("initializeWasm() must be awaited first!");
1235         }
1236         const nativeResponseValue = wasm.TS_LDKCOption_ClosureReasonZ_Some_get_some(ptr);
1237         return nativeResponseValue;
1238 }
1239         // struct LDKCOption_ClosureReasonZ CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
1240 /* @internal */
1241 export function CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(owner: number): number {
1242         if(!isWasmInitialized) {
1243                 throw new Error("initializeWasm() must be awaited first!");
1244         }
1245         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(owner);
1246         return nativeResponseValue;
1247 }
1248         // struct LDKDecodeError CResult_COption_ClosureReasonZDecodeErrorZ_get_err(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
1249 /* @internal */
1250 export function CResult_COption_ClosureReasonZDecodeErrorZ_get_err(owner: number): number {
1251         if(!isWasmInitialized) {
1252                 throw new Error("initializeWasm() must be awaited first!");
1253         }
1254         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_get_err(owner);
1255         return nativeResponseValue;
1256 }
1257 /* @internal */
1258 export class LDKNetworkUpdate {
1259         protected constructor() {}
1260 }
1261 /* @internal */
1262 export function LDKNetworkUpdate_ty_from_ptr(ptr: number): number {
1263         if(!isWasmInitialized) {
1264                 throw new Error("initializeWasm() must be awaited first!");
1265         }
1266         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ty_from_ptr(ptr);
1267         return nativeResponseValue;
1268 }
1269 /* @internal */
1270 export function LDKNetworkUpdate_ChannelUpdateMessage_get_msg(ptr: number): number {
1271         if(!isWasmInitialized) {
1272                 throw new Error("initializeWasm() must be awaited first!");
1273         }
1274         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelUpdateMessage_get_msg(ptr);
1275         return nativeResponseValue;
1276 }
1277 /* @internal */
1278 export function LDKNetworkUpdate_ChannelFailure_get_short_channel_id(ptr: number): bigint {
1279         if(!isWasmInitialized) {
1280                 throw new Error("initializeWasm() must be awaited first!");
1281         }
1282         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelFailure_get_short_channel_id(ptr);
1283         return nativeResponseValue;
1284 }
1285 /* @internal */
1286 export function LDKNetworkUpdate_ChannelFailure_get_is_permanent(ptr: number): boolean {
1287         if(!isWasmInitialized) {
1288                 throw new Error("initializeWasm() must be awaited first!");
1289         }
1290         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelFailure_get_is_permanent(ptr);
1291         return nativeResponseValue;
1292 }
1293 /* @internal */
1294 export function LDKNetworkUpdate_NodeFailure_get_node_id(ptr: number): number {
1295         if(!isWasmInitialized) {
1296                 throw new Error("initializeWasm() must be awaited first!");
1297         }
1298         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_NodeFailure_get_node_id(ptr);
1299         return nativeResponseValue;
1300 }
1301 /* @internal */
1302 export function LDKNetworkUpdate_NodeFailure_get_is_permanent(ptr: number): boolean {
1303         if(!isWasmInitialized) {
1304                 throw new Error("initializeWasm() must be awaited first!");
1305         }
1306         const nativeResponseValue = wasm.TS_LDKNetworkUpdate_NodeFailure_get_is_permanent(ptr);
1307         return nativeResponseValue;
1308 }
1309 /* @internal */
1310 export class LDKCOption_NetworkUpdateZ {
1311         protected constructor() {}
1312 }
1313 /* @internal */
1314 export function LDKCOption_NetworkUpdateZ_ty_from_ptr(ptr: number): number {
1315         if(!isWasmInitialized) {
1316                 throw new Error("initializeWasm() must be awaited first!");
1317         }
1318         const nativeResponseValue = wasm.TS_LDKCOption_NetworkUpdateZ_ty_from_ptr(ptr);
1319         return nativeResponseValue;
1320 }
1321 /* @internal */
1322 export function LDKCOption_NetworkUpdateZ_Some_get_some(ptr: number): number {
1323         if(!isWasmInitialized) {
1324                 throw new Error("initializeWasm() must be awaited first!");
1325         }
1326         const nativeResponseValue = wasm.TS_LDKCOption_NetworkUpdateZ_Some_get_some(ptr);
1327         return nativeResponseValue;
1328 }
1329 /* @internal */
1330 export class LDKSpendableOutputDescriptor {
1331         protected constructor() {}
1332 }
1333 /* @internal */
1334 export function LDKSpendableOutputDescriptor_ty_from_ptr(ptr: number): number {
1335         if(!isWasmInitialized) {
1336                 throw new Error("initializeWasm() must be awaited first!");
1337         }
1338         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_ty_from_ptr(ptr);
1339         return nativeResponseValue;
1340 }
1341 /* @internal */
1342 export function LDKSpendableOutputDescriptor_StaticOutput_get_outpoint(ptr: number): number {
1343         if(!isWasmInitialized) {
1344                 throw new Error("initializeWasm() must be awaited first!");
1345         }
1346         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticOutput_get_outpoint(ptr);
1347         return nativeResponseValue;
1348 }
1349 /* @internal */
1350 export function LDKSpendableOutputDescriptor_StaticOutput_get_output(ptr: number): number {
1351         if(!isWasmInitialized) {
1352                 throw new Error("initializeWasm() must be awaited first!");
1353         }
1354         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticOutput_get_output(ptr);
1355         return nativeResponseValue;
1356 }
1357 /* @internal */
1358 export function LDKSpendableOutputDescriptor_DelayedPaymentOutput_get_delayed_payment_output(ptr: number): number {
1359         if(!isWasmInitialized) {
1360                 throw new Error("initializeWasm() must be awaited first!");
1361         }
1362         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_DelayedPaymentOutput_get_delayed_payment_output(ptr);
1363         return nativeResponseValue;
1364 }
1365 /* @internal */
1366 export function LDKSpendableOutputDescriptor_StaticPaymentOutput_get_static_payment_output(ptr: number): number {
1367         if(!isWasmInitialized) {
1368                 throw new Error("initializeWasm() must be awaited first!");
1369         }
1370         const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticPaymentOutput_get_static_payment_output(ptr);
1371         return nativeResponseValue;
1372 }
1373 /* @internal */
1374 export class LDKEvent {
1375         protected constructor() {}
1376 }
1377 /* @internal */
1378 export function LDKEvent_ty_from_ptr(ptr: number): number {
1379         if(!isWasmInitialized) {
1380                 throw new Error("initializeWasm() must be awaited first!");
1381         }
1382         const nativeResponseValue = wasm.TS_LDKEvent_ty_from_ptr(ptr);
1383         return nativeResponseValue;
1384 }
1385 /* @internal */
1386 export function LDKEvent_FundingGenerationReady_get_temporary_channel_id(ptr: number): number {
1387         if(!isWasmInitialized) {
1388                 throw new Error("initializeWasm() must be awaited first!");
1389         }
1390         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_temporary_channel_id(ptr);
1391         return nativeResponseValue;
1392 }
1393 /* @internal */
1394 export function LDKEvent_FundingGenerationReady_get_counterparty_node_id(ptr: number): number {
1395         if(!isWasmInitialized) {
1396                 throw new Error("initializeWasm() must be awaited first!");
1397         }
1398         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_counterparty_node_id(ptr);
1399         return nativeResponseValue;
1400 }
1401 /* @internal */
1402 export function LDKEvent_FundingGenerationReady_get_channel_value_satoshis(ptr: number): bigint {
1403         if(!isWasmInitialized) {
1404                 throw new Error("initializeWasm() must be awaited first!");
1405         }
1406         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_channel_value_satoshis(ptr);
1407         return nativeResponseValue;
1408 }
1409 /* @internal */
1410 export function LDKEvent_FundingGenerationReady_get_output_script(ptr: number): number {
1411         if(!isWasmInitialized) {
1412                 throw new Error("initializeWasm() must be awaited first!");
1413         }
1414         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_output_script(ptr);
1415         return nativeResponseValue;
1416 }
1417 /* @internal */
1418 export function LDKEvent_FundingGenerationReady_get_user_channel_id(ptr: number): bigint {
1419         if(!isWasmInitialized) {
1420                 throw new Error("initializeWasm() must be awaited first!");
1421         }
1422         const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_user_channel_id(ptr);
1423         return nativeResponseValue;
1424 }
1425 /* @internal */
1426 export function LDKEvent_PaymentReceived_get_payment_hash(ptr: number): number {
1427         if(!isWasmInitialized) {
1428                 throw new Error("initializeWasm() must be awaited first!");
1429         }
1430         const nativeResponseValue = wasm.TS_LDKEvent_PaymentReceived_get_payment_hash(ptr);
1431         return nativeResponseValue;
1432 }
1433 /* @internal */
1434 export function LDKEvent_PaymentReceived_get_amount_msat(ptr: number): bigint {
1435         if(!isWasmInitialized) {
1436                 throw new Error("initializeWasm() must be awaited first!");
1437         }
1438         const nativeResponseValue = wasm.TS_LDKEvent_PaymentReceived_get_amount_msat(ptr);
1439         return nativeResponseValue;
1440 }
1441 /* @internal */
1442 export function LDKEvent_PaymentReceived_get_purpose(ptr: number): number {
1443         if(!isWasmInitialized) {
1444                 throw new Error("initializeWasm() must be awaited first!");
1445         }
1446         const nativeResponseValue = wasm.TS_LDKEvent_PaymentReceived_get_purpose(ptr);
1447         return nativeResponseValue;
1448 }
1449 /* @internal */
1450 export function LDKEvent_PaymentClaimed_get_payment_hash(ptr: number): number {
1451         if(!isWasmInitialized) {
1452                 throw new Error("initializeWasm() must be awaited first!");
1453         }
1454         const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimed_get_payment_hash(ptr);
1455         return nativeResponseValue;
1456 }
1457 /* @internal */
1458 export function LDKEvent_PaymentClaimed_get_amount_msat(ptr: number): bigint {
1459         if(!isWasmInitialized) {
1460                 throw new Error("initializeWasm() must be awaited first!");
1461         }
1462         const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimed_get_amount_msat(ptr);
1463         return nativeResponseValue;
1464 }
1465 /* @internal */
1466 export function LDKEvent_PaymentClaimed_get_purpose(ptr: number): number {
1467         if(!isWasmInitialized) {
1468                 throw new Error("initializeWasm() must be awaited first!");
1469         }
1470         const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimed_get_purpose(ptr);
1471         return nativeResponseValue;
1472 }
1473 /* @internal */
1474 export function LDKEvent_PaymentSent_get_payment_id(ptr: number): number {
1475         if(!isWasmInitialized) {
1476                 throw new Error("initializeWasm() must be awaited first!");
1477         }
1478         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_id(ptr);
1479         return nativeResponseValue;
1480 }
1481 /* @internal */
1482 export function LDKEvent_PaymentSent_get_payment_preimage(ptr: number): number {
1483         if(!isWasmInitialized) {
1484                 throw new Error("initializeWasm() must be awaited first!");
1485         }
1486         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_preimage(ptr);
1487         return nativeResponseValue;
1488 }
1489 /* @internal */
1490 export function LDKEvent_PaymentSent_get_payment_hash(ptr: number): number {
1491         if(!isWasmInitialized) {
1492                 throw new Error("initializeWasm() must be awaited first!");
1493         }
1494         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_hash(ptr);
1495         return nativeResponseValue;
1496 }
1497 /* @internal */
1498 export function LDKEvent_PaymentSent_get_fee_paid_msat(ptr: number): number {
1499         if(!isWasmInitialized) {
1500                 throw new Error("initializeWasm() must be awaited first!");
1501         }
1502         const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_fee_paid_msat(ptr);
1503         return nativeResponseValue;
1504 }
1505 /* @internal */
1506 export function LDKEvent_PaymentFailed_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_PaymentFailed_get_payment_id(ptr);
1511         return nativeResponseValue;
1512 }
1513 /* @internal */
1514 export function LDKEvent_PaymentFailed_get_payment_hash(ptr: number): number {
1515         if(!isWasmInitialized) {
1516                 throw new Error("initializeWasm() must be awaited first!");
1517         }
1518         const nativeResponseValue = wasm.TS_LDKEvent_PaymentFailed_get_payment_hash(ptr);
1519         return nativeResponseValue;
1520 }
1521 /* @internal */
1522 export function LDKEvent_PaymentPathSuccessful_get_payment_id(ptr: number): number {
1523         if(!isWasmInitialized) {
1524                 throw new Error("initializeWasm() must be awaited first!");
1525         }
1526         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_payment_id(ptr);
1527         return nativeResponseValue;
1528 }
1529 /* @internal */
1530 export function LDKEvent_PaymentPathSuccessful_get_payment_hash(ptr: number): number {
1531         if(!isWasmInitialized) {
1532                 throw new Error("initializeWasm() must be awaited first!");
1533         }
1534         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_payment_hash(ptr);
1535         return nativeResponseValue;
1536 }
1537 /* @internal */
1538 export function LDKEvent_PaymentPathSuccessful_get_path(ptr: number): number {
1539         if(!isWasmInitialized) {
1540                 throw new Error("initializeWasm() must be awaited first!");
1541         }
1542         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_path(ptr);
1543         return nativeResponseValue;
1544 }
1545 /* @internal */
1546 export function LDKEvent_PaymentPathFailed_get_payment_id(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_id(ptr);
1551         return nativeResponseValue;
1552 }
1553 /* @internal */
1554 export function LDKEvent_PaymentPathFailed_get_payment_hash(ptr: number): number {
1555         if(!isWasmInitialized) {
1556                 throw new Error("initializeWasm() must be awaited first!");
1557         }
1558         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_payment_hash(ptr);
1559         return nativeResponseValue;
1560 }
1561 /* @internal */
1562 export function LDKEvent_PaymentPathFailed_get_rejected_by_dest(ptr: number): boolean {
1563         if(!isWasmInitialized) {
1564                 throw new Error("initializeWasm() must be awaited first!");
1565         }
1566         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_rejected_by_dest(ptr);
1567         return nativeResponseValue;
1568 }
1569 /* @internal */
1570 export function LDKEvent_PaymentPathFailed_get_network_update(ptr: number): number {
1571         if(!isWasmInitialized) {
1572                 throw new Error("initializeWasm() must be awaited first!");
1573         }
1574         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_network_update(ptr);
1575         return nativeResponseValue;
1576 }
1577 /* @internal */
1578 export function LDKEvent_PaymentPathFailed_get_all_paths_failed(ptr: number): boolean {
1579         if(!isWasmInitialized) {
1580                 throw new Error("initializeWasm() must be awaited first!");
1581         }
1582         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_all_paths_failed(ptr);
1583         return nativeResponseValue;
1584 }
1585 /* @internal */
1586 export function LDKEvent_PaymentPathFailed_get_path(ptr: number): number {
1587         if(!isWasmInitialized) {
1588                 throw new Error("initializeWasm() must be awaited first!");
1589         }
1590         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_path(ptr);
1591         return nativeResponseValue;
1592 }
1593 /* @internal */
1594 export function LDKEvent_PaymentPathFailed_get_short_channel_id(ptr: number): number {
1595         if(!isWasmInitialized) {
1596                 throw new Error("initializeWasm() must be awaited first!");
1597         }
1598         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_short_channel_id(ptr);
1599         return nativeResponseValue;
1600 }
1601 /* @internal */
1602 export function LDKEvent_PaymentPathFailed_get_retry(ptr: number): number {
1603         if(!isWasmInitialized) {
1604                 throw new Error("initializeWasm() must be awaited first!");
1605         }
1606         const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_retry(ptr);
1607         return nativeResponseValue;
1608 }
1609 /* @internal */
1610 export function LDKEvent_PendingHTLCsForwardable_get_time_forwardable(ptr: number): bigint {
1611         if(!isWasmInitialized) {
1612                 throw new Error("initializeWasm() must be awaited first!");
1613         }
1614         const nativeResponseValue = wasm.TS_LDKEvent_PendingHTLCsForwardable_get_time_forwardable(ptr);
1615         return nativeResponseValue;
1616 }
1617 /* @internal */
1618 export function LDKEvent_SpendableOutputs_get_outputs(ptr: number): number {
1619         if(!isWasmInitialized) {
1620                 throw new Error("initializeWasm() must be awaited first!");
1621         }
1622         const nativeResponseValue = wasm.TS_LDKEvent_SpendableOutputs_get_outputs(ptr);
1623         return nativeResponseValue;
1624 }
1625 /* @internal */
1626 export function LDKEvent_PaymentForwarded_get_prev_channel_id(ptr: number): number {
1627         if(!isWasmInitialized) {
1628                 throw new Error("initializeWasm() must be awaited first!");
1629         }
1630         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_prev_channel_id(ptr);
1631         return nativeResponseValue;
1632 }
1633 /* @internal */
1634 export function LDKEvent_PaymentForwarded_get_next_channel_id(ptr: number): number {
1635         if(!isWasmInitialized) {
1636                 throw new Error("initializeWasm() must be awaited first!");
1637         }
1638         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_next_channel_id(ptr);
1639         return nativeResponseValue;
1640 }
1641 /* @internal */
1642 export function LDKEvent_PaymentForwarded_get_fee_earned_msat(ptr: number): number {
1643         if(!isWasmInitialized) {
1644                 throw new Error("initializeWasm() must be awaited first!");
1645         }
1646         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_fee_earned_msat(ptr);
1647         return nativeResponseValue;
1648 }
1649 /* @internal */
1650 export function LDKEvent_PaymentForwarded_get_claim_from_onchain_tx(ptr: number): boolean {
1651         if(!isWasmInitialized) {
1652                 throw new Error("initializeWasm() must be awaited first!");
1653         }
1654         const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_claim_from_onchain_tx(ptr);
1655         return nativeResponseValue;
1656 }
1657 /* @internal */
1658 export function LDKEvent_ChannelClosed_get_channel_id(ptr: number): number {
1659         if(!isWasmInitialized) {
1660                 throw new Error("initializeWasm() must be awaited first!");
1661         }
1662         const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_channel_id(ptr);
1663         return nativeResponseValue;
1664 }
1665 /* @internal */
1666 export function LDKEvent_ChannelClosed_get_user_channel_id(ptr: number): bigint {
1667         if(!isWasmInitialized) {
1668                 throw new Error("initializeWasm() must be awaited first!");
1669         }
1670         const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_user_channel_id(ptr);
1671         return nativeResponseValue;
1672 }
1673 /* @internal */
1674 export function LDKEvent_ChannelClosed_get_reason(ptr: number): number {
1675         if(!isWasmInitialized) {
1676                 throw new Error("initializeWasm() must be awaited first!");
1677         }
1678         const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_reason(ptr);
1679         return nativeResponseValue;
1680 }
1681 /* @internal */
1682 export function LDKEvent_DiscardFunding_get_channel_id(ptr: number): number {
1683         if(!isWasmInitialized) {
1684                 throw new Error("initializeWasm() must be awaited first!");
1685         }
1686         const nativeResponseValue = wasm.TS_LDKEvent_DiscardFunding_get_channel_id(ptr);
1687         return nativeResponseValue;
1688 }
1689 /* @internal */
1690 export function LDKEvent_DiscardFunding_get_transaction(ptr: number): number {
1691         if(!isWasmInitialized) {
1692                 throw new Error("initializeWasm() must be awaited first!");
1693         }
1694         const nativeResponseValue = wasm.TS_LDKEvent_DiscardFunding_get_transaction(ptr);
1695         return nativeResponseValue;
1696 }
1697 /* @internal */
1698 export function LDKEvent_OpenChannelRequest_get_temporary_channel_id(ptr: number): number {
1699         if(!isWasmInitialized) {
1700                 throw new Error("initializeWasm() must be awaited first!");
1701         }
1702         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_temporary_channel_id(ptr);
1703         return nativeResponseValue;
1704 }
1705 /* @internal */
1706 export function LDKEvent_OpenChannelRequest_get_counterparty_node_id(ptr: number): number {
1707         if(!isWasmInitialized) {
1708                 throw new Error("initializeWasm() must be awaited first!");
1709         }
1710         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_counterparty_node_id(ptr);
1711         return nativeResponseValue;
1712 }
1713 /* @internal */
1714 export function LDKEvent_OpenChannelRequest_get_funding_satoshis(ptr: number): bigint {
1715         if(!isWasmInitialized) {
1716                 throw new Error("initializeWasm() must be awaited first!");
1717         }
1718         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_funding_satoshis(ptr);
1719         return nativeResponseValue;
1720 }
1721 /* @internal */
1722 export function LDKEvent_OpenChannelRequest_get_push_msat(ptr: number): bigint {
1723         if(!isWasmInitialized) {
1724                 throw new Error("initializeWasm() must be awaited first!");
1725         }
1726         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_push_msat(ptr);
1727         return nativeResponseValue;
1728 }
1729 /* @internal */
1730 export function LDKEvent_OpenChannelRequest_get_channel_type(ptr: number): number {
1731         if(!isWasmInitialized) {
1732                 throw new Error("initializeWasm() must be awaited first!");
1733         }
1734         const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_channel_type(ptr);
1735         return nativeResponseValue;
1736 }
1737 /* @internal */
1738 export class LDKCOption_EventZ {
1739         protected constructor() {}
1740 }
1741 /* @internal */
1742 export function LDKCOption_EventZ_ty_from_ptr(ptr: number): number {
1743         if(!isWasmInitialized) {
1744                 throw new Error("initializeWasm() must be awaited first!");
1745         }
1746         const nativeResponseValue = wasm.TS_LDKCOption_EventZ_ty_from_ptr(ptr);
1747         return nativeResponseValue;
1748 }
1749 /* @internal */
1750 export function LDKCOption_EventZ_Some_get_some(ptr: number): number {
1751         if(!isWasmInitialized) {
1752                 throw new Error("initializeWasm() must be awaited first!");
1753         }
1754         const nativeResponseValue = wasm.TS_LDKCOption_EventZ_Some_get_some(ptr);
1755         return nativeResponseValue;
1756 }
1757         // struct LDKCOption_EventZ CResult_COption_EventZDecodeErrorZ_get_ok(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
1758 /* @internal */
1759 export function CResult_COption_EventZDecodeErrorZ_get_ok(owner: number): number {
1760         if(!isWasmInitialized) {
1761                 throw new Error("initializeWasm() must be awaited first!");
1762         }
1763         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_get_ok(owner);
1764         return nativeResponseValue;
1765 }
1766         // struct LDKDecodeError CResult_COption_EventZDecodeErrorZ_get_err(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
1767 /* @internal */
1768 export function CResult_COption_EventZDecodeErrorZ_get_err(owner: number): number {
1769         if(!isWasmInitialized) {
1770                 throw new Error("initializeWasm() must be awaited first!");
1771         }
1772         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_get_err(owner);
1773         return nativeResponseValue;
1774 }
1775 /* @internal */
1776 export class LDKErrorAction {
1777         protected constructor() {}
1778 }
1779 /* @internal */
1780 export function LDKErrorAction_ty_from_ptr(ptr: number): number {
1781         if(!isWasmInitialized) {
1782                 throw new Error("initializeWasm() must be awaited first!");
1783         }
1784         const nativeResponseValue = wasm.TS_LDKErrorAction_ty_from_ptr(ptr);
1785         return nativeResponseValue;
1786 }
1787 /* @internal */
1788 export function LDKErrorAction_DisconnectPeer_get_msg(ptr: number): number {
1789         if(!isWasmInitialized) {
1790                 throw new Error("initializeWasm() must be awaited first!");
1791         }
1792         const nativeResponseValue = wasm.TS_LDKErrorAction_DisconnectPeer_get_msg(ptr);
1793         return nativeResponseValue;
1794 }
1795 /* @internal */
1796 export function LDKErrorAction_IgnoreAndLog_get_ignore_and_log(ptr: number): Level {
1797         if(!isWasmInitialized) {
1798                 throw new Error("initializeWasm() must be awaited first!");
1799         }
1800         const nativeResponseValue = wasm.TS_LDKErrorAction_IgnoreAndLog_get_ignore_and_log(ptr);
1801         return nativeResponseValue;
1802 }
1803 /* @internal */
1804 export function LDKErrorAction_SendErrorMessage_get_msg(ptr: number): number {
1805         if(!isWasmInitialized) {
1806                 throw new Error("initializeWasm() must be awaited first!");
1807         }
1808         const nativeResponseValue = wasm.TS_LDKErrorAction_SendErrorMessage_get_msg(ptr);
1809         return nativeResponseValue;
1810 }
1811 /* @internal */
1812 export function LDKErrorAction_SendWarningMessage_get_msg(ptr: number): number {
1813         if(!isWasmInitialized) {
1814                 throw new Error("initializeWasm() must be awaited first!");
1815         }
1816         const nativeResponseValue = wasm.TS_LDKErrorAction_SendWarningMessage_get_msg(ptr);
1817         return nativeResponseValue;
1818 }
1819 /* @internal */
1820 export function LDKErrorAction_SendWarningMessage_get_log_level(ptr: number): Level {
1821         if(!isWasmInitialized) {
1822                 throw new Error("initializeWasm() must be awaited first!");
1823         }
1824         const nativeResponseValue = wasm.TS_LDKErrorAction_SendWarningMessage_get_log_level(ptr);
1825         return nativeResponseValue;
1826 }
1827 /* @internal */
1828 export class LDKMessageSendEvent {
1829         protected constructor() {}
1830 }
1831 /* @internal */
1832 export function LDKMessageSendEvent_ty_from_ptr(ptr: number): number {
1833         if(!isWasmInitialized) {
1834                 throw new Error("initializeWasm() must be awaited first!");
1835         }
1836         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_ty_from_ptr(ptr);
1837         return nativeResponseValue;
1838 }
1839 /* @internal */
1840 export function LDKMessageSendEvent_SendAcceptChannel_get_node_id(ptr: number): number {
1841         if(!isWasmInitialized) {
1842                 throw new Error("initializeWasm() must be awaited first!");
1843         }
1844         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAcceptChannel_get_node_id(ptr);
1845         return nativeResponseValue;
1846 }
1847 /* @internal */
1848 export function LDKMessageSendEvent_SendAcceptChannel_get_msg(ptr: number): number {
1849         if(!isWasmInitialized) {
1850                 throw new Error("initializeWasm() must be awaited first!");
1851         }
1852         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAcceptChannel_get_msg(ptr);
1853         return nativeResponseValue;
1854 }
1855 /* @internal */
1856 export function LDKMessageSendEvent_SendOpenChannel_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_SendOpenChannel_get_node_id(ptr);
1861         return nativeResponseValue;
1862 }
1863 /* @internal */
1864 export function LDKMessageSendEvent_SendOpenChannel_get_msg(ptr: number): number {
1865         if(!isWasmInitialized) {
1866                 throw new Error("initializeWasm() must be awaited first!");
1867         }
1868         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendOpenChannel_get_msg(ptr);
1869         return nativeResponseValue;
1870 }
1871 /* @internal */
1872 export function LDKMessageSendEvent_SendFundingCreated_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_SendFundingCreated_get_node_id(ptr);
1877         return nativeResponseValue;
1878 }
1879 /* @internal */
1880 export function LDKMessageSendEvent_SendFundingCreated_get_msg(ptr: number): number {
1881         if(!isWasmInitialized) {
1882                 throw new Error("initializeWasm() must be awaited first!");
1883         }
1884         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingCreated_get_msg(ptr);
1885         return nativeResponseValue;
1886 }
1887 /* @internal */
1888 export function LDKMessageSendEvent_SendFundingSigned_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_SendFundingSigned_get_node_id(ptr);
1893         return nativeResponseValue;
1894 }
1895 /* @internal */
1896 export function LDKMessageSendEvent_SendFundingSigned_get_msg(ptr: number): number {
1897         if(!isWasmInitialized) {
1898                 throw new Error("initializeWasm() must be awaited first!");
1899         }
1900         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingSigned_get_msg(ptr);
1901         return nativeResponseValue;
1902 }
1903 /* @internal */
1904 export function LDKMessageSendEvent_SendChannelReady_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_SendChannelReady_get_node_id(ptr);
1909         return nativeResponseValue;
1910 }
1911 /* @internal */
1912 export function LDKMessageSendEvent_SendChannelReady_get_msg(ptr: number): number {
1913         if(!isWasmInitialized) {
1914                 throw new Error("initializeWasm() must be awaited first!");
1915         }
1916         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReady_get_msg(ptr);
1917         return nativeResponseValue;
1918 }
1919 /* @internal */
1920 export function LDKMessageSendEvent_SendAnnouncementSignatures_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_SendAnnouncementSignatures_get_node_id(ptr);
1925         return nativeResponseValue;
1926 }
1927 /* @internal */
1928 export function LDKMessageSendEvent_SendAnnouncementSignatures_get_msg(ptr: number): number {
1929         if(!isWasmInitialized) {
1930                 throw new Error("initializeWasm() must be awaited first!");
1931         }
1932         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAnnouncementSignatures_get_msg(ptr);
1933         return nativeResponseValue;
1934 }
1935 /* @internal */
1936 export function LDKMessageSendEvent_UpdateHTLCs_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_UpdateHTLCs_get_node_id(ptr);
1941         return nativeResponseValue;
1942 }
1943 /* @internal */
1944 export function LDKMessageSendEvent_UpdateHTLCs_get_updates(ptr: number): number {
1945         if(!isWasmInitialized) {
1946                 throw new Error("initializeWasm() must be awaited first!");
1947         }
1948         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_UpdateHTLCs_get_updates(ptr);
1949         return nativeResponseValue;
1950 }
1951 /* @internal */
1952 export function LDKMessageSendEvent_SendRevokeAndACK_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_SendRevokeAndACK_get_node_id(ptr);
1957         return nativeResponseValue;
1958 }
1959 /* @internal */
1960 export function LDKMessageSendEvent_SendRevokeAndACK_get_msg(ptr: number): number {
1961         if(!isWasmInitialized) {
1962                 throw new Error("initializeWasm() must be awaited first!");
1963         }
1964         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendRevokeAndACK_get_msg(ptr);
1965         return nativeResponseValue;
1966 }
1967 /* @internal */
1968 export function LDKMessageSendEvent_SendClosingSigned_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_SendClosingSigned_get_node_id(ptr);
1973         return nativeResponseValue;
1974 }
1975 /* @internal */
1976 export function LDKMessageSendEvent_SendClosingSigned_get_msg(ptr: number): number {
1977         if(!isWasmInitialized) {
1978                 throw new Error("initializeWasm() must be awaited first!");
1979         }
1980         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendClosingSigned_get_msg(ptr);
1981         return nativeResponseValue;
1982 }
1983 /* @internal */
1984 export function LDKMessageSendEvent_SendShutdown_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_SendShutdown_get_node_id(ptr);
1989         return nativeResponseValue;
1990 }
1991 /* @internal */
1992 export function LDKMessageSendEvent_SendShutdown_get_msg(ptr: number): number {
1993         if(!isWasmInitialized) {
1994                 throw new Error("initializeWasm() must be awaited first!");
1995         }
1996         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShutdown_get_msg(ptr);
1997         return nativeResponseValue;
1998 }
1999 /* @internal */
2000 export function LDKMessageSendEvent_SendChannelReestablish_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_SendChannelReestablish_get_node_id(ptr);
2005         return nativeResponseValue;
2006 }
2007 /* @internal */
2008 export function LDKMessageSendEvent_SendChannelReestablish_get_msg(ptr: number): number {
2009         if(!isWasmInitialized) {
2010                 throw new Error("initializeWasm() must be awaited first!");
2011         }
2012         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReestablish_get_msg(ptr);
2013         return nativeResponseValue;
2014 }
2015 /* @internal */
2016 export function LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg(ptr: number): number {
2017         if(!isWasmInitialized) {
2018                 throw new Error("initializeWasm() must be awaited first!");
2019         }
2020         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg(ptr);
2021         return nativeResponseValue;
2022 }
2023 /* @internal */
2024 export function LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg(ptr: number): number {
2025         if(!isWasmInitialized) {
2026                 throw new Error("initializeWasm() must be awaited first!");
2027         }
2028         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg(ptr);
2029         return nativeResponseValue;
2030 }
2031 /* @internal */
2032 export function LDKMessageSendEvent_BroadcastNodeAnnouncement_get_msg(ptr: number): number {
2033         if(!isWasmInitialized) {
2034                 throw new Error("initializeWasm() must be awaited first!");
2035         }
2036         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastNodeAnnouncement_get_msg(ptr);
2037         return nativeResponseValue;
2038 }
2039 /* @internal */
2040 export function LDKMessageSendEvent_BroadcastChannelUpdate_get_msg(ptr: number): number {
2041         if(!isWasmInitialized) {
2042                 throw new Error("initializeWasm() must be awaited first!");
2043         }
2044         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelUpdate_get_msg(ptr);
2045         return nativeResponseValue;
2046 }
2047 /* @internal */
2048 export function LDKMessageSendEvent_SendChannelUpdate_get_node_id(ptr: number): number {
2049         if(!isWasmInitialized) {
2050                 throw new Error("initializeWasm() must be awaited first!");
2051         }
2052         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelUpdate_get_node_id(ptr);
2053         return nativeResponseValue;
2054 }
2055 /* @internal */
2056 export function LDKMessageSendEvent_SendChannelUpdate_get_msg(ptr: number): number {
2057         if(!isWasmInitialized) {
2058                 throw new Error("initializeWasm() must be awaited first!");
2059         }
2060         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelUpdate_get_msg(ptr);
2061         return nativeResponseValue;
2062 }
2063 /* @internal */
2064 export function LDKMessageSendEvent_HandleError_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_HandleError_get_node_id(ptr);
2069         return nativeResponseValue;
2070 }
2071 /* @internal */
2072 export function LDKMessageSendEvent_HandleError_get_action(ptr: number): number {
2073         if(!isWasmInitialized) {
2074                 throw new Error("initializeWasm() must be awaited first!");
2075         }
2076         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_HandleError_get_action(ptr);
2077         return nativeResponseValue;
2078 }
2079 /* @internal */
2080 export function LDKMessageSendEvent_SendChannelRangeQuery_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_SendChannelRangeQuery_get_node_id(ptr);
2085         return nativeResponseValue;
2086 }
2087 /* @internal */
2088 export function LDKMessageSendEvent_SendChannelRangeQuery_get_msg(ptr: number): number {
2089         if(!isWasmInitialized) {
2090                 throw new Error("initializeWasm() must be awaited first!");
2091         }
2092         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelRangeQuery_get_msg(ptr);
2093         return nativeResponseValue;
2094 }
2095 /* @internal */
2096 export function LDKMessageSendEvent_SendShortIdsQuery_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_SendShortIdsQuery_get_node_id(ptr);
2101         return nativeResponseValue;
2102 }
2103 /* @internal */
2104 export function LDKMessageSendEvent_SendShortIdsQuery_get_msg(ptr: number): number {
2105         if(!isWasmInitialized) {
2106                 throw new Error("initializeWasm() must be awaited first!");
2107         }
2108         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShortIdsQuery_get_msg(ptr);
2109         return nativeResponseValue;
2110 }
2111 /* @internal */
2112 export function LDKMessageSendEvent_SendReplyChannelRange_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_SendReplyChannelRange_get_node_id(ptr);
2117         return nativeResponseValue;
2118 }
2119 /* @internal */
2120 export function LDKMessageSendEvent_SendReplyChannelRange_get_msg(ptr: number): number {
2121         if(!isWasmInitialized) {
2122                 throw new Error("initializeWasm() must be awaited first!");
2123         }
2124         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendReplyChannelRange_get_msg(ptr);
2125         return nativeResponseValue;
2126 }
2127 /* @internal */
2128 export function LDKMessageSendEvent_SendGossipTimestampFilter_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_SendGossipTimestampFilter_get_node_id(ptr);
2133         return nativeResponseValue;
2134 }
2135 /* @internal */
2136 export function LDKMessageSendEvent_SendGossipTimestampFilter_get_msg(ptr: number): number {
2137         if(!isWasmInitialized) {
2138                 throw new Error("initializeWasm() must be awaited first!");
2139         }
2140         const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendGossipTimestampFilter_get_msg(ptr);
2141         return nativeResponseValue;
2142 }
2143         // struct LDKTxOut CResult_TxOutAccessErrorZ_get_ok(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR owner);
2144 /* @internal */
2145 export function CResult_TxOutAccessErrorZ_get_ok(owner: number): number {
2146         if(!isWasmInitialized) {
2147                 throw new Error("initializeWasm() must be awaited first!");
2148         }
2149         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_get_ok(owner);
2150         return nativeResponseValue;
2151 }
2152         // enum LDKAccessError CResult_TxOutAccessErrorZ_get_err(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR owner);
2153 /* @internal */
2154 export function CResult_TxOutAccessErrorZ_get_err(owner: number): AccessError {
2155         if(!isWasmInitialized) {
2156                 throw new Error("initializeWasm() must be awaited first!");
2157         }
2158         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_get_err(owner);
2159         return nativeResponseValue;
2160 }
2161         // uintptr_t C2Tuple_usizeTransactionZ_get_a(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
2162 /* @internal */
2163 export function C2Tuple_usizeTransactionZ_get_a(owner: number): number {
2164         if(!isWasmInitialized) {
2165                 throw new Error("initializeWasm() must be awaited first!");
2166         }
2167         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_get_a(owner);
2168         return nativeResponseValue;
2169 }
2170         // struct LDKTransaction C2Tuple_usizeTransactionZ_get_b(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
2171 /* @internal */
2172 export function C2Tuple_usizeTransactionZ_get_b(owner: number): number {
2173         if(!isWasmInitialized) {
2174                 throw new Error("initializeWasm() must be awaited first!");
2175         }
2176         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_get_b(owner);
2177         return nativeResponseValue;
2178 }
2179         // void CResult_NoneChannelMonitorUpdateErrZ_get_ok(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR owner);
2180 /* @internal */
2181 export function CResult_NoneChannelMonitorUpdateErrZ_get_ok(owner: number): void {
2182         if(!isWasmInitialized) {
2183                 throw new Error("initializeWasm() must be awaited first!");
2184         }
2185         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_get_ok(owner);
2186         // debug statements here
2187 }
2188         // enum LDKChannelMonitorUpdateErr CResult_NoneChannelMonitorUpdateErrZ_get_err(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR owner);
2189 /* @internal */
2190 export function CResult_NoneChannelMonitorUpdateErrZ_get_err(owner: number): ChannelMonitorUpdateErr {
2191         if(!isWasmInitialized) {
2192                 throw new Error("initializeWasm() must be awaited first!");
2193         }
2194         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_get_err(owner);
2195         return nativeResponseValue;
2196 }
2197 /* @internal */
2198 export class LDKMonitorEvent {
2199         protected constructor() {}
2200 }
2201 /* @internal */
2202 export function LDKMonitorEvent_ty_from_ptr(ptr: number): number {
2203         if(!isWasmInitialized) {
2204                 throw new Error("initializeWasm() must be awaited first!");
2205         }
2206         const nativeResponseValue = wasm.TS_LDKMonitorEvent_ty_from_ptr(ptr);
2207         return nativeResponseValue;
2208 }
2209 /* @internal */
2210 export function LDKMonitorEvent_HTLCEvent_get_htlc_event(ptr: number): number {
2211         if(!isWasmInitialized) {
2212                 throw new Error("initializeWasm() must be awaited first!");
2213         }
2214         const nativeResponseValue = wasm.TS_LDKMonitorEvent_HTLCEvent_get_htlc_event(ptr);
2215         return nativeResponseValue;
2216 }
2217 /* @internal */
2218 export function LDKMonitorEvent_CommitmentTxConfirmed_get_commitment_tx_confirmed(ptr: number): number {
2219         if(!isWasmInitialized) {
2220                 throw new Error("initializeWasm() must be awaited first!");
2221         }
2222         const nativeResponseValue = wasm.TS_LDKMonitorEvent_CommitmentTxConfirmed_get_commitment_tx_confirmed(ptr);
2223         return nativeResponseValue;
2224 }
2225 /* @internal */
2226 export function LDKMonitorEvent_UpdateCompleted_get_funding_txo(ptr: number): number {
2227         if(!isWasmInitialized) {
2228                 throw new Error("initializeWasm() must be awaited first!");
2229         }
2230         const nativeResponseValue = wasm.TS_LDKMonitorEvent_UpdateCompleted_get_funding_txo(ptr);
2231         return nativeResponseValue;
2232 }
2233 /* @internal */
2234 export function LDKMonitorEvent_UpdateCompleted_get_monitor_update_id(ptr: number): bigint {
2235         if(!isWasmInitialized) {
2236                 throw new Error("initializeWasm() must be awaited first!");
2237         }
2238         const nativeResponseValue = wasm.TS_LDKMonitorEvent_UpdateCompleted_get_monitor_update_id(ptr);
2239         return nativeResponseValue;
2240 }
2241 /* @internal */
2242 export function LDKMonitorEvent_UpdateFailed_get_update_failed(ptr: number): number {
2243         if(!isWasmInitialized) {
2244                 throw new Error("initializeWasm() must be awaited first!");
2245         }
2246         const nativeResponseValue = wasm.TS_LDKMonitorEvent_UpdateFailed_get_update_failed(ptr);
2247         return nativeResponseValue;
2248 }
2249         // struct LDKOutPoint C2Tuple_OutPointCVec_MonitorEventZZ_get_a(LDKC2Tuple_OutPointCVec_MonitorEventZZ *NONNULL_PTR owner);
2250 /* @internal */
2251 export function C2Tuple_OutPointCVec_MonitorEventZZ_get_a(owner: number): number {
2252         if(!isWasmInitialized) {
2253                 throw new Error("initializeWasm() must be awaited first!");
2254         }
2255         const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorEventZZ_get_a(owner);
2256         return nativeResponseValue;
2257 }
2258         // struct LDKCVec_MonitorEventZ C2Tuple_OutPointCVec_MonitorEventZZ_get_b(LDKC2Tuple_OutPointCVec_MonitorEventZZ *NONNULL_PTR owner);
2259 /* @internal */
2260 export function C2Tuple_OutPointCVec_MonitorEventZZ_get_b(owner: number): number {
2261         if(!isWasmInitialized) {
2262                 throw new Error("initializeWasm() must be awaited first!");
2263         }
2264         const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorEventZZ_get_b(owner);
2265         return nativeResponseValue;
2266 }
2267 /* @internal */
2268 export class LDKCOption_C2Tuple_usizeTransactionZZ {
2269         protected constructor() {}
2270 }
2271 /* @internal */
2272 export function LDKCOption_C2Tuple_usizeTransactionZZ_ty_from_ptr(ptr: number): number {
2273         if(!isWasmInitialized) {
2274                 throw new Error("initializeWasm() must be awaited first!");
2275         }
2276         const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_usizeTransactionZZ_ty_from_ptr(ptr);
2277         return nativeResponseValue;
2278 }
2279 /* @internal */
2280 export function LDKCOption_C2Tuple_usizeTransactionZZ_Some_get_some(ptr: number): number {
2281         if(!isWasmInitialized) {
2282                 throw new Error("initializeWasm() must be awaited first!");
2283         }
2284         const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_usizeTransactionZZ_Some_get_some(ptr);
2285         return nativeResponseValue;
2286 }
2287         // struct LDKFixedPenaltyScorer CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
2288 /* @internal */
2289 export function CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(owner: number): number {
2290         if(!isWasmInitialized) {
2291                 throw new Error("initializeWasm() must be awaited first!");
2292         }
2293         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(owner);
2294         return nativeResponseValue;
2295 }
2296         // struct LDKDecodeError CResult_FixedPenaltyScorerDecodeErrorZ_get_err(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
2297 /* @internal */
2298 export function CResult_FixedPenaltyScorerDecodeErrorZ_get_err(owner: number): number {
2299         if(!isWasmInitialized) {
2300                 throw new Error("initializeWasm() must be awaited first!");
2301         }
2302         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_get_err(owner);
2303         return nativeResponseValue;
2304 }
2305         // uint64_t C2Tuple_u64u64Z_get_a(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
2306 /* @internal */
2307 export function C2Tuple_u64u64Z_get_a(owner: number): bigint {
2308         if(!isWasmInitialized) {
2309                 throw new Error("initializeWasm() must be awaited first!");
2310         }
2311         const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_get_a(owner);
2312         return nativeResponseValue;
2313 }
2314         // uint64_t C2Tuple_u64u64Z_get_b(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
2315 /* @internal */
2316 export function C2Tuple_u64u64Z_get_b(owner: number): bigint {
2317         if(!isWasmInitialized) {
2318                 throw new Error("initializeWasm() must be awaited first!");
2319         }
2320         const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_get_b(owner);
2321         return nativeResponseValue;
2322 }
2323 /* @internal */
2324 export class LDKCOption_C2Tuple_u64u64ZZ {
2325         protected constructor() {}
2326 }
2327 /* @internal */
2328 export function LDKCOption_C2Tuple_u64u64ZZ_ty_from_ptr(ptr: number): number {
2329         if(!isWasmInitialized) {
2330                 throw new Error("initializeWasm() must be awaited first!");
2331         }
2332         const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_u64u64ZZ_ty_from_ptr(ptr);
2333         return nativeResponseValue;
2334 }
2335 /* @internal */
2336 export function LDKCOption_C2Tuple_u64u64ZZ_Some_get_some(ptr: number): number {
2337         if(!isWasmInitialized) {
2338                 throw new Error("initializeWasm() must be awaited first!");
2339         }
2340         const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_u64u64ZZ_Some_get_some(ptr);
2341         return nativeResponseValue;
2342 }
2343 /* @internal */
2344 export interface LDKLogger {
2345         log (record: number): void;
2346 }
2347
2348 /* @internal */
2349 export function LDKLogger_new(impl: LDKLogger): number {
2350         if(!isWasmInitialized) {
2351                 throw new Error("initializeWasm() must be awaited first!");
2352         }
2353         var new_obj_idx = js_objs.length;
2354         for (var i = 0; i < js_objs.length; i++) {
2355                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
2356         }
2357         js_objs[i] = new WeakRef(impl);
2358         return wasm.TS_LDKLogger_new(i);
2359 }
2360         // struct LDKProbabilisticScorer *CResult_ProbabilisticScorerDecodeErrorZ_get_ok(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
2361 /* @internal */
2362 export function CResult_ProbabilisticScorerDecodeErrorZ_get_ok(owner: number): number {
2363         if(!isWasmInitialized) {
2364                 throw new Error("initializeWasm() must be awaited first!");
2365         }
2366         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_get_ok(owner);
2367         return nativeResponseValue;
2368 }
2369         // struct LDKDecodeError CResult_ProbabilisticScorerDecodeErrorZ_get_err(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
2370 /* @internal */
2371 export function CResult_ProbabilisticScorerDecodeErrorZ_get_err(owner: number): number {
2372         if(!isWasmInitialized) {
2373                 throw new Error("initializeWasm() must be awaited first!");
2374         }
2375         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_get_err(owner);
2376         return nativeResponseValue;
2377 }
2378         // struct LDKInitFeatures CResult_InitFeaturesDecodeErrorZ_get_ok(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
2379 /* @internal */
2380 export function CResult_InitFeaturesDecodeErrorZ_get_ok(owner: number): number {
2381         if(!isWasmInitialized) {
2382                 throw new Error("initializeWasm() must be awaited first!");
2383         }
2384         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_get_ok(owner);
2385         return nativeResponseValue;
2386 }
2387         // struct LDKDecodeError CResult_InitFeaturesDecodeErrorZ_get_err(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
2388 /* @internal */
2389 export function CResult_InitFeaturesDecodeErrorZ_get_err(owner: number): number {
2390         if(!isWasmInitialized) {
2391                 throw new Error("initializeWasm() must be awaited first!");
2392         }
2393         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_get_err(owner);
2394         return nativeResponseValue;
2395 }
2396         // struct LDKChannelFeatures CResult_ChannelFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
2397 /* @internal */
2398 export function CResult_ChannelFeaturesDecodeErrorZ_get_ok(owner: number): number {
2399         if(!isWasmInitialized) {
2400                 throw new Error("initializeWasm() must be awaited first!");
2401         }
2402         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_get_ok(owner);
2403         return nativeResponseValue;
2404 }
2405         // struct LDKDecodeError CResult_ChannelFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
2406 /* @internal */
2407 export function CResult_ChannelFeaturesDecodeErrorZ_get_err(owner: number): number {
2408         if(!isWasmInitialized) {
2409                 throw new Error("initializeWasm() must be awaited first!");
2410         }
2411         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_get_err(owner);
2412         return nativeResponseValue;
2413 }
2414         // struct LDKNodeFeatures CResult_NodeFeaturesDecodeErrorZ_get_ok(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2415 /* @internal */
2416 export function CResult_NodeFeaturesDecodeErrorZ_get_ok(owner: number): number {
2417         if(!isWasmInitialized) {
2418                 throw new Error("initializeWasm() must be awaited first!");
2419         }
2420         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_get_ok(owner);
2421         return nativeResponseValue;
2422 }
2423         // struct LDKDecodeError CResult_NodeFeaturesDecodeErrorZ_get_err(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2424 /* @internal */
2425 export function CResult_NodeFeaturesDecodeErrorZ_get_err(owner: number): number {
2426         if(!isWasmInitialized) {
2427                 throw new Error("initializeWasm() must be awaited first!");
2428         }
2429         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_get_err(owner);
2430         return nativeResponseValue;
2431 }
2432         // struct LDKInvoiceFeatures CResult_InvoiceFeaturesDecodeErrorZ_get_ok(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
2433 /* @internal */
2434 export function CResult_InvoiceFeaturesDecodeErrorZ_get_ok(owner: number): number {
2435         if(!isWasmInitialized) {
2436                 throw new Error("initializeWasm() must be awaited first!");
2437         }
2438         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_get_ok(owner);
2439         return nativeResponseValue;
2440 }
2441         // struct LDKDecodeError CResult_InvoiceFeaturesDecodeErrorZ_get_err(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
2442 /* @internal */
2443 export function CResult_InvoiceFeaturesDecodeErrorZ_get_err(owner: number): number {
2444         if(!isWasmInitialized) {
2445                 throw new Error("initializeWasm() must be awaited first!");
2446         }
2447         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_get_err(owner);
2448         return nativeResponseValue;
2449 }
2450         // struct LDKChannelTypeFeatures CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2451 /* @internal */
2452 export function CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(owner: number): number {
2453         if(!isWasmInitialized) {
2454                 throw new Error("initializeWasm() must be awaited first!");
2455         }
2456         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(owner);
2457         return nativeResponseValue;
2458 }
2459         // struct LDKDecodeError CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
2460 /* @internal */
2461 export function CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(owner: number): number {
2462         if(!isWasmInitialized) {
2463                 throw new Error("initializeWasm() must be awaited first!");
2464         }
2465         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(owner);
2466         return nativeResponseValue;
2467 }
2468         // struct LDKNodeId CResult_NodeIdDecodeErrorZ_get_ok(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
2469 /* @internal */
2470 export function CResult_NodeIdDecodeErrorZ_get_ok(owner: number): number {
2471         if(!isWasmInitialized) {
2472                 throw new Error("initializeWasm() must be awaited first!");
2473         }
2474         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_get_ok(owner);
2475         return nativeResponseValue;
2476 }
2477         // struct LDKDecodeError CResult_NodeIdDecodeErrorZ_get_err(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
2478 /* @internal */
2479 export function CResult_NodeIdDecodeErrorZ_get_err(owner: number): number {
2480         if(!isWasmInitialized) {
2481                 throw new Error("initializeWasm() must be awaited first!");
2482         }
2483         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_get_err(owner);
2484         return nativeResponseValue;
2485 }
2486         // struct LDKCOption_NetworkUpdateZ CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
2487 /* @internal */
2488 export function CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(owner: number): number {
2489         if(!isWasmInitialized) {
2490                 throw new Error("initializeWasm() must be awaited first!");
2491         }
2492         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(owner);
2493         return nativeResponseValue;
2494 }
2495         // struct LDKDecodeError CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
2496 /* @internal */
2497 export function CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(owner: number): number {
2498         if(!isWasmInitialized) {
2499                 throw new Error("initializeWasm() must be awaited first!");
2500         }
2501         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(owner);
2502         return nativeResponseValue;
2503 }
2504 /* @internal */
2505 export interface LDKAccess {
2506         get_utxo (genesis_hash: number, short_channel_id: bigint): number;
2507 }
2508
2509 /* @internal */
2510 export function LDKAccess_new(impl: LDKAccess): number {
2511         if(!isWasmInitialized) {
2512                 throw new Error("initializeWasm() must be awaited first!");
2513         }
2514         var new_obj_idx = js_objs.length;
2515         for (var i = 0; i < js_objs.length; i++) {
2516                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
2517         }
2518         js_objs[i] = new WeakRef(impl);
2519         return wasm.TS_LDKAccess_new(i);
2520 }
2521         // LDKCResult_TxOutAccessErrorZ Access_get_utxo LDKAccess *NONNULL_PTR this_arg, const uint8_t (*genesis_hash)[32], uint64_t short_channel_id
2522 /* @internal */
2523 export function Access_get_utxo(this_arg: number, genesis_hash: number, short_channel_id: bigint): number {
2524         if(!isWasmInitialized) {
2525                 throw new Error("initializeWasm() must be awaited first!");
2526         }
2527         const nativeResponseValue = wasm.TS_Access_get_utxo(this_arg, genesis_hash, short_channel_id);
2528         return nativeResponseValue;
2529 }
2530 /* @internal */
2531 export class LDKCOption_AccessZ {
2532         protected constructor() {}
2533 }
2534 /* @internal */
2535 export function LDKCOption_AccessZ_ty_from_ptr(ptr: number): number {
2536         if(!isWasmInitialized) {
2537                 throw new Error("initializeWasm() must be awaited first!");
2538         }
2539         const nativeResponseValue = wasm.TS_LDKCOption_AccessZ_ty_from_ptr(ptr);
2540         return nativeResponseValue;
2541 }
2542 /* @internal */
2543 export function LDKCOption_AccessZ_Some_get_some(ptr: number): number {
2544         if(!isWasmInitialized) {
2545                 throw new Error("initializeWasm() must be awaited first!");
2546         }
2547         const nativeResponseValue = wasm.TS_LDKCOption_AccessZ_Some_get_some(ptr);
2548         return nativeResponseValue;
2549 }
2550         // bool CResult_boolLightningErrorZ_get_ok(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
2551 /* @internal */
2552 export function CResult_boolLightningErrorZ_get_ok(owner: number): boolean {
2553         if(!isWasmInitialized) {
2554                 throw new Error("initializeWasm() must be awaited first!");
2555         }
2556         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_get_ok(owner);
2557         return nativeResponseValue;
2558 }
2559         // struct LDKLightningError CResult_boolLightningErrorZ_get_err(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
2560 /* @internal */
2561 export function CResult_boolLightningErrorZ_get_err(owner: number): number {
2562         if(!isWasmInitialized) {
2563                 throw new Error("initializeWasm() must be awaited first!");
2564         }
2565         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_get_err(owner);
2566         return nativeResponseValue;
2567 }
2568         // struct LDKChannelAnnouncement C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
2569 /* @internal */
2570 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(owner: number): number {
2571         if(!isWasmInitialized) {
2572                 throw new Error("initializeWasm() must be awaited first!");
2573         }
2574         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(owner);
2575         return nativeResponseValue;
2576 }
2577         // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
2578 /* @internal */
2579 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(owner: number): number {
2580         if(!isWasmInitialized) {
2581                 throw new Error("initializeWasm() must be awaited first!");
2582         }
2583         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(owner);
2584         return nativeResponseValue;
2585 }
2586         // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
2587 /* @internal */
2588 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(owner: number): number {
2589         if(!isWasmInitialized) {
2590                 throw new Error("initializeWasm() must be awaited first!");
2591         }
2592         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(owner);
2593         return nativeResponseValue;
2594 }
2595         // void CResult_NoneLightningErrorZ_get_ok(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
2596 /* @internal */
2597 export function CResult_NoneLightningErrorZ_get_ok(owner: number): void {
2598         if(!isWasmInitialized) {
2599                 throw new Error("initializeWasm() must be awaited first!");
2600         }
2601         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_get_ok(owner);
2602         // debug statements here
2603 }
2604         // struct LDKLightningError CResult_NoneLightningErrorZ_get_err(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
2605 /* @internal */
2606 export function CResult_NoneLightningErrorZ_get_err(owner: number): number {
2607         if(!isWasmInitialized) {
2608                 throw new Error("initializeWasm() must be awaited first!");
2609         }
2610         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_get_err(owner);
2611         return nativeResponseValue;
2612 }
2613         // struct LDKChannelUpdateInfo CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
2614 /* @internal */
2615 export function CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(owner: number): number {
2616         if(!isWasmInitialized) {
2617                 throw new Error("initializeWasm() must be awaited first!");
2618         }
2619         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(owner);
2620         return nativeResponseValue;
2621 }
2622         // struct LDKDecodeError CResult_ChannelUpdateInfoDecodeErrorZ_get_err(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
2623 /* @internal */
2624 export function CResult_ChannelUpdateInfoDecodeErrorZ_get_err(owner: number): number {
2625         if(!isWasmInitialized) {
2626                 throw new Error("initializeWasm() must be awaited first!");
2627         }
2628         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_get_err(owner);
2629         return nativeResponseValue;
2630 }
2631         // struct LDKChannelInfo CResult_ChannelInfoDecodeErrorZ_get_ok(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
2632 /* @internal */
2633 export function CResult_ChannelInfoDecodeErrorZ_get_ok(owner: number): number {
2634         if(!isWasmInitialized) {
2635                 throw new Error("initializeWasm() must be awaited first!");
2636         }
2637         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_get_ok(owner);
2638         return nativeResponseValue;
2639 }
2640         // struct LDKDecodeError CResult_ChannelInfoDecodeErrorZ_get_err(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
2641 /* @internal */
2642 export function CResult_ChannelInfoDecodeErrorZ_get_err(owner: number): number {
2643         if(!isWasmInitialized) {
2644                 throw new Error("initializeWasm() must be awaited first!");
2645         }
2646         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_get_err(owner);
2647         return nativeResponseValue;
2648 }
2649         // struct LDKRoutingFees CResult_RoutingFeesDecodeErrorZ_get_ok(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
2650 /* @internal */
2651 export function CResult_RoutingFeesDecodeErrorZ_get_ok(owner: number): number {
2652         if(!isWasmInitialized) {
2653                 throw new Error("initializeWasm() must be awaited first!");
2654         }
2655         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_get_ok(owner);
2656         return nativeResponseValue;
2657 }
2658         // struct LDKDecodeError CResult_RoutingFeesDecodeErrorZ_get_err(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
2659 /* @internal */
2660 export function CResult_RoutingFeesDecodeErrorZ_get_err(owner: number): number {
2661         if(!isWasmInitialized) {
2662                 throw new Error("initializeWasm() must be awaited first!");
2663         }
2664         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_get_err(owner);
2665         return nativeResponseValue;
2666 }
2667 /* @internal */
2668 export class LDKNetAddress {
2669         protected constructor() {}
2670 }
2671 /* @internal */
2672 export function LDKNetAddress_ty_from_ptr(ptr: number): number {
2673         if(!isWasmInitialized) {
2674                 throw new Error("initializeWasm() must be awaited first!");
2675         }
2676         const nativeResponseValue = wasm.TS_LDKNetAddress_ty_from_ptr(ptr);
2677         return nativeResponseValue;
2678 }
2679 /* @internal */
2680 export function LDKNetAddress_IPv4_get_addr(ptr: number): number {
2681         if(!isWasmInitialized) {
2682                 throw new Error("initializeWasm() must be awaited first!");
2683         }
2684         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv4_get_addr(ptr);
2685         return nativeResponseValue;
2686 }
2687 /* @internal */
2688 export function LDKNetAddress_IPv4_get_port(ptr: number): number {
2689         if(!isWasmInitialized) {
2690                 throw new Error("initializeWasm() must be awaited first!");
2691         }
2692         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv4_get_port(ptr);
2693         return nativeResponseValue;
2694 }
2695 /* @internal */
2696 export function LDKNetAddress_IPv6_get_addr(ptr: number): number {
2697         if(!isWasmInitialized) {
2698                 throw new Error("initializeWasm() must be awaited first!");
2699         }
2700         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv6_get_addr(ptr);
2701         return nativeResponseValue;
2702 }
2703 /* @internal */
2704 export function LDKNetAddress_IPv6_get_port(ptr: number): number {
2705         if(!isWasmInitialized) {
2706                 throw new Error("initializeWasm() must be awaited first!");
2707         }
2708         const nativeResponseValue = wasm.TS_LDKNetAddress_IPv6_get_port(ptr);
2709         return nativeResponseValue;
2710 }
2711 /* @internal */
2712 export function LDKNetAddress_OnionV2_get_onion_v2(ptr: number): number {
2713         if(!isWasmInitialized) {
2714                 throw new Error("initializeWasm() must be awaited first!");
2715         }
2716         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV2_get_onion_v2(ptr);
2717         return nativeResponseValue;
2718 }
2719 /* @internal */
2720 export function LDKNetAddress_OnionV3_get_ed25519_pubkey(ptr: number): number {
2721         if(!isWasmInitialized) {
2722                 throw new Error("initializeWasm() must be awaited first!");
2723         }
2724         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_ed25519_pubkey(ptr);
2725         return nativeResponseValue;
2726 }
2727 /* @internal */
2728 export function LDKNetAddress_OnionV3_get_checksum(ptr: number): number {
2729         if(!isWasmInitialized) {
2730                 throw new Error("initializeWasm() must be awaited first!");
2731         }
2732         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_checksum(ptr);
2733         return nativeResponseValue;
2734 }
2735 /* @internal */
2736 export function LDKNetAddress_OnionV3_get_version(ptr: number): number {
2737         if(!isWasmInitialized) {
2738                 throw new Error("initializeWasm() must be awaited first!");
2739         }
2740         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_version(ptr);
2741         return nativeResponseValue;
2742 }
2743 /* @internal */
2744 export function LDKNetAddress_OnionV3_get_port(ptr: number): number {
2745         if(!isWasmInitialized) {
2746                 throw new Error("initializeWasm() must be awaited first!");
2747         }
2748         const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_port(ptr);
2749         return nativeResponseValue;
2750 }
2751         // struct LDKNodeAnnouncementInfo CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
2752 /* @internal */
2753 export function CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(owner: number): number {
2754         if(!isWasmInitialized) {
2755                 throw new Error("initializeWasm() must be awaited first!");
2756         }
2757         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(owner);
2758         return nativeResponseValue;
2759 }
2760         // struct LDKDecodeError CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
2761 /* @internal */
2762 export function CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(owner: number): number {
2763         if(!isWasmInitialized) {
2764                 throw new Error("initializeWasm() must be awaited first!");
2765         }
2766         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(owner);
2767         return nativeResponseValue;
2768 }
2769         // struct LDKNodeAlias CResult_NodeAliasDecodeErrorZ_get_ok(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
2770 /* @internal */
2771 export function CResult_NodeAliasDecodeErrorZ_get_ok(owner: number): number {
2772         if(!isWasmInitialized) {
2773                 throw new Error("initializeWasm() must be awaited first!");
2774         }
2775         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_get_ok(owner);
2776         return nativeResponseValue;
2777 }
2778         // struct LDKDecodeError CResult_NodeAliasDecodeErrorZ_get_err(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
2779 /* @internal */
2780 export function CResult_NodeAliasDecodeErrorZ_get_err(owner: number): number {
2781         if(!isWasmInitialized) {
2782                 throw new Error("initializeWasm() must be awaited first!");
2783         }
2784         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_get_err(owner);
2785         return nativeResponseValue;
2786 }
2787         // struct LDKNodeInfo CResult_NodeInfoDecodeErrorZ_get_ok(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
2788 /* @internal */
2789 export function CResult_NodeInfoDecodeErrorZ_get_ok(owner: number): number {
2790         if(!isWasmInitialized) {
2791                 throw new Error("initializeWasm() must be awaited first!");
2792         }
2793         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_get_ok(owner);
2794         return nativeResponseValue;
2795 }
2796         // struct LDKDecodeError CResult_NodeInfoDecodeErrorZ_get_err(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
2797 /* @internal */
2798 export function CResult_NodeInfoDecodeErrorZ_get_err(owner: number): number {
2799         if(!isWasmInitialized) {
2800                 throw new Error("initializeWasm() must be awaited first!");
2801         }
2802         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_get_err(owner);
2803         return nativeResponseValue;
2804 }
2805         // struct LDKNetworkGraph *CResult_NetworkGraphDecodeErrorZ_get_ok(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
2806 /* @internal */
2807 export function CResult_NetworkGraphDecodeErrorZ_get_ok(owner: number): number {
2808         if(!isWasmInitialized) {
2809                 throw new Error("initializeWasm() must be awaited first!");
2810         }
2811         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_get_ok(owner);
2812         return nativeResponseValue;
2813 }
2814         // struct LDKDecodeError CResult_NetworkGraphDecodeErrorZ_get_err(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
2815 /* @internal */
2816 export function CResult_NetworkGraphDecodeErrorZ_get_err(owner: number): number {
2817         if(!isWasmInitialized) {
2818                 throw new Error("initializeWasm() must be awaited first!");
2819         }
2820         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_get_err(owner);
2821         return nativeResponseValue;
2822 }
2823 /* @internal */
2824 export class LDKCOption_CVec_NetAddressZZ {
2825         protected constructor() {}
2826 }
2827 /* @internal */
2828 export function LDKCOption_CVec_NetAddressZZ_ty_from_ptr(ptr: number): number {
2829         if(!isWasmInitialized) {
2830                 throw new Error("initializeWasm() must be awaited first!");
2831         }
2832         const nativeResponseValue = wasm.TS_LDKCOption_CVec_NetAddressZZ_ty_from_ptr(ptr);
2833         return nativeResponseValue;
2834 }
2835 /* @internal */
2836 export function LDKCOption_CVec_NetAddressZZ_Some_get_some(ptr: number): number {
2837         if(!isWasmInitialized) {
2838                 throw new Error("initializeWasm() must be awaited first!");
2839         }
2840         const nativeResponseValue = wasm.TS_LDKCOption_CVec_NetAddressZZ_Some_get_some(ptr);
2841         return nativeResponseValue;
2842 }
2843         // struct LDKDelayedPaymentOutputDescriptor CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2844 /* @internal */
2845 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(owner: number): number {
2846         if(!isWasmInitialized) {
2847                 throw new Error("initializeWasm() must be awaited first!");
2848         }
2849         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(owner);
2850         return nativeResponseValue;
2851 }
2852         // struct LDKDecodeError CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2853 /* @internal */
2854 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(owner: number): number {
2855         if(!isWasmInitialized) {
2856                 throw new Error("initializeWasm() must be awaited first!");
2857         }
2858         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(owner);
2859         return nativeResponseValue;
2860 }
2861         // struct LDKStaticPaymentOutputDescriptor CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2862 /* @internal */
2863 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(owner: number): number {
2864         if(!isWasmInitialized) {
2865                 throw new Error("initializeWasm() must be awaited first!");
2866         }
2867         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(owner);
2868         return nativeResponseValue;
2869 }
2870         // struct LDKDecodeError CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2871 /* @internal */
2872 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(owner: number): number {
2873         if(!isWasmInitialized) {
2874                 throw new Error("initializeWasm() must be awaited first!");
2875         }
2876         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(owner);
2877         return nativeResponseValue;
2878 }
2879         // struct LDKSpendableOutputDescriptor CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2880 /* @internal */
2881 export function CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(owner: number): number {
2882         if(!isWasmInitialized) {
2883                 throw new Error("initializeWasm() must be awaited first!");
2884         }
2885         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(owner);
2886         return nativeResponseValue;
2887 }
2888         // struct LDKDecodeError CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
2889 /* @internal */
2890 export function CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(owner: number): number {
2891         if(!isWasmInitialized) {
2892                 throw new Error("initializeWasm() must be awaited first!");
2893         }
2894         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(owner);
2895         return nativeResponseValue;
2896 }
2897         // struct LDKSignature C2Tuple_SignatureCVec_SignatureZZ_get_a(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
2898 /* @internal */
2899 export function C2Tuple_SignatureCVec_SignatureZZ_get_a(owner: number): number {
2900         if(!isWasmInitialized) {
2901                 throw new Error("initializeWasm() must be awaited first!");
2902         }
2903         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_get_a(owner);
2904         return nativeResponseValue;
2905 }
2906         // struct LDKCVec_SignatureZ C2Tuple_SignatureCVec_SignatureZZ_get_b(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
2907 /* @internal */
2908 export function C2Tuple_SignatureCVec_SignatureZZ_get_b(owner: number): number {
2909         if(!isWasmInitialized) {
2910                 throw new Error("initializeWasm() must be awaited first!");
2911         }
2912         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_get_b(owner);
2913         return nativeResponseValue;
2914 }
2915         // struct LDKC2Tuple_SignatureCVec_SignatureZZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
2916 /* @internal */
2917 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(owner: number): number {
2918         if(!isWasmInitialized) {
2919                 throw new Error("initializeWasm() must be awaited first!");
2920         }
2921         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(owner);
2922         return nativeResponseValue;
2923 }
2924         // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
2925 /* @internal */
2926 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(owner: number): void {
2927         if(!isWasmInitialized) {
2928                 throw new Error("initializeWasm() must be awaited first!");
2929         }
2930         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(owner);
2931         // debug statements here
2932 }
2933         // struct LDKSignature CResult_SignatureNoneZ_get_ok(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
2934 /* @internal */
2935 export function CResult_SignatureNoneZ_get_ok(owner: number): number {
2936         if(!isWasmInitialized) {
2937                 throw new Error("initializeWasm() must be awaited first!");
2938         }
2939         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_get_ok(owner);
2940         return nativeResponseValue;
2941 }
2942         // void CResult_SignatureNoneZ_get_err(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
2943 /* @internal */
2944 export function CResult_SignatureNoneZ_get_err(owner: number): void {
2945         if(!isWasmInitialized) {
2946                 throw new Error("initializeWasm() must be awaited first!");
2947         }
2948         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_get_err(owner);
2949         // debug statements here
2950 }
2951         // struct LDKSignature C2Tuple_SignatureSignatureZ_get_a(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR owner);
2952 /* @internal */
2953 export function C2Tuple_SignatureSignatureZ_get_a(owner: number): number {
2954         if(!isWasmInitialized) {
2955                 throw new Error("initializeWasm() must be awaited first!");
2956         }
2957         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_get_a(owner);
2958         return nativeResponseValue;
2959 }
2960         // struct LDKSignature C2Tuple_SignatureSignatureZ_get_b(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR owner);
2961 /* @internal */
2962 export function C2Tuple_SignatureSignatureZ_get_b(owner: number): number {
2963         if(!isWasmInitialized) {
2964                 throw new Error("initializeWasm() must be awaited first!");
2965         }
2966         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_get_b(owner);
2967         return nativeResponseValue;
2968 }
2969         // struct LDKC2Tuple_SignatureSignatureZ CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR owner);
2970 /* @internal */
2971 export function CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(owner: number): number {
2972         if(!isWasmInitialized) {
2973                 throw new Error("initializeWasm() must be awaited first!");
2974         }
2975         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_get_ok(owner);
2976         return nativeResponseValue;
2977 }
2978         // void CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR owner);
2979 /* @internal */
2980 export function CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(owner: number): void {
2981         if(!isWasmInitialized) {
2982                 throw new Error("initializeWasm() must be awaited first!");
2983         }
2984         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_get_err(owner);
2985         // debug statements here
2986 }
2987         // struct LDKSecretKey CResult_SecretKeyNoneZ_get_ok(LDKCResult_SecretKeyNoneZ *NONNULL_PTR owner);
2988 /* @internal */
2989 export function CResult_SecretKeyNoneZ_get_ok(owner: number): number {
2990         if(!isWasmInitialized) {
2991                 throw new Error("initializeWasm() must be awaited first!");
2992         }
2993         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_get_ok(owner);
2994         return nativeResponseValue;
2995 }
2996         // void CResult_SecretKeyNoneZ_get_err(LDKCResult_SecretKeyNoneZ *NONNULL_PTR owner);
2997 /* @internal */
2998 export function CResult_SecretKeyNoneZ_get_err(owner: number): void {
2999         if(!isWasmInitialized) {
3000                 throw new Error("initializeWasm() must be awaited first!");
3001         }
3002         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_get_err(owner);
3003         // debug statements here
3004 }
3005 /* @internal */
3006 export interface LDKBaseSign {
3007         get_per_commitment_point (idx: bigint): number;
3008         release_commitment_secret (idx: bigint): number;
3009         validate_holder_commitment (holder_tx: number, preimages: number): number;
3010         channel_keys_id (): number;
3011         sign_counterparty_commitment (commitment_tx: number, preimages: number): number;
3012         validate_counterparty_revocation (idx: bigint, secret: number): number;
3013         sign_holder_commitment_and_htlcs (commitment_tx: number): number;
3014         sign_justice_revoked_output (justice_tx: number, input: number, amount: bigint, per_commitment_key: number): number;
3015         sign_justice_revoked_htlc (justice_tx: number, input: number, amount: bigint, per_commitment_key: number, htlc: number): number;
3016         sign_counterparty_htlc_transaction (htlc_tx: number, input: number, amount: bigint, per_commitment_point: number, htlc: number): number;
3017         sign_closing_transaction (closing_tx: number): number;
3018         sign_channel_announcement (msg: number): number;
3019         ready_channel (channel_parameters: number): void;
3020 }
3021
3022 /* @internal */
3023 export function LDKBaseSign_new(impl: LDKBaseSign, pubkeys: number): number {
3024         if(!isWasmInitialized) {
3025                 throw new Error("initializeWasm() must be awaited first!");
3026         }
3027         var new_obj_idx = js_objs.length;
3028         for (var i = 0; i < js_objs.length; i++) {
3029                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3030         }
3031         js_objs[i] = new WeakRef(impl);
3032         return wasm.TS_LDKBaseSign_new(i);
3033 }
3034         // LDKPublicKey BaseSign_get_per_commitment_point LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx
3035 /* @internal */
3036 export function BaseSign_get_per_commitment_point(this_arg: number, idx: bigint): number {
3037         if(!isWasmInitialized) {
3038                 throw new Error("initializeWasm() must be awaited first!");
3039         }
3040         const nativeResponseValue = wasm.TS_BaseSign_get_per_commitment_point(this_arg, idx);
3041         return nativeResponseValue;
3042 }
3043         // LDKThirtyTwoBytes BaseSign_release_commitment_secret LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx
3044 /* @internal */
3045 export function BaseSign_release_commitment_secret(this_arg: number, idx: bigint): number {
3046         if(!isWasmInitialized) {
3047                 throw new Error("initializeWasm() must be awaited first!");
3048         }
3049         const nativeResponseValue = wasm.TS_BaseSign_release_commitment_secret(this_arg, idx);
3050         return nativeResponseValue;
3051 }
3052         // LDKCResult_NoneNoneZ BaseSign_validate_holder_commitment LDKBaseSign *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR holder_tx, struct LDKCVec_PaymentPreimageZ preimages
3053 /* @internal */
3054 export function BaseSign_validate_holder_commitment(this_arg: number, holder_tx: number, preimages: number): number {
3055         if(!isWasmInitialized) {
3056                 throw new Error("initializeWasm() must be awaited first!");
3057         }
3058         const nativeResponseValue = wasm.TS_BaseSign_validate_holder_commitment(this_arg, holder_tx, preimages);
3059         return nativeResponseValue;
3060 }
3061         // LDKThirtyTwoBytes BaseSign_channel_keys_id LDKBaseSign *NONNULL_PTR this_arg
3062 /* @internal */
3063 export function BaseSign_channel_keys_id(this_arg: number): number {
3064         if(!isWasmInitialized) {
3065                 throw new Error("initializeWasm() must be awaited first!");
3066         }
3067         const nativeResponseValue = wasm.TS_BaseSign_channel_keys_id(this_arg);
3068         return nativeResponseValue;
3069 }
3070         // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ BaseSign_sign_counterparty_commitment LDKBaseSign *NONNULL_PTR this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx, struct LDKCVec_PaymentPreimageZ preimages
3071 /* @internal */
3072 export function BaseSign_sign_counterparty_commitment(this_arg: number, commitment_tx: number, preimages: number): number {
3073         if(!isWasmInitialized) {
3074                 throw new Error("initializeWasm() must be awaited first!");
3075         }
3076         const nativeResponseValue = wasm.TS_BaseSign_sign_counterparty_commitment(this_arg, commitment_tx, preimages);
3077         return nativeResponseValue;
3078 }
3079         // LDKCResult_NoneNoneZ BaseSign_validate_counterparty_revocation LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx, const uint8_t (*secret)[32]
3080 /* @internal */
3081 export function BaseSign_validate_counterparty_revocation(this_arg: number, idx: bigint, secret: number): number {
3082         if(!isWasmInitialized) {
3083                 throw new Error("initializeWasm() must be awaited first!");
3084         }
3085         const nativeResponseValue = wasm.TS_BaseSign_validate_counterparty_revocation(this_arg, idx, secret);
3086         return nativeResponseValue;
3087 }
3088         // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ BaseSign_sign_holder_commitment_and_htlcs LDKBaseSign *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx
3089 /* @internal */
3090 export function BaseSign_sign_holder_commitment_and_htlcs(this_arg: number, commitment_tx: number): number {
3091         if(!isWasmInitialized) {
3092                 throw new Error("initializeWasm() must be awaited first!");
3093         }
3094         const nativeResponseValue = wasm.TS_BaseSign_sign_holder_commitment_and_htlcs(this_arg, commitment_tx);
3095         return nativeResponseValue;
3096 }
3097         // 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]
3098 /* @internal */
3099 export function BaseSign_sign_justice_revoked_output(this_arg: number, justice_tx: number, input: number, amount: bigint, per_commitment_key: number): number {
3100         if(!isWasmInitialized) {
3101                 throw new Error("initializeWasm() must be awaited first!");
3102         }
3103         const nativeResponseValue = wasm.TS_BaseSign_sign_justice_revoked_output(this_arg, justice_tx, input, amount, per_commitment_key);
3104         return nativeResponseValue;
3105 }
3106         // 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
3107 /* @internal */
3108 export function BaseSign_sign_justice_revoked_htlc(this_arg: number, justice_tx: number, input: number, amount: bigint, per_commitment_key: number, htlc: number): number {
3109         if(!isWasmInitialized) {
3110                 throw new Error("initializeWasm() must be awaited first!");
3111         }
3112         const nativeResponseValue = wasm.TS_BaseSign_sign_justice_revoked_htlc(this_arg, justice_tx, input, amount, per_commitment_key, htlc);
3113         return nativeResponseValue;
3114 }
3115         // 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
3116 /* @internal */
3117 export function BaseSign_sign_counterparty_htlc_transaction(this_arg: number, htlc_tx: number, input: number, amount: bigint, per_commitment_point: number, htlc: number): number {
3118         if(!isWasmInitialized) {
3119                 throw new Error("initializeWasm() must be awaited first!");
3120         }
3121         const nativeResponseValue = wasm.TS_BaseSign_sign_counterparty_htlc_transaction(this_arg, htlc_tx, input, amount, per_commitment_point, htlc);
3122         return nativeResponseValue;
3123 }
3124         // LDKCResult_SignatureNoneZ BaseSign_sign_closing_transaction LDKBaseSign *NONNULL_PTR this_arg, const struct LDKClosingTransaction *NONNULL_PTR closing_tx
3125 /* @internal */
3126 export function BaseSign_sign_closing_transaction(this_arg: number, closing_tx: number): number {
3127         if(!isWasmInitialized) {
3128                 throw new Error("initializeWasm() must be awaited first!");
3129         }
3130         const nativeResponseValue = wasm.TS_BaseSign_sign_closing_transaction(this_arg, closing_tx);
3131         return nativeResponseValue;
3132 }
3133         // LDKCResult_C2Tuple_SignatureSignatureZNoneZ BaseSign_sign_channel_announcement LDKBaseSign *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg
3134 /* @internal */
3135 export function BaseSign_sign_channel_announcement(this_arg: number, msg: number): number {
3136         if(!isWasmInitialized) {
3137                 throw new Error("initializeWasm() must be awaited first!");
3138         }
3139         const nativeResponseValue = wasm.TS_BaseSign_sign_channel_announcement(this_arg, msg);
3140         return nativeResponseValue;
3141 }
3142         // void BaseSign_ready_channel LDKBaseSign *NONNULL_PTR this_arg, const struct LDKChannelTransactionParameters *NONNULL_PTR channel_parameters
3143 /* @internal */
3144 export function BaseSign_ready_channel(this_arg: number, channel_parameters: number): void {
3145         if(!isWasmInitialized) {
3146                 throw new Error("initializeWasm() must be awaited first!");
3147         }
3148         const nativeResponseValue = wasm.TS_BaseSign_ready_channel(this_arg, channel_parameters);
3149         // debug statements here
3150 }
3151         // LDKChannelPublicKeys BaseSign_get_pubkeys LDKBaseSign *NONNULL_PTR this_arg
3152 /* @internal */
3153 export function BaseSign_get_pubkeys(this_arg: number): number {
3154         if(!isWasmInitialized) {
3155                 throw new Error("initializeWasm() must be awaited first!");
3156         }
3157         const nativeResponseValue = wasm.TS_BaseSign_get_pubkeys(this_arg);
3158         return nativeResponseValue;
3159 }
3160 /* @internal */
3161 export interface LDKSign {
3162         write (): number;
3163 }
3164
3165 /* @internal */
3166 export function LDKSign_new(impl: LDKSign, BaseSign: LDKBaseSign, pubkeys: number): number {
3167         if(!isWasmInitialized) {
3168                 throw new Error("initializeWasm() must be awaited first!");
3169         }
3170         var new_obj_idx = js_objs.length;
3171         for (var i = 0; i < js_objs.length; i++) {
3172                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3173         }
3174         js_objs[i] = new WeakRef(impl);
3175         return wasm.TS_LDKSign_new(i);
3176 }
3177         // LDKCVec_u8Z Sign_write LDKSign *NONNULL_PTR this_arg
3178 /* @internal */
3179 export function Sign_write(this_arg: number): number {
3180         if(!isWasmInitialized) {
3181                 throw new Error("initializeWasm() must be awaited first!");
3182         }
3183         const nativeResponseValue = wasm.TS_Sign_write(this_arg);
3184         return nativeResponseValue;
3185 }
3186         // struct LDKSign CResult_SignDecodeErrorZ_get_ok(LDKCResult_SignDecodeErrorZ *NONNULL_PTR owner);
3187 /* @internal */
3188 export function CResult_SignDecodeErrorZ_get_ok(owner: number): number {
3189         if(!isWasmInitialized) {
3190                 throw new Error("initializeWasm() must be awaited first!");
3191         }
3192         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_get_ok(owner);
3193         return nativeResponseValue;
3194 }
3195         // struct LDKDecodeError CResult_SignDecodeErrorZ_get_err(LDKCResult_SignDecodeErrorZ *NONNULL_PTR owner);
3196 /* @internal */
3197 export function CResult_SignDecodeErrorZ_get_err(owner: number): number {
3198         if(!isWasmInitialized) {
3199                 throw new Error("initializeWasm() must be awaited first!");
3200         }
3201         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_get_err(owner);
3202         return nativeResponseValue;
3203 }
3204         // struct LDKRecoverableSignature CResult_RecoverableSignatureNoneZ_get_ok(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
3205 /* @internal */
3206 export function CResult_RecoverableSignatureNoneZ_get_ok(owner: number): number {
3207         if(!isWasmInitialized) {
3208                 throw new Error("initializeWasm() must be awaited first!");
3209         }
3210         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_get_ok(owner);
3211         return nativeResponseValue;
3212 }
3213         // void CResult_RecoverableSignatureNoneZ_get_err(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
3214 /* @internal */
3215 export function CResult_RecoverableSignatureNoneZ_get_err(owner: number): void {
3216         if(!isWasmInitialized) {
3217                 throw new Error("initializeWasm() must be awaited first!");
3218         }
3219         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_get_err(owner);
3220         // debug statements here
3221 }
3222         // struct LDKCVec_CVec_u8ZZ CResult_CVec_CVec_u8ZZNoneZ_get_ok(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
3223 /* @internal */
3224 export function CResult_CVec_CVec_u8ZZNoneZ_get_ok(owner: number): number {
3225         if(!isWasmInitialized) {
3226                 throw new Error("initializeWasm() must be awaited first!");
3227         }
3228         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_get_ok(owner);
3229         return nativeResponseValue;
3230 }
3231         // void CResult_CVec_CVec_u8ZZNoneZ_get_err(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
3232 /* @internal */
3233 export function CResult_CVec_CVec_u8ZZNoneZ_get_err(owner: number): void {
3234         if(!isWasmInitialized) {
3235                 throw new Error("initializeWasm() must be awaited first!");
3236         }
3237         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_get_err(owner);
3238         // debug statements here
3239 }
3240         // struct LDKInMemorySigner CResult_InMemorySignerDecodeErrorZ_get_ok(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
3241 /* @internal */
3242 export function CResult_InMemorySignerDecodeErrorZ_get_ok(owner: number): number {
3243         if(!isWasmInitialized) {
3244                 throw new Error("initializeWasm() must be awaited first!");
3245         }
3246         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_get_ok(owner);
3247         return nativeResponseValue;
3248 }
3249         // struct LDKDecodeError CResult_InMemorySignerDecodeErrorZ_get_err(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
3250 /* @internal */
3251 export function CResult_InMemorySignerDecodeErrorZ_get_err(owner: number): number {
3252         if(!isWasmInitialized) {
3253                 throw new Error("initializeWasm() must be awaited first!");
3254         }
3255         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_get_err(owner);
3256         return nativeResponseValue;
3257 }
3258         // struct LDKTransaction CResult_TransactionNoneZ_get_ok(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
3259 /* @internal */
3260 export function CResult_TransactionNoneZ_get_ok(owner: number): number {
3261         if(!isWasmInitialized) {
3262                 throw new Error("initializeWasm() must be awaited first!");
3263         }
3264         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_get_ok(owner);
3265         return nativeResponseValue;
3266 }
3267         // void CResult_TransactionNoneZ_get_err(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
3268 /* @internal */
3269 export function CResult_TransactionNoneZ_get_err(owner: number): void {
3270         if(!isWasmInitialized) {
3271                 throw new Error("initializeWasm() must be awaited first!");
3272         }
3273         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_get_err(owner);
3274         // debug statements here
3275 }
3276 /* @internal */
3277 export class LDKCOption_u16Z {
3278         protected constructor() {}
3279 }
3280 /* @internal */
3281 export function LDKCOption_u16Z_ty_from_ptr(ptr: number): number {
3282         if(!isWasmInitialized) {
3283                 throw new Error("initializeWasm() must be awaited first!");
3284         }
3285         const nativeResponseValue = wasm.TS_LDKCOption_u16Z_ty_from_ptr(ptr);
3286         return nativeResponseValue;
3287 }
3288 /* @internal */
3289 export function LDKCOption_u16Z_Some_get_some(ptr: number): number {
3290         if(!isWasmInitialized) {
3291                 throw new Error("initializeWasm() must be awaited first!");
3292         }
3293         const nativeResponseValue = wasm.TS_LDKCOption_u16Z_Some_get_some(ptr);
3294         return nativeResponseValue;
3295 }
3296 /* @internal */
3297 export class LDKAPIError {
3298         protected constructor() {}
3299 }
3300 /* @internal */
3301 export function LDKAPIError_ty_from_ptr(ptr: number): number {
3302         if(!isWasmInitialized) {
3303                 throw new Error("initializeWasm() must be awaited first!");
3304         }
3305         const nativeResponseValue = wasm.TS_LDKAPIError_ty_from_ptr(ptr);
3306         return nativeResponseValue;
3307 }
3308 /* @internal */
3309 export function LDKAPIError_APIMisuseError_get_err(ptr: number): number {
3310         if(!isWasmInitialized) {
3311                 throw new Error("initializeWasm() must be awaited first!");
3312         }
3313         const nativeResponseValue = wasm.TS_LDKAPIError_APIMisuseError_get_err(ptr);
3314         return nativeResponseValue;
3315 }
3316 /* @internal */
3317 export function LDKAPIError_FeeRateTooHigh_get_err(ptr: number): number {
3318         if(!isWasmInitialized) {
3319                 throw new Error("initializeWasm() must be awaited first!");
3320         }
3321         const nativeResponseValue = wasm.TS_LDKAPIError_FeeRateTooHigh_get_err(ptr);
3322         return nativeResponseValue;
3323 }
3324 /* @internal */
3325 export function LDKAPIError_FeeRateTooHigh_get_feerate(ptr: number): number {
3326         if(!isWasmInitialized) {
3327                 throw new Error("initializeWasm() must be awaited first!");
3328         }
3329         const nativeResponseValue = wasm.TS_LDKAPIError_FeeRateTooHigh_get_feerate(ptr);
3330         return nativeResponseValue;
3331 }
3332 /* @internal */
3333 export function LDKAPIError_RouteError_get_err(ptr: number): number {
3334         if(!isWasmInitialized) {
3335                 throw new Error("initializeWasm() must be awaited first!");
3336         }
3337         const nativeResponseValue = wasm.TS_LDKAPIError_RouteError_get_err(ptr);
3338         return nativeResponseValue;
3339 }
3340 /* @internal */
3341 export function LDKAPIError_ChannelUnavailable_get_err(ptr: number): number {
3342         if(!isWasmInitialized) {
3343                 throw new Error("initializeWasm() must be awaited first!");
3344         }
3345         const nativeResponseValue = wasm.TS_LDKAPIError_ChannelUnavailable_get_err(ptr);
3346         return nativeResponseValue;
3347 }
3348 /* @internal */
3349 export function LDKAPIError_IncompatibleShutdownScript_get_script(ptr: number): number {
3350         if(!isWasmInitialized) {
3351                 throw new Error("initializeWasm() must be awaited first!");
3352         }
3353         const nativeResponseValue = wasm.TS_LDKAPIError_IncompatibleShutdownScript_get_script(ptr);
3354         return nativeResponseValue;
3355 }
3356         // void CResult_NoneAPIErrorZ_get_ok(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
3357 /* @internal */
3358 export function CResult_NoneAPIErrorZ_get_ok(owner: number): void {
3359         if(!isWasmInitialized) {
3360                 throw new Error("initializeWasm() must be awaited first!");
3361         }
3362         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_get_ok(owner);
3363         // debug statements here
3364 }
3365         // struct LDKAPIError CResult_NoneAPIErrorZ_get_err(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
3366 /* @internal */
3367 export function CResult_NoneAPIErrorZ_get_err(owner: number): number {
3368         if(!isWasmInitialized) {
3369                 throw new Error("initializeWasm() must be awaited first!");
3370         }
3371         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_get_err(owner);
3372         return nativeResponseValue;
3373 }
3374         // struct LDKThirtyTwoBytes CResult__u832APIErrorZ_get_ok(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
3375 /* @internal */
3376 export function CResult__u832APIErrorZ_get_ok(owner: number): number {
3377         if(!isWasmInitialized) {
3378                 throw new Error("initializeWasm() must be awaited first!");
3379         }
3380         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_get_ok(owner);
3381         return nativeResponseValue;
3382 }
3383         // struct LDKAPIError CResult__u832APIErrorZ_get_err(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
3384 /* @internal */
3385 export function CResult__u832APIErrorZ_get_err(owner: number): number {
3386         if(!isWasmInitialized) {
3387                 throw new Error("initializeWasm() must be awaited first!");
3388         }
3389         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_get_err(owner);
3390         return nativeResponseValue;
3391 }
3392 /* @internal */
3393 export class LDKPaymentSendFailure {
3394         protected constructor() {}
3395 }
3396 /* @internal */
3397 export function LDKPaymentSendFailure_ty_from_ptr(ptr: number): number {
3398         if(!isWasmInitialized) {
3399                 throw new Error("initializeWasm() must be awaited first!");
3400         }
3401         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_ty_from_ptr(ptr);
3402         return nativeResponseValue;
3403 }
3404 /* @internal */
3405 export function LDKPaymentSendFailure_ParameterError_get_parameter_error(ptr: number): number {
3406         if(!isWasmInitialized) {
3407                 throw new Error("initializeWasm() must be awaited first!");
3408         }
3409         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_ParameterError_get_parameter_error(ptr);
3410         return nativeResponseValue;
3411 }
3412 /* @internal */
3413 export function LDKPaymentSendFailure_PathParameterError_get_path_parameter_error(ptr: number): number {
3414         if(!isWasmInitialized) {
3415                 throw new Error("initializeWasm() must be awaited first!");
3416         }
3417         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PathParameterError_get_path_parameter_error(ptr);
3418         return nativeResponseValue;
3419 }
3420 /* @internal */
3421 export function LDKPaymentSendFailure_AllFailedRetrySafe_get_all_failed_retry_safe(ptr: number): number {
3422         if(!isWasmInitialized) {
3423                 throw new Error("initializeWasm() must be awaited first!");
3424         }
3425         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_AllFailedRetrySafe_get_all_failed_retry_safe(ptr);
3426         return nativeResponseValue;
3427 }
3428 /* @internal */
3429 export function LDKPaymentSendFailure_PartialFailure_get_results(ptr: number): number {
3430         if(!isWasmInitialized) {
3431                 throw new Error("initializeWasm() must be awaited first!");
3432         }
3433         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_results(ptr);
3434         return nativeResponseValue;
3435 }
3436 /* @internal */
3437 export function LDKPaymentSendFailure_PartialFailure_get_failed_paths_retry(ptr: number): number {
3438         if(!isWasmInitialized) {
3439                 throw new Error("initializeWasm() must be awaited first!");
3440         }
3441         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_failed_paths_retry(ptr);
3442         return nativeResponseValue;
3443 }
3444 /* @internal */
3445 export function LDKPaymentSendFailure_PartialFailure_get_payment_id(ptr: number): number {
3446         if(!isWasmInitialized) {
3447                 throw new Error("initializeWasm() must be awaited first!");
3448         }
3449         const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_payment_id(ptr);
3450         return nativeResponseValue;
3451 }
3452         // struct LDKThirtyTwoBytes CResult_PaymentIdPaymentSendFailureZ_get_ok(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR owner);
3453 /* @internal */
3454 export function CResult_PaymentIdPaymentSendFailureZ_get_ok(owner: number): number {
3455         if(!isWasmInitialized) {
3456                 throw new Error("initializeWasm() must be awaited first!");
3457         }
3458         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_get_ok(owner);
3459         return nativeResponseValue;
3460 }
3461         // struct LDKPaymentSendFailure CResult_PaymentIdPaymentSendFailureZ_get_err(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR owner);
3462 /* @internal */
3463 export function CResult_PaymentIdPaymentSendFailureZ_get_err(owner: number): number {
3464         if(!isWasmInitialized) {
3465                 throw new Error("initializeWasm() must be awaited first!");
3466         }
3467         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_get_err(owner);
3468         return nativeResponseValue;
3469 }
3470         // void CResult_NonePaymentSendFailureZ_get_ok(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
3471 /* @internal */
3472 export function CResult_NonePaymentSendFailureZ_get_ok(owner: number): void {
3473         if(!isWasmInitialized) {
3474                 throw new Error("initializeWasm() must be awaited first!");
3475         }
3476         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_get_ok(owner);
3477         // debug statements here
3478 }
3479         // struct LDKPaymentSendFailure CResult_NonePaymentSendFailureZ_get_err(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
3480 /* @internal */
3481 export function CResult_NonePaymentSendFailureZ_get_err(owner: number): number {
3482         if(!isWasmInitialized) {
3483                 throw new Error("initializeWasm() must be awaited first!");
3484         }
3485         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_get_err(owner);
3486         return nativeResponseValue;
3487 }
3488         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_a(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
3489 /* @internal */
3490 export function C2Tuple_PaymentHashPaymentIdZ_get_a(owner: number): number {
3491         if(!isWasmInitialized) {
3492                 throw new Error("initializeWasm() must be awaited first!");
3493         }
3494         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_get_a(owner);
3495         return nativeResponseValue;
3496 }
3497         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_b(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
3498 /* @internal */
3499 export function C2Tuple_PaymentHashPaymentIdZ_get_b(owner: number): number {
3500         if(!isWasmInitialized) {
3501                 throw new Error("initializeWasm() must be awaited first!");
3502         }
3503         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_get_b(owner);
3504         return nativeResponseValue;
3505 }
3506         // struct LDKC2Tuple_PaymentHashPaymentIdZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
3507 /* @internal */
3508 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(owner: number): number {
3509         if(!isWasmInitialized) {
3510                 throw new Error("initializeWasm() must be awaited first!");
3511         }
3512         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(owner);
3513         return nativeResponseValue;
3514 }
3515         // struct LDKPaymentSendFailure CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
3516 /* @internal */
3517 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(owner: number): number {
3518         if(!isWasmInitialized) {
3519                 throw new Error("initializeWasm() must be awaited first!");
3520         }
3521         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(owner);
3522         return nativeResponseValue;
3523 }
3524         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_a(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
3525 /* @internal */
3526 export function C2Tuple_PaymentHashPaymentSecretZ_get_a(owner: number): number {
3527         if(!isWasmInitialized) {
3528                 throw new Error("initializeWasm() must be awaited first!");
3529         }
3530         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_get_a(owner);
3531         return nativeResponseValue;
3532 }
3533         // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_b(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
3534 /* @internal */
3535 export function C2Tuple_PaymentHashPaymentSecretZ_get_b(owner: number): number {
3536         if(!isWasmInitialized) {
3537                 throw new Error("initializeWasm() must be awaited first!");
3538         }
3539         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_get_b(owner);
3540         return nativeResponseValue;
3541 }
3542         // struct LDKC2Tuple_PaymentHashPaymentSecretZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
3543 /* @internal */
3544 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(owner: number): number {
3545         if(!isWasmInitialized) {
3546                 throw new Error("initializeWasm() must be awaited first!");
3547         }
3548         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(owner);
3549         return nativeResponseValue;
3550 }
3551         // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
3552 /* @internal */
3553 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(owner: number): void {
3554         if(!isWasmInitialized) {
3555                 throw new Error("initializeWasm() must be awaited first!");
3556         }
3557         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(owner);
3558         // debug statements here
3559 }
3560         // struct LDKC2Tuple_PaymentHashPaymentSecretZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR owner);
3561 /* @internal */
3562 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(owner: number): number {
3563         if(!isWasmInitialized) {
3564                 throw new Error("initializeWasm() must be awaited first!");
3565         }
3566         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(owner);
3567         return nativeResponseValue;
3568 }
3569         // struct LDKAPIError CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR owner);
3570 /* @internal */
3571 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(owner: number): number {
3572         if(!isWasmInitialized) {
3573                 throw new Error("initializeWasm() must be awaited first!");
3574         }
3575         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(owner);
3576         return nativeResponseValue;
3577 }
3578         // struct LDKThirtyTwoBytes CResult_PaymentSecretNoneZ_get_ok(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
3579 /* @internal */
3580 export function CResult_PaymentSecretNoneZ_get_ok(owner: number): number {
3581         if(!isWasmInitialized) {
3582                 throw new Error("initializeWasm() must be awaited first!");
3583         }
3584         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_get_ok(owner);
3585         return nativeResponseValue;
3586 }
3587         // void CResult_PaymentSecretNoneZ_get_err(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
3588 /* @internal */
3589 export function CResult_PaymentSecretNoneZ_get_err(owner: number): void {
3590         if(!isWasmInitialized) {
3591                 throw new Error("initializeWasm() must be awaited first!");
3592         }
3593         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_get_err(owner);
3594         // debug statements here
3595 }
3596         // struct LDKThirtyTwoBytes CResult_PaymentSecretAPIErrorZ_get_ok(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR owner);
3597 /* @internal */
3598 export function CResult_PaymentSecretAPIErrorZ_get_ok(owner: number): number {
3599         if(!isWasmInitialized) {
3600                 throw new Error("initializeWasm() must be awaited first!");
3601         }
3602         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_get_ok(owner);
3603         return nativeResponseValue;
3604 }
3605         // struct LDKAPIError CResult_PaymentSecretAPIErrorZ_get_err(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR owner);
3606 /* @internal */
3607 export function CResult_PaymentSecretAPIErrorZ_get_err(owner: number): number {
3608         if(!isWasmInitialized) {
3609                 throw new Error("initializeWasm() must be awaited first!");
3610         }
3611         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_get_err(owner);
3612         return nativeResponseValue;
3613 }
3614         // struct LDKThirtyTwoBytes CResult_PaymentPreimageAPIErrorZ_get_ok(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
3615 /* @internal */
3616 export function CResult_PaymentPreimageAPIErrorZ_get_ok(owner: number): number {
3617         if(!isWasmInitialized) {
3618                 throw new Error("initializeWasm() must be awaited first!");
3619         }
3620         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_get_ok(owner);
3621         return nativeResponseValue;
3622 }
3623         // struct LDKAPIError CResult_PaymentPreimageAPIErrorZ_get_err(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
3624 /* @internal */
3625 export function CResult_PaymentPreimageAPIErrorZ_get_err(owner: number): number {
3626         if(!isWasmInitialized) {
3627                 throw new Error("initializeWasm() must be awaited first!");
3628         }
3629         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_get_err(owner);
3630         return nativeResponseValue;
3631 }
3632         // struct LDKCounterpartyForwardingInfo CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
3633 /* @internal */
3634 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(owner: number): number {
3635         if(!isWasmInitialized) {
3636                 throw new Error("initializeWasm() must be awaited first!");
3637         }
3638         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(owner);
3639         return nativeResponseValue;
3640 }
3641         // struct LDKDecodeError CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
3642 /* @internal */
3643 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(owner: number): number {
3644         if(!isWasmInitialized) {
3645                 throw new Error("initializeWasm() must be awaited first!");
3646         }
3647         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(owner);
3648         return nativeResponseValue;
3649 }
3650         // struct LDKChannelCounterparty CResult_ChannelCounterpartyDecodeErrorZ_get_ok(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
3651 /* @internal */
3652 export function CResult_ChannelCounterpartyDecodeErrorZ_get_ok(owner: number): number {
3653         if(!isWasmInitialized) {
3654                 throw new Error("initializeWasm() must be awaited first!");
3655         }
3656         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_get_ok(owner);
3657         return nativeResponseValue;
3658 }
3659         // struct LDKDecodeError CResult_ChannelCounterpartyDecodeErrorZ_get_err(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
3660 /* @internal */
3661 export function CResult_ChannelCounterpartyDecodeErrorZ_get_err(owner: number): number {
3662         if(!isWasmInitialized) {
3663                 throw new Error("initializeWasm() must be awaited first!");
3664         }
3665         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_get_err(owner);
3666         return nativeResponseValue;
3667 }
3668         // struct LDKChannelDetails CResult_ChannelDetailsDecodeErrorZ_get_ok(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
3669 /* @internal */
3670 export function CResult_ChannelDetailsDecodeErrorZ_get_ok(owner: number): number {
3671         if(!isWasmInitialized) {
3672                 throw new Error("initializeWasm() must be awaited first!");
3673         }
3674         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_get_ok(owner);
3675         return nativeResponseValue;
3676 }
3677         // struct LDKDecodeError CResult_ChannelDetailsDecodeErrorZ_get_err(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
3678 /* @internal */
3679 export function CResult_ChannelDetailsDecodeErrorZ_get_err(owner: number): number {
3680         if(!isWasmInitialized) {
3681                 throw new Error("initializeWasm() must be awaited first!");
3682         }
3683         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_get_err(owner);
3684         return nativeResponseValue;
3685 }
3686         // struct LDKPhantomRouteHints CResult_PhantomRouteHintsDecodeErrorZ_get_ok(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
3687 /* @internal */
3688 export function CResult_PhantomRouteHintsDecodeErrorZ_get_ok(owner: number): number {
3689         if(!isWasmInitialized) {
3690                 throw new Error("initializeWasm() must be awaited first!");
3691         }
3692         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_get_ok(owner);
3693         return nativeResponseValue;
3694 }
3695         // struct LDKDecodeError CResult_PhantomRouteHintsDecodeErrorZ_get_err(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
3696 /* @internal */
3697 export function CResult_PhantomRouteHintsDecodeErrorZ_get_err(owner: number): number {
3698         if(!isWasmInitialized) {
3699                 throw new Error("initializeWasm() must be awaited first!");
3700         }
3701         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_get_err(owner);
3702         return nativeResponseValue;
3703 }
3704 /* @internal */
3705 export interface LDKWatch {
3706         watch_channel (funding_txo: number, monitor: number): number;
3707         update_channel (funding_txo: number, update: number): number;
3708         release_pending_monitor_events (): number;
3709 }
3710
3711 /* @internal */
3712 export function LDKWatch_new(impl: LDKWatch): number {
3713         if(!isWasmInitialized) {
3714                 throw new Error("initializeWasm() must be awaited first!");
3715         }
3716         var new_obj_idx = js_objs.length;
3717         for (var i = 0; i < js_objs.length; i++) {
3718                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3719         }
3720         js_objs[i] = new WeakRef(impl);
3721         return wasm.TS_LDKWatch_new(i);
3722 }
3723         // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_watch_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor
3724 /* @internal */
3725 export function Watch_watch_channel(this_arg: number, funding_txo: number, monitor: number): number {
3726         if(!isWasmInitialized) {
3727                 throw new Error("initializeWasm() must be awaited first!");
3728         }
3729         const nativeResponseValue = wasm.TS_Watch_watch_channel(this_arg, funding_txo, monitor);
3730         return nativeResponseValue;
3731 }
3732         // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_update_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitorUpdate update
3733 /* @internal */
3734 export function Watch_update_channel(this_arg: number, funding_txo: number, update: number): number {
3735         if(!isWasmInitialized) {
3736                 throw new Error("initializeWasm() must be awaited first!");
3737         }
3738         const nativeResponseValue = wasm.TS_Watch_update_channel(this_arg, funding_txo, update);
3739         return nativeResponseValue;
3740 }
3741         // LDKCVec_C2Tuple_OutPointCVec_MonitorEventZZZ Watch_release_pending_monitor_events LDKWatch *NONNULL_PTR this_arg
3742 /* @internal */
3743 export function Watch_release_pending_monitor_events(this_arg: number): number {
3744         if(!isWasmInitialized) {
3745                 throw new Error("initializeWasm() must be awaited first!");
3746         }
3747         const nativeResponseValue = wasm.TS_Watch_release_pending_monitor_events(this_arg);
3748         return nativeResponseValue;
3749 }
3750 /* @internal */
3751 export interface LDKBroadcasterInterface {
3752         broadcast_transaction (tx: number): void;
3753 }
3754
3755 /* @internal */
3756 export function LDKBroadcasterInterface_new(impl: LDKBroadcasterInterface): number {
3757         if(!isWasmInitialized) {
3758                 throw new Error("initializeWasm() must be awaited first!");
3759         }
3760         var new_obj_idx = js_objs.length;
3761         for (var i = 0; i < js_objs.length; i++) {
3762                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3763         }
3764         js_objs[i] = new WeakRef(impl);
3765         return wasm.TS_LDKBroadcasterInterface_new(i);
3766 }
3767         // void BroadcasterInterface_broadcast_transaction LDKBroadcasterInterface *NONNULL_PTR this_arg, struct LDKTransaction tx
3768 /* @internal */
3769 export function BroadcasterInterface_broadcast_transaction(this_arg: number, tx: number): void {
3770         if(!isWasmInitialized) {
3771                 throw new Error("initializeWasm() must be awaited first!");
3772         }
3773         const nativeResponseValue = wasm.TS_BroadcasterInterface_broadcast_transaction(this_arg, tx);
3774         // debug statements here
3775 }
3776 /* @internal */
3777 export interface LDKKeysInterface {
3778         get_node_secret (recipient: Recipient): number;
3779         get_destination_script (): number;
3780         get_shutdown_scriptpubkey (): number;
3781         get_channel_signer (inbound: boolean, channel_value_satoshis: bigint): number;
3782         get_secure_random_bytes (): number;
3783         read_chan_signer (reader: number): number;
3784         sign_invoice (hrp_bytes: number, invoice_data: number, receipient: Recipient): number;
3785         get_inbound_payment_key_material (): number;
3786 }
3787
3788 /* @internal */
3789 export function LDKKeysInterface_new(impl: LDKKeysInterface): number {
3790         if(!isWasmInitialized) {
3791                 throw new Error("initializeWasm() must be awaited first!");
3792         }
3793         var new_obj_idx = js_objs.length;
3794         for (var i = 0; i < js_objs.length; i++) {
3795                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3796         }
3797         js_objs[i] = new WeakRef(impl);
3798         return wasm.TS_LDKKeysInterface_new(i);
3799 }
3800         // LDKCResult_SecretKeyNoneZ KeysInterface_get_node_secret LDKKeysInterface *NONNULL_PTR this_arg, enum LDKRecipient recipient
3801 /* @internal */
3802 export function KeysInterface_get_node_secret(this_arg: number, recipient: Recipient): number {
3803         if(!isWasmInitialized) {
3804                 throw new Error("initializeWasm() must be awaited first!");
3805         }
3806         const nativeResponseValue = wasm.TS_KeysInterface_get_node_secret(this_arg, recipient);
3807         return nativeResponseValue;
3808 }
3809         // LDKCVec_u8Z KeysInterface_get_destination_script LDKKeysInterface *NONNULL_PTR this_arg
3810 /* @internal */
3811 export function KeysInterface_get_destination_script(this_arg: number): number {
3812         if(!isWasmInitialized) {
3813                 throw new Error("initializeWasm() must be awaited first!");
3814         }
3815         const nativeResponseValue = wasm.TS_KeysInterface_get_destination_script(this_arg);
3816         return nativeResponseValue;
3817 }
3818         // LDKShutdownScript KeysInterface_get_shutdown_scriptpubkey LDKKeysInterface *NONNULL_PTR this_arg
3819 /* @internal */
3820 export function KeysInterface_get_shutdown_scriptpubkey(this_arg: number): number {
3821         if(!isWasmInitialized) {
3822                 throw new Error("initializeWasm() must be awaited first!");
3823         }
3824         const nativeResponseValue = wasm.TS_KeysInterface_get_shutdown_scriptpubkey(this_arg);
3825         return nativeResponseValue;
3826 }
3827         // LDKSign KeysInterface_get_channel_signer LDKKeysInterface *NONNULL_PTR this_arg, bool inbound, uint64_t channel_value_satoshis
3828 /* @internal */
3829 export function KeysInterface_get_channel_signer(this_arg: number, inbound: boolean, channel_value_satoshis: bigint): number {
3830         if(!isWasmInitialized) {
3831                 throw new Error("initializeWasm() must be awaited first!");
3832         }
3833         const nativeResponseValue = wasm.TS_KeysInterface_get_channel_signer(this_arg, inbound, channel_value_satoshis);
3834         return nativeResponseValue;
3835 }
3836         // LDKThirtyTwoBytes KeysInterface_get_secure_random_bytes LDKKeysInterface *NONNULL_PTR this_arg
3837 /* @internal */
3838 export function KeysInterface_get_secure_random_bytes(this_arg: number): number {
3839         if(!isWasmInitialized) {
3840                 throw new Error("initializeWasm() must be awaited first!");
3841         }
3842         const nativeResponseValue = wasm.TS_KeysInterface_get_secure_random_bytes(this_arg);
3843         return nativeResponseValue;
3844 }
3845         // LDKCResult_SignDecodeErrorZ KeysInterface_read_chan_signer LDKKeysInterface *NONNULL_PTR this_arg, struct LDKu8slice reader
3846 /* @internal */
3847 export function KeysInterface_read_chan_signer(this_arg: number, reader: number): number {
3848         if(!isWasmInitialized) {
3849                 throw new Error("initializeWasm() must be awaited first!");
3850         }
3851         const nativeResponseValue = wasm.TS_KeysInterface_read_chan_signer(this_arg, reader);
3852         return nativeResponseValue;
3853 }
3854         // LDKCResult_RecoverableSignatureNoneZ KeysInterface_sign_invoice LDKKeysInterface *NONNULL_PTR this_arg, struct LDKu8slice hrp_bytes, struct LDKCVec_u5Z invoice_data, enum LDKRecipient receipient
3855 /* @internal */
3856 export function KeysInterface_sign_invoice(this_arg: number, hrp_bytes: number, invoice_data: number, receipient: Recipient): number {
3857         if(!isWasmInitialized) {
3858                 throw new Error("initializeWasm() must be awaited first!");
3859         }
3860         const nativeResponseValue = wasm.TS_KeysInterface_sign_invoice(this_arg, hrp_bytes, invoice_data, receipient);
3861         return nativeResponseValue;
3862 }
3863         // LDKThirtyTwoBytes KeysInterface_get_inbound_payment_key_material LDKKeysInterface *NONNULL_PTR this_arg
3864 /* @internal */
3865 export function KeysInterface_get_inbound_payment_key_material(this_arg: number): number {
3866         if(!isWasmInitialized) {
3867                 throw new Error("initializeWasm() must be awaited first!");
3868         }
3869         const nativeResponseValue = wasm.TS_KeysInterface_get_inbound_payment_key_material(this_arg);
3870         return nativeResponseValue;
3871 }
3872 /* @internal */
3873 export interface LDKFeeEstimator {
3874         get_est_sat_per_1000_weight (confirmation_target: ConfirmationTarget): number;
3875 }
3876
3877 /* @internal */
3878 export function LDKFeeEstimator_new(impl: LDKFeeEstimator): number {
3879         if(!isWasmInitialized) {
3880                 throw new Error("initializeWasm() must be awaited first!");
3881         }
3882         var new_obj_idx = js_objs.length;
3883         for (var i = 0; i < js_objs.length; i++) {
3884                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3885         }
3886         js_objs[i] = new WeakRef(impl);
3887         return wasm.TS_LDKFeeEstimator_new(i);
3888 }
3889         // uint32_t FeeEstimator_get_est_sat_per_1000_weight LDKFeeEstimator *NONNULL_PTR this_arg, enum LDKConfirmationTarget confirmation_target
3890 /* @internal */
3891 export function FeeEstimator_get_est_sat_per_1000_weight(this_arg: number, confirmation_target: ConfirmationTarget): number {
3892         if(!isWasmInitialized) {
3893                 throw new Error("initializeWasm() must be awaited first!");
3894         }
3895         const nativeResponseValue = wasm.TS_FeeEstimator_get_est_sat_per_1000_weight(this_arg, confirmation_target);
3896         return nativeResponseValue;
3897 }
3898         // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelManagerZ_get_a(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
3899 /* @internal */
3900 export function C2Tuple_BlockHashChannelManagerZ_get_a(owner: number): number {
3901         if(!isWasmInitialized) {
3902                 throw new Error("initializeWasm() must be awaited first!");
3903         }
3904         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_get_a(owner);
3905         return nativeResponseValue;
3906 }
3907         // struct LDKChannelManager *C2Tuple_BlockHashChannelManagerZ_get_b(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
3908 /* @internal */
3909 export function C2Tuple_BlockHashChannelManagerZ_get_b(owner: number): number {
3910         if(!isWasmInitialized) {
3911                 throw new Error("initializeWasm() must be awaited first!");
3912         }
3913         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_get_b(owner);
3914         return nativeResponseValue;
3915 }
3916         // struct LDKC2Tuple_BlockHashChannelManagerZ *CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
3917 /* @internal */
3918 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(owner: number): number {
3919         if(!isWasmInitialized) {
3920                 throw new Error("initializeWasm() must be awaited first!");
3921         }
3922         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(owner);
3923         return nativeResponseValue;
3924 }
3925         // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
3926 /* @internal */
3927 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(owner: number): number {
3928         if(!isWasmInitialized) {
3929                 throw new Error("initializeWasm() must be awaited first!");
3930         }
3931         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(owner);
3932         return nativeResponseValue;
3933 }
3934         // struct LDKChannelConfig CResult_ChannelConfigDecodeErrorZ_get_ok(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
3935 /* @internal */
3936 export function CResult_ChannelConfigDecodeErrorZ_get_ok(owner: number): number {
3937         if(!isWasmInitialized) {
3938                 throw new Error("initializeWasm() must be awaited first!");
3939         }
3940         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_get_ok(owner);
3941         return nativeResponseValue;
3942 }
3943         // struct LDKDecodeError CResult_ChannelConfigDecodeErrorZ_get_err(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
3944 /* @internal */
3945 export function CResult_ChannelConfigDecodeErrorZ_get_err(owner: number): number {
3946         if(!isWasmInitialized) {
3947                 throw new Error("initializeWasm() must be awaited first!");
3948         }
3949         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_get_err(owner);
3950         return nativeResponseValue;
3951 }
3952         // struct LDKOutPoint CResult_OutPointDecodeErrorZ_get_ok(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
3953 /* @internal */
3954 export function CResult_OutPointDecodeErrorZ_get_ok(owner: number): number {
3955         if(!isWasmInitialized) {
3956                 throw new Error("initializeWasm() must be awaited first!");
3957         }
3958         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_get_ok(owner);
3959         return nativeResponseValue;
3960 }
3961         // struct LDKDecodeError CResult_OutPointDecodeErrorZ_get_err(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
3962 /* @internal */
3963 export function CResult_OutPointDecodeErrorZ_get_err(owner: number): number {
3964         if(!isWasmInitialized) {
3965                 throw new Error("initializeWasm() must be awaited first!");
3966         }
3967         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_get_err(owner);
3968         return nativeResponseValue;
3969 }
3970 /* @internal */
3971 export interface LDKType {
3972         type_id (): number;
3973         debug_str (): number;
3974         write (): number;
3975 }
3976
3977 /* @internal */
3978 export function LDKType_new(impl: LDKType): number {
3979         if(!isWasmInitialized) {
3980                 throw new Error("initializeWasm() must be awaited first!");
3981         }
3982         var new_obj_idx = js_objs.length;
3983         for (var i = 0; i < js_objs.length; i++) {
3984                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3985         }
3986         js_objs[i] = new WeakRef(impl);
3987         return wasm.TS_LDKType_new(i);
3988 }
3989         // uint16_t Type_type_id LDKType *NONNULL_PTR this_arg
3990 /* @internal */
3991 export function Type_type_id(this_arg: number): number {
3992         if(!isWasmInitialized) {
3993                 throw new Error("initializeWasm() must be awaited first!");
3994         }
3995         const nativeResponseValue = wasm.TS_Type_type_id(this_arg);
3996         return nativeResponseValue;
3997 }
3998         // LDKStr Type_debug_str LDKType *NONNULL_PTR this_arg
3999 /* @internal */
4000 export function Type_debug_str(this_arg: number): number {
4001         if(!isWasmInitialized) {
4002                 throw new Error("initializeWasm() must be awaited first!");
4003         }
4004         const nativeResponseValue = wasm.TS_Type_debug_str(this_arg);
4005         return nativeResponseValue;
4006 }
4007         // LDKCVec_u8Z Type_write LDKType *NONNULL_PTR this_arg
4008 /* @internal */
4009 export function Type_write(this_arg: number): number {
4010         if(!isWasmInitialized) {
4011                 throw new Error("initializeWasm() must be awaited first!");
4012         }
4013         const nativeResponseValue = wasm.TS_Type_write(this_arg);
4014         return nativeResponseValue;
4015 }
4016 /* @internal */
4017 export class LDKCOption_TypeZ {
4018         protected constructor() {}
4019 }
4020 /* @internal */
4021 export function LDKCOption_TypeZ_ty_from_ptr(ptr: number): number {
4022         if(!isWasmInitialized) {
4023                 throw new Error("initializeWasm() must be awaited first!");
4024         }
4025         const nativeResponseValue = wasm.TS_LDKCOption_TypeZ_ty_from_ptr(ptr);
4026         return nativeResponseValue;
4027 }
4028 /* @internal */
4029 export function LDKCOption_TypeZ_Some_get_some(ptr: number): number {
4030         if(!isWasmInitialized) {
4031                 throw new Error("initializeWasm() must be awaited first!");
4032         }
4033         const nativeResponseValue = wasm.TS_LDKCOption_TypeZ_Some_get_some(ptr);
4034         return nativeResponseValue;
4035 }
4036         // struct LDKCOption_TypeZ CResult_COption_TypeZDecodeErrorZ_get_ok(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
4037 /* @internal */
4038 export function CResult_COption_TypeZDecodeErrorZ_get_ok(owner: number): number {
4039         if(!isWasmInitialized) {
4040                 throw new Error("initializeWasm() must be awaited first!");
4041         }
4042         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_get_ok(owner);
4043         return nativeResponseValue;
4044 }
4045         // struct LDKDecodeError CResult_COption_TypeZDecodeErrorZ_get_err(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
4046 /* @internal */
4047 export function CResult_COption_TypeZDecodeErrorZ_get_err(owner: number): number {
4048         if(!isWasmInitialized) {
4049                 throw new Error("initializeWasm() must be awaited first!");
4050         }
4051         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_get_err(owner);
4052         return nativeResponseValue;
4053 }
4054 /* @internal */
4055 export class LDKPaymentError {
4056         protected constructor() {}
4057 }
4058 /* @internal */
4059 export function LDKPaymentError_ty_from_ptr(ptr: number): number {
4060         if(!isWasmInitialized) {
4061                 throw new Error("initializeWasm() must be awaited first!");
4062         }
4063         const nativeResponseValue = wasm.TS_LDKPaymentError_ty_from_ptr(ptr);
4064         return nativeResponseValue;
4065 }
4066 /* @internal */
4067 export function LDKPaymentError_Invoice_get_invoice(ptr: number): number {
4068         if(!isWasmInitialized) {
4069                 throw new Error("initializeWasm() must be awaited first!");
4070         }
4071         const nativeResponseValue = wasm.TS_LDKPaymentError_Invoice_get_invoice(ptr);
4072         return nativeResponseValue;
4073 }
4074 /* @internal */
4075 export function LDKPaymentError_Routing_get_routing(ptr: number): number {
4076         if(!isWasmInitialized) {
4077                 throw new Error("initializeWasm() must be awaited first!");
4078         }
4079         const nativeResponseValue = wasm.TS_LDKPaymentError_Routing_get_routing(ptr);
4080         return nativeResponseValue;
4081 }
4082 /* @internal */
4083 export function LDKPaymentError_Sending_get_sending(ptr: number): number {
4084         if(!isWasmInitialized) {
4085                 throw new Error("initializeWasm() must be awaited first!");
4086         }
4087         const nativeResponseValue = wasm.TS_LDKPaymentError_Sending_get_sending(ptr);
4088         return nativeResponseValue;
4089 }
4090         // struct LDKThirtyTwoBytes CResult_PaymentIdPaymentErrorZ_get_ok(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
4091 /* @internal */
4092 export function CResult_PaymentIdPaymentErrorZ_get_ok(owner: number): number {
4093         if(!isWasmInitialized) {
4094                 throw new Error("initializeWasm() must be awaited first!");
4095         }
4096         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_get_ok(owner);
4097         return nativeResponseValue;
4098 }
4099         // struct LDKPaymentError CResult_PaymentIdPaymentErrorZ_get_err(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
4100 /* @internal */
4101 export function CResult_PaymentIdPaymentErrorZ_get_err(owner: number): number {
4102         if(!isWasmInitialized) {
4103                 throw new Error("initializeWasm() must be awaited first!");
4104         }
4105         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_get_err(owner);
4106         return nativeResponseValue;
4107 }
4108 /* @internal */
4109 export class LDKParseError {
4110         protected constructor() {}
4111 }
4112 /* @internal */
4113 export function LDKParseError_ty_from_ptr(ptr: number): number {
4114         if(!isWasmInitialized) {
4115                 throw new Error("initializeWasm() must be awaited first!");
4116         }
4117         const nativeResponseValue = wasm.TS_LDKParseError_ty_from_ptr(ptr);
4118         return nativeResponseValue;
4119 }
4120 /* @internal */
4121 export function LDKParseError_Bech32Error_get_bech32_error(ptr: number): number {
4122         if(!isWasmInitialized) {
4123                 throw new Error("initializeWasm() must be awaited first!");
4124         }
4125         const nativeResponseValue = wasm.TS_LDKParseError_Bech32Error_get_bech32_error(ptr);
4126         return nativeResponseValue;
4127 }
4128 /* @internal */
4129 export function LDKParseError_ParseAmountError_get_parse_amount_error(ptr: number): number {
4130         if(!isWasmInitialized) {
4131                 throw new Error("initializeWasm() must be awaited first!");
4132         }
4133         const nativeResponseValue = wasm.TS_LDKParseError_ParseAmountError_get_parse_amount_error(ptr);
4134         return nativeResponseValue;
4135 }
4136 /* @internal */
4137 export function LDKParseError_MalformedSignature_get_malformed_signature(ptr: number): Secp256k1Error {
4138         if(!isWasmInitialized) {
4139                 throw new Error("initializeWasm() must be awaited first!");
4140         }
4141         const nativeResponseValue = wasm.TS_LDKParseError_MalformedSignature_get_malformed_signature(ptr);
4142         return nativeResponseValue;
4143 }
4144 /* @internal */
4145 export function LDKParseError_DescriptionDecodeError_get_description_decode_error(ptr: number): number {
4146         if(!isWasmInitialized) {
4147                 throw new Error("initializeWasm() must be awaited first!");
4148         }
4149         const nativeResponseValue = wasm.TS_LDKParseError_DescriptionDecodeError_get_description_decode_error(ptr);
4150         return nativeResponseValue;
4151 }
4152 /* @internal */
4153 export function LDKParseError_InvalidSliceLength_get_invalid_slice_length(ptr: number): number {
4154         if(!isWasmInitialized) {
4155                 throw new Error("initializeWasm() must be awaited first!");
4156         }
4157         const nativeResponseValue = wasm.TS_LDKParseError_InvalidSliceLength_get_invalid_slice_length(ptr);
4158         return nativeResponseValue;
4159 }
4160         // enum LDKSiPrefix CResult_SiPrefixParseErrorZ_get_ok(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR owner);
4161 /* @internal */
4162 export function CResult_SiPrefixParseErrorZ_get_ok(owner: number): SiPrefix {
4163         if(!isWasmInitialized) {
4164                 throw new Error("initializeWasm() must be awaited first!");
4165         }
4166         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_get_ok(owner);
4167         return nativeResponseValue;
4168 }
4169         // struct LDKParseError CResult_SiPrefixParseErrorZ_get_err(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR owner);
4170 /* @internal */
4171 export function CResult_SiPrefixParseErrorZ_get_err(owner: number): number {
4172         if(!isWasmInitialized) {
4173                 throw new Error("initializeWasm() must be awaited first!");
4174         }
4175         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_get_err(owner);
4176         return nativeResponseValue;
4177 }
4178 /* @internal */
4179 export class LDKParseOrSemanticError {
4180         protected constructor() {}
4181 }
4182 /* @internal */
4183 export function LDKParseOrSemanticError_ty_from_ptr(ptr: number): number {
4184         if(!isWasmInitialized) {
4185                 throw new Error("initializeWasm() must be awaited first!");
4186         }
4187         const nativeResponseValue = wasm.TS_LDKParseOrSemanticError_ty_from_ptr(ptr);
4188         return nativeResponseValue;
4189 }
4190 /* @internal */
4191 export function LDKParseOrSemanticError_ParseError_get_parse_error(ptr: number): number {
4192         if(!isWasmInitialized) {
4193                 throw new Error("initializeWasm() must be awaited first!");
4194         }
4195         const nativeResponseValue = wasm.TS_LDKParseOrSemanticError_ParseError_get_parse_error(ptr);
4196         return nativeResponseValue;
4197 }
4198 /* @internal */
4199 export function LDKParseOrSemanticError_SemanticError_get_semantic_error(ptr: number): SemanticError {
4200         if(!isWasmInitialized) {
4201                 throw new Error("initializeWasm() must be awaited first!");
4202         }
4203         const nativeResponseValue = wasm.TS_LDKParseOrSemanticError_SemanticError_get_semantic_error(ptr);
4204         return nativeResponseValue;
4205 }
4206         // struct LDKInvoice CResult_InvoiceParseOrSemanticErrorZ_get_ok(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
4207 /* @internal */
4208 export function CResult_InvoiceParseOrSemanticErrorZ_get_ok(owner: number): number {
4209         if(!isWasmInitialized) {
4210                 throw new Error("initializeWasm() must be awaited first!");
4211         }
4212         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_get_ok(owner);
4213         return nativeResponseValue;
4214 }
4215         // struct LDKParseOrSemanticError CResult_InvoiceParseOrSemanticErrorZ_get_err(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
4216 /* @internal */
4217 export function CResult_InvoiceParseOrSemanticErrorZ_get_err(owner: number): number {
4218         if(!isWasmInitialized) {
4219                 throw new Error("initializeWasm() must be awaited first!");
4220         }
4221         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_get_err(owner);
4222         return nativeResponseValue;
4223 }
4224         // struct LDKSignedRawInvoice CResult_SignedRawInvoiceParseErrorZ_get_ok(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR owner);
4225 /* @internal */
4226 export function CResult_SignedRawInvoiceParseErrorZ_get_ok(owner: number): number {
4227         if(!isWasmInitialized) {
4228                 throw new Error("initializeWasm() must be awaited first!");
4229         }
4230         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_get_ok(owner);
4231         return nativeResponseValue;
4232 }
4233         // struct LDKParseError CResult_SignedRawInvoiceParseErrorZ_get_err(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR owner);
4234 /* @internal */
4235 export function CResult_SignedRawInvoiceParseErrorZ_get_err(owner: number): number {
4236         if(!isWasmInitialized) {
4237                 throw new Error("initializeWasm() must be awaited first!");
4238         }
4239         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_get_err(owner);
4240         return nativeResponseValue;
4241 }
4242         // struct LDKRawInvoice C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
4243 /* @internal */
4244 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(owner: number): number {
4245         if(!isWasmInitialized) {
4246                 throw new Error("initializeWasm() must be awaited first!");
4247         }
4248         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(owner);
4249         return nativeResponseValue;
4250 }
4251         // struct LDKThirtyTwoBytes C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
4252 /* @internal */
4253 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(owner: number): number {
4254         if(!isWasmInitialized) {
4255                 throw new Error("initializeWasm() must be awaited first!");
4256         }
4257         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(owner);
4258         return nativeResponseValue;
4259 }
4260         // struct LDKInvoiceSignature C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
4261 /* @internal */
4262 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(owner: number): number {
4263         if(!isWasmInitialized) {
4264                 throw new Error("initializeWasm() must be awaited first!");
4265         }
4266         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(owner);
4267         return nativeResponseValue;
4268 }
4269         // struct LDKPayeePubKey CResult_PayeePubKeyErrorZ_get_ok(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
4270 /* @internal */
4271 export function CResult_PayeePubKeyErrorZ_get_ok(owner: number): number {
4272         if(!isWasmInitialized) {
4273                 throw new Error("initializeWasm() must be awaited first!");
4274         }
4275         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_get_ok(owner);
4276         return nativeResponseValue;
4277 }
4278         // enum LDKSecp256k1Error CResult_PayeePubKeyErrorZ_get_err(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
4279 /* @internal */
4280 export function CResult_PayeePubKeyErrorZ_get_err(owner: number): Secp256k1Error {
4281         if(!isWasmInitialized) {
4282                 throw new Error("initializeWasm() must be awaited first!");
4283         }
4284         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_get_err(owner);
4285         return nativeResponseValue;
4286 }
4287         // struct LDKPositiveTimestamp CResult_PositiveTimestampCreationErrorZ_get_ok(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
4288 /* @internal */
4289 export function CResult_PositiveTimestampCreationErrorZ_get_ok(owner: number): number {
4290         if(!isWasmInitialized) {
4291                 throw new Error("initializeWasm() must be awaited first!");
4292         }
4293         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_get_ok(owner);
4294         return nativeResponseValue;
4295 }
4296         // enum LDKCreationError CResult_PositiveTimestampCreationErrorZ_get_err(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
4297 /* @internal */
4298 export function CResult_PositiveTimestampCreationErrorZ_get_err(owner: number): CreationError {
4299         if(!isWasmInitialized) {
4300                 throw new Error("initializeWasm() must be awaited first!");
4301         }
4302         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_get_err(owner);
4303         return nativeResponseValue;
4304 }
4305         // void CResult_NoneSemanticErrorZ_get_ok(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR owner);
4306 /* @internal */
4307 export function CResult_NoneSemanticErrorZ_get_ok(owner: number): void {
4308         if(!isWasmInitialized) {
4309                 throw new Error("initializeWasm() must be awaited first!");
4310         }
4311         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_get_ok(owner);
4312         // debug statements here
4313 }
4314         // enum LDKSemanticError CResult_NoneSemanticErrorZ_get_err(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR owner);
4315 /* @internal */
4316 export function CResult_NoneSemanticErrorZ_get_err(owner: number): SemanticError {
4317         if(!isWasmInitialized) {
4318                 throw new Error("initializeWasm() must be awaited first!");
4319         }
4320         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_get_err(owner);
4321         return nativeResponseValue;
4322 }
4323         // struct LDKInvoice CResult_InvoiceSemanticErrorZ_get_ok(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR owner);
4324 /* @internal */
4325 export function CResult_InvoiceSemanticErrorZ_get_ok(owner: number): number {
4326         if(!isWasmInitialized) {
4327                 throw new Error("initializeWasm() must be awaited first!");
4328         }
4329         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_get_ok(owner);
4330         return nativeResponseValue;
4331 }
4332         // enum LDKSemanticError CResult_InvoiceSemanticErrorZ_get_err(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR owner);
4333 /* @internal */
4334 export function CResult_InvoiceSemanticErrorZ_get_err(owner: number): SemanticError {
4335         if(!isWasmInitialized) {
4336                 throw new Error("initializeWasm() must be awaited first!");
4337         }
4338         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_get_err(owner);
4339         return nativeResponseValue;
4340 }
4341         // struct LDKDescription CResult_DescriptionCreationErrorZ_get_ok(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
4342 /* @internal */
4343 export function CResult_DescriptionCreationErrorZ_get_ok(owner: number): number {
4344         if(!isWasmInitialized) {
4345                 throw new Error("initializeWasm() must be awaited first!");
4346         }
4347         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_get_ok(owner);
4348         return nativeResponseValue;
4349 }
4350         // enum LDKCreationError CResult_DescriptionCreationErrorZ_get_err(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
4351 /* @internal */
4352 export function CResult_DescriptionCreationErrorZ_get_err(owner: number): CreationError {
4353         if(!isWasmInitialized) {
4354                 throw new Error("initializeWasm() must be awaited first!");
4355         }
4356         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_get_err(owner);
4357         return nativeResponseValue;
4358 }
4359         // struct LDKPrivateRoute CResult_PrivateRouteCreationErrorZ_get_ok(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
4360 /* @internal */
4361 export function CResult_PrivateRouteCreationErrorZ_get_ok(owner: number): number {
4362         if(!isWasmInitialized) {
4363                 throw new Error("initializeWasm() must be awaited first!");
4364         }
4365         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_get_ok(owner);
4366         return nativeResponseValue;
4367 }
4368         // enum LDKCreationError CResult_PrivateRouteCreationErrorZ_get_err(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
4369 /* @internal */
4370 export function CResult_PrivateRouteCreationErrorZ_get_err(owner: number): CreationError {
4371         if(!isWasmInitialized) {
4372                 throw new Error("initializeWasm() must be awaited first!");
4373         }
4374         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_get_err(owner);
4375         return nativeResponseValue;
4376 }
4377         // struct LDKStr CResult_StringErrorZ_get_ok(LDKCResult_StringErrorZ *NONNULL_PTR owner);
4378 /* @internal */
4379 export function CResult_StringErrorZ_get_ok(owner: number): number {
4380         if(!isWasmInitialized) {
4381                 throw new Error("initializeWasm() must be awaited first!");
4382         }
4383         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_get_ok(owner);
4384         return nativeResponseValue;
4385 }
4386         // enum LDKSecp256k1Error CResult_StringErrorZ_get_err(LDKCResult_StringErrorZ *NONNULL_PTR owner);
4387 /* @internal */
4388 export function CResult_StringErrorZ_get_err(owner: number): Secp256k1Error {
4389         if(!isWasmInitialized) {
4390                 throw new Error("initializeWasm() must be awaited first!");
4391         }
4392         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_get_err(owner);
4393         return nativeResponseValue;
4394 }
4395         // struct LDKChannelMonitorUpdate CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
4396 /* @internal */
4397 export function CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(owner: number): number {
4398         if(!isWasmInitialized) {
4399                 throw new Error("initializeWasm() must be awaited first!");
4400         }
4401         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(owner);
4402         return nativeResponseValue;
4403 }
4404         // struct LDKDecodeError CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
4405 /* @internal */
4406 export function CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(owner: number): number {
4407         if(!isWasmInitialized) {
4408                 throw new Error("initializeWasm() must be awaited first!");
4409         }
4410         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(owner);
4411         return nativeResponseValue;
4412 }
4413 /* @internal */
4414 export class LDKCOption_MonitorEventZ {
4415         protected constructor() {}
4416 }
4417 /* @internal */
4418 export function LDKCOption_MonitorEventZ_ty_from_ptr(ptr: number): number {
4419         if(!isWasmInitialized) {
4420                 throw new Error("initializeWasm() must be awaited first!");
4421         }
4422         const nativeResponseValue = wasm.TS_LDKCOption_MonitorEventZ_ty_from_ptr(ptr);
4423         return nativeResponseValue;
4424 }
4425 /* @internal */
4426 export function LDKCOption_MonitorEventZ_Some_get_some(ptr: number): number {
4427         if(!isWasmInitialized) {
4428                 throw new Error("initializeWasm() must be awaited first!");
4429         }
4430         const nativeResponseValue = wasm.TS_LDKCOption_MonitorEventZ_Some_get_some(ptr);
4431         return nativeResponseValue;
4432 }
4433         // struct LDKCOption_MonitorEventZ CResult_COption_MonitorEventZDecodeErrorZ_get_ok(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
4434 /* @internal */
4435 export function CResult_COption_MonitorEventZDecodeErrorZ_get_ok(owner: number): number {
4436         if(!isWasmInitialized) {
4437                 throw new Error("initializeWasm() must be awaited first!");
4438         }
4439         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_get_ok(owner);
4440         return nativeResponseValue;
4441 }
4442         // struct LDKDecodeError CResult_COption_MonitorEventZDecodeErrorZ_get_err(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
4443 /* @internal */
4444 export function CResult_COption_MonitorEventZDecodeErrorZ_get_err(owner: number): number {
4445         if(!isWasmInitialized) {
4446                 throw new Error("initializeWasm() must be awaited first!");
4447         }
4448         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_get_err(owner);
4449         return nativeResponseValue;
4450 }
4451         // struct LDKHTLCUpdate CResult_HTLCUpdateDecodeErrorZ_get_ok(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
4452 /* @internal */
4453 export function CResult_HTLCUpdateDecodeErrorZ_get_ok(owner: number): number {
4454         if(!isWasmInitialized) {
4455                 throw new Error("initializeWasm() must be awaited first!");
4456         }
4457         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_get_ok(owner);
4458         return nativeResponseValue;
4459 }
4460         // struct LDKDecodeError CResult_HTLCUpdateDecodeErrorZ_get_err(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
4461 /* @internal */
4462 export function CResult_HTLCUpdateDecodeErrorZ_get_err(owner: number): number {
4463         if(!isWasmInitialized) {
4464                 throw new Error("initializeWasm() must be awaited first!");
4465         }
4466         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_get_err(owner);
4467         return nativeResponseValue;
4468 }
4469         // struct LDKOutPoint C2Tuple_OutPointScriptZ_get_a(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
4470 /* @internal */
4471 export function C2Tuple_OutPointScriptZ_get_a(owner: number): number {
4472         if(!isWasmInitialized) {
4473                 throw new Error("initializeWasm() must be awaited first!");
4474         }
4475         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_get_a(owner);
4476         return nativeResponseValue;
4477 }
4478         // struct LDKCVec_u8Z C2Tuple_OutPointScriptZ_get_b(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
4479 /* @internal */
4480 export function C2Tuple_OutPointScriptZ_get_b(owner: number): number {
4481         if(!isWasmInitialized) {
4482                 throw new Error("initializeWasm() must be awaited first!");
4483         }
4484         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_get_b(owner);
4485         return nativeResponseValue;
4486 }
4487         // uint32_t C2Tuple_u32ScriptZ_get_a(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
4488 /* @internal */
4489 export function C2Tuple_u32ScriptZ_get_a(owner: number): number {
4490         if(!isWasmInitialized) {
4491                 throw new Error("initializeWasm() must be awaited first!");
4492         }
4493         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_get_a(owner);
4494         return nativeResponseValue;
4495 }
4496         // struct LDKCVec_u8Z C2Tuple_u32ScriptZ_get_b(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
4497 /* @internal */
4498 export function C2Tuple_u32ScriptZ_get_b(owner: number): number {
4499         if(!isWasmInitialized) {
4500                 throw new Error("initializeWasm() must be awaited first!");
4501         }
4502         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_get_b(owner);
4503         return nativeResponseValue;
4504 }
4505         // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
4506 /* @internal */
4507 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(owner: number): number {
4508         if(!isWasmInitialized) {
4509                 throw new Error("initializeWasm() must be awaited first!");
4510         }
4511         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(owner);
4512         return nativeResponseValue;
4513 }
4514         // struct LDKCVec_C2Tuple_u32ScriptZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
4515 /* @internal */
4516 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(owner: number): number {
4517         if(!isWasmInitialized) {
4518                 throw new Error("initializeWasm() must be awaited first!");
4519         }
4520         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(owner);
4521         return nativeResponseValue;
4522 }
4523         // uint32_t C2Tuple_u32TxOutZ_get_a(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
4524 /* @internal */
4525 export function C2Tuple_u32TxOutZ_get_a(owner: number): number {
4526         if(!isWasmInitialized) {
4527                 throw new Error("initializeWasm() must be awaited first!");
4528         }
4529         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_get_a(owner);
4530         return nativeResponseValue;
4531 }
4532         // struct LDKTxOut C2Tuple_u32TxOutZ_get_b(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
4533 /* @internal */
4534 export function C2Tuple_u32TxOutZ_get_b(owner: number): number {
4535         if(!isWasmInitialized) {
4536                 throw new Error("initializeWasm() must be awaited first!");
4537         }
4538         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_get_b(owner);
4539         return nativeResponseValue;
4540 }
4541         // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
4542 /* @internal */
4543 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(owner: number): number {
4544         if(!isWasmInitialized) {
4545                 throw new Error("initializeWasm() must be awaited first!");
4546         }
4547         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(owner);
4548         return nativeResponseValue;
4549 }
4550         // struct LDKCVec_C2Tuple_u32TxOutZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
4551 /* @internal */
4552 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(owner: number): number {
4553         if(!isWasmInitialized) {
4554                 throw new Error("initializeWasm() must be awaited first!");
4555         }
4556         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(owner);
4557         return nativeResponseValue;
4558 }
4559 /* @internal */
4560 export class LDKBalance {
4561         protected constructor() {}
4562 }
4563 /* @internal */
4564 export function LDKBalance_ty_from_ptr(ptr: number): number {
4565         if(!isWasmInitialized) {
4566                 throw new Error("initializeWasm() must be awaited first!");
4567         }
4568         const nativeResponseValue = wasm.TS_LDKBalance_ty_from_ptr(ptr);
4569         return nativeResponseValue;
4570 }
4571 /* @internal */
4572 export function LDKBalance_ClaimableOnChannelClose_get_claimable_amount_satoshis(ptr: number): bigint {
4573         if(!isWasmInitialized) {
4574                 throw new Error("initializeWasm() must be awaited first!");
4575         }
4576         const nativeResponseValue = wasm.TS_LDKBalance_ClaimableOnChannelClose_get_claimable_amount_satoshis(ptr);
4577         return nativeResponseValue;
4578 }
4579 /* @internal */
4580 export function LDKBalance_ClaimableAwaitingConfirmations_get_claimable_amount_satoshis(ptr: number): bigint {
4581         if(!isWasmInitialized) {
4582                 throw new Error("initializeWasm() must be awaited first!");
4583         }
4584         const nativeResponseValue = wasm.TS_LDKBalance_ClaimableAwaitingConfirmations_get_claimable_amount_satoshis(ptr);
4585         return nativeResponseValue;
4586 }
4587 /* @internal */
4588 export function LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height(ptr: number): number {
4589         if(!isWasmInitialized) {
4590                 throw new Error("initializeWasm() must be awaited first!");
4591         }
4592         const nativeResponseValue = wasm.TS_LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height(ptr);
4593         return nativeResponseValue;
4594 }
4595 /* @internal */
4596 export function LDKBalance_ContentiousClaimable_get_claimable_amount_satoshis(ptr: number): bigint {
4597         if(!isWasmInitialized) {
4598                 throw new Error("initializeWasm() must be awaited first!");
4599         }
4600         const nativeResponseValue = wasm.TS_LDKBalance_ContentiousClaimable_get_claimable_amount_satoshis(ptr);
4601         return nativeResponseValue;
4602 }
4603 /* @internal */
4604 export function LDKBalance_ContentiousClaimable_get_timeout_height(ptr: number): number {
4605         if(!isWasmInitialized) {
4606                 throw new Error("initializeWasm() must be awaited first!");
4607         }
4608         const nativeResponseValue = wasm.TS_LDKBalance_ContentiousClaimable_get_timeout_height(ptr);
4609         return nativeResponseValue;
4610 }
4611 /* @internal */
4612 export function LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_amount_satoshis(ptr: number): bigint {
4613         if(!isWasmInitialized) {
4614                 throw new Error("initializeWasm() must be awaited first!");
4615         }
4616         const nativeResponseValue = wasm.TS_LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_amount_satoshis(ptr);
4617         return nativeResponseValue;
4618 }
4619 /* @internal */
4620 export function LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_height(ptr: number): number {
4621         if(!isWasmInitialized) {
4622                 throw new Error("initializeWasm() must be awaited first!");
4623         }
4624         const nativeResponseValue = wasm.TS_LDKBalance_MaybeClaimableHTLCAwaitingTimeout_get_claimable_height(ptr);
4625         return nativeResponseValue;
4626 }
4627         // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelMonitorZ_get_a(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
4628 /* @internal */
4629 export function C2Tuple_BlockHashChannelMonitorZ_get_a(owner: number): number {
4630         if(!isWasmInitialized) {
4631                 throw new Error("initializeWasm() must be awaited first!");
4632         }
4633         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_get_a(owner);
4634         return nativeResponseValue;
4635 }
4636         // struct LDKChannelMonitor C2Tuple_BlockHashChannelMonitorZ_get_b(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
4637 /* @internal */
4638 export function C2Tuple_BlockHashChannelMonitorZ_get_b(owner: number): number {
4639         if(!isWasmInitialized) {
4640                 throw new Error("initializeWasm() must be awaited first!");
4641         }
4642         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_get_b(owner);
4643         return nativeResponseValue;
4644 }
4645         // struct LDKC2Tuple_BlockHashChannelMonitorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
4646 /* @internal */
4647 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(owner: number): number {
4648         if(!isWasmInitialized) {
4649                 throw new Error("initializeWasm() must be awaited first!");
4650         }
4651         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(owner);
4652         return nativeResponseValue;
4653 }
4654         // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
4655 /* @internal */
4656 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(owner: number): number {
4657         if(!isWasmInitialized) {
4658                 throw new Error("initializeWasm() must be awaited first!");
4659         }
4660         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(owner);
4661         return nativeResponseValue;
4662 }
4663         // struct LDKPublicKey C2Tuple_PublicKeyTypeZ_get_a(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
4664 /* @internal */
4665 export function C2Tuple_PublicKeyTypeZ_get_a(owner: number): number {
4666         if(!isWasmInitialized) {
4667                 throw new Error("initializeWasm() must be awaited first!");
4668         }
4669         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_get_a(owner);
4670         return nativeResponseValue;
4671 }
4672         // struct LDKType C2Tuple_PublicKeyTypeZ_get_b(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
4673 /* @internal */
4674 export function C2Tuple_PublicKeyTypeZ_get_b(owner: number): number {
4675         if(!isWasmInitialized) {
4676                 throw new Error("initializeWasm() must be awaited first!");
4677         }
4678         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_get_b(owner);
4679         return nativeResponseValue;
4680 }
4681 /* @internal */
4682 export class LDKCOption_NetAddressZ {
4683         protected constructor() {}
4684 }
4685 /* @internal */
4686 export function LDKCOption_NetAddressZ_ty_from_ptr(ptr: number): number {
4687         if(!isWasmInitialized) {
4688                 throw new Error("initializeWasm() must be awaited first!");
4689         }
4690         const nativeResponseValue = wasm.TS_LDKCOption_NetAddressZ_ty_from_ptr(ptr);
4691         return nativeResponseValue;
4692 }
4693 /* @internal */
4694 export function LDKCOption_NetAddressZ_Some_get_some(ptr: number): number {
4695         if(!isWasmInitialized) {
4696                 throw new Error("initializeWasm() must be awaited first!");
4697         }
4698         const nativeResponseValue = wasm.TS_LDKCOption_NetAddressZ_Some_get_some(ptr);
4699         return nativeResponseValue;
4700 }
4701         // struct LDKCVec_u8Z CResult_CVec_u8ZPeerHandleErrorZ_get_ok(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
4702 /* @internal */
4703 export function CResult_CVec_u8ZPeerHandleErrorZ_get_ok(owner: number): number {
4704         if(!isWasmInitialized) {
4705                 throw new Error("initializeWasm() must be awaited first!");
4706         }
4707         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_get_ok(owner);
4708         return nativeResponseValue;
4709 }
4710         // struct LDKPeerHandleError CResult_CVec_u8ZPeerHandleErrorZ_get_err(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
4711 /* @internal */
4712 export function CResult_CVec_u8ZPeerHandleErrorZ_get_err(owner: number): number {
4713         if(!isWasmInitialized) {
4714                 throw new Error("initializeWasm() must be awaited first!");
4715         }
4716         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_get_err(owner);
4717         return nativeResponseValue;
4718 }
4719         // void CResult_NonePeerHandleErrorZ_get_ok(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
4720 /* @internal */
4721 export function CResult_NonePeerHandleErrorZ_get_ok(owner: number): void {
4722         if(!isWasmInitialized) {
4723                 throw new Error("initializeWasm() must be awaited first!");
4724         }
4725         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_get_ok(owner);
4726         // debug statements here
4727 }
4728         // struct LDKPeerHandleError CResult_NonePeerHandleErrorZ_get_err(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
4729 /* @internal */
4730 export function CResult_NonePeerHandleErrorZ_get_err(owner: number): number {
4731         if(!isWasmInitialized) {
4732                 throw new Error("initializeWasm() must be awaited first!");
4733         }
4734         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_get_err(owner);
4735         return nativeResponseValue;
4736 }
4737         // bool CResult_boolPeerHandleErrorZ_get_ok(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
4738 /* @internal */
4739 export function CResult_boolPeerHandleErrorZ_get_ok(owner: number): boolean {
4740         if(!isWasmInitialized) {
4741                 throw new Error("initializeWasm() must be awaited first!");
4742         }
4743         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_get_ok(owner);
4744         return nativeResponseValue;
4745 }
4746         // struct LDKPeerHandleError CResult_boolPeerHandleErrorZ_get_err(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
4747 /* @internal */
4748 export function CResult_boolPeerHandleErrorZ_get_err(owner: number): number {
4749         if(!isWasmInitialized) {
4750                 throw new Error("initializeWasm() must be awaited first!");
4751         }
4752         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_get_err(owner);
4753         return nativeResponseValue;
4754 }
4755         // void CResult_NoneErrorZ_get_ok(LDKCResult_NoneErrorZ *NONNULL_PTR owner);
4756 /* @internal */
4757 export function CResult_NoneErrorZ_get_ok(owner: number): void {
4758         if(!isWasmInitialized) {
4759                 throw new Error("initializeWasm() must be awaited first!");
4760         }
4761         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_get_ok(owner);
4762         // debug statements here
4763 }
4764         // enum LDKIOError CResult_NoneErrorZ_get_err(LDKCResult_NoneErrorZ *NONNULL_PTR owner);
4765 /* @internal */
4766 export function CResult_NoneErrorZ_get_err(owner: number): IOError {
4767         if(!isWasmInitialized) {
4768                 throw new Error("initializeWasm() must be awaited first!");
4769         }
4770         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_get_err(owner);
4771         return nativeResponseValue;
4772 }
4773         // struct LDKNetAddress CResult_NetAddressDecodeErrorZ_get_ok(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
4774 /* @internal */
4775 export function CResult_NetAddressDecodeErrorZ_get_ok(owner: number): number {
4776         if(!isWasmInitialized) {
4777                 throw new Error("initializeWasm() must be awaited first!");
4778         }
4779         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_get_ok(owner);
4780         return nativeResponseValue;
4781 }
4782         // struct LDKDecodeError CResult_NetAddressDecodeErrorZ_get_err(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
4783 /* @internal */
4784 export function CResult_NetAddressDecodeErrorZ_get_err(owner: number): number {
4785         if(!isWasmInitialized) {
4786                 throw new Error("initializeWasm() must be awaited first!");
4787         }
4788         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_get_err(owner);
4789         return nativeResponseValue;
4790 }
4791         // struct LDKAcceptChannel CResult_AcceptChannelDecodeErrorZ_get_ok(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
4792 /* @internal */
4793 export function CResult_AcceptChannelDecodeErrorZ_get_ok(owner: number): number {
4794         if(!isWasmInitialized) {
4795                 throw new Error("initializeWasm() must be awaited first!");
4796         }
4797         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_get_ok(owner);
4798         return nativeResponseValue;
4799 }
4800         // struct LDKDecodeError CResult_AcceptChannelDecodeErrorZ_get_err(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
4801 /* @internal */
4802 export function CResult_AcceptChannelDecodeErrorZ_get_err(owner: number): number {
4803         if(!isWasmInitialized) {
4804                 throw new Error("initializeWasm() must be awaited first!");
4805         }
4806         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_get_err(owner);
4807         return nativeResponseValue;
4808 }
4809         // struct LDKAnnouncementSignatures CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
4810 /* @internal */
4811 export function CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(owner: number): number {
4812         if(!isWasmInitialized) {
4813                 throw new Error("initializeWasm() must be awaited first!");
4814         }
4815         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(owner);
4816         return nativeResponseValue;
4817 }
4818         // struct LDKDecodeError CResult_AnnouncementSignaturesDecodeErrorZ_get_err(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
4819 /* @internal */
4820 export function CResult_AnnouncementSignaturesDecodeErrorZ_get_err(owner: number): number {
4821         if(!isWasmInitialized) {
4822                 throw new Error("initializeWasm() must be awaited first!");
4823         }
4824         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_get_err(owner);
4825         return nativeResponseValue;
4826 }
4827         // struct LDKChannelReestablish CResult_ChannelReestablishDecodeErrorZ_get_ok(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
4828 /* @internal */
4829 export function CResult_ChannelReestablishDecodeErrorZ_get_ok(owner: number): number {
4830         if(!isWasmInitialized) {
4831                 throw new Error("initializeWasm() must be awaited first!");
4832         }
4833         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_get_ok(owner);
4834         return nativeResponseValue;
4835 }
4836         // struct LDKDecodeError CResult_ChannelReestablishDecodeErrorZ_get_err(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
4837 /* @internal */
4838 export function CResult_ChannelReestablishDecodeErrorZ_get_err(owner: number): number {
4839         if(!isWasmInitialized) {
4840                 throw new Error("initializeWasm() must be awaited first!");
4841         }
4842         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_get_err(owner);
4843         return nativeResponseValue;
4844 }
4845         // struct LDKClosingSigned CResult_ClosingSignedDecodeErrorZ_get_ok(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
4846 /* @internal */
4847 export function CResult_ClosingSignedDecodeErrorZ_get_ok(owner: number): number {
4848         if(!isWasmInitialized) {
4849                 throw new Error("initializeWasm() must be awaited first!");
4850         }
4851         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_get_ok(owner);
4852         return nativeResponseValue;
4853 }
4854         // struct LDKDecodeError CResult_ClosingSignedDecodeErrorZ_get_err(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
4855 /* @internal */
4856 export function CResult_ClosingSignedDecodeErrorZ_get_err(owner: number): number {
4857         if(!isWasmInitialized) {
4858                 throw new Error("initializeWasm() must be awaited first!");
4859         }
4860         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_get_err(owner);
4861         return nativeResponseValue;
4862 }
4863         // struct LDKClosingSignedFeeRange CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
4864 /* @internal */
4865 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(owner: number): number {
4866         if(!isWasmInitialized) {
4867                 throw new Error("initializeWasm() must be awaited first!");
4868         }
4869         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(owner);
4870         return nativeResponseValue;
4871 }
4872         // struct LDKDecodeError CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
4873 /* @internal */
4874 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(owner: number): number {
4875         if(!isWasmInitialized) {
4876                 throw new Error("initializeWasm() must be awaited first!");
4877         }
4878         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(owner);
4879         return nativeResponseValue;
4880 }
4881         // struct LDKCommitmentSigned CResult_CommitmentSignedDecodeErrorZ_get_ok(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
4882 /* @internal */
4883 export function CResult_CommitmentSignedDecodeErrorZ_get_ok(owner: number): number {
4884         if(!isWasmInitialized) {
4885                 throw new Error("initializeWasm() must be awaited first!");
4886         }
4887         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_get_ok(owner);
4888         return nativeResponseValue;
4889 }
4890         // struct LDKDecodeError CResult_CommitmentSignedDecodeErrorZ_get_err(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
4891 /* @internal */
4892 export function CResult_CommitmentSignedDecodeErrorZ_get_err(owner: number): number {
4893         if(!isWasmInitialized) {
4894                 throw new Error("initializeWasm() must be awaited first!");
4895         }
4896         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_get_err(owner);
4897         return nativeResponseValue;
4898 }
4899         // struct LDKFundingCreated CResult_FundingCreatedDecodeErrorZ_get_ok(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
4900 /* @internal */
4901 export function CResult_FundingCreatedDecodeErrorZ_get_ok(owner: number): number {
4902         if(!isWasmInitialized) {
4903                 throw new Error("initializeWasm() must be awaited first!");
4904         }
4905         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_get_ok(owner);
4906         return nativeResponseValue;
4907 }
4908         // struct LDKDecodeError CResult_FundingCreatedDecodeErrorZ_get_err(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
4909 /* @internal */
4910 export function CResult_FundingCreatedDecodeErrorZ_get_err(owner: number): number {
4911         if(!isWasmInitialized) {
4912                 throw new Error("initializeWasm() must be awaited first!");
4913         }
4914         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_get_err(owner);
4915         return nativeResponseValue;
4916 }
4917         // struct LDKFundingSigned CResult_FundingSignedDecodeErrorZ_get_ok(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
4918 /* @internal */
4919 export function CResult_FundingSignedDecodeErrorZ_get_ok(owner: number): number {
4920         if(!isWasmInitialized) {
4921                 throw new Error("initializeWasm() must be awaited first!");
4922         }
4923         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_get_ok(owner);
4924         return nativeResponseValue;
4925 }
4926         // struct LDKDecodeError CResult_FundingSignedDecodeErrorZ_get_err(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
4927 /* @internal */
4928 export function CResult_FundingSignedDecodeErrorZ_get_err(owner: number): number {
4929         if(!isWasmInitialized) {
4930                 throw new Error("initializeWasm() must be awaited first!");
4931         }
4932         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_get_err(owner);
4933         return nativeResponseValue;
4934 }
4935         // struct LDKChannelReady CResult_ChannelReadyDecodeErrorZ_get_ok(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
4936 /* @internal */
4937 export function CResult_ChannelReadyDecodeErrorZ_get_ok(owner: number): number {
4938         if(!isWasmInitialized) {
4939                 throw new Error("initializeWasm() must be awaited first!");
4940         }
4941         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_get_ok(owner);
4942         return nativeResponseValue;
4943 }
4944         // struct LDKDecodeError CResult_ChannelReadyDecodeErrorZ_get_err(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
4945 /* @internal */
4946 export function CResult_ChannelReadyDecodeErrorZ_get_err(owner: number): number {
4947         if(!isWasmInitialized) {
4948                 throw new Error("initializeWasm() must be awaited first!");
4949         }
4950         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_get_err(owner);
4951         return nativeResponseValue;
4952 }
4953         // struct LDKInit CResult_InitDecodeErrorZ_get_ok(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
4954 /* @internal */
4955 export function CResult_InitDecodeErrorZ_get_ok(owner: number): number {
4956         if(!isWasmInitialized) {
4957                 throw new Error("initializeWasm() must be awaited first!");
4958         }
4959         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_get_ok(owner);
4960         return nativeResponseValue;
4961 }
4962         // struct LDKDecodeError CResult_InitDecodeErrorZ_get_err(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
4963 /* @internal */
4964 export function CResult_InitDecodeErrorZ_get_err(owner: number): number {
4965         if(!isWasmInitialized) {
4966                 throw new Error("initializeWasm() must be awaited first!");
4967         }
4968         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_get_err(owner);
4969         return nativeResponseValue;
4970 }
4971         // struct LDKOpenChannel CResult_OpenChannelDecodeErrorZ_get_ok(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
4972 /* @internal */
4973 export function CResult_OpenChannelDecodeErrorZ_get_ok(owner: number): number {
4974         if(!isWasmInitialized) {
4975                 throw new Error("initializeWasm() must be awaited first!");
4976         }
4977         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_get_ok(owner);
4978         return nativeResponseValue;
4979 }
4980         // struct LDKDecodeError CResult_OpenChannelDecodeErrorZ_get_err(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
4981 /* @internal */
4982 export function CResult_OpenChannelDecodeErrorZ_get_err(owner: number): number {
4983         if(!isWasmInitialized) {
4984                 throw new Error("initializeWasm() must be awaited first!");
4985         }
4986         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_get_err(owner);
4987         return nativeResponseValue;
4988 }
4989         // struct LDKRevokeAndACK CResult_RevokeAndACKDecodeErrorZ_get_ok(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
4990 /* @internal */
4991 export function CResult_RevokeAndACKDecodeErrorZ_get_ok(owner: number): number {
4992         if(!isWasmInitialized) {
4993                 throw new Error("initializeWasm() must be awaited first!");
4994         }
4995         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_get_ok(owner);
4996         return nativeResponseValue;
4997 }
4998         // struct LDKDecodeError CResult_RevokeAndACKDecodeErrorZ_get_err(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
4999 /* @internal */
5000 export function CResult_RevokeAndACKDecodeErrorZ_get_err(owner: number): number {
5001         if(!isWasmInitialized) {
5002                 throw new Error("initializeWasm() must be awaited first!");
5003         }
5004         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_get_err(owner);
5005         return nativeResponseValue;
5006 }
5007         // struct LDKShutdown CResult_ShutdownDecodeErrorZ_get_ok(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
5008 /* @internal */
5009 export function CResult_ShutdownDecodeErrorZ_get_ok(owner: number): number {
5010         if(!isWasmInitialized) {
5011                 throw new Error("initializeWasm() must be awaited first!");
5012         }
5013         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_get_ok(owner);
5014         return nativeResponseValue;
5015 }
5016         // struct LDKDecodeError CResult_ShutdownDecodeErrorZ_get_err(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
5017 /* @internal */
5018 export function CResult_ShutdownDecodeErrorZ_get_err(owner: number): number {
5019         if(!isWasmInitialized) {
5020                 throw new Error("initializeWasm() must be awaited first!");
5021         }
5022         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_get_err(owner);
5023         return nativeResponseValue;
5024 }
5025         // struct LDKUpdateFailHTLC CResult_UpdateFailHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
5026 /* @internal */
5027 export function CResult_UpdateFailHTLCDecodeErrorZ_get_ok(owner: number): number {
5028         if(!isWasmInitialized) {
5029                 throw new Error("initializeWasm() must be awaited first!");
5030         }
5031         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_get_ok(owner);
5032         return nativeResponseValue;
5033 }
5034         // struct LDKDecodeError CResult_UpdateFailHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
5035 /* @internal */
5036 export function CResult_UpdateFailHTLCDecodeErrorZ_get_err(owner: number): number {
5037         if(!isWasmInitialized) {
5038                 throw new Error("initializeWasm() must be awaited first!");
5039         }
5040         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_get_err(owner);
5041         return nativeResponseValue;
5042 }
5043         // struct LDKUpdateFailMalformedHTLC CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
5044 /* @internal */
5045 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(owner: number): number {
5046         if(!isWasmInitialized) {
5047                 throw new Error("initializeWasm() must be awaited first!");
5048         }
5049         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(owner);
5050         return nativeResponseValue;
5051 }
5052         // struct LDKDecodeError CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
5053 /* @internal */
5054 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(owner: number): number {
5055         if(!isWasmInitialized) {
5056                 throw new Error("initializeWasm() must be awaited first!");
5057         }
5058         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(owner);
5059         return nativeResponseValue;
5060 }
5061         // struct LDKUpdateFee CResult_UpdateFeeDecodeErrorZ_get_ok(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
5062 /* @internal */
5063 export function CResult_UpdateFeeDecodeErrorZ_get_ok(owner: number): number {
5064         if(!isWasmInitialized) {
5065                 throw new Error("initializeWasm() must be awaited first!");
5066         }
5067         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_get_ok(owner);
5068         return nativeResponseValue;
5069 }
5070         // struct LDKDecodeError CResult_UpdateFeeDecodeErrorZ_get_err(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
5071 /* @internal */
5072 export function CResult_UpdateFeeDecodeErrorZ_get_err(owner: number): number {
5073         if(!isWasmInitialized) {
5074                 throw new Error("initializeWasm() must be awaited first!");
5075         }
5076         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_get_err(owner);
5077         return nativeResponseValue;
5078 }
5079         // struct LDKUpdateFulfillHTLC CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
5080 /* @internal */
5081 export function CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(owner: number): number {
5082         if(!isWasmInitialized) {
5083                 throw new Error("initializeWasm() must be awaited first!");
5084         }
5085         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(owner);
5086         return nativeResponseValue;
5087 }
5088         // struct LDKDecodeError CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
5089 /* @internal */
5090 export function CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(owner: number): number {
5091         if(!isWasmInitialized) {
5092                 throw new Error("initializeWasm() must be awaited first!");
5093         }
5094         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(owner);
5095         return nativeResponseValue;
5096 }
5097         // struct LDKUpdateAddHTLC CResult_UpdateAddHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
5098 /* @internal */
5099 export function CResult_UpdateAddHTLCDecodeErrorZ_get_ok(owner: number): number {
5100         if(!isWasmInitialized) {
5101                 throw new Error("initializeWasm() must be awaited first!");
5102         }
5103         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_get_ok(owner);
5104         return nativeResponseValue;
5105 }
5106         // struct LDKDecodeError CResult_UpdateAddHTLCDecodeErrorZ_get_err(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
5107 /* @internal */
5108 export function CResult_UpdateAddHTLCDecodeErrorZ_get_err(owner: number): number {
5109         if(!isWasmInitialized) {
5110                 throw new Error("initializeWasm() must be awaited first!");
5111         }
5112         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_get_err(owner);
5113         return nativeResponseValue;
5114 }
5115         // struct LDKPing CResult_PingDecodeErrorZ_get_ok(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
5116 /* @internal */
5117 export function CResult_PingDecodeErrorZ_get_ok(owner: number): number {
5118         if(!isWasmInitialized) {
5119                 throw new Error("initializeWasm() must be awaited first!");
5120         }
5121         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_get_ok(owner);
5122         return nativeResponseValue;
5123 }
5124         // struct LDKDecodeError CResult_PingDecodeErrorZ_get_err(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
5125 /* @internal */
5126 export function CResult_PingDecodeErrorZ_get_err(owner: number): number {
5127         if(!isWasmInitialized) {
5128                 throw new Error("initializeWasm() must be awaited first!");
5129         }
5130         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_get_err(owner);
5131         return nativeResponseValue;
5132 }
5133         // struct LDKPong CResult_PongDecodeErrorZ_get_ok(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
5134 /* @internal */
5135 export function CResult_PongDecodeErrorZ_get_ok(owner: number): number {
5136         if(!isWasmInitialized) {
5137                 throw new Error("initializeWasm() must be awaited first!");
5138         }
5139         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_get_ok(owner);
5140         return nativeResponseValue;
5141 }
5142         // struct LDKDecodeError CResult_PongDecodeErrorZ_get_err(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
5143 /* @internal */
5144 export function CResult_PongDecodeErrorZ_get_err(owner: number): number {
5145         if(!isWasmInitialized) {
5146                 throw new Error("initializeWasm() must be awaited first!");
5147         }
5148         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_get_err(owner);
5149         return nativeResponseValue;
5150 }
5151         // struct LDKUnsignedChannelAnnouncement CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5152 /* @internal */
5153 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(owner: number): number {
5154         if(!isWasmInitialized) {
5155                 throw new Error("initializeWasm() must be awaited first!");
5156         }
5157         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(owner);
5158         return nativeResponseValue;
5159 }
5160         // struct LDKDecodeError CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5161 /* @internal */
5162 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(owner: number): number {
5163         if(!isWasmInitialized) {
5164                 throw new Error("initializeWasm() must be awaited first!");
5165         }
5166         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(owner);
5167         return nativeResponseValue;
5168 }
5169         // struct LDKChannelAnnouncement CResult_ChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5170 /* @internal */
5171 export function CResult_ChannelAnnouncementDecodeErrorZ_get_ok(owner: number): number {
5172         if(!isWasmInitialized) {
5173                 throw new Error("initializeWasm() must be awaited first!");
5174         }
5175         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_get_ok(owner);
5176         return nativeResponseValue;
5177 }
5178         // struct LDKDecodeError CResult_ChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5179 /* @internal */
5180 export function CResult_ChannelAnnouncementDecodeErrorZ_get_err(owner: number): number {
5181         if(!isWasmInitialized) {
5182                 throw new Error("initializeWasm() must be awaited first!");
5183         }
5184         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_get_err(owner);
5185         return nativeResponseValue;
5186 }
5187         // struct LDKUnsignedChannelUpdate CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5188 /* @internal */
5189 export function CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(owner: number): number {
5190         if(!isWasmInitialized) {
5191                 throw new Error("initializeWasm() must be awaited first!");
5192         }
5193         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(owner);
5194         return nativeResponseValue;
5195 }
5196         // struct LDKDecodeError CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5197 /* @internal */
5198 export function CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(owner: number): number {
5199         if(!isWasmInitialized) {
5200                 throw new Error("initializeWasm() must be awaited first!");
5201         }
5202         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(owner);
5203         return nativeResponseValue;
5204 }
5205         // struct LDKChannelUpdate CResult_ChannelUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5206 /* @internal */
5207 export function CResult_ChannelUpdateDecodeErrorZ_get_ok(owner: number): number {
5208         if(!isWasmInitialized) {
5209                 throw new Error("initializeWasm() must be awaited first!");
5210         }
5211         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_get_ok(owner);
5212         return nativeResponseValue;
5213 }
5214         // struct LDKDecodeError CResult_ChannelUpdateDecodeErrorZ_get_err(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
5215 /* @internal */
5216 export function CResult_ChannelUpdateDecodeErrorZ_get_err(owner: number): number {
5217         if(!isWasmInitialized) {
5218                 throw new Error("initializeWasm() must be awaited first!");
5219         }
5220         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_get_err(owner);
5221         return nativeResponseValue;
5222 }
5223         // struct LDKErrorMessage CResult_ErrorMessageDecodeErrorZ_get_ok(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
5224 /* @internal */
5225 export function CResult_ErrorMessageDecodeErrorZ_get_ok(owner: number): number {
5226         if(!isWasmInitialized) {
5227                 throw new Error("initializeWasm() must be awaited first!");
5228         }
5229         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_get_ok(owner);
5230         return nativeResponseValue;
5231 }
5232         // struct LDKDecodeError CResult_ErrorMessageDecodeErrorZ_get_err(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
5233 /* @internal */
5234 export function CResult_ErrorMessageDecodeErrorZ_get_err(owner: number): number {
5235         if(!isWasmInitialized) {
5236                 throw new Error("initializeWasm() must be awaited first!");
5237         }
5238         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_get_err(owner);
5239         return nativeResponseValue;
5240 }
5241         // struct LDKWarningMessage CResult_WarningMessageDecodeErrorZ_get_ok(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
5242 /* @internal */
5243 export function CResult_WarningMessageDecodeErrorZ_get_ok(owner: number): number {
5244         if(!isWasmInitialized) {
5245                 throw new Error("initializeWasm() must be awaited first!");
5246         }
5247         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_get_ok(owner);
5248         return nativeResponseValue;
5249 }
5250         // struct LDKDecodeError CResult_WarningMessageDecodeErrorZ_get_err(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
5251 /* @internal */
5252 export function CResult_WarningMessageDecodeErrorZ_get_err(owner: number): number {
5253         if(!isWasmInitialized) {
5254                 throw new Error("initializeWasm() must be awaited first!");
5255         }
5256         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_get_err(owner);
5257         return nativeResponseValue;
5258 }
5259         // struct LDKUnsignedNodeAnnouncement CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5260 /* @internal */
5261 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(owner: number): number {
5262         if(!isWasmInitialized) {
5263                 throw new Error("initializeWasm() must be awaited first!");
5264         }
5265         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(owner);
5266         return nativeResponseValue;
5267 }
5268         // struct LDKDecodeError CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5269 /* @internal */
5270 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(owner: number): number {
5271         if(!isWasmInitialized) {
5272                 throw new Error("initializeWasm() must be awaited first!");
5273         }
5274         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(owner);
5275         return nativeResponseValue;
5276 }
5277         // struct LDKNodeAnnouncement CResult_NodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5278 /* @internal */
5279 export function CResult_NodeAnnouncementDecodeErrorZ_get_ok(owner: number): number {
5280         if(!isWasmInitialized) {
5281                 throw new Error("initializeWasm() must be awaited first!");
5282         }
5283         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_get_ok(owner);
5284         return nativeResponseValue;
5285 }
5286         // struct LDKDecodeError CResult_NodeAnnouncementDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
5287 /* @internal */
5288 export function CResult_NodeAnnouncementDecodeErrorZ_get_err(owner: number): number {
5289         if(!isWasmInitialized) {
5290                 throw new Error("initializeWasm() must be awaited first!");
5291         }
5292         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_get_err(owner);
5293         return nativeResponseValue;
5294 }
5295         // struct LDKQueryShortChannelIds CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
5296 /* @internal */
5297 export function CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(owner: number): number {
5298         if(!isWasmInitialized) {
5299                 throw new Error("initializeWasm() must be awaited first!");
5300         }
5301         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(owner);
5302         return nativeResponseValue;
5303 }
5304         // struct LDKDecodeError CResult_QueryShortChannelIdsDecodeErrorZ_get_err(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
5305 /* @internal */
5306 export function CResult_QueryShortChannelIdsDecodeErrorZ_get_err(owner: number): number {
5307         if(!isWasmInitialized) {
5308                 throw new Error("initializeWasm() must be awaited first!");
5309         }
5310         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_get_err(owner);
5311         return nativeResponseValue;
5312 }
5313         // struct LDKReplyShortChannelIdsEnd CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
5314 /* @internal */
5315 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(owner: number): number {
5316         if(!isWasmInitialized) {
5317                 throw new Error("initializeWasm() must be awaited first!");
5318         }
5319         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(owner);
5320         return nativeResponseValue;
5321 }
5322         // struct LDKDecodeError CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
5323 /* @internal */
5324 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(owner: number): number {
5325         if(!isWasmInitialized) {
5326                 throw new Error("initializeWasm() must be awaited first!");
5327         }
5328         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(owner);
5329         return nativeResponseValue;
5330 }
5331         // struct LDKQueryChannelRange CResult_QueryChannelRangeDecodeErrorZ_get_ok(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5332 /* @internal */
5333 export function CResult_QueryChannelRangeDecodeErrorZ_get_ok(owner: number): number {
5334         if(!isWasmInitialized) {
5335                 throw new Error("initializeWasm() must be awaited first!");
5336         }
5337         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_get_ok(owner);
5338         return nativeResponseValue;
5339 }
5340         // struct LDKDecodeError CResult_QueryChannelRangeDecodeErrorZ_get_err(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5341 /* @internal */
5342 export function CResult_QueryChannelRangeDecodeErrorZ_get_err(owner: number): number {
5343         if(!isWasmInitialized) {
5344                 throw new Error("initializeWasm() must be awaited first!");
5345         }
5346         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_get_err(owner);
5347         return nativeResponseValue;
5348 }
5349         // struct LDKReplyChannelRange CResult_ReplyChannelRangeDecodeErrorZ_get_ok(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5350 /* @internal */
5351 export function CResult_ReplyChannelRangeDecodeErrorZ_get_ok(owner: number): number {
5352         if(!isWasmInitialized) {
5353                 throw new Error("initializeWasm() must be awaited first!");
5354         }
5355         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_get_ok(owner);
5356         return nativeResponseValue;
5357 }
5358         // struct LDKDecodeError CResult_ReplyChannelRangeDecodeErrorZ_get_err(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
5359 /* @internal */
5360 export function CResult_ReplyChannelRangeDecodeErrorZ_get_err(owner: number): number {
5361         if(!isWasmInitialized) {
5362                 throw new Error("initializeWasm() must be awaited first!");
5363         }
5364         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_get_err(owner);
5365         return nativeResponseValue;
5366 }
5367         // struct LDKGossipTimestampFilter CResult_GossipTimestampFilterDecodeErrorZ_get_ok(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
5368 /* @internal */
5369 export function CResult_GossipTimestampFilterDecodeErrorZ_get_ok(owner: number): number {
5370         if(!isWasmInitialized) {
5371                 throw new Error("initializeWasm() must be awaited first!");
5372         }
5373         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_get_ok(owner);
5374         return nativeResponseValue;
5375 }
5376         // struct LDKDecodeError CResult_GossipTimestampFilterDecodeErrorZ_get_err(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
5377 /* @internal */
5378 export function CResult_GossipTimestampFilterDecodeErrorZ_get_err(owner: number): number {
5379         if(!isWasmInitialized) {
5380                 throw new Error("initializeWasm() must be awaited first!");
5381         }
5382         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_get_err(owner);
5383         return nativeResponseValue;
5384 }
5385 /* @internal */
5386 export class LDKSignOrCreationError {
5387         protected constructor() {}
5388 }
5389 /* @internal */
5390 export function LDKSignOrCreationError_ty_from_ptr(ptr: number): number {
5391         if(!isWasmInitialized) {
5392                 throw new Error("initializeWasm() must be awaited first!");
5393         }
5394         const nativeResponseValue = wasm.TS_LDKSignOrCreationError_ty_from_ptr(ptr);
5395         return nativeResponseValue;
5396 }
5397 /* @internal */
5398 export function LDKSignOrCreationError_CreationError_get_creation_error(ptr: number): CreationError {
5399         if(!isWasmInitialized) {
5400                 throw new Error("initializeWasm() must be awaited first!");
5401         }
5402         const nativeResponseValue = wasm.TS_LDKSignOrCreationError_CreationError_get_creation_error(ptr);
5403         return nativeResponseValue;
5404 }
5405         // struct LDKInvoice CResult_InvoiceSignOrCreationErrorZ_get_ok(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
5406 /* @internal */
5407 export function CResult_InvoiceSignOrCreationErrorZ_get_ok(owner: number): number {
5408         if(!isWasmInitialized) {
5409                 throw new Error("initializeWasm() must be awaited first!");
5410         }
5411         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_get_ok(owner);
5412         return nativeResponseValue;
5413 }
5414         // struct LDKSignOrCreationError CResult_InvoiceSignOrCreationErrorZ_get_err(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
5415 /* @internal */
5416 export function CResult_InvoiceSignOrCreationErrorZ_get_err(owner: number): number {
5417         if(!isWasmInitialized) {
5418                 throw new Error("initializeWasm() must be awaited first!");
5419         }
5420         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_get_err(owner);
5421         return nativeResponseValue;
5422 }
5423 /* @internal */
5424 export interface LDKFilter {
5425         register_tx (txid: number, script_pubkey: number): void;
5426         register_output (output: number): number;
5427 }
5428
5429 /* @internal */
5430 export function LDKFilter_new(impl: LDKFilter): number {
5431         if(!isWasmInitialized) {
5432                 throw new Error("initializeWasm() must be awaited first!");
5433         }
5434         var new_obj_idx = js_objs.length;
5435         for (var i = 0; i < js_objs.length; i++) {
5436                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5437         }
5438         js_objs[i] = new WeakRef(impl);
5439         return wasm.TS_LDKFilter_new(i);
5440 }
5441         // void Filter_register_tx LDKFilter *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKu8slice script_pubkey
5442 /* @internal */
5443 export function Filter_register_tx(this_arg: number, txid: number, script_pubkey: number): void {
5444         if(!isWasmInitialized) {
5445                 throw new Error("initializeWasm() must be awaited first!");
5446         }
5447         const nativeResponseValue = wasm.TS_Filter_register_tx(this_arg, txid, script_pubkey);
5448         // debug statements here
5449 }
5450         // LDKCOption_C2Tuple_usizeTransactionZZ Filter_register_output LDKFilter *NONNULL_PTR this_arg, struct LDKWatchedOutput output
5451 /* @internal */
5452 export function Filter_register_output(this_arg: number, output: number): number {
5453         if(!isWasmInitialized) {
5454                 throw new Error("initializeWasm() must be awaited first!");
5455         }
5456         const nativeResponseValue = wasm.TS_Filter_register_output(this_arg, output);
5457         return nativeResponseValue;
5458 }
5459 /* @internal */
5460 export class LDKCOption_FilterZ {
5461         protected constructor() {}
5462 }
5463 /* @internal */
5464 export function LDKCOption_FilterZ_ty_from_ptr(ptr: number): number {
5465         if(!isWasmInitialized) {
5466                 throw new Error("initializeWasm() must be awaited first!");
5467         }
5468         const nativeResponseValue = wasm.TS_LDKCOption_FilterZ_ty_from_ptr(ptr);
5469         return nativeResponseValue;
5470 }
5471 /* @internal */
5472 export function LDKCOption_FilterZ_Some_get_some(ptr: number): number {
5473         if(!isWasmInitialized) {
5474                 throw new Error("initializeWasm() must be awaited first!");
5475         }
5476         const nativeResponseValue = wasm.TS_LDKCOption_FilterZ_Some_get_some(ptr);
5477         return nativeResponseValue;
5478 }
5479         // struct LDKLockedChannelMonitor *CResult_LockedChannelMonitorNoneZ_get_ok(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
5480 /* @internal */
5481 export function CResult_LockedChannelMonitorNoneZ_get_ok(owner: number): number {
5482         if(!isWasmInitialized) {
5483                 throw new Error("initializeWasm() must be awaited first!");
5484         }
5485         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_get_ok(owner);
5486         return nativeResponseValue;
5487 }
5488         // void CResult_LockedChannelMonitorNoneZ_get_err(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
5489 /* @internal */
5490 export function CResult_LockedChannelMonitorNoneZ_get_err(owner: number): void {
5491         if(!isWasmInitialized) {
5492                 throw new Error("initializeWasm() must be awaited first!");
5493         }
5494         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_get_err(owner);
5495         // debug statements here
5496 }
5497 /* @internal */
5498 export interface LDKMessageSendEventsProvider {
5499         get_and_clear_pending_msg_events (): number;
5500 }
5501
5502 /* @internal */
5503 export function LDKMessageSendEventsProvider_new(impl: LDKMessageSendEventsProvider): number {
5504         if(!isWasmInitialized) {
5505                 throw new Error("initializeWasm() must be awaited first!");
5506         }
5507         var new_obj_idx = js_objs.length;
5508         for (var i = 0; i < js_objs.length; i++) {
5509                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5510         }
5511         js_objs[i] = new WeakRef(impl);
5512         return wasm.TS_LDKMessageSendEventsProvider_new(i);
5513 }
5514         // LDKCVec_MessageSendEventZ MessageSendEventsProvider_get_and_clear_pending_msg_events LDKMessageSendEventsProvider *NONNULL_PTR this_arg
5515 /* @internal */
5516 export function MessageSendEventsProvider_get_and_clear_pending_msg_events(this_arg: number): number {
5517         if(!isWasmInitialized) {
5518                 throw new Error("initializeWasm() must be awaited first!");
5519         }
5520         const nativeResponseValue = wasm.TS_MessageSendEventsProvider_get_and_clear_pending_msg_events(this_arg);
5521         return nativeResponseValue;
5522 }
5523 /* @internal */
5524 export interface LDKEventHandler {
5525         handle_event (event: number): void;
5526 }
5527
5528 /* @internal */
5529 export function LDKEventHandler_new(impl: LDKEventHandler): number {
5530         if(!isWasmInitialized) {
5531                 throw new Error("initializeWasm() must be awaited first!");
5532         }
5533         var new_obj_idx = js_objs.length;
5534         for (var i = 0; i < js_objs.length; i++) {
5535                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5536         }
5537         js_objs[i] = new WeakRef(impl);
5538         return wasm.TS_LDKEventHandler_new(i);
5539 }
5540         // void EventHandler_handle_event LDKEventHandler *NONNULL_PTR this_arg, const struct LDKEvent *NONNULL_PTR event
5541 /* @internal */
5542 export function EventHandler_handle_event(this_arg: number, event: number): void {
5543         if(!isWasmInitialized) {
5544                 throw new Error("initializeWasm() must be awaited first!");
5545         }
5546         const nativeResponseValue = wasm.TS_EventHandler_handle_event(this_arg, event);
5547         // debug statements here
5548 }
5549 /* @internal */
5550 export interface LDKEventsProvider {
5551         process_pending_events (handler: number): void;
5552 }
5553
5554 /* @internal */
5555 export function LDKEventsProvider_new(impl: LDKEventsProvider): number {
5556         if(!isWasmInitialized) {
5557                 throw new Error("initializeWasm() must be awaited first!");
5558         }
5559         var new_obj_idx = js_objs.length;
5560         for (var i = 0; i < js_objs.length; i++) {
5561                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5562         }
5563         js_objs[i] = new WeakRef(impl);
5564         return wasm.TS_LDKEventsProvider_new(i);
5565 }
5566         // void EventsProvider_process_pending_events LDKEventsProvider *NONNULL_PTR this_arg, struct LDKEventHandler handler
5567 /* @internal */
5568 export function EventsProvider_process_pending_events(this_arg: number, handler: number): void {
5569         if(!isWasmInitialized) {
5570                 throw new Error("initializeWasm() must be awaited first!");
5571         }
5572         const nativeResponseValue = wasm.TS_EventsProvider_process_pending_events(this_arg, handler);
5573         // debug statements here
5574 }
5575 /* @internal */
5576 export interface LDKScore {
5577         channel_penalty_msat (short_channel_id: bigint, source: number, target: number, usage: number): bigint;
5578         payment_path_failed (path: number, short_channel_id: bigint): void;
5579         payment_path_successful (path: number): void;
5580         write (): number;
5581 }
5582
5583 /* @internal */
5584 export function LDKScore_new(impl: LDKScore): number {
5585         if(!isWasmInitialized) {
5586                 throw new Error("initializeWasm() must be awaited first!");
5587         }
5588         var new_obj_idx = js_objs.length;
5589         for (var i = 0; i < js_objs.length; i++) {
5590                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5591         }
5592         js_objs[i] = new WeakRef(impl);
5593         return wasm.TS_LDKScore_new(i);
5594 }
5595         // uint64_t Score_channel_penalty_msat LDKScore *NONNULL_PTR this_arg, uint64_t short_channel_id, const struct LDKNodeId *NONNULL_PTR source, const struct LDKNodeId *NONNULL_PTR target, struct LDKChannelUsage usage
5596 /* @internal */
5597 export function Score_channel_penalty_msat(this_arg: number, short_channel_id: bigint, source: number, target: number, usage: number): bigint {
5598         if(!isWasmInitialized) {
5599                 throw new Error("initializeWasm() must be awaited first!");
5600         }
5601         const nativeResponseValue = wasm.TS_Score_channel_penalty_msat(this_arg, short_channel_id, source, target, usage);
5602         return nativeResponseValue;
5603 }
5604         // void Score_payment_path_failed LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path, uint64_t short_channel_id
5605 /* @internal */
5606 export function Score_payment_path_failed(this_arg: number, path: number, short_channel_id: bigint): void {
5607         if(!isWasmInitialized) {
5608                 throw new Error("initializeWasm() must be awaited first!");
5609         }
5610         const nativeResponseValue = wasm.TS_Score_payment_path_failed(this_arg, path, short_channel_id);
5611         // debug statements here
5612 }
5613         // void Score_payment_path_successful LDKScore *NONNULL_PTR this_arg, struct LDKCVec_RouteHopZ path
5614 /* @internal */
5615 export function Score_payment_path_successful(this_arg: number, path: number): void {
5616         if(!isWasmInitialized) {
5617                 throw new Error("initializeWasm() must be awaited first!");
5618         }
5619         const nativeResponseValue = wasm.TS_Score_payment_path_successful(this_arg, path);
5620         // debug statements here
5621 }
5622         // LDKCVec_u8Z Score_write LDKScore *NONNULL_PTR this_arg
5623 /* @internal */
5624 export function Score_write(this_arg: number): number {
5625         if(!isWasmInitialized) {
5626                 throw new Error("initializeWasm() must be awaited first!");
5627         }
5628         const nativeResponseValue = wasm.TS_Score_write(this_arg);
5629         return nativeResponseValue;
5630 }
5631 /* @internal */
5632 export interface LDKPersister {
5633         persist_manager (channel_manager: number): number;
5634         persist_graph (network_graph: number): number;
5635         persist_scorer (scorer: number): number;
5636 }
5637
5638 /* @internal */
5639 export function LDKPersister_new(impl: LDKPersister): number {
5640         if(!isWasmInitialized) {
5641                 throw new Error("initializeWasm() must be awaited first!");
5642         }
5643         var new_obj_idx = js_objs.length;
5644         for (var i = 0; i < js_objs.length; i++) {
5645                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5646         }
5647         js_objs[i] = new WeakRef(impl);
5648         return wasm.TS_LDKPersister_new(i);
5649 }
5650         // LDKCResult_NoneErrorZ Persister_persist_manager LDKPersister *NONNULL_PTR this_arg, const struct LDKChannelManager *NONNULL_PTR channel_manager
5651 /* @internal */
5652 export function Persister_persist_manager(this_arg: number, channel_manager: number): number {
5653         if(!isWasmInitialized) {
5654                 throw new Error("initializeWasm() must be awaited first!");
5655         }
5656         const nativeResponseValue = wasm.TS_Persister_persist_manager(this_arg, channel_manager);
5657         return nativeResponseValue;
5658 }
5659         // LDKCResult_NoneErrorZ Persister_persist_graph LDKPersister *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR network_graph
5660 /* @internal */
5661 export function Persister_persist_graph(this_arg: number, network_graph: number): number {
5662         if(!isWasmInitialized) {
5663                 throw new Error("initializeWasm() must be awaited first!");
5664         }
5665         const nativeResponseValue = wasm.TS_Persister_persist_graph(this_arg, network_graph);
5666         return nativeResponseValue;
5667 }
5668         // LDKCResult_NoneErrorZ Persister_persist_scorer LDKPersister *NONNULL_PTR this_arg, const struct LDKMultiThreadedLockableScore *NONNULL_PTR scorer
5669 /* @internal */
5670 export function Persister_persist_scorer(this_arg: number, scorer: number): number {
5671         if(!isWasmInitialized) {
5672                 throw new Error("initializeWasm() must be awaited first!");
5673         }
5674         const nativeResponseValue = wasm.TS_Persister_persist_scorer(this_arg, scorer);
5675         return nativeResponseValue;
5676 }
5677 /* @internal */
5678 export interface LDKListen {
5679         filtered_block_connected (header: number, txdata: number, height: number): void;
5680         block_connected (block: number, height: number): void;
5681         block_disconnected (header: number, height: number): void;
5682 }
5683
5684 /* @internal */
5685 export function LDKListen_new(impl: LDKListen): number {
5686         if(!isWasmInitialized) {
5687                 throw new Error("initializeWasm() must be awaited first!");
5688         }
5689         var new_obj_idx = js_objs.length;
5690         for (var i = 0; i < js_objs.length; i++) {
5691                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5692         }
5693         js_objs[i] = new WeakRef(impl);
5694         return wasm.TS_LDKListen_new(i);
5695 }
5696         // void Listen_filtered_block_connected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
5697 /* @internal */
5698 export function Listen_filtered_block_connected(this_arg: number, header: number, txdata: number, height: number): void {
5699         if(!isWasmInitialized) {
5700                 throw new Error("initializeWasm() must be awaited first!");
5701         }
5702         const nativeResponseValue = wasm.TS_Listen_filtered_block_connected(this_arg, header, txdata, height);
5703         // debug statements here
5704 }
5705         // void Listen_block_connected LDKListen *NONNULL_PTR this_arg, struct LDKu8slice block, uint32_t height
5706 /* @internal */
5707 export function Listen_block_connected(this_arg: number, block: number, height: number): void {
5708         if(!isWasmInitialized) {
5709                 throw new Error("initializeWasm() must be awaited first!");
5710         }
5711         const nativeResponseValue = wasm.TS_Listen_block_connected(this_arg, block, height);
5712         // debug statements here
5713 }
5714         // void Listen_block_disconnected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
5715 /* @internal */
5716 export function Listen_block_disconnected(this_arg: number, header: number, height: number): void {
5717         if(!isWasmInitialized) {
5718                 throw new Error("initializeWasm() must be awaited first!");
5719         }
5720         const nativeResponseValue = wasm.TS_Listen_block_disconnected(this_arg, header, height);
5721         // debug statements here
5722 }
5723 /* @internal */
5724 export interface LDKConfirm {
5725         transactions_confirmed (header: number, txdata: number, height: number): void;
5726         transaction_unconfirmed (txid: number): void;
5727         best_block_updated (header: number, height: number): void;
5728         get_relevant_txids (): number;
5729 }
5730
5731 /* @internal */
5732 export function LDKConfirm_new(impl: LDKConfirm): number {
5733         if(!isWasmInitialized) {
5734                 throw new Error("initializeWasm() must be awaited first!");
5735         }
5736         var new_obj_idx = js_objs.length;
5737         for (var i = 0; i < js_objs.length; i++) {
5738                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5739         }
5740         js_objs[i] = new WeakRef(impl);
5741         return wasm.TS_LDKConfirm_new(i);
5742 }
5743         // void Confirm_transactions_confirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
5744 /* @internal */
5745 export function Confirm_transactions_confirmed(this_arg: number, header: number, txdata: number, height: number): void {
5746         if(!isWasmInitialized) {
5747                 throw new Error("initializeWasm() must be awaited first!");
5748         }
5749         const nativeResponseValue = wasm.TS_Confirm_transactions_confirmed(this_arg, header, txdata, height);
5750         // debug statements here
5751 }
5752         // void Confirm_transaction_unconfirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*txid)[32]
5753 /* @internal */
5754 export function Confirm_transaction_unconfirmed(this_arg: number, txid: number): void {
5755         if(!isWasmInitialized) {
5756                 throw new Error("initializeWasm() must be awaited first!");
5757         }
5758         const nativeResponseValue = wasm.TS_Confirm_transaction_unconfirmed(this_arg, txid);
5759         // debug statements here
5760 }
5761         // void Confirm_best_block_updated LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
5762 /* @internal */
5763 export function Confirm_best_block_updated(this_arg: number, header: number, height: number): void {
5764         if(!isWasmInitialized) {
5765                 throw new Error("initializeWasm() must be awaited first!");
5766         }
5767         const nativeResponseValue = wasm.TS_Confirm_best_block_updated(this_arg, header, height);
5768         // debug statements here
5769 }
5770         // LDKCVec_TxidZ Confirm_get_relevant_txids LDKConfirm *NONNULL_PTR this_arg
5771 /* @internal */
5772 export function Confirm_get_relevant_txids(this_arg: number): number {
5773         if(!isWasmInitialized) {
5774                 throw new Error("initializeWasm() must be awaited first!");
5775         }
5776         const nativeResponseValue = wasm.TS_Confirm_get_relevant_txids(this_arg);
5777         return nativeResponseValue;
5778 }
5779 /* @internal */
5780 export interface LDKPersist {
5781         persist_new_channel (channel_id: number, data: number, update_id: number): number;
5782         update_persisted_channel (channel_id: number, update: number, data: number, update_id: number): number;
5783 }
5784
5785 /* @internal */
5786 export function LDKPersist_new(impl: LDKPersist): number {
5787         if(!isWasmInitialized) {
5788                 throw new Error("initializeWasm() must be awaited first!");
5789         }
5790         var new_obj_idx = js_objs.length;
5791         for (var i = 0; i < js_objs.length; i++) {
5792                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5793         }
5794         js_objs[i] = new WeakRef(impl);
5795         return wasm.TS_LDKPersist_new(i);
5796 }
5797         // 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
5798 /* @internal */
5799 export function Persist_persist_new_channel(this_arg: number, channel_id: number, data: number, update_id: number): number {
5800         if(!isWasmInitialized) {
5801                 throw new Error("initializeWasm() must be awaited first!");
5802         }
5803         const nativeResponseValue = wasm.TS_Persist_persist_new_channel(this_arg, channel_id, data, update_id);
5804         return nativeResponseValue;
5805 }
5806         // 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
5807 /* @internal */
5808 export function Persist_update_persisted_channel(this_arg: number, channel_id: number, update: number, data: number, update_id: number): number {
5809         if(!isWasmInitialized) {
5810                 throw new Error("initializeWasm() must be awaited first!");
5811         }
5812         const nativeResponseValue = wasm.TS_Persist_update_persisted_channel(this_arg, channel_id, update, data, update_id);
5813         return nativeResponseValue;
5814 }
5815 /* @internal */
5816 export interface LDKChannelMessageHandler {
5817         handle_open_channel (their_node_id: number, their_features: number, msg: number): void;
5818         handle_accept_channel (their_node_id: number, their_features: number, msg: number): void;
5819         handle_funding_created (their_node_id: number, msg: number): void;
5820         handle_funding_signed (their_node_id: number, msg: number): void;
5821         handle_channel_ready (their_node_id: number, msg: number): void;
5822         handle_shutdown (their_node_id: number, their_features: number, msg: number): void;
5823         handle_closing_signed (their_node_id: number, msg: number): void;
5824         handle_update_add_htlc (their_node_id: number, msg: number): void;
5825         handle_update_fulfill_htlc (their_node_id: number, msg: number): void;
5826         handle_update_fail_htlc (their_node_id: number, msg: number): void;
5827         handle_update_fail_malformed_htlc (their_node_id: number, msg: number): void;
5828         handle_commitment_signed (their_node_id: number, msg: number): void;
5829         handle_revoke_and_ack (their_node_id: number, msg: number): void;
5830         handle_update_fee (their_node_id: number, msg: number): void;
5831         handle_announcement_signatures (their_node_id: number, msg: number): void;
5832         peer_disconnected (their_node_id: number, no_connection_possible: boolean): void;
5833         peer_connected (their_node_id: number, msg: number): void;
5834         handle_channel_reestablish (their_node_id: number, msg: number): void;
5835         handle_channel_update (their_node_id: number, msg: number): void;
5836         handle_error (their_node_id: number, msg: number): void;
5837 }
5838
5839 /* @internal */
5840 export function LDKChannelMessageHandler_new(impl: LDKChannelMessageHandler, MessageSendEventsProvider: LDKMessageSendEventsProvider): number {
5841         if(!isWasmInitialized) {
5842                 throw new Error("initializeWasm() must be awaited first!");
5843         }
5844         var new_obj_idx = js_objs.length;
5845         for (var i = 0; i < js_objs.length; i++) {
5846                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5847         }
5848         js_objs[i] = new WeakRef(impl);
5849         return wasm.TS_LDKChannelMessageHandler_new(i);
5850 }
5851         // 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
5852 /* @internal */
5853 export function ChannelMessageHandler_handle_open_channel(this_arg: number, their_node_id: number, their_features: number, msg: number): void {
5854         if(!isWasmInitialized) {
5855                 throw new Error("initializeWasm() must be awaited first!");
5856         }
5857         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_open_channel(this_arg, their_node_id, their_features, msg);
5858         // debug statements here
5859 }
5860         // 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
5861 /* @internal */
5862 export function ChannelMessageHandler_handle_accept_channel(this_arg: number, their_node_id: number, their_features: number, msg: number): void {
5863         if(!isWasmInitialized) {
5864                 throw new Error("initializeWasm() must be awaited first!");
5865         }
5866         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_accept_channel(this_arg, their_node_id, their_features, msg);
5867         // debug statements here
5868 }
5869         // void ChannelMessageHandler_handle_funding_created LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingCreated *NONNULL_PTR msg
5870 /* @internal */
5871 export function ChannelMessageHandler_handle_funding_created(this_arg: number, their_node_id: number, msg: number): void {
5872         if(!isWasmInitialized) {
5873                 throw new Error("initializeWasm() must be awaited first!");
5874         }
5875         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_funding_created(this_arg, their_node_id, msg);
5876         // debug statements here
5877 }
5878         // void ChannelMessageHandler_handle_funding_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingSigned *NONNULL_PTR msg
5879 /* @internal */
5880 export function ChannelMessageHandler_handle_funding_signed(this_arg: number, their_node_id: number, msg: number): void {
5881         if(!isWasmInitialized) {
5882                 throw new Error("initializeWasm() must be awaited first!");
5883         }
5884         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_funding_signed(this_arg, their_node_id, msg);
5885         // debug statements here
5886 }
5887         // void ChannelMessageHandler_handle_channel_ready LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReady *NONNULL_PTR msg
5888 /* @internal */
5889 export function ChannelMessageHandler_handle_channel_ready(this_arg: number, their_node_id: number, msg: number): void {
5890         if(!isWasmInitialized) {
5891                 throw new Error("initializeWasm() must be awaited first!");
5892         }
5893         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_channel_ready(this_arg, their_node_id, msg);
5894         // debug statements here
5895 }
5896         // 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
5897 /* @internal */
5898 export function ChannelMessageHandler_handle_shutdown(this_arg: number, their_node_id: number, their_features: number, msg: number): void {
5899         if(!isWasmInitialized) {
5900                 throw new Error("initializeWasm() must be awaited first!");
5901         }
5902         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_shutdown(this_arg, their_node_id, their_features, msg);
5903         // debug statements here
5904 }
5905         // void ChannelMessageHandler_handle_closing_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKClosingSigned *NONNULL_PTR msg
5906 /* @internal */
5907 export function ChannelMessageHandler_handle_closing_signed(this_arg: number, their_node_id: number, msg: number): void {
5908         if(!isWasmInitialized) {
5909                 throw new Error("initializeWasm() must be awaited first!");
5910         }
5911         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_closing_signed(this_arg, their_node_id, msg);
5912         // debug statements here
5913 }
5914         // void ChannelMessageHandler_handle_update_add_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateAddHTLC *NONNULL_PTR msg
5915 /* @internal */
5916 export function ChannelMessageHandler_handle_update_add_htlc(this_arg: number, their_node_id: number, msg: number): void {
5917         if(!isWasmInitialized) {
5918                 throw new Error("initializeWasm() must be awaited first!");
5919         }
5920         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_add_htlc(this_arg, their_node_id, msg);
5921         // debug statements here
5922 }
5923         // void ChannelMessageHandler_handle_update_fulfill_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFulfillHTLC *NONNULL_PTR msg
5924 /* @internal */
5925 export function ChannelMessageHandler_handle_update_fulfill_htlc(this_arg: number, their_node_id: number, msg: number): void {
5926         if(!isWasmInitialized) {
5927                 throw new Error("initializeWasm() must be awaited first!");
5928         }
5929         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fulfill_htlc(this_arg, their_node_id, msg);
5930         // debug statements here
5931 }
5932         // void ChannelMessageHandler_handle_update_fail_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailHTLC *NONNULL_PTR msg
5933 /* @internal */
5934 export function ChannelMessageHandler_handle_update_fail_htlc(this_arg: number, their_node_id: number, msg: number): void {
5935         if(!isWasmInitialized) {
5936                 throw new Error("initializeWasm() must be awaited first!");
5937         }
5938         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fail_htlc(this_arg, their_node_id, msg);
5939         // debug statements here
5940 }
5941         // void ChannelMessageHandler_handle_update_fail_malformed_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR msg
5942 /* @internal */
5943 export function ChannelMessageHandler_handle_update_fail_malformed_htlc(this_arg: number, their_node_id: number, msg: number): void {
5944         if(!isWasmInitialized) {
5945                 throw new Error("initializeWasm() must be awaited first!");
5946         }
5947         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fail_malformed_htlc(this_arg, their_node_id, msg);
5948         // debug statements here
5949 }
5950         // void ChannelMessageHandler_handle_commitment_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKCommitmentSigned *NONNULL_PTR msg
5951 /* @internal */
5952 export function ChannelMessageHandler_handle_commitment_signed(this_arg: number, their_node_id: number, msg: number): void {
5953         if(!isWasmInitialized) {
5954                 throw new Error("initializeWasm() must be awaited first!");
5955         }
5956         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_commitment_signed(this_arg, their_node_id, msg);
5957         // debug statements here
5958 }
5959         // void ChannelMessageHandler_handle_revoke_and_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKRevokeAndACK *NONNULL_PTR msg
5960 /* @internal */
5961 export function ChannelMessageHandler_handle_revoke_and_ack(this_arg: number, their_node_id: number, msg: number): void {
5962         if(!isWasmInitialized) {
5963                 throw new Error("initializeWasm() must be awaited first!");
5964         }
5965         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_revoke_and_ack(this_arg, their_node_id, msg);
5966         // debug statements here
5967 }
5968         // void ChannelMessageHandler_handle_update_fee LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFee *NONNULL_PTR msg
5969 /* @internal */
5970 export function ChannelMessageHandler_handle_update_fee(this_arg: number, their_node_id: number, msg: number): void {
5971         if(!isWasmInitialized) {
5972                 throw new Error("initializeWasm() must be awaited first!");
5973         }
5974         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fee(this_arg, their_node_id, msg);
5975         // debug statements here
5976 }
5977         // void ChannelMessageHandler_handle_announcement_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAnnouncementSignatures *NONNULL_PTR msg
5978 /* @internal */
5979 export function ChannelMessageHandler_handle_announcement_signatures(this_arg: number, their_node_id: number, msg: number): void {
5980         if(!isWasmInitialized) {
5981                 throw new Error("initializeWasm() must be awaited first!");
5982         }
5983         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_announcement_signatures(this_arg, their_node_id, msg);
5984         // debug statements here
5985 }
5986         // void ChannelMessageHandler_peer_disconnected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, bool no_connection_possible
5987 /* @internal */
5988 export function ChannelMessageHandler_peer_disconnected(this_arg: number, their_node_id: number, no_connection_possible: boolean): void {
5989         if(!isWasmInitialized) {
5990                 throw new Error("initializeWasm() must be awaited first!");
5991         }
5992         const nativeResponseValue = wasm.TS_ChannelMessageHandler_peer_disconnected(this_arg, their_node_id, no_connection_possible);
5993         // debug statements here
5994 }
5995         // void ChannelMessageHandler_peer_connected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR msg
5996 /* @internal */
5997 export function ChannelMessageHandler_peer_connected(this_arg: number, their_node_id: number, msg: number): void {
5998         if(!isWasmInitialized) {
5999                 throw new Error("initializeWasm() must be awaited first!");
6000         }
6001         const nativeResponseValue = wasm.TS_ChannelMessageHandler_peer_connected(this_arg, their_node_id, msg);
6002         // debug statements here
6003 }
6004         // void ChannelMessageHandler_handle_channel_reestablish LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReestablish *NONNULL_PTR msg
6005 /* @internal */
6006 export function ChannelMessageHandler_handle_channel_reestablish(this_arg: number, their_node_id: number, msg: number): void {
6007         if(!isWasmInitialized) {
6008                 throw new Error("initializeWasm() must be awaited first!");
6009         }
6010         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_channel_reestablish(this_arg, their_node_id, msg);
6011         // debug statements here
6012 }
6013         // void ChannelMessageHandler_handle_channel_update LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelUpdate *NONNULL_PTR msg
6014 /* @internal */
6015 export function ChannelMessageHandler_handle_channel_update(this_arg: number, their_node_id: number, msg: number): void {
6016         if(!isWasmInitialized) {
6017                 throw new Error("initializeWasm() must be awaited first!");
6018         }
6019         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_channel_update(this_arg, their_node_id, msg);
6020         // debug statements here
6021 }
6022         // void ChannelMessageHandler_handle_error LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKErrorMessage *NONNULL_PTR msg
6023 /* @internal */
6024 export function ChannelMessageHandler_handle_error(this_arg: number, their_node_id: number, msg: number): void {
6025         if(!isWasmInitialized) {
6026                 throw new Error("initializeWasm() must be awaited first!");
6027         }
6028         const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_error(this_arg, their_node_id, msg);
6029         // debug statements here
6030 }
6031 /* @internal */
6032 export interface LDKRoutingMessageHandler {
6033         handle_node_announcement (msg: number): number;
6034         handle_channel_announcement (msg: number): number;
6035         handle_channel_update (msg: number): number;
6036         get_next_channel_announcements (starting_point: bigint, batch_amount: number): number;
6037         get_next_node_announcements (starting_point: number, batch_amount: number): number;
6038         peer_connected (their_node_id: number, init: number): void;
6039         handle_reply_channel_range (their_node_id: number, msg: number): number;
6040         handle_reply_short_channel_ids_end (their_node_id: number, msg: number): number;
6041         handle_query_channel_range (their_node_id: number, msg: number): number;
6042         handle_query_short_channel_ids (their_node_id: number, msg: number): number;
6043 }
6044
6045 /* @internal */
6046 export function LDKRoutingMessageHandler_new(impl: LDKRoutingMessageHandler, MessageSendEventsProvider: LDKMessageSendEventsProvider): number {
6047         if(!isWasmInitialized) {
6048                 throw new Error("initializeWasm() must be awaited first!");
6049         }
6050         var new_obj_idx = js_objs.length;
6051         for (var i = 0; i < js_objs.length; i++) {
6052                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6053         }
6054         js_objs[i] = new WeakRef(impl);
6055         return wasm.TS_LDKRoutingMessageHandler_new(i);
6056 }
6057         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg
6058 /* @internal */
6059 export function RoutingMessageHandler_handle_node_announcement(this_arg: number, msg: number): number {
6060         if(!isWasmInitialized) {
6061                 throw new Error("initializeWasm() must be awaited first!");
6062         }
6063         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_node_announcement(this_arg, msg);
6064         return nativeResponseValue;
6065 }
6066         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg
6067 /* @internal */
6068 export function RoutingMessageHandler_handle_channel_announcement(this_arg: number, msg: number): number {
6069         if(!isWasmInitialized) {
6070                 throw new Error("initializeWasm() must be awaited first!");
6071         }
6072         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_channel_announcement(this_arg, msg);
6073         return nativeResponseValue;
6074 }
6075         // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_update LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg
6076 /* @internal */
6077 export function RoutingMessageHandler_handle_channel_update(this_arg: number, msg: number): number {
6078         if(!isWasmInitialized) {
6079                 throw new Error("initializeWasm() must be awaited first!");
6080         }
6081         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_channel_update(this_arg, msg);
6082         return nativeResponseValue;
6083 }
6084         // LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ RoutingMessageHandler_get_next_channel_announcements LDKRoutingMessageHandler *NONNULL_PTR this_arg, uint64_t starting_point, uint8_t batch_amount
6085 /* @internal */
6086 export function RoutingMessageHandler_get_next_channel_announcements(this_arg: number, starting_point: bigint, batch_amount: number): number {
6087         if(!isWasmInitialized) {
6088                 throw new Error("initializeWasm() must be awaited first!");
6089         }
6090         const nativeResponseValue = wasm.TS_RoutingMessageHandler_get_next_channel_announcements(this_arg, starting_point, batch_amount);
6091         return nativeResponseValue;
6092 }
6093         // LDKCVec_NodeAnnouncementZ RoutingMessageHandler_get_next_node_announcements LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey starting_point, uint8_t batch_amount
6094 /* @internal */
6095 export function RoutingMessageHandler_get_next_node_announcements(this_arg: number, starting_point: number, batch_amount: number): number {
6096         if(!isWasmInitialized) {
6097                 throw new Error("initializeWasm() must be awaited first!");
6098         }
6099         const nativeResponseValue = wasm.TS_RoutingMessageHandler_get_next_node_announcements(this_arg, starting_point, batch_amount);
6100         return nativeResponseValue;
6101 }
6102         // void RoutingMessageHandler_peer_connected LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init
6103 /* @internal */
6104 export function RoutingMessageHandler_peer_connected(this_arg: number, their_node_id: number, init: number): void {
6105         if(!isWasmInitialized) {
6106                 throw new Error("initializeWasm() must be awaited first!");
6107         }
6108         const nativeResponseValue = wasm.TS_RoutingMessageHandler_peer_connected(this_arg, their_node_id, init);
6109         // debug statements here
6110 }
6111         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyChannelRange msg
6112 /* @internal */
6113 export function RoutingMessageHandler_handle_reply_channel_range(this_arg: number, their_node_id: number, msg: number): number {
6114         if(!isWasmInitialized) {
6115                 throw new Error("initializeWasm() must be awaited first!");
6116         }
6117         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_reply_channel_range(this_arg, their_node_id, msg);
6118         return nativeResponseValue;
6119 }
6120         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_short_channel_ids_end LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyShortChannelIdsEnd msg
6121 /* @internal */
6122 export function RoutingMessageHandler_handle_reply_short_channel_ids_end(this_arg: number, their_node_id: number, msg: number): number {
6123         if(!isWasmInitialized) {
6124                 throw new Error("initializeWasm() must be awaited first!");
6125         }
6126         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_reply_short_channel_ids_end(this_arg, their_node_id, msg);
6127         return nativeResponseValue;
6128 }
6129         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryChannelRange msg
6130 /* @internal */
6131 export function RoutingMessageHandler_handle_query_channel_range(this_arg: number, their_node_id: number, msg: number): number {
6132         if(!isWasmInitialized) {
6133                 throw new Error("initializeWasm() must be awaited first!");
6134         }
6135         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_query_channel_range(this_arg, their_node_id, msg);
6136         return nativeResponseValue;
6137 }
6138         // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_short_channel_ids LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryShortChannelIds msg
6139 /* @internal */
6140 export function RoutingMessageHandler_handle_query_short_channel_ids(this_arg: number, their_node_id: number, msg: number): number {
6141         if(!isWasmInitialized) {
6142                 throw new Error("initializeWasm() must be awaited first!");
6143         }
6144         const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_query_short_channel_ids(this_arg, their_node_id, msg);
6145         return nativeResponseValue;
6146 }
6147 /* @internal */
6148 export interface LDKCustomMessageReader {
6149         read (message_type: number, buffer: number): number;
6150 }
6151
6152 /* @internal */
6153 export function LDKCustomMessageReader_new(impl: LDKCustomMessageReader): number {
6154         if(!isWasmInitialized) {
6155                 throw new Error("initializeWasm() must be awaited first!");
6156         }
6157         var new_obj_idx = js_objs.length;
6158         for (var i = 0; i < js_objs.length; i++) {
6159                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6160         }
6161         js_objs[i] = new WeakRef(impl);
6162         return wasm.TS_LDKCustomMessageReader_new(i);
6163 }
6164         // LDKCResult_COption_TypeZDecodeErrorZ CustomMessageReader_read LDKCustomMessageReader *NONNULL_PTR this_arg, uint16_t message_type, struct LDKu8slice buffer
6165 /* @internal */
6166 export function CustomMessageReader_read(this_arg: number, message_type: number, buffer: number): number {
6167         if(!isWasmInitialized) {
6168                 throw new Error("initializeWasm() must be awaited first!");
6169         }
6170         const nativeResponseValue = wasm.TS_CustomMessageReader_read(this_arg, message_type, buffer);
6171         return nativeResponseValue;
6172 }
6173 /* @internal */
6174 export interface LDKCustomMessageHandler {
6175         handle_custom_message (msg: number, sender_node_id: number): number;
6176         get_and_clear_pending_msg (): number;
6177 }
6178
6179 /* @internal */
6180 export function LDKCustomMessageHandler_new(impl: LDKCustomMessageHandler, CustomMessageReader: LDKCustomMessageReader): number {
6181         if(!isWasmInitialized) {
6182                 throw new Error("initializeWasm() must be awaited first!");
6183         }
6184         var new_obj_idx = js_objs.length;
6185         for (var i = 0; i < js_objs.length; i++) {
6186                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6187         }
6188         js_objs[i] = new WeakRef(impl);
6189         return wasm.TS_LDKCustomMessageHandler_new(i);
6190 }
6191         // LDKCResult_NoneLightningErrorZ CustomMessageHandler_handle_custom_message LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKType msg, struct LDKPublicKey sender_node_id
6192 /* @internal */
6193 export function CustomMessageHandler_handle_custom_message(this_arg: number, msg: number, sender_node_id: number): number {
6194         if(!isWasmInitialized) {
6195                 throw new Error("initializeWasm() must be awaited first!");
6196         }
6197         const nativeResponseValue = wasm.TS_CustomMessageHandler_handle_custom_message(this_arg, msg, sender_node_id);
6198         return nativeResponseValue;
6199 }
6200         // LDKCVec_C2Tuple_PublicKeyTypeZZ CustomMessageHandler_get_and_clear_pending_msg LDKCustomMessageHandler *NONNULL_PTR this_arg
6201 /* @internal */
6202 export function CustomMessageHandler_get_and_clear_pending_msg(this_arg: number): number {
6203         if(!isWasmInitialized) {
6204                 throw new Error("initializeWasm() must be awaited first!");
6205         }
6206         const nativeResponseValue = wasm.TS_CustomMessageHandler_get_and_clear_pending_msg(this_arg);
6207         return nativeResponseValue;
6208 }
6209 /* @internal */
6210 export interface LDKSocketDescriptor {
6211         send_data (data: number, resume_read: boolean): number;
6212         disconnect_socket (): void;
6213         eq (other_arg: number): boolean;
6214         hash (): bigint;
6215 }
6216
6217 /* @internal */
6218 export function LDKSocketDescriptor_new(impl: LDKSocketDescriptor): number {
6219         if(!isWasmInitialized) {
6220                 throw new Error("initializeWasm() must be awaited first!");
6221         }
6222         var new_obj_idx = js_objs.length;
6223         for (var i = 0; i < js_objs.length; i++) {
6224                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6225         }
6226         js_objs[i] = new WeakRef(impl);
6227         return wasm.TS_LDKSocketDescriptor_new(i);
6228 }
6229         // uintptr_t SocketDescriptor_send_data LDKSocketDescriptor *NONNULL_PTR this_arg, struct LDKu8slice data, bool resume_read
6230 /* @internal */
6231 export function SocketDescriptor_send_data(this_arg: number, data: number, resume_read: boolean): number {
6232         if(!isWasmInitialized) {
6233                 throw new Error("initializeWasm() must be awaited first!");
6234         }
6235         const nativeResponseValue = wasm.TS_SocketDescriptor_send_data(this_arg, data, resume_read);
6236         return nativeResponseValue;
6237 }
6238         // void SocketDescriptor_disconnect_socket LDKSocketDescriptor *NONNULL_PTR this_arg
6239 /* @internal */
6240 export function SocketDescriptor_disconnect_socket(this_arg: number): void {
6241         if(!isWasmInitialized) {
6242                 throw new Error("initializeWasm() must be awaited first!");
6243         }
6244         const nativeResponseValue = wasm.TS_SocketDescriptor_disconnect_socket(this_arg);
6245         // debug statements here
6246 }
6247         // uint64_t SocketDescriptor_hash LDKSocketDescriptor *NONNULL_PTR this_arg
6248 /* @internal */
6249 export function SocketDescriptor_hash(this_arg: number): bigint {
6250         if(!isWasmInitialized) {
6251                 throw new Error("initializeWasm() must be awaited first!");
6252         }
6253         const nativeResponseValue = wasm.TS_SocketDescriptor_hash(this_arg);
6254         return nativeResponseValue;
6255 }
6256 /* @internal */
6257 export class LDKEffectiveCapacity {
6258         protected constructor() {}
6259 }
6260 /* @internal */
6261 export function LDKEffectiveCapacity_ty_from_ptr(ptr: number): number {
6262         if(!isWasmInitialized) {
6263                 throw new Error("initializeWasm() must be awaited first!");
6264         }
6265         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_ty_from_ptr(ptr);
6266         return nativeResponseValue;
6267 }
6268 /* @internal */
6269 export function LDKEffectiveCapacity_ExactLiquidity_get_liquidity_msat(ptr: number): bigint {
6270         if(!isWasmInitialized) {
6271                 throw new Error("initializeWasm() must be awaited first!");
6272         }
6273         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_ExactLiquidity_get_liquidity_msat(ptr);
6274         return nativeResponseValue;
6275 }
6276 /* @internal */
6277 export function LDKEffectiveCapacity_MaximumHTLC_get_amount_msat(ptr: number): bigint {
6278         if(!isWasmInitialized) {
6279                 throw new Error("initializeWasm() must be awaited first!");
6280         }
6281         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_MaximumHTLC_get_amount_msat(ptr);
6282         return nativeResponseValue;
6283 }
6284 /* @internal */
6285 export function LDKEffectiveCapacity_Total_get_capacity_msat(ptr: number): bigint {
6286         if(!isWasmInitialized) {
6287                 throw new Error("initializeWasm() must be awaited first!");
6288         }
6289         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_Total_get_capacity_msat(ptr);
6290         return nativeResponseValue;
6291 }
6292 /* @internal */
6293 export function LDKEffectiveCapacity_Total_get_htlc_maximum_msat(ptr: number): number {
6294         if(!isWasmInitialized) {
6295                 throw new Error("initializeWasm() must be awaited first!");
6296         }
6297         const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_Total_get_htlc_maximum_msat(ptr);
6298         return nativeResponseValue;
6299 }
6300 /* @internal */
6301 export interface LDKLockableScore {
6302         lock (): number;
6303 }
6304
6305 /* @internal */
6306 export function LDKLockableScore_new(impl: LDKLockableScore): number {
6307         if(!isWasmInitialized) {
6308                 throw new Error("initializeWasm() must be awaited first!");
6309         }
6310         var new_obj_idx = js_objs.length;
6311         for (var i = 0; i < js_objs.length; i++) {
6312                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6313         }
6314         js_objs[i] = new WeakRef(impl);
6315         return wasm.TS_LDKLockableScore_new(i);
6316 }
6317         // LDKScore LockableScore_lock LDKLockableScore *NONNULL_PTR this_arg
6318 /* @internal */
6319 export function LockableScore_lock(this_arg: number): number {
6320         if(!isWasmInitialized) {
6321                 throw new Error("initializeWasm() must be awaited first!");
6322         }
6323         const nativeResponseValue = wasm.TS_LockableScore_lock(this_arg);
6324         return nativeResponseValue;
6325 }
6326 /* @internal */
6327 export class LDKFallback {
6328         protected constructor() {}
6329 }
6330 /* @internal */
6331 export function LDKFallback_ty_from_ptr(ptr: number): number {
6332         if(!isWasmInitialized) {
6333                 throw new Error("initializeWasm() must be awaited first!");
6334         }
6335         const nativeResponseValue = wasm.TS_LDKFallback_ty_from_ptr(ptr);
6336         return nativeResponseValue;
6337 }
6338 /* @internal */
6339 export function LDKFallback_SegWitProgram_get_version(ptr: number): number {
6340         if(!isWasmInitialized) {
6341                 throw new Error("initializeWasm() must be awaited first!");
6342         }
6343         const nativeResponseValue = wasm.TS_LDKFallback_SegWitProgram_get_version(ptr);
6344         return nativeResponseValue;
6345 }
6346 /* @internal */
6347 export function LDKFallback_SegWitProgram_get_program(ptr: number): number {
6348         if(!isWasmInitialized) {
6349                 throw new Error("initializeWasm() must be awaited first!");
6350         }
6351         const nativeResponseValue = wasm.TS_LDKFallback_SegWitProgram_get_program(ptr);
6352         return nativeResponseValue;
6353 }
6354 /* @internal */
6355 export function LDKFallback_PubKeyHash_get_pub_key_hash(ptr: number): number {
6356         if(!isWasmInitialized) {
6357                 throw new Error("initializeWasm() must be awaited first!");
6358         }
6359         const nativeResponseValue = wasm.TS_LDKFallback_PubKeyHash_get_pub_key_hash(ptr);
6360         return nativeResponseValue;
6361 }
6362 /* @internal */
6363 export function LDKFallback_ScriptHash_get_script_hash(ptr: number): number {
6364         if(!isWasmInitialized) {
6365                 throw new Error("initializeWasm() must be awaited first!");
6366         }
6367         const nativeResponseValue = wasm.TS_LDKFallback_ScriptHash_get_script_hash(ptr);
6368         return nativeResponseValue;
6369 }
6370 /* @internal */
6371 export interface LDKPayer {
6372         node_id (): number;
6373         first_hops (): number;
6374         send_payment (route: number, payment_hash: number, payment_secret: number): number;
6375         send_spontaneous_payment (route: number, payment_preimage: number): number;
6376         retry_payment (route: number, payment_id: number): number;
6377         abandon_payment (payment_id: number): void;
6378 }
6379
6380 /* @internal */
6381 export function LDKPayer_new(impl: LDKPayer): number {
6382         if(!isWasmInitialized) {
6383                 throw new Error("initializeWasm() must be awaited first!");
6384         }
6385         var new_obj_idx = js_objs.length;
6386         for (var i = 0; i < js_objs.length; i++) {
6387                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6388         }
6389         js_objs[i] = new WeakRef(impl);
6390         return wasm.TS_LDKPayer_new(i);
6391 }
6392         // LDKPublicKey Payer_node_id LDKPayer *NONNULL_PTR this_arg
6393 /* @internal */
6394 export function Payer_node_id(this_arg: number): number {
6395         if(!isWasmInitialized) {
6396                 throw new Error("initializeWasm() must be awaited first!");
6397         }
6398         const nativeResponseValue = wasm.TS_Payer_node_id(this_arg);
6399         return nativeResponseValue;
6400 }
6401         // LDKCVec_ChannelDetailsZ Payer_first_hops LDKPayer *NONNULL_PTR this_arg
6402 /* @internal */
6403 export function Payer_first_hops(this_arg: number): number {
6404         if(!isWasmInitialized) {
6405                 throw new Error("initializeWasm() must be awaited first!");
6406         }
6407         const nativeResponseValue = wasm.TS_Payer_first_hops(this_arg);
6408         return nativeResponseValue;
6409 }
6410         // LDKCResult_PaymentIdPaymentSendFailureZ Payer_send_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret
6411 /* @internal */
6412 export function Payer_send_payment(this_arg: number, route: number, payment_hash: number, payment_secret: number): number {
6413         if(!isWasmInitialized) {
6414                 throw new Error("initializeWasm() must be awaited first!");
6415         }
6416         const nativeResponseValue = wasm.TS_Payer_send_payment(this_arg, route, payment_hash, payment_secret);
6417         return nativeResponseValue;
6418 }
6419         // LDKCResult_PaymentIdPaymentSendFailureZ Payer_send_spontaneous_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_preimage
6420 /* @internal */
6421 export function Payer_send_spontaneous_payment(this_arg: number, route: number, payment_preimage: number): number {
6422         if(!isWasmInitialized) {
6423                 throw new Error("initializeWasm() must be awaited first!");
6424         }
6425         const nativeResponseValue = wasm.TS_Payer_send_spontaneous_payment(this_arg, route, payment_preimage);
6426         return nativeResponseValue;
6427 }
6428         // LDKCResult_NonePaymentSendFailureZ Payer_retry_payment LDKPayer *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_id
6429 /* @internal */
6430 export function Payer_retry_payment(this_arg: number, route: number, payment_id: number): number {
6431         if(!isWasmInitialized) {
6432                 throw new Error("initializeWasm() must be awaited first!");
6433         }
6434         const nativeResponseValue = wasm.TS_Payer_retry_payment(this_arg, route, payment_id);
6435         return nativeResponseValue;
6436 }
6437         // void Payer_abandon_payment LDKPayer *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id
6438 /* @internal */
6439 export function Payer_abandon_payment(this_arg: number, payment_id: number): void {
6440         if(!isWasmInitialized) {
6441                 throw new Error("initializeWasm() must be awaited first!");
6442         }
6443         const nativeResponseValue = wasm.TS_Payer_abandon_payment(this_arg, payment_id);
6444         // debug statements here
6445 }
6446 /* @internal */
6447 export interface LDKRouter {
6448         find_route (payer: number, route_params: number, payment_hash: number, first_hops: number, scorer: number): number;
6449 }
6450
6451 /* @internal */
6452 export function LDKRouter_new(impl: LDKRouter): number {
6453         if(!isWasmInitialized) {
6454                 throw new Error("initializeWasm() must be awaited first!");
6455         }
6456         var new_obj_idx = js_objs.length;
6457         for (var i = 0; i < js_objs.length; i++) {
6458                 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6459         }
6460         js_objs[i] = new WeakRef(impl);
6461         return wasm.TS_LDKRouter_new(i);
6462 }
6463         // 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
6464 /* @internal */
6465 export function Router_find_route(this_arg: number, payer: number, route_params: number, payment_hash: number, first_hops: number, scorer: number): number {
6466         if(!isWasmInitialized) {
6467                 throw new Error("initializeWasm() must be awaited first!");
6468         }
6469         const nativeResponseValue = wasm.TS_Router_find_route(this_arg, payer, route_params, payment_hash, first_hops, scorer);
6470         return nativeResponseValue;
6471 }
6472 /* @internal */
6473 export class LDKRetry {
6474         protected constructor() {}
6475 }
6476 /* @internal */
6477 export function LDKRetry_ty_from_ptr(ptr: number): number {
6478         if(!isWasmInitialized) {
6479                 throw new Error("initializeWasm() must be awaited first!");
6480         }
6481         const nativeResponseValue = wasm.TS_LDKRetry_ty_from_ptr(ptr);
6482         return nativeResponseValue;
6483 }
6484 /* @internal */
6485 export function LDKRetry_Attempts_get_attempts(ptr: number): number {
6486         if(!isWasmInitialized) {
6487                 throw new Error("initializeWasm() must be awaited first!");
6488         }
6489         const nativeResponseValue = wasm.TS_LDKRetry_Attempts_get_attempts(ptr);
6490         return nativeResponseValue;
6491 }
6492         // struct LDKStr _ldk_get_compiled_version(void);
6493 /* @internal */
6494 export function _ldk_get_compiled_version(): number {
6495         if(!isWasmInitialized) {
6496                 throw new Error("initializeWasm() must be awaited first!");
6497         }
6498         const nativeResponseValue = wasm.TS__ldk_get_compiled_version();
6499         return nativeResponseValue;
6500 }
6501         // struct LDKStr _ldk_c_bindings_get_compiled_version(void);
6502 /* @internal */
6503 export function _ldk_c_bindings_get_compiled_version(): number {
6504         if(!isWasmInitialized) {
6505                 throw new Error("initializeWasm() must be awaited first!");
6506         }
6507         const nativeResponseValue = wasm.TS__ldk_c_bindings_get_compiled_version();
6508         return nativeResponseValue;
6509 }
6510         // uintptr_t Bech32Error_clone_ptr(LDKBech32Error *NONNULL_PTR arg);
6511 /* @internal */
6512 export function Bech32Error_clone_ptr(arg: number): number {
6513         if(!isWasmInitialized) {
6514                 throw new Error("initializeWasm() must be awaited first!");
6515         }
6516         const nativeResponseValue = wasm.TS_Bech32Error_clone_ptr(arg);
6517         return nativeResponseValue;
6518 }
6519         // struct LDKBech32Error Bech32Error_clone(const struct LDKBech32Error *NONNULL_PTR orig);
6520 /* @internal */
6521 export function Bech32Error_clone(orig: number): number {
6522         if(!isWasmInitialized) {
6523                 throw new Error("initializeWasm() must be awaited first!");
6524         }
6525         const nativeResponseValue = wasm.TS_Bech32Error_clone(orig);
6526         return nativeResponseValue;
6527 }
6528         // void Bech32Error_free(struct LDKBech32Error o);
6529 /* @internal */
6530 export function Bech32Error_free(o: number): void {
6531         if(!isWasmInitialized) {
6532                 throw new Error("initializeWasm() must be awaited first!");
6533         }
6534         const nativeResponseValue = wasm.TS_Bech32Error_free(o);
6535         // debug statements here
6536 }
6537         // void Transaction_free(struct LDKTransaction _res);
6538 /* @internal */
6539 export function Transaction_free(_res: number): void {
6540         if(!isWasmInitialized) {
6541                 throw new Error("initializeWasm() must be awaited first!");
6542         }
6543         const nativeResponseValue = wasm.TS_Transaction_free(_res);
6544         // debug statements here
6545 }
6546         // struct LDKTxOut TxOut_new(struct LDKCVec_u8Z script_pubkey, uint64_t value);
6547 /* @internal */
6548 export function TxOut_new(script_pubkey: number, value: bigint): number {
6549         if(!isWasmInitialized) {
6550                 throw new Error("initializeWasm() must be awaited first!");
6551         }
6552         const nativeResponseValue = wasm.TS_TxOut_new(script_pubkey, value);
6553         return nativeResponseValue;
6554 }
6555         // void TxOut_free(struct LDKTxOut _res);
6556 /* @internal */
6557 export function TxOut_free(_res: number): void {
6558         if(!isWasmInitialized) {
6559                 throw new Error("initializeWasm() must be awaited first!");
6560         }
6561         const nativeResponseValue = wasm.TS_TxOut_free(_res);
6562         // debug statements here
6563 }
6564         // uintptr_t TxOut_clone_ptr(LDKTxOut *NONNULL_PTR arg);
6565 /* @internal */
6566 export function TxOut_clone_ptr(arg: number): number {
6567         if(!isWasmInitialized) {
6568                 throw new Error("initializeWasm() must be awaited first!");
6569         }
6570         const nativeResponseValue = wasm.TS_TxOut_clone_ptr(arg);
6571         return nativeResponseValue;
6572 }
6573         // struct LDKTxOut TxOut_clone(const struct LDKTxOut *NONNULL_PTR orig);
6574 /* @internal */
6575 export function TxOut_clone(orig: number): number {
6576         if(!isWasmInitialized) {
6577                 throw new Error("initializeWasm() must be awaited first!");
6578         }
6579         const nativeResponseValue = wasm.TS_TxOut_clone(orig);
6580         return nativeResponseValue;
6581 }
6582         // void Str_free(struct LDKStr _res);
6583 /* @internal */
6584 export function Str_free(_res: number): void {
6585         if(!isWasmInitialized) {
6586                 throw new Error("initializeWasm() must be awaited first!");
6587         }
6588         const nativeResponseValue = wasm.TS_Str_free(_res);
6589         // debug statements here
6590 }
6591         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_ok(void);
6592 /* @internal */
6593 export function CResult_NoneNoneZ_ok(): number {
6594         if(!isWasmInitialized) {
6595                 throw new Error("initializeWasm() must be awaited first!");
6596         }
6597         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_ok();
6598         return nativeResponseValue;
6599 }
6600         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_err(void);
6601 /* @internal */
6602 export function CResult_NoneNoneZ_err(): number {
6603         if(!isWasmInitialized) {
6604                 throw new Error("initializeWasm() must be awaited first!");
6605         }
6606         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_err();
6607         return nativeResponseValue;
6608 }
6609         // bool CResult_NoneNoneZ_is_ok(const struct LDKCResult_NoneNoneZ *NONNULL_PTR o);
6610 /* @internal */
6611 export function CResult_NoneNoneZ_is_ok(o: number): boolean {
6612         if(!isWasmInitialized) {
6613                 throw new Error("initializeWasm() must be awaited first!");
6614         }
6615         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_is_ok(o);
6616         return nativeResponseValue;
6617 }
6618         // void CResult_NoneNoneZ_free(struct LDKCResult_NoneNoneZ _res);
6619 /* @internal */
6620 export function CResult_NoneNoneZ_free(_res: number): void {
6621         if(!isWasmInitialized) {
6622                 throw new Error("initializeWasm() must be awaited first!");
6623         }
6624         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_free(_res);
6625         // debug statements here
6626 }
6627         // uintptr_t CResult_NoneNoneZ_clone_ptr(LDKCResult_NoneNoneZ *NONNULL_PTR arg);
6628 /* @internal */
6629 export function CResult_NoneNoneZ_clone_ptr(arg: number): number {
6630         if(!isWasmInitialized) {
6631                 throw new Error("initializeWasm() must be awaited first!");
6632         }
6633         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_clone_ptr(arg);
6634         return nativeResponseValue;
6635 }
6636         // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_clone(const struct LDKCResult_NoneNoneZ *NONNULL_PTR orig);
6637 /* @internal */
6638 export function CResult_NoneNoneZ_clone(orig: number): number {
6639         if(!isWasmInitialized) {
6640                 throw new Error("initializeWasm() must be awaited first!");
6641         }
6642         const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_clone(orig);
6643         return nativeResponseValue;
6644 }
6645         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(struct LDKCounterpartyCommitmentSecrets o);
6646 /* @internal */
6647 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(o: number): number {
6648         if(!isWasmInitialized) {
6649                 throw new Error("initializeWasm() must be awaited first!");
6650         }
6651         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(o);
6652         return nativeResponseValue;
6653 }
6654         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(struct LDKDecodeError e);
6655 /* @internal */
6656 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(e: number): number {
6657         if(!isWasmInitialized) {
6658                 throw new Error("initializeWasm() must be awaited first!");
6659         }
6660         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(e);
6661         return nativeResponseValue;
6662 }
6663         // bool CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR o);
6664 /* @internal */
6665 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(o: number): boolean {
6666         if(!isWasmInitialized) {
6667                 throw new Error("initializeWasm() must be awaited first!");
6668         }
6669         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(o);
6670         return nativeResponseValue;
6671 }
6672         // void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ _res);
6673 /* @internal */
6674 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(_res: number): void {
6675         if(!isWasmInitialized) {
6676                 throw new Error("initializeWasm() must be awaited first!");
6677         }
6678         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(_res);
6679         // debug statements here
6680 }
6681         // uintptr_t CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR arg);
6682 /* @internal */
6683 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(arg: number): number {
6684         if(!isWasmInitialized) {
6685                 throw new Error("initializeWasm() must be awaited first!");
6686         }
6687         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(arg);
6688         return nativeResponseValue;
6689 }
6690         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR orig);
6691 /* @internal */
6692 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(orig: number): number {
6693         if(!isWasmInitialized) {
6694                 throw new Error("initializeWasm() must be awaited first!");
6695         }
6696         const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(orig);
6697         return nativeResponseValue;
6698 }
6699         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_ok(struct LDKSecretKey o);
6700 /* @internal */
6701 export function CResult_SecretKeyErrorZ_ok(o: number): number {
6702         if(!isWasmInitialized) {
6703                 throw new Error("initializeWasm() must be awaited first!");
6704         }
6705         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_ok(o);
6706         return nativeResponseValue;
6707 }
6708         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_err(enum LDKSecp256k1Error e);
6709 /* @internal */
6710 export function CResult_SecretKeyErrorZ_err(e: Secp256k1Error): number {
6711         if(!isWasmInitialized) {
6712                 throw new Error("initializeWasm() must be awaited first!");
6713         }
6714         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_err(e);
6715         return nativeResponseValue;
6716 }
6717         // bool CResult_SecretKeyErrorZ_is_ok(const struct LDKCResult_SecretKeyErrorZ *NONNULL_PTR o);
6718 /* @internal */
6719 export function CResult_SecretKeyErrorZ_is_ok(o: number): boolean {
6720         if(!isWasmInitialized) {
6721                 throw new Error("initializeWasm() must be awaited first!");
6722         }
6723         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_is_ok(o);
6724         return nativeResponseValue;
6725 }
6726         // void CResult_SecretKeyErrorZ_free(struct LDKCResult_SecretKeyErrorZ _res);
6727 /* @internal */
6728 export function CResult_SecretKeyErrorZ_free(_res: number): void {
6729         if(!isWasmInitialized) {
6730                 throw new Error("initializeWasm() must be awaited first!");
6731         }
6732         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_free(_res);
6733         // debug statements here
6734 }
6735         // uintptr_t CResult_SecretKeyErrorZ_clone_ptr(LDKCResult_SecretKeyErrorZ *NONNULL_PTR arg);
6736 /* @internal */
6737 export function CResult_SecretKeyErrorZ_clone_ptr(arg: number): number {
6738         if(!isWasmInitialized) {
6739                 throw new Error("initializeWasm() must be awaited first!");
6740         }
6741         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_clone_ptr(arg);
6742         return nativeResponseValue;
6743 }
6744         // struct LDKCResult_SecretKeyErrorZ CResult_SecretKeyErrorZ_clone(const struct LDKCResult_SecretKeyErrorZ *NONNULL_PTR orig);
6745 /* @internal */
6746 export function CResult_SecretKeyErrorZ_clone(orig: number): number {
6747         if(!isWasmInitialized) {
6748                 throw new Error("initializeWasm() must be awaited first!");
6749         }
6750         const nativeResponseValue = wasm.TS_CResult_SecretKeyErrorZ_clone(orig);
6751         return nativeResponseValue;
6752 }
6753         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_ok(struct LDKPublicKey o);
6754 /* @internal */
6755 export function CResult_PublicKeyErrorZ_ok(o: number): number {
6756         if(!isWasmInitialized) {
6757                 throw new Error("initializeWasm() must be awaited first!");
6758         }
6759         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_ok(o);
6760         return nativeResponseValue;
6761 }
6762         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_err(enum LDKSecp256k1Error e);
6763 /* @internal */
6764 export function CResult_PublicKeyErrorZ_err(e: Secp256k1Error): number {
6765         if(!isWasmInitialized) {
6766                 throw new Error("initializeWasm() must be awaited first!");
6767         }
6768         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_err(e);
6769         return nativeResponseValue;
6770 }
6771         // bool CResult_PublicKeyErrorZ_is_ok(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR o);
6772 /* @internal */
6773 export function CResult_PublicKeyErrorZ_is_ok(o: number): boolean {
6774         if(!isWasmInitialized) {
6775                 throw new Error("initializeWasm() must be awaited first!");
6776         }
6777         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_is_ok(o);
6778         return nativeResponseValue;
6779 }
6780         // void CResult_PublicKeyErrorZ_free(struct LDKCResult_PublicKeyErrorZ _res);
6781 /* @internal */
6782 export function CResult_PublicKeyErrorZ_free(_res: number): void {
6783         if(!isWasmInitialized) {
6784                 throw new Error("initializeWasm() must be awaited first!");
6785         }
6786         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_free(_res);
6787         // debug statements here
6788 }
6789         // uintptr_t CResult_PublicKeyErrorZ_clone_ptr(LDKCResult_PublicKeyErrorZ *NONNULL_PTR arg);
6790 /* @internal */
6791 export function CResult_PublicKeyErrorZ_clone_ptr(arg: number): number {
6792         if(!isWasmInitialized) {
6793                 throw new Error("initializeWasm() must be awaited first!");
6794         }
6795         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_clone_ptr(arg);
6796         return nativeResponseValue;
6797 }
6798         // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_clone(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR orig);
6799 /* @internal */
6800 export function CResult_PublicKeyErrorZ_clone(orig: number): number {
6801         if(!isWasmInitialized) {
6802                 throw new Error("initializeWasm() must be awaited first!");
6803         }
6804         const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_clone(orig);
6805         return nativeResponseValue;
6806 }
6807         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o);
6808 /* @internal */
6809 export function CResult_TxCreationKeysDecodeErrorZ_ok(o: number): number {
6810         if(!isWasmInitialized) {
6811                 throw new Error("initializeWasm() must be awaited first!");
6812         }
6813         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_ok(o);
6814         return nativeResponseValue;
6815 }
6816         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e);
6817 /* @internal */
6818 export function CResult_TxCreationKeysDecodeErrorZ_err(e: number): number {
6819         if(!isWasmInitialized) {
6820                 throw new Error("initializeWasm() must be awaited first!");
6821         }
6822         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_err(e);
6823         return nativeResponseValue;
6824 }
6825         // bool CResult_TxCreationKeysDecodeErrorZ_is_ok(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR o);
6826 /* @internal */
6827 export function CResult_TxCreationKeysDecodeErrorZ_is_ok(o: number): boolean {
6828         if(!isWasmInitialized) {
6829                 throw new Error("initializeWasm() must be awaited first!");
6830         }
6831         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_is_ok(o);
6832         return nativeResponseValue;
6833 }
6834         // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res);
6835 /* @internal */
6836 export function CResult_TxCreationKeysDecodeErrorZ_free(_res: number): void {
6837         if(!isWasmInitialized) {
6838                 throw new Error("initializeWasm() must be awaited first!");
6839         }
6840         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_free(_res);
6841         // debug statements here
6842 }
6843         // uintptr_t CResult_TxCreationKeysDecodeErrorZ_clone_ptr(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR arg);
6844 /* @internal */
6845 export function CResult_TxCreationKeysDecodeErrorZ_clone_ptr(arg: number): number {
6846         if(!isWasmInitialized) {
6847                 throw new Error("initializeWasm() must be awaited first!");
6848         }
6849         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_clone_ptr(arg);
6850         return nativeResponseValue;
6851 }
6852         // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig);
6853 /* @internal */
6854 export function CResult_TxCreationKeysDecodeErrorZ_clone(orig: number): number {
6855         if(!isWasmInitialized) {
6856                 throw new Error("initializeWasm() must be awaited first!");
6857         }
6858         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_clone(orig);
6859         return nativeResponseValue;
6860 }
6861         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o);
6862 /* @internal */
6863 export function CResult_ChannelPublicKeysDecodeErrorZ_ok(o: number): number {
6864         if(!isWasmInitialized) {
6865                 throw new Error("initializeWasm() must be awaited first!");
6866         }
6867         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_ok(o);
6868         return nativeResponseValue;
6869 }
6870         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e);
6871 /* @internal */
6872 export function CResult_ChannelPublicKeysDecodeErrorZ_err(e: number): number {
6873         if(!isWasmInitialized) {
6874                 throw new Error("initializeWasm() must be awaited first!");
6875         }
6876         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_err(e);
6877         return nativeResponseValue;
6878 }
6879         // bool CResult_ChannelPublicKeysDecodeErrorZ_is_ok(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR o);
6880 /* @internal */
6881 export function CResult_ChannelPublicKeysDecodeErrorZ_is_ok(o: number): boolean {
6882         if(!isWasmInitialized) {
6883                 throw new Error("initializeWasm() must be awaited first!");
6884         }
6885         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_is_ok(o);
6886         return nativeResponseValue;
6887 }
6888         // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res);
6889 /* @internal */
6890 export function CResult_ChannelPublicKeysDecodeErrorZ_free(_res: number): void {
6891         if(!isWasmInitialized) {
6892                 throw new Error("initializeWasm() must be awaited first!");
6893         }
6894         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_free(_res);
6895         // debug statements here
6896 }
6897         // uintptr_t CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR arg);
6898 /* @internal */
6899 export function CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(arg: number): number {
6900         if(!isWasmInitialized) {
6901                 throw new Error("initializeWasm() must be awaited first!");
6902         }
6903         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(arg);
6904         return nativeResponseValue;
6905 }
6906         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig);
6907 /* @internal */
6908 export function CResult_ChannelPublicKeysDecodeErrorZ_clone(orig: number): number {
6909         if(!isWasmInitialized) {
6910                 throw new Error("initializeWasm() must be awaited first!");
6911         }
6912         const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_clone(orig);
6913         return nativeResponseValue;
6914 }
6915         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_ok(struct LDKTxCreationKeys o);
6916 /* @internal */
6917 export function CResult_TxCreationKeysErrorZ_ok(o: number): number {
6918         if(!isWasmInitialized) {
6919                 throw new Error("initializeWasm() must be awaited first!");
6920         }
6921         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_ok(o);
6922         return nativeResponseValue;
6923 }
6924         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_err(enum LDKSecp256k1Error e);
6925 /* @internal */
6926 export function CResult_TxCreationKeysErrorZ_err(e: Secp256k1Error): number {
6927         if(!isWasmInitialized) {
6928                 throw new Error("initializeWasm() must be awaited first!");
6929         }
6930         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_err(e);
6931         return nativeResponseValue;
6932 }
6933         // bool CResult_TxCreationKeysErrorZ_is_ok(const struct LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR o);
6934 /* @internal */
6935 export function CResult_TxCreationKeysErrorZ_is_ok(o: number): boolean {
6936         if(!isWasmInitialized) {
6937                 throw new Error("initializeWasm() must be awaited first!");
6938         }
6939         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_is_ok(o);
6940         return nativeResponseValue;
6941 }
6942         // void CResult_TxCreationKeysErrorZ_free(struct LDKCResult_TxCreationKeysErrorZ _res);
6943 /* @internal */
6944 export function CResult_TxCreationKeysErrorZ_free(_res: number): void {
6945         if(!isWasmInitialized) {
6946                 throw new Error("initializeWasm() must be awaited first!");
6947         }
6948         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_free(_res);
6949         // debug statements here
6950 }
6951         // uintptr_t CResult_TxCreationKeysErrorZ_clone_ptr(LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR arg);
6952 /* @internal */
6953 export function CResult_TxCreationKeysErrorZ_clone_ptr(arg: number): number {
6954         if(!isWasmInitialized) {
6955                 throw new Error("initializeWasm() must be awaited first!");
6956         }
6957         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_clone_ptr(arg);
6958         return nativeResponseValue;
6959 }
6960         // struct LDKCResult_TxCreationKeysErrorZ CResult_TxCreationKeysErrorZ_clone(const struct LDKCResult_TxCreationKeysErrorZ *NONNULL_PTR orig);
6961 /* @internal */
6962 export function CResult_TxCreationKeysErrorZ_clone(orig: number): number {
6963         if(!isWasmInitialized) {
6964                 throw new Error("initializeWasm() must be awaited first!");
6965         }
6966         const nativeResponseValue = wasm.TS_CResult_TxCreationKeysErrorZ_clone(orig);
6967         return nativeResponseValue;
6968 }
6969         // struct LDKCOption_u32Z COption_u32Z_some(uint32_t o);
6970 /* @internal */
6971 export function COption_u32Z_some(o: number): number {
6972         if(!isWasmInitialized) {
6973                 throw new Error("initializeWasm() must be awaited first!");
6974         }
6975         const nativeResponseValue = wasm.TS_COption_u32Z_some(o);
6976         return nativeResponseValue;
6977 }
6978         // struct LDKCOption_u32Z COption_u32Z_none(void);
6979 /* @internal */
6980 export function COption_u32Z_none(): number {
6981         if(!isWasmInitialized) {
6982                 throw new Error("initializeWasm() must be awaited first!");
6983         }
6984         const nativeResponseValue = wasm.TS_COption_u32Z_none();
6985         return nativeResponseValue;
6986 }
6987         // void COption_u32Z_free(struct LDKCOption_u32Z _res);
6988 /* @internal */
6989 export function COption_u32Z_free(_res: number): void {
6990         if(!isWasmInitialized) {
6991                 throw new Error("initializeWasm() must be awaited first!");
6992         }
6993         const nativeResponseValue = wasm.TS_COption_u32Z_free(_res);
6994         // debug statements here
6995 }
6996         // uintptr_t COption_u32Z_clone_ptr(LDKCOption_u32Z *NONNULL_PTR arg);
6997 /* @internal */
6998 export function COption_u32Z_clone_ptr(arg: number): number {
6999         if(!isWasmInitialized) {
7000                 throw new Error("initializeWasm() must be awaited first!");
7001         }
7002         const nativeResponseValue = wasm.TS_COption_u32Z_clone_ptr(arg);
7003         return nativeResponseValue;
7004 }
7005         // struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig);
7006 /* @internal */
7007 export function COption_u32Z_clone(orig: number): number {
7008         if(!isWasmInitialized) {
7009                 throw new Error("initializeWasm() must be awaited first!");
7010         }
7011         const nativeResponseValue = wasm.TS_COption_u32Z_clone(orig);
7012         return nativeResponseValue;
7013 }
7014         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o);
7015 /* @internal */
7016 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o: number): number {
7017         if(!isWasmInitialized) {
7018                 throw new Error("initializeWasm() must be awaited first!");
7019         }
7020         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o);
7021         return nativeResponseValue;
7022 }
7023         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e);
7024 /* @internal */
7025 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e: number): number {
7026         if(!isWasmInitialized) {
7027                 throw new Error("initializeWasm() must be awaited first!");
7028         }
7029         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e);
7030         return nativeResponseValue;
7031 }
7032         // bool CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR o);
7033 /* @internal */
7034 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(o: number): boolean {
7035         if(!isWasmInitialized) {
7036                 throw new Error("initializeWasm() must be awaited first!");
7037         }
7038         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(o);
7039         return nativeResponseValue;
7040 }
7041         // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res);
7042 /* @internal */
7043 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_free(_res: number): void {
7044         if(!isWasmInitialized) {
7045                 throw new Error("initializeWasm() must be awaited first!");
7046         }
7047         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_free(_res);
7048         // debug statements here
7049 }
7050         // uintptr_t CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR arg);
7051 /* @internal */
7052 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(arg: number): number {
7053         if(!isWasmInitialized) {
7054                 throw new Error("initializeWasm() must be awaited first!");
7055         }
7056         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(arg);
7057         return nativeResponseValue;
7058 }
7059         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig);
7060 /* @internal */
7061 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(orig: number): number {
7062         if(!isWasmInitialized) {
7063                 throw new Error("initializeWasm() must be awaited first!");
7064         }
7065         const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(orig);
7066         return nativeResponseValue;
7067 }
7068         // enum LDKCOption_NoneZ COption_NoneZ_some(void);
7069 /* @internal */
7070 export function COption_NoneZ_some(): COption_NoneZ {
7071         if(!isWasmInitialized) {
7072                 throw new Error("initializeWasm() must be awaited first!");
7073         }
7074         const nativeResponseValue = wasm.TS_COption_NoneZ_some();
7075         return nativeResponseValue;
7076 }
7077         // enum LDKCOption_NoneZ COption_NoneZ_none(void);
7078 /* @internal */
7079 export function COption_NoneZ_none(): COption_NoneZ {
7080         if(!isWasmInitialized) {
7081                 throw new Error("initializeWasm() must be awaited first!");
7082         }
7083         const nativeResponseValue = wasm.TS_COption_NoneZ_none();
7084         return nativeResponseValue;
7085 }
7086         // void COption_NoneZ_free(enum LDKCOption_NoneZ _res);
7087 /* @internal */
7088 export function COption_NoneZ_free(_res: COption_NoneZ): void {
7089         if(!isWasmInitialized) {
7090                 throw new Error("initializeWasm() must be awaited first!");
7091         }
7092         const nativeResponseValue = wasm.TS_COption_NoneZ_free(_res);
7093         // debug statements here
7094 }
7095         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o);
7096 /* @internal */
7097 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o: number): number {
7098         if(!isWasmInitialized) {
7099                 throw new Error("initializeWasm() must be awaited first!");
7100         }
7101         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o);
7102         return nativeResponseValue;
7103 }
7104         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
7105 /* @internal */
7106 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e: number): number {
7107         if(!isWasmInitialized) {
7108                 throw new Error("initializeWasm() must be awaited first!");
7109         }
7110         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e);
7111         return nativeResponseValue;
7112 }
7113         // bool CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
7114 /* @internal */
7115 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(o: number): boolean {
7116         if(!isWasmInitialized) {
7117                 throw new Error("initializeWasm() must be awaited first!");
7118         }
7119         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(o);
7120         return nativeResponseValue;
7121 }
7122         // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res);
7123 /* @internal */
7124 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(_res: number): void {
7125         if(!isWasmInitialized) {
7126                 throw new Error("initializeWasm() must be awaited first!");
7127         }
7128         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(_res);
7129         // debug statements here
7130 }
7131         // uintptr_t CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
7132 /* @internal */
7133 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(arg: number): number {
7134         if(!isWasmInitialized) {
7135                 throw new Error("initializeWasm() must be awaited first!");
7136         }
7137         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(arg);
7138         return nativeResponseValue;
7139 }
7140         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
7141 /* @internal */
7142 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(orig: number): number {
7143         if(!isWasmInitialized) {
7144                 throw new Error("initializeWasm() must be awaited first!");
7145         }
7146         const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(orig);
7147         return nativeResponseValue;
7148 }
7149         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o);
7150 /* @internal */
7151 export function CResult_ChannelTransactionParametersDecodeErrorZ_ok(o: number): number {
7152         if(!isWasmInitialized) {
7153                 throw new Error("initializeWasm() must be awaited first!");
7154         }
7155         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_ok(o);
7156         return nativeResponseValue;
7157 }
7158         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
7159 /* @internal */
7160 export function CResult_ChannelTransactionParametersDecodeErrorZ_err(e: number): number {
7161         if(!isWasmInitialized) {
7162                 throw new Error("initializeWasm() must be awaited first!");
7163         }
7164         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_err(e);
7165         return nativeResponseValue;
7166 }
7167         // bool CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
7168 /* @internal */
7169 export function CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(o: number): boolean {
7170         if(!isWasmInitialized) {
7171                 throw new Error("initializeWasm() must be awaited first!");
7172         }
7173         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(o);
7174         return nativeResponseValue;
7175 }
7176         // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res);
7177 /* @internal */
7178 export function CResult_ChannelTransactionParametersDecodeErrorZ_free(_res: number): void {
7179         if(!isWasmInitialized) {
7180                 throw new Error("initializeWasm() must be awaited first!");
7181         }
7182         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_free(_res);
7183         // debug statements here
7184 }
7185         // uintptr_t CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
7186 /* @internal */
7187 export function CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(arg: number): number {
7188         if(!isWasmInitialized) {
7189                 throw new Error("initializeWasm() must be awaited first!");
7190         }
7191         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(arg);
7192         return nativeResponseValue;
7193 }
7194         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
7195 /* @internal */
7196 export function CResult_ChannelTransactionParametersDecodeErrorZ_clone(orig: number): number {
7197         if(!isWasmInitialized) {
7198                 throw new Error("initializeWasm() must be awaited first!");
7199         }
7200         const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_clone(orig);
7201         return nativeResponseValue;
7202 }
7203         // void CVec_SignatureZ_free(struct LDKCVec_SignatureZ _res);
7204 /* @internal */
7205 export function CVec_SignatureZ_free(_res: number): void {
7206         if(!isWasmInitialized) {
7207                 throw new Error("initializeWasm() must be awaited first!");
7208         }
7209         const nativeResponseValue = wasm.TS_CVec_SignatureZ_free(_res);
7210         // debug statements here
7211 }
7212         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o);
7213 /* @internal */
7214 export function CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o: number): number {
7215         if(!isWasmInitialized) {
7216                 throw new Error("initializeWasm() must be awaited first!");
7217         }
7218         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o);
7219         return nativeResponseValue;
7220 }
7221         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
7222 /* @internal */
7223 export function CResult_HolderCommitmentTransactionDecodeErrorZ_err(e: number): number {
7224         if(!isWasmInitialized) {
7225                 throw new Error("initializeWasm() must be awaited first!");
7226         }
7227         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_err(e);
7228         return nativeResponseValue;
7229 }
7230         // bool CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
7231 /* @internal */
7232 export function CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(o: number): boolean {
7233         if(!isWasmInitialized) {
7234                 throw new Error("initializeWasm() must be awaited first!");
7235         }
7236         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(o);
7237         return nativeResponseValue;
7238 }
7239         // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res);
7240 /* @internal */
7241 export function CResult_HolderCommitmentTransactionDecodeErrorZ_free(_res: number): void {
7242         if(!isWasmInitialized) {
7243                 throw new Error("initializeWasm() must be awaited first!");
7244         }
7245         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_free(_res);
7246         // debug statements here
7247 }
7248         // uintptr_t CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
7249 /* @internal */
7250 export function CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(arg: number): number {
7251         if(!isWasmInitialized) {
7252                 throw new Error("initializeWasm() must be awaited first!");
7253         }
7254         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(arg);
7255         return nativeResponseValue;
7256 }
7257         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
7258 /* @internal */
7259 export function CResult_HolderCommitmentTransactionDecodeErrorZ_clone(orig: number): number {
7260         if(!isWasmInitialized) {
7261                 throw new Error("initializeWasm() must be awaited first!");
7262         }
7263         const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_clone(orig);
7264         return nativeResponseValue;
7265 }
7266         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o);
7267 /* @internal */
7268 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o: number): number {
7269         if(!isWasmInitialized) {
7270                 throw new Error("initializeWasm() must be awaited first!");
7271         }
7272         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o);
7273         return nativeResponseValue;
7274 }
7275         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
7276 /* @internal */
7277 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e: number): number {
7278         if(!isWasmInitialized) {
7279                 throw new Error("initializeWasm() must be awaited first!");
7280         }
7281         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e);
7282         return nativeResponseValue;
7283 }
7284         // bool CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
7285 /* @internal */
7286 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(o: number): boolean {
7287         if(!isWasmInitialized) {
7288                 throw new Error("initializeWasm() must be awaited first!");
7289         }
7290         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(o);
7291         return nativeResponseValue;
7292 }
7293         // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res);
7294 /* @internal */
7295 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_free(_res: number): void {
7296         if(!isWasmInitialized) {
7297                 throw new Error("initializeWasm() must be awaited first!");
7298         }
7299         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_free(_res);
7300         // debug statements here
7301 }
7302         // uintptr_t CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
7303 /* @internal */
7304 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(arg: number): number {
7305         if(!isWasmInitialized) {
7306                 throw new Error("initializeWasm() must be awaited first!");
7307         }
7308         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(arg);
7309         return nativeResponseValue;
7310 }
7311         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
7312 /* @internal */
7313 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(orig: number): number {
7314         if(!isWasmInitialized) {
7315                 throw new Error("initializeWasm() must be awaited first!");
7316         }
7317         const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(orig);
7318         return nativeResponseValue;
7319 }
7320         // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_ok(struct LDKTrustedClosingTransaction o);
7321 /* @internal */
7322 export function CResult_TrustedClosingTransactionNoneZ_ok(o: number): number {
7323         if(!isWasmInitialized) {
7324                 throw new Error("initializeWasm() must be awaited first!");
7325         }
7326         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_ok(o);
7327         return nativeResponseValue;
7328 }
7329         // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_err(void);
7330 /* @internal */
7331 export function CResult_TrustedClosingTransactionNoneZ_err(): number {
7332         if(!isWasmInitialized) {
7333                 throw new Error("initializeWasm() must be awaited first!");
7334         }
7335         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_err();
7336         return nativeResponseValue;
7337 }
7338         // bool CResult_TrustedClosingTransactionNoneZ_is_ok(const struct LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR o);
7339 /* @internal */
7340 export function CResult_TrustedClosingTransactionNoneZ_is_ok(o: number): boolean {
7341         if(!isWasmInitialized) {
7342                 throw new Error("initializeWasm() must be awaited first!");
7343         }
7344         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_is_ok(o);
7345         return nativeResponseValue;
7346 }
7347         // void CResult_TrustedClosingTransactionNoneZ_free(struct LDKCResult_TrustedClosingTransactionNoneZ _res);
7348 /* @internal */
7349 export function CResult_TrustedClosingTransactionNoneZ_free(_res: number): void {
7350         if(!isWasmInitialized) {
7351                 throw new Error("initializeWasm() must be awaited first!");
7352         }
7353         const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_free(_res);
7354         // debug statements here
7355 }
7356         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o);
7357 /* @internal */
7358 export function CResult_CommitmentTransactionDecodeErrorZ_ok(o: number): number {
7359         if(!isWasmInitialized) {
7360                 throw new Error("initializeWasm() must be awaited first!");
7361         }
7362         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_ok(o);
7363         return nativeResponseValue;
7364 }
7365         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
7366 /* @internal */
7367 export function CResult_CommitmentTransactionDecodeErrorZ_err(e: number): number {
7368         if(!isWasmInitialized) {
7369                 throw new Error("initializeWasm() must be awaited first!");
7370         }
7371         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_err(e);
7372         return nativeResponseValue;
7373 }
7374         // bool CResult_CommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
7375 /* @internal */
7376 export function CResult_CommitmentTransactionDecodeErrorZ_is_ok(o: number): boolean {
7377         if(!isWasmInitialized) {
7378                 throw new Error("initializeWasm() must be awaited first!");
7379         }
7380         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_is_ok(o);
7381         return nativeResponseValue;
7382 }
7383         // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res);
7384 /* @internal */
7385 export function CResult_CommitmentTransactionDecodeErrorZ_free(_res: number): void {
7386         if(!isWasmInitialized) {
7387                 throw new Error("initializeWasm() must be awaited first!");
7388         }
7389         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_free(_res);
7390         // debug statements here
7391 }
7392         // uintptr_t CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
7393 /* @internal */
7394 export function CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(arg: number): number {
7395         if(!isWasmInitialized) {
7396                 throw new Error("initializeWasm() must be awaited first!");
7397         }
7398         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(arg);
7399         return nativeResponseValue;
7400 }
7401         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
7402 /* @internal */
7403 export function CResult_CommitmentTransactionDecodeErrorZ_clone(orig: number): number {
7404         if(!isWasmInitialized) {
7405                 throw new Error("initializeWasm() must be awaited first!");
7406         }
7407         const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_clone(orig);
7408         return nativeResponseValue;
7409 }
7410         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o);
7411 /* @internal */
7412 export function CResult_TrustedCommitmentTransactionNoneZ_ok(o: number): number {
7413         if(!isWasmInitialized) {
7414                 throw new Error("initializeWasm() must be awaited first!");
7415         }
7416         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_ok(o);
7417         return nativeResponseValue;
7418 }
7419         // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void);
7420 /* @internal */
7421 export function CResult_TrustedCommitmentTransactionNoneZ_err(): number {
7422         if(!isWasmInitialized) {
7423                 throw new Error("initializeWasm() must be awaited first!");
7424         }
7425         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_err();
7426         return nativeResponseValue;
7427 }
7428         // bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR o);
7429 /* @internal */
7430 export function CResult_TrustedCommitmentTransactionNoneZ_is_ok(o: number): boolean {
7431         if(!isWasmInitialized) {
7432                 throw new Error("initializeWasm() must be awaited first!");
7433         }
7434         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_is_ok(o);
7435         return nativeResponseValue;
7436 }
7437         // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res);
7438 /* @internal */
7439 export function CResult_TrustedCommitmentTransactionNoneZ_free(_res: number): void {
7440         if(!isWasmInitialized) {
7441                 throw new Error("initializeWasm() must be awaited first!");
7442         }
7443         const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_free(_res);
7444         // debug statements here
7445 }
7446         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_ok(struct LDKCVec_SignatureZ o);
7447 /* @internal */
7448 export function CResult_CVec_SignatureZNoneZ_ok(o: number): number {
7449         if(!isWasmInitialized) {
7450                 throw new Error("initializeWasm() must be awaited first!");
7451         }
7452         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_ok(o);
7453         return nativeResponseValue;
7454 }
7455         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_err(void);
7456 /* @internal */
7457 export function CResult_CVec_SignatureZNoneZ_err(): number {
7458         if(!isWasmInitialized) {
7459                 throw new Error("initializeWasm() must be awaited first!");
7460         }
7461         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_err();
7462         return nativeResponseValue;
7463 }
7464         // bool CResult_CVec_SignatureZNoneZ_is_ok(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR o);
7465 /* @internal */
7466 export function CResult_CVec_SignatureZNoneZ_is_ok(o: number): boolean {
7467         if(!isWasmInitialized) {
7468                 throw new Error("initializeWasm() must be awaited first!");
7469         }
7470         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_is_ok(o);
7471         return nativeResponseValue;
7472 }
7473         // void CResult_CVec_SignatureZNoneZ_free(struct LDKCResult_CVec_SignatureZNoneZ _res);
7474 /* @internal */
7475 export function CResult_CVec_SignatureZNoneZ_free(_res: number): void {
7476         if(!isWasmInitialized) {
7477                 throw new Error("initializeWasm() must be awaited first!");
7478         }
7479         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_free(_res);
7480         // debug statements here
7481 }
7482         // uintptr_t CResult_CVec_SignatureZNoneZ_clone_ptr(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR arg);
7483 /* @internal */
7484 export function CResult_CVec_SignatureZNoneZ_clone_ptr(arg: number): number {
7485         if(!isWasmInitialized) {
7486                 throw new Error("initializeWasm() must be awaited first!");
7487         }
7488         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_clone_ptr(arg);
7489         return nativeResponseValue;
7490 }
7491         // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_clone(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR orig);
7492 /* @internal */
7493 export function CResult_CVec_SignatureZNoneZ_clone(orig: number): number {
7494         if(!isWasmInitialized) {
7495                 throw new Error("initializeWasm() must be awaited first!");
7496         }
7497         const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_clone(orig);
7498         return nativeResponseValue;
7499 }
7500         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_ok(struct LDKShutdownScript o);
7501 /* @internal */
7502 export function CResult_ShutdownScriptDecodeErrorZ_ok(o: number): number {
7503         if(!isWasmInitialized) {
7504                 throw new Error("initializeWasm() must be awaited first!");
7505         }
7506         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_ok(o);
7507         return nativeResponseValue;
7508 }
7509         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_err(struct LDKDecodeError e);
7510 /* @internal */
7511 export function CResult_ShutdownScriptDecodeErrorZ_err(e: number): number {
7512         if(!isWasmInitialized) {
7513                 throw new Error("initializeWasm() must be awaited first!");
7514         }
7515         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_err(e);
7516         return nativeResponseValue;
7517 }
7518         // bool CResult_ShutdownScriptDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR o);
7519 /* @internal */
7520 export function CResult_ShutdownScriptDecodeErrorZ_is_ok(o: number): boolean {
7521         if(!isWasmInitialized) {
7522                 throw new Error("initializeWasm() must be awaited first!");
7523         }
7524         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_is_ok(o);
7525         return nativeResponseValue;
7526 }
7527         // void CResult_ShutdownScriptDecodeErrorZ_free(struct LDKCResult_ShutdownScriptDecodeErrorZ _res);
7528 /* @internal */
7529 export function CResult_ShutdownScriptDecodeErrorZ_free(_res: number): void {
7530         if(!isWasmInitialized) {
7531                 throw new Error("initializeWasm() must be awaited first!");
7532         }
7533         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_free(_res);
7534         // debug statements here
7535 }
7536         // uintptr_t CResult_ShutdownScriptDecodeErrorZ_clone_ptr(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR arg);
7537 /* @internal */
7538 export function CResult_ShutdownScriptDecodeErrorZ_clone_ptr(arg: number): number {
7539         if(!isWasmInitialized) {
7540                 throw new Error("initializeWasm() must be awaited first!");
7541         }
7542         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_clone_ptr(arg);
7543         return nativeResponseValue;
7544 }
7545         // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_clone(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR orig);
7546 /* @internal */
7547 export function CResult_ShutdownScriptDecodeErrorZ_clone(orig: number): number {
7548         if(!isWasmInitialized) {
7549                 throw new Error("initializeWasm() must be awaited first!");
7550         }
7551         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_clone(orig);
7552         return nativeResponseValue;
7553 }
7554         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_ok(struct LDKShutdownScript o);
7555 /* @internal */
7556 export function CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o: number): number {
7557         if(!isWasmInitialized) {
7558                 throw new Error("initializeWasm() must be awaited first!");
7559         }
7560         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o);
7561         return nativeResponseValue;
7562 }
7563         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_err(struct LDKInvalidShutdownScript e);
7564 /* @internal */
7565 export function CResult_ShutdownScriptInvalidShutdownScriptZ_err(e: number): number {
7566         if(!isWasmInitialized) {
7567                 throw new Error("initializeWasm() must be awaited first!");
7568         }
7569         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_err(e);
7570         return nativeResponseValue;
7571 }
7572         // bool CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR o);
7573 /* @internal */
7574 export function CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(o: number): boolean {
7575         if(!isWasmInitialized) {
7576                 throw new Error("initializeWasm() must be awaited first!");
7577         }
7578         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(o);
7579         return nativeResponseValue;
7580 }
7581         // void CResult_ShutdownScriptInvalidShutdownScriptZ_free(struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ _res);
7582 /* @internal */
7583 export function CResult_ShutdownScriptInvalidShutdownScriptZ_free(_res: number): void {
7584         if(!isWasmInitialized) {
7585                 throw new Error("initializeWasm() must be awaited first!");
7586         }
7587         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_free(_res);
7588         // debug statements here
7589 }
7590         // uintptr_t CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR arg);
7591 /* @internal */
7592 export function CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(arg: number): number {
7593         if(!isWasmInitialized) {
7594                 throw new Error("initializeWasm() must be awaited first!");
7595         }
7596         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(arg);
7597         return nativeResponseValue;
7598 }
7599         // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_clone(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR orig);
7600 /* @internal */
7601 export function CResult_ShutdownScriptInvalidShutdownScriptZ_clone(orig: number): number {
7602         if(!isWasmInitialized) {
7603                 throw new Error("initializeWasm() must be awaited first!");
7604         }
7605         const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_clone(orig);
7606         return nativeResponseValue;
7607 }
7608         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_ok(struct LDKRouteHop o);
7609 /* @internal */
7610 export function CResult_RouteHopDecodeErrorZ_ok(o: number): number {
7611         if(!isWasmInitialized) {
7612                 throw new Error("initializeWasm() must be awaited first!");
7613         }
7614         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_ok(o);
7615         return nativeResponseValue;
7616 }
7617         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_err(struct LDKDecodeError e);
7618 /* @internal */
7619 export function CResult_RouteHopDecodeErrorZ_err(e: number): number {
7620         if(!isWasmInitialized) {
7621                 throw new Error("initializeWasm() must be awaited first!");
7622         }
7623         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_err(e);
7624         return nativeResponseValue;
7625 }
7626         // bool CResult_RouteHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR o);
7627 /* @internal */
7628 export function CResult_RouteHopDecodeErrorZ_is_ok(o: number): boolean {
7629         if(!isWasmInitialized) {
7630                 throw new Error("initializeWasm() must be awaited first!");
7631         }
7632         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_is_ok(o);
7633         return nativeResponseValue;
7634 }
7635         // void CResult_RouteHopDecodeErrorZ_free(struct LDKCResult_RouteHopDecodeErrorZ _res);
7636 /* @internal */
7637 export function CResult_RouteHopDecodeErrorZ_free(_res: number): void {
7638         if(!isWasmInitialized) {
7639                 throw new Error("initializeWasm() must be awaited first!");
7640         }
7641         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_free(_res);
7642         // debug statements here
7643 }
7644         // uintptr_t CResult_RouteHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR arg);
7645 /* @internal */
7646 export function CResult_RouteHopDecodeErrorZ_clone_ptr(arg: number): number {
7647         if(!isWasmInitialized) {
7648                 throw new Error("initializeWasm() must be awaited first!");
7649         }
7650         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_clone_ptr(arg);
7651         return nativeResponseValue;
7652 }
7653         // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_clone(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR orig);
7654 /* @internal */
7655 export function CResult_RouteHopDecodeErrorZ_clone(orig: number): number {
7656         if(!isWasmInitialized) {
7657                 throw new Error("initializeWasm() must be awaited first!");
7658         }
7659         const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_clone(orig);
7660         return nativeResponseValue;
7661 }
7662         // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res);
7663 /* @internal */
7664 export function CVec_RouteHopZ_free(_res: number): void {
7665         if(!isWasmInitialized) {
7666                 throw new Error("initializeWasm() must be awaited first!");
7667         }
7668         const nativeResponseValue = wasm.TS_CVec_RouteHopZ_free(_res);
7669         // debug statements here
7670 }
7671         // void CVec_CVec_RouteHopZZ_free(struct LDKCVec_CVec_RouteHopZZ _res);
7672 /* @internal */
7673 export function CVec_CVec_RouteHopZZ_free(_res: number): void {
7674         if(!isWasmInitialized) {
7675                 throw new Error("initializeWasm() must be awaited first!");
7676         }
7677         const nativeResponseValue = wasm.TS_CVec_CVec_RouteHopZZ_free(_res);
7678         // debug statements here
7679 }
7680         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o);
7681 /* @internal */
7682 export function CResult_RouteDecodeErrorZ_ok(o: number): number {
7683         if(!isWasmInitialized) {
7684                 throw new Error("initializeWasm() must be awaited first!");
7685         }
7686         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_ok(o);
7687         return nativeResponseValue;
7688 }
7689         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e);
7690 /* @internal */
7691 export function CResult_RouteDecodeErrorZ_err(e: number): number {
7692         if(!isWasmInitialized) {
7693                 throw new Error("initializeWasm() must be awaited first!");
7694         }
7695         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_err(e);
7696         return nativeResponseValue;
7697 }
7698         // bool CResult_RouteDecodeErrorZ_is_ok(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR o);
7699 /* @internal */
7700 export function CResult_RouteDecodeErrorZ_is_ok(o: number): boolean {
7701         if(!isWasmInitialized) {
7702                 throw new Error("initializeWasm() must be awaited first!");
7703         }
7704         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_is_ok(o);
7705         return nativeResponseValue;
7706 }
7707         // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res);
7708 /* @internal */
7709 export function CResult_RouteDecodeErrorZ_free(_res: number): void {
7710         if(!isWasmInitialized) {
7711                 throw new Error("initializeWasm() must be awaited first!");
7712         }
7713         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_free(_res);
7714         // debug statements here
7715 }
7716         // uintptr_t CResult_RouteDecodeErrorZ_clone_ptr(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR arg);
7717 /* @internal */
7718 export function CResult_RouteDecodeErrorZ_clone_ptr(arg: number): number {
7719         if(!isWasmInitialized) {
7720                 throw new Error("initializeWasm() must be awaited first!");
7721         }
7722         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_clone_ptr(arg);
7723         return nativeResponseValue;
7724 }
7725         // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_clone(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR orig);
7726 /* @internal */
7727 export function CResult_RouteDecodeErrorZ_clone(orig: number): number {
7728         if(!isWasmInitialized) {
7729                 throw new Error("initializeWasm() must be awaited first!");
7730         }
7731         const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_clone(orig);
7732         return nativeResponseValue;
7733 }
7734         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_ok(struct LDKRouteParameters o);
7735 /* @internal */
7736 export function CResult_RouteParametersDecodeErrorZ_ok(o: number): number {
7737         if(!isWasmInitialized) {
7738                 throw new Error("initializeWasm() must be awaited first!");
7739         }
7740         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_ok(o);
7741         return nativeResponseValue;
7742 }
7743         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_err(struct LDKDecodeError e);
7744 /* @internal */
7745 export function CResult_RouteParametersDecodeErrorZ_err(e: number): number {
7746         if(!isWasmInitialized) {
7747                 throw new Error("initializeWasm() must be awaited first!");
7748         }
7749         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_err(e);
7750         return nativeResponseValue;
7751 }
7752         // bool CResult_RouteParametersDecodeErrorZ_is_ok(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR o);
7753 /* @internal */
7754 export function CResult_RouteParametersDecodeErrorZ_is_ok(o: number): boolean {
7755         if(!isWasmInitialized) {
7756                 throw new Error("initializeWasm() must be awaited first!");
7757         }
7758         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_is_ok(o);
7759         return nativeResponseValue;
7760 }
7761         // void CResult_RouteParametersDecodeErrorZ_free(struct LDKCResult_RouteParametersDecodeErrorZ _res);
7762 /* @internal */
7763 export function CResult_RouteParametersDecodeErrorZ_free(_res: number): void {
7764         if(!isWasmInitialized) {
7765                 throw new Error("initializeWasm() must be awaited first!");
7766         }
7767         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_free(_res);
7768         // debug statements here
7769 }
7770         // uintptr_t CResult_RouteParametersDecodeErrorZ_clone_ptr(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR arg);
7771 /* @internal */
7772 export function CResult_RouteParametersDecodeErrorZ_clone_ptr(arg: number): number {
7773         if(!isWasmInitialized) {
7774                 throw new Error("initializeWasm() must be awaited first!");
7775         }
7776         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_clone_ptr(arg);
7777         return nativeResponseValue;
7778 }
7779         // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_clone(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR orig);
7780 /* @internal */
7781 export function CResult_RouteParametersDecodeErrorZ_clone(orig: number): number {
7782         if(!isWasmInitialized) {
7783                 throw new Error("initializeWasm() must be awaited first!");
7784         }
7785         const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_clone(orig);
7786         return nativeResponseValue;
7787 }
7788         // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res);
7789 /* @internal */
7790 export function CVec_RouteHintZ_free(_res: number): void {
7791         if(!isWasmInitialized) {
7792                 throw new Error("initializeWasm() must be awaited first!");
7793         }
7794         const nativeResponseValue = wasm.TS_CVec_RouteHintZ_free(_res);
7795         // debug statements here
7796 }
7797         // struct LDKCOption_u64Z COption_u64Z_some(uint64_t o);
7798 /* @internal */
7799 export function COption_u64Z_some(o: bigint): number {
7800         if(!isWasmInitialized) {
7801                 throw new Error("initializeWasm() must be awaited first!");
7802         }
7803         const nativeResponseValue = wasm.TS_COption_u64Z_some(o);
7804         return nativeResponseValue;
7805 }
7806         // struct LDKCOption_u64Z COption_u64Z_none(void);
7807 /* @internal */
7808 export function COption_u64Z_none(): number {
7809         if(!isWasmInitialized) {
7810                 throw new Error("initializeWasm() must be awaited first!");
7811         }
7812         const nativeResponseValue = wasm.TS_COption_u64Z_none();
7813         return nativeResponseValue;
7814 }
7815         // void COption_u64Z_free(struct LDKCOption_u64Z _res);
7816 /* @internal */
7817 export function COption_u64Z_free(_res: number): void {
7818         if(!isWasmInitialized) {
7819                 throw new Error("initializeWasm() must be awaited first!");
7820         }
7821         const nativeResponseValue = wasm.TS_COption_u64Z_free(_res);
7822         // debug statements here
7823 }
7824         // uintptr_t COption_u64Z_clone_ptr(LDKCOption_u64Z *NONNULL_PTR arg);
7825 /* @internal */
7826 export function COption_u64Z_clone_ptr(arg: number): number {
7827         if(!isWasmInitialized) {
7828                 throw new Error("initializeWasm() must be awaited first!");
7829         }
7830         const nativeResponseValue = wasm.TS_COption_u64Z_clone_ptr(arg);
7831         return nativeResponseValue;
7832 }
7833         // struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig);
7834 /* @internal */
7835 export function COption_u64Z_clone(orig: number): number {
7836         if(!isWasmInitialized) {
7837                 throw new Error("initializeWasm() must be awaited first!");
7838         }
7839         const nativeResponseValue = wasm.TS_COption_u64Z_clone(orig);
7840         return nativeResponseValue;
7841 }
7842         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_ok(struct LDKPaymentParameters o);
7843 /* @internal */
7844 export function CResult_PaymentParametersDecodeErrorZ_ok(o: number): number {
7845         if(!isWasmInitialized) {
7846                 throw new Error("initializeWasm() must be awaited first!");
7847         }
7848         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_ok(o);
7849         return nativeResponseValue;
7850 }
7851         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_err(struct LDKDecodeError e);
7852 /* @internal */
7853 export function CResult_PaymentParametersDecodeErrorZ_err(e: number): number {
7854         if(!isWasmInitialized) {
7855                 throw new Error("initializeWasm() must be awaited first!");
7856         }
7857         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_err(e);
7858         return nativeResponseValue;
7859 }
7860         // bool CResult_PaymentParametersDecodeErrorZ_is_ok(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR o);
7861 /* @internal */
7862 export function CResult_PaymentParametersDecodeErrorZ_is_ok(o: number): boolean {
7863         if(!isWasmInitialized) {
7864                 throw new Error("initializeWasm() must be awaited first!");
7865         }
7866         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_is_ok(o);
7867         return nativeResponseValue;
7868 }
7869         // void CResult_PaymentParametersDecodeErrorZ_free(struct LDKCResult_PaymentParametersDecodeErrorZ _res);
7870 /* @internal */
7871 export function CResult_PaymentParametersDecodeErrorZ_free(_res: number): void {
7872         if(!isWasmInitialized) {
7873                 throw new Error("initializeWasm() must be awaited first!");
7874         }
7875         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_free(_res);
7876         // debug statements here
7877 }
7878         // uintptr_t CResult_PaymentParametersDecodeErrorZ_clone_ptr(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR arg);
7879 /* @internal */
7880 export function CResult_PaymentParametersDecodeErrorZ_clone_ptr(arg: number): number {
7881         if(!isWasmInitialized) {
7882                 throw new Error("initializeWasm() must be awaited first!");
7883         }
7884         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_clone_ptr(arg);
7885         return nativeResponseValue;
7886 }
7887         // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_clone(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR orig);
7888 /* @internal */
7889 export function CResult_PaymentParametersDecodeErrorZ_clone(orig: number): number {
7890         if(!isWasmInitialized) {
7891                 throw new Error("initializeWasm() must be awaited first!");
7892         }
7893         const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_clone(orig);
7894         return nativeResponseValue;
7895 }
7896         // void CVec_RouteHintHopZ_free(struct LDKCVec_RouteHintHopZ _res);
7897 /* @internal */
7898 export function CVec_RouteHintHopZ_free(_res: number): void {
7899         if(!isWasmInitialized) {
7900                 throw new Error("initializeWasm() must be awaited first!");
7901         }
7902         const nativeResponseValue = wasm.TS_CVec_RouteHintHopZ_free(_res);
7903         // debug statements here
7904 }
7905         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_ok(struct LDKRouteHint o);
7906 /* @internal */
7907 export function CResult_RouteHintDecodeErrorZ_ok(o: number): number {
7908         if(!isWasmInitialized) {
7909                 throw new Error("initializeWasm() must be awaited first!");
7910         }
7911         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_ok(o);
7912         return nativeResponseValue;
7913 }
7914         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_err(struct LDKDecodeError e);
7915 /* @internal */
7916 export function CResult_RouteHintDecodeErrorZ_err(e: number): number {
7917         if(!isWasmInitialized) {
7918                 throw new Error("initializeWasm() must be awaited first!");
7919         }
7920         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_err(e);
7921         return nativeResponseValue;
7922 }
7923         // bool CResult_RouteHintDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR o);
7924 /* @internal */
7925 export function CResult_RouteHintDecodeErrorZ_is_ok(o: number): boolean {
7926         if(!isWasmInitialized) {
7927                 throw new Error("initializeWasm() must be awaited first!");
7928         }
7929         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_is_ok(o);
7930         return nativeResponseValue;
7931 }
7932         // void CResult_RouteHintDecodeErrorZ_free(struct LDKCResult_RouteHintDecodeErrorZ _res);
7933 /* @internal */
7934 export function CResult_RouteHintDecodeErrorZ_free(_res: number): void {
7935         if(!isWasmInitialized) {
7936                 throw new Error("initializeWasm() must be awaited first!");
7937         }
7938         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_free(_res);
7939         // debug statements here
7940 }
7941         // uintptr_t CResult_RouteHintDecodeErrorZ_clone_ptr(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR arg);
7942 /* @internal */
7943 export function CResult_RouteHintDecodeErrorZ_clone_ptr(arg: number): number {
7944         if(!isWasmInitialized) {
7945                 throw new Error("initializeWasm() must be awaited first!");
7946         }
7947         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_clone_ptr(arg);
7948         return nativeResponseValue;
7949 }
7950         // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_clone(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR orig);
7951 /* @internal */
7952 export function CResult_RouteHintDecodeErrorZ_clone(orig: number): number {
7953         if(!isWasmInitialized) {
7954                 throw new Error("initializeWasm() must be awaited first!");
7955         }
7956         const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_clone(orig);
7957         return nativeResponseValue;
7958 }
7959         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_ok(struct LDKRouteHintHop o);
7960 /* @internal */
7961 export function CResult_RouteHintHopDecodeErrorZ_ok(o: number): number {
7962         if(!isWasmInitialized) {
7963                 throw new Error("initializeWasm() must be awaited first!");
7964         }
7965         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_ok(o);
7966         return nativeResponseValue;
7967 }
7968         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_err(struct LDKDecodeError e);
7969 /* @internal */
7970 export function CResult_RouteHintHopDecodeErrorZ_err(e: number): number {
7971         if(!isWasmInitialized) {
7972                 throw new Error("initializeWasm() must be awaited first!");
7973         }
7974         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_err(e);
7975         return nativeResponseValue;
7976 }
7977         // bool CResult_RouteHintHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR o);
7978 /* @internal */
7979 export function CResult_RouteHintHopDecodeErrorZ_is_ok(o: number): boolean {
7980         if(!isWasmInitialized) {
7981                 throw new Error("initializeWasm() must be awaited first!");
7982         }
7983         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_is_ok(o);
7984         return nativeResponseValue;
7985 }
7986         // void CResult_RouteHintHopDecodeErrorZ_free(struct LDKCResult_RouteHintHopDecodeErrorZ _res);
7987 /* @internal */
7988 export function CResult_RouteHintHopDecodeErrorZ_free(_res: number): void {
7989         if(!isWasmInitialized) {
7990                 throw new Error("initializeWasm() must be awaited first!");
7991         }
7992         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_free(_res);
7993         // debug statements here
7994 }
7995         // uintptr_t CResult_RouteHintHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR arg);
7996 /* @internal */
7997 export function CResult_RouteHintHopDecodeErrorZ_clone_ptr(arg: number): number {
7998         if(!isWasmInitialized) {
7999                 throw new Error("initializeWasm() must be awaited first!");
8000         }
8001         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_clone_ptr(arg);
8002         return nativeResponseValue;
8003 }
8004         // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_clone(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR orig);
8005 /* @internal */
8006 export function CResult_RouteHintHopDecodeErrorZ_clone(orig: number): number {
8007         if(!isWasmInitialized) {
8008                 throw new Error("initializeWasm() must be awaited first!");
8009         }
8010         const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_clone(orig);
8011         return nativeResponseValue;
8012 }
8013         // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res);
8014 /* @internal */
8015 export function CVec_ChannelDetailsZ_free(_res: number): void {
8016         if(!isWasmInitialized) {
8017                 throw new Error("initializeWasm() must be awaited first!");
8018         }
8019         const nativeResponseValue = wasm.TS_CVec_ChannelDetailsZ_free(_res);
8020         // debug statements here
8021 }
8022         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o);
8023 /* @internal */
8024 export function CResult_RouteLightningErrorZ_ok(o: number): number {
8025         if(!isWasmInitialized) {
8026                 throw new Error("initializeWasm() must be awaited first!");
8027         }
8028         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_ok(o);
8029         return nativeResponseValue;
8030 }
8031         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e);
8032 /* @internal */
8033 export function CResult_RouteLightningErrorZ_err(e: number): number {
8034         if(!isWasmInitialized) {
8035                 throw new Error("initializeWasm() must be awaited first!");
8036         }
8037         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_err(e);
8038         return nativeResponseValue;
8039 }
8040         // bool CResult_RouteLightningErrorZ_is_ok(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR o);
8041 /* @internal */
8042 export function CResult_RouteLightningErrorZ_is_ok(o: number): boolean {
8043         if(!isWasmInitialized) {
8044                 throw new Error("initializeWasm() must be awaited first!");
8045         }
8046         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_is_ok(o);
8047         return nativeResponseValue;
8048 }
8049         // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res);
8050 /* @internal */
8051 export function CResult_RouteLightningErrorZ_free(_res: number): void {
8052         if(!isWasmInitialized) {
8053                 throw new Error("initializeWasm() must be awaited first!");
8054         }
8055         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_free(_res);
8056         // debug statements here
8057 }
8058         // uintptr_t CResult_RouteLightningErrorZ_clone_ptr(LDKCResult_RouteLightningErrorZ *NONNULL_PTR arg);
8059 /* @internal */
8060 export function CResult_RouteLightningErrorZ_clone_ptr(arg: number): number {
8061         if(!isWasmInitialized) {
8062                 throw new Error("initializeWasm() must be awaited first!");
8063         }
8064         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_clone_ptr(arg);
8065         return nativeResponseValue;
8066 }
8067         // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_clone(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR orig);
8068 /* @internal */
8069 export function CResult_RouteLightningErrorZ_clone(orig: number): number {
8070         if(!isWasmInitialized) {
8071                 throw new Error("initializeWasm() must be awaited first!");
8072         }
8073         const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_clone(orig);
8074         return nativeResponseValue;
8075 }
8076         // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res);
8077 /* @internal */
8078 export function CVec_PublicKeyZ_free(_res: number): void {
8079         if(!isWasmInitialized) {
8080                 throw new Error("initializeWasm() must be awaited first!");
8081         }
8082         const nativeResponseValue = wasm.TS_CVec_PublicKeyZ_free(_res);
8083         // debug statements here
8084 }
8085         // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_ok(struct LDKPaymentPurpose o);
8086 /* @internal */
8087 export function CResult_PaymentPurposeDecodeErrorZ_ok(o: number): number {
8088         if(!isWasmInitialized) {
8089                 throw new Error("initializeWasm() must be awaited first!");
8090         }
8091         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_ok(o);
8092         return nativeResponseValue;
8093 }
8094         // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_err(struct LDKDecodeError e);
8095 /* @internal */
8096 export function CResult_PaymentPurposeDecodeErrorZ_err(e: number): number {
8097         if(!isWasmInitialized) {
8098                 throw new Error("initializeWasm() must be awaited first!");
8099         }
8100         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_err(e);
8101         return nativeResponseValue;
8102 }
8103         // bool CResult_PaymentPurposeDecodeErrorZ_is_ok(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR o);
8104 /* @internal */
8105 export function CResult_PaymentPurposeDecodeErrorZ_is_ok(o: number): boolean {
8106         if(!isWasmInitialized) {
8107                 throw new Error("initializeWasm() must be awaited first!");
8108         }
8109         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_is_ok(o);
8110         return nativeResponseValue;
8111 }
8112         // void CResult_PaymentPurposeDecodeErrorZ_free(struct LDKCResult_PaymentPurposeDecodeErrorZ _res);
8113 /* @internal */
8114 export function CResult_PaymentPurposeDecodeErrorZ_free(_res: number): void {
8115         if(!isWasmInitialized) {
8116                 throw new Error("initializeWasm() must be awaited first!");
8117         }
8118         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_free(_res);
8119         // debug statements here
8120 }
8121         // uintptr_t CResult_PaymentPurposeDecodeErrorZ_clone_ptr(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR arg);
8122 /* @internal */
8123 export function CResult_PaymentPurposeDecodeErrorZ_clone_ptr(arg: number): number {
8124         if(!isWasmInitialized) {
8125                 throw new Error("initializeWasm() must be awaited first!");
8126         }
8127         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_clone_ptr(arg);
8128         return nativeResponseValue;
8129 }
8130         // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_clone(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR orig);
8131 /* @internal */
8132 export function CResult_PaymentPurposeDecodeErrorZ_clone(orig: number): number {
8133         if(!isWasmInitialized) {
8134                 throw new Error("initializeWasm() must be awaited first!");
8135         }
8136         const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_clone(orig);
8137         return nativeResponseValue;
8138 }
8139         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_some(struct LDKClosureReason o);
8140 /* @internal */
8141 export function COption_ClosureReasonZ_some(o: number): number {
8142         if(!isWasmInitialized) {
8143                 throw new Error("initializeWasm() must be awaited first!");
8144         }
8145         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_some(o);
8146         return nativeResponseValue;
8147 }
8148         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_none(void);
8149 /* @internal */
8150 export function COption_ClosureReasonZ_none(): number {
8151         if(!isWasmInitialized) {
8152                 throw new Error("initializeWasm() must be awaited first!");
8153         }
8154         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_none();
8155         return nativeResponseValue;
8156 }
8157         // void COption_ClosureReasonZ_free(struct LDKCOption_ClosureReasonZ _res);
8158 /* @internal */
8159 export function COption_ClosureReasonZ_free(_res: number): void {
8160         if(!isWasmInitialized) {
8161                 throw new Error("initializeWasm() must be awaited first!");
8162         }
8163         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_free(_res);
8164         // debug statements here
8165 }
8166         // uintptr_t COption_ClosureReasonZ_clone_ptr(LDKCOption_ClosureReasonZ *NONNULL_PTR arg);
8167 /* @internal */
8168 export function COption_ClosureReasonZ_clone_ptr(arg: number): number {
8169         if(!isWasmInitialized) {
8170                 throw new Error("initializeWasm() must be awaited first!");
8171         }
8172         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_clone_ptr(arg);
8173         return nativeResponseValue;
8174 }
8175         // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_clone(const struct LDKCOption_ClosureReasonZ *NONNULL_PTR orig);
8176 /* @internal */
8177 export function COption_ClosureReasonZ_clone(orig: number): number {
8178         if(!isWasmInitialized) {
8179                 throw new Error("initializeWasm() must be awaited first!");
8180         }
8181         const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_clone(orig);
8182         return nativeResponseValue;
8183 }
8184         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_ok(struct LDKCOption_ClosureReasonZ o);
8185 /* @internal */
8186 export function CResult_COption_ClosureReasonZDecodeErrorZ_ok(o: number): number {
8187         if(!isWasmInitialized) {
8188                 throw new Error("initializeWasm() must be awaited first!");
8189         }
8190         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_ok(o);
8191         return nativeResponseValue;
8192 }
8193         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_err(struct LDKDecodeError e);
8194 /* @internal */
8195 export function CResult_COption_ClosureReasonZDecodeErrorZ_err(e: number): number {
8196         if(!isWasmInitialized) {
8197                 throw new Error("initializeWasm() must be awaited first!");
8198         }
8199         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_err(e);
8200         return nativeResponseValue;
8201 }
8202         // bool CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR o);
8203 /* @internal */
8204 export function CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(o: number): boolean {
8205         if(!isWasmInitialized) {
8206                 throw new Error("initializeWasm() must be awaited first!");
8207         }
8208         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(o);
8209         return nativeResponseValue;
8210 }
8211         // void CResult_COption_ClosureReasonZDecodeErrorZ_free(struct LDKCResult_COption_ClosureReasonZDecodeErrorZ _res);
8212 /* @internal */
8213 export function CResult_COption_ClosureReasonZDecodeErrorZ_free(_res: number): void {
8214         if(!isWasmInitialized) {
8215                 throw new Error("initializeWasm() must be awaited first!");
8216         }
8217         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_free(_res);
8218         // debug statements here
8219 }
8220         // uintptr_t CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR arg);
8221 /* @internal */
8222 export function CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(arg: number): number {
8223         if(!isWasmInitialized) {
8224                 throw new Error("initializeWasm() must be awaited first!");
8225         }
8226         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(arg);
8227         return nativeResponseValue;
8228 }
8229         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_clone(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR orig);
8230 /* @internal */
8231 export function CResult_COption_ClosureReasonZDecodeErrorZ_clone(orig: number): number {
8232         if(!isWasmInitialized) {
8233                 throw new Error("initializeWasm() must be awaited first!");
8234         }
8235         const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_clone(orig);
8236         return nativeResponseValue;
8237 }
8238         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_some(struct LDKNetworkUpdate o);
8239 /* @internal */
8240 export function COption_NetworkUpdateZ_some(o: number): number {
8241         if(!isWasmInitialized) {
8242                 throw new Error("initializeWasm() must be awaited first!");
8243         }
8244         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_some(o);
8245         return nativeResponseValue;
8246 }
8247         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_none(void);
8248 /* @internal */
8249 export function COption_NetworkUpdateZ_none(): number {
8250         if(!isWasmInitialized) {
8251                 throw new Error("initializeWasm() must be awaited first!");
8252         }
8253         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_none();
8254         return nativeResponseValue;
8255 }
8256         // void COption_NetworkUpdateZ_free(struct LDKCOption_NetworkUpdateZ _res);
8257 /* @internal */
8258 export function COption_NetworkUpdateZ_free(_res: number): void {
8259         if(!isWasmInitialized) {
8260                 throw new Error("initializeWasm() must be awaited first!");
8261         }
8262         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_free(_res);
8263         // debug statements here
8264 }
8265         // uintptr_t COption_NetworkUpdateZ_clone_ptr(LDKCOption_NetworkUpdateZ *NONNULL_PTR arg);
8266 /* @internal */
8267 export function COption_NetworkUpdateZ_clone_ptr(arg: number): number {
8268         if(!isWasmInitialized) {
8269                 throw new Error("initializeWasm() must be awaited first!");
8270         }
8271         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_clone_ptr(arg);
8272         return nativeResponseValue;
8273 }
8274         // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_clone(const struct LDKCOption_NetworkUpdateZ *NONNULL_PTR orig);
8275 /* @internal */
8276 export function COption_NetworkUpdateZ_clone(orig: number): number {
8277         if(!isWasmInitialized) {
8278                 throw new Error("initializeWasm() must be awaited first!");
8279         }
8280         const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_clone(orig);
8281         return nativeResponseValue;
8282 }
8283         // void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescriptorZ _res);
8284 /* @internal */
8285 export function CVec_SpendableOutputDescriptorZ_free(_res: number): void {
8286         if(!isWasmInitialized) {
8287                 throw new Error("initializeWasm() must be awaited first!");
8288         }
8289         const nativeResponseValue = wasm.TS_CVec_SpendableOutputDescriptorZ_free(_res);
8290         // debug statements here
8291 }
8292         // struct LDKCOption_EventZ COption_EventZ_some(struct LDKEvent o);
8293 /* @internal */
8294 export function COption_EventZ_some(o: number): number {
8295         if(!isWasmInitialized) {
8296                 throw new Error("initializeWasm() must be awaited first!");
8297         }
8298         const nativeResponseValue = wasm.TS_COption_EventZ_some(o);
8299         return nativeResponseValue;
8300 }
8301         // struct LDKCOption_EventZ COption_EventZ_none(void);
8302 /* @internal */
8303 export function COption_EventZ_none(): number {
8304         if(!isWasmInitialized) {
8305                 throw new Error("initializeWasm() must be awaited first!");
8306         }
8307         const nativeResponseValue = wasm.TS_COption_EventZ_none();
8308         return nativeResponseValue;
8309 }
8310         // void COption_EventZ_free(struct LDKCOption_EventZ _res);
8311 /* @internal */
8312 export function COption_EventZ_free(_res: number): void {
8313         if(!isWasmInitialized) {
8314                 throw new Error("initializeWasm() must be awaited first!");
8315         }
8316         const nativeResponseValue = wasm.TS_COption_EventZ_free(_res);
8317         // debug statements here
8318 }
8319         // uintptr_t COption_EventZ_clone_ptr(LDKCOption_EventZ *NONNULL_PTR arg);
8320 /* @internal */
8321 export function COption_EventZ_clone_ptr(arg: number): number {
8322         if(!isWasmInitialized) {
8323                 throw new Error("initializeWasm() must be awaited first!");
8324         }
8325         const nativeResponseValue = wasm.TS_COption_EventZ_clone_ptr(arg);
8326         return nativeResponseValue;
8327 }
8328         // struct LDKCOption_EventZ COption_EventZ_clone(const struct LDKCOption_EventZ *NONNULL_PTR orig);
8329 /* @internal */
8330 export function COption_EventZ_clone(orig: number): number {
8331         if(!isWasmInitialized) {
8332                 throw new Error("initializeWasm() must be awaited first!");
8333         }
8334         const nativeResponseValue = wasm.TS_COption_EventZ_clone(orig);
8335         return nativeResponseValue;
8336 }
8337         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_ok(struct LDKCOption_EventZ o);
8338 /* @internal */
8339 export function CResult_COption_EventZDecodeErrorZ_ok(o: number): number {
8340         if(!isWasmInitialized) {
8341                 throw new Error("initializeWasm() must be awaited first!");
8342         }
8343         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_ok(o);
8344         return nativeResponseValue;
8345 }
8346         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_err(struct LDKDecodeError e);
8347 /* @internal */
8348 export function CResult_COption_EventZDecodeErrorZ_err(e: number): number {
8349         if(!isWasmInitialized) {
8350                 throw new Error("initializeWasm() must be awaited first!");
8351         }
8352         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_err(e);
8353         return nativeResponseValue;
8354 }
8355         // bool CResult_COption_EventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR o);
8356 /* @internal */
8357 export function CResult_COption_EventZDecodeErrorZ_is_ok(o: number): boolean {
8358         if(!isWasmInitialized) {
8359                 throw new Error("initializeWasm() must be awaited first!");
8360         }
8361         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_is_ok(o);
8362         return nativeResponseValue;
8363 }
8364         // void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDecodeErrorZ _res);
8365 /* @internal */
8366 export function CResult_COption_EventZDecodeErrorZ_free(_res: number): void {
8367         if(!isWasmInitialized) {
8368                 throw new Error("initializeWasm() must be awaited first!");
8369         }
8370         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_free(_res);
8371         // debug statements here
8372 }
8373         // uintptr_t CResult_COption_EventZDecodeErrorZ_clone_ptr(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR arg);
8374 /* @internal */
8375 export function CResult_COption_EventZDecodeErrorZ_clone_ptr(arg: number): number {
8376         if(!isWasmInitialized) {
8377                 throw new Error("initializeWasm() must be awaited first!");
8378         }
8379         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_clone_ptr(arg);
8380         return nativeResponseValue;
8381 }
8382         // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig);
8383 /* @internal */
8384 export function CResult_COption_EventZDecodeErrorZ_clone(orig: number): number {
8385         if(!isWasmInitialized) {
8386                 throw new Error("initializeWasm() must be awaited first!");
8387         }
8388         const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_clone(orig);
8389         return nativeResponseValue;
8390 }
8391         // void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res);
8392 /* @internal */
8393 export function CVec_MessageSendEventZ_free(_res: number): void {
8394         if(!isWasmInitialized) {
8395                 throw new Error("initializeWasm() must be awaited first!");
8396         }
8397         const nativeResponseValue = wasm.TS_CVec_MessageSendEventZ_free(_res);
8398         // debug statements here
8399 }
8400         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_ok(struct LDKTxOut o);
8401 /* @internal */
8402 export function CResult_TxOutAccessErrorZ_ok(o: number): number {
8403         if(!isWasmInitialized) {
8404                 throw new Error("initializeWasm() must be awaited first!");
8405         }
8406         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_ok(o);
8407         return nativeResponseValue;
8408 }
8409         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_err(enum LDKAccessError e);
8410 /* @internal */
8411 export function CResult_TxOutAccessErrorZ_err(e: AccessError): number {
8412         if(!isWasmInitialized) {
8413                 throw new Error("initializeWasm() must be awaited first!");
8414         }
8415         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_err(e);
8416         return nativeResponseValue;
8417 }
8418         // bool CResult_TxOutAccessErrorZ_is_ok(const struct LDKCResult_TxOutAccessErrorZ *NONNULL_PTR o);
8419 /* @internal */
8420 export function CResult_TxOutAccessErrorZ_is_ok(o: number): boolean {
8421         if(!isWasmInitialized) {
8422                 throw new Error("initializeWasm() must be awaited first!");
8423         }
8424         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_is_ok(o);
8425         return nativeResponseValue;
8426 }
8427         // void CResult_TxOutAccessErrorZ_free(struct LDKCResult_TxOutAccessErrorZ _res);
8428 /* @internal */
8429 export function CResult_TxOutAccessErrorZ_free(_res: number): void {
8430         if(!isWasmInitialized) {
8431                 throw new Error("initializeWasm() must be awaited first!");
8432         }
8433         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_free(_res);
8434         // debug statements here
8435 }
8436         // uintptr_t CResult_TxOutAccessErrorZ_clone_ptr(LDKCResult_TxOutAccessErrorZ *NONNULL_PTR arg);
8437 /* @internal */
8438 export function CResult_TxOutAccessErrorZ_clone_ptr(arg: number): number {
8439         if(!isWasmInitialized) {
8440                 throw new Error("initializeWasm() must be awaited first!");
8441         }
8442         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_clone_ptr(arg);
8443         return nativeResponseValue;
8444 }
8445         // struct LDKCResult_TxOutAccessErrorZ CResult_TxOutAccessErrorZ_clone(const struct LDKCResult_TxOutAccessErrorZ *NONNULL_PTR orig);
8446 /* @internal */
8447 export function CResult_TxOutAccessErrorZ_clone(orig: number): number {
8448         if(!isWasmInitialized) {
8449                 throw new Error("initializeWasm() must be awaited first!");
8450         }
8451         const nativeResponseValue = wasm.TS_CResult_TxOutAccessErrorZ_clone(orig);
8452         return nativeResponseValue;
8453 }
8454         // uintptr_t C2Tuple_usizeTransactionZ_clone_ptr(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR arg);
8455 /* @internal */
8456 export function C2Tuple_usizeTransactionZ_clone_ptr(arg: number): number {
8457         if(!isWasmInitialized) {
8458                 throw new Error("initializeWasm() must be awaited first!");
8459         }
8460         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_clone_ptr(arg);
8461         return nativeResponseValue;
8462 }
8463         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_clone(const struct LDKC2Tuple_usizeTransactionZ *NONNULL_PTR orig);
8464 /* @internal */
8465 export function C2Tuple_usizeTransactionZ_clone(orig: number): number {
8466         if(!isWasmInitialized) {
8467                 throw new Error("initializeWasm() must be awaited first!");
8468         }
8469         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_clone(orig);
8470         return nativeResponseValue;
8471 }
8472         // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
8473 /* @internal */
8474 export function C2Tuple_usizeTransactionZ_new(a: number, b: number): number {
8475         if(!isWasmInitialized) {
8476                 throw new Error("initializeWasm() must be awaited first!");
8477         }
8478         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_new(a, b);
8479         return nativeResponseValue;
8480 }
8481         // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
8482 /* @internal */
8483 export function C2Tuple_usizeTransactionZ_free(_res: number): void {
8484         if(!isWasmInitialized) {
8485                 throw new Error("initializeWasm() must be awaited first!");
8486         }
8487         const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_free(_res);
8488         // debug statements here
8489 }
8490         // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
8491 /* @internal */
8492 export function CVec_C2Tuple_usizeTransactionZZ_free(_res: number): void {
8493         if(!isWasmInitialized) {
8494                 throw new Error("initializeWasm() must be awaited first!");
8495         }
8496         const nativeResponseValue = wasm.TS_CVec_C2Tuple_usizeTransactionZZ_free(_res);
8497         // debug statements here
8498 }
8499         // void CVec_TxidZ_free(struct LDKCVec_TxidZ _res);
8500 /* @internal */
8501 export function CVec_TxidZ_free(_res: number): void {
8502         if(!isWasmInitialized) {
8503                 throw new Error("initializeWasm() must be awaited first!");
8504         }
8505         const nativeResponseValue = wasm.TS_CVec_TxidZ_free(_res);
8506         // debug statements here
8507 }
8508         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_ok(void);
8509 /* @internal */
8510 export function CResult_NoneChannelMonitorUpdateErrZ_ok(): number {
8511         if(!isWasmInitialized) {
8512                 throw new Error("initializeWasm() must be awaited first!");
8513         }
8514         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_ok();
8515         return nativeResponseValue;
8516 }
8517         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_err(enum LDKChannelMonitorUpdateErr e);
8518 /* @internal */
8519 export function CResult_NoneChannelMonitorUpdateErrZ_err(e: ChannelMonitorUpdateErr): number {
8520         if(!isWasmInitialized) {
8521                 throw new Error("initializeWasm() must be awaited first!");
8522         }
8523         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_err(e);
8524         return nativeResponseValue;
8525 }
8526         // bool CResult_NoneChannelMonitorUpdateErrZ_is_ok(const struct LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR o);
8527 /* @internal */
8528 export function CResult_NoneChannelMonitorUpdateErrZ_is_ok(o: number): boolean {
8529         if(!isWasmInitialized) {
8530                 throw new Error("initializeWasm() must be awaited first!");
8531         }
8532         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_is_ok(o);
8533         return nativeResponseValue;
8534 }
8535         // void CResult_NoneChannelMonitorUpdateErrZ_free(struct LDKCResult_NoneChannelMonitorUpdateErrZ _res);
8536 /* @internal */
8537 export function CResult_NoneChannelMonitorUpdateErrZ_free(_res: number): void {
8538         if(!isWasmInitialized) {
8539                 throw new Error("initializeWasm() must be awaited first!");
8540         }
8541         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_free(_res);
8542         // debug statements here
8543 }
8544         // uintptr_t CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR arg);
8545 /* @internal */
8546 export function CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(arg: number): number {
8547         if(!isWasmInitialized) {
8548                 throw new Error("initializeWasm() must be awaited first!");
8549         }
8550         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_clone_ptr(arg);
8551         return nativeResponseValue;
8552 }
8553         // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_clone(const struct LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR orig);
8554 /* @internal */
8555 export function CResult_NoneChannelMonitorUpdateErrZ_clone(orig: number): number {
8556         if(!isWasmInitialized) {
8557                 throw new Error("initializeWasm() must be awaited first!");
8558         }
8559         const nativeResponseValue = wasm.TS_CResult_NoneChannelMonitorUpdateErrZ_clone(orig);
8560         return nativeResponseValue;
8561 }
8562         // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res);
8563 /* @internal */
8564 export function CVec_MonitorEventZ_free(_res: number): void {
8565         if(!isWasmInitialized) {
8566                 throw new Error("initializeWasm() must be awaited first!");
8567         }
8568         const nativeResponseValue = wasm.TS_CVec_MonitorEventZ_free(_res);
8569         // debug statements here
8570 }
8571         // uintptr_t C2Tuple_OutPointCVec_MonitorEventZZ_clone_ptr(LDKC2Tuple_OutPointCVec_MonitorEventZZ *NONNULL_PTR arg);
8572 /* @internal */
8573 export function C2Tuple_OutPointCVec_MonitorEventZZ_clone_ptr(arg: number): number {
8574         if(!isWasmInitialized) {
8575                 throw new Error("initializeWasm() must be awaited first!");
8576         }
8577         const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorEventZZ_clone_ptr(arg);
8578         return nativeResponseValue;
8579 }
8580         // struct LDKC2Tuple_OutPointCVec_MonitorEventZZ C2Tuple_OutPointCVec_MonitorEventZZ_clone(const struct LDKC2Tuple_OutPointCVec_MonitorEventZZ *NONNULL_PTR orig);
8581 /* @internal */
8582 export function C2Tuple_OutPointCVec_MonitorEventZZ_clone(orig: number): number {
8583         if(!isWasmInitialized) {
8584                 throw new Error("initializeWasm() must be awaited first!");
8585         }
8586         const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorEventZZ_clone(orig);
8587         return nativeResponseValue;
8588 }
8589         // struct LDKC2Tuple_OutPointCVec_MonitorEventZZ C2Tuple_OutPointCVec_MonitorEventZZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorEventZ b);
8590 /* @internal */
8591 export function C2Tuple_OutPointCVec_MonitorEventZZ_new(a: number, b: number): number {
8592         if(!isWasmInitialized) {
8593                 throw new Error("initializeWasm() must be awaited first!");
8594         }
8595         const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorEventZZ_new(a, b);
8596         return nativeResponseValue;
8597 }
8598         // void C2Tuple_OutPointCVec_MonitorEventZZ_free(struct LDKC2Tuple_OutPointCVec_MonitorEventZZ _res);
8599 /* @internal */
8600 export function C2Tuple_OutPointCVec_MonitorEventZZ_free(_res: number): void {
8601         if(!isWasmInitialized) {
8602                 throw new Error("initializeWasm() must be awaited first!");
8603         }
8604         const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorEventZZ_free(_res);
8605         // debug statements here
8606 }
8607         // void CVec_C2Tuple_OutPointCVec_MonitorEventZZZ_free(struct LDKCVec_C2Tuple_OutPointCVec_MonitorEventZZZ _res);
8608 /* @internal */
8609 export function CVec_C2Tuple_OutPointCVec_MonitorEventZZZ_free(_res: number): void {
8610         if(!isWasmInitialized) {
8611                 throw new Error("initializeWasm() must be awaited first!");
8612         }
8613         const nativeResponseValue = wasm.TS_CVec_C2Tuple_OutPointCVec_MonitorEventZZZ_free(_res);
8614         // debug statements here
8615 }
8616         // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_some(struct LDKC2Tuple_usizeTransactionZ o);
8617 /* @internal */
8618 export function COption_C2Tuple_usizeTransactionZZ_some(o: number): number {
8619         if(!isWasmInitialized) {
8620                 throw new Error("initializeWasm() must be awaited first!");
8621         }
8622         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_some(o);
8623         return nativeResponseValue;
8624 }
8625         // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_none(void);
8626 /* @internal */
8627 export function COption_C2Tuple_usizeTransactionZZ_none(): number {
8628         if(!isWasmInitialized) {
8629                 throw new Error("initializeWasm() must be awaited first!");
8630         }
8631         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_none();
8632         return nativeResponseValue;
8633 }
8634         // void COption_C2Tuple_usizeTransactionZZ_free(struct LDKCOption_C2Tuple_usizeTransactionZZ _res);
8635 /* @internal */
8636 export function COption_C2Tuple_usizeTransactionZZ_free(_res: number): void {
8637         if(!isWasmInitialized) {
8638                 throw new Error("initializeWasm() must be awaited first!");
8639         }
8640         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_free(_res);
8641         // debug statements here
8642 }
8643         // uintptr_t COption_C2Tuple_usizeTransactionZZ_clone_ptr(LDKCOption_C2Tuple_usizeTransactionZZ *NONNULL_PTR arg);
8644 /* @internal */
8645 export function COption_C2Tuple_usizeTransactionZZ_clone_ptr(arg: number): number {
8646         if(!isWasmInitialized) {
8647                 throw new Error("initializeWasm() must be awaited first!");
8648         }
8649         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_clone_ptr(arg);
8650         return nativeResponseValue;
8651 }
8652         // struct LDKCOption_C2Tuple_usizeTransactionZZ COption_C2Tuple_usizeTransactionZZ_clone(const struct LDKCOption_C2Tuple_usizeTransactionZZ *NONNULL_PTR orig);
8653 /* @internal */
8654 export function COption_C2Tuple_usizeTransactionZZ_clone(orig: number): number {
8655         if(!isWasmInitialized) {
8656                 throw new Error("initializeWasm() must be awaited first!");
8657         }
8658         const nativeResponseValue = wasm.TS_COption_C2Tuple_usizeTransactionZZ_clone(orig);
8659         return nativeResponseValue;
8660 }
8661         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_ok(struct LDKFixedPenaltyScorer o);
8662 /* @internal */
8663 export function CResult_FixedPenaltyScorerDecodeErrorZ_ok(o: number): number {
8664         if(!isWasmInitialized) {
8665                 throw new Error("initializeWasm() must be awaited first!");
8666         }
8667         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_ok(o);
8668         return nativeResponseValue;
8669 }
8670         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_err(struct LDKDecodeError e);
8671 /* @internal */
8672 export function CResult_FixedPenaltyScorerDecodeErrorZ_err(e: number): number {
8673         if(!isWasmInitialized) {
8674                 throw new Error("initializeWasm() must be awaited first!");
8675         }
8676         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_err(e);
8677         return nativeResponseValue;
8678 }
8679         // bool CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR o);
8680 /* @internal */
8681 export function CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(o: number): boolean {
8682         if(!isWasmInitialized) {
8683                 throw new Error("initializeWasm() must be awaited first!");
8684         }
8685         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(o);
8686         return nativeResponseValue;
8687 }
8688         // void CResult_FixedPenaltyScorerDecodeErrorZ_free(struct LDKCResult_FixedPenaltyScorerDecodeErrorZ _res);
8689 /* @internal */
8690 export function CResult_FixedPenaltyScorerDecodeErrorZ_free(_res: number): void {
8691         if(!isWasmInitialized) {
8692                 throw new Error("initializeWasm() must be awaited first!");
8693         }
8694         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_free(_res);
8695         // debug statements here
8696 }
8697         // uintptr_t CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR arg);
8698 /* @internal */
8699 export function CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(arg: number): number {
8700         if(!isWasmInitialized) {
8701                 throw new Error("initializeWasm() must be awaited first!");
8702         }
8703         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(arg);
8704         return nativeResponseValue;
8705 }
8706         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_clone(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR orig);
8707 /* @internal */
8708 export function CResult_FixedPenaltyScorerDecodeErrorZ_clone(orig: number): number {
8709         if(!isWasmInitialized) {
8710                 throw new Error("initializeWasm() must be awaited first!");
8711         }
8712         const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_clone(orig);
8713         return nativeResponseValue;
8714 }
8715         // uintptr_t C2Tuple_u64u64Z_clone_ptr(LDKC2Tuple_u64u64Z *NONNULL_PTR arg);
8716 /* @internal */
8717 export function C2Tuple_u64u64Z_clone_ptr(arg: number): number {
8718         if(!isWasmInitialized) {
8719                 throw new Error("initializeWasm() must be awaited first!");
8720         }
8721         const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_clone_ptr(arg);
8722         return nativeResponseValue;
8723 }
8724         // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_clone(const struct LDKC2Tuple_u64u64Z *NONNULL_PTR orig);
8725 /* @internal */
8726 export function C2Tuple_u64u64Z_clone(orig: number): number {
8727         if(!isWasmInitialized) {
8728                 throw new Error("initializeWasm() must be awaited first!");
8729         }
8730         const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_clone(orig);
8731         return nativeResponseValue;
8732 }
8733         // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_new(uint64_t a, uint64_t b);
8734 /* @internal */
8735 export function C2Tuple_u64u64Z_new(a: bigint, b: bigint): number {
8736         if(!isWasmInitialized) {
8737                 throw new Error("initializeWasm() must be awaited first!");
8738         }
8739         const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_new(a, b);
8740         return nativeResponseValue;
8741 }
8742         // void C2Tuple_u64u64Z_free(struct LDKC2Tuple_u64u64Z _res);
8743 /* @internal */
8744 export function C2Tuple_u64u64Z_free(_res: number): void {
8745         if(!isWasmInitialized) {
8746                 throw new Error("initializeWasm() must be awaited first!");
8747         }
8748         const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_free(_res);
8749         // debug statements here
8750 }
8751         // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_some(struct LDKC2Tuple_u64u64Z o);
8752 /* @internal */
8753 export function COption_C2Tuple_u64u64ZZ_some(o: number): number {
8754         if(!isWasmInitialized) {
8755                 throw new Error("initializeWasm() must be awaited first!");
8756         }
8757         const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_some(o);
8758         return nativeResponseValue;
8759 }
8760         // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_none(void);
8761 /* @internal */
8762 export function COption_C2Tuple_u64u64ZZ_none(): number {
8763         if(!isWasmInitialized) {
8764                 throw new Error("initializeWasm() must be awaited first!");
8765         }
8766         const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_none();
8767         return nativeResponseValue;
8768 }
8769         // void COption_C2Tuple_u64u64ZZ_free(struct LDKCOption_C2Tuple_u64u64ZZ _res);
8770 /* @internal */
8771 export function COption_C2Tuple_u64u64ZZ_free(_res: number): void {
8772         if(!isWasmInitialized) {
8773                 throw new Error("initializeWasm() must be awaited first!");
8774         }
8775         const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_free(_res);
8776         // debug statements here
8777 }
8778         // uintptr_t COption_C2Tuple_u64u64ZZ_clone_ptr(LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR arg);
8779 /* @internal */
8780 export function COption_C2Tuple_u64u64ZZ_clone_ptr(arg: number): number {
8781         if(!isWasmInitialized) {
8782                 throw new Error("initializeWasm() must be awaited first!");
8783         }
8784         const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_clone_ptr(arg);
8785         return nativeResponseValue;
8786 }
8787         // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_clone(const struct LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR orig);
8788 /* @internal */
8789 export function COption_C2Tuple_u64u64ZZ_clone(orig: number): number {
8790         if(!isWasmInitialized) {
8791                 throw new Error("initializeWasm() must be awaited first!");
8792         }
8793         const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_clone(orig);
8794         return nativeResponseValue;
8795 }
8796         // void CVec_NodeIdZ_free(struct LDKCVec_NodeIdZ _res);
8797 /* @internal */
8798 export function CVec_NodeIdZ_free(_res: number): void {
8799         if(!isWasmInitialized) {
8800                 throw new Error("initializeWasm() must be awaited first!");
8801         }
8802         const nativeResponseValue = wasm.TS_CVec_NodeIdZ_free(_res);
8803         // debug statements here
8804 }
8805         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_ok(struct LDKProbabilisticScorer o);
8806 /* @internal */
8807 export function CResult_ProbabilisticScorerDecodeErrorZ_ok(o: number): number {
8808         if(!isWasmInitialized) {
8809                 throw new Error("initializeWasm() must be awaited first!");
8810         }
8811         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_ok(o);
8812         return nativeResponseValue;
8813 }
8814         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_err(struct LDKDecodeError e);
8815 /* @internal */
8816 export function CResult_ProbabilisticScorerDecodeErrorZ_err(e: number): number {
8817         if(!isWasmInitialized) {
8818                 throw new Error("initializeWasm() must be awaited first!");
8819         }
8820         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_err(e);
8821         return nativeResponseValue;
8822 }
8823         // bool CResult_ProbabilisticScorerDecodeErrorZ_is_ok(const struct LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR o);
8824 /* @internal */
8825 export function CResult_ProbabilisticScorerDecodeErrorZ_is_ok(o: number): boolean {
8826         if(!isWasmInitialized) {
8827                 throw new Error("initializeWasm() must be awaited first!");
8828         }
8829         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_is_ok(o);
8830         return nativeResponseValue;
8831 }
8832         // void CResult_ProbabilisticScorerDecodeErrorZ_free(struct LDKCResult_ProbabilisticScorerDecodeErrorZ _res);
8833 /* @internal */
8834 export function CResult_ProbabilisticScorerDecodeErrorZ_free(_res: number): void {
8835         if(!isWasmInitialized) {
8836                 throw new Error("initializeWasm() must be awaited first!");
8837         }
8838         const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_free(_res);
8839         // debug statements here
8840 }
8841         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o);
8842 /* @internal */
8843 export function CResult_InitFeaturesDecodeErrorZ_ok(o: number): number {
8844         if(!isWasmInitialized) {
8845                 throw new Error("initializeWasm() must be awaited first!");
8846         }
8847         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_ok(o);
8848         return nativeResponseValue;
8849 }
8850         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8851 /* @internal */
8852 export function CResult_InitFeaturesDecodeErrorZ_err(e: number): number {
8853         if(!isWasmInitialized) {
8854                 throw new Error("initializeWasm() must be awaited first!");
8855         }
8856         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_err(e);
8857         return nativeResponseValue;
8858 }
8859         // bool CResult_InitFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR o);
8860 /* @internal */
8861 export function CResult_InitFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8862         if(!isWasmInitialized) {
8863                 throw new Error("initializeWasm() must be awaited first!");
8864         }
8865         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_is_ok(o);
8866         return nativeResponseValue;
8867 }
8868         // void CResult_InitFeaturesDecodeErrorZ_free(struct LDKCResult_InitFeaturesDecodeErrorZ _res);
8869 /* @internal */
8870 export function CResult_InitFeaturesDecodeErrorZ_free(_res: number): void {
8871         if(!isWasmInitialized) {
8872                 throw new Error("initializeWasm() must be awaited first!");
8873         }
8874         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_free(_res);
8875         // debug statements here
8876 }
8877         // uintptr_t CResult_InitFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR arg);
8878 /* @internal */
8879 export function CResult_InitFeaturesDecodeErrorZ_clone_ptr(arg: number): number {
8880         if(!isWasmInitialized) {
8881                 throw new Error("initializeWasm() must be awaited first!");
8882         }
8883         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_clone_ptr(arg);
8884         return nativeResponseValue;
8885 }
8886         // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_clone(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR orig);
8887 /* @internal */
8888 export function CResult_InitFeaturesDecodeErrorZ_clone(orig: number): number {
8889         if(!isWasmInitialized) {
8890                 throw new Error("initializeWasm() must be awaited first!");
8891         }
8892         const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_clone(orig);
8893         return nativeResponseValue;
8894 }
8895         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_ok(struct LDKChannelFeatures o);
8896 /* @internal */
8897 export function CResult_ChannelFeaturesDecodeErrorZ_ok(o: number): number {
8898         if(!isWasmInitialized) {
8899                 throw new Error("initializeWasm() must be awaited first!");
8900         }
8901         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_ok(o);
8902         return nativeResponseValue;
8903 }
8904         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8905 /* @internal */
8906 export function CResult_ChannelFeaturesDecodeErrorZ_err(e: number): number {
8907         if(!isWasmInitialized) {
8908                 throw new Error("initializeWasm() must be awaited first!");
8909         }
8910         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_err(e);
8911         return nativeResponseValue;
8912 }
8913         // bool CResult_ChannelFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR o);
8914 /* @internal */
8915 export function CResult_ChannelFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8916         if(!isWasmInitialized) {
8917                 throw new Error("initializeWasm() must be awaited first!");
8918         }
8919         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_is_ok(o);
8920         return nativeResponseValue;
8921 }
8922         // void CResult_ChannelFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelFeaturesDecodeErrorZ _res);
8923 /* @internal */
8924 export function CResult_ChannelFeaturesDecodeErrorZ_free(_res: number): void {
8925         if(!isWasmInitialized) {
8926                 throw new Error("initializeWasm() must be awaited first!");
8927         }
8928         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_free(_res);
8929         // debug statements here
8930 }
8931         // uintptr_t CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR arg);
8932 /* @internal */
8933 export function CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(arg: number): number {
8934         if(!isWasmInitialized) {
8935                 throw new Error("initializeWasm() must be awaited first!");
8936         }
8937         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(arg);
8938         return nativeResponseValue;
8939 }
8940         // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR orig);
8941 /* @internal */
8942 export function CResult_ChannelFeaturesDecodeErrorZ_clone(orig: number): number {
8943         if(!isWasmInitialized) {
8944                 throw new Error("initializeWasm() must be awaited first!");
8945         }
8946         const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_clone(orig);
8947         return nativeResponseValue;
8948 }
8949         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_ok(struct LDKNodeFeatures o);
8950 /* @internal */
8951 export function CResult_NodeFeaturesDecodeErrorZ_ok(o: number): number {
8952         if(!isWasmInitialized) {
8953                 throw new Error("initializeWasm() must be awaited first!");
8954         }
8955         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_ok(o);
8956         return nativeResponseValue;
8957 }
8958         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
8959 /* @internal */
8960 export function CResult_NodeFeaturesDecodeErrorZ_err(e: number): number {
8961         if(!isWasmInitialized) {
8962                 throw new Error("initializeWasm() must be awaited first!");
8963         }
8964         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_err(e);
8965         return nativeResponseValue;
8966 }
8967         // bool CResult_NodeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR o);
8968 /* @internal */
8969 export function CResult_NodeFeaturesDecodeErrorZ_is_ok(o: number): boolean {
8970         if(!isWasmInitialized) {
8971                 throw new Error("initializeWasm() must be awaited first!");
8972         }
8973         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_is_ok(o);
8974         return nativeResponseValue;
8975 }
8976         // void CResult_NodeFeaturesDecodeErrorZ_free(struct LDKCResult_NodeFeaturesDecodeErrorZ _res);
8977 /* @internal */
8978 export function CResult_NodeFeaturesDecodeErrorZ_free(_res: number): void {
8979         if(!isWasmInitialized) {
8980                 throw new Error("initializeWasm() must be awaited first!");
8981         }
8982         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_free(_res);
8983         // debug statements here
8984 }
8985         // uintptr_t CResult_NodeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR arg);
8986 /* @internal */
8987 export function CResult_NodeFeaturesDecodeErrorZ_clone_ptr(arg: number): number {
8988         if(!isWasmInitialized) {
8989                 throw new Error("initializeWasm() must be awaited first!");
8990         }
8991         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_clone_ptr(arg);
8992         return nativeResponseValue;
8993 }
8994         // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_clone(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR orig);
8995 /* @internal */
8996 export function CResult_NodeFeaturesDecodeErrorZ_clone(orig: number): number {
8997         if(!isWasmInitialized) {
8998                 throw new Error("initializeWasm() must be awaited first!");
8999         }
9000         const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_clone(orig);
9001         return nativeResponseValue;
9002 }
9003         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_ok(struct LDKInvoiceFeatures o);
9004 /* @internal */
9005 export function CResult_InvoiceFeaturesDecodeErrorZ_ok(o: number): number {
9006         if(!isWasmInitialized) {
9007                 throw new Error("initializeWasm() must be awaited first!");
9008         }
9009         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_ok(o);
9010         return nativeResponseValue;
9011 }
9012         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
9013 /* @internal */
9014 export function CResult_InvoiceFeaturesDecodeErrorZ_err(e: number): number {
9015         if(!isWasmInitialized) {
9016                 throw new Error("initializeWasm() must be awaited first!");
9017         }
9018         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_err(e);
9019         return nativeResponseValue;
9020 }
9021         // bool CResult_InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
9022 /* @internal */
9023 export function CResult_InvoiceFeaturesDecodeErrorZ_is_ok(o: number): boolean {
9024         if(!isWasmInitialized) {
9025                 throw new Error("initializeWasm() must be awaited first!");
9026         }
9027         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_is_ok(o);
9028         return nativeResponseValue;
9029 }
9030         // void CResult_InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_InvoiceFeaturesDecodeErrorZ _res);
9031 /* @internal */
9032 export function CResult_InvoiceFeaturesDecodeErrorZ_free(_res: number): void {
9033         if(!isWasmInitialized) {
9034                 throw new Error("initializeWasm() must be awaited first!");
9035         }
9036         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_free(_res);
9037         // debug statements here
9038 }
9039         // uintptr_t CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg);
9040 /* @internal */
9041 export function CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(arg: number): number {
9042         if(!isWasmInitialized) {
9043                 throw new Error("initializeWasm() must be awaited first!");
9044         }
9045         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(arg);
9046         return nativeResponseValue;
9047 }
9048         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig);
9049 /* @internal */
9050 export function CResult_InvoiceFeaturesDecodeErrorZ_clone(orig: number): number {
9051         if(!isWasmInitialized) {
9052                 throw new Error("initializeWasm() must be awaited first!");
9053         }
9054         const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_clone(orig);
9055         return nativeResponseValue;
9056 }
9057         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_ok(struct LDKChannelTypeFeatures o);
9058 /* @internal */
9059 export function CResult_ChannelTypeFeaturesDecodeErrorZ_ok(o: number): number {
9060         if(!isWasmInitialized) {
9061                 throw new Error("initializeWasm() must be awaited first!");
9062         }
9063         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_ok(o);
9064         return nativeResponseValue;
9065 }
9066         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
9067 /* @internal */
9068 export function CResult_ChannelTypeFeaturesDecodeErrorZ_err(e: number): number {
9069         if(!isWasmInitialized) {
9070                 throw new Error("initializeWasm() must be awaited first!");
9071         }
9072         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_err(e);
9073         return nativeResponseValue;
9074 }
9075         // bool CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR o);
9076 /* @internal */
9077 export function CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(o: number): boolean {
9078         if(!isWasmInitialized) {
9079                 throw new Error("initializeWasm() must be awaited first!");
9080         }
9081         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(o);
9082         return nativeResponseValue;
9083 }
9084         // void CResult_ChannelTypeFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ _res);
9085 /* @internal */
9086 export function CResult_ChannelTypeFeaturesDecodeErrorZ_free(_res: number): void {
9087         if(!isWasmInitialized) {
9088                 throw new Error("initializeWasm() must be awaited first!");
9089         }
9090         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_free(_res);
9091         // debug statements here
9092 }
9093         // uintptr_t CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR arg);
9094 /* @internal */
9095 export function CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(arg: number): number {
9096         if(!isWasmInitialized) {
9097                 throw new Error("initializeWasm() must be awaited first!");
9098         }
9099         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(arg);
9100         return nativeResponseValue;
9101 }
9102         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR orig);
9103 /* @internal */
9104 export function CResult_ChannelTypeFeaturesDecodeErrorZ_clone(orig: number): number {
9105         if(!isWasmInitialized) {
9106                 throw new Error("initializeWasm() must be awaited first!");
9107         }
9108         const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_clone(orig);
9109         return nativeResponseValue;
9110 }
9111         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_ok(struct LDKNodeId o);
9112 /* @internal */
9113 export function CResult_NodeIdDecodeErrorZ_ok(o: number): number {
9114         if(!isWasmInitialized) {
9115                 throw new Error("initializeWasm() must be awaited first!");
9116         }
9117         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_ok(o);
9118         return nativeResponseValue;
9119 }
9120         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_err(struct LDKDecodeError e);
9121 /* @internal */
9122 export function CResult_NodeIdDecodeErrorZ_err(e: number): number {
9123         if(!isWasmInitialized) {
9124                 throw new Error("initializeWasm() must be awaited first!");
9125         }
9126         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_err(e);
9127         return nativeResponseValue;
9128 }
9129         // bool CResult_NodeIdDecodeErrorZ_is_ok(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR o);
9130 /* @internal */
9131 export function CResult_NodeIdDecodeErrorZ_is_ok(o: number): boolean {
9132         if(!isWasmInitialized) {
9133                 throw new Error("initializeWasm() must be awaited first!");
9134         }
9135         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_is_ok(o);
9136         return nativeResponseValue;
9137 }
9138         // void CResult_NodeIdDecodeErrorZ_free(struct LDKCResult_NodeIdDecodeErrorZ _res);
9139 /* @internal */
9140 export function CResult_NodeIdDecodeErrorZ_free(_res: number): void {
9141         if(!isWasmInitialized) {
9142                 throw new Error("initializeWasm() must be awaited first!");
9143         }
9144         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_free(_res);
9145         // debug statements here
9146 }
9147         // uintptr_t CResult_NodeIdDecodeErrorZ_clone_ptr(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR arg);
9148 /* @internal */
9149 export function CResult_NodeIdDecodeErrorZ_clone_ptr(arg: number): number {
9150         if(!isWasmInitialized) {
9151                 throw new Error("initializeWasm() must be awaited first!");
9152         }
9153         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_clone_ptr(arg);
9154         return nativeResponseValue;
9155 }
9156         // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_clone(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR orig);
9157 /* @internal */
9158 export function CResult_NodeIdDecodeErrorZ_clone(orig: number): number {
9159         if(!isWasmInitialized) {
9160                 throw new Error("initializeWasm() must be awaited first!");
9161         }
9162         const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_clone(orig);
9163         return nativeResponseValue;
9164 }
9165         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_ok(struct LDKCOption_NetworkUpdateZ o);
9166 /* @internal */
9167 export function CResult_COption_NetworkUpdateZDecodeErrorZ_ok(o: number): number {
9168         if(!isWasmInitialized) {
9169                 throw new Error("initializeWasm() must be awaited first!");
9170         }
9171         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_ok(o);
9172         return nativeResponseValue;
9173 }
9174         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_err(struct LDKDecodeError e);
9175 /* @internal */
9176 export function CResult_COption_NetworkUpdateZDecodeErrorZ_err(e: number): number {
9177         if(!isWasmInitialized) {
9178                 throw new Error("initializeWasm() must be awaited first!");
9179         }
9180         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_err(e);
9181         return nativeResponseValue;
9182 }
9183         // bool CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR o);
9184 /* @internal */
9185 export function CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(o: number): boolean {
9186         if(!isWasmInitialized) {
9187                 throw new Error("initializeWasm() must be awaited first!");
9188         }
9189         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(o);
9190         return nativeResponseValue;
9191 }
9192         // void CResult_COption_NetworkUpdateZDecodeErrorZ_free(struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ _res);
9193 /* @internal */
9194 export function CResult_COption_NetworkUpdateZDecodeErrorZ_free(_res: number): void {
9195         if(!isWasmInitialized) {
9196                 throw new Error("initializeWasm() must be awaited first!");
9197         }
9198         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_free(_res);
9199         // debug statements here
9200 }
9201         // uintptr_t CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR arg);
9202 /* @internal */
9203 export function CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(arg: number): number {
9204         if(!isWasmInitialized) {
9205                 throw new Error("initializeWasm() must be awaited first!");
9206         }
9207         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(arg);
9208         return nativeResponseValue;
9209 }
9210         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_clone(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR orig);
9211 /* @internal */
9212 export function CResult_COption_NetworkUpdateZDecodeErrorZ_clone(orig: number): number {
9213         if(!isWasmInitialized) {
9214                 throw new Error("initializeWasm() must be awaited first!");
9215         }
9216         const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_clone(orig);
9217         return nativeResponseValue;
9218 }
9219         // struct LDKCOption_AccessZ COption_AccessZ_some(struct LDKAccess o);
9220 /* @internal */
9221 export function COption_AccessZ_some(o: number): number {
9222         if(!isWasmInitialized) {
9223                 throw new Error("initializeWasm() must be awaited first!");
9224         }
9225         const nativeResponseValue = wasm.TS_COption_AccessZ_some(o);
9226         return nativeResponseValue;
9227 }
9228         // struct LDKCOption_AccessZ COption_AccessZ_none(void);
9229 /* @internal */
9230 export function COption_AccessZ_none(): number {
9231         if(!isWasmInitialized) {
9232                 throw new Error("initializeWasm() must be awaited first!");
9233         }
9234         const nativeResponseValue = wasm.TS_COption_AccessZ_none();
9235         return nativeResponseValue;
9236 }
9237         // void COption_AccessZ_free(struct LDKCOption_AccessZ _res);
9238 /* @internal */
9239 export function COption_AccessZ_free(_res: number): void {
9240         if(!isWasmInitialized) {
9241                 throw new Error("initializeWasm() must be awaited first!");
9242         }
9243         const nativeResponseValue = wasm.TS_COption_AccessZ_free(_res);
9244         // debug statements here
9245 }
9246         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o);
9247 /* @internal */
9248 export function CResult_boolLightningErrorZ_ok(o: boolean): number {
9249         if(!isWasmInitialized) {
9250                 throw new Error("initializeWasm() must be awaited first!");
9251         }
9252         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_ok(o);
9253         return nativeResponseValue;
9254 }
9255         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e);
9256 /* @internal */
9257 export function CResult_boolLightningErrorZ_err(e: number): number {
9258         if(!isWasmInitialized) {
9259                 throw new Error("initializeWasm() must be awaited first!");
9260         }
9261         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_err(e);
9262         return nativeResponseValue;
9263 }
9264         // bool CResult_boolLightningErrorZ_is_ok(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR o);
9265 /* @internal */
9266 export function CResult_boolLightningErrorZ_is_ok(o: number): boolean {
9267         if(!isWasmInitialized) {
9268                 throw new Error("initializeWasm() must be awaited first!");
9269         }
9270         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_is_ok(o);
9271         return nativeResponseValue;
9272 }
9273         // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
9274 /* @internal */
9275 export function CResult_boolLightningErrorZ_free(_res: number): void {
9276         if(!isWasmInitialized) {
9277                 throw new Error("initializeWasm() must be awaited first!");
9278         }
9279         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_free(_res);
9280         // debug statements here
9281 }
9282         // uintptr_t CResult_boolLightningErrorZ_clone_ptr(LDKCResult_boolLightningErrorZ *NONNULL_PTR arg);
9283 /* @internal */
9284 export function CResult_boolLightningErrorZ_clone_ptr(arg: number): number {
9285         if(!isWasmInitialized) {
9286                 throw new Error("initializeWasm() must be awaited first!");
9287         }
9288         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_clone_ptr(arg);
9289         return nativeResponseValue;
9290 }
9291         // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_clone(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR orig);
9292 /* @internal */
9293 export function CResult_boolLightningErrorZ_clone(orig: number): number {
9294         if(!isWasmInitialized) {
9295                 throw new Error("initializeWasm() must be awaited first!");
9296         }
9297         const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_clone(orig);
9298         return nativeResponseValue;
9299 }
9300         // uintptr_t C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR arg);
9301 /* @internal */
9302 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(arg: number): number {
9303         if(!isWasmInitialized) {
9304                 throw new Error("initializeWasm() must be awaited first!");
9305         }
9306         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(arg);
9307         return nativeResponseValue;
9308 }
9309         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig);
9310 /* @internal */
9311 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(orig: number): number {
9312         if(!isWasmInitialized) {
9313                 throw new Error("initializeWasm() must be awaited first!");
9314         }
9315         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(orig);
9316         return nativeResponseValue;
9317 }
9318         // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
9319 /* @internal */
9320 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(a: number, b: number, c: number): number {
9321         if(!isWasmInitialized) {
9322                 throw new Error("initializeWasm() must be awaited first!");
9323         }
9324         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(a, b, c);
9325         return nativeResponseValue;
9326 }
9327         // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
9328 /* @internal */
9329 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(_res: number): void {
9330         if(!isWasmInitialized) {
9331                 throw new Error("initializeWasm() must be awaited first!");
9332         }
9333         const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(_res);
9334         // debug statements here
9335 }
9336         // void CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
9337 /* @internal */
9338 export function CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(_res: number): void {
9339         if(!isWasmInitialized) {
9340                 throw new Error("initializeWasm() must be awaited first!");
9341         }
9342         const nativeResponseValue = wasm.TS_CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(_res);
9343         // debug statements here
9344 }
9345         // void CVec_NodeAnnouncementZ_free(struct LDKCVec_NodeAnnouncementZ _res);
9346 /* @internal */
9347 export function CVec_NodeAnnouncementZ_free(_res: number): void {
9348         if(!isWasmInitialized) {
9349                 throw new Error("initializeWasm() must be awaited first!");
9350         }
9351         const nativeResponseValue = wasm.TS_CVec_NodeAnnouncementZ_free(_res);
9352         // debug statements here
9353 }
9354         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void);
9355 /* @internal */
9356 export function CResult_NoneLightningErrorZ_ok(): number {
9357         if(!isWasmInitialized) {
9358                 throw new Error("initializeWasm() must be awaited first!");
9359         }
9360         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_ok();
9361         return nativeResponseValue;
9362 }
9363         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e);
9364 /* @internal */
9365 export function CResult_NoneLightningErrorZ_err(e: number): number {
9366         if(!isWasmInitialized) {
9367                 throw new Error("initializeWasm() must be awaited first!");
9368         }
9369         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_err(e);
9370         return nativeResponseValue;
9371 }
9372         // bool CResult_NoneLightningErrorZ_is_ok(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR o);
9373 /* @internal */
9374 export function CResult_NoneLightningErrorZ_is_ok(o: number): boolean {
9375         if(!isWasmInitialized) {
9376                 throw new Error("initializeWasm() must be awaited first!");
9377         }
9378         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_is_ok(o);
9379         return nativeResponseValue;
9380 }
9381         // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res);
9382 /* @internal */
9383 export function CResult_NoneLightningErrorZ_free(_res: number): void {
9384         if(!isWasmInitialized) {
9385                 throw new Error("initializeWasm() must be awaited first!");
9386         }
9387         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_free(_res);
9388         // debug statements here
9389 }
9390         // uintptr_t CResult_NoneLightningErrorZ_clone_ptr(LDKCResult_NoneLightningErrorZ *NONNULL_PTR arg);
9391 /* @internal */
9392 export function CResult_NoneLightningErrorZ_clone_ptr(arg: number): number {
9393         if(!isWasmInitialized) {
9394                 throw new Error("initializeWasm() must be awaited first!");
9395         }
9396         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_clone_ptr(arg);
9397         return nativeResponseValue;
9398 }
9399         // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_clone(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR orig);
9400 /* @internal */
9401 export function CResult_NoneLightningErrorZ_clone(orig: number): number {
9402         if(!isWasmInitialized) {
9403                 throw new Error("initializeWasm() must be awaited first!");
9404         }
9405         const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_clone(orig);
9406         return nativeResponseValue;
9407 }
9408         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_ok(struct LDKChannelUpdateInfo o);
9409 /* @internal */
9410 export function CResult_ChannelUpdateInfoDecodeErrorZ_ok(o: number): number {
9411         if(!isWasmInitialized) {
9412                 throw new Error("initializeWasm() must be awaited first!");
9413         }
9414         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_ok(o);
9415         return nativeResponseValue;
9416 }
9417         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_err(struct LDKDecodeError e);
9418 /* @internal */
9419 export function CResult_ChannelUpdateInfoDecodeErrorZ_err(e: number): number {
9420         if(!isWasmInitialized) {
9421                 throw new Error("initializeWasm() must be awaited first!");
9422         }
9423         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_err(e);
9424         return nativeResponseValue;
9425 }
9426         // bool CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR o);
9427 /* @internal */
9428 export function CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(o: number): boolean {
9429         if(!isWasmInitialized) {
9430                 throw new Error("initializeWasm() must be awaited first!");
9431         }
9432         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(o);
9433         return nativeResponseValue;
9434 }
9435         // void CResult_ChannelUpdateInfoDecodeErrorZ_free(struct LDKCResult_ChannelUpdateInfoDecodeErrorZ _res);
9436 /* @internal */
9437 export function CResult_ChannelUpdateInfoDecodeErrorZ_free(_res: number): void {
9438         if(!isWasmInitialized) {
9439                 throw new Error("initializeWasm() must be awaited first!");
9440         }
9441         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_free(_res);
9442         // debug statements here
9443 }
9444         // uintptr_t CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR arg);
9445 /* @internal */
9446 export function CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(arg: number): number {
9447         if(!isWasmInitialized) {
9448                 throw new Error("initializeWasm() must be awaited first!");
9449         }
9450         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(arg);
9451         return nativeResponseValue;
9452 }
9453         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR orig);
9454 /* @internal */
9455 export function CResult_ChannelUpdateInfoDecodeErrorZ_clone(orig: number): number {
9456         if(!isWasmInitialized) {
9457                 throw new Error("initializeWasm() must be awaited first!");
9458         }
9459         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_clone(orig);
9460         return nativeResponseValue;
9461 }
9462         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_ok(struct LDKChannelInfo o);
9463 /* @internal */
9464 export function CResult_ChannelInfoDecodeErrorZ_ok(o: number): number {
9465         if(!isWasmInitialized) {
9466                 throw new Error("initializeWasm() must be awaited first!");
9467         }
9468         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_ok(o);
9469         return nativeResponseValue;
9470 }
9471         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
9472 /* @internal */
9473 export function CResult_ChannelInfoDecodeErrorZ_err(e: number): number {
9474         if(!isWasmInitialized) {
9475                 throw new Error("initializeWasm() must be awaited first!");
9476         }
9477         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_err(e);
9478         return nativeResponseValue;
9479 }
9480         // bool CResult_ChannelInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR o);
9481 /* @internal */
9482 export function CResult_ChannelInfoDecodeErrorZ_is_ok(o: number): boolean {
9483         if(!isWasmInitialized) {
9484                 throw new Error("initializeWasm() must be awaited first!");
9485         }
9486         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_is_ok(o);
9487         return nativeResponseValue;
9488 }
9489         // void CResult_ChannelInfoDecodeErrorZ_free(struct LDKCResult_ChannelInfoDecodeErrorZ _res);
9490 /* @internal */
9491 export function CResult_ChannelInfoDecodeErrorZ_free(_res: number): void {
9492         if(!isWasmInitialized) {
9493                 throw new Error("initializeWasm() must be awaited first!");
9494         }
9495         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_free(_res);
9496         // debug statements here
9497 }
9498         // uintptr_t CResult_ChannelInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR arg);
9499 /* @internal */
9500 export function CResult_ChannelInfoDecodeErrorZ_clone_ptr(arg: number): number {
9501         if(!isWasmInitialized) {
9502                 throw new Error("initializeWasm() must be awaited first!");
9503         }
9504         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_clone_ptr(arg);
9505         return nativeResponseValue;
9506 }
9507         // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR orig);
9508 /* @internal */
9509 export function CResult_ChannelInfoDecodeErrorZ_clone(orig: number): number {
9510         if(!isWasmInitialized) {
9511                 throw new Error("initializeWasm() must be awaited first!");
9512         }
9513         const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_clone(orig);
9514         return nativeResponseValue;
9515 }
9516         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o);
9517 /* @internal */
9518 export function CResult_RoutingFeesDecodeErrorZ_ok(o: number): number {
9519         if(!isWasmInitialized) {
9520                 throw new Error("initializeWasm() must be awaited first!");
9521         }
9522         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_ok(o);
9523         return nativeResponseValue;
9524 }
9525         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e);
9526 /* @internal */
9527 export function CResult_RoutingFeesDecodeErrorZ_err(e: number): number {
9528         if(!isWasmInitialized) {
9529                 throw new Error("initializeWasm() must be awaited first!");
9530         }
9531         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_err(e);
9532         return nativeResponseValue;
9533 }
9534         // bool CResult_RoutingFeesDecodeErrorZ_is_ok(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR o);
9535 /* @internal */
9536 export function CResult_RoutingFeesDecodeErrorZ_is_ok(o: number): boolean {
9537         if(!isWasmInitialized) {
9538                 throw new Error("initializeWasm() must be awaited first!");
9539         }
9540         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_is_ok(o);
9541         return nativeResponseValue;
9542 }
9543         // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res);
9544 /* @internal */
9545 export function CResult_RoutingFeesDecodeErrorZ_free(_res: number): void {
9546         if(!isWasmInitialized) {
9547                 throw new Error("initializeWasm() must be awaited first!");
9548         }
9549         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_free(_res);
9550         // debug statements here
9551 }
9552         // uintptr_t CResult_RoutingFeesDecodeErrorZ_clone_ptr(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR arg);
9553 /* @internal */
9554 export function CResult_RoutingFeesDecodeErrorZ_clone_ptr(arg: number): number {
9555         if(!isWasmInitialized) {
9556                 throw new Error("initializeWasm() must be awaited first!");
9557         }
9558         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_clone_ptr(arg);
9559         return nativeResponseValue;
9560 }
9561         // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR orig);
9562 /* @internal */
9563 export function CResult_RoutingFeesDecodeErrorZ_clone(orig: number): number {
9564         if(!isWasmInitialized) {
9565                 throw new Error("initializeWasm() must be awaited first!");
9566         }
9567         const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_clone(orig);
9568         return nativeResponseValue;
9569 }
9570         // void CVec_NetAddressZ_free(struct LDKCVec_NetAddressZ _res);
9571 /* @internal */
9572 export function CVec_NetAddressZ_free(_res: number): void {
9573         if(!isWasmInitialized) {
9574                 throw new Error("initializeWasm() must be awaited first!");
9575         }
9576         const nativeResponseValue = wasm.TS_CVec_NetAddressZ_free(_res);
9577         // debug statements here
9578 }
9579         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o);
9580 /* @internal */
9581 export function CResult_NodeAnnouncementInfoDecodeErrorZ_ok(o: number): number {
9582         if(!isWasmInitialized) {
9583                 throw new Error("initializeWasm() must be awaited first!");
9584         }
9585         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_ok(o);
9586         return nativeResponseValue;
9587 }
9588         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e);
9589 /* @internal */
9590 export function CResult_NodeAnnouncementInfoDecodeErrorZ_err(e: number): number {
9591         if(!isWasmInitialized) {
9592                 throw new Error("initializeWasm() must be awaited first!");
9593         }
9594         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_err(e);
9595         return nativeResponseValue;
9596 }
9597         // bool CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR o);
9598 /* @internal */
9599 export function CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(o: number): boolean {
9600         if(!isWasmInitialized) {
9601                 throw new Error("initializeWasm() must be awaited first!");
9602         }
9603         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(o);
9604         return nativeResponseValue;
9605 }
9606         // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res);
9607 /* @internal */
9608 export function CResult_NodeAnnouncementInfoDecodeErrorZ_free(_res: number): void {
9609         if(!isWasmInitialized) {
9610                 throw new Error("initializeWasm() must be awaited first!");
9611         }
9612         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_free(_res);
9613         // debug statements here
9614 }
9615         // uintptr_t CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR arg);
9616 /* @internal */
9617 export function CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(arg: number): number {
9618         if(!isWasmInitialized) {
9619                 throw new Error("initializeWasm() must be awaited first!");
9620         }
9621         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(arg);
9622         return nativeResponseValue;
9623 }
9624         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR orig);
9625 /* @internal */
9626 export function CResult_NodeAnnouncementInfoDecodeErrorZ_clone(orig: number): number {
9627         if(!isWasmInitialized) {
9628                 throw new Error("initializeWasm() must be awaited first!");
9629         }
9630         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_clone(orig);
9631         return nativeResponseValue;
9632 }
9633         // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_ok(struct LDKNodeAlias o);
9634 /* @internal */
9635 export function CResult_NodeAliasDecodeErrorZ_ok(o: number): number {
9636         if(!isWasmInitialized) {
9637                 throw new Error("initializeWasm() must be awaited first!");
9638         }
9639         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_ok(o);
9640         return nativeResponseValue;
9641 }
9642         // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_err(struct LDKDecodeError e);
9643 /* @internal */
9644 export function CResult_NodeAliasDecodeErrorZ_err(e: number): number {
9645         if(!isWasmInitialized) {
9646                 throw new Error("initializeWasm() must be awaited first!");
9647         }
9648         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_err(e);
9649         return nativeResponseValue;
9650 }
9651         // bool CResult_NodeAliasDecodeErrorZ_is_ok(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR o);
9652 /* @internal */
9653 export function CResult_NodeAliasDecodeErrorZ_is_ok(o: number): boolean {
9654         if(!isWasmInitialized) {
9655                 throw new Error("initializeWasm() must be awaited first!");
9656         }
9657         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_is_ok(o);
9658         return nativeResponseValue;
9659 }
9660         // void CResult_NodeAliasDecodeErrorZ_free(struct LDKCResult_NodeAliasDecodeErrorZ _res);
9661 /* @internal */
9662 export function CResult_NodeAliasDecodeErrorZ_free(_res: number): void {
9663         if(!isWasmInitialized) {
9664                 throw new Error("initializeWasm() must be awaited first!");
9665         }
9666         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_free(_res);
9667         // debug statements here
9668 }
9669         // uintptr_t CResult_NodeAliasDecodeErrorZ_clone_ptr(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR arg);
9670 /* @internal */
9671 export function CResult_NodeAliasDecodeErrorZ_clone_ptr(arg: number): number {
9672         if(!isWasmInitialized) {
9673                 throw new Error("initializeWasm() must be awaited first!");
9674         }
9675         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_clone_ptr(arg);
9676         return nativeResponseValue;
9677 }
9678         // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_clone(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR orig);
9679 /* @internal */
9680 export function CResult_NodeAliasDecodeErrorZ_clone(orig: number): number {
9681         if(!isWasmInitialized) {
9682                 throw new Error("initializeWasm() must be awaited first!");
9683         }
9684         const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_clone(orig);
9685         return nativeResponseValue;
9686 }
9687         // void CVec_u64Z_free(struct LDKCVec_u64Z _res);
9688 /* @internal */
9689 export function CVec_u64Z_free(_res: number): void {
9690         if(!isWasmInitialized) {
9691                 throw new Error("initializeWasm() must be awaited first!");
9692         }
9693         const nativeResponseValue = wasm.TS_CVec_u64Z_free(_res);
9694         // debug statements here
9695 }
9696         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o);
9697 /* @internal */
9698 export function CResult_NodeInfoDecodeErrorZ_ok(o: number): number {
9699         if(!isWasmInitialized) {
9700                 throw new Error("initializeWasm() must be awaited first!");
9701         }
9702         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_ok(o);
9703         return nativeResponseValue;
9704 }
9705         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e);
9706 /* @internal */
9707 export function CResult_NodeInfoDecodeErrorZ_err(e: number): number {
9708         if(!isWasmInitialized) {
9709                 throw new Error("initializeWasm() must be awaited first!");
9710         }
9711         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_err(e);
9712         return nativeResponseValue;
9713 }
9714         // bool CResult_NodeInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR o);
9715 /* @internal */
9716 export function CResult_NodeInfoDecodeErrorZ_is_ok(o: number): boolean {
9717         if(!isWasmInitialized) {
9718                 throw new Error("initializeWasm() must be awaited first!");
9719         }
9720         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_is_ok(o);
9721         return nativeResponseValue;
9722 }
9723         // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res);
9724 /* @internal */
9725 export function CResult_NodeInfoDecodeErrorZ_free(_res: number): void {
9726         if(!isWasmInitialized) {
9727                 throw new Error("initializeWasm() must be awaited first!");
9728         }
9729         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_free(_res);
9730         // debug statements here
9731 }
9732         // uintptr_t CResult_NodeInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR arg);
9733 /* @internal */
9734 export function CResult_NodeInfoDecodeErrorZ_clone_ptr(arg: number): number {
9735         if(!isWasmInitialized) {
9736                 throw new Error("initializeWasm() must be awaited first!");
9737         }
9738         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_clone_ptr(arg);
9739         return nativeResponseValue;
9740 }
9741         // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_clone(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR orig);
9742 /* @internal */
9743 export function CResult_NodeInfoDecodeErrorZ_clone(orig: number): number {
9744         if(!isWasmInitialized) {
9745                 throw new Error("initializeWasm() must be awaited first!");
9746         }
9747         const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_clone(orig);
9748         return nativeResponseValue;
9749 }
9750         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o);
9751 /* @internal */
9752 export function CResult_NetworkGraphDecodeErrorZ_ok(o: number): number {
9753         if(!isWasmInitialized) {
9754                 throw new Error("initializeWasm() must be awaited first!");
9755         }
9756         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_ok(o);
9757         return nativeResponseValue;
9758 }
9759         // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e);
9760 /* @internal */
9761 export function CResult_NetworkGraphDecodeErrorZ_err(e: number): number {
9762         if(!isWasmInitialized) {
9763                 throw new Error("initializeWasm() must be awaited first!");
9764         }
9765         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_err(e);
9766         return nativeResponseValue;
9767 }
9768         // bool CResult_NetworkGraphDecodeErrorZ_is_ok(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR o);
9769 /* @internal */
9770 export function CResult_NetworkGraphDecodeErrorZ_is_ok(o: number): boolean {
9771         if(!isWasmInitialized) {
9772                 throw new Error("initializeWasm() must be awaited first!");
9773         }
9774         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_is_ok(o);
9775         return nativeResponseValue;
9776 }
9777         // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res);
9778 /* @internal */
9779 export function CResult_NetworkGraphDecodeErrorZ_free(_res: number): void {
9780         if(!isWasmInitialized) {
9781                 throw new Error("initializeWasm() must be awaited first!");
9782         }
9783         const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_free(_res);
9784         // debug statements here
9785 }
9786         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_some(struct LDKCVec_NetAddressZ o);
9787 /* @internal */
9788 export function COption_CVec_NetAddressZZ_some(o: number): number {
9789         if(!isWasmInitialized) {
9790                 throw new Error("initializeWasm() must be awaited first!");
9791         }
9792         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_some(o);
9793         return nativeResponseValue;
9794 }
9795         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_none(void);
9796 /* @internal */
9797 export function COption_CVec_NetAddressZZ_none(): number {
9798         if(!isWasmInitialized) {
9799                 throw new Error("initializeWasm() must be awaited first!");
9800         }
9801         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_none();
9802         return nativeResponseValue;
9803 }
9804         // void COption_CVec_NetAddressZZ_free(struct LDKCOption_CVec_NetAddressZZ _res);
9805 /* @internal */
9806 export function COption_CVec_NetAddressZZ_free(_res: number): void {
9807         if(!isWasmInitialized) {
9808                 throw new Error("initializeWasm() must be awaited first!");
9809         }
9810         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_free(_res);
9811         // debug statements here
9812 }
9813         // uintptr_t COption_CVec_NetAddressZZ_clone_ptr(LDKCOption_CVec_NetAddressZZ *NONNULL_PTR arg);
9814 /* @internal */
9815 export function COption_CVec_NetAddressZZ_clone_ptr(arg: number): number {
9816         if(!isWasmInitialized) {
9817                 throw new Error("initializeWasm() must be awaited first!");
9818         }
9819         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_clone_ptr(arg);
9820         return nativeResponseValue;
9821 }
9822         // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_clone(const struct LDKCOption_CVec_NetAddressZZ *NONNULL_PTR orig);
9823 /* @internal */
9824 export function COption_CVec_NetAddressZZ_clone(orig: number): number {
9825         if(!isWasmInitialized) {
9826                 throw new Error("initializeWasm() must be awaited first!");
9827         }
9828         const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_clone(orig);
9829         return nativeResponseValue;
9830 }
9831         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKDelayedPaymentOutputDescriptor o);
9832 /* @internal */
9833 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(o: number): number {
9834         if(!isWasmInitialized) {
9835                 throw new Error("initializeWasm() must be awaited first!");
9836         }
9837         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(o);
9838         return nativeResponseValue;
9839 }
9840         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
9841 /* @internal */
9842 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(e: number): number {
9843         if(!isWasmInitialized) {
9844                 throw new Error("initializeWasm() must be awaited first!");
9845         }
9846         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(e);
9847         return nativeResponseValue;
9848 }
9849         // bool CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
9850 /* @internal */
9851 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(o: number): boolean {
9852         if(!isWasmInitialized) {
9853                 throw new Error("initializeWasm() must be awaited first!");
9854         }
9855         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(o);
9856         return nativeResponseValue;
9857 }
9858         // void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ _res);
9859 /* @internal */
9860 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(_res: number): void {
9861         if(!isWasmInitialized) {
9862                 throw new Error("initializeWasm() must be awaited first!");
9863         }
9864         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(_res);
9865         // debug statements here
9866 }
9867         // uintptr_t CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
9868 /* @internal */
9869 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg: number): number {
9870         if(!isWasmInitialized) {
9871                 throw new Error("initializeWasm() must be awaited first!");
9872         }
9873         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg);
9874         return nativeResponseValue;
9875 }
9876         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
9877 /* @internal */
9878 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(orig: number): number {
9879         if(!isWasmInitialized) {
9880                 throw new Error("initializeWasm() must be awaited first!");
9881         }
9882         const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(orig);
9883         return nativeResponseValue;
9884 }
9885         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKStaticPaymentOutputDescriptor o);
9886 /* @internal */
9887 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(o: number): number {
9888         if(!isWasmInitialized) {
9889                 throw new Error("initializeWasm() must be awaited first!");
9890         }
9891         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(o);
9892         return nativeResponseValue;
9893 }
9894         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
9895 /* @internal */
9896 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(e: number): number {
9897         if(!isWasmInitialized) {
9898                 throw new Error("initializeWasm() must be awaited first!");
9899         }
9900         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(e);
9901         return nativeResponseValue;
9902 }
9903         // bool CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
9904 /* @internal */
9905 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(o: number): boolean {
9906         if(!isWasmInitialized) {
9907                 throw new Error("initializeWasm() must be awaited first!");
9908         }
9909         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(o);
9910         return nativeResponseValue;
9911 }
9912         // void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ _res);
9913 /* @internal */
9914 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(_res: number): void {
9915         if(!isWasmInitialized) {
9916                 throw new Error("initializeWasm() must be awaited first!");
9917         }
9918         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(_res);
9919         // debug statements here
9920 }
9921         // uintptr_t CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
9922 /* @internal */
9923 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg: number): number {
9924         if(!isWasmInitialized) {
9925                 throw new Error("initializeWasm() must be awaited first!");
9926         }
9927         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg);
9928         return nativeResponseValue;
9929 }
9930         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
9931 /* @internal */
9932 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(orig: number): number {
9933         if(!isWasmInitialized) {
9934                 throw new Error("initializeWasm() must be awaited first!");
9935         }
9936         const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(orig);
9937         return nativeResponseValue;
9938 }
9939         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o);
9940 /* @internal */
9941 export function CResult_SpendableOutputDescriptorDecodeErrorZ_ok(o: number): number {
9942         if(!isWasmInitialized) {
9943                 throw new Error("initializeWasm() must be awaited first!");
9944         }
9945         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_ok(o);
9946         return nativeResponseValue;
9947 }
9948         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
9949 /* @internal */
9950 export function CResult_SpendableOutputDescriptorDecodeErrorZ_err(e: number): number {
9951         if(!isWasmInitialized) {
9952                 throw new Error("initializeWasm() must be awaited first!");
9953         }
9954         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_err(e);
9955         return nativeResponseValue;
9956 }
9957         // bool CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
9958 /* @internal */
9959 export function CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(o: number): boolean {
9960         if(!isWasmInitialized) {
9961                 throw new Error("initializeWasm() must be awaited first!");
9962         }
9963         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(o);
9964         return nativeResponseValue;
9965 }
9966         // void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ _res);
9967 /* @internal */
9968 export function CResult_SpendableOutputDescriptorDecodeErrorZ_free(_res: number): void {
9969         if(!isWasmInitialized) {
9970                 throw new Error("initializeWasm() must be awaited first!");
9971         }
9972         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_free(_res);
9973         // debug statements here
9974 }
9975         // uintptr_t CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
9976 /* @internal */
9977 export function CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(arg: number): number {
9978         if(!isWasmInitialized) {
9979                 throw new Error("initializeWasm() must be awaited first!");
9980         }
9981         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(arg);
9982         return nativeResponseValue;
9983 }
9984         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
9985 /* @internal */
9986 export function CResult_SpendableOutputDescriptorDecodeErrorZ_clone(orig: number): number {
9987         if(!isWasmInitialized) {
9988                 throw new Error("initializeWasm() must be awaited first!");
9989         }
9990         const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_clone(orig);
9991         return nativeResponseValue;
9992 }
9993         // void CVec_PaymentPreimageZ_free(struct LDKCVec_PaymentPreimageZ _res);
9994 /* @internal */
9995 export function CVec_PaymentPreimageZ_free(_res: number): void {
9996         if(!isWasmInitialized) {
9997                 throw new Error("initializeWasm() must be awaited first!");
9998         }
9999         const nativeResponseValue = wasm.TS_CVec_PaymentPreimageZ_free(_res);
10000         // debug statements here
10001 }
10002         // uintptr_t C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR arg);
10003 /* @internal */
10004 export function C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(arg: number): number {
10005         if(!isWasmInitialized) {
10006                 throw new Error("initializeWasm() must be awaited first!");
10007         }
10008         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(arg);
10009         return nativeResponseValue;
10010 }
10011         // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_clone(const struct LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR orig);
10012 /* @internal */
10013 export function C2Tuple_SignatureCVec_SignatureZZ_clone(orig: number): number {
10014         if(!isWasmInitialized) {
10015                 throw new Error("initializeWasm() must be awaited first!");
10016         }
10017         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_clone(orig);
10018         return nativeResponseValue;
10019 }
10020         // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_new(struct LDKSignature a, struct LDKCVec_SignatureZ b);
10021 /* @internal */
10022 export function C2Tuple_SignatureCVec_SignatureZZ_new(a: number, b: number): number {
10023         if(!isWasmInitialized) {
10024                 throw new Error("initializeWasm() must be awaited first!");
10025         }
10026         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_new(a, b);
10027         return nativeResponseValue;
10028 }
10029         // void C2Tuple_SignatureCVec_SignatureZZ_free(struct LDKC2Tuple_SignatureCVec_SignatureZZ _res);
10030 /* @internal */
10031 export function C2Tuple_SignatureCVec_SignatureZZ_free(_res: number): void {
10032         if(!isWasmInitialized) {
10033                 throw new Error("initializeWasm() must be awaited first!");
10034         }
10035         const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_free(_res);
10036         // debug statements here
10037 }
10038         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(struct LDKC2Tuple_SignatureCVec_SignatureZZ o);
10039 /* @internal */
10040 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(o: number): number {
10041         if(!isWasmInitialized) {
10042                 throw new Error("initializeWasm() must be awaited first!");
10043         }
10044         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(o);
10045         return nativeResponseValue;
10046 }
10047         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(void);
10048 /* @internal */
10049 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(): number {
10050         if(!isWasmInitialized) {
10051                 throw new Error("initializeWasm() must be awaited first!");
10052         }
10053         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err();
10054         return nativeResponseValue;
10055 }
10056         // bool CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR o);
10057 /* @internal */
10058 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(o: number): boolean {
10059         if(!isWasmInitialized) {
10060                 throw new Error("initializeWasm() must be awaited first!");
10061         }
10062         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(o);
10063         return nativeResponseValue;
10064 }
10065         // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ _res);
10066 /* @internal */
10067 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(_res: number): void {
10068         if(!isWasmInitialized) {
10069                 throw new Error("initializeWasm() must be awaited first!");
10070         }
10071         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(_res);
10072         // debug statements here
10073 }
10074         // uintptr_t CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR arg);
10075 /* @internal */
10076 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(arg: number): number {
10077         if(!isWasmInitialized) {
10078                 throw new Error("initializeWasm() must be awaited first!");
10079         }
10080         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(arg);
10081         return nativeResponseValue;
10082 }
10083         // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR orig);
10084 /* @internal */
10085 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(orig: number): number {
10086         if(!isWasmInitialized) {
10087                 throw new Error("initializeWasm() must be awaited first!");
10088         }
10089         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(orig);
10090         return nativeResponseValue;
10091 }
10092         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_ok(struct LDKSignature o);
10093 /* @internal */
10094 export function CResult_SignatureNoneZ_ok(o: number): number {
10095         if(!isWasmInitialized) {
10096                 throw new Error("initializeWasm() must be awaited first!");
10097         }
10098         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_ok(o);
10099         return nativeResponseValue;
10100 }
10101         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_err(void);
10102 /* @internal */
10103 export function CResult_SignatureNoneZ_err(): number {
10104         if(!isWasmInitialized) {
10105                 throw new Error("initializeWasm() must be awaited first!");
10106         }
10107         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_err();
10108         return nativeResponseValue;
10109 }
10110         // bool CResult_SignatureNoneZ_is_ok(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR o);
10111 /* @internal */
10112 export function CResult_SignatureNoneZ_is_ok(o: number): boolean {
10113         if(!isWasmInitialized) {
10114                 throw new Error("initializeWasm() must be awaited first!");
10115         }
10116         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_is_ok(o);
10117         return nativeResponseValue;
10118 }
10119         // void CResult_SignatureNoneZ_free(struct LDKCResult_SignatureNoneZ _res);
10120 /* @internal */
10121 export function CResult_SignatureNoneZ_free(_res: number): void {
10122         if(!isWasmInitialized) {
10123                 throw new Error("initializeWasm() must be awaited first!");
10124         }
10125         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_free(_res);
10126         // debug statements here
10127 }
10128         // uintptr_t CResult_SignatureNoneZ_clone_ptr(LDKCResult_SignatureNoneZ *NONNULL_PTR arg);
10129 /* @internal */
10130 export function CResult_SignatureNoneZ_clone_ptr(arg: number): number {
10131         if(!isWasmInitialized) {
10132                 throw new Error("initializeWasm() must be awaited first!");
10133         }
10134         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_clone_ptr(arg);
10135         return nativeResponseValue;
10136 }
10137         // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_clone(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR orig);
10138 /* @internal */
10139 export function CResult_SignatureNoneZ_clone(orig: number): number {
10140         if(!isWasmInitialized) {
10141                 throw new Error("initializeWasm() must be awaited first!");
10142         }
10143         const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_clone(orig);
10144         return nativeResponseValue;
10145 }
10146         // uintptr_t C2Tuple_SignatureSignatureZ_clone_ptr(LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR arg);
10147 /* @internal */
10148 export function C2Tuple_SignatureSignatureZ_clone_ptr(arg: number): number {
10149         if(!isWasmInitialized) {
10150                 throw new Error("initializeWasm() must be awaited first!");
10151         }
10152         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_clone_ptr(arg);
10153         return nativeResponseValue;
10154 }
10155         // struct LDKC2Tuple_SignatureSignatureZ C2Tuple_SignatureSignatureZ_clone(const struct LDKC2Tuple_SignatureSignatureZ *NONNULL_PTR orig);
10156 /* @internal */
10157 export function C2Tuple_SignatureSignatureZ_clone(orig: number): number {
10158         if(!isWasmInitialized) {
10159                 throw new Error("initializeWasm() must be awaited first!");
10160         }
10161         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_clone(orig);
10162         return nativeResponseValue;
10163 }
10164         // struct LDKC2Tuple_SignatureSignatureZ C2Tuple_SignatureSignatureZ_new(struct LDKSignature a, struct LDKSignature b);
10165 /* @internal */
10166 export function C2Tuple_SignatureSignatureZ_new(a: number, b: number): number {
10167         if(!isWasmInitialized) {
10168                 throw new Error("initializeWasm() must be awaited first!");
10169         }
10170         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_new(a, b);
10171         return nativeResponseValue;
10172 }
10173         // void C2Tuple_SignatureSignatureZ_free(struct LDKC2Tuple_SignatureSignatureZ _res);
10174 /* @internal */
10175 export function C2Tuple_SignatureSignatureZ_free(_res: number): void {
10176         if(!isWasmInitialized) {
10177                 throw new Error("initializeWasm() must be awaited first!");
10178         }
10179         const nativeResponseValue = wasm.TS_C2Tuple_SignatureSignatureZ_free(_res);
10180         // debug statements here
10181 }
10182         // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_ok(struct LDKC2Tuple_SignatureSignatureZ o);
10183 /* @internal */
10184 export function CResult_C2Tuple_SignatureSignatureZNoneZ_ok(o: number): number {
10185         if(!isWasmInitialized) {
10186                 throw new Error("initializeWasm() must be awaited first!");
10187         }
10188         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_ok(o);
10189         return nativeResponseValue;
10190 }
10191         // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_err(void);
10192 /* @internal */
10193 export function CResult_C2Tuple_SignatureSignatureZNoneZ_err(): number {
10194         if(!isWasmInitialized) {
10195                 throw new Error("initializeWasm() must be awaited first!");
10196         }
10197         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_err();
10198         return nativeResponseValue;
10199 }
10200         // bool CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR o);
10201 /* @internal */
10202 export function CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(o: number): boolean {
10203         if(!isWasmInitialized) {
10204                 throw new Error("initializeWasm() must be awaited first!");
10205         }
10206         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_is_ok(o);
10207         return nativeResponseValue;
10208 }
10209         // void CResult_C2Tuple_SignatureSignatureZNoneZ_free(struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ _res);
10210 /* @internal */
10211 export function CResult_C2Tuple_SignatureSignatureZNoneZ_free(_res: number): void {
10212         if(!isWasmInitialized) {
10213                 throw new Error("initializeWasm() must be awaited first!");
10214         }
10215         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_free(_res);
10216         // debug statements here
10217 }
10218         // uintptr_t CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR arg);
10219 /* @internal */
10220 export function CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(arg: number): number {
10221         if(!isWasmInitialized) {
10222                 throw new Error("initializeWasm() must be awaited first!");
10223         }
10224         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_clone_ptr(arg);
10225         return nativeResponseValue;
10226 }
10227         // struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ CResult_C2Tuple_SignatureSignatureZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureSignatureZNoneZ *NONNULL_PTR orig);
10228 /* @internal */
10229 export function CResult_C2Tuple_SignatureSignatureZNoneZ_clone(orig: number): number {
10230         if(!isWasmInitialized) {
10231                 throw new Error("initializeWasm() must be awaited first!");
10232         }
10233         const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureSignatureZNoneZ_clone(orig);
10234         return nativeResponseValue;
10235 }
10236         // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_ok(struct LDKSecretKey o);
10237 /* @internal */
10238 export function CResult_SecretKeyNoneZ_ok(o: number): number {
10239         if(!isWasmInitialized) {
10240                 throw new Error("initializeWasm() must be awaited first!");
10241         }
10242         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_ok(o);
10243         return nativeResponseValue;
10244 }
10245         // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_err(void);
10246 /* @internal */
10247 export function CResult_SecretKeyNoneZ_err(): number {
10248         if(!isWasmInitialized) {
10249                 throw new Error("initializeWasm() must be awaited first!");
10250         }
10251         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_err();
10252         return nativeResponseValue;
10253 }
10254         // bool CResult_SecretKeyNoneZ_is_ok(const struct LDKCResult_SecretKeyNoneZ *NONNULL_PTR o);
10255 /* @internal */
10256 export function CResult_SecretKeyNoneZ_is_ok(o: number): boolean {
10257         if(!isWasmInitialized) {
10258                 throw new Error("initializeWasm() must be awaited first!");
10259         }
10260         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_is_ok(o);
10261         return nativeResponseValue;
10262 }
10263         // void CResult_SecretKeyNoneZ_free(struct LDKCResult_SecretKeyNoneZ _res);
10264 /* @internal */
10265 export function CResult_SecretKeyNoneZ_free(_res: number): void {
10266         if(!isWasmInitialized) {
10267                 throw new Error("initializeWasm() must be awaited first!");
10268         }
10269         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_free(_res);
10270         // debug statements here
10271 }
10272         // uintptr_t CResult_SecretKeyNoneZ_clone_ptr(LDKCResult_SecretKeyNoneZ *NONNULL_PTR arg);
10273 /* @internal */
10274 export function CResult_SecretKeyNoneZ_clone_ptr(arg: number): number {
10275         if(!isWasmInitialized) {
10276                 throw new Error("initializeWasm() must be awaited first!");
10277         }
10278         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_clone_ptr(arg);
10279         return nativeResponseValue;
10280 }
10281         // struct LDKCResult_SecretKeyNoneZ CResult_SecretKeyNoneZ_clone(const struct LDKCResult_SecretKeyNoneZ *NONNULL_PTR orig);
10282 /* @internal */
10283 export function CResult_SecretKeyNoneZ_clone(orig: number): number {
10284         if(!isWasmInitialized) {
10285                 throw new Error("initializeWasm() must be awaited first!");
10286         }
10287         const nativeResponseValue = wasm.TS_CResult_SecretKeyNoneZ_clone(orig);
10288         return nativeResponseValue;
10289 }
10290         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_ok(struct LDKSign o);
10291 /* @internal */
10292 export function CResult_SignDecodeErrorZ_ok(o: number): number {
10293         if(!isWasmInitialized) {
10294                 throw new Error("initializeWasm() must be awaited first!");
10295         }
10296         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_ok(o);
10297         return nativeResponseValue;
10298 }
10299         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_err(struct LDKDecodeError e);
10300 /* @internal */
10301 export function CResult_SignDecodeErrorZ_err(e: number): number {
10302         if(!isWasmInitialized) {
10303                 throw new Error("initializeWasm() must be awaited first!");
10304         }
10305         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_err(e);
10306         return nativeResponseValue;
10307 }
10308         // bool CResult_SignDecodeErrorZ_is_ok(const struct LDKCResult_SignDecodeErrorZ *NONNULL_PTR o);
10309 /* @internal */
10310 export function CResult_SignDecodeErrorZ_is_ok(o: number): boolean {
10311         if(!isWasmInitialized) {
10312                 throw new Error("initializeWasm() must be awaited first!");
10313         }
10314         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_is_ok(o);
10315         return nativeResponseValue;
10316 }
10317         // void CResult_SignDecodeErrorZ_free(struct LDKCResult_SignDecodeErrorZ _res);
10318 /* @internal */
10319 export function CResult_SignDecodeErrorZ_free(_res: number): void {
10320         if(!isWasmInitialized) {
10321                 throw new Error("initializeWasm() must be awaited first!");
10322         }
10323         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_free(_res);
10324         // debug statements here
10325 }
10326         // uintptr_t CResult_SignDecodeErrorZ_clone_ptr(LDKCResult_SignDecodeErrorZ *NONNULL_PTR arg);
10327 /* @internal */
10328 export function CResult_SignDecodeErrorZ_clone_ptr(arg: number): number {
10329         if(!isWasmInitialized) {
10330                 throw new Error("initializeWasm() must be awaited first!");
10331         }
10332         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_clone_ptr(arg);
10333         return nativeResponseValue;
10334 }
10335         // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_clone(const struct LDKCResult_SignDecodeErrorZ *NONNULL_PTR orig);
10336 /* @internal */
10337 export function CResult_SignDecodeErrorZ_clone(orig: number): number {
10338         if(!isWasmInitialized) {
10339                 throw new Error("initializeWasm() must be awaited first!");
10340         }
10341         const nativeResponseValue = wasm.TS_CResult_SignDecodeErrorZ_clone(orig);
10342         return nativeResponseValue;
10343 }
10344         // void CVec_u5Z_free(struct LDKCVec_u5Z _res);
10345 /* @internal */
10346 export function CVec_u5Z_free(_res: number): void {
10347         if(!isWasmInitialized) {
10348                 throw new Error("initializeWasm() must be awaited first!");
10349         }
10350         const nativeResponseValue = wasm.TS_CVec_u5Z_free(_res);
10351         // debug statements here
10352 }
10353         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o);
10354 /* @internal */
10355 export function CResult_RecoverableSignatureNoneZ_ok(o: number): number {
10356         if(!isWasmInitialized) {
10357                 throw new Error("initializeWasm() must be awaited first!");
10358         }
10359         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_ok(o);
10360         return nativeResponseValue;
10361 }
10362         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void);
10363 /* @internal */
10364 export function CResult_RecoverableSignatureNoneZ_err(): number {
10365         if(!isWasmInitialized) {
10366                 throw new Error("initializeWasm() must be awaited first!");
10367         }
10368         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_err();
10369         return nativeResponseValue;
10370 }
10371         // bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o);
10372 /* @internal */
10373 export function CResult_RecoverableSignatureNoneZ_is_ok(o: number): boolean {
10374         if(!isWasmInitialized) {
10375                 throw new Error("initializeWasm() must be awaited first!");
10376         }
10377         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_is_ok(o);
10378         return nativeResponseValue;
10379 }
10380         // void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res);
10381 /* @internal */
10382 export function CResult_RecoverableSignatureNoneZ_free(_res: number): void {
10383         if(!isWasmInitialized) {
10384                 throw new Error("initializeWasm() must be awaited first!");
10385         }
10386         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_free(_res);
10387         // debug statements here
10388 }
10389         // uintptr_t CResult_RecoverableSignatureNoneZ_clone_ptr(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR arg);
10390 /* @internal */
10391 export function CResult_RecoverableSignatureNoneZ_clone_ptr(arg: number): number {
10392         if(!isWasmInitialized) {
10393                 throw new Error("initializeWasm() must be awaited first!");
10394         }
10395         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_clone_ptr(arg);
10396         return nativeResponseValue;
10397 }
10398         // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig);
10399 /* @internal */
10400 export function CResult_RecoverableSignatureNoneZ_clone(orig: number): number {
10401         if(!isWasmInitialized) {
10402                 throw new Error("initializeWasm() must be awaited first!");
10403         }
10404         const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_clone(orig);
10405         return nativeResponseValue;
10406 }
10407         // void CVec_u8Z_free(struct LDKCVec_u8Z _res);
10408 /* @internal */
10409 export function CVec_u8Z_free(_res: number): void {
10410         if(!isWasmInitialized) {
10411                 throw new Error("initializeWasm() must be awaited first!");
10412         }
10413         const nativeResponseValue = wasm.TS_CVec_u8Z_free(_res);
10414         // debug statements here
10415 }
10416         // void CVec_CVec_u8ZZ_free(struct LDKCVec_CVec_u8ZZ _res);
10417 /* @internal */
10418 export function CVec_CVec_u8ZZ_free(_res: number): void {
10419         if(!isWasmInitialized) {
10420                 throw new Error("initializeWasm() must be awaited first!");
10421         }
10422         const nativeResponseValue = wasm.TS_CVec_CVec_u8ZZ_free(_res);
10423         // debug statements here
10424 }
10425         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_ok(struct LDKCVec_CVec_u8ZZ o);
10426 /* @internal */
10427 export function CResult_CVec_CVec_u8ZZNoneZ_ok(o: number): number {
10428         if(!isWasmInitialized) {
10429                 throw new Error("initializeWasm() must be awaited first!");
10430         }
10431         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_ok(o);
10432         return nativeResponseValue;
10433 }
10434         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_err(void);
10435 /* @internal */
10436 export function CResult_CVec_CVec_u8ZZNoneZ_err(): number {
10437         if(!isWasmInitialized) {
10438                 throw new Error("initializeWasm() must be awaited first!");
10439         }
10440         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_err();
10441         return nativeResponseValue;
10442 }
10443         // bool CResult_CVec_CVec_u8ZZNoneZ_is_ok(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR o);
10444 /* @internal */
10445 export function CResult_CVec_CVec_u8ZZNoneZ_is_ok(o: number): boolean {
10446         if(!isWasmInitialized) {
10447                 throw new Error("initializeWasm() must be awaited first!");
10448         }
10449         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_is_ok(o);
10450         return nativeResponseValue;
10451 }
10452         // void CResult_CVec_CVec_u8ZZNoneZ_free(struct LDKCResult_CVec_CVec_u8ZZNoneZ _res);
10453 /* @internal */
10454 export function CResult_CVec_CVec_u8ZZNoneZ_free(_res: number): void {
10455         if(!isWasmInitialized) {
10456                 throw new Error("initializeWasm() must be awaited first!");
10457         }
10458         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_free(_res);
10459         // debug statements here
10460 }
10461         // uintptr_t CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR arg);
10462 /* @internal */
10463 export function CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(arg: number): number {
10464         if(!isWasmInitialized) {
10465                 throw new Error("initializeWasm() must be awaited first!");
10466         }
10467         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(arg);
10468         return nativeResponseValue;
10469 }
10470         // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_clone(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR orig);
10471 /* @internal */
10472 export function CResult_CVec_CVec_u8ZZNoneZ_clone(orig: number): number {
10473         if(!isWasmInitialized) {
10474                 throw new Error("initializeWasm() must be awaited first!");
10475         }
10476         const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_clone(orig);
10477         return nativeResponseValue;
10478 }
10479         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_ok(struct LDKInMemorySigner o);
10480 /* @internal */
10481 export function CResult_InMemorySignerDecodeErrorZ_ok(o: number): number {
10482         if(!isWasmInitialized) {
10483                 throw new Error("initializeWasm() must be awaited first!");
10484         }
10485         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_ok(o);
10486         return nativeResponseValue;
10487 }
10488         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_err(struct LDKDecodeError e);
10489 /* @internal */
10490 export function CResult_InMemorySignerDecodeErrorZ_err(e: number): number {
10491         if(!isWasmInitialized) {
10492                 throw new Error("initializeWasm() must be awaited first!");
10493         }
10494         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_err(e);
10495         return nativeResponseValue;
10496 }
10497         // bool CResult_InMemorySignerDecodeErrorZ_is_ok(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR o);
10498 /* @internal */
10499 export function CResult_InMemorySignerDecodeErrorZ_is_ok(o: number): boolean {
10500         if(!isWasmInitialized) {
10501                 throw new Error("initializeWasm() must be awaited first!");
10502         }
10503         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_is_ok(o);
10504         return nativeResponseValue;
10505 }
10506         // void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDecodeErrorZ _res);
10507 /* @internal */
10508 export function CResult_InMemorySignerDecodeErrorZ_free(_res: number): void {
10509         if(!isWasmInitialized) {
10510                 throw new Error("initializeWasm() must be awaited first!");
10511         }
10512         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_free(_res);
10513         // debug statements here
10514 }
10515         // uintptr_t CResult_InMemorySignerDecodeErrorZ_clone_ptr(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR arg);
10516 /* @internal */
10517 export function CResult_InMemorySignerDecodeErrorZ_clone_ptr(arg: number): number {
10518         if(!isWasmInitialized) {
10519                 throw new Error("initializeWasm() must be awaited first!");
10520         }
10521         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_clone_ptr(arg);
10522         return nativeResponseValue;
10523 }
10524         // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig);
10525 /* @internal */
10526 export function CResult_InMemorySignerDecodeErrorZ_clone(orig: number): number {
10527         if(!isWasmInitialized) {
10528                 throw new Error("initializeWasm() must be awaited first!");
10529         }
10530         const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_clone(orig);
10531         return nativeResponseValue;
10532 }
10533         // void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res);
10534 /* @internal */
10535 export function CVec_TxOutZ_free(_res: number): void {
10536         if(!isWasmInitialized) {
10537                 throw new Error("initializeWasm() must be awaited first!");
10538         }
10539         const nativeResponseValue = wasm.TS_CVec_TxOutZ_free(_res);
10540         // debug statements here
10541 }
10542         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o);
10543 /* @internal */
10544 export function CResult_TransactionNoneZ_ok(o: number): number {
10545         if(!isWasmInitialized) {
10546                 throw new Error("initializeWasm() must be awaited first!");
10547         }
10548         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_ok(o);
10549         return nativeResponseValue;
10550 }
10551         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void);
10552 /* @internal */
10553 export function CResult_TransactionNoneZ_err(): number {
10554         if(!isWasmInitialized) {
10555                 throw new Error("initializeWasm() must be awaited first!");
10556         }
10557         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_err();
10558         return nativeResponseValue;
10559 }
10560         // bool CResult_TransactionNoneZ_is_ok(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR o);
10561 /* @internal */
10562 export function CResult_TransactionNoneZ_is_ok(o: number): boolean {
10563         if(!isWasmInitialized) {
10564                 throw new Error("initializeWasm() must be awaited first!");
10565         }
10566         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_is_ok(o);
10567         return nativeResponseValue;
10568 }
10569         // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res);
10570 /* @internal */
10571 export function CResult_TransactionNoneZ_free(_res: number): void {
10572         if(!isWasmInitialized) {
10573                 throw new Error("initializeWasm() must be awaited first!");
10574         }
10575         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_free(_res);
10576         // debug statements here
10577 }
10578         // uintptr_t CResult_TransactionNoneZ_clone_ptr(LDKCResult_TransactionNoneZ *NONNULL_PTR arg);
10579 /* @internal */
10580 export function CResult_TransactionNoneZ_clone_ptr(arg: number): number {
10581         if(!isWasmInitialized) {
10582                 throw new Error("initializeWasm() must be awaited first!");
10583         }
10584         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_clone_ptr(arg);
10585         return nativeResponseValue;
10586 }
10587         // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_clone(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR orig);
10588 /* @internal */
10589 export function CResult_TransactionNoneZ_clone(orig: number): number {
10590         if(!isWasmInitialized) {
10591                 throw new Error("initializeWasm() must be awaited first!");
10592         }
10593         const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_clone(orig);
10594         return nativeResponseValue;
10595 }
10596         // struct LDKCOption_u16Z COption_u16Z_some(uint16_t o);
10597 /* @internal */
10598 export function COption_u16Z_some(o: number): number {
10599         if(!isWasmInitialized) {
10600                 throw new Error("initializeWasm() must be awaited first!");
10601         }
10602         const nativeResponseValue = wasm.TS_COption_u16Z_some(o);
10603         return nativeResponseValue;
10604 }
10605         // struct LDKCOption_u16Z COption_u16Z_none(void);
10606 /* @internal */
10607 export function COption_u16Z_none(): number {
10608         if(!isWasmInitialized) {
10609                 throw new Error("initializeWasm() must be awaited first!");
10610         }
10611         const nativeResponseValue = wasm.TS_COption_u16Z_none();
10612         return nativeResponseValue;
10613 }
10614         // void COption_u16Z_free(struct LDKCOption_u16Z _res);
10615 /* @internal */
10616 export function COption_u16Z_free(_res: number): void {
10617         if(!isWasmInitialized) {
10618                 throw new Error("initializeWasm() must be awaited first!");
10619         }
10620         const nativeResponseValue = wasm.TS_COption_u16Z_free(_res);
10621         // debug statements here
10622 }
10623         // uintptr_t COption_u16Z_clone_ptr(LDKCOption_u16Z *NONNULL_PTR arg);
10624 /* @internal */
10625 export function COption_u16Z_clone_ptr(arg: number): number {
10626         if(!isWasmInitialized) {
10627                 throw new Error("initializeWasm() must be awaited first!");
10628         }
10629         const nativeResponseValue = wasm.TS_COption_u16Z_clone_ptr(arg);
10630         return nativeResponseValue;
10631 }
10632         // struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig);
10633 /* @internal */
10634 export function COption_u16Z_clone(orig: number): number {
10635         if(!isWasmInitialized) {
10636                 throw new Error("initializeWasm() must be awaited first!");
10637         }
10638         const nativeResponseValue = wasm.TS_COption_u16Z_clone(orig);
10639         return nativeResponseValue;
10640 }
10641         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_ok(void);
10642 /* @internal */
10643 export function CResult_NoneAPIErrorZ_ok(): number {
10644         if(!isWasmInitialized) {
10645                 throw new Error("initializeWasm() must be awaited first!");
10646         }
10647         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_ok();
10648         return nativeResponseValue;
10649 }
10650         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_err(struct LDKAPIError e);
10651 /* @internal */
10652 export function CResult_NoneAPIErrorZ_err(e: number): number {
10653         if(!isWasmInitialized) {
10654                 throw new Error("initializeWasm() must be awaited first!");
10655         }
10656         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_err(e);
10657         return nativeResponseValue;
10658 }
10659         // bool CResult_NoneAPIErrorZ_is_ok(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR o);
10660 /* @internal */
10661 export function CResult_NoneAPIErrorZ_is_ok(o: number): boolean {
10662         if(!isWasmInitialized) {
10663                 throw new Error("initializeWasm() must be awaited first!");
10664         }
10665         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_is_ok(o);
10666         return nativeResponseValue;
10667 }
10668         // void CResult_NoneAPIErrorZ_free(struct LDKCResult_NoneAPIErrorZ _res);
10669 /* @internal */
10670 export function CResult_NoneAPIErrorZ_free(_res: number): void {
10671         if(!isWasmInitialized) {
10672                 throw new Error("initializeWasm() must be awaited first!");
10673         }
10674         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_free(_res);
10675         // debug statements here
10676 }
10677         // uintptr_t CResult_NoneAPIErrorZ_clone_ptr(LDKCResult_NoneAPIErrorZ *NONNULL_PTR arg);
10678 /* @internal */
10679 export function CResult_NoneAPIErrorZ_clone_ptr(arg: number): number {
10680         if(!isWasmInitialized) {
10681                 throw new Error("initializeWasm() must be awaited first!");
10682         }
10683         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_clone_ptr(arg);
10684         return nativeResponseValue;
10685 }
10686         // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_clone(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR orig);
10687 /* @internal */
10688 export function CResult_NoneAPIErrorZ_clone(orig: number): number {
10689         if(!isWasmInitialized) {
10690                 throw new Error("initializeWasm() must be awaited first!");
10691         }
10692         const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_clone(orig);
10693         return nativeResponseValue;
10694 }
10695         // void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res);
10696 /* @internal */
10697 export function CVec_CResult_NoneAPIErrorZZ_free(_res: number): void {
10698         if(!isWasmInitialized) {
10699                 throw new Error("initializeWasm() must be awaited first!");
10700         }
10701         const nativeResponseValue = wasm.TS_CVec_CResult_NoneAPIErrorZZ_free(_res);
10702         // debug statements here
10703 }
10704         // void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res);
10705 /* @internal */
10706 export function CVec_APIErrorZ_free(_res: number): void {
10707         if(!isWasmInitialized) {
10708                 throw new Error("initializeWasm() must be awaited first!");
10709         }
10710         const nativeResponseValue = wasm.TS_CVec_APIErrorZ_free(_res);
10711         // debug statements here
10712 }
10713         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_ok(struct LDKThirtyTwoBytes o);
10714 /* @internal */
10715 export function CResult__u832APIErrorZ_ok(o: number): number {
10716         if(!isWasmInitialized) {
10717                 throw new Error("initializeWasm() must be awaited first!");
10718         }
10719         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_ok(o);
10720         return nativeResponseValue;
10721 }
10722         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_err(struct LDKAPIError e);
10723 /* @internal */
10724 export function CResult__u832APIErrorZ_err(e: number): number {
10725         if(!isWasmInitialized) {
10726                 throw new Error("initializeWasm() must be awaited first!");
10727         }
10728         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_err(e);
10729         return nativeResponseValue;
10730 }
10731         // bool CResult__u832APIErrorZ_is_ok(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR o);
10732 /* @internal */
10733 export function CResult__u832APIErrorZ_is_ok(o: number): boolean {
10734         if(!isWasmInitialized) {
10735                 throw new Error("initializeWasm() must be awaited first!");
10736         }
10737         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_is_ok(o);
10738         return nativeResponseValue;
10739 }
10740         // void CResult__u832APIErrorZ_free(struct LDKCResult__u832APIErrorZ _res);
10741 /* @internal */
10742 export function CResult__u832APIErrorZ_free(_res: number): void {
10743         if(!isWasmInitialized) {
10744                 throw new Error("initializeWasm() must be awaited first!");
10745         }
10746         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_free(_res);
10747         // debug statements here
10748 }
10749         // uintptr_t CResult__u832APIErrorZ_clone_ptr(LDKCResult__u832APIErrorZ *NONNULL_PTR arg);
10750 /* @internal */
10751 export function CResult__u832APIErrorZ_clone_ptr(arg: number): number {
10752         if(!isWasmInitialized) {
10753                 throw new Error("initializeWasm() must be awaited first!");
10754         }
10755         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_clone_ptr(arg);
10756         return nativeResponseValue;
10757 }
10758         // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_clone(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR orig);
10759 /* @internal */
10760 export function CResult__u832APIErrorZ_clone(orig: number): number {
10761         if(!isWasmInitialized) {
10762                 throw new Error("initializeWasm() must be awaited first!");
10763         }
10764         const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_clone(orig);
10765         return nativeResponseValue;
10766 }
10767         // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o);
10768 /* @internal */
10769 export function CResult_PaymentIdPaymentSendFailureZ_ok(o: number): number {
10770         if(!isWasmInitialized) {
10771                 throw new Error("initializeWasm() must be awaited first!");
10772         }
10773         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_ok(o);
10774         return nativeResponseValue;
10775 }
10776         // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
10777 /* @internal */
10778 export function CResult_PaymentIdPaymentSendFailureZ_err(e: number): number {
10779         if(!isWasmInitialized) {
10780                 throw new Error("initializeWasm() must be awaited first!");
10781         }
10782         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_err(e);
10783         return nativeResponseValue;
10784 }
10785         // bool CResult_PaymentIdPaymentSendFailureZ_is_ok(const struct LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR o);
10786 /* @internal */
10787 export function CResult_PaymentIdPaymentSendFailureZ_is_ok(o: number): boolean {
10788         if(!isWasmInitialized) {
10789                 throw new Error("initializeWasm() must be awaited first!");
10790         }
10791         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_is_ok(o);
10792         return nativeResponseValue;
10793 }
10794         // void CResult_PaymentIdPaymentSendFailureZ_free(struct LDKCResult_PaymentIdPaymentSendFailureZ _res);
10795 /* @internal */
10796 export function CResult_PaymentIdPaymentSendFailureZ_free(_res: number): void {
10797         if(!isWasmInitialized) {
10798                 throw new Error("initializeWasm() must be awaited first!");
10799         }
10800         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_free(_res);
10801         // debug statements here
10802 }
10803         // uintptr_t CResult_PaymentIdPaymentSendFailureZ_clone_ptr(LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR arg);
10804 /* @internal */
10805 export function CResult_PaymentIdPaymentSendFailureZ_clone_ptr(arg: number): number {
10806         if(!isWasmInitialized) {
10807                 throw new Error("initializeWasm() must be awaited first!");
10808         }
10809         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_clone_ptr(arg);
10810         return nativeResponseValue;
10811 }
10812         // struct LDKCResult_PaymentIdPaymentSendFailureZ CResult_PaymentIdPaymentSendFailureZ_clone(const struct LDKCResult_PaymentIdPaymentSendFailureZ *NONNULL_PTR orig);
10813 /* @internal */
10814 export function CResult_PaymentIdPaymentSendFailureZ_clone(orig: number): number {
10815         if(!isWasmInitialized) {
10816                 throw new Error("initializeWasm() must be awaited first!");
10817         }
10818         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentSendFailureZ_clone(orig);
10819         return nativeResponseValue;
10820 }
10821         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_ok(void);
10822 /* @internal */
10823 export function CResult_NonePaymentSendFailureZ_ok(): number {
10824         if(!isWasmInitialized) {
10825                 throw new Error("initializeWasm() must be awaited first!");
10826         }
10827         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_ok();
10828         return nativeResponseValue;
10829 }
10830         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
10831 /* @internal */
10832 export function CResult_NonePaymentSendFailureZ_err(e: number): number {
10833         if(!isWasmInitialized) {
10834                 throw new Error("initializeWasm() must be awaited first!");
10835         }
10836         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_err(e);
10837         return nativeResponseValue;
10838 }
10839         // bool CResult_NonePaymentSendFailureZ_is_ok(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR o);
10840 /* @internal */
10841 export function CResult_NonePaymentSendFailureZ_is_ok(o: number): boolean {
10842         if(!isWasmInitialized) {
10843                 throw new Error("initializeWasm() must be awaited first!");
10844         }
10845         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_is_ok(o);
10846         return nativeResponseValue;
10847 }
10848         // void CResult_NonePaymentSendFailureZ_free(struct LDKCResult_NonePaymentSendFailureZ _res);
10849 /* @internal */
10850 export function CResult_NonePaymentSendFailureZ_free(_res: number): void {
10851         if(!isWasmInitialized) {
10852                 throw new Error("initializeWasm() must be awaited first!");
10853         }
10854         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_free(_res);
10855         // debug statements here
10856 }
10857         // uintptr_t CResult_NonePaymentSendFailureZ_clone_ptr(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR arg);
10858 /* @internal */
10859 export function CResult_NonePaymentSendFailureZ_clone_ptr(arg: number): number {
10860         if(!isWasmInitialized) {
10861                 throw new Error("initializeWasm() must be awaited first!");
10862         }
10863         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_clone_ptr(arg);
10864         return nativeResponseValue;
10865 }
10866         // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_clone(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR orig);
10867 /* @internal */
10868 export function CResult_NonePaymentSendFailureZ_clone(orig: number): number {
10869         if(!isWasmInitialized) {
10870                 throw new Error("initializeWasm() must be awaited first!");
10871         }
10872         const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_clone(orig);
10873         return nativeResponseValue;
10874 }
10875         // uintptr_t C2Tuple_PaymentHashPaymentIdZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR arg);
10876 /* @internal */
10877 export function C2Tuple_PaymentHashPaymentIdZ_clone_ptr(arg: number): number {
10878         if(!isWasmInitialized) {
10879                 throw new Error("initializeWasm() must be awaited first!");
10880         }
10881         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_clone_ptr(arg);
10882         return nativeResponseValue;
10883 }
10884         // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_clone(const struct LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR orig);
10885 /* @internal */
10886 export function C2Tuple_PaymentHashPaymentIdZ_clone(orig: number): number {
10887         if(!isWasmInitialized) {
10888                 throw new Error("initializeWasm() must be awaited first!");
10889         }
10890         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_clone(orig);
10891         return nativeResponseValue;
10892 }
10893         // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
10894 /* @internal */
10895 export function C2Tuple_PaymentHashPaymentIdZ_new(a: number, b: number): number {
10896         if(!isWasmInitialized) {
10897                 throw new Error("initializeWasm() must be awaited first!");
10898         }
10899         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_new(a, b);
10900         return nativeResponseValue;
10901 }
10902         // void C2Tuple_PaymentHashPaymentIdZ_free(struct LDKC2Tuple_PaymentHashPaymentIdZ _res);
10903 /* @internal */
10904 export function C2Tuple_PaymentHashPaymentIdZ_free(_res: number): void {
10905         if(!isWasmInitialized) {
10906                 throw new Error("initializeWasm() must be awaited first!");
10907         }
10908         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_free(_res);
10909         // debug statements here
10910 }
10911         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(struct LDKC2Tuple_PaymentHashPaymentIdZ o);
10912 /* @internal */
10913 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(o: number): number {
10914         if(!isWasmInitialized) {
10915                 throw new Error("initializeWasm() must be awaited first!");
10916         }
10917         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(o);
10918         return nativeResponseValue;
10919 }
10920         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
10921 /* @internal */
10922 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(e: number): number {
10923         if(!isWasmInitialized) {
10924                 throw new Error("initializeWasm() must be awaited first!");
10925         }
10926         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(e);
10927         return nativeResponseValue;
10928 }
10929         // bool CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR o);
10930 /* @internal */
10931 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(o: number): boolean {
10932         if(!isWasmInitialized) {
10933                 throw new Error("initializeWasm() must be awaited first!");
10934         }
10935         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(o);
10936         return nativeResponseValue;
10937 }
10938         // void CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ _res);
10939 /* @internal */
10940 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(_res: number): void {
10941         if(!isWasmInitialized) {
10942                 throw new Error("initializeWasm() must be awaited first!");
10943         }
10944         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(_res);
10945         // debug statements here
10946 }
10947         // uintptr_t CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR arg);
10948 /* @internal */
10949 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(arg: number): number {
10950         if(!isWasmInitialized) {
10951                 throw new Error("initializeWasm() must be awaited first!");
10952         }
10953         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(arg);
10954         return nativeResponseValue;
10955 }
10956         // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR orig);
10957 /* @internal */
10958 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(orig: number): number {
10959         if(!isWasmInitialized) {
10960                 throw new Error("initializeWasm() must be awaited first!");
10961         }
10962         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(orig);
10963         return nativeResponseValue;
10964 }
10965         // void CVec_ThirtyTwoBytesZ_free(struct LDKCVec_ThirtyTwoBytesZ _res);
10966 /* @internal */
10967 export function CVec_ThirtyTwoBytesZ_free(_res: number): void {
10968         if(!isWasmInitialized) {
10969                 throw new Error("initializeWasm() must be awaited first!");
10970         }
10971         const nativeResponseValue = wasm.TS_CVec_ThirtyTwoBytesZ_free(_res);
10972         // debug statements here
10973 }
10974         // uintptr_t C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR arg);
10975 /* @internal */
10976 export function C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(arg: number): number {
10977         if(!isWasmInitialized) {
10978                 throw new Error("initializeWasm() must be awaited first!");
10979         }
10980         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(arg);
10981         return nativeResponseValue;
10982 }
10983         // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_clone(const struct LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR orig);
10984 /* @internal */
10985 export function C2Tuple_PaymentHashPaymentSecretZ_clone(orig: number): number {
10986         if(!isWasmInitialized) {
10987                 throw new Error("initializeWasm() must be awaited first!");
10988         }
10989         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_clone(orig);
10990         return nativeResponseValue;
10991 }
10992         // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
10993 /* @internal */
10994 export function C2Tuple_PaymentHashPaymentSecretZ_new(a: number, b: number): number {
10995         if(!isWasmInitialized) {
10996                 throw new Error("initializeWasm() must be awaited first!");
10997         }
10998         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_new(a, b);
10999         return nativeResponseValue;
11000 }
11001         // void C2Tuple_PaymentHashPaymentSecretZ_free(struct LDKC2Tuple_PaymentHashPaymentSecretZ _res);
11002 /* @internal */
11003 export function C2Tuple_PaymentHashPaymentSecretZ_free(_res: number): void {
11004         if(!isWasmInitialized) {
11005                 throw new Error("initializeWasm() must be awaited first!");
11006         }
11007         const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_free(_res);
11008         // debug statements here
11009 }
11010         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
11011 /* @internal */
11012 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(o: number): number {
11013         if(!isWasmInitialized) {
11014                 throw new Error("initializeWasm() must be awaited first!");
11015         }
11016         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(o);
11017         return nativeResponseValue;
11018 }
11019         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(void);
11020 /* @internal */
11021 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(): number {
11022         if(!isWasmInitialized) {
11023                 throw new Error("initializeWasm() must be awaited first!");
11024         }
11025         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err();
11026         return nativeResponseValue;
11027 }
11028         // bool CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR o);
11029 /* @internal */
11030 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(o: number): boolean {
11031         if(!isWasmInitialized) {
11032                 throw new Error("initializeWasm() must be awaited first!");
11033         }
11034         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(o);
11035         return nativeResponseValue;
11036 }
11037         // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ _res);
11038 /* @internal */
11039 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(_res: number): void {
11040         if(!isWasmInitialized) {
11041                 throw new Error("initializeWasm() must be awaited first!");
11042         }
11043         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(_res);
11044         // debug statements here
11045 }
11046         // uintptr_t CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR arg);
11047 /* @internal */
11048 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(arg: number): number {
11049         if(!isWasmInitialized) {
11050                 throw new Error("initializeWasm() must be awaited first!");
11051         }
11052         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(arg);
11053         return nativeResponseValue;
11054 }
11055         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR orig);
11056 /* @internal */
11057 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(orig: number): number {
11058         if(!isWasmInitialized) {
11059                 throw new Error("initializeWasm() must be awaited first!");
11060         }
11061         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(orig);
11062         return nativeResponseValue;
11063 }
11064         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
11065 /* @internal */
11066 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(o: number): number {
11067         if(!isWasmInitialized) {
11068                 throw new Error("initializeWasm() must be awaited first!");
11069         }
11070         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(o);
11071         return nativeResponseValue;
11072 }
11073         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(struct LDKAPIError e);
11074 /* @internal */
11075 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(e: number): number {
11076         if(!isWasmInitialized) {
11077                 throw new Error("initializeWasm() must be awaited first!");
11078         }
11079         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(e);
11080         return nativeResponseValue;
11081 }
11082         // bool CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR o);
11083 /* @internal */
11084 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(o: number): boolean {
11085         if(!isWasmInitialized) {
11086                 throw new Error("initializeWasm() must be awaited first!");
11087         }
11088         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(o);
11089         return nativeResponseValue;
11090 }
11091         // void CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ _res);
11092 /* @internal */
11093 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(_res: number): void {
11094         if(!isWasmInitialized) {
11095                 throw new Error("initializeWasm() must be awaited first!");
11096         }
11097         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(_res);
11098         // debug statements here
11099 }
11100         // uintptr_t CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR arg);
11101 /* @internal */
11102 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(arg: number): number {
11103         if(!isWasmInitialized) {
11104                 throw new Error("initializeWasm() must be awaited first!");
11105         }
11106         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(arg);
11107         return nativeResponseValue;
11108 }
11109         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR orig);
11110 /* @internal */
11111 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(orig: number): number {
11112         if(!isWasmInitialized) {
11113                 throw new Error("initializeWasm() must be awaited first!");
11114         }
11115         const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(orig);
11116         return nativeResponseValue;
11117 }
11118         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_ok(struct LDKThirtyTwoBytes o);
11119 /* @internal */
11120 export function CResult_PaymentSecretNoneZ_ok(o: number): number {
11121         if(!isWasmInitialized) {
11122                 throw new Error("initializeWasm() must be awaited first!");
11123         }
11124         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_ok(o);
11125         return nativeResponseValue;
11126 }
11127         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_err(void);
11128 /* @internal */
11129 export function CResult_PaymentSecretNoneZ_err(): number {
11130         if(!isWasmInitialized) {
11131                 throw new Error("initializeWasm() must be awaited first!");
11132         }
11133         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_err();
11134         return nativeResponseValue;
11135 }
11136         // bool CResult_PaymentSecretNoneZ_is_ok(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR o);
11137 /* @internal */
11138 export function CResult_PaymentSecretNoneZ_is_ok(o: number): boolean {
11139         if(!isWasmInitialized) {
11140                 throw new Error("initializeWasm() must be awaited first!");
11141         }
11142         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_is_ok(o);
11143         return nativeResponseValue;
11144 }
11145         // void CResult_PaymentSecretNoneZ_free(struct LDKCResult_PaymentSecretNoneZ _res);
11146 /* @internal */
11147 export function CResult_PaymentSecretNoneZ_free(_res: number): void {
11148         if(!isWasmInitialized) {
11149                 throw new Error("initializeWasm() must be awaited first!");
11150         }
11151         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_free(_res);
11152         // debug statements here
11153 }
11154         // uintptr_t CResult_PaymentSecretNoneZ_clone_ptr(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR arg);
11155 /* @internal */
11156 export function CResult_PaymentSecretNoneZ_clone_ptr(arg: number): number {
11157         if(!isWasmInitialized) {
11158                 throw new Error("initializeWasm() must be awaited first!");
11159         }
11160         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_clone_ptr(arg);
11161         return nativeResponseValue;
11162 }
11163         // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_clone(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR orig);
11164 /* @internal */
11165 export function CResult_PaymentSecretNoneZ_clone(orig: number): number {
11166         if(!isWasmInitialized) {
11167                 throw new Error("initializeWasm() must be awaited first!");
11168         }
11169         const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_clone(orig);
11170         return nativeResponseValue;
11171 }
11172         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
11173 /* @internal */
11174 export function CResult_PaymentSecretAPIErrorZ_ok(o: number): number {
11175         if(!isWasmInitialized) {
11176                 throw new Error("initializeWasm() must be awaited first!");
11177         }
11178         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_ok(o);
11179         return nativeResponseValue;
11180 }
11181         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_err(struct LDKAPIError e);
11182 /* @internal */
11183 export function CResult_PaymentSecretAPIErrorZ_err(e: number): number {
11184         if(!isWasmInitialized) {
11185                 throw new Error("initializeWasm() must be awaited first!");
11186         }
11187         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_err(e);
11188         return nativeResponseValue;
11189 }
11190         // bool CResult_PaymentSecretAPIErrorZ_is_ok(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR o);
11191 /* @internal */
11192 export function CResult_PaymentSecretAPIErrorZ_is_ok(o: number): boolean {
11193         if(!isWasmInitialized) {
11194                 throw new Error("initializeWasm() must be awaited first!");
11195         }
11196         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_is_ok(o);
11197         return nativeResponseValue;
11198 }
11199         // void CResult_PaymentSecretAPIErrorZ_free(struct LDKCResult_PaymentSecretAPIErrorZ _res);
11200 /* @internal */
11201 export function CResult_PaymentSecretAPIErrorZ_free(_res: number): void {
11202         if(!isWasmInitialized) {
11203                 throw new Error("initializeWasm() must be awaited first!");
11204         }
11205         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_free(_res);
11206         // debug statements here
11207 }
11208         // uintptr_t CResult_PaymentSecretAPIErrorZ_clone_ptr(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR arg);
11209 /* @internal */
11210 export function CResult_PaymentSecretAPIErrorZ_clone_ptr(arg: number): number {
11211         if(!isWasmInitialized) {
11212                 throw new Error("initializeWasm() must be awaited first!");
11213         }
11214         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_clone_ptr(arg);
11215         return nativeResponseValue;
11216 }
11217         // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_clone(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR orig);
11218 /* @internal */
11219 export function CResult_PaymentSecretAPIErrorZ_clone(orig: number): number {
11220         if(!isWasmInitialized) {
11221                 throw new Error("initializeWasm() must be awaited first!");
11222         }
11223         const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_clone(orig);
11224         return nativeResponseValue;
11225 }
11226         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
11227 /* @internal */
11228 export function CResult_PaymentPreimageAPIErrorZ_ok(o: number): number {
11229         if(!isWasmInitialized) {
11230                 throw new Error("initializeWasm() must be awaited first!");
11231         }
11232         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_ok(o);
11233         return nativeResponseValue;
11234 }
11235         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_err(struct LDKAPIError e);
11236 /* @internal */
11237 export function CResult_PaymentPreimageAPIErrorZ_err(e: number): number {
11238         if(!isWasmInitialized) {
11239                 throw new Error("initializeWasm() must be awaited first!");
11240         }
11241         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_err(e);
11242         return nativeResponseValue;
11243 }
11244         // bool CResult_PaymentPreimageAPIErrorZ_is_ok(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR o);
11245 /* @internal */
11246 export function CResult_PaymentPreimageAPIErrorZ_is_ok(o: number): boolean {
11247         if(!isWasmInitialized) {
11248                 throw new Error("initializeWasm() must be awaited first!");
11249         }
11250         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_is_ok(o);
11251         return nativeResponseValue;
11252 }
11253         // void CResult_PaymentPreimageAPIErrorZ_free(struct LDKCResult_PaymentPreimageAPIErrorZ _res);
11254 /* @internal */
11255 export function CResult_PaymentPreimageAPIErrorZ_free(_res: number): void {
11256         if(!isWasmInitialized) {
11257                 throw new Error("initializeWasm() must be awaited first!");
11258         }
11259         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_free(_res);
11260         // debug statements here
11261 }
11262         // uintptr_t CResult_PaymentPreimageAPIErrorZ_clone_ptr(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR arg);
11263 /* @internal */
11264 export function CResult_PaymentPreimageAPIErrorZ_clone_ptr(arg: number): number {
11265         if(!isWasmInitialized) {
11266                 throw new Error("initializeWasm() must be awaited first!");
11267         }
11268         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_clone_ptr(arg);
11269         return nativeResponseValue;
11270 }
11271         // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_clone(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR orig);
11272 /* @internal */
11273 export function CResult_PaymentPreimageAPIErrorZ_clone(orig: number): number {
11274         if(!isWasmInitialized) {
11275                 throw new Error("initializeWasm() must be awaited first!");
11276         }
11277         const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_clone(orig);
11278         return nativeResponseValue;
11279 }
11280         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(struct LDKCounterpartyForwardingInfo o);
11281 /* @internal */
11282 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(o: number): number {
11283         if(!isWasmInitialized) {
11284                 throw new Error("initializeWasm() must be awaited first!");
11285         }
11286         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(o);
11287         return nativeResponseValue;
11288 }
11289         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_err(struct LDKDecodeError e);
11290 /* @internal */
11291 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_err(e: number): number {
11292         if(!isWasmInitialized) {
11293                 throw new Error("initializeWasm() must be awaited first!");
11294         }
11295         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_err(e);
11296         return nativeResponseValue;
11297 }
11298         // bool CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR o);
11299 /* @internal */
11300 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(o: number): boolean {
11301         if(!isWasmInitialized) {
11302                 throw new Error("initializeWasm() must be awaited first!");
11303         }
11304         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(o);
11305         return nativeResponseValue;
11306 }
11307         // void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ _res);
11308 /* @internal */
11309 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_free(_res: number): void {
11310         if(!isWasmInitialized) {
11311                 throw new Error("initializeWasm() must be awaited first!");
11312         }
11313         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_free(_res);
11314         // debug statements here
11315 }
11316         // uintptr_t CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR arg);
11317 /* @internal */
11318 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(arg: number): number {
11319         if(!isWasmInitialized) {
11320                 throw new Error("initializeWasm() must be awaited first!");
11321         }
11322         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(arg);
11323         return nativeResponseValue;
11324 }
11325         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR orig);
11326 /* @internal */
11327 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(orig: number): number {
11328         if(!isWasmInitialized) {
11329                 throw new Error("initializeWasm() must be awaited first!");
11330         }
11331         const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(orig);
11332         return nativeResponseValue;
11333 }
11334         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_ok(struct LDKChannelCounterparty o);
11335 /* @internal */
11336 export function CResult_ChannelCounterpartyDecodeErrorZ_ok(o: number): number {
11337         if(!isWasmInitialized) {
11338                 throw new Error("initializeWasm() must be awaited first!");
11339         }
11340         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_ok(o);
11341         return nativeResponseValue;
11342 }
11343         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_err(struct LDKDecodeError e);
11344 /* @internal */
11345 export function CResult_ChannelCounterpartyDecodeErrorZ_err(e: number): number {
11346         if(!isWasmInitialized) {
11347                 throw new Error("initializeWasm() must be awaited first!");
11348         }
11349         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_err(e);
11350         return nativeResponseValue;
11351 }
11352         // bool CResult_ChannelCounterpartyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR o);
11353 /* @internal */
11354 export function CResult_ChannelCounterpartyDecodeErrorZ_is_ok(o: number): boolean {
11355         if(!isWasmInitialized) {
11356                 throw new Error("initializeWasm() must be awaited first!");
11357         }
11358         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_is_ok(o);
11359         return nativeResponseValue;
11360 }
11361         // void CResult_ChannelCounterpartyDecodeErrorZ_free(struct LDKCResult_ChannelCounterpartyDecodeErrorZ _res);
11362 /* @internal */
11363 export function CResult_ChannelCounterpartyDecodeErrorZ_free(_res: number): void {
11364         if(!isWasmInitialized) {
11365                 throw new Error("initializeWasm() must be awaited first!");
11366         }
11367         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_free(_res);
11368         // debug statements here
11369 }
11370         // uintptr_t CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR arg);
11371 /* @internal */
11372 export function CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(arg: number): number {
11373         if(!isWasmInitialized) {
11374                 throw new Error("initializeWasm() must be awaited first!");
11375         }
11376         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(arg);
11377         return nativeResponseValue;
11378 }
11379         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_clone(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR orig);
11380 /* @internal */
11381 export function CResult_ChannelCounterpartyDecodeErrorZ_clone(orig: number): number {
11382         if(!isWasmInitialized) {
11383                 throw new Error("initializeWasm() must be awaited first!");
11384         }
11385         const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_clone(orig);
11386         return nativeResponseValue;
11387 }
11388         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_ok(struct LDKChannelDetails o);
11389 /* @internal */
11390 export function CResult_ChannelDetailsDecodeErrorZ_ok(o: number): number {
11391         if(!isWasmInitialized) {
11392                 throw new Error("initializeWasm() must be awaited first!");
11393         }
11394         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_ok(o);
11395         return nativeResponseValue;
11396 }
11397         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_err(struct LDKDecodeError e);
11398 /* @internal */
11399 export function CResult_ChannelDetailsDecodeErrorZ_err(e: number): number {
11400         if(!isWasmInitialized) {
11401                 throw new Error("initializeWasm() must be awaited first!");
11402         }
11403         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_err(e);
11404         return nativeResponseValue;
11405 }
11406         // bool CResult_ChannelDetailsDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR o);
11407 /* @internal */
11408 export function CResult_ChannelDetailsDecodeErrorZ_is_ok(o: number): boolean {
11409         if(!isWasmInitialized) {
11410                 throw new Error("initializeWasm() must be awaited first!");
11411         }
11412         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_is_ok(o);
11413         return nativeResponseValue;
11414 }
11415         // void CResult_ChannelDetailsDecodeErrorZ_free(struct LDKCResult_ChannelDetailsDecodeErrorZ _res);
11416 /* @internal */
11417 export function CResult_ChannelDetailsDecodeErrorZ_free(_res: number): void {
11418         if(!isWasmInitialized) {
11419                 throw new Error("initializeWasm() must be awaited first!");
11420         }
11421         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_free(_res);
11422         // debug statements here
11423 }
11424         // uintptr_t CResult_ChannelDetailsDecodeErrorZ_clone_ptr(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR arg);
11425 /* @internal */
11426 export function CResult_ChannelDetailsDecodeErrorZ_clone_ptr(arg: number): number {
11427         if(!isWasmInitialized) {
11428                 throw new Error("initializeWasm() must be awaited first!");
11429         }
11430         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_clone_ptr(arg);
11431         return nativeResponseValue;
11432 }
11433         // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_clone(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR orig);
11434 /* @internal */
11435 export function CResult_ChannelDetailsDecodeErrorZ_clone(orig: number): number {
11436         if(!isWasmInitialized) {
11437                 throw new Error("initializeWasm() must be awaited first!");
11438         }
11439         const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_clone(orig);
11440         return nativeResponseValue;
11441 }
11442         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_ok(struct LDKPhantomRouteHints o);
11443 /* @internal */
11444 export function CResult_PhantomRouteHintsDecodeErrorZ_ok(o: number): number {
11445         if(!isWasmInitialized) {
11446                 throw new Error("initializeWasm() must be awaited first!");
11447         }
11448         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_ok(o);
11449         return nativeResponseValue;
11450 }
11451         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_err(struct LDKDecodeError e);
11452 /* @internal */
11453 export function CResult_PhantomRouteHintsDecodeErrorZ_err(e: number): number {
11454         if(!isWasmInitialized) {
11455                 throw new Error("initializeWasm() must be awaited first!");
11456         }
11457         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_err(e);
11458         return nativeResponseValue;
11459 }
11460         // bool CResult_PhantomRouteHintsDecodeErrorZ_is_ok(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR o);
11461 /* @internal */
11462 export function CResult_PhantomRouteHintsDecodeErrorZ_is_ok(o: number): boolean {
11463         if(!isWasmInitialized) {
11464                 throw new Error("initializeWasm() must be awaited first!");
11465         }
11466         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_is_ok(o);
11467         return nativeResponseValue;
11468 }
11469         // void CResult_PhantomRouteHintsDecodeErrorZ_free(struct LDKCResult_PhantomRouteHintsDecodeErrorZ _res);
11470 /* @internal */
11471 export function CResult_PhantomRouteHintsDecodeErrorZ_free(_res: number): void {
11472         if(!isWasmInitialized) {
11473                 throw new Error("initializeWasm() must be awaited first!");
11474         }
11475         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_free(_res);
11476         // debug statements here
11477 }
11478         // uintptr_t CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR arg);
11479 /* @internal */
11480 export function CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(arg: number): number {
11481         if(!isWasmInitialized) {
11482                 throw new Error("initializeWasm() must be awaited first!");
11483         }
11484         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(arg);
11485         return nativeResponseValue;
11486 }
11487         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_clone(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR orig);
11488 /* @internal */
11489 export function CResult_PhantomRouteHintsDecodeErrorZ_clone(orig: number): number {
11490         if(!isWasmInitialized) {
11491                 throw new Error("initializeWasm() must be awaited first!");
11492         }
11493         const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_clone(orig);
11494         return nativeResponseValue;
11495 }
11496         // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res);
11497 /* @internal */
11498 export function CVec_ChannelMonitorZ_free(_res: number): void {
11499         if(!isWasmInitialized) {
11500                 throw new Error("initializeWasm() must be awaited first!");
11501         }
11502         const nativeResponseValue = wasm.TS_CVec_ChannelMonitorZ_free(_res);
11503         // debug statements here
11504 }
11505         // struct LDKC2Tuple_BlockHashChannelManagerZ C2Tuple_BlockHashChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
11506 /* @internal */
11507 export function C2Tuple_BlockHashChannelManagerZ_new(a: number, b: number): number {
11508         if(!isWasmInitialized) {
11509                 throw new Error("initializeWasm() must be awaited first!");
11510         }
11511         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_new(a, b);
11512         return nativeResponseValue;
11513 }
11514         // void C2Tuple_BlockHashChannelManagerZ_free(struct LDKC2Tuple_BlockHashChannelManagerZ _res);
11515 /* @internal */
11516 export function C2Tuple_BlockHashChannelManagerZ_free(_res: number): void {
11517         if(!isWasmInitialized) {
11518                 throw new Error("initializeWasm() must be awaited first!");
11519         }
11520         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_free(_res);
11521         // debug statements here
11522 }
11523         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelManagerZ o);
11524 /* @internal */
11525 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(o: number): number {
11526         if(!isWasmInitialized) {
11527                 throw new Error("initializeWasm() must be awaited first!");
11528         }
11529         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(o);
11530         return nativeResponseValue;
11531 }
11532         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e);
11533 /* @internal */
11534 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(e: number): number {
11535         if(!isWasmInitialized) {
11536                 throw new Error("initializeWasm() must be awaited first!");
11537         }
11538         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(e);
11539         return nativeResponseValue;
11540 }
11541         // bool CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR o);
11542 /* @internal */
11543 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(o: number): boolean {
11544         if(!isWasmInitialized) {
11545                 throw new Error("initializeWasm() must be awaited first!");
11546         }
11547         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(o);
11548         return nativeResponseValue;
11549 }
11550         // void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ _res);
11551 /* @internal */
11552 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(_res: number): void {
11553         if(!isWasmInitialized) {
11554                 throw new Error("initializeWasm() must be awaited first!");
11555         }
11556         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(_res);
11557         // debug statements here
11558 }
11559         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_ok(struct LDKChannelConfig o);
11560 /* @internal */
11561 export function CResult_ChannelConfigDecodeErrorZ_ok(o: number): number {
11562         if(!isWasmInitialized) {
11563                 throw new Error("initializeWasm() must be awaited first!");
11564         }
11565         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_ok(o);
11566         return nativeResponseValue;
11567 }
11568         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_err(struct LDKDecodeError e);
11569 /* @internal */
11570 export function CResult_ChannelConfigDecodeErrorZ_err(e: number): number {
11571         if(!isWasmInitialized) {
11572                 throw new Error("initializeWasm() must be awaited first!");
11573         }
11574         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_err(e);
11575         return nativeResponseValue;
11576 }
11577         // bool CResult_ChannelConfigDecodeErrorZ_is_ok(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR o);
11578 /* @internal */
11579 export function CResult_ChannelConfigDecodeErrorZ_is_ok(o: number): boolean {
11580         if(!isWasmInitialized) {
11581                 throw new Error("initializeWasm() must be awaited first!");
11582         }
11583         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_is_ok(o);
11584         return nativeResponseValue;
11585 }
11586         // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res);
11587 /* @internal */
11588 export function CResult_ChannelConfigDecodeErrorZ_free(_res: number): void {
11589         if(!isWasmInitialized) {
11590                 throw new Error("initializeWasm() must be awaited first!");
11591         }
11592         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_free(_res);
11593         // debug statements here
11594 }
11595         // uintptr_t CResult_ChannelConfigDecodeErrorZ_clone_ptr(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR arg);
11596 /* @internal */
11597 export function CResult_ChannelConfigDecodeErrorZ_clone_ptr(arg: number): number {
11598         if(!isWasmInitialized) {
11599                 throw new Error("initializeWasm() must be awaited first!");
11600         }
11601         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_clone_ptr(arg);
11602         return nativeResponseValue;
11603 }
11604         // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig);
11605 /* @internal */
11606 export function CResult_ChannelConfigDecodeErrorZ_clone(orig: number): number {
11607         if(!isWasmInitialized) {
11608                 throw new Error("initializeWasm() must be awaited first!");
11609         }
11610         const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_clone(orig);
11611         return nativeResponseValue;
11612 }
11613         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o);
11614 /* @internal */
11615 export function CResult_OutPointDecodeErrorZ_ok(o: number): number {
11616         if(!isWasmInitialized) {
11617                 throw new Error("initializeWasm() must be awaited first!");
11618         }
11619         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_ok(o);
11620         return nativeResponseValue;
11621 }
11622         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e);
11623 /* @internal */
11624 export function CResult_OutPointDecodeErrorZ_err(e: number): number {
11625         if(!isWasmInitialized) {
11626                 throw new Error("initializeWasm() must be awaited first!");
11627         }
11628         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_err(e);
11629         return nativeResponseValue;
11630 }
11631         // bool CResult_OutPointDecodeErrorZ_is_ok(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR o);
11632 /* @internal */
11633 export function CResult_OutPointDecodeErrorZ_is_ok(o: number): boolean {
11634         if(!isWasmInitialized) {
11635                 throw new Error("initializeWasm() must be awaited first!");
11636         }
11637         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_is_ok(o);
11638         return nativeResponseValue;
11639 }
11640         // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res);
11641 /* @internal */
11642 export function CResult_OutPointDecodeErrorZ_free(_res: number): void {
11643         if(!isWasmInitialized) {
11644                 throw new Error("initializeWasm() must be awaited first!");
11645         }
11646         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_free(_res);
11647         // debug statements here
11648 }
11649         // uintptr_t CResult_OutPointDecodeErrorZ_clone_ptr(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR arg);
11650 /* @internal */
11651 export function CResult_OutPointDecodeErrorZ_clone_ptr(arg: number): number {
11652         if(!isWasmInitialized) {
11653                 throw new Error("initializeWasm() must be awaited first!");
11654         }
11655         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_clone_ptr(arg);
11656         return nativeResponseValue;
11657 }
11658         // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig);
11659 /* @internal */
11660 export function CResult_OutPointDecodeErrorZ_clone(orig: number): number {
11661         if(!isWasmInitialized) {
11662                 throw new Error("initializeWasm() must be awaited first!");
11663         }
11664         const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_clone(orig);
11665         return nativeResponseValue;
11666 }
11667         // struct LDKCOption_TypeZ COption_TypeZ_some(struct LDKType o);
11668 /* @internal */
11669 export function COption_TypeZ_some(o: number): number {
11670         if(!isWasmInitialized) {
11671                 throw new Error("initializeWasm() must be awaited first!");
11672         }
11673         const nativeResponseValue = wasm.TS_COption_TypeZ_some(o);
11674         return nativeResponseValue;
11675 }
11676         // struct LDKCOption_TypeZ COption_TypeZ_none(void);
11677 /* @internal */
11678 export function COption_TypeZ_none(): number {
11679         if(!isWasmInitialized) {
11680                 throw new Error("initializeWasm() must be awaited first!");
11681         }
11682         const nativeResponseValue = wasm.TS_COption_TypeZ_none();
11683         return nativeResponseValue;
11684 }
11685         // void COption_TypeZ_free(struct LDKCOption_TypeZ _res);
11686 /* @internal */
11687 export function COption_TypeZ_free(_res: number): void {
11688         if(!isWasmInitialized) {
11689                 throw new Error("initializeWasm() must be awaited first!");
11690         }
11691         const nativeResponseValue = wasm.TS_COption_TypeZ_free(_res);
11692         // debug statements here
11693 }
11694         // uintptr_t COption_TypeZ_clone_ptr(LDKCOption_TypeZ *NONNULL_PTR arg);
11695 /* @internal */
11696 export function COption_TypeZ_clone_ptr(arg: number): number {
11697         if(!isWasmInitialized) {
11698                 throw new Error("initializeWasm() must be awaited first!");
11699         }
11700         const nativeResponseValue = wasm.TS_COption_TypeZ_clone_ptr(arg);
11701         return nativeResponseValue;
11702 }
11703         // struct LDKCOption_TypeZ COption_TypeZ_clone(const struct LDKCOption_TypeZ *NONNULL_PTR orig);
11704 /* @internal */
11705 export function COption_TypeZ_clone(orig: number): number {
11706         if(!isWasmInitialized) {
11707                 throw new Error("initializeWasm() must be awaited first!");
11708         }
11709         const nativeResponseValue = wasm.TS_COption_TypeZ_clone(orig);
11710         return nativeResponseValue;
11711 }
11712         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_ok(struct LDKCOption_TypeZ o);
11713 /* @internal */
11714 export function CResult_COption_TypeZDecodeErrorZ_ok(o: number): number {
11715         if(!isWasmInitialized) {
11716                 throw new Error("initializeWasm() must be awaited first!");
11717         }
11718         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_ok(o);
11719         return nativeResponseValue;
11720 }
11721         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_err(struct LDKDecodeError e);
11722 /* @internal */
11723 export function CResult_COption_TypeZDecodeErrorZ_err(e: number): number {
11724         if(!isWasmInitialized) {
11725                 throw new Error("initializeWasm() must be awaited first!");
11726         }
11727         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_err(e);
11728         return nativeResponseValue;
11729 }
11730         // bool CResult_COption_TypeZDecodeErrorZ_is_ok(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR o);
11731 /* @internal */
11732 export function CResult_COption_TypeZDecodeErrorZ_is_ok(o: number): boolean {
11733         if(!isWasmInitialized) {
11734                 throw new Error("initializeWasm() must be awaited first!");
11735         }
11736         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_is_ok(o);
11737         return nativeResponseValue;
11738 }
11739         // void CResult_COption_TypeZDecodeErrorZ_free(struct LDKCResult_COption_TypeZDecodeErrorZ _res);
11740 /* @internal */
11741 export function CResult_COption_TypeZDecodeErrorZ_free(_res: number): void {
11742         if(!isWasmInitialized) {
11743                 throw new Error("initializeWasm() must be awaited first!");
11744         }
11745         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_free(_res);
11746         // debug statements here
11747 }
11748         // uintptr_t CResult_COption_TypeZDecodeErrorZ_clone_ptr(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR arg);
11749 /* @internal */
11750 export function CResult_COption_TypeZDecodeErrorZ_clone_ptr(arg: number): number {
11751         if(!isWasmInitialized) {
11752                 throw new Error("initializeWasm() must be awaited first!");
11753         }
11754         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_clone_ptr(arg);
11755         return nativeResponseValue;
11756 }
11757         // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_clone(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR orig);
11758 /* @internal */
11759 export function CResult_COption_TypeZDecodeErrorZ_clone(orig: number): number {
11760         if(!isWasmInitialized) {
11761                 throw new Error("initializeWasm() must be awaited first!");
11762         }
11763         const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_clone(orig);
11764         return nativeResponseValue;
11765 }
11766         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_ok(struct LDKThirtyTwoBytes o);
11767 /* @internal */
11768 export function CResult_PaymentIdPaymentErrorZ_ok(o: number): number {
11769         if(!isWasmInitialized) {
11770                 throw new Error("initializeWasm() must be awaited first!");
11771         }
11772         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_ok(o);
11773         return nativeResponseValue;
11774 }
11775         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_err(struct LDKPaymentError e);
11776 /* @internal */
11777 export function CResult_PaymentIdPaymentErrorZ_err(e: number): number {
11778         if(!isWasmInitialized) {
11779                 throw new Error("initializeWasm() must be awaited first!");
11780         }
11781         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_err(e);
11782         return nativeResponseValue;
11783 }
11784         // bool CResult_PaymentIdPaymentErrorZ_is_ok(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR o);
11785 /* @internal */
11786 export function CResult_PaymentIdPaymentErrorZ_is_ok(o: number): boolean {
11787         if(!isWasmInitialized) {
11788                 throw new Error("initializeWasm() must be awaited first!");
11789         }
11790         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_is_ok(o);
11791         return nativeResponseValue;
11792 }
11793         // void CResult_PaymentIdPaymentErrorZ_free(struct LDKCResult_PaymentIdPaymentErrorZ _res);
11794 /* @internal */
11795 export function CResult_PaymentIdPaymentErrorZ_free(_res: number): void {
11796         if(!isWasmInitialized) {
11797                 throw new Error("initializeWasm() must be awaited first!");
11798         }
11799         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_free(_res);
11800         // debug statements here
11801 }
11802         // uintptr_t CResult_PaymentIdPaymentErrorZ_clone_ptr(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR arg);
11803 /* @internal */
11804 export function CResult_PaymentIdPaymentErrorZ_clone_ptr(arg: number): number {
11805         if(!isWasmInitialized) {
11806                 throw new Error("initializeWasm() must be awaited first!");
11807         }
11808         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_clone_ptr(arg);
11809         return nativeResponseValue;
11810 }
11811         // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_clone(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR orig);
11812 /* @internal */
11813 export function CResult_PaymentIdPaymentErrorZ_clone(orig: number): number {
11814         if(!isWasmInitialized) {
11815                 throw new Error("initializeWasm() must be awaited first!");
11816         }
11817         const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_clone(orig);
11818         return nativeResponseValue;
11819 }
11820         // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_ok(enum LDKSiPrefix o);
11821 /* @internal */
11822 export function CResult_SiPrefixParseErrorZ_ok(o: SiPrefix): number {
11823         if(!isWasmInitialized) {
11824                 throw new Error("initializeWasm() must be awaited first!");
11825         }
11826         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_ok(o);
11827         return nativeResponseValue;
11828 }
11829         // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_err(struct LDKParseError e);
11830 /* @internal */
11831 export function CResult_SiPrefixParseErrorZ_err(e: number): number {
11832         if(!isWasmInitialized) {
11833                 throw new Error("initializeWasm() must be awaited first!");
11834         }
11835         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_err(e);
11836         return nativeResponseValue;
11837 }
11838         // bool CResult_SiPrefixParseErrorZ_is_ok(const struct LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR o);
11839 /* @internal */
11840 export function CResult_SiPrefixParseErrorZ_is_ok(o: number): boolean {
11841         if(!isWasmInitialized) {
11842                 throw new Error("initializeWasm() must be awaited first!");
11843         }
11844         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_is_ok(o);
11845         return nativeResponseValue;
11846 }
11847         // void CResult_SiPrefixParseErrorZ_free(struct LDKCResult_SiPrefixParseErrorZ _res);
11848 /* @internal */
11849 export function CResult_SiPrefixParseErrorZ_free(_res: number): void {
11850         if(!isWasmInitialized) {
11851                 throw new Error("initializeWasm() must be awaited first!");
11852         }
11853         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_free(_res);
11854         // debug statements here
11855 }
11856         // uintptr_t CResult_SiPrefixParseErrorZ_clone_ptr(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR arg);
11857 /* @internal */
11858 export function CResult_SiPrefixParseErrorZ_clone_ptr(arg: number): number {
11859         if(!isWasmInitialized) {
11860                 throw new Error("initializeWasm() must be awaited first!");
11861         }
11862         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_clone_ptr(arg);
11863         return nativeResponseValue;
11864 }
11865         // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_clone(const struct LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR orig);
11866 /* @internal */
11867 export function CResult_SiPrefixParseErrorZ_clone(orig: number): number {
11868         if(!isWasmInitialized) {
11869                 throw new Error("initializeWasm() must be awaited first!");
11870         }
11871         const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_clone(orig);
11872         return nativeResponseValue;
11873 }
11874         // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_ok(struct LDKInvoice o);
11875 /* @internal */
11876 export function CResult_InvoiceParseOrSemanticErrorZ_ok(o: number): number {
11877         if(!isWasmInitialized) {
11878                 throw new Error("initializeWasm() must be awaited first!");
11879         }
11880         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_ok(o);
11881         return nativeResponseValue;
11882 }
11883         // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_err(struct LDKParseOrSemanticError e);
11884 /* @internal */
11885 export function CResult_InvoiceParseOrSemanticErrorZ_err(e: number): number {
11886         if(!isWasmInitialized) {
11887                 throw new Error("initializeWasm() must be awaited first!");
11888         }
11889         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_err(e);
11890         return nativeResponseValue;
11891 }
11892         // bool CResult_InvoiceParseOrSemanticErrorZ_is_ok(const struct LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR o);
11893 /* @internal */
11894 export function CResult_InvoiceParseOrSemanticErrorZ_is_ok(o: number): boolean {
11895         if(!isWasmInitialized) {
11896                 throw new Error("initializeWasm() must be awaited first!");
11897         }
11898         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_is_ok(o);
11899         return nativeResponseValue;
11900 }
11901         // void CResult_InvoiceParseOrSemanticErrorZ_free(struct LDKCResult_InvoiceParseOrSemanticErrorZ _res);
11902 /* @internal */
11903 export function CResult_InvoiceParseOrSemanticErrorZ_free(_res: number): void {
11904         if(!isWasmInitialized) {
11905                 throw new Error("initializeWasm() must be awaited first!");
11906         }
11907         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_free(_res);
11908         // debug statements here
11909 }
11910         // uintptr_t CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR arg);
11911 /* @internal */
11912 export function CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(arg: number): number {
11913         if(!isWasmInitialized) {
11914                 throw new Error("initializeWasm() must be awaited first!");
11915         }
11916         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(arg);
11917         return nativeResponseValue;
11918 }
11919         // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_clone(const struct LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR orig);
11920 /* @internal */
11921 export function CResult_InvoiceParseOrSemanticErrorZ_clone(orig: number): number {
11922         if(!isWasmInitialized) {
11923                 throw new Error("initializeWasm() must be awaited first!");
11924         }
11925         const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_clone(orig);
11926         return nativeResponseValue;
11927 }
11928         // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_ok(struct LDKSignedRawInvoice o);
11929 /* @internal */
11930 export function CResult_SignedRawInvoiceParseErrorZ_ok(o: number): number {
11931         if(!isWasmInitialized) {
11932                 throw new Error("initializeWasm() must be awaited first!");
11933         }
11934         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_ok(o);
11935         return nativeResponseValue;
11936 }
11937         // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_err(struct LDKParseError e);
11938 /* @internal */
11939 export function CResult_SignedRawInvoiceParseErrorZ_err(e: number): number {
11940         if(!isWasmInitialized) {
11941                 throw new Error("initializeWasm() must be awaited first!");
11942         }
11943         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_err(e);
11944         return nativeResponseValue;
11945 }
11946         // bool CResult_SignedRawInvoiceParseErrorZ_is_ok(const struct LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR o);
11947 /* @internal */
11948 export function CResult_SignedRawInvoiceParseErrorZ_is_ok(o: number): boolean {
11949         if(!isWasmInitialized) {
11950                 throw new Error("initializeWasm() must be awaited first!");
11951         }
11952         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_is_ok(o);
11953         return nativeResponseValue;
11954 }
11955         // void CResult_SignedRawInvoiceParseErrorZ_free(struct LDKCResult_SignedRawInvoiceParseErrorZ _res);
11956 /* @internal */
11957 export function CResult_SignedRawInvoiceParseErrorZ_free(_res: number): void {
11958         if(!isWasmInitialized) {
11959                 throw new Error("initializeWasm() must be awaited first!");
11960         }
11961         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_free(_res);
11962         // debug statements here
11963 }
11964         // uintptr_t CResult_SignedRawInvoiceParseErrorZ_clone_ptr(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR arg);
11965 /* @internal */
11966 export function CResult_SignedRawInvoiceParseErrorZ_clone_ptr(arg: number): number {
11967         if(!isWasmInitialized) {
11968                 throw new Error("initializeWasm() must be awaited first!");
11969         }
11970         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_clone_ptr(arg);
11971         return nativeResponseValue;
11972 }
11973         // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_clone(const struct LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR orig);
11974 /* @internal */
11975 export function CResult_SignedRawInvoiceParseErrorZ_clone(orig: number): number {
11976         if(!isWasmInitialized) {
11977                 throw new Error("initializeWasm() must be awaited first!");
11978         }
11979         const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_clone(orig);
11980         return nativeResponseValue;
11981 }
11982         // uintptr_t C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR arg);
11983 /* @internal */
11984 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(arg: number): number {
11985         if(!isWasmInitialized) {
11986                 throw new Error("initializeWasm() must be awaited first!");
11987         }
11988         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(arg);
11989         return nativeResponseValue;
11990 }
11991         // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(const struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR orig);
11992 /* @internal */
11993 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(orig: number): number {
11994         if(!isWasmInitialized) {
11995                 throw new Error("initializeWasm() must be awaited first!");
11996         }
11997         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(orig);
11998         return nativeResponseValue;
11999 }
12000         // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(struct LDKRawInvoice a, struct LDKThirtyTwoBytes b, struct LDKInvoiceSignature c);
12001 /* @internal */
12002 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(a: number, b: number, c: number): number {
12003         if(!isWasmInitialized) {
12004                 throw new Error("initializeWasm() must be awaited first!");
12005         }
12006         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(a, b, c);
12007         return nativeResponseValue;
12008 }
12009         // void C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ _res);
12010 /* @internal */
12011 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(_res: number): void {
12012         if(!isWasmInitialized) {
12013                 throw new Error("initializeWasm() must be awaited first!");
12014         }
12015         const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(_res);
12016         // debug statements here
12017 }
12018         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_ok(struct LDKPayeePubKey o);
12019 /* @internal */
12020 export function CResult_PayeePubKeyErrorZ_ok(o: number): number {
12021         if(!isWasmInitialized) {
12022                 throw new Error("initializeWasm() must be awaited first!");
12023         }
12024         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_ok(o);
12025         return nativeResponseValue;
12026 }
12027         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_err(enum LDKSecp256k1Error e);
12028 /* @internal */
12029 export function CResult_PayeePubKeyErrorZ_err(e: Secp256k1Error): number {
12030         if(!isWasmInitialized) {
12031                 throw new Error("initializeWasm() must be awaited first!");
12032         }
12033         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_err(e);
12034         return nativeResponseValue;
12035 }
12036         // bool CResult_PayeePubKeyErrorZ_is_ok(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR o);
12037 /* @internal */
12038 export function CResult_PayeePubKeyErrorZ_is_ok(o: number): boolean {
12039         if(!isWasmInitialized) {
12040                 throw new Error("initializeWasm() must be awaited first!");
12041         }
12042         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_is_ok(o);
12043         return nativeResponseValue;
12044 }
12045         // void CResult_PayeePubKeyErrorZ_free(struct LDKCResult_PayeePubKeyErrorZ _res);
12046 /* @internal */
12047 export function CResult_PayeePubKeyErrorZ_free(_res: number): void {
12048         if(!isWasmInitialized) {
12049                 throw new Error("initializeWasm() must be awaited first!");
12050         }
12051         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_free(_res);
12052         // debug statements here
12053 }
12054         // uintptr_t CResult_PayeePubKeyErrorZ_clone_ptr(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR arg);
12055 /* @internal */
12056 export function CResult_PayeePubKeyErrorZ_clone_ptr(arg: number): number {
12057         if(!isWasmInitialized) {
12058                 throw new Error("initializeWasm() must be awaited first!");
12059         }
12060         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_clone_ptr(arg);
12061         return nativeResponseValue;
12062 }
12063         // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_clone(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR orig);
12064 /* @internal */
12065 export function CResult_PayeePubKeyErrorZ_clone(orig: number): number {
12066         if(!isWasmInitialized) {
12067                 throw new Error("initializeWasm() must be awaited first!");
12068         }
12069         const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_clone(orig);
12070         return nativeResponseValue;
12071 }
12072         // void CVec_PrivateRouteZ_free(struct LDKCVec_PrivateRouteZ _res);
12073 /* @internal */
12074 export function CVec_PrivateRouteZ_free(_res: number): void {
12075         if(!isWasmInitialized) {
12076                 throw new Error("initializeWasm() must be awaited first!");
12077         }
12078         const nativeResponseValue = wasm.TS_CVec_PrivateRouteZ_free(_res);
12079         // debug statements here
12080 }
12081         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_ok(struct LDKPositiveTimestamp o);
12082 /* @internal */
12083 export function CResult_PositiveTimestampCreationErrorZ_ok(o: number): number {
12084         if(!isWasmInitialized) {
12085                 throw new Error("initializeWasm() must be awaited first!");
12086         }
12087         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_ok(o);
12088         return nativeResponseValue;
12089 }
12090         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_err(enum LDKCreationError e);
12091 /* @internal */
12092 export function CResult_PositiveTimestampCreationErrorZ_err(e: CreationError): number {
12093         if(!isWasmInitialized) {
12094                 throw new Error("initializeWasm() must be awaited first!");
12095         }
12096         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_err(e);
12097         return nativeResponseValue;
12098 }
12099         // bool CResult_PositiveTimestampCreationErrorZ_is_ok(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR o);
12100 /* @internal */
12101 export function CResult_PositiveTimestampCreationErrorZ_is_ok(o: number): boolean {
12102         if(!isWasmInitialized) {
12103                 throw new Error("initializeWasm() must be awaited first!");
12104         }
12105         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_is_ok(o);
12106         return nativeResponseValue;
12107 }
12108         // void CResult_PositiveTimestampCreationErrorZ_free(struct LDKCResult_PositiveTimestampCreationErrorZ _res);
12109 /* @internal */
12110 export function CResult_PositiveTimestampCreationErrorZ_free(_res: number): void {
12111         if(!isWasmInitialized) {
12112                 throw new Error("initializeWasm() must be awaited first!");
12113         }
12114         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_free(_res);
12115         // debug statements here
12116 }
12117         // uintptr_t CResult_PositiveTimestampCreationErrorZ_clone_ptr(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR arg);
12118 /* @internal */
12119 export function CResult_PositiveTimestampCreationErrorZ_clone_ptr(arg: number): number {
12120         if(!isWasmInitialized) {
12121                 throw new Error("initializeWasm() must be awaited first!");
12122         }
12123         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_clone_ptr(arg);
12124         return nativeResponseValue;
12125 }
12126         // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_clone(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR orig);
12127 /* @internal */
12128 export function CResult_PositiveTimestampCreationErrorZ_clone(orig: number): number {
12129         if(!isWasmInitialized) {
12130                 throw new Error("initializeWasm() must be awaited first!");
12131         }
12132         const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_clone(orig);
12133         return nativeResponseValue;
12134 }
12135         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_ok(void);
12136 /* @internal */
12137 export function CResult_NoneSemanticErrorZ_ok(): number {
12138         if(!isWasmInitialized) {
12139                 throw new Error("initializeWasm() must be awaited first!");
12140         }
12141         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_ok();
12142         return nativeResponseValue;
12143 }
12144         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_err(enum LDKSemanticError e);
12145 /* @internal */
12146 export function CResult_NoneSemanticErrorZ_err(e: SemanticError): number {
12147         if(!isWasmInitialized) {
12148                 throw new Error("initializeWasm() must be awaited first!");
12149         }
12150         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_err(e);
12151         return nativeResponseValue;
12152 }
12153         // bool CResult_NoneSemanticErrorZ_is_ok(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR o);
12154 /* @internal */
12155 export function CResult_NoneSemanticErrorZ_is_ok(o: number): boolean {
12156         if(!isWasmInitialized) {
12157                 throw new Error("initializeWasm() must be awaited first!");
12158         }
12159         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_is_ok(o);
12160         return nativeResponseValue;
12161 }
12162         // void CResult_NoneSemanticErrorZ_free(struct LDKCResult_NoneSemanticErrorZ _res);
12163 /* @internal */
12164 export function CResult_NoneSemanticErrorZ_free(_res: number): void {
12165         if(!isWasmInitialized) {
12166                 throw new Error("initializeWasm() must be awaited first!");
12167         }
12168         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_free(_res);
12169         // debug statements here
12170 }
12171         // uintptr_t CResult_NoneSemanticErrorZ_clone_ptr(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR arg);
12172 /* @internal */
12173 export function CResult_NoneSemanticErrorZ_clone_ptr(arg: number): number {
12174         if(!isWasmInitialized) {
12175                 throw new Error("initializeWasm() must be awaited first!");
12176         }
12177         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_clone_ptr(arg);
12178         return nativeResponseValue;
12179 }
12180         // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_clone(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR orig);
12181 /* @internal */
12182 export function CResult_NoneSemanticErrorZ_clone(orig: number): number {
12183         if(!isWasmInitialized) {
12184                 throw new Error("initializeWasm() must be awaited first!");
12185         }
12186         const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_clone(orig);
12187         return nativeResponseValue;
12188 }
12189         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_ok(struct LDKInvoice o);
12190 /* @internal */
12191 export function CResult_InvoiceSemanticErrorZ_ok(o: number): number {
12192         if(!isWasmInitialized) {
12193                 throw new Error("initializeWasm() must be awaited first!");
12194         }
12195         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_ok(o);
12196         return nativeResponseValue;
12197 }
12198         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_err(enum LDKSemanticError e);
12199 /* @internal */
12200 export function CResult_InvoiceSemanticErrorZ_err(e: SemanticError): number {
12201         if(!isWasmInitialized) {
12202                 throw new Error("initializeWasm() must be awaited first!");
12203         }
12204         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_err(e);
12205         return nativeResponseValue;
12206 }
12207         // bool CResult_InvoiceSemanticErrorZ_is_ok(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR o);
12208 /* @internal */
12209 export function CResult_InvoiceSemanticErrorZ_is_ok(o: number): boolean {
12210         if(!isWasmInitialized) {
12211                 throw new Error("initializeWasm() must be awaited first!");
12212         }
12213         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_is_ok(o);
12214         return nativeResponseValue;
12215 }
12216         // void CResult_InvoiceSemanticErrorZ_free(struct LDKCResult_InvoiceSemanticErrorZ _res);
12217 /* @internal */
12218 export function CResult_InvoiceSemanticErrorZ_free(_res: number): void {
12219         if(!isWasmInitialized) {
12220                 throw new Error("initializeWasm() must be awaited first!");
12221         }
12222         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_free(_res);
12223         // debug statements here
12224 }
12225         // uintptr_t CResult_InvoiceSemanticErrorZ_clone_ptr(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR arg);
12226 /* @internal */
12227 export function CResult_InvoiceSemanticErrorZ_clone_ptr(arg: number): number {
12228         if(!isWasmInitialized) {
12229                 throw new Error("initializeWasm() must be awaited first!");
12230         }
12231         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_clone_ptr(arg);
12232         return nativeResponseValue;
12233 }
12234         // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_clone(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR orig);
12235 /* @internal */
12236 export function CResult_InvoiceSemanticErrorZ_clone(orig: number): number {
12237         if(!isWasmInitialized) {
12238                 throw new Error("initializeWasm() must be awaited first!");
12239         }
12240         const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_clone(orig);
12241         return nativeResponseValue;
12242 }
12243         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_ok(struct LDKDescription o);
12244 /* @internal */
12245 export function CResult_DescriptionCreationErrorZ_ok(o: number): number {
12246         if(!isWasmInitialized) {
12247                 throw new Error("initializeWasm() must be awaited first!");
12248         }
12249         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_ok(o);
12250         return nativeResponseValue;
12251 }
12252         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_err(enum LDKCreationError e);
12253 /* @internal */
12254 export function CResult_DescriptionCreationErrorZ_err(e: CreationError): number {
12255         if(!isWasmInitialized) {
12256                 throw new Error("initializeWasm() must be awaited first!");
12257         }
12258         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_err(e);
12259         return nativeResponseValue;
12260 }
12261         // bool CResult_DescriptionCreationErrorZ_is_ok(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR o);
12262 /* @internal */
12263 export function CResult_DescriptionCreationErrorZ_is_ok(o: number): boolean {
12264         if(!isWasmInitialized) {
12265                 throw new Error("initializeWasm() must be awaited first!");
12266         }
12267         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_is_ok(o);
12268         return nativeResponseValue;
12269 }
12270         // void CResult_DescriptionCreationErrorZ_free(struct LDKCResult_DescriptionCreationErrorZ _res);
12271 /* @internal */
12272 export function CResult_DescriptionCreationErrorZ_free(_res: number): void {
12273         if(!isWasmInitialized) {
12274                 throw new Error("initializeWasm() must be awaited first!");
12275         }
12276         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_free(_res);
12277         // debug statements here
12278 }
12279         // uintptr_t CResult_DescriptionCreationErrorZ_clone_ptr(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR arg);
12280 /* @internal */
12281 export function CResult_DescriptionCreationErrorZ_clone_ptr(arg: number): number {
12282         if(!isWasmInitialized) {
12283                 throw new Error("initializeWasm() must be awaited first!");
12284         }
12285         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_clone_ptr(arg);
12286         return nativeResponseValue;
12287 }
12288         // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_clone(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR orig);
12289 /* @internal */
12290 export function CResult_DescriptionCreationErrorZ_clone(orig: number): number {
12291         if(!isWasmInitialized) {
12292                 throw new Error("initializeWasm() must be awaited first!");
12293         }
12294         const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_clone(orig);
12295         return nativeResponseValue;
12296 }
12297         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_ok(struct LDKPrivateRoute o);
12298 /* @internal */
12299 export function CResult_PrivateRouteCreationErrorZ_ok(o: number): number {
12300         if(!isWasmInitialized) {
12301                 throw new Error("initializeWasm() must be awaited first!");
12302         }
12303         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_ok(o);
12304         return nativeResponseValue;
12305 }
12306         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_err(enum LDKCreationError e);
12307 /* @internal */
12308 export function CResult_PrivateRouteCreationErrorZ_err(e: CreationError): number {
12309         if(!isWasmInitialized) {
12310                 throw new Error("initializeWasm() must be awaited first!");
12311         }
12312         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_err(e);
12313         return nativeResponseValue;
12314 }
12315         // bool CResult_PrivateRouteCreationErrorZ_is_ok(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR o);
12316 /* @internal */
12317 export function CResult_PrivateRouteCreationErrorZ_is_ok(o: number): boolean {
12318         if(!isWasmInitialized) {
12319                 throw new Error("initializeWasm() must be awaited first!");
12320         }
12321         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_is_ok(o);
12322         return nativeResponseValue;
12323 }
12324         // void CResult_PrivateRouteCreationErrorZ_free(struct LDKCResult_PrivateRouteCreationErrorZ _res);
12325 /* @internal */
12326 export function CResult_PrivateRouteCreationErrorZ_free(_res: number): void {
12327         if(!isWasmInitialized) {
12328                 throw new Error("initializeWasm() must be awaited first!");
12329         }
12330         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_free(_res);
12331         // debug statements here
12332 }
12333         // uintptr_t CResult_PrivateRouteCreationErrorZ_clone_ptr(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR arg);
12334 /* @internal */
12335 export function CResult_PrivateRouteCreationErrorZ_clone_ptr(arg: number): number {
12336         if(!isWasmInitialized) {
12337                 throw new Error("initializeWasm() must be awaited first!");
12338         }
12339         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_clone_ptr(arg);
12340         return nativeResponseValue;
12341 }
12342         // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_clone(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR orig);
12343 /* @internal */
12344 export function CResult_PrivateRouteCreationErrorZ_clone(orig: number): number {
12345         if(!isWasmInitialized) {
12346                 throw new Error("initializeWasm() must be awaited first!");
12347         }
12348         const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_clone(orig);
12349         return nativeResponseValue;
12350 }
12351         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_ok(struct LDKStr o);
12352 /* @internal */
12353 export function CResult_StringErrorZ_ok(o: number): number {
12354         if(!isWasmInitialized) {
12355                 throw new Error("initializeWasm() must be awaited first!");
12356         }
12357         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_ok(o);
12358         return nativeResponseValue;
12359 }
12360         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_err(enum LDKSecp256k1Error e);
12361 /* @internal */
12362 export function CResult_StringErrorZ_err(e: Secp256k1Error): number {
12363         if(!isWasmInitialized) {
12364                 throw new Error("initializeWasm() must be awaited first!");
12365         }
12366         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_err(e);
12367         return nativeResponseValue;
12368 }
12369         // bool CResult_StringErrorZ_is_ok(const struct LDKCResult_StringErrorZ *NONNULL_PTR o);
12370 /* @internal */
12371 export function CResult_StringErrorZ_is_ok(o: number): boolean {
12372         if(!isWasmInitialized) {
12373                 throw new Error("initializeWasm() must be awaited first!");
12374         }
12375         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_is_ok(o);
12376         return nativeResponseValue;
12377 }
12378         // void CResult_StringErrorZ_free(struct LDKCResult_StringErrorZ _res);
12379 /* @internal */
12380 export function CResult_StringErrorZ_free(_res: number): void {
12381         if(!isWasmInitialized) {
12382                 throw new Error("initializeWasm() must be awaited first!");
12383         }
12384         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_free(_res);
12385         // debug statements here
12386 }
12387         // uintptr_t CResult_StringErrorZ_clone_ptr(LDKCResult_StringErrorZ *NONNULL_PTR arg);
12388 /* @internal */
12389 export function CResult_StringErrorZ_clone_ptr(arg: number): number {
12390         if(!isWasmInitialized) {
12391                 throw new Error("initializeWasm() must be awaited first!");
12392         }
12393         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_clone_ptr(arg);
12394         return nativeResponseValue;
12395 }
12396         // struct LDKCResult_StringErrorZ CResult_StringErrorZ_clone(const struct LDKCResult_StringErrorZ *NONNULL_PTR orig);
12397 /* @internal */
12398 export function CResult_StringErrorZ_clone(orig: number): number {
12399         if(!isWasmInitialized) {
12400                 throw new Error("initializeWasm() must be awaited first!");
12401         }
12402         const nativeResponseValue = wasm.TS_CResult_StringErrorZ_clone(orig);
12403         return nativeResponseValue;
12404 }
12405         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o);
12406 /* @internal */
12407 export function CResult_ChannelMonitorUpdateDecodeErrorZ_ok(o: number): number {
12408         if(!isWasmInitialized) {
12409                 throw new Error("initializeWasm() must be awaited first!");
12410         }
12411         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_ok(o);
12412         return nativeResponseValue;
12413 }
12414         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e);
12415 /* @internal */
12416 export function CResult_ChannelMonitorUpdateDecodeErrorZ_err(e: number): number {
12417         if(!isWasmInitialized) {
12418                 throw new Error("initializeWasm() must be awaited first!");
12419         }
12420         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_err(e);
12421         return nativeResponseValue;
12422 }
12423         // bool CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR o);
12424 /* @internal */
12425 export function CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(o: number): boolean {
12426         if(!isWasmInitialized) {
12427                 throw new Error("initializeWasm() must be awaited first!");
12428         }
12429         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(o);
12430         return nativeResponseValue;
12431 }
12432         // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res);
12433 /* @internal */
12434 export function CResult_ChannelMonitorUpdateDecodeErrorZ_free(_res: number): void {
12435         if(!isWasmInitialized) {
12436                 throw new Error("initializeWasm() must be awaited first!");
12437         }
12438         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_free(_res);
12439         // debug statements here
12440 }
12441         // uintptr_t CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR arg);
12442 /* @internal */
12443 export function CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(arg: number): number {
12444         if(!isWasmInitialized) {
12445                 throw new Error("initializeWasm() must be awaited first!");
12446         }
12447         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(arg);
12448         return nativeResponseValue;
12449 }
12450         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR orig);
12451 /* @internal */
12452 export function CResult_ChannelMonitorUpdateDecodeErrorZ_clone(orig: number): number {
12453         if(!isWasmInitialized) {
12454                 throw new Error("initializeWasm() must be awaited first!");
12455         }
12456         const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_clone(orig);
12457         return nativeResponseValue;
12458 }
12459         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_some(struct LDKMonitorEvent o);
12460 /* @internal */
12461 export function COption_MonitorEventZ_some(o: number): number {
12462         if(!isWasmInitialized) {
12463                 throw new Error("initializeWasm() must be awaited first!");
12464         }
12465         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_some(o);
12466         return nativeResponseValue;
12467 }
12468         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_none(void);
12469 /* @internal */
12470 export function COption_MonitorEventZ_none(): number {
12471         if(!isWasmInitialized) {
12472                 throw new Error("initializeWasm() must be awaited first!");
12473         }
12474         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_none();
12475         return nativeResponseValue;
12476 }
12477         // void COption_MonitorEventZ_free(struct LDKCOption_MonitorEventZ _res);
12478 /* @internal */
12479 export function COption_MonitorEventZ_free(_res: number): void {
12480         if(!isWasmInitialized) {
12481                 throw new Error("initializeWasm() must be awaited first!");
12482         }
12483         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_free(_res);
12484         // debug statements here
12485 }
12486         // uintptr_t COption_MonitorEventZ_clone_ptr(LDKCOption_MonitorEventZ *NONNULL_PTR arg);
12487 /* @internal */
12488 export function COption_MonitorEventZ_clone_ptr(arg: number): number {
12489         if(!isWasmInitialized) {
12490                 throw new Error("initializeWasm() must be awaited first!");
12491         }
12492         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_clone_ptr(arg);
12493         return nativeResponseValue;
12494 }
12495         // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_clone(const struct LDKCOption_MonitorEventZ *NONNULL_PTR orig);
12496 /* @internal */
12497 export function COption_MonitorEventZ_clone(orig: number): number {
12498         if(!isWasmInitialized) {
12499                 throw new Error("initializeWasm() must be awaited first!");
12500         }
12501         const nativeResponseValue = wasm.TS_COption_MonitorEventZ_clone(orig);
12502         return nativeResponseValue;
12503 }
12504         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_ok(struct LDKCOption_MonitorEventZ o);
12505 /* @internal */
12506 export function CResult_COption_MonitorEventZDecodeErrorZ_ok(o: number): number {
12507         if(!isWasmInitialized) {
12508                 throw new Error("initializeWasm() must be awaited first!");
12509         }
12510         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_ok(o);
12511         return nativeResponseValue;
12512 }
12513         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_err(struct LDKDecodeError e);
12514 /* @internal */
12515 export function CResult_COption_MonitorEventZDecodeErrorZ_err(e: number): number {
12516         if(!isWasmInitialized) {
12517                 throw new Error("initializeWasm() must be awaited first!");
12518         }
12519         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_err(e);
12520         return nativeResponseValue;
12521 }
12522         // bool CResult_COption_MonitorEventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR o);
12523 /* @internal */
12524 export function CResult_COption_MonitorEventZDecodeErrorZ_is_ok(o: number): boolean {
12525         if(!isWasmInitialized) {
12526                 throw new Error("initializeWasm() must be awaited first!");
12527         }
12528         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_is_ok(o);
12529         return nativeResponseValue;
12530 }
12531         // void CResult_COption_MonitorEventZDecodeErrorZ_free(struct LDKCResult_COption_MonitorEventZDecodeErrorZ _res);
12532 /* @internal */
12533 export function CResult_COption_MonitorEventZDecodeErrorZ_free(_res: number): void {
12534         if(!isWasmInitialized) {
12535                 throw new Error("initializeWasm() must be awaited first!");
12536         }
12537         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_free(_res);
12538         // debug statements here
12539 }
12540         // uintptr_t CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR arg);
12541 /* @internal */
12542 export function CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(arg: number): number {
12543         if(!isWasmInitialized) {
12544                 throw new Error("initializeWasm() must be awaited first!");
12545         }
12546         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(arg);
12547         return nativeResponseValue;
12548 }
12549         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_clone(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR orig);
12550 /* @internal */
12551 export function CResult_COption_MonitorEventZDecodeErrorZ_clone(orig: number): number {
12552         if(!isWasmInitialized) {
12553                 throw new Error("initializeWasm() must be awaited first!");
12554         }
12555         const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_clone(orig);
12556         return nativeResponseValue;
12557 }
12558         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_ok(struct LDKHTLCUpdate o);
12559 /* @internal */
12560 export function CResult_HTLCUpdateDecodeErrorZ_ok(o: number): number {
12561         if(!isWasmInitialized) {
12562                 throw new Error("initializeWasm() must be awaited first!");
12563         }
12564         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_ok(o);
12565         return nativeResponseValue;
12566 }
12567         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_err(struct LDKDecodeError e);
12568 /* @internal */
12569 export function CResult_HTLCUpdateDecodeErrorZ_err(e: number): number {
12570         if(!isWasmInitialized) {
12571                 throw new Error("initializeWasm() must be awaited first!");
12572         }
12573         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_err(e);
12574         return nativeResponseValue;
12575 }
12576         // bool CResult_HTLCUpdateDecodeErrorZ_is_ok(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR o);
12577 /* @internal */
12578 export function CResult_HTLCUpdateDecodeErrorZ_is_ok(o: number): boolean {
12579         if(!isWasmInitialized) {
12580                 throw new Error("initializeWasm() must be awaited first!");
12581         }
12582         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_is_ok(o);
12583         return nativeResponseValue;
12584 }
12585         // void CResult_HTLCUpdateDecodeErrorZ_free(struct LDKCResult_HTLCUpdateDecodeErrorZ _res);
12586 /* @internal */
12587 export function CResult_HTLCUpdateDecodeErrorZ_free(_res: number): void {
12588         if(!isWasmInitialized) {
12589                 throw new Error("initializeWasm() must be awaited first!");
12590         }
12591         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_free(_res);
12592         // debug statements here
12593 }
12594         // uintptr_t CResult_HTLCUpdateDecodeErrorZ_clone_ptr(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR arg);
12595 /* @internal */
12596 export function CResult_HTLCUpdateDecodeErrorZ_clone_ptr(arg: number): number {
12597         if(!isWasmInitialized) {
12598                 throw new Error("initializeWasm() must be awaited first!");
12599         }
12600         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_clone_ptr(arg);
12601         return nativeResponseValue;
12602 }
12603         // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR orig);
12604 /* @internal */
12605 export function CResult_HTLCUpdateDecodeErrorZ_clone(orig: number): number {
12606         if(!isWasmInitialized) {
12607                 throw new Error("initializeWasm() must be awaited first!");
12608         }
12609         const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_clone(orig);
12610         return nativeResponseValue;
12611 }
12612         // uintptr_t C2Tuple_OutPointScriptZ_clone_ptr(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR arg);
12613 /* @internal */
12614 export function C2Tuple_OutPointScriptZ_clone_ptr(arg: number): number {
12615         if(!isWasmInitialized) {
12616                 throw new Error("initializeWasm() must be awaited first!");
12617         }
12618         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_clone_ptr(arg);
12619         return nativeResponseValue;
12620 }
12621         // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_clone(const struct LDKC2Tuple_OutPointScriptZ *NONNULL_PTR orig);
12622 /* @internal */
12623 export function C2Tuple_OutPointScriptZ_clone(orig: number): number {
12624         if(!isWasmInitialized) {
12625                 throw new Error("initializeWasm() must be awaited first!");
12626         }
12627         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_clone(orig);
12628         return nativeResponseValue;
12629 }
12630         // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
12631 /* @internal */
12632 export function C2Tuple_OutPointScriptZ_new(a: number, b: number): number {
12633         if(!isWasmInitialized) {
12634                 throw new Error("initializeWasm() must be awaited first!");
12635         }
12636         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_new(a, b);
12637         return nativeResponseValue;
12638 }
12639         // void C2Tuple_OutPointScriptZ_free(struct LDKC2Tuple_OutPointScriptZ _res);
12640 /* @internal */
12641 export function C2Tuple_OutPointScriptZ_free(_res: number): void {
12642         if(!isWasmInitialized) {
12643                 throw new Error("initializeWasm() must be awaited first!");
12644         }
12645         const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_free(_res);
12646         // debug statements here
12647 }
12648         // uintptr_t C2Tuple_u32ScriptZ_clone_ptr(LDKC2Tuple_u32ScriptZ *NONNULL_PTR arg);
12649 /* @internal */
12650 export function C2Tuple_u32ScriptZ_clone_ptr(arg: number): number {
12651         if(!isWasmInitialized) {
12652                 throw new Error("initializeWasm() must be awaited first!");
12653         }
12654         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_clone_ptr(arg);
12655         return nativeResponseValue;
12656 }
12657         // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_clone(const struct LDKC2Tuple_u32ScriptZ *NONNULL_PTR orig);
12658 /* @internal */
12659 export function C2Tuple_u32ScriptZ_clone(orig: number): number {
12660         if(!isWasmInitialized) {
12661                 throw new Error("initializeWasm() must be awaited first!");
12662         }
12663         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_clone(orig);
12664         return nativeResponseValue;
12665 }
12666         // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_new(uint32_t a, struct LDKCVec_u8Z b);
12667 /* @internal */
12668 export function C2Tuple_u32ScriptZ_new(a: number, b: number): number {
12669         if(!isWasmInitialized) {
12670                 throw new Error("initializeWasm() must be awaited first!");
12671         }
12672         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_new(a, b);
12673         return nativeResponseValue;
12674 }
12675         // void C2Tuple_u32ScriptZ_free(struct LDKC2Tuple_u32ScriptZ _res);
12676 /* @internal */
12677 export function C2Tuple_u32ScriptZ_free(_res: number): void {
12678         if(!isWasmInitialized) {
12679                 throw new Error("initializeWasm() must be awaited first!");
12680         }
12681         const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_free(_res);
12682         // debug statements here
12683 }
12684         // void CVec_C2Tuple_u32ScriptZZ_free(struct LDKCVec_C2Tuple_u32ScriptZZ _res);
12685 /* @internal */
12686 export function CVec_C2Tuple_u32ScriptZZ_free(_res: number): void {
12687         if(!isWasmInitialized) {
12688                 throw new Error("initializeWasm() must be awaited first!");
12689         }
12690         const nativeResponseValue = wasm.TS_CVec_C2Tuple_u32ScriptZZ_free(_res);
12691         // debug statements here
12692 }
12693         // uintptr_t C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR arg);
12694 /* @internal */
12695 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(arg: number): number {
12696         if(!isWasmInitialized) {
12697                 throw new Error("initializeWasm() must be awaited first!");
12698         }
12699         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(arg);
12700         return nativeResponseValue;
12701 }
12702         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR orig);
12703 /* @internal */
12704 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(orig: number): number {
12705         if(!isWasmInitialized) {
12706                 throw new Error("initializeWasm() must be awaited first!");
12707         }
12708         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(orig);
12709         return nativeResponseValue;
12710 }
12711         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32ScriptZZ b);
12712 /* @internal */
12713 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(a: number, b: number): number {
12714         if(!isWasmInitialized) {
12715                 throw new Error("initializeWasm() must be awaited first!");
12716         }
12717         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(a, b);
12718         return nativeResponseValue;
12719 }
12720         // void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ _res);
12721 /* @internal */
12722 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(_res: number): void {
12723         if(!isWasmInitialized) {
12724                 throw new Error("initializeWasm() must be awaited first!");
12725         }
12726         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(_res);
12727         // debug statements here
12728 }
12729         // void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ _res);
12730 /* @internal */
12731 export function CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(_res: number): void {
12732         if(!isWasmInitialized) {
12733                 throw new Error("initializeWasm() must be awaited first!");
12734         }
12735         const nativeResponseValue = wasm.TS_CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(_res);
12736         // debug statements here
12737 }
12738         // void CVec_EventZ_free(struct LDKCVec_EventZ _res);
12739 /* @internal */
12740 export function CVec_EventZ_free(_res: number): void {
12741         if(!isWasmInitialized) {
12742                 throw new Error("initializeWasm() must be awaited first!");
12743         }
12744         const nativeResponseValue = wasm.TS_CVec_EventZ_free(_res);
12745         // debug statements here
12746 }
12747         // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res);
12748 /* @internal */
12749 export function CVec_TransactionZ_free(_res: number): void {
12750         if(!isWasmInitialized) {
12751                 throw new Error("initializeWasm() must be awaited first!");
12752         }
12753         const nativeResponseValue = wasm.TS_CVec_TransactionZ_free(_res);
12754         // debug statements here
12755 }
12756         // uintptr_t C2Tuple_u32TxOutZ_clone_ptr(LDKC2Tuple_u32TxOutZ *NONNULL_PTR arg);
12757 /* @internal */
12758 export function C2Tuple_u32TxOutZ_clone_ptr(arg: number): number {
12759         if(!isWasmInitialized) {
12760                 throw new Error("initializeWasm() must be awaited first!");
12761         }
12762         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_clone_ptr(arg);
12763         return nativeResponseValue;
12764 }
12765         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_clone(const struct LDKC2Tuple_u32TxOutZ *NONNULL_PTR orig);
12766 /* @internal */
12767 export function C2Tuple_u32TxOutZ_clone(orig: number): number {
12768         if(!isWasmInitialized) {
12769                 throw new Error("initializeWasm() must be awaited first!");
12770         }
12771         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_clone(orig);
12772         return nativeResponseValue;
12773 }
12774         // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
12775 /* @internal */
12776 export function C2Tuple_u32TxOutZ_new(a: number, b: number): number {
12777         if(!isWasmInitialized) {
12778                 throw new Error("initializeWasm() must be awaited first!");
12779         }
12780         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_new(a, b);
12781         return nativeResponseValue;
12782 }
12783         // void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res);
12784 /* @internal */
12785 export function C2Tuple_u32TxOutZ_free(_res: number): void {
12786         if(!isWasmInitialized) {
12787                 throw new Error("initializeWasm() must be awaited first!");
12788         }
12789         const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_free(_res);
12790         // debug statements here
12791 }
12792         // void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res);
12793 /* @internal */
12794 export function CVec_C2Tuple_u32TxOutZZ_free(_res: number): void {
12795         if(!isWasmInitialized) {
12796                 throw new Error("initializeWasm() must be awaited first!");
12797         }
12798         const nativeResponseValue = wasm.TS_CVec_C2Tuple_u32TxOutZZ_free(_res);
12799         // debug statements here
12800 }
12801         // uintptr_t C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR arg);
12802 /* @internal */
12803 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(arg: number): number {
12804         if(!isWasmInitialized) {
12805                 throw new Error("initializeWasm() must be awaited first!");
12806         }
12807         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(arg);
12808         return nativeResponseValue;
12809 }
12810         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig);
12811 /* @internal */
12812 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(orig: number): number {
12813         if(!isWasmInitialized) {
12814                 throw new Error("initializeWasm() must be awaited first!");
12815         }
12816         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(orig);
12817         return nativeResponseValue;
12818 }
12819         // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
12820 /* @internal */
12821 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(a: number, b: number): number {
12822         if(!isWasmInitialized) {
12823                 throw new Error("initializeWasm() must be awaited first!");
12824         }
12825         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(a, b);
12826         return nativeResponseValue;
12827 }
12828         // void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ _res);
12829 /* @internal */
12830 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(_res: number): void {
12831         if(!isWasmInitialized) {
12832                 throw new Error("initializeWasm() must be awaited first!");
12833         }
12834         const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(_res);
12835         // debug statements here
12836 }
12837         // void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ _res);
12838 /* @internal */
12839 export function CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(_res: number): void {
12840         if(!isWasmInitialized) {
12841                 throw new Error("initializeWasm() must be awaited first!");
12842         }
12843         const nativeResponseValue = wasm.TS_CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(_res);
12844         // debug statements here
12845 }
12846         // void CVec_BalanceZ_free(struct LDKCVec_BalanceZ _res);
12847 /* @internal */
12848 export function CVec_BalanceZ_free(_res: number): void {
12849         if(!isWasmInitialized) {
12850                 throw new Error("initializeWasm() must be awaited first!");
12851         }
12852         const nativeResponseValue = wasm.TS_CVec_BalanceZ_free(_res);
12853         // debug statements here
12854 }
12855         // uintptr_t C2Tuple_BlockHashChannelMonitorZ_clone_ptr(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR arg);
12856 /* @internal */
12857 export function C2Tuple_BlockHashChannelMonitorZ_clone_ptr(arg: number): number {
12858         if(!isWasmInitialized) {
12859                 throw new Error("initializeWasm() must be awaited first!");
12860         }
12861         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_clone_ptr(arg);
12862         return nativeResponseValue;
12863 }
12864         // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_clone(const struct LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR orig);
12865 /* @internal */
12866 export function C2Tuple_BlockHashChannelMonitorZ_clone(orig: number): number {
12867         if(!isWasmInitialized) {
12868                 throw new Error("initializeWasm() must be awaited first!");
12869         }
12870         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_clone(orig);
12871         return nativeResponseValue;
12872 }
12873         // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
12874 /* @internal */
12875 export function C2Tuple_BlockHashChannelMonitorZ_new(a: number, b: number): number {
12876         if(!isWasmInitialized) {
12877                 throw new Error("initializeWasm() must be awaited first!");
12878         }
12879         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_new(a, b);
12880         return nativeResponseValue;
12881 }
12882         // void C2Tuple_BlockHashChannelMonitorZ_free(struct LDKC2Tuple_BlockHashChannelMonitorZ _res);
12883 /* @internal */
12884 export function C2Tuple_BlockHashChannelMonitorZ_free(_res: number): void {
12885         if(!isWasmInitialized) {
12886                 throw new Error("initializeWasm() must be awaited first!");
12887         }
12888         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_free(_res);
12889         // debug statements here
12890 }
12891         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelMonitorZ o);
12892 /* @internal */
12893 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(o: number): number {
12894         if(!isWasmInitialized) {
12895                 throw new Error("initializeWasm() must be awaited first!");
12896         }
12897         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(o);
12898         return nativeResponseValue;
12899 }
12900         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e);
12901 /* @internal */
12902 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(e: number): number {
12903         if(!isWasmInitialized) {
12904                 throw new Error("initializeWasm() must be awaited first!");
12905         }
12906         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(e);
12907         return nativeResponseValue;
12908 }
12909         // bool CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR o);
12910 /* @internal */
12911 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(o: number): boolean {
12912         if(!isWasmInitialized) {
12913                 throw new Error("initializeWasm() must be awaited first!");
12914         }
12915         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(o);
12916         return nativeResponseValue;
12917 }
12918         // void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ _res);
12919 /* @internal */
12920 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(_res: number): void {
12921         if(!isWasmInitialized) {
12922                 throw new Error("initializeWasm() must be awaited first!");
12923         }
12924         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(_res);
12925         // debug statements here
12926 }
12927         // uintptr_t CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR arg);
12928 /* @internal */
12929 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(arg: number): number {
12930         if(!isWasmInitialized) {
12931                 throw new Error("initializeWasm() must be awaited first!");
12932         }
12933         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(arg);
12934         return nativeResponseValue;
12935 }
12936         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR orig);
12937 /* @internal */
12938 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(orig: number): number {
12939         if(!isWasmInitialized) {
12940                 throw new Error("initializeWasm() must be awaited first!");
12941         }
12942         const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(orig);
12943         return nativeResponseValue;
12944 }
12945         // uintptr_t C2Tuple_PublicKeyTypeZ_clone_ptr(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR arg);
12946 /* @internal */
12947 export function C2Tuple_PublicKeyTypeZ_clone_ptr(arg: number): number {
12948         if(!isWasmInitialized) {
12949                 throw new Error("initializeWasm() must be awaited first!");
12950         }
12951         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_clone_ptr(arg);
12952         return nativeResponseValue;
12953 }
12954         // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_clone(const struct LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR orig);
12955 /* @internal */
12956 export function C2Tuple_PublicKeyTypeZ_clone(orig: number): number {
12957         if(!isWasmInitialized) {
12958                 throw new Error("initializeWasm() must be awaited first!");
12959         }
12960         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_clone(orig);
12961         return nativeResponseValue;
12962 }
12963         // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_new(struct LDKPublicKey a, struct LDKType b);
12964 /* @internal */
12965 export function C2Tuple_PublicKeyTypeZ_new(a: number, b: number): number {
12966         if(!isWasmInitialized) {
12967                 throw new Error("initializeWasm() must be awaited first!");
12968         }
12969         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_new(a, b);
12970         return nativeResponseValue;
12971 }
12972         // void C2Tuple_PublicKeyTypeZ_free(struct LDKC2Tuple_PublicKeyTypeZ _res);
12973 /* @internal */
12974 export function C2Tuple_PublicKeyTypeZ_free(_res: number): void {
12975         if(!isWasmInitialized) {
12976                 throw new Error("initializeWasm() must be awaited first!");
12977         }
12978         const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_free(_res);
12979         // debug statements here
12980 }
12981         // void CVec_C2Tuple_PublicKeyTypeZZ_free(struct LDKCVec_C2Tuple_PublicKeyTypeZZ _res);
12982 /* @internal */
12983 export function CVec_C2Tuple_PublicKeyTypeZZ_free(_res: number): void {
12984         if(!isWasmInitialized) {
12985                 throw new Error("initializeWasm() must be awaited first!");
12986         }
12987         const nativeResponseValue = wasm.TS_CVec_C2Tuple_PublicKeyTypeZZ_free(_res);
12988         // debug statements here
12989 }
12990         // struct LDKCOption_NetAddressZ COption_NetAddressZ_some(struct LDKNetAddress o);
12991 /* @internal */
12992 export function COption_NetAddressZ_some(o: number): number {
12993         if(!isWasmInitialized) {
12994                 throw new Error("initializeWasm() must be awaited first!");
12995         }
12996         const nativeResponseValue = wasm.TS_COption_NetAddressZ_some(o);
12997         return nativeResponseValue;
12998 }
12999         // struct LDKCOption_NetAddressZ COption_NetAddressZ_none(void);
13000 /* @internal */
13001 export function COption_NetAddressZ_none(): number {
13002         if(!isWasmInitialized) {
13003                 throw new Error("initializeWasm() must be awaited first!");
13004         }
13005         const nativeResponseValue = wasm.TS_COption_NetAddressZ_none();
13006         return nativeResponseValue;
13007 }
13008         // void COption_NetAddressZ_free(struct LDKCOption_NetAddressZ _res);
13009 /* @internal */
13010 export function COption_NetAddressZ_free(_res: number): void {
13011         if(!isWasmInitialized) {
13012                 throw new Error("initializeWasm() must be awaited first!");
13013         }
13014         const nativeResponseValue = wasm.TS_COption_NetAddressZ_free(_res);
13015         // debug statements here
13016 }
13017         // uintptr_t COption_NetAddressZ_clone_ptr(LDKCOption_NetAddressZ *NONNULL_PTR arg);
13018 /* @internal */
13019 export function COption_NetAddressZ_clone_ptr(arg: number): number {
13020         if(!isWasmInitialized) {
13021                 throw new Error("initializeWasm() must be awaited first!");
13022         }
13023         const nativeResponseValue = wasm.TS_COption_NetAddressZ_clone_ptr(arg);
13024         return nativeResponseValue;
13025 }
13026         // struct LDKCOption_NetAddressZ COption_NetAddressZ_clone(const struct LDKCOption_NetAddressZ *NONNULL_PTR orig);
13027 /* @internal */
13028 export function COption_NetAddressZ_clone(orig: number): number {
13029         if(!isWasmInitialized) {
13030                 throw new Error("initializeWasm() must be awaited first!");
13031         }
13032         const nativeResponseValue = wasm.TS_COption_NetAddressZ_clone(orig);
13033         return nativeResponseValue;
13034 }
13035         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o);
13036 /* @internal */
13037 export function CResult_CVec_u8ZPeerHandleErrorZ_ok(o: number): number {
13038         if(!isWasmInitialized) {
13039                 throw new Error("initializeWasm() must be awaited first!");
13040         }
13041         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_ok(o);
13042         return nativeResponseValue;
13043 }
13044         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e);
13045 /* @internal */
13046 export function CResult_CVec_u8ZPeerHandleErrorZ_err(e: number): number {
13047         if(!isWasmInitialized) {
13048                 throw new Error("initializeWasm() must be awaited first!");
13049         }
13050         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_err(e);
13051         return nativeResponseValue;
13052 }
13053         // bool CResult_CVec_u8ZPeerHandleErrorZ_is_ok(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR o);
13054 /* @internal */
13055 export function CResult_CVec_u8ZPeerHandleErrorZ_is_ok(o: number): boolean {
13056         if(!isWasmInitialized) {
13057                 throw new Error("initializeWasm() must be awaited first!");
13058         }
13059         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_is_ok(o);
13060         return nativeResponseValue;
13061 }
13062         // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res);
13063 /* @internal */
13064 export function CResult_CVec_u8ZPeerHandleErrorZ_free(_res: number): void {
13065         if(!isWasmInitialized) {
13066                 throw new Error("initializeWasm() must be awaited first!");
13067         }
13068         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_free(_res);
13069         // debug statements here
13070 }
13071         // uintptr_t CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR arg);
13072 /* @internal */
13073 export function CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(arg: number): number {
13074         if(!isWasmInitialized) {
13075                 throw new Error("initializeWasm() must be awaited first!");
13076         }
13077         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(arg);
13078         return nativeResponseValue;
13079 }
13080         // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_clone(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR orig);
13081 /* @internal */
13082 export function CResult_CVec_u8ZPeerHandleErrorZ_clone(orig: number): number {
13083         if(!isWasmInitialized) {
13084                 throw new Error("initializeWasm() must be awaited first!");
13085         }
13086         const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_clone(orig);
13087         return nativeResponseValue;
13088 }
13089         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
13090 /* @internal */
13091 export function CResult_NonePeerHandleErrorZ_ok(): number {
13092         if(!isWasmInitialized) {
13093                 throw new Error("initializeWasm() must be awaited first!");
13094         }
13095         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_ok();
13096         return nativeResponseValue;
13097 }
13098         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e);
13099 /* @internal */
13100 export function CResult_NonePeerHandleErrorZ_err(e: number): number {
13101         if(!isWasmInitialized) {
13102                 throw new Error("initializeWasm() must be awaited first!");
13103         }
13104         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_err(e);
13105         return nativeResponseValue;
13106 }
13107         // bool CResult_NonePeerHandleErrorZ_is_ok(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR o);
13108 /* @internal */
13109 export function CResult_NonePeerHandleErrorZ_is_ok(o: number): boolean {
13110         if(!isWasmInitialized) {
13111                 throw new Error("initializeWasm() must be awaited first!");
13112         }
13113         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_is_ok(o);
13114         return nativeResponseValue;
13115 }
13116         // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res);
13117 /* @internal */
13118 export function CResult_NonePeerHandleErrorZ_free(_res: number): void {
13119         if(!isWasmInitialized) {
13120                 throw new Error("initializeWasm() must be awaited first!");
13121         }
13122         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_free(_res);
13123         // debug statements here
13124 }
13125         // uintptr_t CResult_NonePeerHandleErrorZ_clone_ptr(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR arg);
13126 /* @internal */
13127 export function CResult_NonePeerHandleErrorZ_clone_ptr(arg: number): number {
13128         if(!isWasmInitialized) {
13129                 throw new Error("initializeWasm() must be awaited first!");
13130         }
13131         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_clone_ptr(arg);
13132         return nativeResponseValue;
13133 }
13134         // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_clone(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR orig);
13135 /* @internal */
13136 export function CResult_NonePeerHandleErrorZ_clone(orig: number): number {
13137         if(!isWasmInitialized) {
13138                 throw new Error("initializeWasm() must be awaited first!");
13139         }
13140         const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_clone(orig);
13141         return nativeResponseValue;
13142 }
13143         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o);
13144 /* @internal */
13145 export function CResult_boolPeerHandleErrorZ_ok(o: boolean): number {
13146         if(!isWasmInitialized) {
13147                 throw new Error("initializeWasm() must be awaited first!");
13148         }
13149         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_ok(o);
13150         return nativeResponseValue;
13151 }
13152         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e);
13153 /* @internal */
13154 export function CResult_boolPeerHandleErrorZ_err(e: number): number {
13155         if(!isWasmInitialized) {
13156                 throw new Error("initializeWasm() must be awaited first!");
13157         }
13158         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_err(e);
13159         return nativeResponseValue;
13160 }
13161         // bool CResult_boolPeerHandleErrorZ_is_ok(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR o);
13162 /* @internal */
13163 export function CResult_boolPeerHandleErrorZ_is_ok(o: number): boolean {
13164         if(!isWasmInitialized) {
13165                 throw new Error("initializeWasm() must be awaited first!");
13166         }
13167         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_is_ok(o);
13168         return nativeResponseValue;
13169 }
13170         // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res);
13171 /* @internal */
13172 export function CResult_boolPeerHandleErrorZ_free(_res: number): void {
13173         if(!isWasmInitialized) {
13174                 throw new Error("initializeWasm() must be awaited first!");
13175         }
13176         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_free(_res);
13177         // debug statements here
13178 }
13179         // uintptr_t CResult_boolPeerHandleErrorZ_clone_ptr(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR arg);
13180 /* @internal */
13181 export function CResult_boolPeerHandleErrorZ_clone_ptr(arg: number): number {
13182         if(!isWasmInitialized) {
13183                 throw new Error("initializeWasm() must be awaited first!");
13184         }
13185         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_clone_ptr(arg);
13186         return nativeResponseValue;
13187 }
13188         // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_clone(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR orig);
13189 /* @internal */
13190 export function CResult_boolPeerHandleErrorZ_clone(orig: number): number {
13191         if(!isWasmInitialized) {
13192                 throw new Error("initializeWasm() must be awaited first!");
13193         }
13194         const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_clone(orig);
13195         return nativeResponseValue;
13196 }
13197         // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_ok(void);
13198 /* @internal */
13199 export function CResult_NoneErrorZ_ok(): number {
13200         if(!isWasmInitialized) {
13201                 throw new Error("initializeWasm() must be awaited first!");
13202         }
13203         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_ok();
13204         return nativeResponseValue;
13205 }
13206         // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_err(enum LDKIOError e);
13207 /* @internal */
13208 export function CResult_NoneErrorZ_err(e: IOError): number {
13209         if(!isWasmInitialized) {
13210                 throw new Error("initializeWasm() must be awaited first!");
13211         }
13212         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_err(e);
13213         return nativeResponseValue;
13214 }
13215         // bool CResult_NoneErrorZ_is_ok(const struct LDKCResult_NoneErrorZ *NONNULL_PTR o);
13216 /* @internal */
13217 export function CResult_NoneErrorZ_is_ok(o: number): boolean {
13218         if(!isWasmInitialized) {
13219                 throw new Error("initializeWasm() must be awaited first!");
13220         }
13221         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_is_ok(o);
13222         return nativeResponseValue;
13223 }
13224         // void CResult_NoneErrorZ_free(struct LDKCResult_NoneErrorZ _res);
13225 /* @internal */
13226 export function CResult_NoneErrorZ_free(_res: number): void {
13227         if(!isWasmInitialized) {
13228                 throw new Error("initializeWasm() must be awaited first!");
13229         }
13230         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_free(_res);
13231         // debug statements here
13232 }
13233         // uintptr_t CResult_NoneErrorZ_clone_ptr(LDKCResult_NoneErrorZ *NONNULL_PTR arg);
13234 /* @internal */
13235 export function CResult_NoneErrorZ_clone_ptr(arg: number): number {
13236         if(!isWasmInitialized) {
13237                 throw new Error("initializeWasm() must be awaited first!");
13238         }
13239         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_clone_ptr(arg);
13240         return nativeResponseValue;
13241 }
13242         // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_clone(const struct LDKCResult_NoneErrorZ *NONNULL_PTR orig);
13243 /* @internal */
13244 export function CResult_NoneErrorZ_clone(orig: number): number {
13245         if(!isWasmInitialized) {
13246                 throw new Error("initializeWasm() must be awaited first!");
13247         }
13248         const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_clone(orig);
13249         return nativeResponseValue;
13250 }
13251         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_ok(struct LDKNetAddress o);
13252 /* @internal */
13253 export function CResult_NetAddressDecodeErrorZ_ok(o: number): number {
13254         if(!isWasmInitialized) {
13255                 throw new Error("initializeWasm() must be awaited first!");
13256         }
13257         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_ok(o);
13258         return nativeResponseValue;
13259 }
13260         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_err(struct LDKDecodeError e);
13261 /* @internal */
13262 export function CResult_NetAddressDecodeErrorZ_err(e: number): number {
13263         if(!isWasmInitialized) {
13264                 throw new Error("initializeWasm() must be awaited first!");
13265         }
13266         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_err(e);
13267         return nativeResponseValue;
13268 }
13269         // bool CResult_NetAddressDecodeErrorZ_is_ok(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR o);
13270 /* @internal */
13271 export function CResult_NetAddressDecodeErrorZ_is_ok(o: number): boolean {
13272         if(!isWasmInitialized) {
13273                 throw new Error("initializeWasm() must be awaited first!");
13274         }
13275         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_is_ok(o);
13276         return nativeResponseValue;
13277 }
13278         // void CResult_NetAddressDecodeErrorZ_free(struct LDKCResult_NetAddressDecodeErrorZ _res);
13279 /* @internal */
13280 export function CResult_NetAddressDecodeErrorZ_free(_res: number): void {
13281         if(!isWasmInitialized) {
13282                 throw new Error("initializeWasm() must be awaited first!");
13283         }
13284         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_free(_res);
13285         // debug statements here
13286 }
13287         // uintptr_t CResult_NetAddressDecodeErrorZ_clone_ptr(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR arg);
13288 /* @internal */
13289 export function CResult_NetAddressDecodeErrorZ_clone_ptr(arg: number): number {
13290         if(!isWasmInitialized) {
13291                 throw new Error("initializeWasm() must be awaited first!");
13292         }
13293         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_clone_ptr(arg);
13294         return nativeResponseValue;
13295 }
13296         // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_clone(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR orig);
13297 /* @internal */
13298 export function CResult_NetAddressDecodeErrorZ_clone(orig: number): number {
13299         if(!isWasmInitialized) {
13300                 throw new Error("initializeWasm() must be awaited first!");
13301         }
13302         const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_clone(orig);
13303         return nativeResponseValue;
13304 }
13305         // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res);
13306 /* @internal */
13307 export function CVec_UpdateAddHTLCZ_free(_res: number): void {
13308         if(!isWasmInitialized) {
13309                 throw new Error("initializeWasm() must be awaited first!");
13310         }
13311         const nativeResponseValue = wasm.TS_CVec_UpdateAddHTLCZ_free(_res);
13312         // debug statements here
13313 }
13314         // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res);
13315 /* @internal */
13316 export function CVec_UpdateFulfillHTLCZ_free(_res: number): void {
13317         if(!isWasmInitialized) {
13318                 throw new Error("initializeWasm() must be awaited first!");
13319         }
13320         const nativeResponseValue = wasm.TS_CVec_UpdateFulfillHTLCZ_free(_res);
13321         // debug statements here
13322 }
13323         // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res);
13324 /* @internal */
13325 export function CVec_UpdateFailHTLCZ_free(_res: number): void {
13326         if(!isWasmInitialized) {
13327                 throw new Error("initializeWasm() must be awaited first!");
13328         }
13329         const nativeResponseValue = wasm.TS_CVec_UpdateFailHTLCZ_free(_res);
13330         // debug statements here
13331 }
13332         // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res);
13333 /* @internal */
13334 export function CVec_UpdateFailMalformedHTLCZ_free(_res: number): void {
13335         if(!isWasmInitialized) {
13336                 throw new Error("initializeWasm() must be awaited first!");
13337         }
13338         const nativeResponseValue = wasm.TS_CVec_UpdateFailMalformedHTLCZ_free(_res);
13339         // debug statements here
13340 }
13341         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_ok(struct LDKAcceptChannel o);
13342 /* @internal */
13343 export function CResult_AcceptChannelDecodeErrorZ_ok(o: number): number {
13344         if(!isWasmInitialized) {
13345                 throw new Error("initializeWasm() must be awaited first!");
13346         }
13347         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_ok(o);
13348         return nativeResponseValue;
13349 }
13350         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_err(struct LDKDecodeError e);
13351 /* @internal */
13352 export function CResult_AcceptChannelDecodeErrorZ_err(e: number): number {
13353         if(!isWasmInitialized) {
13354                 throw new Error("initializeWasm() must be awaited first!");
13355         }
13356         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_err(e);
13357         return nativeResponseValue;
13358 }
13359         // bool CResult_AcceptChannelDecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR o);
13360 /* @internal */
13361 export function CResult_AcceptChannelDecodeErrorZ_is_ok(o: number): boolean {
13362         if(!isWasmInitialized) {
13363                 throw new Error("initializeWasm() must be awaited first!");
13364         }
13365         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_is_ok(o);
13366         return nativeResponseValue;
13367 }
13368         // void CResult_AcceptChannelDecodeErrorZ_free(struct LDKCResult_AcceptChannelDecodeErrorZ _res);
13369 /* @internal */
13370 export function CResult_AcceptChannelDecodeErrorZ_free(_res: number): void {
13371         if(!isWasmInitialized) {
13372                 throw new Error("initializeWasm() must be awaited first!");
13373         }
13374         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_free(_res);
13375         // debug statements here
13376 }
13377         // uintptr_t CResult_AcceptChannelDecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR arg);
13378 /* @internal */
13379 export function CResult_AcceptChannelDecodeErrorZ_clone_ptr(arg: number): number {
13380         if(!isWasmInitialized) {
13381                 throw new Error("initializeWasm() must be awaited first!");
13382         }
13383         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_clone_ptr(arg);
13384         return nativeResponseValue;
13385 }
13386         // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_clone(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR orig);
13387 /* @internal */
13388 export function CResult_AcceptChannelDecodeErrorZ_clone(orig: number): number {
13389         if(!isWasmInitialized) {
13390                 throw new Error("initializeWasm() must be awaited first!");
13391         }
13392         const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_clone(orig);
13393         return nativeResponseValue;
13394 }
13395         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_ok(struct LDKAnnouncementSignatures o);
13396 /* @internal */
13397 export function CResult_AnnouncementSignaturesDecodeErrorZ_ok(o: number): number {
13398         if(!isWasmInitialized) {
13399                 throw new Error("initializeWasm() must be awaited first!");
13400         }
13401         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_ok(o);
13402         return nativeResponseValue;
13403 }
13404         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
13405 /* @internal */
13406 export function CResult_AnnouncementSignaturesDecodeErrorZ_err(e: number): number {
13407         if(!isWasmInitialized) {
13408                 throw new Error("initializeWasm() must be awaited first!");
13409         }
13410         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_err(e);
13411         return nativeResponseValue;
13412 }
13413         // bool CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR o);
13414 /* @internal */
13415 export function CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(o: number): boolean {
13416         if(!isWasmInitialized) {
13417                 throw new Error("initializeWasm() must be awaited first!");
13418         }
13419         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(o);
13420         return nativeResponseValue;
13421 }
13422         // void CResult_AnnouncementSignaturesDecodeErrorZ_free(struct LDKCResult_AnnouncementSignaturesDecodeErrorZ _res);
13423 /* @internal */
13424 export function CResult_AnnouncementSignaturesDecodeErrorZ_free(_res: number): void {
13425         if(!isWasmInitialized) {
13426                 throw new Error("initializeWasm() must be awaited first!");
13427         }
13428         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_free(_res);
13429         // debug statements here
13430 }
13431         // uintptr_t CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR arg);
13432 /* @internal */
13433 export function CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(arg: number): number {
13434         if(!isWasmInitialized) {
13435                 throw new Error("initializeWasm() must be awaited first!");
13436         }
13437         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(arg);
13438         return nativeResponseValue;
13439 }
13440         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_clone(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR orig);
13441 /* @internal */
13442 export function CResult_AnnouncementSignaturesDecodeErrorZ_clone(orig: number): number {
13443         if(!isWasmInitialized) {
13444                 throw new Error("initializeWasm() must be awaited first!");
13445         }
13446         const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_clone(orig);
13447         return nativeResponseValue;
13448 }
13449         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o);
13450 /* @internal */
13451 export function CResult_ChannelReestablishDecodeErrorZ_ok(o: number): number {
13452         if(!isWasmInitialized) {
13453                 throw new Error("initializeWasm() must be awaited first!");
13454         }
13455         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_ok(o);
13456         return nativeResponseValue;
13457 }
13458         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e);
13459 /* @internal */
13460 export function CResult_ChannelReestablishDecodeErrorZ_err(e: number): number {
13461         if(!isWasmInitialized) {
13462                 throw new Error("initializeWasm() must be awaited first!");
13463         }
13464         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_err(e);
13465         return nativeResponseValue;
13466 }
13467         // bool CResult_ChannelReestablishDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR o);
13468 /* @internal */
13469 export function CResult_ChannelReestablishDecodeErrorZ_is_ok(o: number): boolean {
13470         if(!isWasmInitialized) {
13471                 throw new Error("initializeWasm() must be awaited first!");
13472         }
13473         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_is_ok(o);
13474         return nativeResponseValue;
13475 }
13476         // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res);
13477 /* @internal */
13478 export function CResult_ChannelReestablishDecodeErrorZ_free(_res: number): void {
13479         if(!isWasmInitialized) {
13480                 throw new Error("initializeWasm() must be awaited first!");
13481         }
13482         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_free(_res);
13483         // debug statements here
13484 }
13485         // uintptr_t CResult_ChannelReestablishDecodeErrorZ_clone_ptr(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR arg);
13486 /* @internal */
13487 export function CResult_ChannelReestablishDecodeErrorZ_clone_ptr(arg: number): number {
13488         if(!isWasmInitialized) {
13489                 throw new Error("initializeWasm() must be awaited first!");
13490         }
13491         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_clone_ptr(arg);
13492         return nativeResponseValue;
13493 }
13494         // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_clone(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR orig);
13495 /* @internal */
13496 export function CResult_ChannelReestablishDecodeErrorZ_clone(orig: number): number {
13497         if(!isWasmInitialized) {
13498                 throw new Error("initializeWasm() must be awaited first!");
13499         }
13500         const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_clone(orig);
13501         return nativeResponseValue;
13502 }
13503         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_ok(struct LDKClosingSigned o);
13504 /* @internal */
13505 export function CResult_ClosingSignedDecodeErrorZ_ok(o: number): number {
13506         if(!isWasmInitialized) {
13507                 throw new Error("initializeWasm() must be awaited first!");
13508         }
13509         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_ok(o);
13510         return nativeResponseValue;
13511 }
13512         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_err(struct LDKDecodeError e);
13513 /* @internal */
13514 export function CResult_ClosingSignedDecodeErrorZ_err(e: number): number {
13515         if(!isWasmInitialized) {
13516                 throw new Error("initializeWasm() must be awaited first!");
13517         }
13518         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_err(e);
13519         return nativeResponseValue;
13520 }
13521         // bool CResult_ClosingSignedDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR o);
13522 /* @internal */
13523 export function CResult_ClosingSignedDecodeErrorZ_is_ok(o: number): boolean {
13524         if(!isWasmInitialized) {
13525                 throw new Error("initializeWasm() must be awaited first!");
13526         }
13527         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_is_ok(o);
13528         return nativeResponseValue;
13529 }
13530         // void CResult_ClosingSignedDecodeErrorZ_free(struct LDKCResult_ClosingSignedDecodeErrorZ _res);
13531 /* @internal */
13532 export function CResult_ClosingSignedDecodeErrorZ_free(_res: number): void {
13533         if(!isWasmInitialized) {
13534                 throw new Error("initializeWasm() must be awaited first!");
13535         }
13536         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_free(_res);
13537         // debug statements here
13538 }
13539         // uintptr_t CResult_ClosingSignedDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR arg);
13540 /* @internal */
13541 export function CResult_ClosingSignedDecodeErrorZ_clone_ptr(arg: number): number {
13542         if(!isWasmInitialized) {
13543                 throw new Error("initializeWasm() must be awaited first!");
13544         }
13545         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_clone_ptr(arg);
13546         return nativeResponseValue;
13547 }
13548         // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR orig);
13549 /* @internal */
13550 export function CResult_ClosingSignedDecodeErrorZ_clone(orig: number): number {
13551         if(!isWasmInitialized) {
13552                 throw new Error("initializeWasm() must be awaited first!");
13553         }
13554         const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_clone(orig);
13555         return nativeResponseValue;
13556 }
13557         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(struct LDKClosingSignedFeeRange o);
13558 /* @internal */
13559 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(o: number): number {
13560         if(!isWasmInitialized) {
13561                 throw new Error("initializeWasm() must be awaited first!");
13562         }
13563         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(o);
13564         return nativeResponseValue;
13565 }
13566         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_err(struct LDKDecodeError e);
13567 /* @internal */
13568 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_err(e: number): number {
13569         if(!isWasmInitialized) {
13570                 throw new Error("initializeWasm() must be awaited first!");
13571         }
13572         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_err(e);
13573         return nativeResponseValue;
13574 }
13575         // bool CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR o);
13576 /* @internal */
13577 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(o: number): boolean {
13578         if(!isWasmInitialized) {
13579                 throw new Error("initializeWasm() must be awaited first!");
13580         }
13581         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(o);
13582         return nativeResponseValue;
13583 }
13584         // void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ _res);
13585 /* @internal */
13586 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_free(_res: number): void {
13587         if(!isWasmInitialized) {
13588                 throw new Error("initializeWasm() must be awaited first!");
13589         }
13590         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_free(_res);
13591         // debug statements here
13592 }
13593         // uintptr_t CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR arg);
13594 /* @internal */
13595 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(arg: number): number {
13596         if(!isWasmInitialized) {
13597                 throw new Error("initializeWasm() must be awaited first!");
13598         }
13599         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(arg);
13600         return nativeResponseValue;
13601 }
13602         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR orig);
13603 /* @internal */
13604 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(orig: number): number {
13605         if(!isWasmInitialized) {
13606                 throw new Error("initializeWasm() must be awaited first!");
13607         }
13608         const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(orig);
13609         return nativeResponseValue;
13610 }
13611         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_ok(struct LDKCommitmentSigned o);
13612 /* @internal */
13613 export function CResult_CommitmentSignedDecodeErrorZ_ok(o: number): number {
13614         if(!isWasmInitialized) {
13615                 throw new Error("initializeWasm() must be awaited first!");
13616         }
13617         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_ok(o);
13618         return nativeResponseValue;
13619 }
13620         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_err(struct LDKDecodeError e);
13621 /* @internal */
13622 export function CResult_CommitmentSignedDecodeErrorZ_err(e: number): number {
13623         if(!isWasmInitialized) {
13624                 throw new Error("initializeWasm() must be awaited first!");
13625         }
13626         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_err(e);
13627         return nativeResponseValue;
13628 }
13629         // bool CResult_CommitmentSignedDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR o);
13630 /* @internal */
13631 export function CResult_CommitmentSignedDecodeErrorZ_is_ok(o: number): boolean {
13632         if(!isWasmInitialized) {
13633                 throw new Error("initializeWasm() must be awaited first!");
13634         }
13635         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_is_ok(o);
13636         return nativeResponseValue;
13637 }
13638         // void CResult_CommitmentSignedDecodeErrorZ_free(struct LDKCResult_CommitmentSignedDecodeErrorZ _res);
13639 /* @internal */
13640 export function CResult_CommitmentSignedDecodeErrorZ_free(_res: number): void {
13641         if(!isWasmInitialized) {
13642                 throw new Error("initializeWasm() must be awaited first!");
13643         }
13644         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_free(_res);
13645         // debug statements here
13646 }
13647         // uintptr_t CResult_CommitmentSignedDecodeErrorZ_clone_ptr(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR arg);
13648 /* @internal */
13649 export function CResult_CommitmentSignedDecodeErrorZ_clone_ptr(arg: number): number {
13650         if(!isWasmInitialized) {
13651                 throw new Error("initializeWasm() must be awaited first!");
13652         }
13653         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_clone_ptr(arg);
13654         return nativeResponseValue;
13655 }
13656         // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_clone(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR orig);
13657 /* @internal */
13658 export function CResult_CommitmentSignedDecodeErrorZ_clone(orig: number): number {
13659         if(!isWasmInitialized) {
13660                 throw new Error("initializeWasm() must be awaited first!");
13661         }
13662         const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_clone(orig);
13663         return nativeResponseValue;
13664 }
13665         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_ok(struct LDKFundingCreated o);
13666 /* @internal */
13667 export function CResult_FundingCreatedDecodeErrorZ_ok(o: number): number {
13668         if(!isWasmInitialized) {
13669                 throw new Error("initializeWasm() must be awaited first!");
13670         }
13671         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_ok(o);
13672         return nativeResponseValue;
13673 }
13674         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_err(struct LDKDecodeError e);
13675 /* @internal */
13676 export function CResult_FundingCreatedDecodeErrorZ_err(e: number): number {
13677         if(!isWasmInitialized) {
13678                 throw new Error("initializeWasm() must be awaited first!");
13679         }
13680         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_err(e);
13681         return nativeResponseValue;
13682 }
13683         // bool CResult_FundingCreatedDecodeErrorZ_is_ok(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR o);
13684 /* @internal */
13685 export function CResult_FundingCreatedDecodeErrorZ_is_ok(o: number): boolean {
13686         if(!isWasmInitialized) {
13687                 throw new Error("initializeWasm() must be awaited first!");
13688         }
13689         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_is_ok(o);
13690         return nativeResponseValue;
13691 }
13692         // void CResult_FundingCreatedDecodeErrorZ_free(struct LDKCResult_FundingCreatedDecodeErrorZ _res);
13693 /* @internal */
13694 export function CResult_FundingCreatedDecodeErrorZ_free(_res: number): void {
13695         if(!isWasmInitialized) {
13696                 throw new Error("initializeWasm() must be awaited first!");
13697         }
13698         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_free(_res);
13699         // debug statements here
13700 }
13701         // uintptr_t CResult_FundingCreatedDecodeErrorZ_clone_ptr(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR arg);
13702 /* @internal */
13703 export function CResult_FundingCreatedDecodeErrorZ_clone_ptr(arg: number): number {
13704         if(!isWasmInitialized) {
13705                 throw new Error("initializeWasm() must be awaited first!");
13706         }
13707         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_clone_ptr(arg);
13708         return nativeResponseValue;
13709 }
13710         // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_clone(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR orig);
13711 /* @internal */
13712 export function CResult_FundingCreatedDecodeErrorZ_clone(orig: number): number {
13713         if(!isWasmInitialized) {
13714                 throw new Error("initializeWasm() must be awaited first!");
13715         }
13716         const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_clone(orig);
13717         return nativeResponseValue;
13718 }
13719         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_ok(struct LDKFundingSigned o);
13720 /* @internal */
13721 export function CResult_FundingSignedDecodeErrorZ_ok(o: number): number {
13722         if(!isWasmInitialized) {
13723                 throw new Error("initializeWasm() must be awaited first!");
13724         }
13725         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_ok(o);
13726         return nativeResponseValue;
13727 }
13728         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_err(struct LDKDecodeError e);
13729 /* @internal */
13730 export function CResult_FundingSignedDecodeErrorZ_err(e: number): number {
13731         if(!isWasmInitialized) {
13732                 throw new Error("initializeWasm() must be awaited first!");
13733         }
13734         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_err(e);
13735         return nativeResponseValue;
13736 }
13737         // bool CResult_FundingSignedDecodeErrorZ_is_ok(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR o);
13738 /* @internal */
13739 export function CResult_FundingSignedDecodeErrorZ_is_ok(o: number): boolean {
13740         if(!isWasmInitialized) {
13741                 throw new Error("initializeWasm() must be awaited first!");
13742         }
13743         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_is_ok(o);
13744         return nativeResponseValue;
13745 }
13746         // void CResult_FundingSignedDecodeErrorZ_free(struct LDKCResult_FundingSignedDecodeErrorZ _res);
13747 /* @internal */
13748 export function CResult_FundingSignedDecodeErrorZ_free(_res: number): void {
13749         if(!isWasmInitialized) {
13750                 throw new Error("initializeWasm() must be awaited first!");
13751         }
13752         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_free(_res);
13753         // debug statements here
13754 }
13755         // uintptr_t CResult_FundingSignedDecodeErrorZ_clone_ptr(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR arg);
13756 /* @internal */
13757 export function CResult_FundingSignedDecodeErrorZ_clone_ptr(arg: number): number {
13758         if(!isWasmInitialized) {
13759                 throw new Error("initializeWasm() must be awaited first!");
13760         }
13761         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_clone_ptr(arg);
13762         return nativeResponseValue;
13763 }
13764         // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_clone(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR orig);
13765 /* @internal */
13766 export function CResult_FundingSignedDecodeErrorZ_clone(orig: number): number {
13767         if(!isWasmInitialized) {
13768                 throw new Error("initializeWasm() must be awaited first!");
13769         }
13770         const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_clone(orig);
13771         return nativeResponseValue;
13772 }
13773         // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_ok(struct LDKChannelReady o);
13774 /* @internal */
13775 export function CResult_ChannelReadyDecodeErrorZ_ok(o: number): number {
13776         if(!isWasmInitialized) {
13777                 throw new Error("initializeWasm() must be awaited first!");
13778         }
13779         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_ok(o);
13780         return nativeResponseValue;
13781 }
13782         // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_err(struct LDKDecodeError e);
13783 /* @internal */
13784 export function CResult_ChannelReadyDecodeErrorZ_err(e: number): number {
13785         if(!isWasmInitialized) {
13786                 throw new Error("initializeWasm() must be awaited first!");
13787         }
13788         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_err(e);
13789         return nativeResponseValue;
13790 }
13791         // bool CResult_ChannelReadyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR o);
13792 /* @internal */
13793 export function CResult_ChannelReadyDecodeErrorZ_is_ok(o: number): boolean {
13794         if(!isWasmInitialized) {
13795                 throw new Error("initializeWasm() must be awaited first!");
13796         }
13797         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_is_ok(o);
13798         return nativeResponseValue;
13799 }
13800         // void CResult_ChannelReadyDecodeErrorZ_free(struct LDKCResult_ChannelReadyDecodeErrorZ _res);
13801 /* @internal */
13802 export function CResult_ChannelReadyDecodeErrorZ_free(_res: number): void {
13803         if(!isWasmInitialized) {
13804                 throw new Error("initializeWasm() must be awaited first!");
13805         }
13806         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_free(_res);
13807         // debug statements here
13808 }
13809         // uintptr_t CResult_ChannelReadyDecodeErrorZ_clone_ptr(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR arg);
13810 /* @internal */
13811 export function CResult_ChannelReadyDecodeErrorZ_clone_ptr(arg: number): number {
13812         if(!isWasmInitialized) {
13813                 throw new Error("initializeWasm() must be awaited first!");
13814         }
13815         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_clone_ptr(arg);
13816         return nativeResponseValue;
13817 }
13818         // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_clone(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR orig);
13819 /* @internal */
13820 export function CResult_ChannelReadyDecodeErrorZ_clone(orig: number): number {
13821         if(!isWasmInitialized) {
13822                 throw new Error("initializeWasm() must be awaited first!");
13823         }
13824         const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_clone(orig);
13825         return nativeResponseValue;
13826 }
13827         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o);
13828 /* @internal */
13829 export function CResult_InitDecodeErrorZ_ok(o: number): number {
13830         if(!isWasmInitialized) {
13831                 throw new Error("initializeWasm() must be awaited first!");
13832         }
13833         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_ok(o);
13834         return nativeResponseValue;
13835 }
13836         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e);
13837 /* @internal */
13838 export function CResult_InitDecodeErrorZ_err(e: number): number {
13839         if(!isWasmInitialized) {
13840                 throw new Error("initializeWasm() must be awaited first!");
13841         }
13842         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_err(e);
13843         return nativeResponseValue;
13844 }
13845         // bool CResult_InitDecodeErrorZ_is_ok(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR o);
13846 /* @internal */
13847 export function CResult_InitDecodeErrorZ_is_ok(o: number): boolean {
13848         if(!isWasmInitialized) {
13849                 throw new Error("initializeWasm() must be awaited first!");
13850         }
13851         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_is_ok(o);
13852         return nativeResponseValue;
13853 }
13854         // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res);
13855 /* @internal */
13856 export function CResult_InitDecodeErrorZ_free(_res: number): void {
13857         if(!isWasmInitialized) {
13858                 throw new Error("initializeWasm() must be awaited first!");
13859         }
13860         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_free(_res);
13861         // debug statements here
13862 }
13863         // uintptr_t CResult_InitDecodeErrorZ_clone_ptr(LDKCResult_InitDecodeErrorZ *NONNULL_PTR arg);
13864 /* @internal */
13865 export function CResult_InitDecodeErrorZ_clone_ptr(arg: number): number {
13866         if(!isWasmInitialized) {
13867                 throw new Error("initializeWasm() must be awaited first!");
13868         }
13869         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_clone_ptr(arg);
13870         return nativeResponseValue;
13871 }
13872         // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_clone(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR orig);
13873 /* @internal */
13874 export function CResult_InitDecodeErrorZ_clone(orig: number): number {
13875         if(!isWasmInitialized) {
13876                 throw new Error("initializeWasm() must be awaited first!");
13877         }
13878         const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_clone(orig);
13879         return nativeResponseValue;
13880 }
13881         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_ok(struct LDKOpenChannel o);
13882 /* @internal */
13883 export function CResult_OpenChannelDecodeErrorZ_ok(o: number): number {
13884         if(!isWasmInitialized) {
13885                 throw new Error("initializeWasm() must be awaited first!");
13886         }
13887         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_ok(o);
13888         return nativeResponseValue;
13889 }
13890         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_err(struct LDKDecodeError e);
13891 /* @internal */
13892 export function CResult_OpenChannelDecodeErrorZ_err(e: number): number {
13893         if(!isWasmInitialized) {
13894                 throw new Error("initializeWasm() must be awaited first!");
13895         }
13896         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_err(e);
13897         return nativeResponseValue;
13898 }
13899         // bool CResult_OpenChannelDecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR o);
13900 /* @internal */
13901 export function CResult_OpenChannelDecodeErrorZ_is_ok(o: number): boolean {
13902         if(!isWasmInitialized) {
13903                 throw new Error("initializeWasm() must be awaited first!");
13904         }
13905         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_is_ok(o);
13906         return nativeResponseValue;
13907 }
13908         // void CResult_OpenChannelDecodeErrorZ_free(struct LDKCResult_OpenChannelDecodeErrorZ _res);
13909 /* @internal */
13910 export function CResult_OpenChannelDecodeErrorZ_free(_res: number): void {
13911         if(!isWasmInitialized) {
13912                 throw new Error("initializeWasm() must be awaited first!");
13913         }
13914         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_free(_res);
13915         // debug statements here
13916 }
13917         // uintptr_t CResult_OpenChannelDecodeErrorZ_clone_ptr(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR arg);
13918 /* @internal */
13919 export function CResult_OpenChannelDecodeErrorZ_clone_ptr(arg: number): number {
13920         if(!isWasmInitialized) {
13921                 throw new Error("initializeWasm() must be awaited first!");
13922         }
13923         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_clone_ptr(arg);
13924         return nativeResponseValue;
13925 }
13926         // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_clone(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR orig);
13927 /* @internal */
13928 export function CResult_OpenChannelDecodeErrorZ_clone(orig: number): number {
13929         if(!isWasmInitialized) {
13930                 throw new Error("initializeWasm() must be awaited first!");
13931         }
13932         const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_clone(orig);
13933         return nativeResponseValue;
13934 }
13935         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_ok(struct LDKRevokeAndACK o);
13936 /* @internal */
13937 export function CResult_RevokeAndACKDecodeErrorZ_ok(o: number): number {
13938         if(!isWasmInitialized) {
13939                 throw new Error("initializeWasm() must be awaited first!");
13940         }
13941         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_ok(o);
13942         return nativeResponseValue;
13943 }
13944         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_err(struct LDKDecodeError e);
13945 /* @internal */
13946 export function CResult_RevokeAndACKDecodeErrorZ_err(e: number): number {
13947         if(!isWasmInitialized) {
13948                 throw new Error("initializeWasm() must be awaited first!");
13949         }
13950         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_err(e);
13951         return nativeResponseValue;
13952 }
13953         // bool CResult_RevokeAndACKDecodeErrorZ_is_ok(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR o);
13954 /* @internal */
13955 export function CResult_RevokeAndACKDecodeErrorZ_is_ok(o: number): boolean {
13956         if(!isWasmInitialized) {
13957                 throw new Error("initializeWasm() must be awaited first!");
13958         }
13959         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_is_ok(o);
13960         return nativeResponseValue;
13961 }
13962         // void CResult_RevokeAndACKDecodeErrorZ_free(struct LDKCResult_RevokeAndACKDecodeErrorZ _res);
13963 /* @internal */
13964 export function CResult_RevokeAndACKDecodeErrorZ_free(_res: number): void {
13965         if(!isWasmInitialized) {
13966                 throw new Error("initializeWasm() must be awaited first!");
13967         }
13968         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_free(_res);
13969         // debug statements here
13970 }
13971         // uintptr_t CResult_RevokeAndACKDecodeErrorZ_clone_ptr(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR arg);
13972 /* @internal */
13973 export function CResult_RevokeAndACKDecodeErrorZ_clone_ptr(arg: number): number {
13974         if(!isWasmInitialized) {
13975                 throw new Error("initializeWasm() must be awaited first!");
13976         }
13977         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_clone_ptr(arg);
13978         return nativeResponseValue;
13979 }
13980         // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_clone(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR orig);
13981 /* @internal */
13982 export function CResult_RevokeAndACKDecodeErrorZ_clone(orig: number): number {
13983         if(!isWasmInitialized) {
13984                 throw new Error("initializeWasm() must be awaited first!");
13985         }
13986         const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_clone(orig);
13987         return nativeResponseValue;
13988 }
13989         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_ok(struct LDKShutdown o);
13990 /* @internal */
13991 export function CResult_ShutdownDecodeErrorZ_ok(o: number): number {
13992         if(!isWasmInitialized) {
13993                 throw new Error("initializeWasm() must be awaited first!");
13994         }
13995         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_ok(o);
13996         return nativeResponseValue;
13997 }
13998         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_err(struct LDKDecodeError e);
13999 /* @internal */
14000 export function CResult_ShutdownDecodeErrorZ_err(e: number): number {
14001         if(!isWasmInitialized) {
14002                 throw new Error("initializeWasm() must be awaited first!");
14003         }
14004         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_err(e);
14005         return nativeResponseValue;
14006 }
14007         // bool CResult_ShutdownDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR o);
14008 /* @internal */
14009 export function CResult_ShutdownDecodeErrorZ_is_ok(o: number): boolean {
14010         if(!isWasmInitialized) {
14011                 throw new Error("initializeWasm() must be awaited first!");
14012         }
14013         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_is_ok(o);
14014         return nativeResponseValue;
14015 }
14016         // void CResult_ShutdownDecodeErrorZ_free(struct LDKCResult_ShutdownDecodeErrorZ _res);
14017 /* @internal */
14018 export function CResult_ShutdownDecodeErrorZ_free(_res: number): void {
14019         if(!isWasmInitialized) {
14020                 throw new Error("initializeWasm() must be awaited first!");
14021         }
14022         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_free(_res);
14023         // debug statements here
14024 }
14025         // uintptr_t CResult_ShutdownDecodeErrorZ_clone_ptr(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR arg);
14026 /* @internal */
14027 export function CResult_ShutdownDecodeErrorZ_clone_ptr(arg: number): number {
14028         if(!isWasmInitialized) {
14029                 throw new Error("initializeWasm() must be awaited first!");
14030         }
14031         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_clone_ptr(arg);
14032         return nativeResponseValue;
14033 }
14034         // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_clone(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR orig);
14035 /* @internal */
14036 export function CResult_ShutdownDecodeErrorZ_clone(orig: number): number {
14037         if(!isWasmInitialized) {
14038                 throw new Error("initializeWasm() must be awaited first!");
14039         }
14040         const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_clone(orig);
14041         return nativeResponseValue;
14042 }
14043         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_ok(struct LDKUpdateFailHTLC o);
14044 /* @internal */
14045 export function CResult_UpdateFailHTLCDecodeErrorZ_ok(o: number): number {
14046         if(!isWasmInitialized) {
14047                 throw new Error("initializeWasm() must be awaited first!");
14048         }
14049         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_ok(o);
14050         return nativeResponseValue;
14051 }
14052         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_err(struct LDKDecodeError e);
14053 /* @internal */
14054 export function CResult_UpdateFailHTLCDecodeErrorZ_err(e: number): number {
14055         if(!isWasmInitialized) {
14056                 throw new Error("initializeWasm() must be awaited first!");
14057         }
14058         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_err(e);
14059         return nativeResponseValue;
14060 }
14061         // bool CResult_UpdateFailHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR o);
14062 /* @internal */
14063 export function CResult_UpdateFailHTLCDecodeErrorZ_is_ok(o: number): boolean {
14064         if(!isWasmInitialized) {
14065                 throw new Error("initializeWasm() must be awaited first!");
14066         }
14067         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_is_ok(o);
14068         return nativeResponseValue;
14069 }
14070         // void CResult_UpdateFailHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailHTLCDecodeErrorZ _res);
14071 /* @internal */
14072 export function CResult_UpdateFailHTLCDecodeErrorZ_free(_res: number): void {
14073         if(!isWasmInitialized) {
14074                 throw new Error("initializeWasm() must be awaited first!");
14075         }
14076         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_free(_res);
14077         // debug statements here
14078 }
14079         // uintptr_t CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR arg);
14080 /* @internal */
14081 export function CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(arg: number): number {
14082         if(!isWasmInitialized) {
14083                 throw new Error("initializeWasm() must be awaited first!");
14084         }
14085         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(arg);
14086         return nativeResponseValue;
14087 }
14088         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR orig);
14089 /* @internal */
14090 export function CResult_UpdateFailHTLCDecodeErrorZ_clone(orig: number): number {
14091         if(!isWasmInitialized) {
14092                 throw new Error("initializeWasm() must be awaited first!");
14093         }
14094         const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_clone(orig);
14095         return nativeResponseValue;
14096 }
14097         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(struct LDKUpdateFailMalformedHTLC o);
14098 /* @internal */
14099 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(o: number): number {
14100         if(!isWasmInitialized) {
14101                 throw new Error("initializeWasm() must be awaited first!");
14102         }
14103         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(o);
14104         return nativeResponseValue;
14105 }
14106         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
14107 /* @internal */
14108 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(e: number): number {
14109         if(!isWasmInitialized) {
14110                 throw new Error("initializeWasm() must be awaited first!");
14111         }
14112         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(e);
14113         return nativeResponseValue;
14114 }
14115         // bool CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR o);
14116 /* @internal */
14117 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(o: number): boolean {
14118         if(!isWasmInitialized) {
14119                 throw new Error("initializeWasm() must be awaited first!");
14120         }
14121         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(o);
14122         return nativeResponseValue;
14123 }
14124         // void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ _res);
14125 /* @internal */
14126 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(_res: number): void {
14127         if(!isWasmInitialized) {
14128                 throw new Error("initializeWasm() must be awaited first!");
14129         }
14130         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(_res);
14131         // debug statements here
14132 }
14133         // uintptr_t CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR arg);
14134 /* @internal */
14135 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(arg: number): number {
14136         if(!isWasmInitialized) {
14137                 throw new Error("initializeWasm() must be awaited first!");
14138         }
14139         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(arg);
14140         return nativeResponseValue;
14141 }
14142         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR orig);
14143 /* @internal */
14144 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(orig: number): number {
14145         if(!isWasmInitialized) {
14146                 throw new Error("initializeWasm() must be awaited first!");
14147         }
14148         const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(orig);
14149         return nativeResponseValue;
14150 }
14151         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_ok(struct LDKUpdateFee o);
14152 /* @internal */
14153 export function CResult_UpdateFeeDecodeErrorZ_ok(o: number): number {
14154         if(!isWasmInitialized) {
14155                 throw new Error("initializeWasm() must be awaited first!");
14156         }
14157         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_ok(o);
14158         return nativeResponseValue;
14159 }
14160         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_err(struct LDKDecodeError e);
14161 /* @internal */
14162 export function CResult_UpdateFeeDecodeErrorZ_err(e: number): number {
14163         if(!isWasmInitialized) {
14164                 throw new Error("initializeWasm() must be awaited first!");
14165         }
14166         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_err(e);
14167         return nativeResponseValue;
14168 }
14169         // bool CResult_UpdateFeeDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR o);
14170 /* @internal */
14171 export function CResult_UpdateFeeDecodeErrorZ_is_ok(o: number): boolean {
14172         if(!isWasmInitialized) {
14173                 throw new Error("initializeWasm() must be awaited first!");
14174         }
14175         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_is_ok(o);
14176         return nativeResponseValue;
14177 }
14178         // void CResult_UpdateFeeDecodeErrorZ_free(struct LDKCResult_UpdateFeeDecodeErrorZ _res);
14179 /* @internal */
14180 export function CResult_UpdateFeeDecodeErrorZ_free(_res: number): void {
14181         if(!isWasmInitialized) {
14182                 throw new Error("initializeWasm() must be awaited first!");
14183         }
14184         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_free(_res);
14185         // debug statements here
14186 }
14187         // uintptr_t CResult_UpdateFeeDecodeErrorZ_clone_ptr(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR arg);
14188 /* @internal */
14189 export function CResult_UpdateFeeDecodeErrorZ_clone_ptr(arg: number): number {
14190         if(!isWasmInitialized) {
14191                 throw new Error("initializeWasm() must be awaited first!");
14192         }
14193         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_clone_ptr(arg);
14194         return nativeResponseValue;
14195 }
14196         // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_clone(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR orig);
14197 /* @internal */
14198 export function CResult_UpdateFeeDecodeErrorZ_clone(orig: number): number {
14199         if(!isWasmInitialized) {
14200                 throw new Error("initializeWasm() must be awaited first!");
14201         }
14202         const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_clone(orig);
14203         return nativeResponseValue;
14204 }
14205         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_ok(struct LDKUpdateFulfillHTLC o);
14206 /* @internal */
14207 export function CResult_UpdateFulfillHTLCDecodeErrorZ_ok(o: number): number {
14208         if(!isWasmInitialized) {
14209                 throw new Error("initializeWasm() must be awaited first!");
14210         }
14211         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_ok(o);
14212         return nativeResponseValue;
14213 }
14214         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_err(struct LDKDecodeError e);
14215 /* @internal */
14216 export function CResult_UpdateFulfillHTLCDecodeErrorZ_err(e: number): number {
14217         if(!isWasmInitialized) {
14218                 throw new Error("initializeWasm() must be awaited first!");
14219         }
14220         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_err(e);
14221         return nativeResponseValue;
14222 }
14223         // bool CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR o);
14224 /* @internal */
14225 export function CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(o: number): boolean {
14226         if(!isWasmInitialized) {
14227                 throw new Error("initializeWasm() must be awaited first!");
14228         }
14229         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(o);
14230         return nativeResponseValue;
14231 }
14232         // void CResult_UpdateFulfillHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ _res);
14233 /* @internal */
14234 export function CResult_UpdateFulfillHTLCDecodeErrorZ_free(_res: number): void {
14235         if(!isWasmInitialized) {
14236                 throw new Error("initializeWasm() must be awaited first!");
14237         }
14238         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_free(_res);
14239         // debug statements here
14240 }
14241         // uintptr_t CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR arg);
14242 /* @internal */
14243 export function CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(arg: number): number {
14244         if(!isWasmInitialized) {
14245                 throw new Error("initializeWasm() must be awaited first!");
14246         }
14247         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(arg);
14248         return nativeResponseValue;
14249 }
14250         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR orig);
14251 /* @internal */
14252 export function CResult_UpdateFulfillHTLCDecodeErrorZ_clone(orig: number): number {
14253         if(!isWasmInitialized) {
14254                 throw new Error("initializeWasm() must be awaited first!");
14255         }
14256         const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_clone(orig);
14257         return nativeResponseValue;
14258 }
14259         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_ok(struct LDKUpdateAddHTLC o);
14260 /* @internal */
14261 export function CResult_UpdateAddHTLCDecodeErrorZ_ok(o: number): number {
14262         if(!isWasmInitialized) {
14263                 throw new Error("initializeWasm() must be awaited first!");
14264         }
14265         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_ok(o);
14266         return nativeResponseValue;
14267 }
14268         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_err(struct LDKDecodeError e);
14269 /* @internal */
14270 export function CResult_UpdateAddHTLCDecodeErrorZ_err(e: number): number {
14271         if(!isWasmInitialized) {
14272                 throw new Error("initializeWasm() must be awaited first!");
14273         }
14274         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_err(e);
14275         return nativeResponseValue;
14276 }
14277         // bool CResult_UpdateAddHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR o);
14278 /* @internal */
14279 export function CResult_UpdateAddHTLCDecodeErrorZ_is_ok(o: number): boolean {
14280         if(!isWasmInitialized) {
14281                 throw new Error("initializeWasm() must be awaited first!");
14282         }
14283         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_is_ok(o);
14284         return nativeResponseValue;
14285 }
14286         // void CResult_UpdateAddHTLCDecodeErrorZ_free(struct LDKCResult_UpdateAddHTLCDecodeErrorZ _res);
14287 /* @internal */
14288 export function CResult_UpdateAddHTLCDecodeErrorZ_free(_res: number): void {
14289         if(!isWasmInitialized) {
14290                 throw new Error("initializeWasm() must be awaited first!");
14291         }
14292         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_free(_res);
14293         // debug statements here
14294 }
14295         // uintptr_t CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR arg);
14296 /* @internal */
14297 export function CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(arg: number): number {
14298         if(!isWasmInitialized) {
14299                 throw new Error("initializeWasm() must be awaited first!");
14300         }
14301         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(arg);
14302         return nativeResponseValue;
14303 }
14304         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR orig);
14305 /* @internal */
14306 export function CResult_UpdateAddHTLCDecodeErrorZ_clone(orig: number): number {
14307         if(!isWasmInitialized) {
14308                 throw new Error("initializeWasm() must be awaited first!");
14309         }
14310         const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_clone(orig);
14311         return nativeResponseValue;
14312 }
14313         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o);
14314 /* @internal */
14315 export function CResult_PingDecodeErrorZ_ok(o: number): number {
14316         if(!isWasmInitialized) {
14317                 throw new Error("initializeWasm() must be awaited first!");
14318         }
14319         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_ok(o);
14320         return nativeResponseValue;
14321 }
14322         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e);
14323 /* @internal */
14324 export function CResult_PingDecodeErrorZ_err(e: number): number {
14325         if(!isWasmInitialized) {
14326                 throw new Error("initializeWasm() must be awaited first!");
14327         }
14328         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_err(e);
14329         return nativeResponseValue;
14330 }
14331         // bool CResult_PingDecodeErrorZ_is_ok(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR o);
14332 /* @internal */
14333 export function CResult_PingDecodeErrorZ_is_ok(o: number): boolean {
14334         if(!isWasmInitialized) {
14335                 throw new Error("initializeWasm() must be awaited first!");
14336         }
14337         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_is_ok(o);
14338         return nativeResponseValue;
14339 }
14340         // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res);
14341 /* @internal */
14342 export function CResult_PingDecodeErrorZ_free(_res: number): void {
14343         if(!isWasmInitialized) {
14344                 throw new Error("initializeWasm() must be awaited first!");
14345         }
14346         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_free(_res);
14347         // debug statements here
14348 }
14349         // uintptr_t CResult_PingDecodeErrorZ_clone_ptr(LDKCResult_PingDecodeErrorZ *NONNULL_PTR arg);
14350 /* @internal */
14351 export function CResult_PingDecodeErrorZ_clone_ptr(arg: number): number {
14352         if(!isWasmInitialized) {
14353                 throw new Error("initializeWasm() must be awaited first!");
14354         }
14355         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_clone_ptr(arg);
14356         return nativeResponseValue;
14357 }
14358         // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_clone(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR orig);
14359 /* @internal */
14360 export function CResult_PingDecodeErrorZ_clone(orig: number): number {
14361         if(!isWasmInitialized) {
14362                 throw new Error("initializeWasm() must be awaited first!");
14363         }
14364         const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_clone(orig);
14365         return nativeResponseValue;
14366 }
14367         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o);
14368 /* @internal */
14369 export function CResult_PongDecodeErrorZ_ok(o: number): number {
14370         if(!isWasmInitialized) {
14371                 throw new Error("initializeWasm() must be awaited first!");
14372         }
14373         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_ok(o);
14374         return nativeResponseValue;
14375 }
14376         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e);
14377 /* @internal */
14378 export function CResult_PongDecodeErrorZ_err(e: number): number {
14379         if(!isWasmInitialized) {
14380                 throw new Error("initializeWasm() must be awaited first!");
14381         }
14382         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_err(e);
14383         return nativeResponseValue;
14384 }
14385         // bool CResult_PongDecodeErrorZ_is_ok(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR o);
14386 /* @internal */
14387 export function CResult_PongDecodeErrorZ_is_ok(o: number): boolean {
14388         if(!isWasmInitialized) {
14389                 throw new Error("initializeWasm() must be awaited first!");
14390         }
14391         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_is_ok(o);
14392         return nativeResponseValue;
14393 }
14394         // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res);
14395 /* @internal */
14396 export function CResult_PongDecodeErrorZ_free(_res: number): void {
14397         if(!isWasmInitialized) {
14398                 throw new Error("initializeWasm() must be awaited first!");
14399         }
14400         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_free(_res);
14401         // debug statements here
14402 }
14403         // uintptr_t CResult_PongDecodeErrorZ_clone_ptr(LDKCResult_PongDecodeErrorZ *NONNULL_PTR arg);
14404 /* @internal */
14405 export function CResult_PongDecodeErrorZ_clone_ptr(arg: number): number {
14406         if(!isWasmInitialized) {
14407                 throw new Error("initializeWasm() must be awaited first!");
14408         }
14409         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_clone_ptr(arg);
14410         return nativeResponseValue;
14411 }
14412         // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_clone(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR orig);
14413 /* @internal */
14414 export function CResult_PongDecodeErrorZ_clone(orig: number): number {
14415         if(!isWasmInitialized) {
14416                 throw new Error("initializeWasm() must be awaited first!");
14417         }
14418         const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_clone(orig);
14419         return nativeResponseValue;
14420 }
14421         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o);
14422 /* @internal */
14423 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(o: number): number {
14424         if(!isWasmInitialized) {
14425                 throw new Error("initializeWasm() must be awaited first!");
14426         }
14427         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(o);
14428         return nativeResponseValue;
14429 }
14430         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
14431 /* @internal */
14432 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(e: number): number {
14433         if(!isWasmInitialized) {
14434                 throw new Error("initializeWasm() must be awaited first!");
14435         }
14436         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(e);
14437         return nativeResponseValue;
14438 }
14439         // bool CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
14440 /* @internal */
14441 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
14442         if(!isWasmInitialized) {
14443                 throw new Error("initializeWasm() must be awaited first!");
14444         }
14445         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(o);
14446         return nativeResponseValue;
14447 }
14448         // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res);
14449 /* @internal */
14450 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(_res: number): void {
14451         if(!isWasmInitialized) {
14452                 throw new Error("initializeWasm() must be awaited first!");
14453         }
14454         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(_res);
14455         // debug statements here
14456 }
14457         // uintptr_t CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
14458 /* @internal */
14459 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
14460         if(!isWasmInitialized) {
14461                 throw new Error("initializeWasm() must be awaited first!");
14462         }
14463         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(arg);
14464         return nativeResponseValue;
14465 }
14466         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
14467 /* @internal */
14468 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(orig: number): number {
14469         if(!isWasmInitialized) {
14470                 throw new Error("initializeWasm() must be awaited first!");
14471         }
14472         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(orig);
14473         return nativeResponseValue;
14474 }
14475         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_ok(struct LDKChannelAnnouncement o);
14476 /* @internal */
14477 export function CResult_ChannelAnnouncementDecodeErrorZ_ok(o: number): number {
14478         if(!isWasmInitialized) {
14479                 throw new Error("initializeWasm() must be awaited first!");
14480         }
14481         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_ok(o);
14482         return nativeResponseValue;
14483 }
14484         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
14485 /* @internal */
14486 export function CResult_ChannelAnnouncementDecodeErrorZ_err(e: number): number {
14487         if(!isWasmInitialized) {
14488                 throw new Error("initializeWasm() must be awaited first!");
14489         }
14490         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_err(e);
14491         return nativeResponseValue;
14492 }
14493         // bool CResult_ChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
14494 /* @internal */
14495 export function CResult_ChannelAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
14496         if(!isWasmInitialized) {
14497                 throw new Error("initializeWasm() must be awaited first!");
14498         }
14499         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_is_ok(o);
14500         return nativeResponseValue;
14501 }
14502         // void CResult_ChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_ChannelAnnouncementDecodeErrorZ _res);
14503 /* @internal */
14504 export function CResult_ChannelAnnouncementDecodeErrorZ_free(_res: number): void {
14505         if(!isWasmInitialized) {
14506                 throw new Error("initializeWasm() must be awaited first!");
14507         }
14508         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_free(_res);
14509         // debug statements here
14510 }
14511         // uintptr_t CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
14512 /* @internal */
14513 export function CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
14514         if(!isWasmInitialized) {
14515                 throw new Error("initializeWasm() must be awaited first!");
14516         }
14517         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(arg);
14518         return nativeResponseValue;
14519 }
14520         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
14521 /* @internal */
14522 export function CResult_ChannelAnnouncementDecodeErrorZ_clone(orig: number): number {
14523         if(!isWasmInitialized) {
14524                 throw new Error("initializeWasm() must be awaited first!");
14525         }
14526         const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_clone(orig);
14527         return nativeResponseValue;
14528 }
14529         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o);
14530 /* @internal */
14531 export function CResult_UnsignedChannelUpdateDecodeErrorZ_ok(o: number): number {
14532         if(!isWasmInitialized) {
14533                 throw new Error("initializeWasm() must be awaited first!");
14534         }
14535         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_ok(o);
14536         return nativeResponseValue;
14537 }
14538         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
14539 /* @internal */
14540 export function CResult_UnsignedChannelUpdateDecodeErrorZ_err(e: number): number {
14541         if(!isWasmInitialized) {
14542                 throw new Error("initializeWasm() must be awaited first!");
14543         }
14544         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_err(e);
14545         return nativeResponseValue;
14546 }
14547         // bool CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR o);
14548 /* @internal */
14549 export function CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(o: number): boolean {
14550         if(!isWasmInitialized) {
14551                 throw new Error("initializeWasm() must be awaited first!");
14552         }
14553         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(o);
14554         return nativeResponseValue;
14555 }
14556         // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res);
14557 /* @internal */
14558 export function CResult_UnsignedChannelUpdateDecodeErrorZ_free(_res: number): void {
14559         if(!isWasmInitialized) {
14560                 throw new Error("initializeWasm() must be awaited first!");
14561         }
14562         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_free(_res);
14563         // debug statements here
14564 }
14565         // uintptr_t CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
14566 /* @internal */
14567 export function CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(arg: number): number {
14568         if(!isWasmInitialized) {
14569                 throw new Error("initializeWasm() must be awaited first!");
14570         }
14571         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(arg);
14572         return nativeResponseValue;
14573 }
14574         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
14575 /* @internal */
14576 export function CResult_UnsignedChannelUpdateDecodeErrorZ_clone(orig: number): number {
14577         if(!isWasmInitialized) {
14578                 throw new Error("initializeWasm() must be awaited first!");
14579         }
14580         const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_clone(orig);
14581         return nativeResponseValue;
14582 }
14583         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_ok(struct LDKChannelUpdate o);
14584 /* @internal */
14585 export function CResult_ChannelUpdateDecodeErrorZ_ok(o: number): number {
14586         if(!isWasmInitialized) {
14587                 throw new Error("initializeWasm() must be awaited first!");
14588         }
14589         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_ok(o);
14590         return nativeResponseValue;
14591 }
14592         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
14593 /* @internal */
14594 export function CResult_ChannelUpdateDecodeErrorZ_err(e: number): number {
14595         if(!isWasmInitialized) {
14596                 throw new Error("initializeWasm() must be awaited first!");
14597         }
14598         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_err(e);
14599         return nativeResponseValue;
14600 }
14601         // bool CResult_ChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR o);
14602 /* @internal */
14603 export function CResult_ChannelUpdateDecodeErrorZ_is_ok(o: number): boolean {
14604         if(!isWasmInitialized) {
14605                 throw new Error("initializeWasm() must be awaited first!");
14606         }
14607         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_is_ok(o);
14608         return nativeResponseValue;
14609 }
14610         // void CResult_ChannelUpdateDecodeErrorZ_free(struct LDKCResult_ChannelUpdateDecodeErrorZ _res);
14611 /* @internal */
14612 export function CResult_ChannelUpdateDecodeErrorZ_free(_res: number): void {
14613         if(!isWasmInitialized) {
14614                 throw new Error("initializeWasm() must be awaited first!");
14615         }
14616         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_free(_res);
14617         // debug statements here
14618 }
14619         // uintptr_t CResult_ChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
14620 /* @internal */
14621 export function CResult_ChannelUpdateDecodeErrorZ_clone_ptr(arg: number): number {
14622         if(!isWasmInitialized) {
14623                 throw new Error("initializeWasm() must be awaited first!");
14624         }
14625         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_clone_ptr(arg);
14626         return nativeResponseValue;
14627 }
14628         // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
14629 /* @internal */
14630 export function CResult_ChannelUpdateDecodeErrorZ_clone(orig: number): number {
14631         if(!isWasmInitialized) {
14632                 throw new Error("initializeWasm() must be awaited first!");
14633         }
14634         const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_clone(orig);
14635         return nativeResponseValue;
14636 }
14637         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o);
14638 /* @internal */
14639 export function CResult_ErrorMessageDecodeErrorZ_ok(o: number): number {
14640         if(!isWasmInitialized) {
14641                 throw new Error("initializeWasm() must be awaited first!");
14642         }
14643         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_ok(o);
14644         return nativeResponseValue;
14645 }
14646         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e);
14647 /* @internal */
14648 export function CResult_ErrorMessageDecodeErrorZ_err(e: number): number {
14649         if(!isWasmInitialized) {
14650                 throw new Error("initializeWasm() must be awaited first!");
14651         }
14652         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_err(e);
14653         return nativeResponseValue;
14654 }
14655         // bool CResult_ErrorMessageDecodeErrorZ_is_ok(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR o);
14656 /* @internal */
14657 export function CResult_ErrorMessageDecodeErrorZ_is_ok(o: number): boolean {
14658         if(!isWasmInitialized) {
14659                 throw new Error("initializeWasm() must be awaited first!");
14660         }
14661         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_is_ok(o);
14662         return nativeResponseValue;
14663 }
14664         // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res);
14665 /* @internal */
14666 export function CResult_ErrorMessageDecodeErrorZ_free(_res: number): void {
14667         if(!isWasmInitialized) {
14668                 throw new Error("initializeWasm() must be awaited first!");
14669         }
14670         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_free(_res);
14671         // debug statements here
14672 }
14673         // uintptr_t CResult_ErrorMessageDecodeErrorZ_clone_ptr(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR arg);
14674 /* @internal */
14675 export function CResult_ErrorMessageDecodeErrorZ_clone_ptr(arg: number): number {
14676         if(!isWasmInitialized) {
14677                 throw new Error("initializeWasm() must be awaited first!");
14678         }
14679         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_clone_ptr(arg);
14680         return nativeResponseValue;
14681 }
14682         // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_clone(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR orig);
14683 /* @internal */
14684 export function CResult_ErrorMessageDecodeErrorZ_clone(orig: number): number {
14685         if(!isWasmInitialized) {
14686                 throw new Error("initializeWasm() must be awaited first!");
14687         }
14688         const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_clone(orig);
14689         return nativeResponseValue;
14690 }
14691         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_ok(struct LDKWarningMessage o);
14692 /* @internal */
14693 export function CResult_WarningMessageDecodeErrorZ_ok(o: number): number {
14694         if(!isWasmInitialized) {
14695                 throw new Error("initializeWasm() must be awaited first!");
14696         }
14697         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_ok(o);
14698         return nativeResponseValue;
14699 }
14700         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_err(struct LDKDecodeError e);
14701 /* @internal */
14702 export function CResult_WarningMessageDecodeErrorZ_err(e: number): number {
14703         if(!isWasmInitialized) {
14704                 throw new Error("initializeWasm() must be awaited first!");
14705         }
14706         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_err(e);
14707         return nativeResponseValue;
14708 }
14709         // bool CResult_WarningMessageDecodeErrorZ_is_ok(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR o);
14710 /* @internal */
14711 export function CResult_WarningMessageDecodeErrorZ_is_ok(o: number): boolean {
14712         if(!isWasmInitialized) {
14713                 throw new Error("initializeWasm() must be awaited first!");
14714         }
14715         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_is_ok(o);
14716         return nativeResponseValue;
14717 }
14718         // void CResult_WarningMessageDecodeErrorZ_free(struct LDKCResult_WarningMessageDecodeErrorZ _res);
14719 /* @internal */
14720 export function CResult_WarningMessageDecodeErrorZ_free(_res: number): void {
14721         if(!isWasmInitialized) {
14722                 throw new Error("initializeWasm() must be awaited first!");
14723         }
14724         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_free(_res);
14725         // debug statements here
14726 }
14727         // uintptr_t CResult_WarningMessageDecodeErrorZ_clone_ptr(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR arg);
14728 /* @internal */
14729 export function CResult_WarningMessageDecodeErrorZ_clone_ptr(arg: number): number {
14730         if(!isWasmInitialized) {
14731                 throw new Error("initializeWasm() must be awaited first!");
14732         }
14733         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_clone_ptr(arg);
14734         return nativeResponseValue;
14735 }
14736         // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_clone(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR orig);
14737 /* @internal */
14738 export function CResult_WarningMessageDecodeErrorZ_clone(orig: number): number {
14739         if(!isWasmInitialized) {
14740                 throw new Error("initializeWasm() must be awaited first!");
14741         }
14742         const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_clone(orig);
14743         return nativeResponseValue;
14744 }
14745         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o);
14746 /* @internal */
14747 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(o: number): number {
14748         if(!isWasmInitialized) {
14749                 throw new Error("initializeWasm() must be awaited first!");
14750         }
14751         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(o);
14752         return nativeResponseValue;
14753 }
14754         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
14755 /* @internal */
14756 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(e: number): number {
14757         if(!isWasmInitialized) {
14758                 throw new Error("initializeWasm() must be awaited first!");
14759         }
14760         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(e);
14761         return nativeResponseValue;
14762 }
14763         // bool CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
14764 /* @internal */
14765 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
14766         if(!isWasmInitialized) {
14767                 throw new Error("initializeWasm() must be awaited first!");
14768         }
14769         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(o);
14770         return nativeResponseValue;
14771 }
14772         // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res);
14773 /* @internal */
14774 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(_res: number): void {
14775         if(!isWasmInitialized) {
14776                 throw new Error("initializeWasm() must be awaited first!");
14777         }
14778         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(_res);
14779         // debug statements here
14780 }
14781         // uintptr_t CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
14782 /* @internal */
14783 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
14784         if(!isWasmInitialized) {
14785                 throw new Error("initializeWasm() must be awaited first!");
14786         }
14787         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(arg);
14788         return nativeResponseValue;
14789 }
14790         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
14791 /* @internal */
14792 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(orig: number): number {
14793         if(!isWasmInitialized) {
14794                 throw new Error("initializeWasm() must be awaited first!");
14795         }
14796         const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(orig);
14797         return nativeResponseValue;
14798 }
14799         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_ok(struct LDKNodeAnnouncement o);
14800 /* @internal */
14801 export function CResult_NodeAnnouncementDecodeErrorZ_ok(o: number): number {
14802         if(!isWasmInitialized) {
14803                 throw new Error("initializeWasm() must be awaited first!");
14804         }
14805         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_ok(o);
14806         return nativeResponseValue;
14807 }
14808         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
14809 /* @internal */
14810 export function CResult_NodeAnnouncementDecodeErrorZ_err(e: number): number {
14811         if(!isWasmInitialized) {
14812                 throw new Error("initializeWasm() must be awaited first!");
14813         }
14814         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_err(e);
14815         return nativeResponseValue;
14816 }
14817         // bool CResult_NodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
14818 /* @internal */
14819 export function CResult_NodeAnnouncementDecodeErrorZ_is_ok(o: number): boolean {
14820         if(!isWasmInitialized) {
14821                 throw new Error("initializeWasm() must be awaited first!");
14822         }
14823         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_is_ok(o);
14824         return nativeResponseValue;
14825 }
14826         // void CResult_NodeAnnouncementDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementDecodeErrorZ _res);
14827 /* @internal */
14828 export function CResult_NodeAnnouncementDecodeErrorZ_free(_res: number): void {
14829         if(!isWasmInitialized) {
14830                 throw new Error("initializeWasm() must be awaited first!");
14831         }
14832         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_free(_res);
14833         // debug statements here
14834 }
14835         // uintptr_t CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
14836 /* @internal */
14837 export function CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(arg: number): number {
14838         if(!isWasmInitialized) {
14839                 throw new Error("initializeWasm() must be awaited first!");
14840         }
14841         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(arg);
14842         return nativeResponseValue;
14843 }
14844         // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
14845 /* @internal */
14846 export function CResult_NodeAnnouncementDecodeErrorZ_clone(orig: number): number {
14847         if(!isWasmInitialized) {
14848                 throw new Error("initializeWasm() must be awaited first!");
14849         }
14850         const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_clone(orig);
14851         return nativeResponseValue;
14852 }
14853         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o);
14854 /* @internal */
14855 export function CResult_QueryShortChannelIdsDecodeErrorZ_ok(o: number): number {
14856         if(!isWasmInitialized) {
14857                 throw new Error("initializeWasm() must be awaited first!");
14858         }
14859         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_ok(o);
14860         return nativeResponseValue;
14861 }
14862         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e);
14863 /* @internal */
14864 export function CResult_QueryShortChannelIdsDecodeErrorZ_err(e: number): number {
14865         if(!isWasmInitialized) {
14866                 throw new Error("initializeWasm() must be awaited first!");
14867         }
14868         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_err(e);
14869         return nativeResponseValue;
14870 }
14871         // bool CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR o);
14872 /* @internal */
14873 export function CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(o: number): boolean {
14874         if(!isWasmInitialized) {
14875                 throw new Error("initializeWasm() must be awaited first!");
14876         }
14877         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(o);
14878         return nativeResponseValue;
14879 }
14880         // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res);
14881 /* @internal */
14882 export function CResult_QueryShortChannelIdsDecodeErrorZ_free(_res: number): void {
14883         if(!isWasmInitialized) {
14884                 throw new Error("initializeWasm() must be awaited first!");
14885         }
14886         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_free(_res);
14887         // debug statements here
14888 }
14889         // uintptr_t CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR arg);
14890 /* @internal */
14891 export function CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(arg: number): number {
14892         if(!isWasmInitialized) {
14893                 throw new Error("initializeWasm() must be awaited first!");
14894         }
14895         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(arg);
14896         return nativeResponseValue;
14897 }
14898         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_clone(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR orig);
14899 /* @internal */
14900 export function CResult_QueryShortChannelIdsDecodeErrorZ_clone(orig: number): number {
14901         if(!isWasmInitialized) {
14902                 throw new Error("initializeWasm() must be awaited first!");
14903         }
14904         const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_clone(orig);
14905         return nativeResponseValue;
14906 }
14907         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o);
14908 /* @internal */
14909 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(o: number): number {
14910         if(!isWasmInitialized) {
14911                 throw new Error("initializeWasm() must be awaited first!");
14912         }
14913         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(o);
14914         return nativeResponseValue;
14915 }
14916         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e);
14917 /* @internal */
14918 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(e: number): number {
14919         if(!isWasmInitialized) {
14920                 throw new Error("initializeWasm() must be awaited first!");
14921         }
14922         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(e);
14923         return nativeResponseValue;
14924 }
14925         // bool CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR o);
14926 /* @internal */
14927 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(o: number): boolean {
14928         if(!isWasmInitialized) {
14929                 throw new Error("initializeWasm() must be awaited first!");
14930         }
14931         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(o);
14932         return nativeResponseValue;
14933 }
14934         // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res);
14935 /* @internal */
14936 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(_res: number): void {
14937         if(!isWasmInitialized) {
14938                 throw new Error("initializeWasm() must be awaited first!");
14939         }
14940         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(_res);
14941         // debug statements here
14942 }
14943         // uintptr_t CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR arg);
14944 /* @internal */
14945 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(arg: number): number {
14946         if(!isWasmInitialized) {
14947                 throw new Error("initializeWasm() must be awaited first!");
14948         }
14949         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(arg);
14950         return nativeResponseValue;
14951 }
14952         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR orig);
14953 /* @internal */
14954 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(orig: number): number {
14955         if(!isWasmInitialized) {
14956                 throw new Error("initializeWasm() must be awaited first!");
14957         }
14958         const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(orig);
14959         return nativeResponseValue;
14960 }
14961         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o);
14962 /* @internal */
14963 export function CResult_QueryChannelRangeDecodeErrorZ_ok(o: number): number {
14964         if(!isWasmInitialized) {
14965                 throw new Error("initializeWasm() must be awaited first!");
14966         }
14967         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_ok(o);
14968         return nativeResponseValue;
14969 }
14970         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
14971 /* @internal */
14972 export function CResult_QueryChannelRangeDecodeErrorZ_err(e: number): number {
14973         if(!isWasmInitialized) {
14974                 throw new Error("initializeWasm() must be awaited first!");
14975         }
14976         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_err(e);
14977         return nativeResponseValue;
14978 }
14979         // bool CResult_QueryChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR o);
14980 /* @internal */
14981 export function CResult_QueryChannelRangeDecodeErrorZ_is_ok(o: number): boolean {
14982         if(!isWasmInitialized) {
14983                 throw new Error("initializeWasm() must be awaited first!");
14984         }
14985         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_is_ok(o);
14986         return nativeResponseValue;
14987 }
14988         // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res);
14989 /* @internal */
14990 export function CResult_QueryChannelRangeDecodeErrorZ_free(_res: number): void {
14991         if(!isWasmInitialized) {
14992                 throw new Error("initializeWasm() must be awaited first!");
14993         }
14994         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_free(_res);
14995         // debug statements here
14996 }
14997         // uintptr_t CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR arg);
14998 /* @internal */
14999 export function CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(arg: number): number {
15000         if(!isWasmInitialized) {
15001                 throw new Error("initializeWasm() must be awaited first!");
15002         }
15003         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(arg);
15004         return nativeResponseValue;
15005 }
15006         // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_clone(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR orig);
15007 /* @internal */
15008 export function CResult_QueryChannelRangeDecodeErrorZ_clone(orig: number): number {
15009         if(!isWasmInitialized) {
15010                 throw new Error("initializeWasm() must be awaited first!");
15011         }
15012         const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_clone(orig);
15013         return nativeResponseValue;
15014 }
15015         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o);
15016 /* @internal */
15017 export function CResult_ReplyChannelRangeDecodeErrorZ_ok(o: number): number {
15018         if(!isWasmInitialized) {
15019                 throw new Error("initializeWasm() must be awaited first!");
15020         }
15021         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_ok(o);
15022         return nativeResponseValue;
15023 }
15024         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
15025 /* @internal */
15026 export function CResult_ReplyChannelRangeDecodeErrorZ_err(e: number): number {
15027         if(!isWasmInitialized) {
15028                 throw new Error("initializeWasm() must be awaited first!");
15029         }
15030         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_err(e);
15031         return nativeResponseValue;
15032 }
15033         // bool CResult_ReplyChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR o);
15034 /* @internal */
15035 export function CResult_ReplyChannelRangeDecodeErrorZ_is_ok(o: number): boolean {
15036         if(!isWasmInitialized) {
15037                 throw new Error("initializeWasm() must be awaited first!");
15038         }
15039         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_is_ok(o);
15040         return nativeResponseValue;
15041 }
15042         // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res);
15043 /* @internal */
15044 export function CResult_ReplyChannelRangeDecodeErrorZ_free(_res: number): void {
15045         if(!isWasmInitialized) {
15046                 throw new Error("initializeWasm() must be awaited first!");
15047         }
15048         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_free(_res);
15049         // debug statements here
15050 }
15051         // uintptr_t CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR arg);
15052 /* @internal */
15053 export function CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(arg: number): number {
15054         if(!isWasmInitialized) {
15055                 throw new Error("initializeWasm() must be awaited first!");
15056         }
15057         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(arg);
15058         return nativeResponseValue;
15059 }
15060         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_clone(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR orig);
15061 /* @internal */
15062 export function CResult_ReplyChannelRangeDecodeErrorZ_clone(orig: number): number {
15063         if(!isWasmInitialized) {
15064                 throw new Error("initializeWasm() must be awaited first!");
15065         }
15066         const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_clone(orig);
15067         return nativeResponseValue;
15068 }
15069         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o);
15070 /* @internal */
15071 export function CResult_GossipTimestampFilterDecodeErrorZ_ok(o: number): number {
15072         if(!isWasmInitialized) {
15073                 throw new Error("initializeWasm() must be awaited first!");
15074         }
15075         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_ok(o);
15076         return nativeResponseValue;
15077 }
15078         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e);
15079 /* @internal */
15080 export function CResult_GossipTimestampFilterDecodeErrorZ_err(e: number): number {
15081         if(!isWasmInitialized) {
15082                 throw new Error("initializeWasm() must be awaited first!");
15083         }
15084         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_err(e);
15085         return nativeResponseValue;
15086 }
15087         // bool CResult_GossipTimestampFilterDecodeErrorZ_is_ok(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR o);
15088 /* @internal */
15089 export function CResult_GossipTimestampFilterDecodeErrorZ_is_ok(o: number): boolean {
15090         if(!isWasmInitialized) {
15091                 throw new Error("initializeWasm() must be awaited first!");
15092         }
15093         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_is_ok(o);
15094         return nativeResponseValue;
15095 }
15096         // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res);
15097 /* @internal */
15098 export function CResult_GossipTimestampFilterDecodeErrorZ_free(_res: number): void {
15099         if(!isWasmInitialized) {
15100                 throw new Error("initializeWasm() must be awaited first!");
15101         }
15102         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_free(_res);
15103         // debug statements here
15104 }
15105         // uintptr_t CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR arg);
15106 /* @internal */
15107 export function CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(arg: number): number {
15108         if(!isWasmInitialized) {
15109                 throw new Error("initializeWasm() must be awaited first!");
15110         }
15111         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(arg);
15112         return nativeResponseValue;
15113 }
15114         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_clone(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR orig);
15115 /* @internal */
15116 export function CResult_GossipTimestampFilterDecodeErrorZ_clone(orig: number): number {
15117         if(!isWasmInitialized) {
15118                 throw new Error("initializeWasm() must be awaited first!");
15119         }
15120         const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_clone(orig);
15121         return nativeResponseValue;
15122 }
15123         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_ok(struct LDKInvoice o);
15124 /* @internal */
15125 export function CResult_InvoiceSignOrCreationErrorZ_ok(o: number): number {
15126         if(!isWasmInitialized) {
15127                 throw new Error("initializeWasm() must be awaited first!");
15128         }
15129         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_ok(o);
15130         return nativeResponseValue;
15131 }
15132         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_err(struct LDKSignOrCreationError e);
15133 /* @internal */
15134 export function CResult_InvoiceSignOrCreationErrorZ_err(e: number): number {
15135         if(!isWasmInitialized) {
15136                 throw new Error("initializeWasm() must be awaited first!");
15137         }
15138         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_err(e);
15139         return nativeResponseValue;
15140 }
15141         // bool CResult_InvoiceSignOrCreationErrorZ_is_ok(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR o);
15142 /* @internal */
15143 export function CResult_InvoiceSignOrCreationErrorZ_is_ok(o: number): boolean {
15144         if(!isWasmInitialized) {
15145                 throw new Error("initializeWasm() must be awaited first!");
15146         }
15147         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_is_ok(o);
15148         return nativeResponseValue;
15149 }
15150         // void CResult_InvoiceSignOrCreationErrorZ_free(struct LDKCResult_InvoiceSignOrCreationErrorZ _res);
15151 /* @internal */
15152 export function CResult_InvoiceSignOrCreationErrorZ_free(_res: number): void {
15153         if(!isWasmInitialized) {
15154                 throw new Error("initializeWasm() must be awaited first!");
15155         }
15156         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_free(_res);
15157         // debug statements here
15158 }
15159         // uintptr_t CResult_InvoiceSignOrCreationErrorZ_clone_ptr(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR arg);
15160 /* @internal */
15161 export function CResult_InvoiceSignOrCreationErrorZ_clone_ptr(arg: number): number {
15162         if(!isWasmInitialized) {
15163                 throw new Error("initializeWasm() must be awaited first!");
15164         }
15165         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_clone_ptr(arg);
15166         return nativeResponseValue;
15167 }
15168         // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_clone(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR orig);
15169 /* @internal */
15170 export function CResult_InvoiceSignOrCreationErrorZ_clone(orig: number): number {
15171         if(!isWasmInitialized) {
15172                 throw new Error("initializeWasm() must be awaited first!");
15173         }
15174         const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_clone(orig);
15175         return nativeResponseValue;
15176 }
15177         // struct LDKCOption_FilterZ COption_FilterZ_some(struct LDKFilter o);
15178 /* @internal */
15179 export function COption_FilterZ_some(o: number): number {
15180         if(!isWasmInitialized) {
15181                 throw new Error("initializeWasm() must be awaited first!");
15182         }
15183         const nativeResponseValue = wasm.TS_COption_FilterZ_some(o);
15184         return nativeResponseValue;
15185 }
15186         // struct LDKCOption_FilterZ COption_FilterZ_none(void);
15187 /* @internal */
15188 export function COption_FilterZ_none(): number {
15189         if(!isWasmInitialized) {
15190                 throw new Error("initializeWasm() must be awaited first!");
15191         }
15192         const nativeResponseValue = wasm.TS_COption_FilterZ_none();
15193         return nativeResponseValue;
15194 }
15195         // void COption_FilterZ_free(struct LDKCOption_FilterZ _res);
15196 /* @internal */
15197 export function COption_FilterZ_free(_res: number): void {
15198         if(!isWasmInitialized) {
15199                 throw new Error("initializeWasm() must be awaited first!");
15200         }
15201         const nativeResponseValue = wasm.TS_COption_FilterZ_free(_res);
15202         // debug statements here
15203 }
15204         // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_ok(struct LDKLockedChannelMonitor o);
15205 /* @internal */
15206 export function CResult_LockedChannelMonitorNoneZ_ok(o: number): number {
15207         if(!isWasmInitialized) {
15208                 throw new Error("initializeWasm() must be awaited first!");
15209         }
15210         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_ok(o);
15211         return nativeResponseValue;
15212 }
15213         // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_err(void);
15214 /* @internal */
15215 export function CResult_LockedChannelMonitorNoneZ_err(): number {
15216         if(!isWasmInitialized) {
15217                 throw new Error("initializeWasm() must be awaited first!");
15218         }
15219         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_err();
15220         return nativeResponseValue;
15221 }
15222         // bool CResult_LockedChannelMonitorNoneZ_is_ok(const struct LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR o);
15223 /* @internal */
15224 export function CResult_LockedChannelMonitorNoneZ_is_ok(o: number): boolean {
15225         if(!isWasmInitialized) {
15226                 throw new Error("initializeWasm() must be awaited first!");
15227         }
15228         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_is_ok(o);
15229         return nativeResponseValue;
15230 }
15231         // void CResult_LockedChannelMonitorNoneZ_free(struct LDKCResult_LockedChannelMonitorNoneZ _res);
15232 /* @internal */
15233 export function CResult_LockedChannelMonitorNoneZ_free(_res: number): void {
15234         if(!isWasmInitialized) {
15235                 throw new Error("initializeWasm() must be awaited first!");
15236         }
15237         const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_free(_res);
15238         // debug statements here
15239 }
15240         // void CVec_OutPointZ_free(struct LDKCVec_OutPointZ _res);
15241 /* @internal */
15242 export function CVec_OutPointZ_free(_res: number): void {
15243         if(!isWasmInitialized) {
15244                 throw new Error("initializeWasm() must be awaited first!");
15245         }
15246         const nativeResponseValue = wasm.TS_CVec_OutPointZ_free(_res);
15247         // debug statements here
15248 }
15249         // void PaymentPurpose_free(struct LDKPaymentPurpose this_ptr);
15250 /* @internal */
15251 export function PaymentPurpose_free(this_ptr: number): void {
15252         if(!isWasmInitialized) {
15253                 throw new Error("initializeWasm() must be awaited first!");
15254         }
15255         const nativeResponseValue = wasm.TS_PaymentPurpose_free(this_ptr);
15256         // debug statements here
15257 }
15258         // uintptr_t PaymentPurpose_clone_ptr(LDKPaymentPurpose *NONNULL_PTR arg);
15259 /* @internal */
15260 export function PaymentPurpose_clone_ptr(arg: number): number {
15261         if(!isWasmInitialized) {
15262                 throw new Error("initializeWasm() must be awaited first!");
15263         }
15264         const nativeResponseValue = wasm.TS_PaymentPurpose_clone_ptr(arg);
15265         return nativeResponseValue;
15266 }
15267         // struct LDKPaymentPurpose PaymentPurpose_clone(const struct LDKPaymentPurpose *NONNULL_PTR orig);
15268 /* @internal */
15269 export function PaymentPurpose_clone(orig: number): number {
15270         if(!isWasmInitialized) {
15271                 throw new Error("initializeWasm() must be awaited first!");
15272         }
15273         const nativeResponseValue = wasm.TS_PaymentPurpose_clone(orig);
15274         return nativeResponseValue;
15275 }
15276         // struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_secret);
15277 /* @internal */
15278 export function PaymentPurpose_invoice_payment(payment_preimage: number, payment_secret: number): number {
15279         if(!isWasmInitialized) {
15280                 throw new Error("initializeWasm() must be awaited first!");
15281         }
15282         const nativeResponseValue = wasm.TS_PaymentPurpose_invoice_payment(payment_preimage, payment_secret);
15283         return nativeResponseValue;
15284 }
15285         // struct LDKPaymentPurpose PaymentPurpose_spontaneous_payment(struct LDKThirtyTwoBytes a);
15286 /* @internal */
15287 export function PaymentPurpose_spontaneous_payment(a: number): number {
15288         if(!isWasmInitialized) {
15289                 throw new Error("initializeWasm() must be awaited first!");
15290         }
15291         const nativeResponseValue = wasm.TS_PaymentPurpose_spontaneous_payment(a);
15292         return nativeResponseValue;
15293 }
15294         // struct LDKCVec_u8Z PaymentPurpose_write(const struct LDKPaymentPurpose *NONNULL_PTR obj);
15295 /* @internal */
15296 export function PaymentPurpose_write(obj: number): number {
15297         if(!isWasmInitialized) {
15298                 throw new Error("initializeWasm() must be awaited first!");
15299         }
15300         const nativeResponseValue = wasm.TS_PaymentPurpose_write(obj);
15301         return nativeResponseValue;
15302 }
15303         // struct LDKCResult_PaymentPurposeDecodeErrorZ PaymentPurpose_read(struct LDKu8slice ser);
15304 /* @internal */
15305 export function PaymentPurpose_read(ser: number): number {
15306         if(!isWasmInitialized) {
15307                 throw new Error("initializeWasm() must be awaited first!");
15308         }
15309         const nativeResponseValue = wasm.TS_PaymentPurpose_read(ser);
15310         return nativeResponseValue;
15311 }
15312         // void ClosureReason_free(struct LDKClosureReason this_ptr);
15313 /* @internal */
15314 export function ClosureReason_free(this_ptr: number): void {
15315         if(!isWasmInitialized) {
15316                 throw new Error("initializeWasm() must be awaited first!");
15317         }
15318         const nativeResponseValue = wasm.TS_ClosureReason_free(this_ptr);
15319         // debug statements here
15320 }
15321         // uintptr_t ClosureReason_clone_ptr(LDKClosureReason *NONNULL_PTR arg);
15322 /* @internal */
15323 export function ClosureReason_clone_ptr(arg: number): number {
15324         if(!isWasmInitialized) {
15325                 throw new Error("initializeWasm() must be awaited first!");
15326         }
15327         const nativeResponseValue = wasm.TS_ClosureReason_clone_ptr(arg);
15328         return nativeResponseValue;
15329 }
15330         // struct LDKClosureReason ClosureReason_clone(const struct LDKClosureReason *NONNULL_PTR orig);
15331 /* @internal */
15332 export function ClosureReason_clone(orig: number): number {
15333         if(!isWasmInitialized) {
15334                 throw new Error("initializeWasm() must be awaited first!");
15335         }
15336         const nativeResponseValue = wasm.TS_ClosureReason_clone(orig);
15337         return nativeResponseValue;
15338 }
15339         // struct LDKClosureReason ClosureReason_counterparty_force_closed(struct LDKStr peer_msg);
15340 /* @internal */
15341 export function ClosureReason_counterparty_force_closed(peer_msg: number): number {
15342         if(!isWasmInitialized) {
15343                 throw new Error("initializeWasm() must be awaited first!");
15344         }
15345         const nativeResponseValue = wasm.TS_ClosureReason_counterparty_force_closed(peer_msg);
15346         return nativeResponseValue;
15347 }
15348         // struct LDKClosureReason ClosureReason_holder_force_closed(void);
15349 /* @internal */
15350 export function ClosureReason_holder_force_closed(): number {
15351         if(!isWasmInitialized) {
15352                 throw new Error("initializeWasm() must be awaited first!");
15353         }
15354         const nativeResponseValue = wasm.TS_ClosureReason_holder_force_closed();
15355         return nativeResponseValue;
15356 }
15357         // struct LDKClosureReason ClosureReason_cooperative_closure(void);
15358 /* @internal */
15359 export function ClosureReason_cooperative_closure(): number {
15360         if(!isWasmInitialized) {
15361                 throw new Error("initializeWasm() must be awaited first!");
15362         }
15363         const nativeResponseValue = wasm.TS_ClosureReason_cooperative_closure();
15364         return nativeResponseValue;
15365 }
15366         // struct LDKClosureReason ClosureReason_commitment_tx_confirmed(void);
15367 /* @internal */
15368 export function ClosureReason_commitment_tx_confirmed(): number {
15369         if(!isWasmInitialized) {
15370                 throw new Error("initializeWasm() must be awaited first!");
15371         }
15372         const nativeResponseValue = wasm.TS_ClosureReason_commitment_tx_confirmed();
15373         return nativeResponseValue;
15374 }
15375         // struct LDKClosureReason ClosureReason_funding_timed_out(void);
15376 /* @internal */
15377 export function ClosureReason_funding_timed_out(): number {
15378         if(!isWasmInitialized) {
15379                 throw new Error("initializeWasm() must be awaited first!");
15380         }
15381         const nativeResponseValue = wasm.TS_ClosureReason_funding_timed_out();
15382         return nativeResponseValue;
15383 }
15384         // struct LDKClosureReason ClosureReason_processing_error(struct LDKStr err);
15385 /* @internal */
15386 export function ClosureReason_processing_error(err: number): number {
15387         if(!isWasmInitialized) {
15388                 throw new Error("initializeWasm() must be awaited first!");
15389         }
15390         const nativeResponseValue = wasm.TS_ClosureReason_processing_error(err);
15391         return nativeResponseValue;
15392 }
15393         // struct LDKClosureReason ClosureReason_disconnected_peer(void);
15394 /* @internal */
15395 export function ClosureReason_disconnected_peer(): number {
15396         if(!isWasmInitialized) {
15397                 throw new Error("initializeWasm() must be awaited first!");
15398         }
15399         const nativeResponseValue = wasm.TS_ClosureReason_disconnected_peer();
15400         return nativeResponseValue;
15401 }
15402         // struct LDKClosureReason ClosureReason_outdated_channel_manager(void);
15403 /* @internal */
15404 export function ClosureReason_outdated_channel_manager(): number {
15405         if(!isWasmInitialized) {
15406                 throw new Error("initializeWasm() must be awaited first!");
15407         }
15408         const nativeResponseValue = wasm.TS_ClosureReason_outdated_channel_manager();
15409         return nativeResponseValue;
15410 }
15411         // struct LDKCVec_u8Z ClosureReason_write(const struct LDKClosureReason *NONNULL_PTR obj);
15412 /* @internal */
15413 export function ClosureReason_write(obj: number): number {
15414         if(!isWasmInitialized) {
15415                 throw new Error("initializeWasm() must be awaited first!");
15416         }
15417         const nativeResponseValue = wasm.TS_ClosureReason_write(obj);
15418         return nativeResponseValue;
15419 }
15420         // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ ClosureReason_read(struct LDKu8slice ser);
15421 /* @internal */
15422 export function ClosureReason_read(ser: number): number {
15423         if(!isWasmInitialized) {
15424                 throw new Error("initializeWasm() must be awaited first!");
15425         }
15426         const nativeResponseValue = wasm.TS_ClosureReason_read(ser);
15427         return nativeResponseValue;
15428 }
15429         // void Event_free(struct LDKEvent this_ptr);
15430 /* @internal */
15431 export function Event_free(this_ptr: number): void {
15432         if(!isWasmInitialized) {
15433                 throw new Error("initializeWasm() must be awaited first!");
15434         }
15435         const nativeResponseValue = wasm.TS_Event_free(this_ptr);
15436         // debug statements here
15437 }
15438         // uintptr_t Event_clone_ptr(LDKEvent *NONNULL_PTR arg);
15439 /* @internal */
15440 export function Event_clone_ptr(arg: number): number {
15441         if(!isWasmInitialized) {
15442                 throw new Error("initializeWasm() must be awaited first!");
15443         }
15444         const nativeResponseValue = wasm.TS_Event_clone_ptr(arg);
15445         return nativeResponseValue;
15446 }
15447         // struct LDKEvent Event_clone(const struct LDKEvent *NONNULL_PTR orig);
15448 /* @internal */
15449 export function Event_clone(orig: number): number {
15450         if(!isWasmInitialized) {
15451                 throw new Error("initializeWasm() must be awaited first!");
15452         }
15453         const nativeResponseValue = wasm.TS_Event_clone(orig);
15454         return nativeResponseValue;
15455 }
15456         // struct LDKEvent Event_funding_generation_ready(struct LDKThirtyTwoBytes temporary_channel_id, struct LDKPublicKey counterparty_node_id, uint64_t channel_value_satoshis, struct LDKCVec_u8Z output_script, uint64_t user_channel_id);
15457 /* @internal */
15458 export function Event_funding_generation_ready(temporary_channel_id: number, counterparty_node_id: number, channel_value_satoshis: bigint, output_script: number, user_channel_id: bigint): number {
15459         if(!isWasmInitialized) {
15460                 throw new Error("initializeWasm() must be awaited first!");
15461         }
15462         const nativeResponseValue = wasm.TS_Event_funding_generation_ready(temporary_channel_id, counterparty_node_id, channel_value_satoshis, output_script, user_channel_id);
15463         return nativeResponseValue;
15464 }
15465         // struct LDKEvent Event_payment_received(struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose);
15466 /* @internal */
15467 export function Event_payment_received(payment_hash: number, amount_msat: bigint, purpose: number): number {
15468         if(!isWasmInitialized) {
15469                 throw new Error("initializeWasm() must be awaited first!");
15470         }
15471         const nativeResponseValue = wasm.TS_Event_payment_received(payment_hash, amount_msat, purpose);
15472         return nativeResponseValue;
15473 }
15474         // struct LDKEvent Event_payment_claimed(struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose);
15475 /* @internal */
15476 export function Event_payment_claimed(payment_hash: number, amount_msat: bigint, purpose: number): number {
15477         if(!isWasmInitialized) {
15478                 throw new Error("initializeWasm() must be awaited first!");
15479         }
15480         const nativeResponseValue = wasm.TS_Event_payment_claimed(payment_hash, amount_msat, purpose);
15481         return nativeResponseValue;
15482 }
15483         // struct LDKEvent Event_payment_sent(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat);
15484 /* @internal */
15485 export function Event_payment_sent(payment_id: number, payment_preimage: number, payment_hash: number, fee_paid_msat: number): number {
15486         if(!isWasmInitialized) {
15487                 throw new Error("initializeWasm() must be awaited first!");
15488         }
15489         const nativeResponseValue = wasm.TS_Event_payment_sent(payment_id, payment_preimage, payment_hash, fee_paid_msat);
15490         return nativeResponseValue;
15491 }
15492         // struct LDKEvent Event_payment_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash);
15493 /* @internal */
15494 export function Event_payment_failed(payment_id: number, payment_hash: number): number {
15495         if(!isWasmInitialized) {
15496                 throw new Error("initializeWasm() must be awaited first!");
15497         }
15498         const nativeResponseValue = wasm.TS_Event_payment_failed(payment_id, payment_hash);
15499         return nativeResponseValue;
15500 }
15501         // struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCVec_RouteHopZ path);
15502 /* @internal */
15503 export function Event_payment_path_successful(payment_id: number, payment_hash: number, path: number): number {
15504         if(!isWasmInitialized) {
15505                 throw new Error("initializeWasm() must be awaited first!");
15506         }
15507         const nativeResponseValue = wasm.TS_Event_payment_path_successful(payment_id, payment_hash, path);
15508         return nativeResponseValue;
15509 }
15510         // 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);
15511 /* @internal */
15512 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 {
15513         if(!isWasmInitialized) {
15514                 throw new Error("initializeWasm() must be awaited first!");
15515         }
15516         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);
15517         return nativeResponseValue;
15518 }
15519         // struct LDKEvent Event_pending_htlcs_forwardable(uint64_t time_forwardable);
15520 /* @internal */
15521 export function Event_pending_htlcs_forwardable(time_forwardable: bigint): number {
15522         if(!isWasmInitialized) {
15523                 throw new Error("initializeWasm() must be awaited first!");
15524         }
15525         const nativeResponseValue = wasm.TS_Event_pending_htlcs_forwardable(time_forwardable);
15526         return nativeResponseValue;
15527 }
15528         // struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs);
15529 /* @internal */
15530 export function Event_spendable_outputs(outputs: number): number {
15531         if(!isWasmInitialized) {
15532                 throw new Error("initializeWasm() must be awaited first!");
15533         }
15534         const nativeResponseValue = wasm.TS_Event_spendable_outputs(outputs);
15535         return nativeResponseValue;
15536 }
15537         // struct LDKEvent Event_payment_forwarded(struct LDKThirtyTwoBytes prev_channel_id, struct LDKThirtyTwoBytes next_channel_id, struct LDKCOption_u64Z fee_earned_msat, bool claim_from_onchain_tx);
15538 /* @internal */
15539 export function Event_payment_forwarded(prev_channel_id: number, next_channel_id: number, fee_earned_msat: number, claim_from_onchain_tx: boolean): number {
15540         if(!isWasmInitialized) {
15541                 throw new Error("initializeWasm() must be awaited first!");
15542         }
15543         const nativeResponseValue = wasm.TS_Event_payment_forwarded(prev_channel_id, next_channel_id, fee_earned_msat, claim_from_onchain_tx);
15544         return nativeResponseValue;
15545 }
15546         // struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, uint64_t user_channel_id, struct LDKClosureReason reason);
15547 /* @internal */
15548 export function Event_channel_closed(channel_id: number, user_channel_id: bigint, reason: number): number {
15549         if(!isWasmInitialized) {
15550                 throw new Error("initializeWasm() must be awaited first!");
15551         }
15552         const nativeResponseValue = wasm.TS_Event_channel_closed(channel_id, user_channel_id, reason);
15553         return nativeResponseValue;
15554 }
15555         // struct LDKEvent Event_discard_funding(struct LDKThirtyTwoBytes channel_id, struct LDKTransaction transaction);
15556 /* @internal */
15557 export function Event_discard_funding(channel_id: number, transaction: number): number {
15558         if(!isWasmInitialized) {
15559                 throw new Error("initializeWasm() must be awaited first!");
15560         }
15561         const nativeResponseValue = wasm.TS_Event_discard_funding(channel_id, transaction);
15562         return nativeResponseValue;
15563 }
15564         // 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);
15565 /* @internal */
15566 export function Event_open_channel_request(temporary_channel_id: number, counterparty_node_id: number, funding_satoshis: bigint, push_msat: bigint, channel_type: number): number {
15567         if(!isWasmInitialized) {
15568                 throw new Error("initializeWasm() must be awaited first!");
15569         }
15570         const nativeResponseValue = wasm.TS_Event_open_channel_request(temporary_channel_id, counterparty_node_id, funding_satoshis, push_msat, channel_type);
15571         return nativeResponseValue;
15572 }
15573         // struct LDKCVec_u8Z Event_write(const struct LDKEvent *NONNULL_PTR obj);
15574 /* @internal */
15575 export function Event_write(obj: number): number {
15576         if(!isWasmInitialized) {
15577                 throw new Error("initializeWasm() must be awaited first!");
15578         }
15579         const nativeResponseValue = wasm.TS_Event_write(obj);
15580         return nativeResponseValue;
15581 }
15582         // struct LDKCResult_COption_EventZDecodeErrorZ Event_read(struct LDKu8slice ser);
15583 /* @internal */
15584 export function Event_read(ser: number): number {
15585         if(!isWasmInitialized) {
15586                 throw new Error("initializeWasm() must be awaited first!");
15587         }
15588         const nativeResponseValue = wasm.TS_Event_read(ser);
15589         return nativeResponseValue;
15590 }
15591         // void MessageSendEvent_free(struct LDKMessageSendEvent this_ptr);
15592 /* @internal */
15593 export function MessageSendEvent_free(this_ptr: number): void {
15594         if(!isWasmInitialized) {
15595                 throw new Error("initializeWasm() must be awaited first!");
15596         }
15597         const nativeResponseValue = wasm.TS_MessageSendEvent_free(this_ptr);
15598         // debug statements here
15599 }
15600         // uintptr_t MessageSendEvent_clone_ptr(LDKMessageSendEvent *NONNULL_PTR arg);
15601 /* @internal */
15602 export function MessageSendEvent_clone_ptr(arg: number): number {
15603         if(!isWasmInitialized) {
15604                 throw new Error("initializeWasm() must be awaited first!");
15605         }
15606         const nativeResponseValue = wasm.TS_MessageSendEvent_clone_ptr(arg);
15607         return nativeResponseValue;
15608 }
15609         // struct LDKMessageSendEvent MessageSendEvent_clone(const struct LDKMessageSendEvent *NONNULL_PTR orig);
15610 /* @internal */
15611 export function MessageSendEvent_clone(orig: number): number {
15612         if(!isWasmInitialized) {
15613                 throw new Error("initializeWasm() must be awaited first!");
15614         }
15615         const nativeResponseValue = wasm.TS_MessageSendEvent_clone(orig);
15616         return nativeResponseValue;
15617 }
15618         // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel(struct LDKPublicKey node_id, struct LDKAcceptChannel msg);
15619 /* @internal */
15620 export function MessageSendEvent_send_accept_channel(node_id: number, msg: number): number {
15621         if(!isWasmInitialized) {
15622                 throw new Error("initializeWasm() must be awaited first!");
15623         }
15624         const nativeResponseValue = wasm.TS_MessageSendEvent_send_accept_channel(node_id, msg);
15625         return nativeResponseValue;
15626 }
15627         // struct LDKMessageSendEvent MessageSendEvent_send_open_channel(struct LDKPublicKey node_id, struct LDKOpenChannel msg);
15628 /* @internal */
15629 export function MessageSendEvent_send_open_channel(node_id: number, msg: number): number {
15630         if(!isWasmInitialized) {
15631                 throw new Error("initializeWasm() must be awaited first!");
15632         }
15633         const nativeResponseValue = wasm.TS_MessageSendEvent_send_open_channel(node_id, msg);
15634         return nativeResponseValue;
15635 }
15636         // struct LDKMessageSendEvent MessageSendEvent_send_funding_created(struct LDKPublicKey node_id, struct LDKFundingCreated msg);
15637 /* @internal */
15638 export function MessageSendEvent_send_funding_created(node_id: number, msg: number): number {
15639         if(!isWasmInitialized) {
15640                 throw new Error("initializeWasm() must be awaited first!");
15641         }
15642         const nativeResponseValue = wasm.TS_MessageSendEvent_send_funding_created(node_id, msg);
15643         return nativeResponseValue;
15644 }
15645         // struct LDKMessageSendEvent MessageSendEvent_send_funding_signed(struct LDKPublicKey node_id, struct LDKFundingSigned msg);
15646 /* @internal */
15647 export function MessageSendEvent_send_funding_signed(node_id: number, msg: number): number {
15648         if(!isWasmInitialized) {
15649                 throw new Error("initializeWasm() must be awaited first!");
15650         }
15651         const nativeResponseValue = wasm.TS_MessageSendEvent_send_funding_signed(node_id, msg);
15652         return nativeResponseValue;
15653 }
15654         // struct LDKMessageSendEvent MessageSendEvent_send_channel_ready(struct LDKPublicKey node_id, struct LDKChannelReady msg);
15655 /* @internal */
15656 export function MessageSendEvent_send_channel_ready(node_id: number, msg: number): number {
15657         if(!isWasmInitialized) {
15658                 throw new Error("initializeWasm() must be awaited first!");
15659         }
15660         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_ready(node_id, msg);
15661         return nativeResponseValue;
15662 }
15663         // struct LDKMessageSendEvent MessageSendEvent_send_announcement_signatures(struct LDKPublicKey node_id, struct LDKAnnouncementSignatures msg);
15664 /* @internal */
15665 export function MessageSendEvent_send_announcement_signatures(node_id: number, msg: number): number {
15666         if(!isWasmInitialized) {
15667                 throw new Error("initializeWasm() must be awaited first!");
15668         }
15669         const nativeResponseValue = wasm.TS_MessageSendEvent_send_announcement_signatures(node_id, msg);
15670         return nativeResponseValue;
15671 }
15672         // struct LDKMessageSendEvent MessageSendEvent_update_htlcs(struct LDKPublicKey node_id, struct LDKCommitmentUpdate updates);
15673 /* @internal */
15674 export function MessageSendEvent_update_htlcs(node_id: number, updates: number): number {
15675         if(!isWasmInitialized) {
15676                 throw new Error("initializeWasm() must be awaited first!");
15677         }
15678         const nativeResponseValue = wasm.TS_MessageSendEvent_update_htlcs(node_id, updates);
15679         return nativeResponseValue;
15680 }
15681         // struct LDKMessageSendEvent MessageSendEvent_send_revoke_and_ack(struct LDKPublicKey node_id, struct LDKRevokeAndACK msg);
15682 /* @internal */
15683 export function MessageSendEvent_send_revoke_and_ack(node_id: number, msg: number): number {
15684         if(!isWasmInitialized) {
15685                 throw new Error("initializeWasm() must be awaited first!");
15686         }
15687         const nativeResponseValue = wasm.TS_MessageSendEvent_send_revoke_and_ack(node_id, msg);
15688         return nativeResponseValue;
15689 }
15690         // struct LDKMessageSendEvent MessageSendEvent_send_closing_signed(struct LDKPublicKey node_id, struct LDKClosingSigned msg);
15691 /* @internal */
15692 export function MessageSendEvent_send_closing_signed(node_id: number, msg: number): number {
15693         if(!isWasmInitialized) {
15694                 throw new Error("initializeWasm() must be awaited first!");
15695         }
15696         const nativeResponseValue = wasm.TS_MessageSendEvent_send_closing_signed(node_id, msg);
15697         return nativeResponseValue;
15698 }
15699         // struct LDKMessageSendEvent MessageSendEvent_send_shutdown(struct LDKPublicKey node_id, struct LDKShutdown msg);
15700 /* @internal */
15701 export function MessageSendEvent_send_shutdown(node_id: number, msg: number): number {
15702         if(!isWasmInitialized) {
15703                 throw new Error("initializeWasm() must be awaited first!");
15704         }
15705         const nativeResponseValue = wasm.TS_MessageSendEvent_send_shutdown(node_id, msg);
15706         return nativeResponseValue;
15707 }
15708         // struct LDKMessageSendEvent MessageSendEvent_send_channel_reestablish(struct LDKPublicKey node_id, struct LDKChannelReestablish msg);
15709 /* @internal */
15710 export function MessageSendEvent_send_channel_reestablish(node_id: number, msg: number): number {
15711         if(!isWasmInitialized) {
15712                 throw new Error("initializeWasm() must be awaited first!");
15713         }
15714         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_reestablish(node_id, msg);
15715         return nativeResponseValue;
15716 }
15717         // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_announcement(struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
15718 /* @internal */
15719 export function MessageSendEvent_broadcast_channel_announcement(msg: number, update_msg: number): number {
15720         if(!isWasmInitialized) {
15721                 throw new Error("initializeWasm() must be awaited first!");
15722         }
15723         const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_channel_announcement(msg, update_msg);
15724         return nativeResponseValue;
15725 }
15726         // struct LDKMessageSendEvent MessageSendEvent_broadcast_node_announcement(struct LDKNodeAnnouncement msg);
15727 /* @internal */
15728 export function MessageSendEvent_broadcast_node_announcement(msg: number): number {
15729         if(!isWasmInitialized) {
15730                 throw new Error("initializeWasm() must be awaited first!");
15731         }
15732         const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_node_announcement(msg);
15733         return nativeResponseValue;
15734 }
15735         // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_update(struct LDKChannelUpdate msg);
15736 /* @internal */
15737 export function MessageSendEvent_broadcast_channel_update(msg: number): number {
15738         if(!isWasmInitialized) {
15739                 throw new Error("initializeWasm() must be awaited first!");
15740         }
15741         const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_channel_update(msg);
15742         return nativeResponseValue;
15743 }
15744         // struct LDKMessageSendEvent MessageSendEvent_send_channel_update(struct LDKPublicKey node_id, struct LDKChannelUpdate msg);
15745 /* @internal */
15746 export function MessageSendEvent_send_channel_update(node_id: number, msg: number): number {
15747         if(!isWasmInitialized) {
15748                 throw new Error("initializeWasm() must be awaited first!");
15749         }
15750         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_update(node_id, msg);
15751         return nativeResponseValue;
15752 }
15753         // struct LDKMessageSendEvent MessageSendEvent_handle_error(struct LDKPublicKey node_id, struct LDKErrorAction action);
15754 /* @internal */
15755 export function MessageSendEvent_handle_error(node_id: number, action: number): number {
15756         if(!isWasmInitialized) {
15757                 throw new Error("initializeWasm() must be awaited first!");
15758         }
15759         const nativeResponseValue = wasm.TS_MessageSendEvent_handle_error(node_id, action);
15760         return nativeResponseValue;
15761 }
15762         // struct LDKMessageSendEvent MessageSendEvent_send_channel_range_query(struct LDKPublicKey node_id, struct LDKQueryChannelRange msg);
15763 /* @internal */
15764 export function MessageSendEvent_send_channel_range_query(node_id: number, msg: number): number {
15765         if(!isWasmInitialized) {
15766                 throw new Error("initializeWasm() must be awaited first!");
15767         }
15768         const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_range_query(node_id, msg);
15769         return nativeResponseValue;
15770 }
15771         // struct LDKMessageSendEvent MessageSendEvent_send_short_ids_query(struct LDKPublicKey node_id, struct LDKQueryShortChannelIds msg);
15772 /* @internal */
15773 export function MessageSendEvent_send_short_ids_query(node_id: number, msg: number): number {
15774         if(!isWasmInitialized) {
15775                 throw new Error("initializeWasm() must be awaited first!");
15776         }
15777         const nativeResponseValue = wasm.TS_MessageSendEvent_send_short_ids_query(node_id, msg);
15778         return nativeResponseValue;
15779 }
15780         // struct LDKMessageSendEvent MessageSendEvent_send_reply_channel_range(struct LDKPublicKey node_id, struct LDKReplyChannelRange msg);
15781 /* @internal */
15782 export function MessageSendEvent_send_reply_channel_range(node_id: number, msg: number): number {
15783         if(!isWasmInitialized) {
15784                 throw new Error("initializeWasm() must be awaited first!");
15785         }
15786         const nativeResponseValue = wasm.TS_MessageSendEvent_send_reply_channel_range(node_id, msg);
15787         return nativeResponseValue;
15788 }
15789         // struct LDKMessageSendEvent MessageSendEvent_send_gossip_timestamp_filter(struct LDKPublicKey node_id, struct LDKGossipTimestampFilter msg);
15790 /* @internal */
15791 export function MessageSendEvent_send_gossip_timestamp_filter(node_id: number, msg: number): number {
15792         if(!isWasmInitialized) {
15793                 throw new Error("initializeWasm() must be awaited first!");
15794         }
15795         const nativeResponseValue = wasm.TS_MessageSendEvent_send_gossip_timestamp_filter(node_id, msg);
15796         return nativeResponseValue;
15797 }
15798         // void MessageSendEventsProvider_free(struct LDKMessageSendEventsProvider this_ptr);
15799 /* @internal */
15800 export function MessageSendEventsProvider_free(this_ptr: number): void {
15801         if(!isWasmInitialized) {
15802                 throw new Error("initializeWasm() must be awaited first!");
15803         }
15804         const nativeResponseValue = wasm.TS_MessageSendEventsProvider_free(this_ptr);
15805         // debug statements here
15806 }
15807         // void EventsProvider_free(struct LDKEventsProvider this_ptr);
15808 /* @internal */
15809 export function EventsProvider_free(this_ptr: number): void {
15810         if(!isWasmInitialized) {
15811                 throw new Error("initializeWasm() must be awaited first!");
15812         }
15813         const nativeResponseValue = wasm.TS_EventsProvider_free(this_ptr);
15814         // debug statements here
15815 }
15816         // void EventHandler_free(struct LDKEventHandler this_ptr);
15817 /* @internal */
15818 export function EventHandler_free(this_ptr: number): void {
15819         if(!isWasmInitialized) {
15820                 throw new Error("initializeWasm() must be awaited first!");
15821         }
15822         const nativeResponseValue = wasm.TS_EventHandler_free(this_ptr);
15823         // debug statements here
15824 }
15825         // void APIError_free(struct LDKAPIError this_ptr);
15826 /* @internal */
15827 export function APIError_free(this_ptr: number): void {
15828         if(!isWasmInitialized) {
15829                 throw new Error("initializeWasm() must be awaited first!");
15830         }
15831         const nativeResponseValue = wasm.TS_APIError_free(this_ptr);
15832         // debug statements here
15833 }
15834         // uintptr_t APIError_clone_ptr(LDKAPIError *NONNULL_PTR arg);
15835 /* @internal */
15836 export function APIError_clone_ptr(arg: number): number {
15837         if(!isWasmInitialized) {
15838                 throw new Error("initializeWasm() must be awaited first!");
15839         }
15840         const nativeResponseValue = wasm.TS_APIError_clone_ptr(arg);
15841         return nativeResponseValue;
15842 }
15843         // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig);
15844 /* @internal */
15845 export function APIError_clone(orig: number): number {
15846         if(!isWasmInitialized) {
15847                 throw new Error("initializeWasm() must be awaited first!");
15848         }
15849         const nativeResponseValue = wasm.TS_APIError_clone(orig);
15850         return nativeResponseValue;
15851 }
15852         // struct LDKAPIError APIError_apimisuse_error(struct LDKStr err);
15853 /* @internal */
15854 export function APIError_apimisuse_error(err: number): number {
15855         if(!isWasmInitialized) {
15856                 throw new Error("initializeWasm() must be awaited first!");
15857         }
15858         const nativeResponseValue = wasm.TS_APIError_apimisuse_error(err);
15859         return nativeResponseValue;
15860 }
15861         // struct LDKAPIError APIError_fee_rate_too_high(struct LDKStr err, uint32_t feerate);
15862 /* @internal */
15863 export function APIError_fee_rate_too_high(err: number, feerate: number): number {
15864         if(!isWasmInitialized) {
15865                 throw new Error("initializeWasm() must be awaited first!");
15866         }
15867         const nativeResponseValue = wasm.TS_APIError_fee_rate_too_high(err, feerate);
15868         return nativeResponseValue;
15869 }
15870         // struct LDKAPIError APIError_route_error(struct LDKStr err);
15871 /* @internal */
15872 export function APIError_route_error(err: number): number {
15873         if(!isWasmInitialized) {
15874                 throw new Error("initializeWasm() must be awaited first!");
15875         }
15876         const nativeResponseValue = wasm.TS_APIError_route_error(err);
15877         return nativeResponseValue;
15878 }
15879         // struct LDKAPIError APIError_channel_unavailable(struct LDKStr err);
15880 /* @internal */
15881 export function APIError_channel_unavailable(err: number): number {
15882         if(!isWasmInitialized) {
15883                 throw new Error("initializeWasm() must be awaited first!");
15884         }
15885         const nativeResponseValue = wasm.TS_APIError_channel_unavailable(err);
15886         return nativeResponseValue;
15887 }
15888         // struct LDKAPIError APIError_monitor_update_failed(void);
15889 /* @internal */
15890 export function APIError_monitor_update_failed(): number {
15891         if(!isWasmInitialized) {
15892                 throw new Error("initializeWasm() must be awaited first!");
15893         }
15894         const nativeResponseValue = wasm.TS_APIError_monitor_update_failed();
15895         return nativeResponseValue;
15896 }
15897         // struct LDKAPIError APIError_incompatible_shutdown_script(struct LDKShutdownScript script);
15898 /* @internal */
15899 export function APIError_incompatible_shutdown_script(script: number): number {
15900         if(!isWasmInitialized) {
15901                 throw new Error("initializeWasm() must be awaited first!");
15902         }
15903         const nativeResponseValue = wasm.TS_APIError_incompatible_shutdown_script(script);
15904         return nativeResponseValue;
15905 }
15906         // void BigSize_free(struct LDKBigSize this_obj);
15907 /* @internal */
15908 export function BigSize_free(this_obj: number): void {
15909         if(!isWasmInitialized) {
15910                 throw new Error("initializeWasm() must be awaited first!");
15911         }
15912         const nativeResponseValue = wasm.TS_BigSize_free(this_obj);
15913         // debug statements here
15914 }
15915         // uint64_t BigSize_get_a(const struct LDKBigSize *NONNULL_PTR this_ptr);
15916 /* @internal */
15917 export function BigSize_get_a(this_ptr: number): bigint {
15918         if(!isWasmInitialized) {
15919                 throw new Error("initializeWasm() must be awaited first!");
15920         }
15921         const nativeResponseValue = wasm.TS_BigSize_get_a(this_ptr);
15922         return nativeResponseValue;
15923 }
15924         // void BigSize_set_a(struct LDKBigSize *NONNULL_PTR this_ptr, uint64_t val);
15925 /* @internal */
15926 export function BigSize_set_a(this_ptr: number, val: bigint): void {
15927         if(!isWasmInitialized) {
15928                 throw new Error("initializeWasm() must be awaited first!");
15929         }
15930         const nativeResponseValue = wasm.TS_BigSize_set_a(this_ptr, val);
15931         // debug statements here
15932 }
15933         // MUST_USE_RES struct LDKBigSize BigSize_new(uint64_t a_arg);
15934 /* @internal */
15935 export function BigSize_new(a_arg: bigint): number {
15936         if(!isWasmInitialized) {
15937                 throw new Error("initializeWasm() must be awaited first!");
15938         }
15939         const nativeResponseValue = wasm.TS_BigSize_new(a_arg);
15940         return nativeResponseValue;
15941 }
15942         // struct LDKCResult_StringErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]);
15943 /* @internal */
15944 export function sign(msg: number, sk: number): number {
15945         if(!isWasmInitialized) {
15946                 throw new Error("initializeWasm() must be awaited first!");
15947         }
15948         const nativeResponseValue = wasm.TS_sign(msg, sk);
15949         return nativeResponseValue;
15950 }
15951         // struct LDKCResult_PublicKeyErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig);
15952 /* @internal */
15953 export function recover_pk(msg: number, sig: number): number {
15954         if(!isWasmInitialized) {
15955                 throw new Error("initializeWasm() must be awaited first!");
15956         }
15957         const nativeResponseValue = wasm.TS_recover_pk(msg, sig);
15958         return nativeResponseValue;
15959 }
15960         // bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk);
15961 /* @internal */
15962 export function verify(msg: number, sig: number, pk: number): boolean {
15963         if(!isWasmInitialized) {
15964                 throw new Error("initializeWasm() must be awaited first!");
15965         }
15966         const nativeResponseValue = wasm.TS_verify(msg, sig, pk);
15967         return nativeResponseValue;
15968 }
15969         // struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_u5Z data_without_signature);
15970 /* @internal */
15971 export function construct_invoice_preimage(hrp_bytes: number, data_without_signature: number): number {
15972         if(!isWasmInitialized) {
15973                 throw new Error("initializeWasm() must be awaited first!");
15974         }
15975         const nativeResponseValue = wasm.TS_construct_invoice_preimage(hrp_bytes, data_without_signature);
15976         return nativeResponseValue;
15977 }
15978         // void Persister_free(struct LDKPersister this_ptr);
15979 /* @internal */
15980 export function Persister_free(this_ptr: number): void {
15981         if(!isWasmInitialized) {
15982                 throw new Error("initializeWasm() must be awaited first!");
15983         }
15984         const nativeResponseValue = wasm.TS_Persister_free(this_ptr);
15985         // debug statements here
15986 }
15987         // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig);
15988 /* @internal */
15989 export function Level_clone(orig: number): Level {
15990         if(!isWasmInitialized) {
15991                 throw new Error("initializeWasm() must be awaited first!");
15992         }
15993         const nativeResponseValue = wasm.TS_Level_clone(orig);
15994         return nativeResponseValue;
15995 }
15996         // enum LDKLevel Level_gossip(void);
15997 /* @internal */
15998 export function Level_gossip(): Level {
15999         if(!isWasmInitialized) {
16000                 throw new Error("initializeWasm() must be awaited first!");
16001         }
16002         const nativeResponseValue = wasm.TS_Level_gossip();
16003         return nativeResponseValue;
16004 }
16005         // enum LDKLevel Level_trace(void);
16006 /* @internal */
16007 export function Level_trace(): Level {
16008         if(!isWasmInitialized) {
16009                 throw new Error("initializeWasm() must be awaited first!");
16010         }
16011         const nativeResponseValue = wasm.TS_Level_trace();
16012         return nativeResponseValue;
16013 }
16014         // enum LDKLevel Level_debug(void);
16015 /* @internal */
16016 export function Level_debug(): Level {
16017         if(!isWasmInitialized) {
16018                 throw new Error("initializeWasm() must be awaited first!");
16019         }
16020         const nativeResponseValue = wasm.TS_Level_debug();
16021         return nativeResponseValue;
16022 }
16023         // enum LDKLevel Level_info(void);
16024 /* @internal */
16025 export function Level_info(): Level {
16026         if(!isWasmInitialized) {
16027                 throw new Error("initializeWasm() must be awaited first!");
16028         }
16029         const nativeResponseValue = wasm.TS_Level_info();
16030         return nativeResponseValue;
16031 }
16032         // enum LDKLevel Level_warn(void);
16033 /* @internal */
16034 export function Level_warn(): Level {
16035         if(!isWasmInitialized) {
16036                 throw new Error("initializeWasm() must be awaited first!");
16037         }
16038         const nativeResponseValue = wasm.TS_Level_warn();
16039         return nativeResponseValue;
16040 }
16041         // enum LDKLevel Level_error(void);
16042 /* @internal */
16043 export function Level_error(): Level {
16044         if(!isWasmInitialized) {
16045                 throw new Error("initializeWasm() must be awaited first!");
16046         }
16047         const nativeResponseValue = wasm.TS_Level_error();
16048         return nativeResponseValue;
16049 }
16050         // bool Level_eq(const enum LDKLevel *NONNULL_PTR a, const enum LDKLevel *NONNULL_PTR b);
16051 /* @internal */
16052 export function Level_eq(a: number, b: number): boolean {
16053         if(!isWasmInitialized) {
16054                 throw new Error("initializeWasm() must be awaited first!");
16055         }
16056         const nativeResponseValue = wasm.TS_Level_eq(a, b);
16057         return nativeResponseValue;
16058 }
16059         // uint64_t Level_hash(const enum LDKLevel *NONNULL_PTR o);
16060 /* @internal */
16061 export function Level_hash(o: number): bigint {
16062         if(!isWasmInitialized) {
16063                 throw new Error("initializeWasm() must be awaited first!");
16064         }
16065         const nativeResponseValue = wasm.TS_Level_hash(o);
16066         return nativeResponseValue;
16067 }
16068         // MUST_USE_RES enum LDKLevel Level_max(void);
16069 /* @internal */
16070 export function Level_max(): Level {
16071         if(!isWasmInitialized) {
16072                 throw new Error("initializeWasm() must be awaited first!");
16073         }
16074         const nativeResponseValue = wasm.TS_Level_max();
16075         return nativeResponseValue;
16076 }
16077         // void Record_free(struct LDKRecord this_obj);
16078 /* @internal */
16079 export function Record_free(this_obj: number): void {
16080         if(!isWasmInitialized) {
16081                 throw new Error("initializeWasm() must be awaited first!");
16082         }
16083         const nativeResponseValue = wasm.TS_Record_free(this_obj);
16084         // debug statements here
16085 }
16086         // enum LDKLevel Record_get_level(const struct LDKRecord *NONNULL_PTR this_ptr);
16087 /* @internal */
16088 export function Record_get_level(this_ptr: number): Level {
16089         if(!isWasmInitialized) {
16090                 throw new Error("initializeWasm() must be awaited first!");
16091         }
16092         const nativeResponseValue = wasm.TS_Record_get_level(this_ptr);
16093         return nativeResponseValue;
16094 }
16095         // void Record_set_level(struct LDKRecord *NONNULL_PTR this_ptr, enum LDKLevel val);
16096 /* @internal */
16097 export function Record_set_level(this_ptr: number, val: Level): void {
16098         if(!isWasmInitialized) {
16099                 throw new Error("initializeWasm() must be awaited first!");
16100         }
16101         const nativeResponseValue = wasm.TS_Record_set_level(this_ptr, val);
16102         // debug statements here
16103 }
16104         // struct LDKStr Record_get_args(const struct LDKRecord *NONNULL_PTR this_ptr);
16105 /* @internal */
16106 export function Record_get_args(this_ptr: number): number {
16107         if(!isWasmInitialized) {
16108                 throw new Error("initializeWasm() must be awaited first!");
16109         }
16110         const nativeResponseValue = wasm.TS_Record_get_args(this_ptr);
16111         return nativeResponseValue;
16112 }
16113         // void Record_set_args(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
16114 /* @internal */
16115 export function Record_set_args(this_ptr: number, val: number): void {
16116         if(!isWasmInitialized) {
16117                 throw new Error("initializeWasm() must be awaited first!");
16118         }
16119         const nativeResponseValue = wasm.TS_Record_set_args(this_ptr, val);
16120         // debug statements here
16121 }
16122         // struct LDKStr Record_get_module_path(const struct LDKRecord *NONNULL_PTR this_ptr);
16123 /* @internal */
16124 export function Record_get_module_path(this_ptr: number): number {
16125         if(!isWasmInitialized) {
16126                 throw new Error("initializeWasm() must be awaited first!");
16127         }
16128         const nativeResponseValue = wasm.TS_Record_get_module_path(this_ptr);
16129         return nativeResponseValue;
16130 }
16131         // void Record_set_module_path(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
16132 /* @internal */
16133 export function Record_set_module_path(this_ptr: number, val: number): void {
16134         if(!isWasmInitialized) {
16135                 throw new Error("initializeWasm() must be awaited first!");
16136         }
16137         const nativeResponseValue = wasm.TS_Record_set_module_path(this_ptr, val);
16138         // debug statements here
16139 }
16140         // struct LDKStr Record_get_file(const struct LDKRecord *NONNULL_PTR this_ptr);
16141 /* @internal */
16142 export function Record_get_file(this_ptr: number): number {
16143         if(!isWasmInitialized) {
16144                 throw new Error("initializeWasm() must be awaited first!");
16145         }
16146         const nativeResponseValue = wasm.TS_Record_get_file(this_ptr);
16147         return nativeResponseValue;
16148 }
16149         // void Record_set_file(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
16150 /* @internal */
16151 export function Record_set_file(this_ptr: number, val: number): void {
16152         if(!isWasmInitialized) {
16153                 throw new Error("initializeWasm() must be awaited first!");
16154         }
16155         const nativeResponseValue = wasm.TS_Record_set_file(this_ptr, val);
16156         // debug statements here
16157 }
16158         // uint32_t Record_get_line(const struct LDKRecord *NONNULL_PTR this_ptr);
16159 /* @internal */
16160 export function Record_get_line(this_ptr: number): number {
16161         if(!isWasmInitialized) {
16162                 throw new Error("initializeWasm() must be awaited first!");
16163         }
16164         const nativeResponseValue = wasm.TS_Record_get_line(this_ptr);
16165         return nativeResponseValue;
16166 }
16167         // void Record_set_line(struct LDKRecord *NONNULL_PTR this_ptr, uint32_t val);
16168 /* @internal */
16169 export function Record_set_line(this_ptr: number, val: number): void {
16170         if(!isWasmInitialized) {
16171                 throw new Error("initializeWasm() must be awaited first!");
16172         }
16173         const nativeResponseValue = wasm.TS_Record_set_line(this_ptr, val);
16174         // debug statements here
16175 }
16176         // uintptr_t Record_clone_ptr(LDKRecord *NONNULL_PTR arg);
16177 /* @internal */
16178 export function Record_clone_ptr(arg: number): number {
16179         if(!isWasmInitialized) {
16180                 throw new Error("initializeWasm() must be awaited first!");
16181         }
16182         const nativeResponseValue = wasm.TS_Record_clone_ptr(arg);
16183         return nativeResponseValue;
16184 }
16185         // struct LDKRecord Record_clone(const struct LDKRecord *NONNULL_PTR orig);
16186 /* @internal */
16187 export function Record_clone(orig: number): number {
16188         if(!isWasmInitialized) {
16189                 throw new Error("initializeWasm() must be awaited first!");
16190         }
16191         const nativeResponseValue = wasm.TS_Record_clone(orig);
16192         return nativeResponseValue;
16193 }
16194         // void Logger_free(struct LDKLogger this_ptr);
16195 /* @internal */
16196 export function Logger_free(this_ptr: number): void {
16197         if(!isWasmInitialized) {
16198                 throw new Error("initializeWasm() must be awaited first!");
16199         }
16200         const nativeResponseValue = wasm.TS_Logger_free(this_ptr);
16201         // debug statements here
16202 }
16203         // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj);
16204 /* @internal */
16205 export function ChannelHandshakeConfig_free(this_obj: number): void {
16206         if(!isWasmInitialized) {
16207                 throw new Error("initializeWasm() must be awaited first!");
16208         }
16209         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_free(this_obj);
16210         // debug statements here
16211 }
16212         // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
16213 /* @internal */
16214 export function ChannelHandshakeConfig_get_minimum_depth(this_ptr: number): number {
16215         if(!isWasmInitialized) {
16216                 throw new Error("initializeWasm() must be awaited first!");
16217         }
16218         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_minimum_depth(this_ptr);
16219         return nativeResponseValue;
16220 }
16221         // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
16222 /* @internal */
16223 export function ChannelHandshakeConfig_set_minimum_depth(this_ptr: number, val: number): void {
16224         if(!isWasmInitialized) {
16225                 throw new Error("initializeWasm() must be awaited first!");
16226         }
16227         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_minimum_depth(this_ptr, val);
16228         // debug statements here
16229 }
16230         // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
16231 /* @internal */
16232 export function ChannelHandshakeConfig_get_our_to_self_delay(this_ptr: number): number {
16233         if(!isWasmInitialized) {
16234                 throw new Error("initializeWasm() must be awaited first!");
16235         }
16236         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_to_self_delay(this_ptr);
16237         return nativeResponseValue;
16238 }
16239         // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
16240 /* @internal */
16241 export function ChannelHandshakeConfig_set_our_to_self_delay(this_ptr: number, val: number): void {
16242         if(!isWasmInitialized) {
16243                 throw new Error("initializeWasm() must be awaited first!");
16244         }
16245         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_to_self_delay(this_ptr, val);
16246         // debug statements here
16247 }
16248         // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
16249 /* @internal */
16250 export function ChannelHandshakeConfig_get_our_htlc_minimum_msat(this_ptr: number): bigint {
16251         if(!isWasmInitialized) {
16252                 throw new Error("initializeWasm() must be awaited first!");
16253         }
16254         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_htlc_minimum_msat(this_ptr);
16255         return nativeResponseValue;
16256 }
16257         // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val);
16258 /* @internal */
16259 export function ChannelHandshakeConfig_set_our_htlc_minimum_msat(this_ptr: number, val: bigint): void {
16260         if(!isWasmInitialized) {
16261                 throw new Error("initializeWasm() must be awaited first!");
16262         }
16263         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_htlc_minimum_msat(this_ptr, val);
16264         // debug statements here
16265 }
16266         // uint8_t ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
16267 /* @internal */
16268 export function ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr: number): number {
16269         if(!isWasmInitialized) {
16270                 throw new Error("initializeWasm() must be awaited first!");
16271         }
16272         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr);
16273         return nativeResponseValue;
16274 }
16275         // void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint8_t val);
16276 /* @internal */
16277 export function ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr: number, val: number): void {
16278         if(!isWasmInitialized) {
16279                 throw new Error("initializeWasm() must be awaited first!");
16280         }
16281         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr, val);
16282         // debug statements here
16283 }
16284         // bool ChannelHandshakeConfig_get_negotiate_scid_privacy(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
16285 /* @internal */
16286 export function ChannelHandshakeConfig_get_negotiate_scid_privacy(this_ptr: number): boolean {
16287         if(!isWasmInitialized) {
16288                 throw new Error("initializeWasm() must be awaited first!");
16289         }
16290         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_negotiate_scid_privacy(this_ptr);
16291         return nativeResponseValue;
16292 }
16293         // void ChannelHandshakeConfig_set_negotiate_scid_privacy(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
16294 /* @internal */
16295 export function ChannelHandshakeConfig_set_negotiate_scid_privacy(this_ptr: number, val: boolean): void {
16296         if(!isWasmInitialized) {
16297                 throw new Error("initializeWasm() must be awaited first!");
16298         }
16299         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_negotiate_scid_privacy(this_ptr, val);
16300         // debug statements here
16301 }
16302         // bool ChannelHandshakeConfig_get_announced_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
16303 /* @internal */
16304 export function ChannelHandshakeConfig_get_announced_channel(this_ptr: number): boolean {
16305         if(!isWasmInitialized) {
16306                 throw new Error("initializeWasm() must be awaited first!");
16307         }
16308         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_announced_channel(this_ptr);
16309         return nativeResponseValue;
16310 }
16311         // void ChannelHandshakeConfig_set_announced_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
16312 /* @internal */
16313 export function ChannelHandshakeConfig_set_announced_channel(this_ptr: number, val: boolean): void {
16314         if(!isWasmInitialized) {
16315                 throw new Error("initializeWasm() must be awaited first!");
16316         }
16317         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_announced_channel(this_ptr, val);
16318         // debug statements here
16319 }
16320         // bool ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
16321 /* @internal */
16322 export function ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(this_ptr: number): boolean {
16323         if(!isWasmInitialized) {
16324                 throw new Error("initializeWasm() must be awaited first!");
16325         }
16326         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(this_ptr);
16327         return nativeResponseValue;
16328 }
16329         // void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
16330 /* @internal */
16331 export function ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(this_ptr: number, val: boolean): void {
16332         if(!isWasmInitialized) {
16333                 throw new Error("initializeWasm() must be awaited first!");
16334         }
16335         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(this_ptr, val);
16336         // debug statements here
16337 }
16338         // 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, uint8_t max_inbound_htlc_value_in_flight_percent_of_channel_arg, bool negotiate_scid_privacy_arg, bool announced_channel_arg, bool commit_upfront_shutdown_pubkey_arg);
16339 /* @internal */
16340 export function ChannelHandshakeConfig_new(minimum_depth_arg: number, our_to_self_delay_arg: number, our_htlc_minimum_msat_arg: bigint, max_inbound_htlc_value_in_flight_percent_of_channel_arg: number, negotiate_scid_privacy_arg: boolean, announced_channel_arg: boolean, commit_upfront_shutdown_pubkey_arg: boolean): number {
16341         if(!isWasmInitialized) {
16342                 throw new Error("initializeWasm() must be awaited first!");
16343         }
16344         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_new(minimum_depth_arg, our_to_self_delay_arg, our_htlc_minimum_msat_arg, max_inbound_htlc_value_in_flight_percent_of_channel_arg, negotiate_scid_privacy_arg, announced_channel_arg, commit_upfront_shutdown_pubkey_arg);
16345         return nativeResponseValue;
16346 }
16347         // uintptr_t ChannelHandshakeConfig_clone_ptr(LDKChannelHandshakeConfig *NONNULL_PTR arg);
16348 /* @internal */
16349 export function ChannelHandshakeConfig_clone_ptr(arg: number): number {
16350         if(!isWasmInitialized) {
16351                 throw new Error("initializeWasm() must be awaited first!");
16352         }
16353         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_clone_ptr(arg);
16354         return nativeResponseValue;
16355 }
16356         // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig);
16357 /* @internal */
16358 export function ChannelHandshakeConfig_clone(orig: number): number {
16359         if(!isWasmInitialized) {
16360                 throw new Error("initializeWasm() must be awaited first!");
16361         }
16362         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_clone(orig);
16363         return nativeResponseValue;
16364 }
16365         // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void);
16366 /* @internal */
16367 export function ChannelHandshakeConfig_default(): number {
16368         if(!isWasmInitialized) {
16369                 throw new Error("initializeWasm() must be awaited first!");
16370         }
16371         const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_default();
16372         return nativeResponseValue;
16373 }
16374         // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj);
16375 /* @internal */
16376 export function ChannelHandshakeLimits_free(this_obj: number): void {
16377         if(!isWasmInitialized) {
16378                 throw new Error("initializeWasm() must be awaited first!");
16379         }
16380         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_free(this_obj);
16381         // debug statements here
16382 }
16383         // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16384 /* @internal */
16385 export function ChannelHandshakeLimits_get_min_funding_satoshis(this_ptr: number): bigint {
16386         if(!isWasmInitialized) {
16387                 throw new Error("initializeWasm() must be awaited first!");
16388         }
16389         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_funding_satoshis(this_ptr);
16390         return nativeResponseValue;
16391 }
16392         // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
16393 /* @internal */
16394 export function ChannelHandshakeLimits_set_min_funding_satoshis(this_ptr: number, val: bigint): void {
16395         if(!isWasmInitialized) {
16396                 throw new Error("initializeWasm() must be awaited first!");
16397         }
16398         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_funding_satoshis(this_ptr, val);
16399         // debug statements here
16400 }
16401         // uint64_t ChannelHandshakeLimits_get_max_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16402 /* @internal */
16403 export function ChannelHandshakeLimits_get_max_funding_satoshis(this_ptr: number): bigint {
16404         if(!isWasmInitialized) {
16405                 throw new Error("initializeWasm() must be awaited first!");
16406         }
16407         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_funding_satoshis(this_ptr);
16408         return nativeResponseValue;
16409 }
16410         // void ChannelHandshakeLimits_set_max_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
16411 /* @internal */
16412 export function ChannelHandshakeLimits_set_max_funding_satoshis(this_ptr: number, val: bigint): void {
16413         if(!isWasmInitialized) {
16414                 throw new Error("initializeWasm() must be awaited first!");
16415         }
16416         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_funding_satoshis(this_ptr, val);
16417         // debug statements here
16418 }
16419         // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16420 /* @internal */
16421 export function ChannelHandshakeLimits_get_max_htlc_minimum_msat(this_ptr: number): bigint {
16422         if(!isWasmInitialized) {
16423                 throw new Error("initializeWasm() must be awaited first!");
16424         }
16425         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_htlc_minimum_msat(this_ptr);
16426         return nativeResponseValue;
16427 }
16428         // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
16429 /* @internal */
16430 export function ChannelHandshakeLimits_set_max_htlc_minimum_msat(this_ptr: number, val: bigint): void {
16431         if(!isWasmInitialized) {
16432                 throw new Error("initializeWasm() must be awaited first!");
16433         }
16434         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_htlc_minimum_msat(this_ptr, val);
16435         // debug statements here
16436 }
16437         // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16438 /* @internal */
16439 export function ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this_ptr: number): bigint {
16440         if(!isWasmInitialized) {
16441                 throw new Error("initializeWasm() must be awaited first!");
16442         }
16443         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this_ptr);
16444         return nativeResponseValue;
16445 }
16446         // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
16447 /* @internal */
16448 export function ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this_ptr: number, val: bigint): void {
16449         if(!isWasmInitialized) {
16450                 throw new Error("initializeWasm() must be awaited first!");
16451         }
16452         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this_ptr, val);
16453         // debug statements here
16454 }
16455         // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16456 /* @internal */
16457 export function ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this_ptr: number): bigint {
16458         if(!isWasmInitialized) {
16459                 throw new Error("initializeWasm() must be awaited first!");
16460         }
16461         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this_ptr);
16462         return nativeResponseValue;
16463 }
16464         // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
16465 /* @internal */
16466 export function ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this_ptr: number, val: bigint): void {
16467         if(!isWasmInitialized) {
16468                 throw new Error("initializeWasm() must be awaited first!");
16469         }
16470         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this_ptr, val);
16471         // debug statements here
16472 }
16473         // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16474 /* @internal */
16475 export function ChannelHandshakeLimits_get_min_max_accepted_htlcs(this_ptr: number): number {
16476         if(!isWasmInitialized) {
16477                 throw new Error("initializeWasm() must be awaited first!");
16478         }
16479         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_max_accepted_htlcs(this_ptr);
16480         return nativeResponseValue;
16481 }
16482         // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
16483 /* @internal */
16484 export function ChannelHandshakeLimits_set_min_max_accepted_htlcs(this_ptr: number, val: number): void {
16485         if(!isWasmInitialized) {
16486                 throw new Error("initializeWasm() must be awaited first!");
16487         }
16488         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_max_accepted_htlcs(this_ptr, val);
16489         // debug statements here
16490 }
16491         // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16492 /* @internal */
16493 export function ChannelHandshakeLimits_get_max_minimum_depth(this_ptr: number): number {
16494         if(!isWasmInitialized) {
16495                 throw new Error("initializeWasm() must be awaited first!");
16496         }
16497         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_minimum_depth(this_ptr);
16498         return nativeResponseValue;
16499 }
16500         // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val);
16501 /* @internal */
16502 export function ChannelHandshakeLimits_set_max_minimum_depth(this_ptr: number, val: number): void {
16503         if(!isWasmInitialized) {
16504                 throw new Error("initializeWasm() must be awaited first!");
16505         }
16506         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_minimum_depth(this_ptr, val);
16507         // debug statements here
16508 }
16509         // bool ChannelHandshakeLimits_get_trust_own_funding_0conf(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16510 /* @internal */
16511 export function ChannelHandshakeLimits_get_trust_own_funding_0conf(this_ptr: number): boolean {
16512         if(!isWasmInitialized) {
16513                 throw new Error("initializeWasm() must be awaited first!");
16514         }
16515         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_trust_own_funding_0conf(this_ptr);
16516         return nativeResponseValue;
16517 }
16518         // void ChannelHandshakeLimits_set_trust_own_funding_0conf(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
16519 /* @internal */
16520 export function ChannelHandshakeLimits_set_trust_own_funding_0conf(this_ptr: number, val: boolean): void {
16521         if(!isWasmInitialized) {
16522                 throw new Error("initializeWasm() must be awaited first!");
16523         }
16524         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_trust_own_funding_0conf(this_ptr, val);
16525         // debug statements here
16526 }
16527         // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16528 /* @internal */
16529 export function ChannelHandshakeLimits_get_force_announced_channel_preference(this_ptr: number): boolean {
16530         if(!isWasmInitialized) {
16531                 throw new Error("initializeWasm() must be awaited first!");
16532         }
16533         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_force_announced_channel_preference(this_ptr);
16534         return nativeResponseValue;
16535 }
16536         // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
16537 /* @internal */
16538 export function ChannelHandshakeLimits_set_force_announced_channel_preference(this_ptr: number, val: boolean): void {
16539         if(!isWasmInitialized) {
16540                 throw new Error("initializeWasm() must be awaited first!");
16541         }
16542         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_force_announced_channel_preference(this_ptr, val);
16543         // debug statements here
16544 }
16545         // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
16546 /* @internal */
16547 export function ChannelHandshakeLimits_get_their_to_self_delay(this_ptr: number): number {
16548         if(!isWasmInitialized) {
16549                 throw new Error("initializeWasm() must be awaited first!");
16550         }
16551         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_their_to_self_delay(this_ptr);
16552         return nativeResponseValue;
16553 }
16554         // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
16555 /* @internal */
16556 export function ChannelHandshakeLimits_set_their_to_self_delay(this_ptr: number, val: number): void {
16557         if(!isWasmInitialized) {
16558                 throw new Error("initializeWasm() must be awaited first!");
16559         }
16560         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_their_to_self_delay(this_ptr, val);
16561         // debug statements here
16562 }
16563         // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_new(uint64_t min_funding_satoshis_arg, uint64_t max_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 trust_own_funding_0conf_arg, bool force_announced_channel_preference_arg, uint16_t their_to_self_delay_arg);
16564 /* @internal */
16565 export function ChannelHandshakeLimits_new(min_funding_satoshis_arg: bigint, max_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, trust_own_funding_0conf_arg: boolean, force_announced_channel_preference_arg: boolean, their_to_self_delay_arg: number): number {
16566         if(!isWasmInitialized) {
16567                 throw new Error("initializeWasm() must be awaited first!");
16568         }
16569         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_new(min_funding_satoshis_arg, max_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, trust_own_funding_0conf_arg, force_announced_channel_preference_arg, their_to_self_delay_arg);
16570         return nativeResponseValue;
16571 }
16572         // uintptr_t ChannelHandshakeLimits_clone_ptr(LDKChannelHandshakeLimits *NONNULL_PTR arg);
16573 /* @internal */
16574 export function ChannelHandshakeLimits_clone_ptr(arg: number): number {
16575         if(!isWasmInitialized) {
16576                 throw new Error("initializeWasm() must be awaited first!");
16577         }
16578         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_clone_ptr(arg);
16579         return nativeResponseValue;
16580 }
16581         // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig);
16582 /* @internal */
16583 export function ChannelHandshakeLimits_clone(orig: number): number {
16584         if(!isWasmInitialized) {
16585                 throw new Error("initializeWasm() must be awaited first!");
16586         }
16587         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_clone(orig);
16588         return nativeResponseValue;
16589 }
16590         // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void);
16591 /* @internal */
16592 export function ChannelHandshakeLimits_default(): number {
16593         if(!isWasmInitialized) {
16594                 throw new Error("initializeWasm() must be awaited first!");
16595         }
16596         const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_default();
16597         return nativeResponseValue;
16598 }
16599         // void ChannelConfig_free(struct LDKChannelConfig this_obj);
16600 /* @internal */
16601 export function ChannelConfig_free(this_obj: number): void {
16602         if(!isWasmInitialized) {
16603                 throw new Error("initializeWasm() must be awaited first!");
16604         }
16605         const nativeResponseValue = wasm.TS_ChannelConfig_free(this_obj);
16606         // debug statements here
16607 }
16608         // uint32_t ChannelConfig_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
16609 /* @internal */
16610 export function ChannelConfig_get_forwarding_fee_proportional_millionths(this_ptr: number): number {
16611         if(!isWasmInitialized) {
16612                 throw new Error("initializeWasm() must be awaited first!");
16613         }
16614         const nativeResponseValue = wasm.TS_ChannelConfig_get_forwarding_fee_proportional_millionths(this_ptr);
16615         return nativeResponseValue;
16616 }
16617         // void ChannelConfig_set_forwarding_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
16618 /* @internal */
16619 export function ChannelConfig_set_forwarding_fee_proportional_millionths(this_ptr: number, val: number): void {
16620         if(!isWasmInitialized) {
16621                 throw new Error("initializeWasm() must be awaited first!");
16622         }
16623         const nativeResponseValue = wasm.TS_ChannelConfig_set_forwarding_fee_proportional_millionths(this_ptr, val);
16624         // debug statements here
16625 }
16626         // uint32_t ChannelConfig_get_forwarding_fee_base_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
16627 /* @internal */
16628 export function ChannelConfig_get_forwarding_fee_base_msat(this_ptr: number): number {
16629         if(!isWasmInitialized) {
16630                 throw new Error("initializeWasm() must be awaited first!");
16631         }
16632         const nativeResponseValue = wasm.TS_ChannelConfig_get_forwarding_fee_base_msat(this_ptr);
16633         return nativeResponseValue;
16634 }
16635         // void ChannelConfig_set_forwarding_fee_base_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
16636 /* @internal */
16637 export function ChannelConfig_set_forwarding_fee_base_msat(this_ptr: number, val: number): void {
16638         if(!isWasmInitialized) {
16639                 throw new Error("initializeWasm() must be awaited first!");
16640         }
16641         const nativeResponseValue = wasm.TS_ChannelConfig_set_forwarding_fee_base_msat(this_ptr, val);
16642         // debug statements here
16643 }
16644         // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
16645 /* @internal */
16646 export function ChannelConfig_get_cltv_expiry_delta(this_ptr: number): number {
16647         if(!isWasmInitialized) {
16648                 throw new Error("initializeWasm() must be awaited first!");
16649         }
16650         const nativeResponseValue = wasm.TS_ChannelConfig_get_cltv_expiry_delta(this_ptr);
16651         return nativeResponseValue;
16652 }
16653         // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val);
16654 /* @internal */
16655 export function ChannelConfig_set_cltv_expiry_delta(this_ptr: number, val: number): void {
16656         if(!isWasmInitialized) {
16657                 throw new Error("initializeWasm() must be awaited first!");
16658         }
16659         const nativeResponseValue = wasm.TS_ChannelConfig_set_cltv_expiry_delta(this_ptr, val);
16660         // debug statements here
16661 }
16662         // uint64_t ChannelConfig_get_max_dust_htlc_exposure_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
16663 /* @internal */
16664 export function ChannelConfig_get_max_dust_htlc_exposure_msat(this_ptr: number): bigint {
16665         if(!isWasmInitialized) {
16666                 throw new Error("initializeWasm() must be awaited first!");
16667         }
16668         const nativeResponseValue = wasm.TS_ChannelConfig_get_max_dust_htlc_exposure_msat(this_ptr);
16669         return nativeResponseValue;
16670 }
16671         // void ChannelConfig_set_max_dust_htlc_exposure_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
16672 /* @internal */
16673 export function ChannelConfig_set_max_dust_htlc_exposure_msat(this_ptr: number, val: bigint): void {
16674         if(!isWasmInitialized) {
16675                 throw new Error("initializeWasm() must be awaited first!");
16676         }
16677         const nativeResponseValue = wasm.TS_ChannelConfig_set_max_dust_htlc_exposure_msat(this_ptr, val);
16678         // debug statements here
16679 }
16680         // uint64_t ChannelConfig_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
16681 /* @internal */
16682 export function ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this_ptr: number): bigint {
16683         if(!isWasmInitialized) {
16684                 throw new Error("initializeWasm() must be awaited first!");
16685         }
16686         const nativeResponseValue = wasm.TS_ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this_ptr);
16687         return nativeResponseValue;
16688 }
16689         // void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
16690 /* @internal */
16691 export function ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this_ptr: number, val: bigint): void {
16692         if(!isWasmInitialized) {
16693                 throw new Error("initializeWasm() must be awaited first!");
16694         }
16695         const nativeResponseValue = wasm.TS_ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this_ptr, val);
16696         // debug statements here
16697 }
16698         // 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, uint64_t max_dust_htlc_exposure_msat_arg, uint64_t force_close_avoidance_max_fee_satoshis_arg);
16699 /* @internal */
16700 export function ChannelConfig_new(forwarding_fee_proportional_millionths_arg: number, forwarding_fee_base_msat_arg: number, cltv_expiry_delta_arg: number, max_dust_htlc_exposure_msat_arg: bigint, force_close_avoidance_max_fee_satoshis_arg: bigint): number {
16701         if(!isWasmInitialized) {
16702                 throw new Error("initializeWasm() must be awaited first!");
16703         }
16704         const nativeResponseValue = wasm.TS_ChannelConfig_new(forwarding_fee_proportional_millionths_arg, forwarding_fee_base_msat_arg, cltv_expiry_delta_arg, max_dust_htlc_exposure_msat_arg, force_close_avoidance_max_fee_satoshis_arg);
16705         return nativeResponseValue;
16706 }
16707         // uintptr_t ChannelConfig_clone_ptr(LDKChannelConfig *NONNULL_PTR arg);
16708 /* @internal */
16709 export function ChannelConfig_clone_ptr(arg: number): number {
16710         if(!isWasmInitialized) {
16711                 throw new Error("initializeWasm() must be awaited first!");
16712         }
16713         const nativeResponseValue = wasm.TS_ChannelConfig_clone_ptr(arg);
16714         return nativeResponseValue;
16715 }
16716         // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig);
16717 /* @internal */
16718 export function ChannelConfig_clone(orig: number): number {
16719         if(!isWasmInitialized) {
16720                 throw new Error("initializeWasm() must be awaited first!");
16721         }
16722         const nativeResponseValue = wasm.TS_ChannelConfig_clone(orig);
16723         return nativeResponseValue;
16724 }
16725         // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void);
16726 /* @internal */
16727 export function ChannelConfig_default(): number {
16728         if(!isWasmInitialized) {
16729                 throw new Error("initializeWasm() must be awaited first!");
16730         }
16731         const nativeResponseValue = wasm.TS_ChannelConfig_default();
16732         return nativeResponseValue;
16733 }
16734         // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj);
16735 /* @internal */
16736 export function ChannelConfig_write(obj: number): number {
16737         if(!isWasmInitialized) {
16738                 throw new Error("initializeWasm() must be awaited first!");
16739         }
16740         const nativeResponseValue = wasm.TS_ChannelConfig_write(obj);
16741         return nativeResponseValue;
16742 }
16743         // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser);
16744 /* @internal */
16745 export function ChannelConfig_read(ser: number): number {
16746         if(!isWasmInitialized) {
16747                 throw new Error("initializeWasm() must be awaited first!");
16748         }
16749         const nativeResponseValue = wasm.TS_ChannelConfig_read(ser);
16750         return nativeResponseValue;
16751 }
16752         // void UserConfig_free(struct LDKUserConfig this_obj);
16753 /* @internal */
16754 export function UserConfig_free(this_obj: number): void {
16755         if(!isWasmInitialized) {
16756                 throw new Error("initializeWasm() must be awaited first!");
16757         }
16758         const nativeResponseValue = wasm.TS_UserConfig_free(this_obj);
16759         // debug statements here
16760 }
16761         // struct LDKChannelHandshakeConfig UserConfig_get_channel_handshake_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16762 /* @internal */
16763 export function UserConfig_get_channel_handshake_config(this_ptr: number): number {
16764         if(!isWasmInitialized) {
16765                 throw new Error("initializeWasm() must be awaited first!");
16766         }
16767         const nativeResponseValue = wasm.TS_UserConfig_get_channel_handshake_config(this_ptr);
16768         return nativeResponseValue;
16769 }
16770         // void UserConfig_set_channel_handshake_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val);
16771 /* @internal */
16772 export function UserConfig_set_channel_handshake_config(this_ptr: number, val: number): void {
16773         if(!isWasmInitialized) {
16774                 throw new Error("initializeWasm() must be awaited first!");
16775         }
16776         const nativeResponseValue = wasm.TS_UserConfig_set_channel_handshake_config(this_ptr, val);
16777         // debug statements here
16778 }
16779         // struct LDKChannelHandshakeLimits UserConfig_get_channel_handshake_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16780 /* @internal */
16781 export function UserConfig_get_channel_handshake_limits(this_ptr: number): number {
16782         if(!isWasmInitialized) {
16783                 throw new Error("initializeWasm() must be awaited first!");
16784         }
16785         const nativeResponseValue = wasm.TS_UserConfig_get_channel_handshake_limits(this_ptr);
16786         return nativeResponseValue;
16787 }
16788         // void UserConfig_set_channel_handshake_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val);
16789 /* @internal */
16790 export function UserConfig_set_channel_handshake_limits(this_ptr: number, val: number): void {
16791         if(!isWasmInitialized) {
16792                 throw new Error("initializeWasm() must be awaited first!");
16793         }
16794         const nativeResponseValue = wasm.TS_UserConfig_set_channel_handshake_limits(this_ptr, val);
16795         // debug statements here
16796 }
16797         // struct LDKChannelConfig UserConfig_get_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16798 /* @internal */
16799 export function UserConfig_get_channel_config(this_ptr: number): number {
16800         if(!isWasmInitialized) {
16801                 throw new Error("initializeWasm() must be awaited first!");
16802         }
16803         const nativeResponseValue = wasm.TS_UserConfig_get_channel_config(this_ptr);
16804         return nativeResponseValue;
16805 }
16806         // void UserConfig_set_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
16807 /* @internal */
16808 export function UserConfig_set_channel_config(this_ptr: number, val: number): void {
16809         if(!isWasmInitialized) {
16810                 throw new Error("initializeWasm() must be awaited first!");
16811         }
16812         const nativeResponseValue = wasm.TS_UserConfig_set_channel_config(this_ptr, val);
16813         // debug statements here
16814 }
16815         // bool UserConfig_get_accept_forwards_to_priv_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16816 /* @internal */
16817 export function UserConfig_get_accept_forwards_to_priv_channels(this_ptr: number): boolean {
16818         if(!isWasmInitialized) {
16819                 throw new Error("initializeWasm() must be awaited first!");
16820         }
16821         const nativeResponseValue = wasm.TS_UserConfig_get_accept_forwards_to_priv_channels(this_ptr);
16822         return nativeResponseValue;
16823 }
16824         // void UserConfig_set_accept_forwards_to_priv_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
16825 /* @internal */
16826 export function UserConfig_set_accept_forwards_to_priv_channels(this_ptr: number, val: boolean): void {
16827         if(!isWasmInitialized) {
16828                 throw new Error("initializeWasm() must be awaited first!");
16829         }
16830         const nativeResponseValue = wasm.TS_UserConfig_set_accept_forwards_to_priv_channels(this_ptr, val);
16831         // debug statements here
16832 }
16833         // bool UserConfig_get_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16834 /* @internal */
16835 export function UserConfig_get_accept_inbound_channels(this_ptr: number): boolean {
16836         if(!isWasmInitialized) {
16837                 throw new Error("initializeWasm() must be awaited first!");
16838         }
16839         const nativeResponseValue = wasm.TS_UserConfig_get_accept_inbound_channels(this_ptr);
16840         return nativeResponseValue;
16841 }
16842         // void UserConfig_set_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
16843 /* @internal */
16844 export function UserConfig_set_accept_inbound_channels(this_ptr: number, val: boolean): void {
16845         if(!isWasmInitialized) {
16846                 throw new Error("initializeWasm() must be awaited first!");
16847         }
16848         const nativeResponseValue = wasm.TS_UserConfig_set_accept_inbound_channels(this_ptr, val);
16849         // debug statements here
16850 }
16851         // bool UserConfig_get_manually_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
16852 /* @internal */
16853 export function UserConfig_get_manually_accept_inbound_channels(this_ptr: number): boolean {
16854         if(!isWasmInitialized) {
16855                 throw new Error("initializeWasm() must be awaited first!");
16856         }
16857         const nativeResponseValue = wasm.TS_UserConfig_get_manually_accept_inbound_channels(this_ptr);
16858         return nativeResponseValue;
16859 }
16860         // void UserConfig_set_manually_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
16861 /* @internal */
16862 export function UserConfig_set_manually_accept_inbound_channels(this_ptr: number, val: boolean): void {
16863         if(!isWasmInitialized) {
16864                 throw new Error("initializeWasm() must be awaited first!");
16865         }
16866         const nativeResponseValue = wasm.TS_UserConfig_set_manually_accept_inbound_channels(this_ptr, val);
16867         // debug statements here
16868 }
16869         // MUST_USE_RES struct LDKUserConfig UserConfig_new(struct LDKChannelHandshakeConfig channel_handshake_config_arg, struct LDKChannelHandshakeLimits channel_handshake_limits_arg, struct LDKChannelConfig channel_config_arg, bool accept_forwards_to_priv_channels_arg, bool accept_inbound_channels_arg, bool manually_accept_inbound_channels_arg);
16870 /* @internal */
16871 export function UserConfig_new(channel_handshake_config_arg: number, channel_handshake_limits_arg: number, channel_config_arg: number, accept_forwards_to_priv_channels_arg: boolean, accept_inbound_channels_arg: boolean, manually_accept_inbound_channels_arg: boolean): number {
16872         if(!isWasmInitialized) {
16873                 throw new Error("initializeWasm() must be awaited first!");
16874         }
16875         const nativeResponseValue = wasm.TS_UserConfig_new(channel_handshake_config_arg, channel_handshake_limits_arg, channel_config_arg, accept_forwards_to_priv_channels_arg, accept_inbound_channels_arg, manually_accept_inbound_channels_arg);
16876         return nativeResponseValue;
16877 }
16878         // uintptr_t UserConfig_clone_ptr(LDKUserConfig *NONNULL_PTR arg);
16879 /* @internal */
16880 export function UserConfig_clone_ptr(arg: number): number {
16881         if(!isWasmInitialized) {
16882                 throw new Error("initializeWasm() must be awaited first!");
16883         }
16884         const nativeResponseValue = wasm.TS_UserConfig_clone_ptr(arg);
16885         return nativeResponseValue;
16886 }
16887         // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig);
16888 /* @internal */
16889 export function UserConfig_clone(orig: number): number {
16890         if(!isWasmInitialized) {
16891                 throw new Error("initializeWasm() must be awaited first!");
16892         }
16893         const nativeResponseValue = wasm.TS_UserConfig_clone(orig);
16894         return nativeResponseValue;
16895 }
16896         // MUST_USE_RES struct LDKUserConfig UserConfig_default(void);
16897 /* @internal */
16898 export function UserConfig_default(): number {
16899         if(!isWasmInitialized) {
16900                 throw new Error("initializeWasm() must be awaited first!");
16901         }
16902         const nativeResponseValue = wasm.TS_UserConfig_default();
16903         return nativeResponseValue;
16904 }
16905         // void BestBlock_free(struct LDKBestBlock this_obj);
16906 /* @internal */
16907 export function BestBlock_free(this_obj: number): void {
16908         if(!isWasmInitialized) {
16909                 throw new Error("initializeWasm() must be awaited first!");
16910         }
16911         const nativeResponseValue = wasm.TS_BestBlock_free(this_obj);
16912         // debug statements here
16913 }
16914         // uintptr_t BestBlock_clone_ptr(LDKBestBlock *NONNULL_PTR arg);
16915 /* @internal */
16916 export function BestBlock_clone_ptr(arg: number): number {
16917         if(!isWasmInitialized) {
16918                 throw new Error("initializeWasm() must be awaited first!");
16919         }
16920         const nativeResponseValue = wasm.TS_BestBlock_clone_ptr(arg);
16921         return nativeResponseValue;
16922 }
16923         // struct LDKBestBlock BestBlock_clone(const struct LDKBestBlock *NONNULL_PTR orig);
16924 /* @internal */
16925 export function BestBlock_clone(orig: number): number {
16926         if(!isWasmInitialized) {
16927                 throw new Error("initializeWasm() must be awaited first!");
16928         }
16929         const nativeResponseValue = wasm.TS_BestBlock_clone(orig);
16930         return nativeResponseValue;
16931 }
16932         // MUST_USE_RES struct LDKBestBlock BestBlock_from_genesis(enum LDKNetwork network);
16933 /* @internal */
16934 export function BestBlock_from_genesis(network: Network): number {
16935         if(!isWasmInitialized) {
16936                 throw new Error("initializeWasm() must be awaited first!");
16937         }
16938         const nativeResponseValue = wasm.TS_BestBlock_from_genesis(network);
16939         return nativeResponseValue;
16940 }
16941         // MUST_USE_RES struct LDKBestBlock BestBlock_new(struct LDKThirtyTwoBytes block_hash, uint32_t height);
16942 /* @internal */
16943 export function BestBlock_new(block_hash: number, height: number): number {
16944         if(!isWasmInitialized) {
16945                 throw new Error("initializeWasm() must be awaited first!");
16946         }
16947         const nativeResponseValue = wasm.TS_BestBlock_new(block_hash, height);
16948         return nativeResponseValue;
16949 }
16950         // MUST_USE_RES struct LDKThirtyTwoBytes BestBlock_block_hash(const struct LDKBestBlock *NONNULL_PTR this_arg);
16951 /* @internal */
16952 export function BestBlock_block_hash(this_arg: number): number {
16953         if(!isWasmInitialized) {
16954                 throw new Error("initializeWasm() must be awaited first!");
16955         }
16956         const nativeResponseValue = wasm.TS_BestBlock_block_hash(this_arg);
16957         return nativeResponseValue;
16958 }
16959         // MUST_USE_RES uint32_t BestBlock_height(const struct LDKBestBlock *NONNULL_PTR this_arg);
16960 /* @internal */
16961 export function BestBlock_height(this_arg: number): number {
16962         if(!isWasmInitialized) {
16963                 throw new Error("initializeWasm() must be awaited first!");
16964         }
16965         const nativeResponseValue = wasm.TS_BestBlock_height(this_arg);
16966         return nativeResponseValue;
16967 }
16968         // enum LDKAccessError AccessError_clone(const enum LDKAccessError *NONNULL_PTR orig);
16969 /* @internal */
16970 export function AccessError_clone(orig: number): AccessError {
16971         if(!isWasmInitialized) {
16972                 throw new Error("initializeWasm() must be awaited first!");
16973         }
16974         const nativeResponseValue = wasm.TS_AccessError_clone(orig);
16975         return nativeResponseValue;
16976 }
16977         // enum LDKAccessError AccessError_unknown_chain(void);
16978 /* @internal */
16979 export function AccessError_unknown_chain(): AccessError {
16980         if(!isWasmInitialized) {
16981                 throw new Error("initializeWasm() must be awaited first!");
16982         }
16983         const nativeResponseValue = wasm.TS_AccessError_unknown_chain();
16984         return nativeResponseValue;
16985 }
16986         // enum LDKAccessError AccessError_unknown_tx(void);
16987 /* @internal */
16988 export function AccessError_unknown_tx(): AccessError {
16989         if(!isWasmInitialized) {
16990                 throw new Error("initializeWasm() must be awaited first!");
16991         }
16992         const nativeResponseValue = wasm.TS_AccessError_unknown_tx();
16993         return nativeResponseValue;
16994 }
16995         // void Access_free(struct LDKAccess this_ptr);
16996 /* @internal */
16997 export function Access_free(this_ptr: number): void {
16998         if(!isWasmInitialized) {
16999                 throw new Error("initializeWasm() must be awaited first!");
17000         }
17001         const nativeResponseValue = wasm.TS_Access_free(this_ptr);
17002         // debug statements here
17003 }
17004         // void Listen_free(struct LDKListen this_ptr);
17005 /* @internal */
17006 export function Listen_free(this_ptr: number): void {
17007         if(!isWasmInitialized) {
17008                 throw new Error("initializeWasm() must be awaited first!");
17009         }
17010         const nativeResponseValue = wasm.TS_Listen_free(this_ptr);
17011         // debug statements here
17012 }
17013         // void Confirm_free(struct LDKConfirm this_ptr);
17014 /* @internal */
17015 export function Confirm_free(this_ptr: number): void {
17016         if(!isWasmInitialized) {
17017                 throw new Error("initializeWasm() must be awaited first!");
17018         }
17019         const nativeResponseValue = wasm.TS_Confirm_free(this_ptr);
17020         // debug statements here
17021 }
17022         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_clone(const enum LDKChannelMonitorUpdateErr *NONNULL_PTR orig);
17023 /* @internal */
17024 export function ChannelMonitorUpdateErr_clone(orig: number): ChannelMonitorUpdateErr {
17025         if(!isWasmInitialized) {
17026                 throw new Error("initializeWasm() must be awaited first!");
17027         }
17028         const nativeResponseValue = wasm.TS_ChannelMonitorUpdateErr_clone(orig);
17029         return nativeResponseValue;
17030 }
17031         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_temporary_failure(void);
17032 /* @internal */
17033 export function ChannelMonitorUpdateErr_temporary_failure(): ChannelMonitorUpdateErr {
17034         if(!isWasmInitialized) {
17035                 throw new Error("initializeWasm() must be awaited first!");
17036         }
17037         const nativeResponseValue = wasm.TS_ChannelMonitorUpdateErr_temporary_failure();
17038         return nativeResponseValue;
17039 }
17040         // enum LDKChannelMonitorUpdateErr ChannelMonitorUpdateErr_permanent_failure(void);
17041 /* @internal */
17042 export function ChannelMonitorUpdateErr_permanent_failure(): ChannelMonitorUpdateErr {
17043         if(!isWasmInitialized) {
17044                 throw new Error("initializeWasm() must be awaited first!");
17045         }
17046         const nativeResponseValue = wasm.TS_ChannelMonitorUpdateErr_permanent_failure();
17047         return nativeResponseValue;
17048 }
17049         // void Watch_free(struct LDKWatch this_ptr);
17050 /* @internal */
17051 export function Watch_free(this_ptr: number): void {
17052         if(!isWasmInitialized) {
17053                 throw new Error("initializeWasm() must be awaited first!");
17054         }
17055         const nativeResponseValue = wasm.TS_Watch_free(this_ptr);
17056         // debug statements here
17057 }
17058         // void Filter_free(struct LDKFilter this_ptr);
17059 /* @internal */
17060 export function Filter_free(this_ptr: number): void {
17061         if(!isWasmInitialized) {
17062                 throw new Error("initializeWasm() must be awaited first!");
17063         }
17064         const nativeResponseValue = wasm.TS_Filter_free(this_ptr);
17065         // debug statements here
17066 }
17067         // void WatchedOutput_free(struct LDKWatchedOutput this_obj);
17068 /* @internal */
17069 export function WatchedOutput_free(this_obj: number): void {
17070         if(!isWasmInitialized) {
17071                 throw new Error("initializeWasm() must be awaited first!");
17072         }
17073         const nativeResponseValue = wasm.TS_WatchedOutput_free(this_obj);
17074         // debug statements here
17075 }
17076         // struct LDKThirtyTwoBytes WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
17077 /* @internal */
17078 export function WatchedOutput_get_block_hash(this_ptr: number): number {
17079         if(!isWasmInitialized) {
17080                 throw new Error("initializeWasm() must be awaited first!");
17081         }
17082         const nativeResponseValue = wasm.TS_WatchedOutput_get_block_hash(this_ptr);
17083         return nativeResponseValue;
17084 }
17085         // void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
17086 /* @internal */
17087 export function WatchedOutput_set_block_hash(this_ptr: number, val: number): void {
17088         if(!isWasmInitialized) {
17089                 throw new Error("initializeWasm() must be awaited first!");
17090         }
17091         const nativeResponseValue = wasm.TS_WatchedOutput_set_block_hash(this_ptr, val);
17092         // debug statements here
17093 }
17094         // struct LDKOutPoint WatchedOutput_get_outpoint(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
17095 /* @internal */
17096 export function WatchedOutput_get_outpoint(this_ptr: number): number {
17097         if(!isWasmInitialized) {
17098                 throw new Error("initializeWasm() must be awaited first!");
17099         }
17100         const nativeResponseValue = wasm.TS_WatchedOutput_get_outpoint(this_ptr);
17101         return nativeResponseValue;
17102 }
17103         // void WatchedOutput_set_outpoint(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
17104 /* @internal */
17105 export function WatchedOutput_set_outpoint(this_ptr: number, val: number): void {
17106         if(!isWasmInitialized) {
17107                 throw new Error("initializeWasm() must be awaited first!");
17108         }
17109         const nativeResponseValue = wasm.TS_WatchedOutput_set_outpoint(this_ptr, val);
17110         // debug statements here
17111 }
17112         // struct LDKu8slice WatchedOutput_get_script_pubkey(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
17113 /* @internal */
17114 export function WatchedOutput_get_script_pubkey(this_ptr: number): number {
17115         if(!isWasmInitialized) {
17116                 throw new Error("initializeWasm() must be awaited first!");
17117         }
17118         const nativeResponseValue = wasm.TS_WatchedOutput_get_script_pubkey(this_ptr);
17119         return nativeResponseValue;
17120 }
17121         // void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
17122 /* @internal */
17123 export function WatchedOutput_set_script_pubkey(this_ptr: number, val: number): void {
17124         if(!isWasmInitialized) {
17125                 throw new Error("initializeWasm() must be awaited first!");
17126         }
17127         const nativeResponseValue = wasm.TS_WatchedOutput_set_script_pubkey(this_ptr, val);
17128         // debug statements here
17129 }
17130         // MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKThirtyTwoBytes block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg);
17131 /* @internal */
17132 export function WatchedOutput_new(block_hash_arg: number, outpoint_arg: number, script_pubkey_arg: number): number {
17133         if(!isWasmInitialized) {
17134                 throw new Error("initializeWasm() must be awaited first!");
17135         }
17136         const nativeResponseValue = wasm.TS_WatchedOutput_new(block_hash_arg, outpoint_arg, script_pubkey_arg);
17137         return nativeResponseValue;
17138 }
17139         // uintptr_t WatchedOutput_clone_ptr(LDKWatchedOutput *NONNULL_PTR arg);
17140 /* @internal */
17141 export function WatchedOutput_clone_ptr(arg: number): number {
17142         if(!isWasmInitialized) {
17143                 throw new Error("initializeWasm() must be awaited first!");
17144         }
17145         const nativeResponseValue = wasm.TS_WatchedOutput_clone_ptr(arg);
17146         return nativeResponseValue;
17147 }
17148         // struct LDKWatchedOutput WatchedOutput_clone(const struct LDKWatchedOutput *NONNULL_PTR orig);
17149 /* @internal */
17150 export function WatchedOutput_clone(orig: number): number {
17151         if(!isWasmInitialized) {
17152                 throw new Error("initializeWasm() must be awaited first!");
17153         }
17154         const nativeResponseValue = wasm.TS_WatchedOutput_clone(orig);
17155         return nativeResponseValue;
17156 }
17157         // uint64_t WatchedOutput_hash(const struct LDKWatchedOutput *NONNULL_PTR o);
17158 /* @internal */
17159 export function WatchedOutput_hash(o: number): bigint {
17160         if(!isWasmInitialized) {
17161                 throw new Error("initializeWasm() must be awaited first!");
17162         }
17163         const nativeResponseValue = wasm.TS_WatchedOutput_hash(o);
17164         return nativeResponseValue;
17165 }
17166         // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr);
17167 /* @internal */
17168 export function BroadcasterInterface_free(this_ptr: number): void {
17169         if(!isWasmInitialized) {
17170                 throw new Error("initializeWasm() must be awaited first!");
17171         }
17172         const nativeResponseValue = wasm.TS_BroadcasterInterface_free(this_ptr);
17173         // debug statements here
17174 }
17175         // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig);
17176 /* @internal */
17177 export function ConfirmationTarget_clone(orig: number): ConfirmationTarget {
17178         if(!isWasmInitialized) {
17179                 throw new Error("initializeWasm() must be awaited first!");
17180         }
17181         const nativeResponseValue = wasm.TS_ConfirmationTarget_clone(orig);
17182         return nativeResponseValue;
17183 }
17184         // enum LDKConfirmationTarget ConfirmationTarget_background(void);
17185 /* @internal */
17186 export function ConfirmationTarget_background(): ConfirmationTarget {
17187         if(!isWasmInitialized) {
17188                 throw new Error("initializeWasm() must be awaited first!");
17189         }
17190         const nativeResponseValue = wasm.TS_ConfirmationTarget_background();
17191         return nativeResponseValue;
17192 }
17193         // enum LDKConfirmationTarget ConfirmationTarget_normal(void);
17194 /* @internal */
17195 export function ConfirmationTarget_normal(): ConfirmationTarget {
17196         if(!isWasmInitialized) {
17197                 throw new Error("initializeWasm() must be awaited first!");
17198         }
17199         const nativeResponseValue = wasm.TS_ConfirmationTarget_normal();
17200         return nativeResponseValue;
17201 }
17202         // enum LDKConfirmationTarget ConfirmationTarget_high_priority(void);
17203 /* @internal */
17204 export function ConfirmationTarget_high_priority(): ConfirmationTarget {
17205         if(!isWasmInitialized) {
17206                 throw new Error("initializeWasm() must be awaited first!");
17207         }
17208         const nativeResponseValue = wasm.TS_ConfirmationTarget_high_priority();
17209         return nativeResponseValue;
17210 }
17211         // bool ConfirmationTarget_eq(const enum LDKConfirmationTarget *NONNULL_PTR a, const enum LDKConfirmationTarget *NONNULL_PTR b);
17212 /* @internal */
17213 export function ConfirmationTarget_eq(a: number, b: number): boolean {
17214         if(!isWasmInitialized) {
17215                 throw new Error("initializeWasm() must be awaited first!");
17216         }
17217         const nativeResponseValue = wasm.TS_ConfirmationTarget_eq(a, b);
17218         return nativeResponseValue;
17219 }
17220         // void FeeEstimator_free(struct LDKFeeEstimator this_ptr);
17221 /* @internal */
17222 export function FeeEstimator_free(this_ptr: number): void {
17223         if(!isWasmInitialized) {
17224                 throw new Error("initializeWasm() must be awaited first!");
17225         }
17226         const nativeResponseValue = wasm.TS_FeeEstimator_free(this_ptr);
17227         // debug statements here
17228 }
17229         // void MonitorUpdateId_free(struct LDKMonitorUpdateId this_obj);
17230 /* @internal */
17231 export function MonitorUpdateId_free(this_obj: number): void {
17232         if(!isWasmInitialized) {
17233                 throw new Error("initializeWasm() must be awaited first!");
17234         }
17235         const nativeResponseValue = wasm.TS_MonitorUpdateId_free(this_obj);
17236         // debug statements here
17237 }
17238         // uintptr_t MonitorUpdateId_clone_ptr(LDKMonitorUpdateId *NONNULL_PTR arg);
17239 /* @internal */
17240 export function MonitorUpdateId_clone_ptr(arg: number): number {
17241         if(!isWasmInitialized) {
17242                 throw new Error("initializeWasm() must be awaited first!");
17243         }
17244         const nativeResponseValue = wasm.TS_MonitorUpdateId_clone_ptr(arg);
17245         return nativeResponseValue;
17246 }
17247         // struct LDKMonitorUpdateId MonitorUpdateId_clone(const struct LDKMonitorUpdateId *NONNULL_PTR orig);
17248 /* @internal */
17249 export function MonitorUpdateId_clone(orig: number): number {
17250         if(!isWasmInitialized) {
17251                 throw new Error("initializeWasm() must be awaited first!");
17252         }
17253         const nativeResponseValue = wasm.TS_MonitorUpdateId_clone(orig);
17254         return nativeResponseValue;
17255 }
17256         // uint64_t MonitorUpdateId_hash(const struct LDKMonitorUpdateId *NONNULL_PTR o);
17257 /* @internal */
17258 export function MonitorUpdateId_hash(o: number): bigint {
17259         if(!isWasmInitialized) {
17260                 throw new Error("initializeWasm() must be awaited first!");
17261         }
17262         const nativeResponseValue = wasm.TS_MonitorUpdateId_hash(o);
17263         return nativeResponseValue;
17264 }
17265         // bool MonitorUpdateId_eq(const struct LDKMonitorUpdateId *NONNULL_PTR a, const struct LDKMonitorUpdateId *NONNULL_PTR b);
17266 /* @internal */
17267 export function MonitorUpdateId_eq(a: number, b: number): boolean {
17268         if(!isWasmInitialized) {
17269                 throw new Error("initializeWasm() must be awaited first!");
17270         }
17271         const nativeResponseValue = wasm.TS_MonitorUpdateId_eq(a, b);
17272         return nativeResponseValue;
17273 }
17274         // void Persist_free(struct LDKPersist this_ptr);
17275 /* @internal */
17276 export function Persist_free(this_ptr: number): void {
17277         if(!isWasmInitialized) {
17278                 throw new Error("initializeWasm() must be awaited first!");
17279         }
17280         const nativeResponseValue = wasm.TS_Persist_free(this_ptr);
17281         // debug statements here
17282 }
17283         // void LockedChannelMonitor_free(struct LDKLockedChannelMonitor this_obj);
17284 /* @internal */
17285 export function LockedChannelMonitor_free(this_obj: number): void {
17286         if(!isWasmInitialized) {
17287                 throw new Error("initializeWasm() must be awaited first!");
17288         }
17289         const nativeResponseValue = wasm.TS_LockedChannelMonitor_free(this_obj);
17290         // debug statements here
17291 }
17292         // void ChainMonitor_free(struct LDKChainMonitor this_obj);
17293 /* @internal */
17294 export function ChainMonitor_free(this_obj: number): void {
17295         if(!isWasmInitialized) {
17296                 throw new Error("initializeWasm() must be awaited first!");
17297         }
17298         const nativeResponseValue = wasm.TS_ChainMonitor_free(this_obj);
17299         // debug statements here
17300 }
17301         // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKCOption_FilterZ chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister);
17302 /* @internal */
17303 export function ChainMonitor_new(chain_source: number, broadcaster: number, logger: number, feeest: number, persister: number): number {
17304         if(!isWasmInitialized) {
17305                 throw new Error("initializeWasm() must be awaited first!");
17306         }
17307         const nativeResponseValue = wasm.TS_ChainMonitor_new(chain_source, broadcaster, logger, feeest, persister);
17308         return nativeResponseValue;
17309 }
17310         // MUST_USE_RES struct LDKCVec_BalanceZ ChainMonitor_get_claimable_balances(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKCVec_ChannelDetailsZ ignored_channels);
17311 /* @internal */
17312 export function ChainMonitor_get_claimable_balances(this_arg: number, ignored_channels: number): number {
17313         if(!isWasmInitialized) {
17314                 throw new Error("initializeWasm() must be awaited first!");
17315         }
17316         const nativeResponseValue = wasm.TS_ChainMonitor_get_claimable_balances(this_arg, ignored_channels);
17317         return nativeResponseValue;
17318 }
17319         // MUST_USE_RES struct LDKCResult_LockedChannelMonitorNoneZ ChainMonitor_get_monitor(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo);
17320 /* @internal */
17321 export function ChainMonitor_get_monitor(this_arg: number, funding_txo: number): number {
17322         if(!isWasmInitialized) {
17323                 throw new Error("initializeWasm() must be awaited first!");
17324         }
17325         const nativeResponseValue = wasm.TS_ChainMonitor_get_monitor(this_arg, funding_txo);
17326         return nativeResponseValue;
17327 }
17328         // MUST_USE_RES struct LDKCVec_OutPointZ ChainMonitor_list_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg);
17329 /* @internal */
17330 export function ChainMonitor_list_monitors(this_arg: number): number {
17331         if(!isWasmInitialized) {
17332                 throw new Error("initializeWasm() must be awaited first!");
17333         }
17334         const nativeResponseValue = wasm.TS_ChainMonitor_list_monitors(this_arg);
17335         return nativeResponseValue;
17336 }
17337         // 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);
17338 /* @internal */
17339 export function ChainMonitor_channel_monitor_updated(this_arg: number, funding_txo: number, completed_update_id: number): number {
17340         if(!isWasmInitialized) {
17341                 throw new Error("initializeWasm() must be awaited first!");
17342         }
17343         const nativeResponseValue = wasm.TS_ChainMonitor_channel_monitor_updated(this_arg, funding_txo, completed_update_id);
17344         return nativeResponseValue;
17345 }
17346         // struct LDKListen ChainMonitor_as_Listen(const struct LDKChainMonitor *NONNULL_PTR this_arg);
17347 /* @internal */
17348 export function ChainMonitor_as_Listen(this_arg: number): number {
17349         if(!isWasmInitialized) {
17350                 throw new Error("initializeWasm() must be awaited first!");
17351         }
17352         const nativeResponseValue = wasm.TS_ChainMonitor_as_Listen(this_arg);
17353         return nativeResponseValue;
17354 }
17355         // struct LDKConfirm ChainMonitor_as_Confirm(const struct LDKChainMonitor *NONNULL_PTR this_arg);
17356 /* @internal */
17357 export function ChainMonitor_as_Confirm(this_arg: number): number {
17358         if(!isWasmInitialized) {
17359                 throw new Error("initializeWasm() must be awaited first!");
17360         }
17361         const nativeResponseValue = wasm.TS_ChainMonitor_as_Confirm(this_arg);
17362         return nativeResponseValue;
17363 }
17364         // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg);
17365 /* @internal */
17366 export function ChainMonitor_as_Watch(this_arg: number): number {
17367         if(!isWasmInitialized) {
17368                 throw new Error("initializeWasm() must be awaited first!");
17369         }
17370         const nativeResponseValue = wasm.TS_ChainMonitor_as_Watch(this_arg);
17371         return nativeResponseValue;
17372 }
17373         // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg);
17374 /* @internal */
17375 export function ChainMonitor_as_EventsProvider(this_arg: number): number {
17376         if(!isWasmInitialized) {
17377                 throw new Error("initializeWasm() must be awaited first!");
17378         }
17379         const nativeResponseValue = wasm.TS_ChainMonitor_as_EventsProvider(this_arg);
17380         return nativeResponseValue;
17381 }
17382         // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj);
17383 /* @internal */
17384 export function ChannelMonitorUpdate_free(this_obj: number): void {
17385         if(!isWasmInitialized) {
17386                 throw new Error("initializeWasm() must be awaited first!");
17387         }
17388         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_free(this_obj);
17389         // debug statements here
17390 }
17391         // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr);
17392 /* @internal */
17393 export function ChannelMonitorUpdate_get_update_id(this_ptr: number): bigint {
17394         if(!isWasmInitialized) {
17395                 throw new Error("initializeWasm() must be awaited first!");
17396         }
17397         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_get_update_id(this_ptr);
17398         return nativeResponseValue;
17399 }
17400         // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val);
17401 /* @internal */
17402 export function ChannelMonitorUpdate_set_update_id(this_ptr: number, val: bigint): void {
17403         if(!isWasmInitialized) {
17404                 throw new Error("initializeWasm() must be awaited first!");
17405         }
17406         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_set_update_id(this_ptr, val);
17407         // debug statements here
17408 }
17409         // uintptr_t ChannelMonitorUpdate_clone_ptr(LDKChannelMonitorUpdate *NONNULL_PTR arg);
17410 /* @internal */
17411 export function ChannelMonitorUpdate_clone_ptr(arg: number): number {
17412         if(!isWasmInitialized) {
17413                 throw new Error("initializeWasm() must be awaited first!");
17414         }
17415         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_clone_ptr(arg);
17416         return nativeResponseValue;
17417 }
17418         // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig);
17419 /* @internal */
17420 export function ChannelMonitorUpdate_clone(orig: number): number {
17421         if(!isWasmInitialized) {
17422                 throw new Error("initializeWasm() must be awaited first!");
17423         }
17424         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_clone(orig);
17425         return nativeResponseValue;
17426 }
17427         // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj);
17428 /* @internal */
17429 export function ChannelMonitorUpdate_write(obj: number): number {
17430         if(!isWasmInitialized) {
17431                 throw new Error("initializeWasm() must be awaited first!");
17432         }
17433         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_write(obj);
17434         return nativeResponseValue;
17435 }
17436         // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser);
17437 /* @internal */
17438 export function ChannelMonitorUpdate_read(ser: number): number {
17439         if(!isWasmInitialized) {
17440                 throw new Error("initializeWasm() must be awaited first!");
17441         }
17442         const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_read(ser);
17443         return nativeResponseValue;
17444 }
17445         // void MonitorEvent_free(struct LDKMonitorEvent this_ptr);
17446 /* @internal */
17447 export function MonitorEvent_free(this_ptr: number): void {
17448         if(!isWasmInitialized) {
17449                 throw new Error("initializeWasm() must be awaited first!");
17450         }
17451         const nativeResponseValue = wasm.TS_MonitorEvent_free(this_ptr);
17452         // debug statements here
17453 }
17454         // uintptr_t MonitorEvent_clone_ptr(LDKMonitorEvent *NONNULL_PTR arg);
17455 /* @internal */
17456 export function MonitorEvent_clone_ptr(arg: number): number {
17457         if(!isWasmInitialized) {
17458                 throw new Error("initializeWasm() must be awaited first!");
17459         }
17460         const nativeResponseValue = wasm.TS_MonitorEvent_clone_ptr(arg);
17461         return nativeResponseValue;
17462 }
17463         // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig);
17464 /* @internal */
17465 export function MonitorEvent_clone(orig: number): number {
17466         if(!isWasmInitialized) {
17467                 throw new Error("initializeWasm() must be awaited first!");
17468         }
17469         const nativeResponseValue = wasm.TS_MonitorEvent_clone(orig);
17470         return nativeResponseValue;
17471 }
17472         // struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a);
17473 /* @internal */
17474 export function MonitorEvent_htlcevent(a: number): number {
17475         if(!isWasmInitialized) {
17476                 throw new Error("initializeWasm() must be awaited first!");
17477         }
17478         const nativeResponseValue = wasm.TS_MonitorEvent_htlcevent(a);
17479         return nativeResponseValue;
17480 }
17481         // struct LDKMonitorEvent MonitorEvent_commitment_tx_confirmed(struct LDKOutPoint a);
17482 /* @internal */
17483 export function MonitorEvent_commitment_tx_confirmed(a: number): number {
17484         if(!isWasmInitialized) {
17485                 throw new Error("initializeWasm() must be awaited first!");
17486         }
17487         const nativeResponseValue = wasm.TS_MonitorEvent_commitment_tx_confirmed(a);
17488         return nativeResponseValue;
17489 }
17490         // struct LDKMonitorEvent MonitorEvent_update_completed(struct LDKOutPoint funding_txo, uint64_t monitor_update_id);
17491 /* @internal */
17492 export function MonitorEvent_update_completed(funding_txo: number, monitor_update_id: bigint): number {
17493         if(!isWasmInitialized) {
17494                 throw new Error("initializeWasm() must be awaited first!");
17495         }
17496         const nativeResponseValue = wasm.TS_MonitorEvent_update_completed(funding_txo, monitor_update_id);
17497         return nativeResponseValue;
17498 }
17499         // struct LDKMonitorEvent MonitorEvent_update_failed(struct LDKOutPoint a);
17500 /* @internal */
17501 export function MonitorEvent_update_failed(a: number): number {
17502         if(!isWasmInitialized) {
17503                 throw new Error("initializeWasm() must be awaited first!");
17504         }
17505         const nativeResponseValue = wasm.TS_MonitorEvent_update_failed(a);
17506         return nativeResponseValue;
17507 }
17508         // struct LDKCVec_u8Z MonitorEvent_write(const struct LDKMonitorEvent *NONNULL_PTR obj);
17509 /* @internal */
17510 export function MonitorEvent_write(obj: number): number {
17511         if(!isWasmInitialized) {
17512                 throw new Error("initializeWasm() must be awaited first!");
17513         }
17514         const nativeResponseValue = wasm.TS_MonitorEvent_write(obj);
17515         return nativeResponseValue;
17516 }
17517         // struct LDKCResult_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(struct LDKu8slice ser);
17518 /* @internal */
17519 export function MonitorEvent_read(ser: number): number {
17520         if(!isWasmInitialized) {
17521                 throw new Error("initializeWasm() must be awaited first!");
17522         }
17523         const nativeResponseValue = wasm.TS_MonitorEvent_read(ser);
17524         return nativeResponseValue;
17525 }
17526         // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj);
17527 /* @internal */
17528 export function HTLCUpdate_free(this_obj: number): void {
17529         if(!isWasmInitialized) {
17530                 throw new Error("initializeWasm() must be awaited first!");
17531         }
17532         const nativeResponseValue = wasm.TS_HTLCUpdate_free(this_obj);
17533         // debug statements here
17534 }
17535         // uintptr_t HTLCUpdate_clone_ptr(LDKHTLCUpdate *NONNULL_PTR arg);
17536 /* @internal */
17537 export function HTLCUpdate_clone_ptr(arg: number): number {
17538         if(!isWasmInitialized) {
17539                 throw new Error("initializeWasm() must be awaited first!");
17540         }
17541         const nativeResponseValue = wasm.TS_HTLCUpdate_clone_ptr(arg);
17542         return nativeResponseValue;
17543 }
17544         // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig);
17545 /* @internal */
17546 export function HTLCUpdate_clone(orig: number): number {
17547         if(!isWasmInitialized) {
17548                 throw new Error("initializeWasm() must be awaited first!");
17549         }
17550         const nativeResponseValue = wasm.TS_HTLCUpdate_clone(orig);
17551         return nativeResponseValue;
17552 }
17553         // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj);
17554 /* @internal */
17555 export function HTLCUpdate_write(obj: number): number {
17556         if(!isWasmInitialized) {
17557                 throw new Error("initializeWasm() must be awaited first!");
17558         }
17559         const nativeResponseValue = wasm.TS_HTLCUpdate_write(obj);
17560         return nativeResponseValue;
17561 }
17562         // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser);
17563 /* @internal */
17564 export function HTLCUpdate_read(ser: number): number {
17565         if(!isWasmInitialized) {
17566                 throw new Error("initializeWasm() must be awaited first!");
17567         }
17568         const nativeResponseValue = wasm.TS_HTLCUpdate_read(ser);
17569         return nativeResponseValue;
17570 }
17571         // void Balance_free(struct LDKBalance this_ptr);
17572 /* @internal */
17573 export function Balance_free(this_ptr: number): void {
17574         if(!isWasmInitialized) {
17575                 throw new Error("initializeWasm() must be awaited first!");
17576         }
17577         const nativeResponseValue = wasm.TS_Balance_free(this_ptr);
17578         // debug statements here
17579 }
17580         // uintptr_t Balance_clone_ptr(LDKBalance *NONNULL_PTR arg);
17581 /* @internal */
17582 export function Balance_clone_ptr(arg: number): number {
17583         if(!isWasmInitialized) {
17584                 throw new Error("initializeWasm() must be awaited first!");
17585         }
17586         const nativeResponseValue = wasm.TS_Balance_clone_ptr(arg);
17587         return nativeResponseValue;
17588 }
17589         // struct LDKBalance Balance_clone(const struct LDKBalance *NONNULL_PTR orig);
17590 /* @internal */
17591 export function Balance_clone(orig: number): number {
17592         if(!isWasmInitialized) {
17593                 throw new Error("initializeWasm() must be awaited first!");
17594         }
17595         const nativeResponseValue = wasm.TS_Balance_clone(orig);
17596         return nativeResponseValue;
17597 }
17598         // struct LDKBalance Balance_claimable_on_channel_close(uint64_t claimable_amount_satoshis);
17599 /* @internal */
17600 export function Balance_claimable_on_channel_close(claimable_amount_satoshis: bigint): number {
17601         if(!isWasmInitialized) {
17602                 throw new Error("initializeWasm() must be awaited first!");
17603         }
17604         const nativeResponseValue = wasm.TS_Balance_claimable_on_channel_close(claimable_amount_satoshis);
17605         return nativeResponseValue;
17606 }
17607         // struct LDKBalance Balance_claimable_awaiting_confirmations(uint64_t claimable_amount_satoshis, uint32_t confirmation_height);
17608 /* @internal */
17609 export function Balance_claimable_awaiting_confirmations(claimable_amount_satoshis: bigint, confirmation_height: number): number {
17610         if(!isWasmInitialized) {
17611                 throw new Error("initializeWasm() must be awaited first!");
17612         }
17613         const nativeResponseValue = wasm.TS_Balance_claimable_awaiting_confirmations(claimable_amount_satoshis, confirmation_height);
17614         return nativeResponseValue;
17615 }
17616         // struct LDKBalance Balance_contentious_claimable(uint64_t claimable_amount_satoshis, uint32_t timeout_height);
17617 /* @internal */
17618 export function Balance_contentious_claimable(claimable_amount_satoshis: bigint, timeout_height: number): number {
17619         if(!isWasmInitialized) {
17620                 throw new Error("initializeWasm() must be awaited first!");
17621         }
17622         const nativeResponseValue = wasm.TS_Balance_contentious_claimable(claimable_amount_satoshis, timeout_height);
17623         return nativeResponseValue;
17624 }
17625         // struct LDKBalance Balance_maybe_claimable_htlcawaiting_timeout(uint64_t claimable_amount_satoshis, uint32_t claimable_height);
17626 /* @internal */
17627 export function Balance_maybe_claimable_htlcawaiting_timeout(claimable_amount_satoshis: bigint, claimable_height: number): number {
17628         if(!isWasmInitialized) {
17629                 throw new Error("initializeWasm() must be awaited first!");
17630         }
17631         const nativeResponseValue = wasm.TS_Balance_maybe_claimable_htlcawaiting_timeout(claimable_amount_satoshis, claimable_height);
17632         return nativeResponseValue;
17633 }
17634         // bool Balance_eq(const struct LDKBalance *NONNULL_PTR a, const struct LDKBalance *NONNULL_PTR b);
17635 /* @internal */
17636 export function Balance_eq(a: number, b: number): boolean {
17637         if(!isWasmInitialized) {
17638                 throw new Error("initializeWasm() must be awaited first!");
17639         }
17640         const nativeResponseValue = wasm.TS_Balance_eq(a, b);
17641         return nativeResponseValue;
17642 }
17643         // void ChannelMonitor_free(struct LDKChannelMonitor this_obj);
17644 /* @internal */
17645 export function ChannelMonitor_free(this_obj: number): void {
17646         if(!isWasmInitialized) {
17647                 throw new Error("initializeWasm() must be awaited first!");
17648         }
17649         const nativeResponseValue = wasm.TS_ChannelMonitor_free(this_obj);
17650         // debug statements here
17651 }
17652         // uintptr_t ChannelMonitor_clone_ptr(LDKChannelMonitor *NONNULL_PTR arg);
17653 /* @internal */
17654 export function ChannelMonitor_clone_ptr(arg: number): number {
17655         if(!isWasmInitialized) {
17656                 throw new Error("initializeWasm() must be awaited first!");
17657         }
17658         const nativeResponseValue = wasm.TS_ChannelMonitor_clone_ptr(arg);
17659         return nativeResponseValue;
17660 }
17661         // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig);
17662 /* @internal */
17663 export function ChannelMonitor_clone(orig: number): number {
17664         if(!isWasmInitialized) {
17665                 throw new Error("initializeWasm() must be awaited first!");
17666         }
17667         const nativeResponseValue = wasm.TS_ChannelMonitor_clone(orig);
17668         return nativeResponseValue;
17669 }
17670         // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj);
17671 /* @internal */
17672 export function ChannelMonitor_write(obj: number): number {
17673         if(!isWasmInitialized) {
17674                 throw new Error("initializeWasm() must be awaited first!");
17675         }
17676         const nativeResponseValue = wasm.TS_ChannelMonitor_write(obj);
17677         return nativeResponseValue;
17678 }
17679         // 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);
17680 /* @internal */
17681 export function ChannelMonitor_update_monitor(this_arg: number, updates: number, broadcaster: number, fee_estimator: number, logger: number): number {
17682         if(!isWasmInitialized) {
17683                 throw new Error("initializeWasm() must be awaited first!");
17684         }
17685         const nativeResponseValue = wasm.TS_ChannelMonitor_update_monitor(this_arg, updates, broadcaster, fee_estimator, logger);
17686         return nativeResponseValue;
17687 }
17688         // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17689 /* @internal */
17690 export function ChannelMonitor_get_latest_update_id(this_arg: number): bigint {
17691         if(!isWasmInitialized) {
17692                 throw new Error("initializeWasm() must be awaited first!");
17693         }
17694         const nativeResponseValue = wasm.TS_ChannelMonitor_get_latest_update_id(this_arg);
17695         return nativeResponseValue;
17696 }
17697         // MUST_USE_RES struct LDKC2Tuple_OutPointScriptZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17698 /* @internal */
17699 export function ChannelMonitor_get_funding_txo(this_arg: number): number {
17700         if(!isWasmInitialized) {
17701                 throw new Error("initializeWasm() must be awaited first!");
17702         }
17703         const nativeResponseValue = wasm.TS_ChannelMonitor_get_funding_txo(this_arg);
17704         return nativeResponseValue;
17705 }
17706         // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17707 /* @internal */
17708 export function ChannelMonitor_get_outputs_to_watch(this_arg: number): number {
17709         if(!isWasmInitialized) {
17710                 throw new Error("initializeWasm() must be awaited first!");
17711         }
17712         const nativeResponseValue = wasm.TS_ChannelMonitor_get_outputs_to_watch(this_arg);
17713         return nativeResponseValue;
17714 }
17715         // void ChannelMonitor_load_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKFilter *NONNULL_PTR filter);
17716 /* @internal */
17717 export function ChannelMonitor_load_outputs_to_watch(this_arg: number, filter: number): void {
17718         if(!isWasmInitialized) {
17719                 throw new Error("initializeWasm() must be awaited first!");
17720         }
17721         const nativeResponseValue = wasm.TS_ChannelMonitor_load_outputs_to_watch(this_arg, filter);
17722         // debug statements here
17723 }
17724         // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17725 /* @internal */
17726 export function ChannelMonitor_get_and_clear_pending_monitor_events(this_arg: number): number {
17727         if(!isWasmInitialized) {
17728                 throw new Error("initializeWasm() must be awaited first!");
17729         }
17730         const nativeResponseValue = wasm.TS_ChannelMonitor_get_and_clear_pending_monitor_events(this_arg);
17731         return nativeResponseValue;
17732 }
17733         // MUST_USE_RES struct LDKCVec_EventZ ChannelMonitor_get_and_clear_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17734 /* @internal */
17735 export function ChannelMonitor_get_and_clear_pending_events(this_arg: number): number {
17736         if(!isWasmInitialized) {
17737                 throw new Error("initializeWasm() must be awaited first!");
17738         }
17739         const nativeResponseValue = wasm.TS_ChannelMonitor_get_and_clear_pending_events(this_arg);
17740         return nativeResponseValue;
17741 }
17742         // 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);
17743 /* @internal */
17744 export function ChannelMonitor_get_latest_holder_commitment_txn(this_arg: number, logger: number): number {
17745         if(!isWasmInitialized) {
17746                 throw new Error("initializeWasm() must be awaited first!");
17747         }
17748         const nativeResponseValue = wasm.TS_ChannelMonitor_get_latest_holder_commitment_txn(this_arg, logger);
17749         return nativeResponseValue;
17750 }
17751         // 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);
17752 /* @internal */
17753 export function ChannelMonitor_block_connected(this_arg: number, header: number, txdata: number, height: number, broadcaster: number, fee_estimator: number, logger: number): number {
17754         if(!isWasmInitialized) {
17755                 throw new Error("initializeWasm() must be awaited first!");
17756         }
17757         const nativeResponseValue = wasm.TS_ChannelMonitor_block_connected(this_arg, header, txdata, height, broadcaster, fee_estimator, logger);
17758         return nativeResponseValue;
17759 }
17760         // 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);
17761 /* @internal */
17762 export function ChannelMonitor_block_disconnected(this_arg: number, header: number, height: number, broadcaster: number, fee_estimator: number, logger: number): void {
17763         if(!isWasmInitialized) {
17764                 throw new Error("initializeWasm() must be awaited first!");
17765         }
17766         const nativeResponseValue = wasm.TS_ChannelMonitor_block_disconnected(this_arg, header, height, broadcaster, fee_estimator, logger);
17767         // debug statements here
17768 }
17769         // 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);
17770 /* @internal */
17771 export function ChannelMonitor_transactions_confirmed(this_arg: number, header: number, txdata: number, height: number, broadcaster: number, fee_estimator: number, logger: number): number {
17772         if(!isWasmInitialized) {
17773                 throw new Error("initializeWasm() must be awaited first!");
17774         }
17775         const nativeResponseValue = wasm.TS_ChannelMonitor_transactions_confirmed(this_arg, header, txdata, height, broadcaster, fee_estimator, logger);
17776         return nativeResponseValue;
17777 }
17778         // 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);
17779 /* @internal */
17780 export function ChannelMonitor_transaction_unconfirmed(this_arg: number, txid: number, broadcaster: number, fee_estimator: number, logger: number): void {
17781         if(!isWasmInitialized) {
17782                 throw new Error("initializeWasm() must be awaited first!");
17783         }
17784         const nativeResponseValue = wasm.TS_ChannelMonitor_transaction_unconfirmed(this_arg, txid, broadcaster, fee_estimator, logger);
17785         // debug statements here
17786 }
17787         // 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);
17788 /* @internal */
17789 export function ChannelMonitor_best_block_updated(this_arg: number, header: number, height: number, broadcaster: number, fee_estimator: number, logger: number): number {
17790         if(!isWasmInitialized) {
17791                 throw new Error("initializeWasm() must be awaited first!");
17792         }
17793         const nativeResponseValue = wasm.TS_ChannelMonitor_best_block_updated(this_arg, header, height, broadcaster, fee_estimator, logger);
17794         return nativeResponseValue;
17795 }
17796         // MUST_USE_RES struct LDKCVec_TxidZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17797 /* @internal */
17798 export function ChannelMonitor_get_relevant_txids(this_arg: number): number {
17799         if(!isWasmInitialized) {
17800                 throw new Error("initializeWasm() must be awaited first!");
17801         }
17802         const nativeResponseValue = wasm.TS_ChannelMonitor_get_relevant_txids(this_arg);
17803         return nativeResponseValue;
17804 }
17805         // MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17806 /* @internal */
17807 export function ChannelMonitor_current_best_block(this_arg: number): number {
17808         if(!isWasmInitialized) {
17809                 throw new Error("initializeWasm() must be awaited first!");
17810         }
17811         const nativeResponseValue = wasm.TS_ChannelMonitor_current_best_block(this_arg);
17812         return nativeResponseValue;
17813 }
17814         // MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
17815 /* @internal */
17816 export function ChannelMonitor_get_claimable_balances(this_arg: number): number {
17817         if(!isWasmInitialized) {
17818                 throw new Error("initializeWasm() must be awaited first!");
17819         }
17820         const nativeResponseValue = wasm.TS_ChannelMonitor_get_claimable_balances(this_arg);
17821         return nativeResponseValue;
17822 }
17823         // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ C2Tuple_BlockHashChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKKeysInterface *NONNULL_PTR arg);
17824 /* @internal */
17825 export function C2Tuple_BlockHashChannelMonitorZ_read(ser: number, arg: number): number {
17826         if(!isWasmInitialized) {
17827                 throw new Error("initializeWasm() must be awaited first!");
17828         }
17829         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_read(ser, arg);
17830         return nativeResponseValue;
17831 }
17832         // void OutPoint_free(struct LDKOutPoint this_obj);
17833 /* @internal */
17834 export function OutPoint_free(this_obj: number): void {
17835         if(!isWasmInitialized) {
17836                 throw new Error("initializeWasm() must be awaited first!");
17837         }
17838         const nativeResponseValue = wasm.TS_OutPoint_free(this_obj);
17839         // debug statements here
17840 }
17841         // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32];
17842 /* @internal */
17843 export function OutPoint_get_txid(this_ptr: number): number {
17844         if(!isWasmInitialized) {
17845                 throw new Error("initializeWasm() must be awaited first!");
17846         }
17847         const nativeResponseValue = wasm.TS_OutPoint_get_txid(this_ptr);
17848         return nativeResponseValue;
17849 }
17850         // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
17851 /* @internal */
17852 export function OutPoint_set_txid(this_ptr: number, val: number): void {
17853         if(!isWasmInitialized) {
17854                 throw new Error("initializeWasm() must be awaited first!");
17855         }
17856         const nativeResponseValue = wasm.TS_OutPoint_set_txid(this_ptr, val);
17857         // debug statements here
17858 }
17859         // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr);
17860 /* @internal */
17861 export function OutPoint_get_index(this_ptr: number): number {
17862         if(!isWasmInitialized) {
17863                 throw new Error("initializeWasm() must be awaited first!");
17864         }
17865         const nativeResponseValue = wasm.TS_OutPoint_get_index(this_ptr);
17866         return nativeResponseValue;
17867 }
17868         // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val);
17869 /* @internal */
17870 export function OutPoint_set_index(this_ptr: number, val: number): void {
17871         if(!isWasmInitialized) {
17872                 throw new Error("initializeWasm() must be awaited first!");
17873         }
17874         const nativeResponseValue = wasm.TS_OutPoint_set_index(this_ptr, val);
17875         // debug statements here
17876 }
17877         // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg);
17878 /* @internal */
17879 export function OutPoint_new(txid_arg: number, index_arg: number): number {
17880         if(!isWasmInitialized) {
17881                 throw new Error("initializeWasm() must be awaited first!");
17882         }
17883         const nativeResponseValue = wasm.TS_OutPoint_new(txid_arg, index_arg);
17884         return nativeResponseValue;
17885 }
17886         // uintptr_t OutPoint_clone_ptr(LDKOutPoint *NONNULL_PTR arg);
17887 /* @internal */
17888 export function OutPoint_clone_ptr(arg: number): number {
17889         if(!isWasmInitialized) {
17890                 throw new Error("initializeWasm() must be awaited first!");
17891         }
17892         const nativeResponseValue = wasm.TS_OutPoint_clone_ptr(arg);
17893         return nativeResponseValue;
17894 }
17895         // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig);
17896 /* @internal */
17897 export function OutPoint_clone(orig: number): number {
17898         if(!isWasmInitialized) {
17899                 throw new Error("initializeWasm() must be awaited first!");
17900         }
17901         const nativeResponseValue = wasm.TS_OutPoint_clone(orig);
17902         return nativeResponseValue;
17903 }
17904         // bool OutPoint_eq(const struct LDKOutPoint *NONNULL_PTR a, const struct LDKOutPoint *NONNULL_PTR b);
17905 /* @internal */
17906 export function OutPoint_eq(a: number, b: number): boolean {
17907         if(!isWasmInitialized) {
17908                 throw new Error("initializeWasm() must be awaited first!");
17909         }
17910         const nativeResponseValue = wasm.TS_OutPoint_eq(a, b);
17911         return nativeResponseValue;
17912 }
17913         // uint64_t OutPoint_hash(const struct LDKOutPoint *NONNULL_PTR o);
17914 /* @internal */
17915 export function OutPoint_hash(o: number): bigint {
17916         if(!isWasmInitialized) {
17917                 throw new Error("initializeWasm() must be awaited first!");
17918         }
17919         const nativeResponseValue = wasm.TS_OutPoint_hash(o);
17920         return nativeResponseValue;
17921 }
17922         // MUST_USE_RES struct LDKThirtyTwoBytes OutPoint_to_channel_id(const struct LDKOutPoint *NONNULL_PTR this_arg);
17923 /* @internal */
17924 export function OutPoint_to_channel_id(this_arg: number): number {
17925         if(!isWasmInitialized) {
17926                 throw new Error("initializeWasm() must be awaited first!");
17927         }
17928         const nativeResponseValue = wasm.TS_OutPoint_to_channel_id(this_arg);
17929         return nativeResponseValue;
17930 }
17931         // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj);
17932 /* @internal */
17933 export function OutPoint_write(obj: number): number {
17934         if(!isWasmInitialized) {
17935                 throw new Error("initializeWasm() must be awaited first!");
17936         }
17937         const nativeResponseValue = wasm.TS_OutPoint_write(obj);
17938         return nativeResponseValue;
17939 }
17940         // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser);
17941 /* @internal */
17942 export function OutPoint_read(ser: number): number {
17943         if(!isWasmInitialized) {
17944                 throw new Error("initializeWasm() must be awaited first!");
17945         }
17946         const nativeResponseValue = wasm.TS_OutPoint_read(ser);
17947         return nativeResponseValue;
17948 }
17949         // void DelayedPaymentOutputDescriptor_free(struct LDKDelayedPaymentOutputDescriptor this_obj);
17950 /* @internal */
17951 export function DelayedPaymentOutputDescriptor_free(this_obj: number): void {
17952         if(!isWasmInitialized) {
17953                 throw new Error("initializeWasm() must be awaited first!");
17954         }
17955         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_free(this_obj);
17956         // debug statements here
17957 }
17958         // struct LDKOutPoint DelayedPaymentOutputDescriptor_get_outpoint(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17959 /* @internal */
17960 export function DelayedPaymentOutputDescriptor_get_outpoint(this_ptr: number): number {
17961         if(!isWasmInitialized) {
17962                 throw new Error("initializeWasm() must be awaited first!");
17963         }
17964         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_outpoint(this_ptr);
17965         return nativeResponseValue;
17966 }
17967         // void DelayedPaymentOutputDescriptor_set_outpoint(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
17968 /* @internal */
17969 export function DelayedPaymentOutputDescriptor_set_outpoint(this_ptr: number, val: number): void {
17970         if(!isWasmInitialized) {
17971                 throw new Error("initializeWasm() must be awaited first!");
17972         }
17973         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_outpoint(this_ptr, val);
17974         // debug statements here
17975 }
17976         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_per_commitment_point(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17977 /* @internal */
17978 export function DelayedPaymentOutputDescriptor_get_per_commitment_point(this_ptr: number): number {
17979         if(!isWasmInitialized) {
17980                 throw new Error("initializeWasm() must be awaited first!");
17981         }
17982         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_per_commitment_point(this_ptr);
17983         return nativeResponseValue;
17984 }
17985         // void DelayedPaymentOutputDescriptor_set_per_commitment_point(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
17986 /* @internal */
17987 export function DelayedPaymentOutputDescriptor_set_per_commitment_point(this_ptr: number, val: number): void {
17988         if(!isWasmInitialized) {
17989                 throw new Error("initializeWasm() must be awaited first!");
17990         }
17991         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_per_commitment_point(this_ptr, val);
17992         // debug statements here
17993 }
17994         // uint16_t DelayedPaymentOutputDescriptor_get_to_self_delay(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
17995 /* @internal */
17996 export function DelayedPaymentOutputDescriptor_get_to_self_delay(this_ptr: number): number {
17997         if(!isWasmInitialized) {
17998                 throw new Error("initializeWasm() must be awaited first!");
17999         }
18000         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_to_self_delay(this_ptr);
18001         return nativeResponseValue;
18002 }
18003         // void DelayedPaymentOutputDescriptor_set_to_self_delay(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint16_t val);
18004 /* @internal */
18005 export function DelayedPaymentOutputDescriptor_set_to_self_delay(this_ptr: number, val: number): void {
18006         if(!isWasmInitialized) {
18007                 throw new Error("initializeWasm() must be awaited first!");
18008         }
18009         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_to_self_delay(this_ptr, val);
18010         // debug statements here
18011 }
18012         // void DelayedPaymentOutputDescriptor_set_output(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
18013 /* @internal */
18014 export function DelayedPaymentOutputDescriptor_set_output(this_ptr: number, val: number): void {
18015         if(!isWasmInitialized) {
18016                 throw new Error("initializeWasm() must be awaited first!");
18017         }
18018         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_output(this_ptr, val);
18019         // debug statements here
18020 }
18021         // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_revocation_pubkey(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
18022 /* @internal */
18023 export function DelayedPaymentOutputDescriptor_get_revocation_pubkey(this_ptr: number): number {
18024         if(!isWasmInitialized) {
18025                 throw new Error("initializeWasm() must be awaited first!");
18026         }
18027         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_revocation_pubkey(this_ptr);
18028         return nativeResponseValue;
18029 }
18030         // void DelayedPaymentOutputDescriptor_set_revocation_pubkey(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
18031 /* @internal */
18032 export function DelayedPaymentOutputDescriptor_set_revocation_pubkey(this_ptr: number, val: number): void {
18033         if(!isWasmInitialized) {
18034                 throw new Error("initializeWasm() must be awaited first!");
18035         }
18036         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_revocation_pubkey(this_ptr, val);
18037         // debug statements here
18038 }
18039         // const uint8_t (*DelayedPaymentOutputDescriptor_get_channel_keys_id(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
18040 /* @internal */
18041 export function DelayedPaymentOutputDescriptor_get_channel_keys_id(this_ptr: number): number {
18042         if(!isWasmInitialized) {
18043                 throw new Error("initializeWasm() must be awaited first!");
18044         }
18045         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_channel_keys_id(this_ptr);
18046         return nativeResponseValue;
18047 }
18048         // void DelayedPaymentOutputDescriptor_set_channel_keys_id(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
18049 /* @internal */
18050 export function DelayedPaymentOutputDescriptor_set_channel_keys_id(this_ptr: number, val: number): void {
18051         if(!isWasmInitialized) {
18052                 throw new Error("initializeWasm() must be awaited first!");
18053         }
18054         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_channel_keys_id(this_ptr, val);
18055         // debug statements here
18056 }
18057         // uint64_t DelayedPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
18058 /* @internal */
18059 export function DelayedPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr: number): bigint {
18060         if(!isWasmInitialized) {
18061                 throw new Error("initializeWasm() must be awaited first!");
18062         }
18063         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr);
18064         return nativeResponseValue;
18065 }
18066         // void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
18067 /* @internal */
18068 export function DelayedPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr: number, val: bigint): void {
18069         if(!isWasmInitialized) {
18070                 throw new Error("initializeWasm() must be awaited first!");
18071         }
18072         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr, val);
18073         // debug statements here
18074 }
18075         // 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);
18076 /* @internal */
18077 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 {
18078         if(!isWasmInitialized) {
18079                 throw new Error("initializeWasm() must be awaited first!");
18080         }
18081         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);
18082         return nativeResponseValue;
18083 }
18084         // uintptr_t DelayedPaymentOutputDescriptor_clone_ptr(LDKDelayedPaymentOutputDescriptor *NONNULL_PTR arg);
18085 /* @internal */
18086 export function DelayedPaymentOutputDescriptor_clone_ptr(arg: number): number {
18087         if(!isWasmInitialized) {
18088                 throw new Error("initializeWasm() must be awaited first!");
18089         }
18090         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_clone_ptr(arg);
18091         return nativeResponseValue;
18092 }
18093         // struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_clone(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR orig);
18094 /* @internal */
18095 export function DelayedPaymentOutputDescriptor_clone(orig: number): number {
18096         if(!isWasmInitialized) {
18097                 throw new Error("initializeWasm() must be awaited first!");
18098         }
18099         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_clone(orig);
18100         return nativeResponseValue;
18101 }
18102         // struct LDKCVec_u8Z DelayedPaymentOutputDescriptor_write(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR obj);
18103 /* @internal */
18104 export function DelayedPaymentOutputDescriptor_write(obj: number): number {
18105         if(!isWasmInitialized) {
18106                 throw new Error("initializeWasm() must be awaited first!");
18107         }
18108         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_write(obj);
18109         return nativeResponseValue;
18110 }
18111         // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ DelayedPaymentOutputDescriptor_read(struct LDKu8slice ser);
18112 /* @internal */
18113 export function DelayedPaymentOutputDescriptor_read(ser: number): number {
18114         if(!isWasmInitialized) {
18115                 throw new Error("initializeWasm() must be awaited first!");
18116         }
18117         const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_read(ser);
18118         return nativeResponseValue;
18119 }
18120         // void StaticPaymentOutputDescriptor_free(struct LDKStaticPaymentOutputDescriptor this_obj);
18121 /* @internal */
18122 export function StaticPaymentOutputDescriptor_free(this_obj: number): void {
18123         if(!isWasmInitialized) {
18124                 throw new Error("initializeWasm() must be awaited first!");
18125         }
18126         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_free(this_obj);
18127         // debug statements here
18128 }
18129         // struct LDKOutPoint StaticPaymentOutputDescriptor_get_outpoint(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
18130 /* @internal */
18131 export function StaticPaymentOutputDescriptor_get_outpoint(this_ptr: number): number {
18132         if(!isWasmInitialized) {
18133                 throw new Error("initializeWasm() must be awaited first!");
18134         }
18135         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_outpoint(this_ptr);
18136         return nativeResponseValue;
18137 }
18138         // void StaticPaymentOutputDescriptor_set_outpoint(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
18139 /* @internal */
18140 export function StaticPaymentOutputDescriptor_set_outpoint(this_ptr: number, val: number): void {
18141         if(!isWasmInitialized) {
18142                 throw new Error("initializeWasm() must be awaited first!");
18143         }
18144         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_outpoint(this_ptr, val);
18145         // debug statements here
18146 }
18147         // void StaticPaymentOutputDescriptor_set_output(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
18148 /* @internal */
18149 export function StaticPaymentOutputDescriptor_set_output(this_ptr: number, val: number): void {
18150         if(!isWasmInitialized) {
18151                 throw new Error("initializeWasm() must be awaited first!");
18152         }
18153         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_output(this_ptr, val);
18154         // debug statements here
18155 }
18156         // const uint8_t (*StaticPaymentOutputDescriptor_get_channel_keys_id(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
18157 /* @internal */
18158 export function StaticPaymentOutputDescriptor_get_channel_keys_id(this_ptr: number): number {
18159         if(!isWasmInitialized) {
18160                 throw new Error("initializeWasm() must be awaited first!");
18161         }
18162         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_channel_keys_id(this_ptr);
18163         return nativeResponseValue;
18164 }
18165         // void StaticPaymentOutputDescriptor_set_channel_keys_id(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
18166 /* @internal */
18167 export function StaticPaymentOutputDescriptor_set_channel_keys_id(this_ptr: number, val: number): void {
18168         if(!isWasmInitialized) {
18169                 throw new Error("initializeWasm() must be awaited first!");
18170         }
18171         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_channel_keys_id(this_ptr, val);
18172         // debug statements here
18173 }
18174         // uint64_t StaticPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
18175 /* @internal */
18176 export function StaticPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr: number): bigint {
18177         if(!isWasmInitialized) {
18178                 throw new Error("initializeWasm() must be awaited first!");
18179         }
18180         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr);
18181         return nativeResponseValue;
18182 }
18183         // void StaticPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
18184 /* @internal */
18185 export function StaticPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr: number, val: bigint): void {
18186         if(!isWasmInitialized) {
18187                 throw new Error("initializeWasm() must be awaited first!");
18188         }
18189         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr, val);
18190         // debug statements here
18191 }
18192         // 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);
18193 /* @internal */
18194 export function StaticPaymentOutputDescriptor_new(outpoint_arg: number, output_arg: number, channel_keys_id_arg: number, channel_value_satoshis_arg: bigint): number {
18195         if(!isWasmInitialized) {
18196                 throw new Error("initializeWasm() must be awaited first!");
18197         }
18198         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_new(outpoint_arg, output_arg, channel_keys_id_arg, channel_value_satoshis_arg);
18199         return nativeResponseValue;
18200 }
18201         // uintptr_t StaticPaymentOutputDescriptor_clone_ptr(LDKStaticPaymentOutputDescriptor *NONNULL_PTR arg);
18202 /* @internal */
18203 export function StaticPaymentOutputDescriptor_clone_ptr(arg: number): number {
18204         if(!isWasmInitialized) {
18205                 throw new Error("initializeWasm() must be awaited first!");
18206         }
18207         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_clone_ptr(arg);
18208         return nativeResponseValue;
18209 }
18210         // struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR orig);
18211 /* @internal */
18212 export function StaticPaymentOutputDescriptor_clone(orig: number): number {
18213         if(!isWasmInitialized) {
18214                 throw new Error("initializeWasm() must be awaited first!");
18215         }
18216         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_clone(orig);
18217         return nativeResponseValue;
18218 }
18219         // struct LDKCVec_u8Z StaticPaymentOutputDescriptor_write(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR obj);
18220 /* @internal */
18221 export function StaticPaymentOutputDescriptor_write(obj: number): number {
18222         if(!isWasmInitialized) {
18223                 throw new Error("initializeWasm() must be awaited first!");
18224         }
18225         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_write(obj);
18226         return nativeResponseValue;
18227 }
18228         // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ StaticPaymentOutputDescriptor_read(struct LDKu8slice ser);
18229 /* @internal */
18230 export function StaticPaymentOutputDescriptor_read(ser: number): number {
18231         if(!isWasmInitialized) {
18232                 throw new Error("initializeWasm() must be awaited first!");
18233         }
18234         const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_read(ser);
18235         return nativeResponseValue;
18236 }
18237         // void SpendableOutputDescriptor_free(struct LDKSpendableOutputDescriptor this_ptr);
18238 /* @internal */
18239 export function SpendableOutputDescriptor_free(this_ptr: number): void {
18240         if(!isWasmInitialized) {
18241                 throw new Error("initializeWasm() must be awaited first!");
18242         }
18243         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_free(this_ptr);
18244         // debug statements here
18245 }
18246         // uintptr_t SpendableOutputDescriptor_clone_ptr(LDKSpendableOutputDescriptor *NONNULL_PTR arg);
18247 /* @internal */
18248 export function SpendableOutputDescriptor_clone_ptr(arg: number): number {
18249         if(!isWasmInitialized) {
18250                 throw new Error("initializeWasm() must be awaited first!");
18251         }
18252         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_clone_ptr(arg);
18253         return nativeResponseValue;
18254 }
18255         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_clone(const struct LDKSpendableOutputDescriptor *NONNULL_PTR orig);
18256 /* @internal */
18257 export function SpendableOutputDescriptor_clone(orig: number): number {
18258         if(!isWasmInitialized) {
18259                 throw new Error("initializeWasm() must be awaited first!");
18260         }
18261         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_clone(orig);
18262         return nativeResponseValue;
18263 }
18264         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_output(struct LDKOutPoint outpoint, struct LDKTxOut output);
18265 /* @internal */
18266 export function SpendableOutputDescriptor_static_output(outpoint: number, output: number): number {
18267         if(!isWasmInitialized) {
18268                 throw new Error("initializeWasm() must be awaited first!");
18269         }
18270         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_static_output(outpoint, output);
18271         return nativeResponseValue;
18272 }
18273         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_delayed_payment_output(struct LDKDelayedPaymentOutputDescriptor a);
18274 /* @internal */
18275 export function SpendableOutputDescriptor_delayed_payment_output(a: number): number {
18276         if(!isWasmInitialized) {
18277                 throw new Error("initializeWasm() must be awaited first!");
18278         }
18279         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_delayed_payment_output(a);
18280         return nativeResponseValue;
18281 }
18282         // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_payment_output(struct LDKStaticPaymentOutputDescriptor a);
18283 /* @internal */
18284 export function SpendableOutputDescriptor_static_payment_output(a: number): number {
18285         if(!isWasmInitialized) {
18286                 throw new Error("initializeWasm() must be awaited first!");
18287         }
18288         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_static_payment_output(a);
18289         return nativeResponseValue;
18290 }
18291         // struct LDKCVec_u8Z SpendableOutputDescriptor_write(const struct LDKSpendableOutputDescriptor *NONNULL_PTR obj);
18292 /* @internal */
18293 export function SpendableOutputDescriptor_write(obj: number): number {
18294         if(!isWasmInitialized) {
18295                 throw new Error("initializeWasm() must be awaited first!");
18296         }
18297         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_write(obj);
18298         return nativeResponseValue;
18299 }
18300         // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescriptor_read(struct LDKu8slice ser);
18301 /* @internal */
18302 export function SpendableOutputDescriptor_read(ser: number): number {
18303         if(!isWasmInitialized) {
18304                 throw new Error("initializeWasm() must be awaited first!");
18305         }
18306         const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_read(ser);
18307         return nativeResponseValue;
18308 }
18309         // void BaseSign_free(struct LDKBaseSign this_ptr);
18310 /* @internal */
18311 export function BaseSign_free(this_ptr: number): void {
18312         if(!isWasmInitialized) {
18313                 throw new Error("initializeWasm() must be awaited first!");
18314         }
18315         const nativeResponseValue = wasm.TS_BaseSign_free(this_ptr);
18316         // debug statements here
18317 }
18318         // uintptr_t Sign_clone_ptr(LDKSign *NONNULL_PTR arg);
18319 /* @internal */
18320 export function Sign_clone_ptr(arg: number): number {
18321         if(!isWasmInitialized) {
18322                 throw new Error("initializeWasm() must be awaited first!");
18323         }
18324         const nativeResponseValue = wasm.TS_Sign_clone_ptr(arg);
18325         return nativeResponseValue;
18326 }
18327         // struct LDKSign Sign_clone(const struct LDKSign *NONNULL_PTR orig);
18328 /* @internal */
18329 export function Sign_clone(orig: number): number {
18330         if(!isWasmInitialized) {
18331                 throw new Error("initializeWasm() must be awaited first!");
18332         }
18333         const nativeResponseValue = wasm.TS_Sign_clone(orig);
18334         return nativeResponseValue;
18335 }
18336         // void Sign_free(struct LDKSign this_ptr);
18337 /* @internal */
18338 export function Sign_free(this_ptr: number): void {
18339         if(!isWasmInitialized) {
18340                 throw new Error("initializeWasm() must be awaited first!");
18341         }
18342         const nativeResponseValue = wasm.TS_Sign_free(this_ptr);
18343         // debug statements here
18344 }
18345         // enum LDKRecipient Recipient_clone(const enum LDKRecipient *NONNULL_PTR orig);
18346 /* @internal */
18347 export function Recipient_clone(orig: number): Recipient {
18348         if(!isWasmInitialized) {
18349                 throw new Error("initializeWasm() must be awaited first!");
18350         }
18351         const nativeResponseValue = wasm.TS_Recipient_clone(orig);
18352         return nativeResponseValue;
18353 }
18354         // enum LDKRecipient Recipient_node(void);
18355 /* @internal */
18356 export function Recipient_node(): Recipient {
18357         if(!isWasmInitialized) {
18358                 throw new Error("initializeWasm() must be awaited first!");
18359         }
18360         const nativeResponseValue = wasm.TS_Recipient_node();
18361         return nativeResponseValue;
18362 }
18363         // enum LDKRecipient Recipient_phantom_node(void);
18364 /* @internal */
18365 export function Recipient_phantom_node(): Recipient {
18366         if(!isWasmInitialized) {
18367                 throw new Error("initializeWasm() must be awaited first!");
18368         }
18369         const nativeResponseValue = wasm.TS_Recipient_phantom_node();
18370         return nativeResponseValue;
18371 }
18372         // void KeysInterface_free(struct LDKKeysInterface this_ptr);
18373 /* @internal */
18374 export function KeysInterface_free(this_ptr: number): void {
18375         if(!isWasmInitialized) {
18376                 throw new Error("initializeWasm() must be awaited first!");
18377         }
18378         const nativeResponseValue = wasm.TS_KeysInterface_free(this_ptr);
18379         // debug statements here
18380 }
18381         // void InMemorySigner_free(struct LDKInMemorySigner this_obj);
18382 /* @internal */
18383 export function InMemorySigner_free(this_obj: number): void {
18384         if(!isWasmInitialized) {
18385                 throw new Error("initializeWasm() must be awaited first!");
18386         }
18387         const nativeResponseValue = wasm.TS_InMemorySigner_free(this_obj);
18388         // debug statements here
18389 }
18390         // const uint8_t (*InMemorySigner_get_funding_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
18391 /* @internal */
18392 export function InMemorySigner_get_funding_key(this_ptr: number): number {
18393         if(!isWasmInitialized) {
18394                 throw new Error("initializeWasm() must be awaited first!");
18395         }
18396         const nativeResponseValue = wasm.TS_InMemorySigner_get_funding_key(this_ptr);
18397         return nativeResponseValue;
18398 }
18399         // void InMemorySigner_set_funding_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
18400 /* @internal */
18401 export function InMemorySigner_set_funding_key(this_ptr: number, val: number): void {
18402         if(!isWasmInitialized) {
18403                 throw new Error("initializeWasm() must be awaited first!");
18404         }
18405         const nativeResponseValue = wasm.TS_InMemorySigner_set_funding_key(this_ptr, val);
18406         // debug statements here
18407 }
18408         // const uint8_t (*InMemorySigner_get_revocation_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
18409 /* @internal */
18410 export function InMemorySigner_get_revocation_base_key(this_ptr: number): number {
18411         if(!isWasmInitialized) {
18412                 throw new Error("initializeWasm() must be awaited first!");
18413         }
18414         const nativeResponseValue = wasm.TS_InMemorySigner_get_revocation_base_key(this_ptr);
18415         return nativeResponseValue;
18416 }
18417         // void InMemorySigner_set_revocation_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
18418 /* @internal */
18419 export function InMemorySigner_set_revocation_base_key(this_ptr: number, val: number): void {
18420         if(!isWasmInitialized) {
18421                 throw new Error("initializeWasm() must be awaited first!");
18422         }
18423         const nativeResponseValue = wasm.TS_InMemorySigner_set_revocation_base_key(this_ptr, val);
18424         // debug statements here
18425 }
18426         // const uint8_t (*InMemorySigner_get_payment_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
18427 /* @internal */
18428 export function InMemorySigner_get_payment_key(this_ptr: number): number {
18429         if(!isWasmInitialized) {
18430                 throw new Error("initializeWasm() must be awaited first!");
18431         }
18432         const nativeResponseValue = wasm.TS_InMemorySigner_get_payment_key(this_ptr);
18433         return nativeResponseValue;
18434 }
18435         // void InMemorySigner_set_payment_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
18436 /* @internal */
18437 export function InMemorySigner_set_payment_key(this_ptr: number, val: number): void {
18438         if(!isWasmInitialized) {
18439                 throw new Error("initializeWasm() must be awaited first!");
18440         }
18441         const nativeResponseValue = wasm.TS_InMemorySigner_set_payment_key(this_ptr, val);
18442         // debug statements here
18443 }
18444         // const uint8_t (*InMemorySigner_get_delayed_payment_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
18445 /* @internal */
18446 export function InMemorySigner_get_delayed_payment_base_key(this_ptr: number): number {
18447         if(!isWasmInitialized) {
18448                 throw new Error("initializeWasm() must be awaited first!");
18449         }
18450         const nativeResponseValue = wasm.TS_InMemorySigner_get_delayed_payment_base_key(this_ptr);
18451         return nativeResponseValue;
18452 }
18453         // void InMemorySigner_set_delayed_payment_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
18454 /* @internal */
18455 export function InMemorySigner_set_delayed_payment_base_key(this_ptr: number, val: number): void {
18456         if(!isWasmInitialized) {
18457                 throw new Error("initializeWasm() must be awaited first!");
18458         }
18459         const nativeResponseValue = wasm.TS_InMemorySigner_set_delayed_payment_base_key(this_ptr, val);
18460         // debug statements here
18461 }
18462         // const uint8_t (*InMemorySigner_get_htlc_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
18463 /* @internal */
18464 export function InMemorySigner_get_htlc_base_key(this_ptr: number): number {
18465         if(!isWasmInitialized) {
18466                 throw new Error("initializeWasm() must be awaited first!");
18467         }
18468         const nativeResponseValue = wasm.TS_InMemorySigner_get_htlc_base_key(this_ptr);
18469         return nativeResponseValue;
18470 }
18471         // void InMemorySigner_set_htlc_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
18472 /* @internal */
18473 export function InMemorySigner_set_htlc_base_key(this_ptr: number, val: number): void {
18474         if(!isWasmInitialized) {
18475                 throw new Error("initializeWasm() must be awaited first!");
18476         }
18477         const nativeResponseValue = wasm.TS_InMemorySigner_set_htlc_base_key(this_ptr, val);
18478         // debug statements here
18479 }
18480         // const uint8_t (*InMemorySigner_get_commitment_seed(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
18481 /* @internal */
18482 export function InMemorySigner_get_commitment_seed(this_ptr: number): number {
18483         if(!isWasmInitialized) {
18484                 throw new Error("initializeWasm() must be awaited first!");
18485         }
18486         const nativeResponseValue = wasm.TS_InMemorySigner_get_commitment_seed(this_ptr);
18487         return nativeResponseValue;
18488 }
18489         // void InMemorySigner_set_commitment_seed(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
18490 /* @internal */
18491 export function InMemorySigner_set_commitment_seed(this_ptr: number, val: number): void {
18492         if(!isWasmInitialized) {
18493                 throw new Error("initializeWasm() must be awaited first!");
18494         }
18495         const nativeResponseValue = wasm.TS_InMemorySigner_set_commitment_seed(this_ptr, val);
18496         // debug statements here
18497 }
18498         // uintptr_t InMemorySigner_clone_ptr(LDKInMemorySigner *NONNULL_PTR arg);
18499 /* @internal */
18500 export function InMemorySigner_clone_ptr(arg: number): number {
18501         if(!isWasmInitialized) {
18502                 throw new Error("initializeWasm() must be awaited first!");
18503         }
18504         const nativeResponseValue = wasm.TS_InMemorySigner_clone_ptr(arg);
18505         return nativeResponseValue;
18506 }
18507         // struct LDKInMemorySigner InMemorySigner_clone(const struct LDKInMemorySigner *NONNULL_PTR orig);
18508 /* @internal */
18509 export function InMemorySigner_clone(orig: number): number {
18510         if(!isWasmInitialized) {
18511                 throw new Error("initializeWasm() must be awaited first!");
18512         }
18513         const nativeResponseValue = wasm.TS_InMemorySigner_clone(orig);
18514         return nativeResponseValue;
18515 }
18516         // 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);
18517 /* @internal */
18518 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 {
18519         if(!isWasmInitialized) {
18520                 throw new Error("initializeWasm() must be awaited first!");
18521         }
18522         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);
18523         return nativeResponseValue;
18524 }
18525         // MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18526 /* @internal */
18527 export function InMemorySigner_counterparty_pubkeys(this_arg: number): number {
18528         if(!isWasmInitialized) {
18529                 throw new Error("initializeWasm() must be awaited first!");
18530         }
18531         const nativeResponseValue = wasm.TS_InMemorySigner_counterparty_pubkeys(this_arg);
18532         return nativeResponseValue;
18533 }
18534         // MUST_USE_RES uint16_t InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18535 /* @internal */
18536 export function InMemorySigner_counterparty_selected_contest_delay(this_arg: number): number {
18537         if(!isWasmInitialized) {
18538                 throw new Error("initializeWasm() must be awaited first!");
18539         }
18540         const nativeResponseValue = wasm.TS_InMemorySigner_counterparty_selected_contest_delay(this_arg);
18541         return nativeResponseValue;
18542 }
18543         // MUST_USE_RES uint16_t InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18544 /* @internal */
18545 export function InMemorySigner_holder_selected_contest_delay(this_arg: number): number {
18546         if(!isWasmInitialized) {
18547                 throw new Error("initializeWasm() must be awaited first!");
18548         }
18549         const nativeResponseValue = wasm.TS_InMemorySigner_holder_selected_contest_delay(this_arg);
18550         return nativeResponseValue;
18551 }
18552         // MUST_USE_RES bool InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18553 /* @internal */
18554 export function InMemorySigner_is_outbound(this_arg: number): boolean {
18555         if(!isWasmInitialized) {
18556                 throw new Error("initializeWasm() must be awaited first!");
18557         }
18558         const nativeResponseValue = wasm.TS_InMemorySigner_is_outbound(this_arg);
18559         return nativeResponseValue;
18560 }
18561         // MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18562 /* @internal */
18563 export function InMemorySigner_funding_outpoint(this_arg: number): number {
18564         if(!isWasmInitialized) {
18565                 throw new Error("initializeWasm() must be awaited first!");
18566         }
18567         const nativeResponseValue = wasm.TS_InMemorySigner_funding_outpoint(this_arg);
18568         return nativeResponseValue;
18569 }
18570         // MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_parameters(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18571 /* @internal */
18572 export function InMemorySigner_get_channel_parameters(this_arg: number): number {
18573         if(!isWasmInitialized) {
18574                 throw new Error("initializeWasm() must be awaited first!");
18575         }
18576         const nativeResponseValue = wasm.TS_InMemorySigner_get_channel_parameters(this_arg);
18577         return nativeResponseValue;
18578 }
18579         // MUST_USE_RES bool InMemorySigner_opt_anchors(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18580 /* @internal */
18581 export function InMemorySigner_opt_anchors(this_arg: number): boolean {
18582         if(!isWasmInitialized) {
18583                 throw new Error("initializeWasm() must be awaited first!");
18584         }
18585         const nativeResponseValue = wasm.TS_InMemorySigner_opt_anchors(this_arg);
18586         return nativeResponseValue;
18587 }
18588         // 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);
18589 /* @internal */
18590 export function InMemorySigner_sign_counterparty_payment_input(this_arg: number, spend_tx: number, input_idx: number, descriptor: number): number {
18591         if(!isWasmInitialized) {
18592                 throw new Error("initializeWasm() must be awaited first!");
18593         }
18594         const nativeResponseValue = wasm.TS_InMemorySigner_sign_counterparty_payment_input(this_arg, spend_tx, input_idx, descriptor);
18595         return nativeResponseValue;
18596 }
18597         // 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);
18598 /* @internal */
18599 export function InMemorySigner_sign_dynamic_p2wsh_input(this_arg: number, spend_tx: number, input_idx: number, descriptor: number): number {
18600         if(!isWasmInitialized) {
18601                 throw new Error("initializeWasm() must be awaited first!");
18602         }
18603         const nativeResponseValue = wasm.TS_InMemorySigner_sign_dynamic_p2wsh_input(this_arg, spend_tx, input_idx, descriptor);
18604         return nativeResponseValue;
18605 }
18606         // struct LDKBaseSign InMemorySigner_as_BaseSign(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18607 /* @internal */
18608 export function InMemorySigner_as_BaseSign(this_arg: number): number {
18609         if(!isWasmInitialized) {
18610                 throw new Error("initializeWasm() must be awaited first!");
18611         }
18612         const nativeResponseValue = wasm.TS_InMemorySigner_as_BaseSign(this_arg);
18613         return nativeResponseValue;
18614 }
18615         // struct LDKSign InMemorySigner_as_Sign(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
18616 /* @internal */
18617 export function InMemorySigner_as_Sign(this_arg: number): number {
18618         if(!isWasmInitialized) {
18619                 throw new Error("initializeWasm() must be awaited first!");
18620         }
18621         const nativeResponseValue = wasm.TS_InMemorySigner_as_Sign(this_arg);
18622         return nativeResponseValue;
18623 }
18624         // struct LDKCVec_u8Z InMemorySigner_write(const struct LDKInMemorySigner *NONNULL_PTR obj);
18625 /* @internal */
18626 export function InMemorySigner_write(obj: number): number {
18627         if(!isWasmInitialized) {
18628                 throw new Error("initializeWasm() must be awaited first!");
18629         }
18630         const nativeResponseValue = wasm.TS_InMemorySigner_write(obj);
18631         return nativeResponseValue;
18632 }
18633         // struct LDKCResult_InMemorySignerDecodeErrorZ InMemorySigner_read(struct LDKu8slice ser, struct LDKSecretKey arg);
18634 /* @internal */
18635 export function InMemorySigner_read(ser: number, arg: number): number {
18636         if(!isWasmInitialized) {
18637                 throw new Error("initializeWasm() must be awaited first!");
18638         }
18639         const nativeResponseValue = wasm.TS_InMemorySigner_read(ser, arg);
18640         return nativeResponseValue;
18641 }
18642         // void KeysManager_free(struct LDKKeysManager this_obj);
18643 /* @internal */
18644 export function KeysManager_free(this_obj: number): void {
18645         if(!isWasmInitialized) {
18646                 throw new Error("initializeWasm() must be awaited first!");
18647         }
18648         const nativeResponseValue = wasm.TS_KeysManager_free(this_obj);
18649         // debug statements here
18650 }
18651         // MUST_USE_RES struct LDKKeysManager KeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos);
18652 /* @internal */
18653 export function KeysManager_new(seed: number, starting_time_secs: bigint, starting_time_nanos: number): number {
18654         if(!isWasmInitialized) {
18655                 throw new Error("initializeWasm() must be awaited first!");
18656         }
18657         const nativeResponseValue = wasm.TS_KeysManager_new(seed, starting_time_secs, starting_time_nanos);
18658         return nativeResponseValue;
18659 }
18660         // 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]);
18661 /* @internal */
18662 export function KeysManager_derive_channel_keys(this_arg: number, channel_value_satoshis: bigint, params: number): number {
18663         if(!isWasmInitialized) {
18664                 throw new Error("initializeWasm() must be awaited first!");
18665         }
18666         const nativeResponseValue = wasm.TS_KeysManager_derive_channel_keys(this_arg, channel_value_satoshis, params);
18667         return nativeResponseValue;
18668 }
18669         // 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);
18670 /* @internal */
18671 export function KeysManager_spend_spendable_outputs(this_arg: number, descriptors: number, outputs: number, change_destination_script: number, feerate_sat_per_1000_weight: number): number {
18672         if(!isWasmInitialized) {
18673                 throw new Error("initializeWasm() must be awaited first!");
18674         }
18675         const nativeResponseValue = wasm.TS_KeysManager_spend_spendable_outputs(this_arg, descriptors, outputs, change_destination_script, feerate_sat_per_1000_weight);
18676         return nativeResponseValue;
18677 }
18678         // struct LDKKeysInterface KeysManager_as_KeysInterface(const struct LDKKeysManager *NONNULL_PTR this_arg);
18679 /* @internal */
18680 export function KeysManager_as_KeysInterface(this_arg: number): number {
18681         if(!isWasmInitialized) {
18682                 throw new Error("initializeWasm() must be awaited first!");
18683         }
18684         const nativeResponseValue = wasm.TS_KeysManager_as_KeysInterface(this_arg);
18685         return nativeResponseValue;
18686 }
18687         // void PhantomKeysManager_free(struct LDKPhantomKeysManager this_obj);
18688 /* @internal */
18689 export function PhantomKeysManager_free(this_obj: number): void {
18690         if(!isWasmInitialized) {
18691                 throw new Error("initializeWasm() must be awaited first!");
18692         }
18693         const nativeResponseValue = wasm.TS_PhantomKeysManager_free(this_obj);
18694         // debug statements here
18695 }
18696         // struct LDKKeysInterface PhantomKeysManager_as_KeysInterface(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
18697 /* @internal */
18698 export function PhantomKeysManager_as_KeysInterface(this_arg: number): number {
18699         if(!isWasmInitialized) {
18700                 throw new Error("initializeWasm() must be awaited first!");
18701         }
18702         const nativeResponseValue = wasm.TS_PhantomKeysManager_as_KeysInterface(this_arg);
18703         return nativeResponseValue;
18704 }
18705         // 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]);
18706 /* @internal */
18707 export function PhantomKeysManager_new(seed: number, starting_time_secs: bigint, starting_time_nanos: number, cross_node_seed: number): number {
18708         if(!isWasmInitialized) {
18709                 throw new Error("initializeWasm() must be awaited first!");
18710         }
18711         const nativeResponseValue = wasm.TS_PhantomKeysManager_new(seed, starting_time_secs, starting_time_nanos, cross_node_seed);
18712         return nativeResponseValue;
18713 }
18714         // 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);
18715 /* @internal */
18716 export function PhantomKeysManager_spend_spendable_outputs(this_arg: number, descriptors: number, outputs: number, change_destination_script: number, feerate_sat_per_1000_weight: number): number {
18717         if(!isWasmInitialized) {
18718                 throw new Error("initializeWasm() must be awaited first!");
18719         }
18720         const nativeResponseValue = wasm.TS_PhantomKeysManager_spend_spendable_outputs(this_arg, descriptors, outputs, change_destination_script, feerate_sat_per_1000_weight);
18721         return nativeResponseValue;
18722 }
18723         // 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]);
18724 /* @internal */
18725 export function PhantomKeysManager_derive_channel_keys(this_arg: number, channel_value_satoshis: bigint, params: number): number {
18726         if(!isWasmInitialized) {
18727                 throw new Error("initializeWasm() must be awaited first!");
18728         }
18729         const nativeResponseValue = wasm.TS_PhantomKeysManager_derive_channel_keys(this_arg, channel_value_satoshis, params);
18730         return nativeResponseValue;
18731 }
18732         // void ChannelManager_free(struct LDKChannelManager this_obj);
18733 /* @internal */
18734 export function ChannelManager_free(this_obj: number): void {
18735         if(!isWasmInitialized) {
18736                 throw new Error("initializeWasm() must be awaited first!");
18737         }
18738         const nativeResponseValue = wasm.TS_ChannelManager_free(this_obj);
18739         // debug statements here
18740 }
18741         // void ChainParameters_free(struct LDKChainParameters this_obj);
18742 /* @internal */
18743 export function ChainParameters_free(this_obj: number): void {
18744         if(!isWasmInitialized) {
18745                 throw new Error("initializeWasm() must be awaited first!");
18746         }
18747         const nativeResponseValue = wasm.TS_ChainParameters_free(this_obj);
18748         // debug statements here
18749 }
18750         // enum LDKNetwork ChainParameters_get_network(const struct LDKChainParameters *NONNULL_PTR this_ptr);
18751 /* @internal */
18752 export function ChainParameters_get_network(this_ptr: number): Network {
18753         if(!isWasmInitialized) {
18754                 throw new Error("initializeWasm() must be awaited first!");
18755         }
18756         const nativeResponseValue = wasm.TS_ChainParameters_get_network(this_ptr);
18757         return nativeResponseValue;
18758 }
18759         // void ChainParameters_set_network(struct LDKChainParameters *NONNULL_PTR this_ptr, enum LDKNetwork val);
18760 /* @internal */
18761 export function ChainParameters_set_network(this_ptr: number, val: Network): void {
18762         if(!isWasmInitialized) {
18763                 throw new Error("initializeWasm() must be awaited first!");
18764         }
18765         const nativeResponseValue = wasm.TS_ChainParameters_set_network(this_ptr, val);
18766         // debug statements here
18767 }
18768         // struct LDKBestBlock ChainParameters_get_best_block(const struct LDKChainParameters *NONNULL_PTR this_ptr);
18769 /* @internal */
18770 export function ChainParameters_get_best_block(this_ptr: number): number {
18771         if(!isWasmInitialized) {
18772                 throw new Error("initializeWasm() must be awaited first!");
18773         }
18774         const nativeResponseValue = wasm.TS_ChainParameters_get_best_block(this_ptr);
18775         return nativeResponseValue;
18776 }
18777         // void ChainParameters_set_best_block(struct LDKChainParameters *NONNULL_PTR this_ptr, struct LDKBestBlock val);
18778 /* @internal */
18779 export function ChainParameters_set_best_block(this_ptr: number, val: number): void {
18780         if(!isWasmInitialized) {
18781                 throw new Error("initializeWasm() must be awaited first!");
18782         }
18783         const nativeResponseValue = wasm.TS_ChainParameters_set_best_block(this_ptr, val);
18784         // debug statements here
18785 }
18786         // MUST_USE_RES struct LDKChainParameters ChainParameters_new(enum LDKNetwork network_arg, struct LDKBestBlock best_block_arg);
18787 /* @internal */
18788 export function ChainParameters_new(network_arg: Network, best_block_arg: number): number {
18789         if(!isWasmInitialized) {
18790                 throw new Error("initializeWasm() must be awaited first!");
18791         }
18792         const nativeResponseValue = wasm.TS_ChainParameters_new(network_arg, best_block_arg);
18793         return nativeResponseValue;
18794 }
18795         // uintptr_t ChainParameters_clone_ptr(LDKChainParameters *NONNULL_PTR arg);
18796 /* @internal */
18797 export function ChainParameters_clone_ptr(arg: number): number {
18798         if(!isWasmInitialized) {
18799                 throw new Error("initializeWasm() must be awaited first!");
18800         }
18801         const nativeResponseValue = wasm.TS_ChainParameters_clone_ptr(arg);
18802         return nativeResponseValue;
18803 }
18804         // struct LDKChainParameters ChainParameters_clone(const struct LDKChainParameters *NONNULL_PTR orig);
18805 /* @internal */
18806 export function ChainParameters_clone(orig: number): number {
18807         if(!isWasmInitialized) {
18808                 throw new Error("initializeWasm() must be awaited first!");
18809         }
18810         const nativeResponseValue = wasm.TS_ChainParameters_clone(orig);
18811         return nativeResponseValue;
18812 }
18813         // void CounterpartyForwardingInfo_free(struct LDKCounterpartyForwardingInfo this_obj);
18814 /* @internal */
18815 export function CounterpartyForwardingInfo_free(this_obj: number): void {
18816         if(!isWasmInitialized) {
18817                 throw new Error("initializeWasm() must be awaited first!");
18818         }
18819         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_free(this_obj);
18820         // debug statements here
18821 }
18822         // uint32_t CounterpartyForwardingInfo_get_fee_base_msat(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
18823 /* @internal */
18824 export function CounterpartyForwardingInfo_get_fee_base_msat(this_ptr: number): number {
18825         if(!isWasmInitialized) {
18826                 throw new Error("initializeWasm() must be awaited first!");
18827         }
18828         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_fee_base_msat(this_ptr);
18829         return nativeResponseValue;
18830 }
18831         // void CounterpartyForwardingInfo_set_fee_base_msat(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
18832 /* @internal */
18833 export function CounterpartyForwardingInfo_set_fee_base_msat(this_ptr: number, val: number): void {
18834         if(!isWasmInitialized) {
18835                 throw new Error("initializeWasm() must be awaited first!");
18836         }
18837         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_fee_base_msat(this_ptr, val);
18838         // debug statements here
18839 }
18840         // uint32_t CounterpartyForwardingInfo_get_fee_proportional_millionths(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
18841 /* @internal */
18842 export function CounterpartyForwardingInfo_get_fee_proportional_millionths(this_ptr: number): number {
18843         if(!isWasmInitialized) {
18844                 throw new Error("initializeWasm() must be awaited first!");
18845         }
18846         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_fee_proportional_millionths(this_ptr);
18847         return nativeResponseValue;
18848 }
18849         // void CounterpartyForwardingInfo_set_fee_proportional_millionths(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
18850 /* @internal */
18851 export function CounterpartyForwardingInfo_set_fee_proportional_millionths(this_ptr: number, val: number): void {
18852         if(!isWasmInitialized) {
18853                 throw new Error("initializeWasm() must be awaited first!");
18854         }
18855         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_fee_proportional_millionths(this_ptr, val);
18856         // debug statements here
18857 }
18858         // uint16_t CounterpartyForwardingInfo_get_cltv_expiry_delta(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
18859 /* @internal */
18860 export function CounterpartyForwardingInfo_get_cltv_expiry_delta(this_ptr: number): number {
18861         if(!isWasmInitialized) {
18862                 throw new Error("initializeWasm() must be awaited first!");
18863         }
18864         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_cltv_expiry_delta(this_ptr);
18865         return nativeResponseValue;
18866 }
18867         // void CounterpartyForwardingInfo_set_cltv_expiry_delta(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint16_t val);
18868 /* @internal */
18869 export function CounterpartyForwardingInfo_set_cltv_expiry_delta(this_ptr: number, val: number): void {
18870         if(!isWasmInitialized) {
18871                 throw new Error("initializeWasm() must be awaited first!");
18872         }
18873         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_cltv_expiry_delta(this_ptr, val);
18874         // debug statements here
18875 }
18876         // 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);
18877 /* @internal */
18878 export function CounterpartyForwardingInfo_new(fee_base_msat_arg: number, fee_proportional_millionths_arg: number, cltv_expiry_delta_arg: number): number {
18879         if(!isWasmInitialized) {
18880                 throw new Error("initializeWasm() must be awaited first!");
18881         }
18882         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_new(fee_base_msat_arg, fee_proportional_millionths_arg, cltv_expiry_delta_arg);
18883         return nativeResponseValue;
18884 }
18885         // uintptr_t CounterpartyForwardingInfo_clone_ptr(LDKCounterpartyForwardingInfo *NONNULL_PTR arg);
18886 /* @internal */
18887 export function CounterpartyForwardingInfo_clone_ptr(arg: number): number {
18888         if(!isWasmInitialized) {
18889                 throw new Error("initializeWasm() must be awaited first!");
18890         }
18891         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_clone_ptr(arg);
18892         return nativeResponseValue;
18893 }
18894         // struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_clone(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR orig);
18895 /* @internal */
18896 export function CounterpartyForwardingInfo_clone(orig: number): number {
18897         if(!isWasmInitialized) {
18898                 throw new Error("initializeWasm() must be awaited first!");
18899         }
18900         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_clone(orig);
18901         return nativeResponseValue;
18902 }
18903         // void ChannelCounterparty_free(struct LDKChannelCounterparty this_obj);
18904 /* @internal */
18905 export function ChannelCounterparty_free(this_obj: number): void {
18906         if(!isWasmInitialized) {
18907                 throw new Error("initializeWasm() must be awaited first!");
18908         }
18909         const nativeResponseValue = wasm.TS_ChannelCounterparty_free(this_obj);
18910         // debug statements here
18911 }
18912         // struct LDKPublicKey ChannelCounterparty_get_node_id(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18913 /* @internal */
18914 export function ChannelCounterparty_get_node_id(this_ptr: number): number {
18915         if(!isWasmInitialized) {
18916                 throw new Error("initializeWasm() must be awaited first!");
18917         }
18918         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_node_id(this_ptr);
18919         return nativeResponseValue;
18920 }
18921         // void ChannelCounterparty_set_node_id(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKPublicKey val);
18922 /* @internal */
18923 export function ChannelCounterparty_set_node_id(this_ptr: number, val: number): void {
18924         if(!isWasmInitialized) {
18925                 throw new Error("initializeWasm() must be awaited first!");
18926         }
18927         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_node_id(this_ptr, val);
18928         // debug statements here
18929 }
18930         // struct LDKInitFeatures ChannelCounterparty_get_features(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18931 /* @internal */
18932 export function ChannelCounterparty_get_features(this_ptr: number): number {
18933         if(!isWasmInitialized) {
18934                 throw new Error("initializeWasm() must be awaited first!");
18935         }
18936         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_features(this_ptr);
18937         return nativeResponseValue;
18938 }
18939         // void ChannelCounterparty_set_features(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
18940 /* @internal */
18941 export function ChannelCounterparty_set_features(this_ptr: number, val: number): void {
18942         if(!isWasmInitialized) {
18943                 throw new Error("initializeWasm() must be awaited first!");
18944         }
18945         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_features(this_ptr, val);
18946         // debug statements here
18947 }
18948         // uint64_t ChannelCounterparty_get_unspendable_punishment_reserve(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18949 /* @internal */
18950 export function ChannelCounterparty_get_unspendable_punishment_reserve(this_ptr: number): bigint {
18951         if(!isWasmInitialized) {
18952                 throw new Error("initializeWasm() must be awaited first!");
18953         }
18954         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_unspendable_punishment_reserve(this_ptr);
18955         return nativeResponseValue;
18956 }
18957         // void ChannelCounterparty_set_unspendable_punishment_reserve(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, uint64_t val);
18958 /* @internal */
18959 export function ChannelCounterparty_set_unspendable_punishment_reserve(this_ptr: number, val: bigint): void {
18960         if(!isWasmInitialized) {
18961                 throw new Error("initializeWasm() must be awaited first!");
18962         }
18963         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_unspendable_punishment_reserve(this_ptr, val);
18964         // debug statements here
18965 }
18966         // struct LDKCounterpartyForwardingInfo ChannelCounterparty_get_forwarding_info(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18967 /* @internal */
18968 export function ChannelCounterparty_get_forwarding_info(this_ptr: number): number {
18969         if(!isWasmInitialized) {
18970                 throw new Error("initializeWasm() must be awaited first!");
18971         }
18972         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_forwarding_info(this_ptr);
18973         return nativeResponseValue;
18974 }
18975         // void ChannelCounterparty_set_forwarding_info(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCounterpartyForwardingInfo val);
18976 /* @internal */
18977 export function ChannelCounterparty_set_forwarding_info(this_ptr: number, val: number): void {
18978         if(!isWasmInitialized) {
18979                 throw new Error("initializeWasm() must be awaited first!");
18980         }
18981         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_forwarding_info(this_ptr, val);
18982         // debug statements here
18983 }
18984         // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_minimum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
18985 /* @internal */
18986 export function ChannelCounterparty_get_outbound_htlc_minimum_msat(this_ptr: number): number {
18987         if(!isWasmInitialized) {
18988                 throw new Error("initializeWasm() must be awaited first!");
18989         }
18990         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_outbound_htlc_minimum_msat(this_ptr);
18991         return nativeResponseValue;
18992 }
18993         // void ChannelCounterparty_set_outbound_htlc_minimum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
18994 /* @internal */
18995 export function ChannelCounterparty_set_outbound_htlc_minimum_msat(this_ptr: number, val: number): void {
18996         if(!isWasmInitialized) {
18997                 throw new Error("initializeWasm() must be awaited first!");
18998         }
18999         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_outbound_htlc_minimum_msat(this_ptr, val);
19000         // debug statements here
19001 }
19002         // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_maximum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
19003 /* @internal */
19004 export function ChannelCounterparty_get_outbound_htlc_maximum_msat(this_ptr: number): number {
19005         if(!isWasmInitialized) {
19006                 throw new Error("initializeWasm() must be awaited first!");
19007         }
19008         const nativeResponseValue = wasm.TS_ChannelCounterparty_get_outbound_htlc_maximum_msat(this_ptr);
19009         return nativeResponseValue;
19010 }
19011         // void ChannelCounterparty_set_outbound_htlc_maximum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
19012 /* @internal */
19013 export function ChannelCounterparty_set_outbound_htlc_maximum_msat(this_ptr: number, val: number): void {
19014         if(!isWasmInitialized) {
19015                 throw new Error("initializeWasm() must be awaited first!");
19016         }
19017         const nativeResponseValue = wasm.TS_ChannelCounterparty_set_outbound_htlc_maximum_msat(this_ptr, val);
19018         // debug statements here
19019 }
19020         // 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, struct LDKCOption_u64Z outbound_htlc_minimum_msat_arg, struct LDKCOption_u64Z outbound_htlc_maximum_msat_arg);
19021 /* @internal */
19022 export function ChannelCounterparty_new(node_id_arg: number, features_arg: number, unspendable_punishment_reserve_arg: bigint, forwarding_info_arg: number, outbound_htlc_minimum_msat_arg: number, outbound_htlc_maximum_msat_arg: number): number {
19023         if(!isWasmInitialized) {
19024                 throw new Error("initializeWasm() must be awaited first!");
19025         }
19026         const nativeResponseValue = wasm.TS_ChannelCounterparty_new(node_id_arg, features_arg, unspendable_punishment_reserve_arg, forwarding_info_arg, outbound_htlc_minimum_msat_arg, outbound_htlc_maximum_msat_arg);
19027         return nativeResponseValue;
19028 }
19029         // uintptr_t ChannelCounterparty_clone_ptr(LDKChannelCounterparty *NONNULL_PTR arg);
19030 /* @internal */
19031 export function ChannelCounterparty_clone_ptr(arg: number): number {
19032         if(!isWasmInitialized) {
19033                 throw new Error("initializeWasm() must be awaited first!");
19034         }
19035         const nativeResponseValue = wasm.TS_ChannelCounterparty_clone_ptr(arg);
19036         return nativeResponseValue;
19037 }
19038         // struct LDKChannelCounterparty ChannelCounterparty_clone(const struct LDKChannelCounterparty *NONNULL_PTR orig);
19039 /* @internal */
19040 export function ChannelCounterparty_clone(orig: number): number {
19041         if(!isWasmInitialized) {
19042                 throw new Error("initializeWasm() must be awaited first!");
19043         }
19044         const nativeResponseValue = wasm.TS_ChannelCounterparty_clone(orig);
19045         return nativeResponseValue;
19046 }
19047         // void ChannelDetails_free(struct LDKChannelDetails this_obj);
19048 /* @internal */
19049 export function ChannelDetails_free(this_obj: number): void {
19050         if(!isWasmInitialized) {
19051                 throw new Error("initializeWasm() must be awaited first!");
19052         }
19053         const nativeResponseValue = wasm.TS_ChannelDetails_free(this_obj);
19054         // debug statements here
19055 }
19056         // const uint8_t (*ChannelDetails_get_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr))[32];
19057 /* @internal */
19058 export function ChannelDetails_get_channel_id(this_ptr: number): number {
19059         if(!isWasmInitialized) {
19060                 throw new Error("initializeWasm() must be awaited first!");
19061         }
19062         const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_id(this_ptr);
19063         return nativeResponseValue;
19064 }
19065         // void ChannelDetails_set_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
19066 /* @internal */
19067 export function ChannelDetails_set_channel_id(this_ptr: number, val: number): void {
19068         if(!isWasmInitialized) {
19069                 throw new Error("initializeWasm() must be awaited first!");
19070         }
19071         const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_id(this_ptr, val);
19072         // debug statements here
19073 }
19074         // struct LDKChannelCounterparty ChannelDetails_get_counterparty(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19075 /* @internal */
19076 export function ChannelDetails_get_counterparty(this_ptr: number): number {
19077         if(!isWasmInitialized) {
19078                 throw new Error("initializeWasm() must be awaited first!");
19079         }
19080         const nativeResponseValue = wasm.TS_ChannelDetails_get_counterparty(this_ptr);
19081         return nativeResponseValue;
19082 }
19083         // void ChannelDetails_set_counterparty(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelCounterparty val);
19084 /* @internal */
19085 export function ChannelDetails_set_counterparty(this_ptr: number, val: number): void {
19086         if(!isWasmInitialized) {
19087                 throw new Error("initializeWasm() must be awaited first!");
19088         }
19089         const nativeResponseValue = wasm.TS_ChannelDetails_set_counterparty(this_ptr, val);
19090         // debug statements here
19091 }
19092         // struct LDKOutPoint ChannelDetails_get_funding_txo(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19093 /* @internal */
19094 export function ChannelDetails_get_funding_txo(this_ptr: number): number {
19095         if(!isWasmInitialized) {
19096                 throw new Error("initializeWasm() must be awaited first!");
19097         }
19098         const nativeResponseValue = wasm.TS_ChannelDetails_get_funding_txo(this_ptr);
19099         return nativeResponseValue;
19100 }
19101         // void ChannelDetails_set_funding_txo(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKOutPoint val);
19102 /* @internal */
19103 export function ChannelDetails_set_funding_txo(this_ptr: number, val: number): void {
19104         if(!isWasmInitialized) {
19105                 throw new Error("initializeWasm() must be awaited first!");
19106         }
19107         const nativeResponseValue = wasm.TS_ChannelDetails_set_funding_txo(this_ptr, val);
19108         // debug statements here
19109 }
19110         // struct LDKChannelTypeFeatures ChannelDetails_get_channel_type(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19111 /* @internal */
19112 export function ChannelDetails_get_channel_type(this_ptr: number): number {
19113         if(!isWasmInitialized) {
19114                 throw new Error("initializeWasm() must be awaited first!");
19115         }
19116         const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_type(this_ptr);
19117         return nativeResponseValue;
19118 }
19119         // void ChannelDetails_set_channel_type(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
19120 /* @internal */
19121 export function ChannelDetails_set_channel_type(this_ptr: number, val: number): void {
19122         if(!isWasmInitialized) {
19123                 throw new Error("initializeWasm() must be awaited first!");
19124         }
19125         const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_type(this_ptr, val);
19126         // debug statements here
19127 }
19128         // struct LDKCOption_u64Z ChannelDetails_get_short_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19129 /* @internal */
19130 export function ChannelDetails_get_short_channel_id(this_ptr: number): number {
19131         if(!isWasmInitialized) {
19132                 throw new Error("initializeWasm() must be awaited first!");
19133         }
19134         const nativeResponseValue = wasm.TS_ChannelDetails_get_short_channel_id(this_ptr);
19135         return nativeResponseValue;
19136 }
19137         // void ChannelDetails_set_short_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
19138 /* @internal */
19139 export function ChannelDetails_set_short_channel_id(this_ptr: number, val: number): void {
19140         if(!isWasmInitialized) {
19141                 throw new Error("initializeWasm() must be awaited first!");
19142         }
19143         const nativeResponseValue = wasm.TS_ChannelDetails_set_short_channel_id(this_ptr, val);
19144         // debug statements here
19145 }
19146         // struct LDKCOption_u64Z ChannelDetails_get_outbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19147 /* @internal */
19148 export function ChannelDetails_get_outbound_scid_alias(this_ptr: number): number {
19149         if(!isWasmInitialized) {
19150                 throw new Error("initializeWasm() must be awaited first!");
19151         }
19152         const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_scid_alias(this_ptr);
19153         return nativeResponseValue;
19154 }
19155         // void ChannelDetails_set_outbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
19156 /* @internal */
19157 export function ChannelDetails_set_outbound_scid_alias(this_ptr: number, val: number): void {
19158         if(!isWasmInitialized) {
19159                 throw new Error("initializeWasm() must be awaited first!");
19160         }
19161         const nativeResponseValue = wasm.TS_ChannelDetails_set_outbound_scid_alias(this_ptr, val);
19162         // debug statements here
19163 }
19164         // struct LDKCOption_u64Z ChannelDetails_get_inbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19165 /* @internal */
19166 export function ChannelDetails_get_inbound_scid_alias(this_ptr: number): number {
19167         if(!isWasmInitialized) {
19168                 throw new Error("initializeWasm() must be awaited first!");
19169         }
19170         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_scid_alias(this_ptr);
19171         return nativeResponseValue;
19172 }
19173         // void ChannelDetails_set_inbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
19174 /* @internal */
19175 export function ChannelDetails_set_inbound_scid_alias(this_ptr: number, val: number): void {
19176         if(!isWasmInitialized) {
19177                 throw new Error("initializeWasm() must be awaited first!");
19178         }
19179         const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_scid_alias(this_ptr, val);
19180         // debug statements here
19181 }
19182         // uint64_t ChannelDetails_get_channel_value_satoshis(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19183 /* @internal */
19184 export function ChannelDetails_get_channel_value_satoshis(this_ptr: number): bigint {
19185         if(!isWasmInitialized) {
19186                 throw new Error("initializeWasm() must be awaited first!");
19187         }
19188         const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_value_satoshis(this_ptr);
19189         return nativeResponseValue;
19190 }
19191         // void ChannelDetails_set_channel_value_satoshis(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
19192 /* @internal */
19193 export function ChannelDetails_set_channel_value_satoshis(this_ptr: number, val: bigint): void {
19194         if(!isWasmInitialized) {
19195                 throw new Error("initializeWasm() must be awaited first!");
19196         }
19197         const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_value_satoshis(this_ptr, val);
19198         // debug statements here
19199 }
19200         // struct LDKCOption_u64Z ChannelDetails_get_unspendable_punishment_reserve(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19201 /* @internal */
19202 export function ChannelDetails_get_unspendable_punishment_reserve(this_ptr: number): number {
19203         if(!isWasmInitialized) {
19204                 throw new Error("initializeWasm() must be awaited first!");
19205         }
19206         const nativeResponseValue = wasm.TS_ChannelDetails_get_unspendable_punishment_reserve(this_ptr);
19207         return nativeResponseValue;
19208 }
19209         // void ChannelDetails_set_unspendable_punishment_reserve(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
19210 /* @internal */
19211 export function ChannelDetails_set_unspendable_punishment_reserve(this_ptr: number, val: number): void {
19212         if(!isWasmInitialized) {
19213                 throw new Error("initializeWasm() must be awaited first!");
19214         }
19215         const nativeResponseValue = wasm.TS_ChannelDetails_set_unspendable_punishment_reserve(this_ptr, val);
19216         // debug statements here
19217 }
19218         // uint64_t ChannelDetails_get_user_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19219 /* @internal */
19220 export function ChannelDetails_get_user_channel_id(this_ptr: number): bigint {
19221         if(!isWasmInitialized) {
19222                 throw new Error("initializeWasm() must be awaited first!");
19223         }
19224         const nativeResponseValue = wasm.TS_ChannelDetails_get_user_channel_id(this_ptr);
19225         return nativeResponseValue;
19226 }
19227         // void ChannelDetails_set_user_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
19228 /* @internal */
19229 export function ChannelDetails_set_user_channel_id(this_ptr: number, val: bigint): void {
19230         if(!isWasmInitialized) {
19231                 throw new Error("initializeWasm() must be awaited first!");
19232         }
19233         const nativeResponseValue = wasm.TS_ChannelDetails_set_user_channel_id(this_ptr, val);
19234         // debug statements here
19235 }
19236         // uint64_t ChannelDetails_get_balance_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19237 /* @internal */
19238 export function ChannelDetails_get_balance_msat(this_ptr: number): bigint {
19239         if(!isWasmInitialized) {
19240                 throw new Error("initializeWasm() must be awaited first!");
19241         }
19242         const nativeResponseValue = wasm.TS_ChannelDetails_get_balance_msat(this_ptr);
19243         return nativeResponseValue;
19244 }
19245         // void ChannelDetails_set_balance_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
19246 /* @internal */
19247 export function ChannelDetails_set_balance_msat(this_ptr: number, val: bigint): void {
19248         if(!isWasmInitialized) {
19249                 throw new Error("initializeWasm() must be awaited first!");
19250         }
19251         const nativeResponseValue = wasm.TS_ChannelDetails_set_balance_msat(this_ptr, val);
19252         // debug statements here
19253 }
19254         // uint64_t ChannelDetails_get_outbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19255 /* @internal */
19256 export function ChannelDetails_get_outbound_capacity_msat(this_ptr: number): bigint {
19257         if(!isWasmInitialized) {
19258                 throw new Error("initializeWasm() must be awaited first!");
19259         }
19260         const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_capacity_msat(this_ptr);
19261         return nativeResponseValue;
19262 }
19263         // void ChannelDetails_set_outbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
19264 /* @internal */
19265 export function ChannelDetails_set_outbound_capacity_msat(this_ptr: number, val: bigint): void {
19266         if(!isWasmInitialized) {
19267                 throw new Error("initializeWasm() must be awaited first!");
19268         }
19269         const nativeResponseValue = wasm.TS_ChannelDetails_set_outbound_capacity_msat(this_ptr, val);
19270         // debug statements here
19271 }
19272         // uint64_t ChannelDetails_get_next_outbound_htlc_limit_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19273 /* @internal */
19274 export function ChannelDetails_get_next_outbound_htlc_limit_msat(this_ptr: number): bigint {
19275         if(!isWasmInitialized) {
19276                 throw new Error("initializeWasm() must be awaited first!");
19277         }
19278         const nativeResponseValue = wasm.TS_ChannelDetails_get_next_outbound_htlc_limit_msat(this_ptr);
19279         return nativeResponseValue;
19280 }
19281         // void ChannelDetails_set_next_outbound_htlc_limit_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
19282 /* @internal */
19283 export function ChannelDetails_set_next_outbound_htlc_limit_msat(this_ptr: number, val: bigint): void {
19284         if(!isWasmInitialized) {
19285                 throw new Error("initializeWasm() must be awaited first!");
19286         }
19287         const nativeResponseValue = wasm.TS_ChannelDetails_set_next_outbound_htlc_limit_msat(this_ptr, val);
19288         // debug statements here
19289 }
19290         // uint64_t ChannelDetails_get_inbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19291 /* @internal */
19292 export function ChannelDetails_get_inbound_capacity_msat(this_ptr: number): bigint {
19293         if(!isWasmInitialized) {
19294                 throw new Error("initializeWasm() must be awaited first!");
19295         }
19296         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_capacity_msat(this_ptr);
19297         return nativeResponseValue;
19298 }
19299         // void ChannelDetails_set_inbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
19300 /* @internal */
19301 export function ChannelDetails_set_inbound_capacity_msat(this_ptr: number, val: bigint): void {
19302         if(!isWasmInitialized) {
19303                 throw new Error("initializeWasm() must be awaited first!");
19304         }
19305         const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_capacity_msat(this_ptr, val);
19306         // debug statements here
19307 }
19308         // struct LDKCOption_u32Z ChannelDetails_get_confirmations_required(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19309 /* @internal */
19310 export function ChannelDetails_get_confirmations_required(this_ptr: number): number {
19311         if(!isWasmInitialized) {
19312                 throw new Error("initializeWasm() must be awaited first!");
19313         }
19314         const nativeResponseValue = wasm.TS_ChannelDetails_get_confirmations_required(this_ptr);
19315         return nativeResponseValue;
19316 }
19317         // void ChannelDetails_set_confirmations_required(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
19318 /* @internal */
19319 export function ChannelDetails_set_confirmations_required(this_ptr: number, val: number): void {
19320         if(!isWasmInitialized) {
19321                 throw new Error("initializeWasm() must be awaited first!");
19322         }
19323         const nativeResponseValue = wasm.TS_ChannelDetails_set_confirmations_required(this_ptr, val);
19324         // debug statements here
19325 }
19326         // struct LDKCOption_u16Z ChannelDetails_get_force_close_spend_delay(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19327 /* @internal */
19328 export function ChannelDetails_get_force_close_spend_delay(this_ptr: number): number {
19329         if(!isWasmInitialized) {
19330                 throw new Error("initializeWasm() must be awaited first!");
19331         }
19332         const nativeResponseValue = wasm.TS_ChannelDetails_get_force_close_spend_delay(this_ptr);
19333         return nativeResponseValue;
19334 }
19335         // void ChannelDetails_set_force_close_spend_delay(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val);
19336 /* @internal */
19337 export function ChannelDetails_set_force_close_spend_delay(this_ptr: number, val: number): void {
19338         if(!isWasmInitialized) {
19339                 throw new Error("initializeWasm() must be awaited first!");
19340         }
19341         const nativeResponseValue = wasm.TS_ChannelDetails_set_force_close_spend_delay(this_ptr, val);
19342         // debug statements here
19343 }
19344         // bool ChannelDetails_get_is_outbound(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19345 /* @internal */
19346 export function ChannelDetails_get_is_outbound(this_ptr: number): boolean {
19347         if(!isWasmInitialized) {
19348                 throw new Error("initializeWasm() must be awaited first!");
19349         }
19350         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_outbound(this_ptr);
19351         return nativeResponseValue;
19352 }
19353         // void ChannelDetails_set_is_outbound(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
19354 /* @internal */
19355 export function ChannelDetails_set_is_outbound(this_ptr: number, val: boolean): void {
19356         if(!isWasmInitialized) {
19357                 throw new Error("initializeWasm() must be awaited first!");
19358         }
19359         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_outbound(this_ptr, val);
19360         // debug statements here
19361 }
19362         // bool ChannelDetails_get_is_channel_ready(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19363 /* @internal */
19364 export function ChannelDetails_get_is_channel_ready(this_ptr: number): boolean {
19365         if(!isWasmInitialized) {
19366                 throw new Error("initializeWasm() must be awaited first!");
19367         }
19368         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_channel_ready(this_ptr);
19369         return nativeResponseValue;
19370 }
19371         // void ChannelDetails_set_is_channel_ready(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
19372 /* @internal */
19373 export function ChannelDetails_set_is_channel_ready(this_ptr: number, val: boolean): void {
19374         if(!isWasmInitialized) {
19375                 throw new Error("initializeWasm() must be awaited first!");
19376         }
19377         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_channel_ready(this_ptr, val);
19378         // debug statements here
19379 }
19380         // bool ChannelDetails_get_is_usable(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19381 /* @internal */
19382 export function ChannelDetails_get_is_usable(this_ptr: number): boolean {
19383         if(!isWasmInitialized) {
19384                 throw new Error("initializeWasm() must be awaited first!");
19385         }
19386         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_usable(this_ptr);
19387         return nativeResponseValue;
19388 }
19389         // void ChannelDetails_set_is_usable(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
19390 /* @internal */
19391 export function ChannelDetails_set_is_usable(this_ptr: number, val: boolean): void {
19392         if(!isWasmInitialized) {
19393                 throw new Error("initializeWasm() must be awaited first!");
19394         }
19395         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_usable(this_ptr, val);
19396         // debug statements here
19397 }
19398         // bool ChannelDetails_get_is_public(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19399 /* @internal */
19400 export function ChannelDetails_get_is_public(this_ptr: number): boolean {
19401         if(!isWasmInitialized) {
19402                 throw new Error("initializeWasm() must be awaited first!");
19403         }
19404         const nativeResponseValue = wasm.TS_ChannelDetails_get_is_public(this_ptr);
19405         return nativeResponseValue;
19406 }
19407         // void ChannelDetails_set_is_public(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
19408 /* @internal */
19409 export function ChannelDetails_set_is_public(this_ptr: number, val: boolean): void {
19410         if(!isWasmInitialized) {
19411                 throw new Error("initializeWasm() must be awaited first!");
19412         }
19413         const nativeResponseValue = wasm.TS_ChannelDetails_set_is_public(this_ptr, val);
19414         // debug statements here
19415 }
19416         // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19417 /* @internal */
19418 export function ChannelDetails_get_inbound_htlc_minimum_msat(this_ptr: number): number {
19419         if(!isWasmInitialized) {
19420                 throw new Error("initializeWasm() must be awaited first!");
19421         }
19422         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_htlc_minimum_msat(this_ptr);
19423         return nativeResponseValue;
19424 }
19425         // void ChannelDetails_set_inbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
19426 /* @internal */
19427 export function ChannelDetails_set_inbound_htlc_minimum_msat(this_ptr: number, val: number): void {
19428         if(!isWasmInitialized) {
19429                 throw new Error("initializeWasm() must be awaited first!");
19430         }
19431         const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_htlc_minimum_msat(this_ptr, val);
19432         // debug statements here
19433 }
19434         // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_maximum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19435 /* @internal */
19436 export function ChannelDetails_get_inbound_htlc_maximum_msat(this_ptr: number): number {
19437         if(!isWasmInitialized) {
19438                 throw new Error("initializeWasm() must be awaited first!");
19439         }
19440         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_htlc_maximum_msat(this_ptr);
19441         return nativeResponseValue;
19442 }
19443         // void ChannelDetails_set_inbound_htlc_maximum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
19444 /* @internal */
19445 export function ChannelDetails_set_inbound_htlc_maximum_msat(this_ptr: number, val: number): void {
19446         if(!isWasmInitialized) {
19447                 throw new Error("initializeWasm() must be awaited first!");
19448         }
19449         const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_htlc_maximum_msat(this_ptr, val);
19450         // debug statements here
19451 }
19452         // struct LDKChannelConfig ChannelDetails_get_config(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
19453 /* @internal */
19454 export function ChannelDetails_get_config(this_ptr: number): number {
19455         if(!isWasmInitialized) {
19456                 throw new Error("initializeWasm() must be awaited first!");
19457         }
19458         const nativeResponseValue = wasm.TS_ChannelDetails_get_config(this_ptr);
19459         return nativeResponseValue;
19460 }
19461         // void ChannelDetails_set_config(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
19462 /* @internal */
19463 export function ChannelDetails_set_config(this_ptr: number, val: number): void {
19464         if(!isWasmInitialized) {
19465                 throw new Error("initializeWasm() must be awaited first!");
19466         }
19467         const nativeResponseValue = wasm.TS_ChannelDetails_set_config(this_ptr, val);
19468         // debug statements here
19469 }
19470         // 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 outbound_scid_alias_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 next_outbound_htlc_limit_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_channel_ready_arg, bool is_usable_arg, bool is_public_arg, struct LDKCOption_u64Z inbound_htlc_minimum_msat_arg, struct LDKCOption_u64Z inbound_htlc_maximum_msat_arg, struct LDKChannelConfig config_arg);
19471 /* @internal */
19472 export function ChannelDetails_new(channel_id_arg: number, counterparty_arg: number, funding_txo_arg: number, channel_type_arg: number, short_channel_id_arg: number, outbound_scid_alias_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, next_outbound_htlc_limit_msat_arg: bigint, inbound_capacity_msat_arg: bigint, confirmations_required_arg: number, force_close_spend_delay_arg: number, is_outbound_arg: boolean, is_channel_ready_arg: boolean, is_usable_arg: boolean, is_public_arg: boolean, inbound_htlc_minimum_msat_arg: number, inbound_htlc_maximum_msat_arg: number, config_arg: number): number {
19473         if(!isWasmInitialized) {
19474                 throw new Error("initializeWasm() must be awaited first!");
19475         }
19476         const nativeResponseValue = wasm.TS_ChannelDetails_new(channel_id_arg, counterparty_arg, funding_txo_arg, channel_type_arg, short_channel_id_arg, outbound_scid_alias_arg, inbound_scid_alias_arg, channel_value_satoshis_arg, unspendable_punishment_reserve_arg, user_channel_id_arg, balance_msat_arg, outbound_capacity_msat_arg, next_outbound_htlc_limit_msat_arg, inbound_capacity_msat_arg, confirmations_required_arg, force_close_spend_delay_arg, is_outbound_arg, is_channel_ready_arg, is_usable_arg, is_public_arg, inbound_htlc_minimum_msat_arg, inbound_htlc_maximum_msat_arg, config_arg);
19477         return nativeResponseValue;
19478 }
19479         // uintptr_t ChannelDetails_clone_ptr(LDKChannelDetails *NONNULL_PTR arg);
19480 /* @internal */
19481 export function ChannelDetails_clone_ptr(arg: number): number {
19482         if(!isWasmInitialized) {
19483                 throw new Error("initializeWasm() must be awaited first!");
19484         }
19485         const nativeResponseValue = wasm.TS_ChannelDetails_clone_ptr(arg);
19486         return nativeResponseValue;
19487 }
19488         // struct LDKChannelDetails ChannelDetails_clone(const struct LDKChannelDetails *NONNULL_PTR orig);
19489 /* @internal */
19490 export function ChannelDetails_clone(orig: number): number {
19491         if(!isWasmInitialized) {
19492                 throw new Error("initializeWasm() must be awaited first!");
19493         }
19494         const nativeResponseValue = wasm.TS_ChannelDetails_clone(orig);
19495         return nativeResponseValue;
19496 }
19497         // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_inbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
19498 /* @internal */
19499 export function ChannelDetails_get_inbound_payment_scid(this_arg: number): number {
19500         if(!isWasmInitialized) {
19501                 throw new Error("initializeWasm() must be awaited first!");
19502         }
19503         const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_payment_scid(this_arg);
19504         return nativeResponseValue;
19505 }
19506         // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_outbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
19507 /* @internal */
19508 export function ChannelDetails_get_outbound_payment_scid(this_arg: number): number {
19509         if(!isWasmInitialized) {
19510                 throw new Error("initializeWasm() must be awaited first!");
19511         }
19512         const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_payment_scid(this_arg);
19513         return nativeResponseValue;
19514 }
19515         // void PaymentSendFailure_free(struct LDKPaymentSendFailure this_ptr);
19516 /* @internal */
19517 export function PaymentSendFailure_free(this_ptr: number): void {
19518         if(!isWasmInitialized) {
19519                 throw new Error("initializeWasm() must be awaited first!");
19520         }
19521         const nativeResponseValue = wasm.TS_PaymentSendFailure_free(this_ptr);
19522         // debug statements here
19523 }
19524         // uintptr_t PaymentSendFailure_clone_ptr(LDKPaymentSendFailure *NONNULL_PTR arg);
19525 /* @internal */
19526 export function PaymentSendFailure_clone_ptr(arg: number): number {
19527         if(!isWasmInitialized) {
19528                 throw new Error("initializeWasm() must be awaited first!");
19529         }
19530         const nativeResponseValue = wasm.TS_PaymentSendFailure_clone_ptr(arg);
19531         return nativeResponseValue;
19532 }
19533         // struct LDKPaymentSendFailure PaymentSendFailure_clone(const struct LDKPaymentSendFailure *NONNULL_PTR orig);
19534 /* @internal */
19535 export function PaymentSendFailure_clone(orig: number): number {
19536         if(!isWasmInitialized) {
19537                 throw new Error("initializeWasm() must be awaited first!");
19538         }
19539         const nativeResponseValue = wasm.TS_PaymentSendFailure_clone(orig);
19540         return nativeResponseValue;
19541 }
19542         // struct LDKPaymentSendFailure PaymentSendFailure_parameter_error(struct LDKAPIError a);
19543 /* @internal */
19544 export function PaymentSendFailure_parameter_error(a: number): number {
19545         if(!isWasmInitialized) {
19546                 throw new Error("initializeWasm() must be awaited first!");
19547         }
19548         const nativeResponseValue = wasm.TS_PaymentSendFailure_parameter_error(a);
19549         return nativeResponseValue;
19550 }
19551         // struct LDKPaymentSendFailure PaymentSendFailure_path_parameter_error(struct LDKCVec_CResult_NoneAPIErrorZZ a);
19552 /* @internal */
19553 export function PaymentSendFailure_path_parameter_error(a: number): number {
19554         if(!isWasmInitialized) {
19555                 throw new Error("initializeWasm() must be awaited first!");
19556         }
19557         const nativeResponseValue = wasm.TS_PaymentSendFailure_path_parameter_error(a);
19558         return nativeResponseValue;
19559 }
19560         // struct LDKPaymentSendFailure PaymentSendFailure_all_failed_retry_safe(struct LDKCVec_APIErrorZ a);
19561 /* @internal */
19562 export function PaymentSendFailure_all_failed_retry_safe(a: number): number {
19563         if(!isWasmInitialized) {
19564                 throw new Error("initializeWasm() must be awaited first!");
19565         }
19566         const nativeResponseValue = wasm.TS_PaymentSendFailure_all_failed_retry_safe(a);
19567         return nativeResponseValue;
19568 }
19569         // struct LDKPaymentSendFailure PaymentSendFailure_partial_failure(struct LDKCVec_CResult_NoneAPIErrorZZ results, struct LDKRouteParameters failed_paths_retry, struct LDKThirtyTwoBytes payment_id);
19570 /* @internal */
19571 export function PaymentSendFailure_partial_failure(results: number, failed_paths_retry: number, payment_id: number): number {
19572         if(!isWasmInitialized) {
19573                 throw new Error("initializeWasm() must be awaited first!");
19574         }
19575         const nativeResponseValue = wasm.TS_PaymentSendFailure_partial_failure(results, failed_paths_retry, payment_id);
19576         return nativeResponseValue;
19577 }
19578         // void PhantomRouteHints_free(struct LDKPhantomRouteHints this_obj);
19579 /* @internal */
19580 export function PhantomRouteHints_free(this_obj: number): void {
19581         if(!isWasmInitialized) {
19582                 throw new Error("initializeWasm() must be awaited first!");
19583         }
19584         const nativeResponseValue = wasm.TS_PhantomRouteHints_free(this_obj);
19585         // debug statements here
19586 }
19587         // struct LDKCVec_ChannelDetailsZ PhantomRouteHints_get_channels(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
19588 /* @internal */
19589 export function PhantomRouteHints_get_channels(this_ptr: number): number {
19590         if(!isWasmInitialized) {
19591                 throw new Error("initializeWasm() must be awaited first!");
19592         }
19593         const nativeResponseValue = wasm.TS_PhantomRouteHints_get_channels(this_ptr);
19594         return nativeResponseValue;
19595 }
19596         // void PhantomRouteHints_set_channels(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKCVec_ChannelDetailsZ val);
19597 /* @internal */
19598 export function PhantomRouteHints_set_channels(this_ptr: number, val: number): void {
19599         if(!isWasmInitialized) {
19600                 throw new Error("initializeWasm() must be awaited first!");
19601         }
19602         const nativeResponseValue = wasm.TS_PhantomRouteHints_set_channels(this_ptr, val);
19603         // debug statements here
19604 }
19605         // uint64_t PhantomRouteHints_get_phantom_scid(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
19606 /* @internal */
19607 export function PhantomRouteHints_get_phantom_scid(this_ptr: number): bigint {
19608         if(!isWasmInitialized) {
19609                 throw new Error("initializeWasm() must be awaited first!");
19610         }
19611         const nativeResponseValue = wasm.TS_PhantomRouteHints_get_phantom_scid(this_ptr);
19612         return nativeResponseValue;
19613 }
19614         // void PhantomRouteHints_set_phantom_scid(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, uint64_t val);
19615 /* @internal */
19616 export function PhantomRouteHints_set_phantom_scid(this_ptr: number, val: bigint): void {
19617         if(!isWasmInitialized) {
19618                 throw new Error("initializeWasm() must be awaited first!");
19619         }
19620         const nativeResponseValue = wasm.TS_PhantomRouteHints_set_phantom_scid(this_ptr, val);
19621         // debug statements here
19622 }
19623         // struct LDKPublicKey PhantomRouteHints_get_real_node_pubkey(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
19624 /* @internal */
19625 export function PhantomRouteHints_get_real_node_pubkey(this_ptr: number): number {
19626         if(!isWasmInitialized) {
19627                 throw new Error("initializeWasm() must be awaited first!");
19628         }
19629         const nativeResponseValue = wasm.TS_PhantomRouteHints_get_real_node_pubkey(this_ptr);
19630         return nativeResponseValue;
19631 }
19632         // void PhantomRouteHints_set_real_node_pubkey(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKPublicKey val);
19633 /* @internal */
19634 export function PhantomRouteHints_set_real_node_pubkey(this_ptr: number, val: number): void {
19635         if(!isWasmInitialized) {
19636                 throw new Error("initializeWasm() must be awaited first!");
19637         }
19638         const nativeResponseValue = wasm.TS_PhantomRouteHints_set_real_node_pubkey(this_ptr, val);
19639         // debug statements here
19640 }
19641         // MUST_USE_RES struct LDKPhantomRouteHints PhantomRouteHints_new(struct LDKCVec_ChannelDetailsZ channels_arg, uint64_t phantom_scid_arg, struct LDKPublicKey real_node_pubkey_arg);
19642 /* @internal */
19643 export function PhantomRouteHints_new(channels_arg: number, phantom_scid_arg: bigint, real_node_pubkey_arg: number): number {
19644         if(!isWasmInitialized) {
19645                 throw new Error("initializeWasm() must be awaited first!");
19646         }
19647         const nativeResponseValue = wasm.TS_PhantomRouteHints_new(channels_arg, phantom_scid_arg, real_node_pubkey_arg);
19648         return nativeResponseValue;
19649 }
19650         // uintptr_t PhantomRouteHints_clone_ptr(LDKPhantomRouteHints *NONNULL_PTR arg);
19651 /* @internal */
19652 export function PhantomRouteHints_clone_ptr(arg: number): number {
19653         if(!isWasmInitialized) {
19654                 throw new Error("initializeWasm() must be awaited first!");
19655         }
19656         const nativeResponseValue = wasm.TS_PhantomRouteHints_clone_ptr(arg);
19657         return nativeResponseValue;
19658 }
19659         // struct LDKPhantomRouteHints PhantomRouteHints_clone(const struct LDKPhantomRouteHints *NONNULL_PTR orig);
19660 /* @internal */
19661 export function PhantomRouteHints_clone(orig: number): number {
19662         if(!isWasmInitialized) {
19663                 throw new Error("initializeWasm() must be awaited first!");
19664         }
19665         const nativeResponseValue = wasm.TS_PhantomRouteHints_clone(orig);
19666         return nativeResponseValue;
19667 }
19668         // 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);
19669 /* @internal */
19670 export function ChannelManager_new(fee_est: number, chain_monitor: number, tx_broadcaster: number, logger: number, keys_manager: number, config: number, params: number): number {
19671         if(!isWasmInitialized) {
19672                 throw new Error("initializeWasm() must be awaited first!");
19673         }
19674         const nativeResponseValue = wasm.TS_ChannelManager_new(fee_est, chain_monitor, tx_broadcaster, logger, keys_manager, config, params);
19675         return nativeResponseValue;
19676 }
19677         // MUST_USE_RES struct LDKUserConfig ChannelManager_get_current_default_configuration(const struct LDKChannelManager *NONNULL_PTR this_arg);
19678 /* @internal */
19679 export function ChannelManager_get_current_default_configuration(this_arg: number): number {
19680         if(!isWasmInitialized) {
19681                 throw new Error("initializeWasm() must be awaited first!");
19682         }
19683         const nativeResponseValue = wasm.TS_ChannelManager_get_current_default_configuration(this_arg);
19684         return nativeResponseValue;
19685 }
19686         // 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);
19687 /* @internal */
19688 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 {
19689         if(!isWasmInitialized) {
19690                 throw new Error("initializeWasm() must be awaited first!");
19691         }
19692         const nativeResponseValue = wasm.TS_ChannelManager_create_channel(this_arg, their_network_key, channel_value_satoshis, push_msat, user_channel_id, override_config);
19693         return nativeResponseValue;
19694 }
19695         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
19696 /* @internal */
19697 export function ChannelManager_list_channels(this_arg: number): number {
19698         if(!isWasmInitialized) {
19699                 throw new Error("initializeWasm() must be awaited first!");
19700         }
19701         const nativeResponseValue = wasm.TS_ChannelManager_list_channels(this_arg);
19702         return nativeResponseValue;
19703 }
19704         // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
19705 /* @internal */
19706 export function ChannelManager_list_usable_channels(this_arg: number): number {
19707         if(!isWasmInitialized) {
19708                 throw new Error("initializeWasm() must be awaited first!");
19709         }
19710         const nativeResponseValue = wasm.TS_ChannelManager_list_usable_channels(this_arg);
19711         return nativeResponseValue;
19712 }
19713         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id);
19714 /* @internal */
19715 export function ChannelManager_close_channel(this_arg: number, channel_id: number, counterparty_node_id: number): number {
19716         if(!isWasmInitialized) {
19717                 throw new Error("initializeWasm() must be awaited first!");
19718         }
19719         const nativeResponseValue = wasm.TS_ChannelManager_close_channel(this_arg, channel_id, counterparty_node_id);
19720         return nativeResponseValue;
19721 }
19722         // 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], struct LDKPublicKey counterparty_node_id, uint32_t target_feerate_sats_per_1000_weight);
19723 /* @internal */
19724 export function ChannelManager_close_channel_with_target_feerate(this_arg: number, channel_id: number, counterparty_node_id: number, target_feerate_sats_per_1000_weight: number): number {
19725         if(!isWasmInitialized) {
19726                 throw new Error("initializeWasm() must be awaited first!");
19727         }
19728         const nativeResponseValue = wasm.TS_ChannelManager_close_channel_with_target_feerate(this_arg, channel_id, counterparty_node_id, target_feerate_sats_per_1000_weight);
19729         return nativeResponseValue;
19730 }
19731         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id);
19732 /* @internal */
19733 export function ChannelManager_force_close_broadcasting_latest_txn(this_arg: number, channel_id: number, counterparty_node_id: number): number {
19734         if(!isWasmInitialized) {
19735                 throw new Error("initializeWasm() must be awaited first!");
19736         }
19737         const nativeResponseValue = wasm.TS_ChannelManager_force_close_broadcasting_latest_txn(this_arg, channel_id, counterparty_node_id);
19738         return nativeResponseValue;
19739 }
19740         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id);
19741 /* @internal */
19742 export function ChannelManager_force_close_without_broadcasting_txn(this_arg: number, channel_id: number, counterparty_node_id: number): number {
19743         if(!isWasmInitialized) {
19744                 throw new Error("initializeWasm() must be awaited first!");
19745         }
19746         const nativeResponseValue = wasm.TS_ChannelManager_force_close_without_broadcasting_txn(this_arg, channel_id, counterparty_node_id);
19747         return nativeResponseValue;
19748 }
19749         // void ChannelManager_force_close_all_channels_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
19750 /* @internal */
19751 export function ChannelManager_force_close_all_channels_broadcasting_latest_txn(this_arg: number): void {
19752         if(!isWasmInitialized) {
19753                 throw new Error("initializeWasm() must be awaited first!");
19754         }
19755         const nativeResponseValue = wasm.TS_ChannelManager_force_close_all_channels_broadcasting_latest_txn(this_arg);
19756         // debug statements here
19757 }
19758         // void ChannelManager_force_close_all_channels_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
19759 /* @internal */
19760 export function ChannelManager_force_close_all_channels_without_broadcasting_txn(this_arg: number): void {
19761         if(!isWasmInitialized) {
19762                 throw new Error("initializeWasm() must be awaited first!");
19763         }
19764         const nativeResponseValue = wasm.TS_ChannelManager_force_close_all_channels_without_broadcasting_txn(this_arg);
19765         // debug statements here
19766 }
19767         // 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);
19768 /* @internal */
19769 export function ChannelManager_send_payment(this_arg: number, route: number, payment_hash: number, payment_secret: number): number {
19770         if(!isWasmInitialized) {
19771                 throw new Error("initializeWasm() must be awaited first!");
19772         }
19773         const nativeResponseValue = wasm.TS_ChannelManager_send_payment(this_arg, route, payment_hash, payment_secret);
19774         return nativeResponseValue;
19775 }
19776         // 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);
19777 /* @internal */
19778 export function ChannelManager_retry_payment(this_arg: number, route: number, payment_id: number): number {
19779         if(!isWasmInitialized) {
19780                 throw new Error("initializeWasm() must be awaited first!");
19781         }
19782         const nativeResponseValue = wasm.TS_ChannelManager_retry_payment(this_arg, route, payment_id);
19783         return nativeResponseValue;
19784 }
19785         // void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id);
19786 /* @internal */
19787 export function ChannelManager_abandon_payment(this_arg: number, payment_id: number): void {
19788         if(!isWasmInitialized) {
19789                 throw new Error("initializeWasm() must be awaited first!");
19790         }
19791         const nativeResponseValue = wasm.TS_ChannelManager_abandon_payment(this_arg, payment_id);
19792         // debug statements here
19793 }
19794         // 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);
19795 /* @internal */
19796 export function ChannelManager_send_spontaneous_payment(this_arg: number, route: number, payment_preimage: number): number {
19797         if(!isWasmInitialized) {
19798                 throw new Error("initializeWasm() must be awaited first!");
19799         }
19800         const nativeResponseValue = wasm.TS_ChannelManager_send_spontaneous_payment(this_arg, route, payment_preimage);
19801         return nativeResponseValue;
19802 }
19803         // 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 LDKPublicKey counterparty_node_id, struct LDKTransaction funding_transaction);
19804 /* @internal */
19805 export function ChannelManager_funding_transaction_generated(this_arg: number, temporary_channel_id: number, counterparty_node_id: number, funding_transaction: number): number {
19806         if(!isWasmInitialized) {
19807                 throw new Error("initializeWasm() must be awaited first!");
19808         }
19809         const nativeResponseValue = wasm.TS_ChannelManager_funding_transaction_generated(this_arg, temporary_channel_id, counterparty_node_id, funding_transaction);
19810         return nativeResponseValue;
19811 }
19812         // void ChannelManager_broadcast_node_announcement(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_NetAddressZ addresses);
19813 /* @internal */
19814 export function ChannelManager_broadcast_node_announcement(this_arg: number, rgb: number, alias: number, addresses: number): void {
19815         if(!isWasmInitialized) {
19816                 throw new Error("initializeWasm() must be awaited first!");
19817         }
19818         const nativeResponseValue = wasm.TS_ChannelManager_broadcast_node_announcement(this_arg, rgb, alias, addresses);
19819         // debug statements here
19820 }
19821         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_update_channel_config(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id, struct LDKCVec_ThirtyTwoBytesZ channel_ids, const struct LDKChannelConfig *NONNULL_PTR config);
19822 /* @internal */
19823 export function ChannelManager_update_channel_config(this_arg: number, counterparty_node_id: number, channel_ids: number, config: number): number {
19824         if(!isWasmInitialized) {
19825                 throw new Error("initializeWasm() must be awaited first!");
19826         }
19827         const nativeResponseValue = wasm.TS_ChannelManager_update_channel_config(this_arg, counterparty_node_id, channel_ids, config);
19828         return nativeResponseValue;
19829 }
19830         // void ChannelManager_process_pending_htlc_forwards(const struct LDKChannelManager *NONNULL_PTR this_arg);
19831 /* @internal */
19832 export function ChannelManager_process_pending_htlc_forwards(this_arg: number): void {
19833         if(!isWasmInitialized) {
19834                 throw new Error("initializeWasm() must be awaited first!");
19835         }
19836         const nativeResponseValue = wasm.TS_ChannelManager_process_pending_htlc_forwards(this_arg);
19837         // debug statements here
19838 }
19839         // void ChannelManager_timer_tick_occurred(const struct LDKChannelManager *NONNULL_PTR this_arg);
19840 /* @internal */
19841 export function ChannelManager_timer_tick_occurred(this_arg: number): void {
19842         if(!isWasmInitialized) {
19843                 throw new Error("initializeWasm() must be awaited first!");
19844         }
19845         const nativeResponseValue = wasm.TS_ChannelManager_timer_tick_occurred(this_arg);
19846         // debug statements here
19847 }
19848         // void ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
19849 /* @internal */
19850 export function ChannelManager_fail_htlc_backwards(this_arg: number, payment_hash: number): void {
19851         if(!isWasmInitialized) {
19852                 throw new Error("initializeWasm() must be awaited first!");
19853         }
19854         const nativeResponseValue = wasm.TS_ChannelManager_fail_htlc_backwards(this_arg, payment_hash);
19855         // debug statements here
19856 }
19857         // void ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage);
19858 /* @internal */
19859 export function ChannelManager_claim_funds(this_arg: number, payment_preimage: number): void {
19860         if(!isWasmInitialized) {
19861                 throw new Error("initializeWasm() must be awaited first!");
19862         }
19863         const nativeResponseValue = wasm.TS_ChannelManager_claim_funds(this_arg, payment_preimage);
19864         // debug statements here
19865 }
19866         // MUST_USE_RES struct LDKPublicKey ChannelManager_get_our_node_id(const struct LDKChannelManager *NONNULL_PTR this_arg);
19867 /* @internal */
19868 export function ChannelManager_get_our_node_id(this_arg: number): number {
19869         if(!isWasmInitialized) {
19870                 throw new Error("initializeWasm() must be awaited first!");
19871         }
19872         const nativeResponseValue = wasm.TS_ChannelManager_get_our_node_id(this_arg);
19873         return nativeResponseValue;
19874 }
19875         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_accept_inbound_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKPublicKey counterparty_node_id, uint64_t user_channel_id);
19876 /* @internal */
19877 export function ChannelManager_accept_inbound_channel(this_arg: number, temporary_channel_id: number, counterparty_node_id: number, user_channel_id: bigint): number {
19878         if(!isWasmInitialized) {
19879                 throw new Error("initializeWasm() must be awaited first!");
19880         }
19881         const nativeResponseValue = wasm.TS_ChannelManager_accept_inbound_channel(this_arg, temporary_channel_id, counterparty_node_id, user_channel_id);
19882         return nativeResponseValue;
19883 }
19884         // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKPublicKey counterparty_node_id, uint64_t user_channel_id);
19885 /* @internal */
19886 export function ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(this_arg: number, temporary_channel_id: number, counterparty_node_id: number, user_channel_id: bigint): number {
19887         if(!isWasmInitialized) {
19888                 throw new Error("initializeWasm() must be awaited first!");
19889         }
19890         const nativeResponseValue = wasm.TS_ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(this_arg, temporary_channel_id, counterparty_node_id, user_channel_id);
19891         return nativeResponseValue;
19892 }
19893         // 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);
19894 /* @internal */
19895 export function ChannelManager_create_inbound_payment(this_arg: number, min_value_msat: number, invoice_expiry_delta_secs: number): number {
19896         if(!isWasmInitialized) {
19897                 throw new Error("initializeWasm() must be awaited first!");
19898         }
19899         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment(this_arg, min_value_msat, invoice_expiry_delta_secs);
19900         return nativeResponseValue;
19901 }
19902         // 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);
19903 /* @internal */
19904 export function ChannelManager_create_inbound_payment_legacy(this_arg: number, min_value_msat: number, invoice_expiry_delta_secs: number): number {
19905         if(!isWasmInitialized) {
19906                 throw new Error("initializeWasm() must be awaited first!");
19907         }
19908         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_legacy(this_arg, min_value_msat, invoice_expiry_delta_secs);
19909         return nativeResponseValue;
19910 }
19911         // 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);
19912 /* @internal */
19913 export function ChannelManager_create_inbound_payment_for_hash(this_arg: number, payment_hash: number, min_value_msat: number, invoice_expiry_delta_secs: number): number {
19914         if(!isWasmInitialized) {
19915                 throw new Error("initializeWasm() must be awaited first!");
19916         }
19917         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_for_hash(this_arg, payment_hash, min_value_msat, invoice_expiry_delta_secs);
19918         return nativeResponseValue;
19919 }
19920         // 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);
19921 /* @internal */
19922 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 {
19923         if(!isWasmInitialized) {
19924                 throw new Error("initializeWasm() must be awaited first!");
19925         }
19926         const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_for_hash_legacy(this_arg, payment_hash, min_value_msat, invoice_expiry_delta_secs);
19927         return nativeResponseValue;
19928 }
19929         // 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);
19930 /* @internal */
19931 export function ChannelManager_get_payment_preimage(this_arg: number, payment_hash: number, payment_secret: number): number {
19932         if(!isWasmInitialized) {
19933                 throw new Error("initializeWasm() must be awaited first!");
19934         }
19935         const nativeResponseValue = wasm.TS_ChannelManager_get_payment_preimage(this_arg, payment_hash, payment_secret);
19936         return nativeResponseValue;
19937 }
19938         // MUST_USE_RES uint64_t ChannelManager_get_phantom_scid(const struct LDKChannelManager *NONNULL_PTR this_arg);
19939 /* @internal */
19940 export function ChannelManager_get_phantom_scid(this_arg: number): bigint {
19941         if(!isWasmInitialized) {
19942                 throw new Error("initializeWasm() must be awaited first!");
19943         }
19944         const nativeResponseValue = wasm.TS_ChannelManager_get_phantom_scid(this_arg);
19945         return nativeResponseValue;
19946 }
19947         // MUST_USE_RES struct LDKPhantomRouteHints ChannelManager_get_phantom_route_hints(const struct LDKChannelManager *NONNULL_PTR this_arg);
19948 /* @internal */
19949 export function ChannelManager_get_phantom_route_hints(this_arg: number): number {
19950         if(!isWasmInitialized) {
19951                 throw new Error("initializeWasm() must be awaited first!");
19952         }
19953         const nativeResponseValue = wasm.TS_ChannelManager_get_phantom_route_hints(this_arg);
19954         return nativeResponseValue;
19955 }
19956         // struct LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
19957 /* @internal */
19958 export function ChannelManager_as_MessageSendEventsProvider(this_arg: number): number {
19959         if(!isWasmInitialized) {
19960                 throw new Error("initializeWasm() must be awaited first!");
19961         }
19962         const nativeResponseValue = wasm.TS_ChannelManager_as_MessageSendEventsProvider(this_arg);
19963         return nativeResponseValue;
19964 }
19965         // struct LDKEventsProvider ChannelManager_as_EventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
19966 /* @internal */
19967 export function ChannelManager_as_EventsProvider(this_arg: number): number {
19968         if(!isWasmInitialized) {
19969                 throw new Error("initializeWasm() must be awaited first!");
19970         }
19971         const nativeResponseValue = wasm.TS_ChannelManager_as_EventsProvider(this_arg);
19972         return nativeResponseValue;
19973 }
19974         // struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNULL_PTR this_arg);
19975 /* @internal */
19976 export function ChannelManager_as_Listen(this_arg: number): number {
19977         if(!isWasmInitialized) {
19978                 throw new Error("initializeWasm() must be awaited first!");
19979         }
19980         const nativeResponseValue = wasm.TS_ChannelManager_as_Listen(this_arg);
19981         return nativeResponseValue;
19982 }
19983         // struct LDKConfirm ChannelManager_as_Confirm(const struct LDKChannelManager *NONNULL_PTR this_arg);
19984 /* @internal */
19985 export function ChannelManager_as_Confirm(this_arg: number): number {
19986         if(!isWasmInitialized) {
19987                 throw new Error("initializeWasm() must be awaited first!");
19988         }
19989         const nativeResponseValue = wasm.TS_ChannelManager_as_Confirm(this_arg);
19990         return nativeResponseValue;
19991 }
19992         // void ChannelManager_await_persistable_update(const struct LDKChannelManager *NONNULL_PTR this_arg);
19993 /* @internal */
19994 export function ChannelManager_await_persistable_update(this_arg: number): void {
19995         if(!isWasmInitialized) {
19996                 throw new Error("initializeWasm() must be awaited first!");
19997         }
19998         const nativeResponseValue = wasm.TS_ChannelManager_await_persistable_update(this_arg);
19999         // debug statements here
20000 }
20001         // MUST_USE_RES struct LDKBestBlock ChannelManager_current_best_block(const struct LDKChannelManager *NONNULL_PTR this_arg);
20002 /* @internal */
20003 export function ChannelManager_current_best_block(this_arg: number): number {
20004         if(!isWasmInitialized) {
20005                 throw new Error("initializeWasm() must be awaited first!");
20006         }
20007         const nativeResponseValue = wasm.TS_ChannelManager_current_best_block(this_arg);
20008         return nativeResponseValue;
20009 }
20010         // struct LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg);
20011 /* @internal */
20012 export function ChannelManager_as_ChannelMessageHandler(this_arg: number): number {
20013         if(!isWasmInitialized) {
20014                 throw new Error("initializeWasm() must be awaited first!");
20015         }
20016         const nativeResponseValue = wasm.TS_ChannelManager_as_ChannelMessageHandler(this_arg);
20017         return nativeResponseValue;
20018 }
20019         // struct LDKCVec_u8Z CounterpartyForwardingInfo_write(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR obj);
20020 /* @internal */
20021 export function CounterpartyForwardingInfo_write(obj: number): number {
20022         if(!isWasmInitialized) {
20023                 throw new Error("initializeWasm() must be awaited first!");
20024         }
20025         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_write(obj);
20026         return nativeResponseValue;
20027 }
20028         // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CounterpartyForwardingInfo_read(struct LDKu8slice ser);
20029 /* @internal */
20030 export function CounterpartyForwardingInfo_read(ser: number): number {
20031         if(!isWasmInitialized) {
20032                 throw new Error("initializeWasm() must be awaited first!");
20033         }
20034         const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_read(ser);
20035         return nativeResponseValue;
20036 }
20037         // struct LDKCVec_u8Z ChannelCounterparty_write(const struct LDKChannelCounterparty *NONNULL_PTR obj);
20038 /* @internal */
20039 export function ChannelCounterparty_write(obj: number): number {
20040         if(!isWasmInitialized) {
20041                 throw new Error("initializeWasm() must be awaited first!");
20042         }
20043         const nativeResponseValue = wasm.TS_ChannelCounterparty_write(obj);
20044         return nativeResponseValue;
20045 }
20046         // struct LDKCResult_ChannelCounterpartyDecodeErrorZ ChannelCounterparty_read(struct LDKu8slice ser);
20047 /* @internal */
20048 export function ChannelCounterparty_read(ser: number): number {
20049         if(!isWasmInitialized) {
20050                 throw new Error("initializeWasm() must be awaited first!");
20051         }
20052         const nativeResponseValue = wasm.TS_ChannelCounterparty_read(ser);
20053         return nativeResponseValue;
20054 }
20055         // struct LDKCVec_u8Z ChannelDetails_write(const struct LDKChannelDetails *NONNULL_PTR obj);
20056 /* @internal */
20057 export function ChannelDetails_write(obj: number): number {
20058         if(!isWasmInitialized) {
20059                 throw new Error("initializeWasm() must be awaited first!");
20060         }
20061         const nativeResponseValue = wasm.TS_ChannelDetails_write(obj);
20062         return nativeResponseValue;
20063 }
20064         // struct LDKCResult_ChannelDetailsDecodeErrorZ ChannelDetails_read(struct LDKu8slice ser);
20065 /* @internal */
20066 export function ChannelDetails_read(ser: number): number {
20067         if(!isWasmInitialized) {
20068                 throw new Error("initializeWasm() must be awaited first!");
20069         }
20070         const nativeResponseValue = wasm.TS_ChannelDetails_read(ser);
20071         return nativeResponseValue;
20072 }
20073         // struct LDKCVec_u8Z PhantomRouteHints_write(const struct LDKPhantomRouteHints *NONNULL_PTR obj);
20074 /* @internal */
20075 export function PhantomRouteHints_write(obj: number): number {
20076         if(!isWasmInitialized) {
20077                 throw new Error("initializeWasm() must be awaited first!");
20078         }
20079         const nativeResponseValue = wasm.TS_PhantomRouteHints_write(obj);
20080         return nativeResponseValue;
20081 }
20082         // struct LDKCResult_PhantomRouteHintsDecodeErrorZ PhantomRouteHints_read(struct LDKu8slice ser);
20083 /* @internal */
20084 export function PhantomRouteHints_read(ser: number): number {
20085         if(!isWasmInitialized) {
20086                 throw new Error("initializeWasm() must be awaited first!");
20087         }
20088         const nativeResponseValue = wasm.TS_PhantomRouteHints_read(ser);
20089         return nativeResponseValue;
20090 }
20091         // struct LDKCVec_u8Z ChannelManager_write(const struct LDKChannelManager *NONNULL_PTR obj);
20092 /* @internal */
20093 export function ChannelManager_write(obj: number): number {
20094         if(!isWasmInitialized) {
20095                 throw new Error("initializeWasm() must be awaited first!");
20096         }
20097         const nativeResponseValue = wasm.TS_ChannelManager_write(obj);
20098         return nativeResponseValue;
20099 }
20100         // void ChannelManagerReadArgs_free(struct LDKChannelManagerReadArgs this_obj);
20101 /* @internal */
20102 export function ChannelManagerReadArgs_free(this_obj: number): void {
20103         if(!isWasmInitialized) {
20104                 throw new Error("initializeWasm() must be awaited first!");
20105         }
20106         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_free(this_obj);
20107         // debug statements here
20108 }
20109         // const struct LDKKeysInterface *ChannelManagerReadArgs_get_keys_manager(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
20110 /* @internal */
20111 export function ChannelManagerReadArgs_get_keys_manager(this_ptr: number): number {
20112         if(!isWasmInitialized) {
20113                 throw new Error("initializeWasm() must be awaited first!");
20114         }
20115         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_keys_manager(this_ptr);
20116         return nativeResponseValue;
20117 }
20118         // void ChannelManagerReadArgs_set_keys_manager(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKKeysInterface val);
20119 /* @internal */
20120 export function ChannelManagerReadArgs_set_keys_manager(this_ptr: number, val: number): void {
20121         if(!isWasmInitialized) {
20122                 throw new Error("initializeWasm() must be awaited first!");
20123         }
20124         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_keys_manager(this_ptr, val);
20125         // debug statements here
20126 }
20127         // const struct LDKFeeEstimator *ChannelManagerReadArgs_get_fee_estimator(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
20128 /* @internal */
20129 export function ChannelManagerReadArgs_get_fee_estimator(this_ptr: number): number {
20130         if(!isWasmInitialized) {
20131                 throw new Error("initializeWasm() must be awaited first!");
20132         }
20133         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_fee_estimator(this_ptr);
20134         return nativeResponseValue;
20135 }
20136         // void ChannelManagerReadArgs_set_fee_estimator(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKFeeEstimator val);
20137 /* @internal */
20138 export function ChannelManagerReadArgs_set_fee_estimator(this_ptr: number, val: number): void {
20139         if(!isWasmInitialized) {
20140                 throw new Error("initializeWasm() must be awaited first!");
20141         }
20142         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_fee_estimator(this_ptr, val);
20143         // debug statements here
20144 }
20145         // const struct LDKWatch *ChannelManagerReadArgs_get_chain_monitor(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
20146 /* @internal */
20147 export function ChannelManagerReadArgs_get_chain_monitor(this_ptr: number): number {
20148         if(!isWasmInitialized) {
20149                 throw new Error("initializeWasm() must be awaited first!");
20150         }
20151         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_chain_monitor(this_ptr);
20152         return nativeResponseValue;
20153 }
20154         // void ChannelManagerReadArgs_set_chain_monitor(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKWatch val);
20155 /* @internal */
20156 export function ChannelManagerReadArgs_set_chain_monitor(this_ptr: number, val: number): void {
20157         if(!isWasmInitialized) {
20158                 throw new Error("initializeWasm() must be awaited first!");
20159         }
20160         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_chain_monitor(this_ptr, val);
20161         // debug statements here
20162 }
20163         // const struct LDKBroadcasterInterface *ChannelManagerReadArgs_get_tx_broadcaster(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
20164 /* @internal */
20165 export function ChannelManagerReadArgs_get_tx_broadcaster(this_ptr: number): number {
20166         if(!isWasmInitialized) {
20167                 throw new Error("initializeWasm() must be awaited first!");
20168         }
20169         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_tx_broadcaster(this_ptr);
20170         return nativeResponseValue;
20171 }
20172         // void ChannelManagerReadArgs_set_tx_broadcaster(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKBroadcasterInterface val);
20173 /* @internal */
20174 export function ChannelManagerReadArgs_set_tx_broadcaster(this_ptr: number, val: number): void {
20175         if(!isWasmInitialized) {
20176                 throw new Error("initializeWasm() must be awaited first!");
20177         }
20178         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_tx_broadcaster(this_ptr, val);
20179         // debug statements here
20180 }
20181         // const struct LDKLogger *ChannelManagerReadArgs_get_logger(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
20182 /* @internal */
20183 export function ChannelManagerReadArgs_get_logger(this_ptr: number): number {
20184         if(!isWasmInitialized) {
20185                 throw new Error("initializeWasm() must be awaited first!");
20186         }
20187         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_logger(this_ptr);
20188         return nativeResponseValue;
20189 }
20190         // void ChannelManagerReadArgs_set_logger(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKLogger val);
20191 /* @internal */
20192 export function ChannelManagerReadArgs_set_logger(this_ptr: number, val: number): void {
20193         if(!isWasmInitialized) {
20194                 throw new Error("initializeWasm() must be awaited first!");
20195         }
20196         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_logger(this_ptr, val);
20197         // debug statements here
20198 }
20199         // struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
20200 /* @internal */
20201 export function ChannelManagerReadArgs_get_default_config(this_ptr: number): number {
20202         if(!isWasmInitialized) {
20203                 throw new Error("initializeWasm() must be awaited first!");
20204         }
20205         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_default_config(this_ptr);
20206         return nativeResponseValue;
20207 }
20208         // void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKUserConfig val);
20209 /* @internal */
20210 export function ChannelManagerReadArgs_set_default_config(this_ptr: number, val: number): void {
20211         if(!isWasmInitialized) {
20212                 throw new Error("initializeWasm() must be awaited first!");
20213         }
20214         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_default_config(this_ptr, val);
20215         // debug statements here
20216 }
20217         // 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);
20218 /* @internal */
20219 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 {
20220         if(!isWasmInitialized) {
20221                 throw new Error("initializeWasm() must be awaited first!");
20222         }
20223         const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_new(keys_manager, fee_estimator, chain_monitor, tx_broadcaster, logger, default_config, channel_monitors);
20224         return nativeResponseValue;
20225 }
20226         // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ C2Tuple_BlockHashChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg);
20227 /* @internal */
20228 export function C2Tuple_BlockHashChannelManagerZ_read(ser: number, arg: number): number {
20229         if(!isWasmInitialized) {
20230                 throw new Error("initializeWasm() must be awaited first!");
20231         }
20232         const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_read(ser, arg);
20233         return nativeResponseValue;
20234 }
20235         // void ExpandedKey_free(struct LDKExpandedKey this_obj);
20236 /* @internal */
20237 export function ExpandedKey_free(this_obj: number): void {
20238         if(!isWasmInitialized) {
20239                 throw new Error("initializeWasm() must be awaited first!");
20240         }
20241         const nativeResponseValue = wasm.TS_ExpandedKey_free(this_obj);
20242         // debug statements here
20243 }
20244         // MUST_USE_RES struct LDKExpandedKey ExpandedKey_new(const uint8_t (*key_material)[32]);
20245 /* @internal */
20246 export function ExpandedKey_new(key_material: number): number {
20247         if(!isWasmInitialized) {
20248                 throw new Error("initializeWasm() must be awaited first!");
20249         }
20250         const nativeResponseValue = wasm.TS_ExpandedKey_new(key_material);
20251         return nativeResponseValue;
20252 }
20253         // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ create(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, const struct LDKKeysInterface *NONNULL_PTR keys_manager, uint64_t current_time);
20254 /* @internal */
20255 export function create(keys: number, min_value_msat: number, invoice_expiry_delta_secs: number, keys_manager: number, current_time: bigint): number {
20256         if(!isWasmInitialized) {
20257                 throw new Error("initializeWasm() must be awaited first!");
20258         }
20259         const nativeResponseValue = wasm.TS_create(keys, min_value_msat, invoice_expiry_delta_secs, keys_manager, current_time);
20260         return nativeResponseValue;
20261 }
20262         // struct LDKCResult_PaymentSecretNoneZ create_from_hash(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, struct LDKThirtyTwoBytes payment_hash, uint32_t invoice_expiry_delta_secs, uint64_t current_time);
20263 /* @internal */
20264 export function create_from_hash(keys: number, min_value_msat: number, payment_hash: number, invoice_expiry_delta_secs: number, current_time: bigint): number {
20265         if(!isWasmInitialized) {
20266                 throw new Error("initializeWasm() must be awaited first!");
20267         }
20268         const nativeResponseValue = wasm.TS_create_from_hash(keys, min_value_msat, payment_hash, invoice_expiry_delta_secs, current_time);
20269         return nativeResponseValue;
20270 }
20271         // void DecodeError_free(struct LDKDecodeError this_obj);
20272 /* @internal */
20273 export function DecodeError_free(this_obj: number): void {
20274         if(!isWasmInitialized) {
20275                 throw new Error("initializeWasm() must be awaited first!");
20276         }
20277         const nativeResponseValue = wasm.TS_DecodeError_free(this_obj);
20278         // debug statements here
20279 }
20280         // uintptr_t DecodeError_clone_ptr(LDKDecodeError *NONNULL_PTR arg);
20281 /* @internal */
20282 export function DecodeError_clone_ptr(arg: number): number {
20283         if(!isWasmInitialized) {
20284                 throw new Error("initializeWasm() must be awaited first!");
20285         }
20286         const nativeResponseValue = wasm.TS_DecodeError_clone_ptr(arg);
20287         return nativeResponseValue;
20288 }
20289         // struct LDKDecodeError DecodeError_clone(const struct LDKDecodeError *NONNULL_PTR orig);
20290 /* @internal */
20291 export function DecodeError_clone(orig: number): number {
20292         if(!isWasmInitialized) {
20293                 throw new Error("initializeWasm() must be awaited first!");
20294         }
20295         const nativeResponseValue = wasm.TS_DecodeError_clone(orig);
20296         return nativeResponseValue;
20297 }
20298         // void Init_free(struct LDKInit this_obj);
20299 /* @internal */
20300 export function Init_free(this_obj: number): void {
20301         if(!isWasmInitialized) {
20302                 throw new Error("initializeWasm() must be awaited first!");
20303         }
20304         const nativeResponseValue = wasm.TS_Init_free(this_obj);
20305         // debug statements here
20306 }
20307         // struct LDKInitFeatures Init_get_features(const struct LDKInit *NONNULL_PTR this_ptr);
20308 /* @internal */
20309 export function Init_get_features(this_ptr: number): number {
20310         if(!isWasmInitialized) {
20311                 throw new Error("initializeWasm() must be awaited first!");
20312         }
20313         const nativeResponseValue = wasm.TS_Init_get_features(this_ptr);
20314         return nativeResponseValue;
20315 }
20316         // void Init_set_features(struct LDKInit *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
20317 /* @internal */
20318 export function Init_set_features(this_ptr: number, val: number): void {
20319         if(!isWasmInitialized) {
20320                 throw new Error("initializeWasm() must be awaited first!");
20321         }
20322         const nativeResponseValue = wasm.TS_Init_set_features(this_ptr, val);
20323         // debug statements here
20324 }
20325         // struct LDKCOption_NetAddressZ Init_get_remote_network_address(const struct LDKInit *NONNULL_PTR this_ptr);
20326 /* @internal */
20327 export function Init_get_remote_network_address(this_ptr: number): number {
20328         if(!isWasmInitialized) {
20329                 throw new Error("initializeWasm() must be awaited first!");
20330         }
20331         const nativeResponseValue = wasm.TS_Init_get_remote_network_address(this_ptr);
20332         return nativeResponseValue;
20333 }
20334         // void Init_set_remote_network_address(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_NetAddressZ val);
20335 /* @internal */
20336 export function Init_set_remote_network_address(this_ptr: number, val: number): void {
20337         if(!isWasmInitialized) {
20338                 throw new Error("initializeWasm() must be awaited first!");
20339         }
20340         const nativeResponseValue = wasm.TS_Init_set_remote_network_address(this_ptr, val);
20341         // debug statements here
20342 }
20343         // MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg, struct LDKCOption_NetAddressZ remote_network_address_arg);
20344 /* @internal */
20345 export function Init_new(features_arg: number, remote_network_address_arg: number): number {
20346         if(!isWasmInitialized) {
20347                 throw new Error("initializeWasm() must be awaited first!");
20348         }
20349         const nativeResponseValue = wasm.TS_Init_new(features_arg, remote_network_address_arg);
20350         return nativeResponseValue;
20351 }
20352         // uintptr_t Init_clone_ptr(LDKInit *NONNULL_PTR arg);
20353 /* @internal */
20354 export function Init_clone_ptr(arg: number): number {
20355         if(!isWasmInitialized) {
20356                 throw new Error("initializeWasm() must be awaited first!");
20357         }
20358         const nativeResponseValue = wasm.TS_Init_clone_ptr(arg);
20359         return nativeResponseValue;
20360 }
20361         // struct LDKInit Init_clone(const struct LDKInit *NONNULL_PTR orig);
20362 /* @internal */
20363 export function Init_clone(orig: number): number {
20364         if(!isWasmInitialized) {
20365                 throw new Error("initializeWasm() must be awaited first!");
20366         }
20367         const nativeResponseValue = wasm.TS_Init_clone(orig);
20368         return nativeResponseValue;
20369 }
20370         // void ErrorMessage_free(struct LDKErrorMessage this_obj);
20371 /* @internal */
20372 export function ErrorMessage_free(this_obj: number): void {
20373         if(!isWasmInitialized) {
20374                 throw new Error("initializeWasm() must be awaited first!");
20375         }
20376         const nativeResponseValue = wasm.TS_ErrorMessage_free(this_obj);
20377         // debug statements here
20378 }
20379         // const uint8_t (*ErrorMessage_get_channel_id(const struct LDKErrorMessage *NONNULL_PTR this_ptr))[32];
20380 /* @internal */
20381 export function ErrorMessage_get_channel_id(this_ptr: number): number {
20382         if(!isWasmInitialized) {
20383                 throw new Error("initializeWasm() must be awaited first!");
20384         }
20385         const nativeResponseValue = wasm.TS_ErrorMessage_get_channel_id(this_ptr);
20386         return nativeResponseValue;
20387 }
20388         // void ErrorMessage_set_channel_id(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20389 /* @internal */
20390 export function ErrorMessage_set_channel_id(this_ptr: number, val: number): void {
20391         if(!isWasmInitialized) {
20392                 throw new Error("initializeWasm() must be awaited first!");
20393         }
20394         const nativeResponseValue = wasm.TS_ErrorMessage_set_channel_id(this_ptr, val);
20395         // debug statements here
20396 }
20397         // struct LDKStr ErrorMessage_get_data(const struct LDKErrorMessage *NONNULL_PTR this_ptr);
20398 /* @internal */
20399 export function ErrorMessage_get_data(this_ptr: number): number {
20400         if(!isWasmInitialized) {
20401                 throw new Error("initializeWasm() must be awaited first!");
20402         }
20403         const nativeResponseValue = wasm.TS_ErrorMessage_get_data(this_ptr);
20404         return nativeResponseValue;
20405 }
20406         // void ErrorMessage_set_data(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKStr val);
20407 /* @internal */
20408 export function ErrorMessage_set_data(this_ptr: number, val: number): void {
20409         if(!isWasmInitialized) {
20410                 throw new Error("initializeWasm() must be awaited first!");
20411         }
20412         const nativeResponseValue = wasm.TS_ErrorMessage_set_data(this_ptr, val);
20413         // debug statements here
20414 }
20415         // MUST_USE_RES struct LDKErrorMessage ErrorMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
20416 /* @internal */
20417 export function ErrorMessage_new(channel_id_arg: number, data_arg: number): number {
20418         if(!isWasmInitialized) {
20419                 throw new Error("initializeWasm() must be awaited first!");
20420         }
20421         const nativeResponseValue = wasm.TS_ErrorMessage_new(channel_id_arg, data_arg);
20422         return nativeResponseValue;
20423 }
20424         // uintptr_t ErrorMessage_clone_ptr(LDKErrorMessage *NONNULL_PTR arg);
20425 /* @internal */
20426 export function ErrorMessage_clone_ptr(arg: number): number {
20427         if(!isWasmInitialized) {
20428                 throw new Error("initializeWasm() must be awaited first!");
20429         }
20430         const nativeResponseValue = wasm.TS_ErrorMessage_clone_ptr(arg);
20431         return nativeResponseValue;
20432 }
20433         // struct LDKErrorMessage ErrorMessage_clone(const struct LDKErrorMessage *NONNULL_PTR orig);
20434 /* @internal */
20435 export function ErrorMessage_clone(orig: number): number {
20436         if(!isWasmInitialized) {
20437                 throw new Error("initializeWasm() must be awaited first!");
20438         }
20439         const nativeResponseValue = wasm.TS_ErrorMessage_clone(orig);
20440         return nativeResponseValue;
20441 }
20442         // void WarningMessage_free(struct LDKWarningMessage this_obj);
20443 /* @internal */
20444 export function WarningMessage_free(this_obj: number): void {
20445         if(!isWasmInitialized) {
20446                 throw new Error("initializeWasm() must be awaited first!");
20447         }
20448         const nativeResponseValue = wasm.TS_WarningMessage_free(this_obj);
20449         // debug statements here
20450 }
20451         // const uint8_t (*WarningMessage_get_channel_id(const struct LDKWarningMessage *NONNULL_PTR this_ptr))[32];
20452 /* @internal */
20453 export function WarningMessage_get_channel_id(this_ptr: number): number {
20454         if(!isWasmInitialized) {
20455                 throw new Error("initializeWasm() must be awaited first!");
20456         }
20457         const nativeResponseValue = wasm.TS_WarningMessage_get_channel_id(this_ptr);
20458         return nativeResponseValue;
20459 }
20460         // void WarningMessage_set_channel_id(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20461 /* @internal */
20462 export function WarningMessage_set_channel_id(this_ptr: number, val: number): void {
20463         if(!isWasmInitialized) {
20464                 throw new Error("initializeWasm() must be awaited first!");
20465         }
20466         const nativeResponseValue = wasm.TS_WarningMessage_set_channel_id(this_ptr, val);
20467         // debug statements here
20468 }
20469         // struct LDKStr WarningMessage_get_data(const struct LDKWarningMessage *NONNULL_PTR this_ptr);
20470 /* @internal */
20471 export function WarningMessage_get_data(this_ptr: number): number {
20472         if(!isWasmInitialized) {
20473                 throw new Error("initializeWasm() must be awaited first!");
20474         }
20475         const nativeResponseValue = wasm.TS_WarningMessage_get_data(this_ptr);
20476         return nativeResponseValue;
20477 }
20478         // void WarningMessage_set_data(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKStr val);
20479 /* @internal */
20480 export function WarningMessage_set_data(this_ptr: number, val: number): void {
20481         if(!isWasmInitialized) {
20482                 throw new Error("initializeWasm() must be awaited first!");
20483         }
20484         const nativeResponseValue = wasm.TS_WarningMessage_set_data(this_ptr, val);
20485         // debug statements here
20486 }
20487         // MUST_USE_RES struct LDKWarningMessage WarningMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
20488 /* @internal */
20489 export function WarningMessage_new(channel_id_arg: number, data_arg: number): number {
20490         if(!isWasmInitialized) {
20491                 throw new Error("initializeWasm() must be awaited first!");
20492         }
20493         const nativeResponseValue = wasm.TS_WarningMessage_new(channel_id_arg, data_arg);
20494         return nativeResponseValue;
20495 }
20496         // uintptr_t WarningMessage_clone_ptr(LDKWarningMessage *NONNULL_PTR arg);
20497 /* @internal */
20498 export function WarningMessage_clone_ptr(arg: number): number {
20499         if(!isWasmInitialized) {
20500                 throw new Error("initializeWasm() must be awaited first!");
20501         }
20502         const nativeResponseValue = wasm.TS_WarningMessage_clone_ptr(arg);
20503         return nativeResponseValue;
20504 }
20505         // struct LDKWarningMessage WarningMessage_clone(const struct LDKWarningMessage *NONNULL_PTR orig);
20506 /* @internal */
20507 export function WarningMessage_clone(orig: number): number {
20508         if(!isWasmInitialized) {
20509                 throw new Error("initializeWasm() must be awaited first!");
20510         }
20511         const nativeResponseValue = wasm.TS_WarningMessage_clone(orig);
20512         return nativeResponseValue;
20513 }
20514         // void Ping_free(struct LDKPing this_obj);
20515 /* @internal */
20516 export function Ping_free(this_obj: number): void {
20517         if(!isWasmInitialized) {
20518                 throw new Error("initializeWasm() must be awaited first!");
20519         }
20520         const nativeResponseValue = wasm.TS_Ping_free(this_obj);
20521         // debug statements here
20522 }
20523         // uint16_t Ping_get_ponglen(const struct LDKPing *NONNULL_PTR this_ptr);
20524 /* @internal */
20525 export function Ping_get_ponglen(this_ptr: number): number {
20526         if(!isWasmInitialized) {
20527                 throw new Error("initializeWasm() must be awaited first!");
20528         }
20529         const nativeResponseValue = wasm.TS_Ping_get_ponglen(this_ptr);
20530         return nativeResponseValue;
20531 }
20532         // void Ping_set_ponglen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
20533 /* @internal */
20534 export function Ping_set_ponglen(this_ptr: number, val: number): void {
20535         if(!isWasmInitialized) {
20536                 throw new Error("initializeWasm() must be awaited first!");
20537         }
20538         const nativeResponseValue = wasm.TS_Ping_set_ponglen(this_ptr, val);
20539         // debug statements here
20540 }
20541         // uint16_t Ping_get_byteslen(const struct LDKPing *NONNULL_PTR this_ptr);
20542 /* @internal */
20543 export function Ping_get_byteslen(this_ptr: number): number {
20544         if(!isWasmInitialized) {
20545                 throw new Error("initializeWasm() must be awaited first!");
20546         }
20547         const nativeResponseValue = wasm.TS_Ping_get_byteslen(this_ptr);
20548         return nativeResponseValue;
20549 }
20550         // void Ping_set_byteslen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
20551 /* @internal */
20552 export function Ping_set_byteslen(this_ptr: number, val: number): void {
20553         if(!isWasmInitialized) {
20554                 throw new Error("initializeWasm() must be awaited first!");
20555         }
20556         const nativeResponseValue = wasm.TS_Ping_set_byteslen(this_ptr, val);
20557         // debug statements here
20558 }
20559         // MUST_USE_RES struct LDKPing Ping_new(uint16_t ponglen_arg, uint16_t byteslen_arg);
20560 /* @internal */
20561 export function Ping_new(ponglen_arg: number, byteslen_arg: number): number {
20562         if(!isWasmInitialized) {
20563                 throw new Error("initializeWasm() must be awaited first!");
20564         }
20565         const nativeResponseValue = wasm.TS_Ping_new(ponglen_arg, byteslen_arg);
20566         return nativeResponseValue;
20567 }
20568         // uintptr_t Ping_clone_ptr(LDKPing *NONNULL_PTR arg);
20569 /* @internal */
20570 export function Ping_clone_ptr(arg: number): number {
20571         if(!isWasmInitialized) {
20572                 throw new Error("initializeWasm() must be awaited first!");
20573         }
20574         const nativeResponseValue = wasm.TS_Ping_clone_ptr(arg);
20575         return nativeResponseValue;
20576 }
20577         // struct LDKPing Ping_clone(const struct LDKPing *NONNULL_PTR orig);
20578 /* @internal */
20579 export function Ping_clone(orig: number): number {
20580         if(!isWasmInitialized) {
20581                 throw new Error("initializeWasm() must be awaited first!");
20582         }
20583         const nativeResponseValue = wasm.TS_Ping_clone(orig);
20584         return nativeResponseValue;
20585 }
20586         // void Pong_free(struct LDKPong this_obj);
20587 /* @internal */
20588 export function Pong_free(this_obj: number): void {
20589         if(!isWasmInitialized) {
20590                 throw new Error("initializeWasm() must be awaited first!");
20591         }
20592         const nativeResponseValue = wasm.TS_Pong_free(this_obj);
20593         // debug statements here
20594 }
20595         // uint16_t Pong_get_byteslen(const struct LDKPong *NONNULL_PTR this_ptr);
20596 /* @internal */
20597 export function Pong_get_byteslen(this_ptr: number): number {
20598         if(!isWasmInitialized) {
20599                 throw new Error("initializeWasm() must be awaited first!");
20600         }
20601         const nativeResponseValue = wasm.TS_Pong_get_byteslen(this_ptr);
20602         return nativeResponseValue;
20603 }
20604         // void Pong_set_byteslen(struct LDKPong *NONNULL_PTR this_ptr, uint16_t val);
20605 /* @internal */
20606 export function Pong_set_byteslen(this_ptr: number, val: number): void {
20607         if(!isWasmInitialized) {
20608                 throw new Error("initializeWasm() must be awaited first!");
20609         }
20610         const nativeResponseValue = wasm.TS_Pong_set_byteslen(this_ptr, val);
20611         // debug statements here
20612 }
20613         // MUST_USE_RES struct LDKPong Pong_new(uint16_t byteslen_arg);
20614 /* @internal */
20615 export function Pong_new(byteslen_arg: number): number {
20616         if(!isWasmInitialized) {
20617                 throw new Error("initializeWasm() must be awaited first!");
20618         }
20619         const nativeResponseValue = wasm.TS_Pong_new(byteslen_arg);
20620         return nativeResponseValue;
20621 }
20622         // uintptr_t Pong_clone_ptr(LDKPong *NONNULL_PTR arg);
20623 /* @internal */
20624 export function Pong_clone_ptr(arg: number): number {
20625         if(!isWasmInitialized) {
20626                 throw new Error("initializeWasm() must be awaited first!");
20627         }
20628         const nativeResponseValue = wasm.TS_Pong_clone_ptr(arg);
20629         return nativeResponseValue;
20630 }
20631         // struct LDKPong Pong_clone(const struct LDKPong *NONNULL_PTR orig);
20632 /* @internal */
20633 export function Pong_clone(orig: number): number {
20634         if(!isWasmInitialized) {
20635                 throw new Error("initializeWasm() must be awaited first!");
20636         }
20637         const nativeResponseValue = wasm.TS_Pong_clone(orig);
20638         return nativeResponseValue;
20639 }
20640         // void OpenChannel_free(struct LDKOpenChannel this_obj);
20641 /* @internal */
20642 export function OpenChannel_free(this_obj: number): void {
20643         if(!isWasmInitialized) {
20644                 throw new Error("initializeWasm() must be awaited first!");
20645         }
20646         const nativeResponseValue = wasm.TS_OpenChannel_free(this_obj);
20647         // debug statements here
20648 }
20649         // const uint8_t (*OpenChannel_get_chain_hash(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
20650 /* @internal */
20651 export function OpenChannel_get_chain_hash(this_ptr: number): number {
20652         if(!isWasmInitialized) {
20653                 throw new Error("initializeWasm() must be awaited first!");
20654         }
20655         const nativeResponseValue = wasm.TS_OpenChannel_get_chain_hash(this_ptr);
20656         return nativeResponseValue;
20657 }
20658         // void OpenChannel_set_chain_hash(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20659 /* @internal */
20660 export function OpenChannel_set_chain_hash(this_ptr: number, val: number): void {
20661         if(!isWasmInitialized) {
20662                 throw new Error("initializeWasm() must be awaited first!");
20663         }
20664         const nativeResponseValue = wasm.TS_OpenChannel_set_chain_hash(this_ptr, val);
20665         // debug statements here
20666 }
20667         // const uint8_t (*OpenChannel_get_temporary_channel_id(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
20668 /* @internal */
20669 export function OpenChannel_get_temporary_channel_id(this_ptr: number): number {
20670         if(!isWasmInitialized) {
20671                 throw new Error("initializeWasm() must be awaited first!");
20672         }
20673         const nativeResponseValue = wasm.TS_OpenChannel_get_temporary_channel_id(this_ptr);
20674         return nativeResponseValue;
20675 }
20676         // void OpenChannel_set_temporary_channel_id(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20677 /* @internal */
20678 export function OpenChannel_set_temporary_channel_id(this_ptr: number, val: number): void {
20679         if(!isWasmInitialized) {
20680                 throw new Error("initializeWasm() must be awaited first!");
20681         }
20682         const nativeResponseValue = wasm.TS_OpenChannel_set_temporary_channel_id(this_ptr, val);
20683         // debug statements here
20684 }
20685         // uint64_t OpenChannel_get_funding_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20686 /* @internal */
20687 export function OpenChannel_get_funding_satoshis(this_ptr: number): bigint {
20688         if(!isWasmInitialized) {
20689                 throw new Error("initializeWasm() must be awaited first!");
20690         }
20691         const nativeResponseValue = wasm.TS_OpenChannel_get_funding_satoshis(this_ptr);
20692         return nativeResponseValue;
20693 }
20694         // void OpenChannel_set_funding_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
20695 /* @internal */
20696 export function OpenChannel_set_funding_satoshis(this_ptr: number, val: bigint): void {
20697         if(!isWasmInitialized) {
20698                 throw new Error("initializeWasm() must be awaited first!");
20699         }
20700         const nativeResponseValue = wasm.TS_OpenChannel_set_funding_satoshis(this_ptr, val);
20701         // debug statements here
20702 }
20703         // uint64_t OpenChannel_get_push_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20704 /* @internal */
20705 export function OpenChannel_get_push_msat(this_ptr: number): bigint {
20706         if(!isWasmInitialized) {
20707                 throw new Error("initializeWasm() must be awaited first!");
20708         }
20709         const nativeResponseValue = wasm.TS_OpenChannel_get_push_msat(this_ptr);
20710         return nativeResponseValue;
20711 }
20712         // void OpenChannel_set_push_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
20713 /* @internal */
20714 export function OpenChannel_set_push_msat(this_ptr: number, val: bigint): void {
20715         if(!isWasmInitialized) {
20716                 throw new Error("initializeWasm() must be awaited first!");
20717         }
20718         const nativeResponseValue = wasm.TS_OpenChannel_set_push_msat(this_ptr, val);
20719         // debug statements here
20720 }
20721         // uint64_t OpenChannel_get_dust_limit_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20722 /* @internal */
20723 export function OpenChannel_get_dust_limit_satoshis(this_ptr: number): bigint {
20724         if(!isWasmInitialized) {
20725                 throw new Error("initializeWasm() must be awaited first!");
20726         }
20727         const nativeResponseValue = wasm.TS_OpenChannel_get_dust_limit_satoshis(this_ptr);
20728         return nativeResponseValue;
20729 }
20730         // void OpenChannel_set_dust_limit_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
20731 /* @internal */
20732 export function OpenChannel_set_dust_limit_satoshis(this_ptr: number, val: bigint): void {
20733         if(!isWasmInitialized) {
20734                 throw new Error("initializeWasm() must be awaited first!");
20735         }
20736         const nativeResponseValue = wasm.TS_OpenChannel_set_dust_limit_satoshis(this_ptr, val);
20737         // debug statements here
20738 }
20739         // uint64_t OpenChannel_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20740 /* @internal */
20741 export function OpenChannel_get_max_htlc_value_in_flight_msat(this_ptr: number): bigint {
20742         if(!isWasmInitialized) {
20743                 throw new Error("initializeWasm() must be awaited first!");
20744         }
20745         const nativeResponseValue = wasm.TS_OpenChannel_get_max_htlc_value_in_flight_msat(this_ptr);
20746         return nativeResponseValue;
20747 }
20748         // void OpenChannel_set_max_htlc_value_in_flight_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
20749 /* @internal */
20750 export function OpenChannel_set_max_htlc_value_in_flight_msat(this_ptr: number, val: bigint): void {
20751         if(!isWasmInitialized) {
20752                 throw new Error("initializeWasm() must be awaited first!");
20753         }
20754         const nativeResponseValue = wasm.TS_OpenChannel_set_max_htlc_value_in_flight_msat(this_ptr, val);
20755         // debug statements here
20756 }
20757         // uint64_t OpenChannel_get_channel_reserve_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20758 /* @internal */
20759 export function OpenChannel_get_channel_reserve_satoshis(this_ptr: number): bigint {
20760         if(!isWasmInitialized) {
20761                 throw new Error("initializeWasm() must be awaited first!");
20762         }
20763         const nativeResponseValue = wasm.TS_OpenChannel_get_channel_reserve_satoshis(this_ptr);
20764         return nativeResponseValue;
20765 }
20766         // void OpenChannel_set_channel_reserve_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
20767 /* @internal */
20768 export function OpenChannel_set_channel_reserve_satoshis(this_ptr: number, val: bigint): void {
20769         if(!isWasmInitialized) {
20770                 throw new Error("initializeWasm() must be awaited first!");
20771         }
20772         const nativeResponseValue = wasm.TS_OpenChannel_set_channel_reserve_satoshis(this_ptr, val);
20773         // debug statements here
20774 }
20775         // uint64_t OpenChannel_get_htlc_minimum_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20776 /* @internal */
20777 export function OpenChannel_get_htlc_minimum_msat(this_ptr: number): bigint {
20778         if(!isWasmInitialized) {
20779                 throw new Error("initializeWasm() must be awaited first!");
20780         }
20781         const nativeResponseValue = wasm.TS_OpenChannel_get_htlc_minimum_msat(this_ptr);
20782         return nativeResponseValue;
20783 }
20784         // void OpenChannel_set_htlc_minimum_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
20785 /* @internal */
20786 export function OpenChannel_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
20787         if(!isWasmInitialized) {
20788                 throw new Error("initializeWasm() must be awaited first!");
20789         }
20790         const nativeResponseValue = wasm.TS_OpenChannel_set_htlc_minimum_msat(this_ptr, val);
20791         // debug statements here
20792 }
20793         // uint32_t OpenChannel_get_feerate_per_kw(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20794 /* @internal */
20795 export function OpenChannel_get_feerate_per_kw(this_ptr: number): number {
20796         if(!isWasmInitialized) {
20797                 throw new Error("initializeWasm() must be awaited first!");
20798         }
20799         const nativeResponseValue = wasm.TS_OpenChannel_get_feerate_per_kw(this_ptr);
20800         return nativeResponseValue;
20801 }
20802         // void OpenChannel_set_feerate_per_kw(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint32_t val);
20803 /* @internal */
20804 export function OpenChannel_set_feerate_per_kw(this_ptr: number, val: number): void {
20805         if(!isWasmInitialized) {
20806                 throw new Error("initializeWasm() must be awaited first!");
20807         }
20808         const nativeResponseValue = wasm.TS_OpenChannel_set_feerate_per_kw(this_ptr, val);
20809         // debug statements here
20810 }
20811         // uint16_t OpenChannel_get_to_self_delay(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20812 /* @internal */
20813 export function OpenChannel_get_to_self_delay(this_ptr: number): number {
20814         if(!isWasmInitialized) {
20815                 throw new Error("initializeWasm() must be awaited first!");
20816         }
20817         const nativeResponseValue = wasm.TS_OpenChannel_get_to_self_delay(this_ptr);
20818         return nativeResponseValue;
20819 }
20820         // void OpenChannel_set_to_self_delay(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
20821 /* @internal */
20822 export function OpenChannel_set_to_self_delay(this_ptr: number, val: number): void {
20823         if(!isWasmInitialized) {
20824                 throw new Error("initializeWasm() must be awaited first!");
20825         }
20826         const nativeResponseValue = wasm.TS_OpenChannel_set_to_self_delay(this_ptr, val);
20827         // debug statements here
20828 }
20829         // uint16_t OpenChannel_get_max_accepted_htlcs(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20830 /* @internal */
20831 export function OpenChannel_get_max_accepted_htlcs(this_ptr: number): number {
20832         if(!isWasmInitialized) {
20833                 throw new Error("initializeWasm() must be awaited first!");
20834         }
20835         const nativeResponseValue = wasm.TS_OpenChannel_get_max_accepted_htlcs(this_ptr);
20836         return nativeResponseValue;
20837 }
20838         // void OpenChannel_set_max_accepted_htlcs(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
20839 /* @internal */
20840 export function OpenChannel_set_max_accepted_htlcs(this_ptr: number, val: number): void {
20841         if(!isWasmInitialized) {
20842                 throw new Error("initializeWasm() must be awaited first!");
20843         }
20844         const nativeResponseValue = wasm.TS_OpenChannel_set_max_accepted_htlcs(this_ptr, val);
20845         // debug statements here
20846 }
20847         // struct LDKPublicKey OpenChannel_get_funding_pubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20848 /* @internal */
20849 export function OpenChannel_get_funding_pubkey(this_ptr: number): number {
20850         if(!isWasmInitialized) {
20851                 throw new Error("initializeWasm() must be awaited first!");
20852         }
20853         const nativeResponseValue = wasm.TS_OpenChannel_get_funding_pubkey(this_ptr);
20854         return nativeResponseValue;
20855 }
20856         // void OpenChannel_set_funding_pubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20857 /* @internal */
20858 export function OpenChannel_set_funding_pubkey(this_ptr: number, val: number): void {
20859         if(!isWasmInitialized) {
20860                 throw new Error("initializeWasm() must be awaited first!");
20861         }
20862         const nativeResponseValue = wasm.TS_OpenChannel_set_funding_pubkey(this_ptr, val);
20863         // debug statements here
20864 }
20865         // struct LDKPublicKey OpenChannel_get_revocation_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20866 /* @internal */
20867 export function OpenChannel_get_revocation_basepoint(this_ptr: number): number {
20868         if(!isWasmInitialized) {
20869                 throw new Error("initializeWasm() must be awaited first!");
20870         }
20871         const nativeResponseValue = wasm.TS_OpenChannel_get_revocation_basepoint(this_ptr);
20872         return nativeResponseValue;
20873 }
20874         // void OpenChannel_set_revocation_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20875 /* @internal */
20876 export function OpenChannel_set_revocation_basepoint(this_ptr: number, val: number): void {
20877         if(!isWasmInitialized) {
20878                 throw new Error("initializeWasm() must be awaited first!");
20879         }
20880         const nativeResponseValue = wasm.TS_OpenChannel_set_revocation_basepoint(this_ptr, val);
20881         // debug statements here
20882 }
20883         // struct LDKPublicKey OpenChannel_get_payment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20884 /* @internal */
20885 export function OpenChannel_get_payment_point(this_ptr: number): number {
20886         if(!isWasmInitialized) {
20887                 throw new Error("initializeWasm() must be awaited first!");
20888         }
20889         const nativeResponseValue = wasm.TS_OpenChannel_get_payment_point(this_ptr);
20890         return nativeResponseValue;
20891 }
20892         // void OpenChannel_set_payment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20893 /* @internal */
20894 export function OpenChannel_set_payment_point(this_ptr: number, val: number): void {
20895         if(!isWasmInitialized) {
20896                 throw new Error("initializeWasm() must be awaited first!");
20897         }
20898         const nativeResponseValue = wasm.TS_OpenChannel_set_payment_point(this_ptr, val);
20899         // debug statements here
20900 }
20901         // struct LDKPublicKey OpenChannel_get_delayed_payment_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20902 /* @internal */
20903 export function OpenChannel_get_delayed_payment_basepoint(this_ptr: number): number {
20904         if(!isWasmInitialized) {
20905                 throw new Error("initializeWasm() must be awaited first!");
20906         }
20907         const nativeResponseValue = wasm.TS_OpenChannel_get_delayed_payment_basepoint(this_ptr);
20908         return nativeResponseValue;
20909 }
20910         // void OpenChannel_set_delayed_payment_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20911 /* @internal */
20912 export function OpenChannel_set_delayed_payment_basepoint(this_ptr: number, val: number): void {
20913         if(!isWasmInitialized) {
20914                 throw new Error("initializeWasm() must be awaited first!");
20915         }
20916         const nativeResponseValue = wasm.TS_OpenChannel_set_delayed_payment_basepoint(this_ptr, val);
20917         // debug statements here
20918 }
20919         // struct LDKPublicKey OpenChannel_get_htlc_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20920 /* @internal */
20921 export function OpenChannel_get_htlc_basepoint(this_ptr: number): number {
20922         if(!isWasmInitialized) {
20923                 throw new Error("initializeWasm() must be awaited first!");
20924         }
20925         const nativeResponseValue = wasm.TS_OpenChannel_get_htlc_basepoint(this_ptr);
20926         return nativeResponseValue;
20927 }
20928         // void OpenChannel_set_htlc_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20929 /* @internal */
20930 export function OpenChannel_set_htlc_basepoint(this_ptr: number, val: number): void {
20931         if(!isWasmInitialized) {
20932                 throw new Error("initializeWasm() must be awaited first!");
20933         }
20934         const nativeResponseValue = wasm.TS_OpenChannel_set_htlc_basepoint(this_ptr, val);
20935         // debug statements here
20936 }
20937         // struct LDKPublicKey OpenChannel_get_first_per_commitment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20938 /* @internal */
20939 export function OpenChannel_get_first_per_commitment_point(this_ptr: number): number {
20940         if(!isWasmInitialized) {
20941                 throw new Error("initializeWasm() must be awaited first!");
20942         }
20943         const nativeResponseValue = wasm.TS_OpenChannel_get_first_per_commitment_point(this_ptr);
20944         return nativeResponseValue;
20945 }
20946         // void OpenChannel_set_first_per_commitment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
20947 /* @internal */
20948 export function OpenChannel_set_first_per_commitment_point(this_ptr: number, val: number): void {
20949         if(!isWasmInitialized) {
20950                 throw new Error("initializeWasm() must be awaited first!");
20951         }
20952         const nativeResponseValue = wasm.TS_OpenChannel_set_first_per_commitment_point(this_ptr, val);
20953         // debug statements here
20954 }
20955         // uint8_t OpenChannel_get_channel_flags(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20956 /* @internal */
20957 export function OpenChannel_get_channel_flags(this_ptr: number): number {
20958         if(!isWasmInitialized) {
20959                 throw new Error("initializeWasm() must be awaited first!");
20960         }
20961         const nativeResponseValue = wasm.TS_OpenChannel_get_channel_flags(this_ptr);
20962         return nativeResponseValue;
20963 }
20964         // void OpenChannel_set_channel_flags(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint8_t val);
20965 /* @internal */
20966 export function OpenChannel_set_channel_flags(this_ptr: number, val: number): void {
20967         if(!isWasmInitialized) {
20968                 throw new Error("initializeWasm() must be awaited first!");
20969         }
20970         const nativeResponseValue = wasm.TS_OpenChannel_set_channel_flags(this_ptr, val);
20971         // debug statements here
20972 }
20973         // struct LDKChannelTypeFeatures OpenChannel_get_channel_type(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
20974 /* @internal */
20975 export function OpenChannel_get_channel_type(this_ptr: number): number {
20976         if(!isWasmInitialized) {
20977                 throw new Error("initializeWasm() must be awaited first!");
20978         }
20979         const nativeResponseValue = wasm.TS_OpenChannel_get_channel_type(this_ptr);
20980         return nativeResponseValue;
20981 }
20982         // void OpenChannel_set_channel_type(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
20983 /* @internal */
20984 export function OpenChannel_set_channel_type(this_ptr: number, val: number): void {
20985         if(!isWasmInitialized) {
20986                 throw new Error("initializeWasm() must be awaited first!");
20987         }
20988         const nativeResponseValue = wasm.TS_OpenChannel_set_channel_type(this_ptr, val);
20989         // debug statements here
20990 }
20991         // uintptr_t OpenChannel_clone_ptr(LDKOpenChannel *NONNULL_PTR arg);
20992 /* @internal */
20993 export function OpenChannel_clone_ptr(arg: number): number {
20994         if(!isWasmInitialized) {
20995                 throw new Error("initializeWasm() must be awaited first!");
20996         }
20997         const nativeResponseValue = wasm.TS_OpenChannel_clone_ptr(arg);
20998         return nativeResponseValue;
20999 }
21000         // struct LDKOpenChannel OpenChannel_clone(const struct LDKOpenChannel *NONNULL_PTR orig);
21001 /* @internal */
21002 export function OpenChannel_clone(orig: number): number {
21003         if(!isWasmInitialized) {
21004                 throw new Error("initializeWasm() must be awaited first!");
21005         }
21006         const nativeResponseValue = wasm.TS_OpenChannel_clone(orig);
21007         return nativeResponseValue;
21008 }
21009         // void AcceptChannel_free(struct LDKAcceptChannel this_obj);
21010 /* @internal */
21011 export function AcceptChannel_free(this_obj: number): void {
21012         if(!isWasmInitialized) {
21013                 throw new Error("initializeWasm() must be awaited first!");
21014         }
21015         const nativeResponseValue = wasm.TS_AcceptChannel_free(this_obj);
21016         // debug statements here
21017 }
21018         // const uint8_t (*AcceptChannel_get_temporary_channel_id(const struct LDKAcceptChannel *NONNULL_PTR this_ptr))[32];
21019 /* @internal */
21020 export function AcceptChannel_get_temporary_channel_id(this_ptr: number): number {
21021         if(!isWasmInitialized) {
21022                 throw new Error("initializeWasm() must be awaited first!");
21023         }
21024         const nativeResponseValue = wasm.TS_AcceptChannel_get_temporary_channel_id(this_ptr);
21025         return nativeResponseValue;
21026 }
21027         // void AcceptChannel_set_temporary_channel_id(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21028 /* @internal */
21029 export function AcceptChannel_set_temporary_channel_id(this_ptr: number, val: number): void {
21030         if(!isWasmInitialized) {
21031                 throw new Error("initializeWasm() must be awaited first!");
21032         }
21033         const nativeResponseValue = wasm.TS_AcceptChannel_set_temporary_channel_id(this_ptr, val);
21034         // debug statements here
21035 }
21036         // uint64_t AcceptChannel_get_dust_limit_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21037 /* @internal */
21038 export function AcceptChannel_get_dust_limit_satoshis(this_ptr: number): bigint {
21039         if(!isWasmInitialized) {
21040                 throw new Error("initializeWasm() must be awaited first!");
21041         }
21042         const nativeResponseValue = wasm.TS_AcceptChannel_get_dust_limit_satoshis(this_ptr);
21043         return nativeResponseValue;
21044 }
21045         // void AcceptChannel_set_dust_limit_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
21046 /* @internal */
21047 export function AcceptChannel_set_dust_limit_satoshis(this_ptr: number, val: bigint): void {
21048         if(!isWasmInitialized) {
21049                 throw new Error("initializeWasm() must be awaited first!");
21050         }
21051         const nativeResponseValue = wasm.TS_AcceptChannel_set_dust_limit_satoshis(this_ptr, val);
21052         // debug statements here
21053 }
21054         // uint64_t AcceptChannel_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21055 /* @internal */
21056 export function AcceptChannel_get_max_htlc_value_in_flight_msat(this_ptr: number): bigint {
21057         if(!isWasmInitialized) {
21058                 throw new Error("initializeWasm() must be awaited first!");
21059         }
21060         const nativeResponseValue = wasm.TS_AcceptChannel_get_max_htlc_value_in_flight_msat(this_ptr);
21061         return nativeResponseValue;
21062 }
21063         // void AcceptChannel_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
21064 /* @internal */
21065 export function AcceptChannel_set_max_htlc_value_in_flight_msat(this_ptr: number, val: bigint): void {
21066         if(!isWasmInitialized) {
21067                 throw new Error("initializeWasm() must be awaited first!");
21068         }
21069         const nativeResponseValue = wasm.TS_AcceptChannel_set_max_htlc_value_in_flight_msat(this_ptr, val);
21070         // debug statements here
21071 }
21072         // uint64_t AcceptChannel_get_channel_reserve_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21073 /* @internal */
21074 export function AcceptChannel_get_channel_reserve_satoshis(this_ptr: number): bigint {
21075         if(!isWasmInitialized) {
21076                 throw new Error("initializeWasm() must be awaited first!");
21077         }
21078         const nativeResponseValue = wasm.TS_AcceptChannel_get_channel_reserve_satoshis(this_ptr);
21079         return nativeResponseValue;
21080 }
21081         // void AcceptChannel_set_channel_reserve_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
21082 /* @internal */
21083 export function AcceptChannel_set_channel_reserve_satoshis(this_ptr: number, val: bigint): void {
21084         if(!isWasmInitialized) {
21085                 throw new Error("initializeWasm() must be awaited first!");
21086         }
21087         const nativeResponseValue = wasm.TS_AcceptChannel_set_channel_reserve_satoshis(this_ptr, val);
21088         // debug statements here
21089 }
21090         // uint64_t AcceptChannel_get_htlc_minimum_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21091 /* @internal */
21092 export function AcceptChannel_get_htlc_minimum_msat(this_ptr: number): bigint {
21093         if(!isWasmInitialized) {
21094                 throw new Error("initializeWasm() must be awaited first!");
21095         }
21096         const nativeResponseValue = wasm.TS_AcceptChannel_get_htlc_minimum_msat(this_ptr);
21097         return nativeResponseValue;
21098 }
21099         // void AcceptChannel_set_htlc_minimum_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
21100 /* @internal */
21101 export function AcceptChannel_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
21102         if(!isWasmInitialized) {
21103                 throw new Error("initializeWasm() must be awaited first!");
21104         }
21105         const nativeResponseValue = wasm.TS_AcceptChannel_set_htlc_minimum_msat(this_ptr, val);
21106         // debug statements here
21107 }
21108         // uint32_t AcceptChannel_get_minimum_depth(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21109 /* @internal */
21110 export function AcceptChannel_get_minimum_depth(this_ptr: number): number {
21111         if(!isWasmInitialized) {
21112                 throw new Error("initializeWasm() must be awaited first!");
21113         }
21114         const nativeResponseValue = wasm.TS_AcceptChannel_get_minimum_depth(this_ptr);
21115         return nativeResponseValue;
21116 }
21117         // void AcceptChannel_set_minimum_depth(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint32_t val);
21118 /* @internal */
21119 export function AcceptChannel_set_minimum_depth(this_ptr: number, val: number): void {
21120         if(!isWasmInitialized) {
21121                 throw new Error("initializeWasm() must be awaited first!");
21122         }
21123         const nativeResponseValue = wasm.TS_AcceptChannel_set_minimum_depth(this_ptr, val);
21124         // debug statements here
21125 }
21126         // uint16_t AcceptChannel_get_to_self_delay(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21127 /* @internal */
21128 export function AcceptChannel_get_to_self_delay(this_ptr: number): number {
21129         if(!isWasmInitialized) {
21130                 throw new Error("initializeWasm() must be awaited first!");
21131         }
21132         const nativeResponseValue = wasm.TS_AcceptChannel_get_to_self_delay(this_ptr);
21133         return nativeResponseValue;
21134 }
21135         // void AcceptChannel_set_to_self_delay(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
21136 /* @internal */
21137 export function AcceptChannel_set_to_self_delay(this_ptr: number, val: number): void {
21138         if(!isWasmInitialized) {
21139                 throw new Error("initializeWasm() must be awaited first!");
21140         }
21141         const nativeResponseValue = wasm.TS_AcceptChannel_set_to_self_delay(this_ptr, val);
21142         // debug statements here
21143 }
21144         // uint16_t AcceptChannel_get_max_accepted_htlcs(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21145 /* @internal */
21146 export function AcceptChannel_get_max_accepted_htlcs(this_ptr: number): number {
21147         if(!isWasmInitialized) {
21148                 throw new Error("initializeWasm() must be awaited first!");
21149         }
21150         const nativeResponseValue = wasm.TS_AcceptChannel_get_max_accepted_htlcs(this_ptr);
21151         return nativeResponseValue;
21152 }
21153         // void AcceptChannel_set_max_accepted_htlcs(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
21154 /* @internal */
21155 export function AcceptChannel_set_max_accepted_htlcs(this_ptr: number, val: number): void {
21156         if(!isWasmInitialized) {
21157                 throw new Error("initializeWasm() must be awaited first!");
21158         }
21159         const nativeResponseValue = wasm.TS_AcceptChannel_set_max_accepted_htlcs(this_ptr, val);
21160         // debug statements here
21161 }
21162         // struct LDKPublicKey AcceptChannel_get_funding_pubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21163 /* @internal */
21164 export function AcceptChannel_get_funding_pubkey(this_ptr: number): number {
21165         if(!isWasmInitialized) {
21166                 throw new Error("initializeWasm() must be awaited first!");
21167         }
21168         const nativeResponseValue = wasm.TS_AcceptChannel_get_funding_pubkey(this_ptr);
21169         return nativeResponseValue;
21170 }
21171         // void AcceptChannel_set_funding_pubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21172 /* @internal */
21173 export function AcceptChannel_set_funding_pubkey(this_ptr: number, val: number): void {
21174         if(!isWasmInitialized) {
21175                 throw new Error("initializeWasm() must be awaited first!");
21176         }
21177         const nativeResponseValue = wasm.TS_AcceptChannel_set_funding_pubkey(this_ptr, val);
21178         // debug statements here
21179 }
21180         // struct LDKPublicKey AcceptChannel_get_revocation_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21181 /* @internal */
21182 export function AcceptChannel_get_revocation_basepoint(this_ptr: number): number {
21183         if(!isWasmInitialized) {
21184                 throw new Error("initializeWasm() must be awaited first!");
21185         }
21186         const nativeResponseValue = wasm.TS_AcceptChannel_get_revocation_basepoint(this_ptr);
21187         return nativeResponseValue;
21188 }
21189         // void AcceptChannel_set_revocation_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21190 /* @internal */
21191 export function AcceptChannel_set_revocation_basepoint(this_ptr: number, val: number): void {
21192         if(!isWasmInitialized) {
21193                 throw new Error("initializeWasm() must be awaited first!");
21194         }
21195         const nativeResponseValue = wasm.TS_AcceptChannel_set_revocation_basepoint(this_ptr, val);
21196         // debug statements here
21197 }
21198         // struct LDKPublicKey AcceptChannel_get_payment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21199 /* @internal */
21200 export function AcceptChannel_get_payment_point(this_ptr: number): number {
21201         if(!isWasmInitialized) {
21202                 throw new Error("initializeWasm() must be awaited first!");
21203         }
21204         const nativeResponseValue = wasm.TS_AcceptChannel_get_payment_point(this_ptr);
21205         return nativeResponseValue;
21206 }
21207         // void AcceptChannel_set_payment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21208 /* @internal */
21209 export function AcceptChannel_set_payment_point(this_ptr: number, val: number): void {
21210         if(!isWasmInitialized) {
21211                 throw new Error("initializeWasm() must be awaited first!");
21212         }
21213         const nativeResponseValue = wasm.TS_AcceptChannel_set_payment_point(this_ptr, val);
21214         // debug statements here
21215 }
21216         // struct LDKPublicKey AcceptChannel_get_delayed_payment_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21217 /* @internal */
21218 export function AcceptChannel_get_delayed_payment_basepoint(this_ptr: number): number {
21219         if(!isWasmInitialized) {
21220                 throw new Error("initializeWasm() must be awaited first!");
21221         }
21222         const nativeResponseValue = wasm.TS_AcceptChannel_get_delayed_payment_basepoint(this_ptr);
21223         return nativeResponseValue;
21224 }
21225         // void AcceptChannel_set_delayed_payment_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21226 /* @internal */
21227 export function AcceptChannel_set_delayed_payment_basepoint(this_ptr: number, val: number): void {
21228         if(!isWasmInitialized) {
21229                 throw new Error("initializeWasm() must be awaited first!");
21230         }
21231         const nativeResponseValue = wasm.TS_AcceptChannel_set_delayed_payment_basepoint(this_ptr, val);
21232         // debug statements here
21233 }
21234         // struct LDKPublicKey AcceptChannel_get_htlc_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21235 /* @internal */
21236 export function AcceptChannel_get_htlc_basepoint(this_ptr: number): number {
21237         if(!isWasmInitialized) {
21238                 throw new Error("initializeWasm() must be awaited first!");
21239         }
21240         const nativeResponseValue = wasm.TS_AcceptChannel_get_htlc_basepoint(this_ptr);
21241         return nativeResponseValue;
21242 }
21243         // void AcceptChannel_set_htlc_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21244 /* @internal */
21245 export function AcceptChannel_set_htlc_basepoint(this_ptr: number, val: number): void {
21246         if(!isWasmInitialized) {
21247                 throw new Error("initializeWasm() must be awaited first!");
21248         }
21249         const nativeResponseValue = wasm.TS_AcceptChannel_set_htlc_basepoint(this_ptr, val);
21250         // debug statements here
21251 }
21252         // struct LDKPublicKey AcceptChannel_get_first_per_commitment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21253 /* @internal */
21254 export function AcceptChannel_get_first_per_commitment_point(this_ptr: number): number {
21255         if(!isWasmInitialized) {
21256                 throw new Error("initializeWasm() must be awaited first!");
21257         }
21258         const nativeResponseValue = wasm.TS_AcceptChannel_get_first_per_commitment_point(this_ptr);
21259         return nativeResponseValue;
21260 }
21261         // void AcceptChannel_set_first_per_commitment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21262 /* @internal */
21263 export function AcceptChannel_set_first_per_commitment_point(this_ptr: number, val: number): void {
21264         if(!isWasmInitialized) {
21265                 throw new Error("initializeWasm() must be awaited first!");
21266         }
21267         const nativeResponseValue = wasm.TS_AcceptChannel_set_first_per_commitment_point(this_ptr, val);
21268         // debug statements here
21269 }
21270         // struct LDKChannelTypeFeatures AcceptChannel_get_channel_type(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
21271 /* @internal */
21272 export function AcceptChannel_get_channel_type(this_ptr: number): number {
21273         if(!isWasmInitialized) {
21274                 throw new Error("initializeWasm() must be awaited first!");
21275         }
21276         const nativeResponseValue = wasm.TS_AcceptChannel_get_channel_type(this_ptr);
21277         return nativeResponseValue;
21278 }
21279         // void AcceptChannel_set_channel_type(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
21280 /* @internal */
21281 export function AcceptChannel_set_channel_type(this_ptr: number, val: number): void {
21282         if(!isWasmInitialized) {
21283                 throw new Error("initializeWasm() must be awaited first!");
21284         }
21285         const nativeResponseValue = wasm.TS_AcceptChannel_set_channel_type(this_ptr, val);
21286         // debug statements here
21287 }
21288         // uintptr_t AcceptChannel_clone_ptr(LDKAcceptChannel *NONNULL_PTR arg);
21289 /* @internal */
21290 export function AcceptChannel_clone_ptr(arg: number): number {
21291         if(!isWasmInitialized) {
21292                 throw new Error("initializeWasm() must be awaited first!");
21293         }
21294         const nativeResponseValue = wasm.TS_AcceptChannel_clone_ptr(arg);
21295         return nativeResponseValue;
21296 }
21297         // struct LDKAcceptChannel AcceptChannel_clone(const struct LDKAcceptChannel *NONNULL_PTR orig);
21298 /* @internal */
21299 export function AcceptChannel_clone(orig: number): number {
21300         if(!isWasmInitialized) {
21301                 throw new Error("initializeWasm() must be awaited first!");
21302         }
21303         const nativeResponseValue = wasm.TS_AcceptChannel_clone(orig);
21304         return nativeResponseValue;
21305 }
21306         // void FundingCreated_free(struct LDKFundingCreated this_obj);
21307 /* @internal */
21308 export function FundingCreated_free(this_obj: number): void {
21309         if(!isWasmInitialized) {
21310                 throw new Error("initializeWasm() must be awaited first!");
21311         }
21312         const nativeResponseValue = wasm.TS_FundingCreated_free(this_obj);
21313         // debug statements here
21314 }
21315         // const uint8_t (*FundingCreated_get_temporary_channel_id(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
21316 /* @internal */
21317 export function FundingCreated_get_temporary_channel_id(this_ptr: number): number {
21318         if(!isWasmInitialized) {
21319                 throw new Error("initializeWasm() must be awaited first!");
21320         }
21321         const nativeResponseValue = wasm.TS_FundingCreated_get_temporary_channel_id(this_ptr);
21322         return nativeResponseValue;
21323 }
21324         // void FundingCreated_set_temporary_channel_id(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21325 /* @internal */
21326 export function FundingCreated_set_temporary_channel_id(this_ptr: number, val: number): void {
21327         if(!isWasmInitialized) {
21328                 throw new Error("initializeWasm() must be awaited first!");
21329         }
21330         const nativeResponseValue = wasm.TS_FundingCreated_set_temporary_channel_id(this_ptr, val);
21331         // debug statements here
21332 }
21333         // const uint8_t (*FundingCreated_get_funding_txid(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
21334 /* @internal */
21335 export function FundingCreated_get_funding_txid(this_ptr: number): number {
21336         if(!isWasmInitialized) {
21337                 throw new Error("initializeWasm() must be awaited first!");
21338         }
21339         const nativeResponseValue = wasm.TS_FundingCreated_get_funding_txid(this_ptr);
21340         return nativeResponseValue;
21341 }
21342         // void FundingCreated_set_funding_txid(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21343 /* @internal */
21344 export function FundingCreated_set_funding_txid(this_ptr: number, val: number): void {
21345         if(!isWasmInitialized) {
21346                 throw new Error("initializeWasm() must be awaited first!");
21347         }
21348         const nativeResponseValue = wasm.TS_FundingCreated_set_funding_txid(this_ptr, val);
21349         // debug statements here
21350 }
21351         // uint16_t FundingCreated_get_funding_output_index(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
21352 /* @internal */
21353 export function FundingCreated_get_funding_output_index(this_ptr: number): number {
21354         if(!isWasmInitialized) {
21355                 throw new Error("initializeWasm() must be awaited first!");
21356         }
21357         const nativeResponseValue = wasm.TS_FundingCreated_get_funding_output_index(this_ptr);
21358         return nativeResponseValue;
21359 }
21360         // void FundingCreated_set_funding_output_index(struct LDKFundingCreated *NONNULL_PTR this_ptr, uint16_t val);
21361 /* @internal */
21362 export function FundingCreated_set_funding_output_index(this_ptr: number, val: number): void {
21363         if(!isWasmInitialized) {
21364                 throw new Error("initializeWasm() must be awaited first!");
21365         }
21366         const nativeResponseValue = wasm.TS_FundingCreated_set_funding_output_index(this_ptr, val);
21367         // debug statements here
21368 }
21369         // struct LDKSignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
21370 /* @internal */
21371 export function FundingCreated_get_signature(this_ptr: number): number {
21372         if(!isWasmInitialized) {
21373                 throw new Error("initializeWasm() must be awaited first!");
21374         }
21375         const nativeResponseValue = wasm.TS_FundingCreated_get_signature(this_ptr);
21376         return nativeResponseValue;
21377 }
21378         // void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKSignature val);
21379 /* @internal */
21380 export function FundingCreated_set_signature(this_ptr: number, val: number): void {
21381         if(!isWasmInitialized) {
21382                 throw new Error("initializeWasm() must be awaited first!");
21383         }
21384         const nativeResponseValue = wasm.TS_FundingCreated_set_signature(this_ptr, val);
21385         // debug statements here
21386 }
21387         // 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);
21388 /* @internal */
21389 export function FundingCreated_new(temporary_channel_id_arg: number, funding_txid_arg: number, funding_output_index_arg: number, signature_arg: number): number {
21390         if(!isWasmInitialized) {
21391                 throw new Error("initializeWasm() must be awaited first!");
21392         }
21393         const nativeResponseValue = wasm.TS_FundingCreated_new(temporary_channel_id_arg, funding_txid_arg, funding_output_index_arg, signature_arg);
21394         return nativeResponseValue;
21395 }
21396         // uintptr_t FundingCreated_clone_ptr(LDKFundingCreated *NONNULL_PTR arg);
21397 /* @internal */
21398 export function FundingCreated_clone_ptr(arg: number): number {
21399         if(!isWasmInitialized) {
21400                 throw new Error("initializeWasm() must be awaited first!");
21401         }
21402         const nativeResponseValue = wasm.TS_FundingCreated_clone_ptr(arg);
21403         return nativeResponseValue;
21404 }
21405         // struct LDKFundingCreated FundingCreated_clone(const struct LDKFundingCreated *NONNULL_PTR orig);
21406 /* @internal */
21407 export function FundingCreated_clone(orig: number): number {
21408         if(!isWasmInitialized) {
21409                 throw new Error("initializeWasm() must be awaited first!");
21410         }
21411         const nativeResponseValue = wasm.TS_FundingCreated_clone(orig);
21412         return nativeResponseValue;
21413 }
21414         // void FundingSigned_free(struct LDKFundingSigned this_obj);
21415 /* @internal */
21416 export function FundingSigned_free(this_obj: number): void {
21417         if(!isWasmInitialized) {
21418                 throw new Error("initializeWasm() must be awaited first!");
21419         }
21420         const nativeResponseValue = wasm.TS_FundingSigned_free(this_obj);
21421         // debug statements here
21422 }
21423         // const uint8_t (*FundingSigned_get_channel_id(const struct LDKFundingSigned *NONNULL_PTR this_ptr))[32];
21424 /* @internal */
21425 export function FundingSigned_get_channel_id(this_ptr: number): number {
21426         if(!isWasmInitialized) {
21427                 throw new Error("initializeWasm() must be awaited first!");
21428         }
21429         const nativeResponseValue = wasm.TS_FundingSigned_get_channel_id(this_ptr);
21430         return nativeResponseValue;
21431 }
21432         // void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21433 /* @internal */
21434 export function FundingSigned_set_channel_id(this_ptr: number, val: number): void {
21435         if(!isWasmInitialized) {
21436                 throw new Error("initializeWasm() must be awaited first!");
21437         }
21438         const nativeResponseValue = wasm.TS_FundingSigned_set_channel_id(this_ptr, val);
21439         // debug statements here
21440 }
21441         // struct LDKSignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr);
21442 /* @internal */
21443 export function FundingSigned_get_signature(this_ptr: number): number {
21444         if(!isWasmInitialized) {
21445                 throw new Error("initializeWasm() must be awaited first!");
21446         }
21447         const nativeResponseValue = wasm.TS_FundingSigned_get_signature(this_ptr);
21448         return nativeResponseValue;
21449 }
21450         // void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
21451 /* @internal */
21452 export function FundingSigned_set_signature(this_ptr: number, val: number): void {
21453         if(!isWasmInitialized) {
21454                 throw new Error("initializeWasm() must be awaited first!");
21455         }
21456         const nativeResponseValue = wasm.TS_FundingSigned_set_signature(this_ptr, val);
21457         // debug statements here
21458 }
21459         // MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg);
21460 /* @internal */
21461 export function FundingSigned_new(channel_id_arg: number, signature_arg: number): number {
21462         if(!isWasmInitialized) {
21463                 throw new Error("initializeWasm() must be awaited first!");
21464         }
21465         const nativeResponseValue = wasm.TS_FundingSigned_new(channel_id_arg, signature_arg);
21466         return nativeResponseValue;
21467 }
21468         // uintptr_t FundingSigned_clone_ptr(LDKFundingSigned *NONNULL_PTR arg);
21469 /* @internal */
21470 export function FundingSigned_clone_ptr(arg: number): number {
21471         if(!isWasmInitialized) {
21472                 throw new Error("initializeWasm() must be awaited first!");
21473         }
21474         const nativeResponseValue = wasm.TS_FundingSigned_clone_ptr(arg);
21475         return nativeResponseValue;
21476 }
21477         // struct LDKFundingSigned FundingSigned_clone(const struct LDKFundingSigned *NONNULL_PTR orig);
21478 /* @internal */
21479 export function FundingSigned_clone(orig: number): number {
21480         if(!isWasmInitialized) {
21481                 throw new Error("initializeWasm() must be awaited first!");
21482         }
21483         const nativeResponseValue = wasm.TS_FundingSigned_clone(orig);
21484         return nativeResponseValue;
21485 }
21486         // void ChannelReady_free(struct LDKChannelReady this_obj);
21487 /* @internal */
21488 export function ChannelReady_free(this_obj: number): void {
21489         if(!isWasmInitialized) {
21490                 throw new Error("initializeWasm() must be awaited first!");
21491         }
21492         const nativeResponseValue = wasm.TS_ChannelReady_free(this_obj);
21493         // debug statements here
21494 }
21495         // const uint8_t (*ChannelReady_get_channel_id(const struct LDKChannelReady *NONNULL_PTR this_ptr))[32];
21496 /* @internal */
21497 export function ChannelReady_get_channel_id(this_ptr: number): number {
21498         if(!isWasmInitialized) {
21499                 throw new Error("initializeWasm() must be awaited first!");
21500         }
21501         const nativeResponseValue = wasm.TS_ChannelReady_get_channel_id(this_ptr);
21502         return nativeResponseValue;
21503 }
21504         // void ChannelReady_set_channel_id(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21505 /* @internal */
21506 export function ChannelReady_set_channel_id(this_ptr: number, val: number): void {
21507         if(!isWasmInitialized) {
21508                 throw new Error("initializeWasm() must be awaited first!");
21509         }
21510         const nativeResponseValue = wasm.TS_ChannelReady_set_channel_id(this_ptr, val);
21511         // debug statements here
21512 }
21513         // struct LDKPublicKey ChannelReady_get_next_per_commitment_point(const struct LDKChannelReady *NONNULL_PTR this_ptr);
21514 /* @internal */
21515 export function ChannelReady_get_next_per_commitment_point(this_ptr: number): number {
21516         if(!isWasmInitialized) {
21517                 throw new Error("initializeWasm() must be awaited first!");
21518         }
21519         const nativeResponseValue = wasm.TS_ChannelReady_get_next_per_commitment_point(this_ptr);
21520         return nativeResponseValue;
21521 }
21522         // void ChannelReady_set_next_per_commitment_point(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21523 /* @internal */
21524 export function ChannelReady_set_next_per_commitment_point(this_ptr: number, val: number): void {
21525         if(!isWasmInitialized) {
21526                 throw new Error("initializeWasm() must be awaited first!");
21527         }
21528         const nativeResponseValue = wasm.TS_ChannelReady_set_next_per_commitment_point(this_ptr, val);
21529         // debug statements here
21530 }
21531         // struct LDKCOption_u64Z ChannelReady_get_short_channel_id_alias(const struct LDKChannelReady *NONNULL_PTR this_ptr);
21532 /* @internal */
21533 export function ChannelReady_get_short_channel_id_alias(this_ptr: number): number {
21534         if(!isWasmInitialized) {
21535                 throw new Error("initializeWasm() must be awaited first!");
21536         }
21537         const nativeResponseValue = wasm.TS_ChannelReady_get_short_channel_id_alias(this_ptr);
21538         return nativeResponseValue;
21539 }
21540         // void ChannelReady_set_short_channel_id_alias(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
21541 /* @internal */
21542 export function ChannelReady_set_short_channel_id_alias(this_ptr: number, val: number): void {
21543         if(!isWasmInitialized) {
21544                 throw new Error("initializeWasm() must be awaited first!");
21545         }
21546         const nativeResponseValue = wasm.TS_ChannelReady_set_short_channel_id_alias(this_ptr, val);
21547         // debug statements here
21548 }
21549         // MUST_USE_RES struct LDKChannelReady ChannelReady_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKPublicKey next_per_commitment_point_arg, struct LDKCOption_u64Z short_channel_id_alias_arg);
21550 /* @internal */
21551 export function ChannelReady_new(channel_id_arg: number, next_per_commitment_point_arg: number, short_channel_id_alias_arg: number): number {
21552         if(!isWasmInitialized) {
21553                 throw new Error("initializeWasm() must be awaited first!");
21554         }
21555         const nativeResponseValue = wasm.TS_ChannelReady_new(channel_id_arg, next_per_commitment_point_arg, short_channel_id_alias_arg);
21556         return nativeResponseValue;
21557 }
21558         // uintptr_t ChannelReady_clone_ptr(LDKChannelReady *NONNULL_PTR arg);
21559 /* @internal */
21560 export function ChannelReady_clone_ptr(arg: number): number {
21561         if(!isWasmInitialized) {
21562                 throw new Error("initializeWasm() must be awaited first!");
21563         }
21564         const nativeResponseValue = wasm.TS_ChannelReady_clone_ptr(arg);
21565         return nativeResponseValue;
21566 }
21567         // struct LDKChannelReady ChannelReady_clone(const struct LDKChannelReady *NONNULL_PTR orig);
21568 /* @internal */
21569 export function ChannelReady_clone(orig: number): number {
21570         if(!isWasmInitialized) {
21571                 throw new Error("initializeWasm() must be awaited first!");
21572         }
21573         const nativeResponseValue = wasm.TS_ChannelReady_clone(orig);
21574         return nativeResponseValue;
21575 }
21576         // void Shutdown_free(struct LDKShutdown this_obj);
21577 /* @internal */
21578 export function Shutdown_free(this_obj: number): void {
21579         if(!isWasmInitialized) {
21580                 throw new Error("initializeWasm() must be awaited first!");
21581         }
21582         const nativeResponseValue = wasm.TS_Shutdown_free(this_obj);
21583         // debug statements here
21584 }
21585         // const uint8_t (*Shutdown_get_channel_id(const struct LDKShutdown *NONNULL_PTR this_ptr))[32];
21586 /* @internal */
21587 export function Shutdown_get_channel_id(this_ptr: number): number {
21588         if(!isWasmInitialized) {
21589                 throw new Error("initializeWasm() must be awaited first!");
21590         }
21591         const nativeResponseValue = wasm.TS_Shutdown_get_channel_id(this_ptr);
21592         return nativeResponseValue;
21593 }
21594         // void Shutdown_set_channel_id(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21595 /* @internal */
21596 export function Shutdown_set_channel_id(this_ptr: number, val: number): void {
21597         if(!isWasmInitialized) {
21598                 throw new Error("initializeWasm() must be awaited first!");
21599         }
21600         const nativeResponseValue = wasm.TS_Shutdown_set_channel_id(this_ptr, val);
21601         // debug statements here
21602 }
21603         // struct LDKu8slice Shutdown_get_scriptpubkey(const struct LDKShutdown *NONNULL_PTR this_ptr);
21604 /* @internal */
21605 export function Shutdown_get_scriptpubkey(this_ptr: number): number {
21606         if(!isWasmInitialized) {
21607                 throw new Error("initializeWasm() must be awaited first!");
21608         }
21609         const nativeResponseValue = wasm.TS_Shutdown_get_scriptpubkey(this_ptr);
21610         return nativeResponseValue;
21611 }
21612         // void Shutdown_set_scriptpubkey(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
21613 /* @internal */
21614 export function Shutdown_set_scriptpubkey(this_ptr: number, val: number): void {
21615         if(!isWasmInitialized) {
21616                 throw new Error("initializeWasm() must be awaited first!");
21617         }
21618         const nativeResponseValue = wasm.TS_Shutdown_set_scriptpubkey(this_ptr, val);
21619         // debug statements here
21620 }
21621         // MUST_USE_RES struct LDKShutdown Shutdown_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z scriptpubkey_arg);
21622 /* @internal */
21623 export function Shutdown_new(channel_id_arg: number, scriptpubkey_arg: number): number {
21624         if(!isWasmInitialized) {
21625                 throw new Error("initializeWasm() must be awaited first!");
21626         }
21627         const nativeResponseValue = wasm.TS_Shutdown_new(channel_id_arg, scriptpubkey_arg);
21628         return nativeResponseValue;
21629 }
21630         // uintptr_t Shutdown_clone_ptr(LDKShutdown *NONNULL_PTR arg);
21631 /* @internal */
21632 export function Shutdown_clone_ptr(arg: number): number {
21633         if(!isWasmInitialized) {
21634                 throw new Error("initializeWasm() must be awaited first!");
21635         }
21636         const nativeResponseValue = wasm.TS_Shutdown_clone_ptr(arg);
21637         return nativeResponseValue;
21638 }
21639         // struct LDKShutdown Shutdown_clone(const struct LDKShutdown *NONNULL_PTR orig);
21640 /* @internal */
21641 export function Shutdown_clone(orig: number): number {
21642         if(!isWasmInitialized) {
21643                 throw new Error("initializeWasm() must be awaited first!");
21644         }
21645         const nativeResponseValue = wasm.TS_Shutdown_clone(orig);
21646         return nativeResponseValue;
21647 }
21648         // void ClosingSignedFeeRange_free(struct LDKClosingSignedFeeRange this_obj);
21649 /* @internal */
21650 export function ClosingSignedFeeRange_free(this_obj: number): void {
21651         if(!isWasmInitialized) {
21652                 throw new Error("initializeWasm() must be awaited first!");
21653         }
21654         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_free(this_obj);
21655         // debug statements here
21656 }
21657         // uint64_t ClosingSignedFeeRange_get_min_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
21658 /* @internal */
21659 export function ClosingSignedFeeRange_get_min_fee_satoshis(this_ptr: number): bigint {
21660         if(!isWasmInitialized) {
21661                 throw new Error("initializeWasm() must be awaited first!");
21662         }
21663         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_get_min_fee_satoshis(this_ptr);
21664         return nativeResponseValue;
21665 }
21666         // void ClosingSignedFeeRange_set_min_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
21667 /* @internal */
21668 export function ClosingSignedFeeRange_set_min_fee_satoshis(this_ptr: number, val: bigint): void {
21669         if(!isWasmInitialized) {
21670                 throw new Error("initializeWasm() must be awaited first!");
21671         }
21672         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_set_min_fee_satoshis(this_ptr, val);
21673         // debug statements here
21674 }
21675         // uint64_t ClosingSignedFeeRange_get_max_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
21676 /* @internal */
21677 export function ClosingSignedFeeRange_get_max_fee_satoshis(this_ptr: number): bigint {
21678         if(!isWasmInitialized) {
21679                 throw new Error("initializeWasm() must be awaited first!");
21680         }
21681         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_get_max_fee_satoshis(this_ptr);
21682         return nativeResponseValue;
21683 }
21684         // void ClosingSignedFeeRange_set_max_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
21685 /* @internal */
21686 export function ClosingSignedFeeRange_set_max_fee_satoshis(this_ptr: number, val: bigint): void {
21687         if(!isWasmInitialized) {
21688                 throw new Error("initializeWasm() must be awaited first!");
21689         }
21690         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_set_max_fee_satoshis(this_ptr, val);
21691         // debug statements here
21692 }
21693         // MUST_USE_RES struct LDKClosingSignedFeeRange ClosingSignedFeeRange_new(uint64_t min_fee_satoshis_arg, uint64_t max_fee_satoshis_arg);
21694 /* @internal */
21695 export function ClosingSignedFeeRange_new(min_fee_satoshis_arg: bigint, max_fee_satoshis_arg: bigint): number {
21696         if(!isWasmInitialized) {
21697                 throw new Error("initializeWasm() must be awaited first!");
21698         }
21699         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_new(min_fee_satoshis_arg, max_fee_satoshis_arg);
21700         return nativeResponseValue;
21701 }
21702         // uintptr_t ClosingSignedFeeRange_clone_ptr(LDKClosingSignedFeeRange *NONNULL_PTR arg);
21703 /* @internal */
21704 export function ClosingSignedFeeRange_clone_ptr(arg: number): number {
21705         if(!isWasmInitialized) {
21706                 throw new Error("initializeWasm() must be awaited first!");
21707         }
21708         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_clone_ptr(arg);
21709         return nativeResponseValue;
21710 }
21711         // struct LDKClosingSignedFeeRange ClosingSignedFeeRange_clone(const struct LDKClosingSignedFeeRange *NONNULL_PTR orig);
21712 /* @internal */
21713 export function ClosingSignedFeeRange_clone(orig: number): number {
21714         if(!isWasmInitialized) {
21715                 throw new Error("initializeWasm() must be awaited first!");
21716         }
21717         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_clone(orig);
21718         return nativeResponseValue;
21719 }
21720         // void ClosingSigned_free(struct LDKClosingSigned this_obj);
21721 /* @internal */
21722 export function ClosingSigned_free(this_obj: number): void {
21723         if(!isWasmInitialized) {
21724                 throw new Error("initializeWasm() must be awaited first!");
21725         }
21726         const nativeResponseValue = wasm.TS_ClosingSigned_free(this_obj);
21727         // debug statements here
21728 }
21729         // const uint8_t (*ClosingSigned_get_channel_id(const struct LDKClosingSigned *NONNULL_PTR this_ptr))[32];
21730 /* @internal */
21731 export function ClosingSigned_get_channel_id(this_ptr: number): number {
21732         if(!isWasmInitialized) {
21733                 throw new Error("initializeWasm() must be awaited first!");
21734         }
21735         const nativeResponseValue = wasm.TS_ClosingSigned_get_channel_id(this_ptr);
21736         return nativeResponseValue;
21737 }
21738         // void ClosingSigned_set_channel_id(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21739 /* @internal */
21740 export function ClosingSigned_set_channel_id(this_ptr: number, val: number): void {
21741         if(!isWasmInitialized) {
21742                 throw new Error("initializeWasm() must be awaited first!");
21743         }
21744         const nativeResponseValue = wasm.TS_ClosingSigned_set_channel_id(this_ptr, val);
21745         // debug statements here
21746 }
21747         // uint64_t ClosingSigned_get_fee_satoshis(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
21748 /* @internal */
21749 export function ClosingSigned_get_fee_satoshis(this_ptr: number): bigint {
21750         if(!isWasmInitialized) {
21751                 throw new Error("initializeWasm() must be awaited first!");
21752         }
21753         const nativeResponseValue = wasm.TS_ClosingSigned_get_fee_satoshis(this_ptr);
21754         return nativeResponseValue;
21755 }
21756         // void ClosingSigned_set_fee_satoshis(struct LDKClosingSigned *NONNULL_PTR this_ptr, uint64_t val);
21757 /* @internal */
21758 export function ClosingSigned_set_fee_satoshis(this_ptr: number, val: bigint): void {
21759         if(!isWasmInitialized) {
21760                 throw new Error("initializeWasm() must be awaited first!");
21761         }
21762         const nativeResponseValue = wasm.TS_ClosingSigned_set_fee_satoshis(this_ptr, val);
21763         // debug statements here
21764 }
21765         // struct LDKSignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
21766 /* @internal */
21767 export function ClosingSigned_get_signature(this_ptr: number): number {
21768         if(!isWasmInitialized) {
21769                 throw new Error("initializeWasm() must be awaited first!");
21770         }
21771         const nativeResponseValue = wasm.TS_ClosingSigned_get_signature(this_ptr);
21772         return nativeResponseValue;
21773 }
21774         // void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
21775 /* @internal */
21776 export function ClosingSigned_set_signature(this_ptr: number, val: number): void {
21777         if(!isWasmInitialized) {
21778                 throw new Error("initializeWasm() must be awaited first!");
21779         }
21780         const nativeResponseValue = wasm.TS_ClosingSigned_set_signature(this_ptr, val);
21781         // debug statements here
21782 }
21783         // struct LDKClosingSignedFeeRange ClosingSigned_get_fee_range(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
21784 /* @internal */
21785 export function ClosingSigned_get_fee_range(this_ptr: number): number {
21786         if(!isWasmInitialized) {
21787                 throw new Error("initializeWasm() must be awaited first!");
21788         }
21789         const nativeResponseValue = wasm.TS_ClosingSigned_get_fee_range(this_ptr);
21790         return nativeResponseValue;
21791 }
21792         // void ClosingSigned_set_fee_range(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKClosingSignedFeeRange val);
21793 /* @internal */
21794 export function ClosingSigned_set_fee_range(this_ptr: number, val: number): void {
21795         if(!isWasmInitialized) {
21796                 throw new Error("initializeWasm() must be awaited first!");
21797         }
21798         const nativeResponseValue = wasm.TS_ClosingSigned_set_fee_range(this_ptr, val);
21799         // debug statements here
21800 }
21801         // 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);
21802 /* @internal */
21803 export function ClosingSigned_new(channel_id_arg: number, fee_satoshis_arg: bigint, signature_arg: number, fee_range_arg: number): number {
21804         if(!isWasmInitialized) {
21805                 throw new Error("initializeWasm() must be awaited first!");
21806         }
21807         const nativeResponseValue = wasm.TS_ClosingSigned_new(channel_id_arg, fee_satoshis_arg, signature_arg, fee_range_arg);
21808         return nativeResponseValue;
21809 }
21810         // uintptr_t ClosingSigned_clone_ptr(LDKClosingSigned *NONNULL_PTR arg);
21811 /* @internal */
21812 export function ClosingSigned_clone_ptr(arg: number): number {
21813         if(!isWasmInitialized) {
21814                 throw new Error("initializeWasm() must be awaited first!");
21815         }
21816         const nativeResponseValue = wasm.TS_ClosingSigned_clone_ptr(arg);
21817         return nativeResponseValue;
21818 }
21819         // struct LDKClosingSigned ClosingSigned_clone(const struct LDKClosingSigned *NONNULL_PTR orig);
21820 /* @internal */
21821 export function ClosingSigned_clone(orig: number): number {
21822         if(!isWasmInitialized) {
21823                 throw new Error("initializeWasm() must be awaited first!");
21824         }
21825         const nativeResponseValue = wasm.TS_ClosingSigned_clone(orig);
21826         return nativeResponseValue;
21827 }
21828         // void UpdateAddHTLC_free(struct LDKUpdateAddHTLC this_obj);
21829 /* @internal */
21830 export function UpdateAddHTLC_free(this_obj: number): void {
21831         if(!isWasmInitialized) {
21832                 throw new Error("initializeWasm() must be awaited first!");
21833         }
21834         const nativeResponseValue = wasm.TS_UpdateAddHTLC_free(this_obj);
21835         // debug statements here
21836 }
21837         // const uint8_t (*UpdateAddHTLC_get_channel_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
21838 /* @internal */
21839 export function UpdateAddHTLC_get_channel_id(this_ptr: number): number {
21840         if(!isWasmInitialized) {
21841                 throw new Error("initializeWasm() must be awaited first!");
21842         }
21843         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_channel_id(this_ptr);
21844         return nativeResponseValue;
21845 }
21846         // void UpdateAddHTLC_set_channel_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21847 /* @internal */
21848 export function UpdateAddHTLC_set_channel_id(this_ptr: number, val: number): void {
21849         if(!isWasmInitialized) {
21850                 throw new Error("initializeWasm() must be awaited first!");
21851         }
21852         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_channel_id(this_ptr, val);
21853         // debug statements here
21854 }
21855         // uint64_t UpdateAddHTLC_get_htlc_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
21856 /* @internal */
21857 export function UpdateAddHTLC_get_htlc_id(this_ptr: number): bigint {
21858         if(!isWasmInitialized) {
21859                 throw new Error("initializeWasm() must be awaited first!");
21860         }
21861         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_htlc_id(this_ptr);
21862         return nativeResponseValue;
21863 }
21864         // void UpdateAddHTLC_set_htlc_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
21865 /* @internal */
21866 export function UpdateAddHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
21867         if(!isWasmInitialized) {
21868                 throw new Error("initializeWasm() must be awaited first!");
21869         }
21870         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_htlc_id(this_ptr, val);
21871         // debug statements here
21872 }
21873         // uint64_t UpdateAddHTLC_get_amount_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
21874 /* @internal */
21875 export function UpdateAddHTLC_get_amount_msat(this_ptr: number): bigint {
21876         if(!isWasmInitialized) {
21877                 throw new Error("initializeWasm() must be awaited first!");
21878         }
21879         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_amount_msat(this_ptr);
21880         return nativeResponseValue;
21881 }
21882         // void UpdateAddHTLC_set_amount_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
21883 /* @internal */
21884 export function UpdateAddHTLC_set_amount_msat(this_ptr: number, val: bigint): void {
21885         if(!isWasmInitialized) {
21886                 throw new Error("initializeWasm() must be awaited first!");
21887         }
21888         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_amount_msat(this_ptr, val);
21889         // debug statements here
21890 }
21891         // const uint8_t (*UpdateAddHTLC_get_payment_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
21892 /* @internal */
21893 export function UpdateAddHTLC_get_payment_hash(this_ptr: number): number {
21894         if(!isWasmInitialized) {
21895                 throw new Error("initializeWasm() must be awaited first!");
21896         }
21897         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_payment_hash(this_ptr);
21898         return nativeResponseValue;
21899 }
21900         // void UpdateAddHTLC_set_payment_hash(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21901 /* @internal */
21902 export function UpdateAddHTLC_set_payment_hash(this_ptr: number, val: number): void {
21903         if(!isWasmInitialized) {
21904                 throw new Error("initializeWasm() must be awaited first!");
21905         }
21906         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_payment_hash(this_ptr, val);
21907         // debug statements here
21908 }
21909         // uint32_t UpdateAddHTLC_get_cltv_expiry(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
21910 /* @internal */
21911 export function UpdateAddHTLC_get_cltv_expiry(this_ptr: number): number {
21912         if(!isWasmInitialized) {
21913                 throw new Error("initializeWasm() must be awaited first!");
21914         }
21915         const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_cltv_expiry(this_ptr);
21916         return nativeResponseValue;
21917 }
21918         // void UpdateAddHTLC_set_cltv_expiry(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint32_t val);
21919 /* @internal */
21920 export function UpdateAddHTLC_set_cltv_expiry(this_ptr: number, val: number): void {
21921         if(!isWasmInitialized) {
21922                 throw new Error("initializeWasm() must be awaited first!");
21923         }
21924         const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_cltv_expiry(this_ptr, val);
21925         // debug statements here
21926 }
21927         // uintptr_t UpdateAddHTLC_clone_ptr(LDKUpdateAddHTLC *NONNULL_PTR arg);
21928 /* @internal */
21929 export function UpdateAddHTLC_clone_ptr(arg: number): number {
21930         if(!isWasmInitialized) {
21931                 throw new Error("initializeWasm() must be awaited first!");
21932         }
21933         const nativeResponseValue = wasm.TS_UpdateAddHTLC_clone_ptr(arg);
21934         return nativeResponseValue;
21935 }
21936         // struct LDKUpdateAddHTLC UpdateAddHTLC_clone(const struct LDKUpdateAddHTLC *NONNULL_PTR orig);
21937 /* @internal */
21938 export function UpdateAddHTLC_clone(orig: number): number {
21939         if(!isWasmInitialized) {
21940                 throw new Error("initializeWasm() must be awaited first!");
21941         }
21942         const nativeResponseValue = wasm.TS_UpdateAddHTLC_clone(orig);
21943         return nativeResponseValue;
21944 }
21945         // void UpdateFulfillHTLC_free(struct LDKUpdateFulfillHTLC this_obj);
21946 /* @internal */
21947 export function UpdateFulfillHTLC_free(this_obj: number): void {
21948         if(!isWasmInitialized) {
21949                 throw new Error("initializeWasm() must be awaited first!");
21950         }
21951         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_free(this_obj);
21952         // debug statements here
21953 }
21954         // const uint8_t (*UpdateFulfillHTLC_get_channel_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
21955 /* @internal */
21956 export function UpdateFulfillHTLC_get_channel_id(this_ptr: number): number {
21957         if(!isWasmInitialized) {
21958                 throw new Error("initializeWasm() must be awaited first!");
21959         }
21960         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_channel_id(this_ptr);
21961         return nativeResponseValue;
21962 }
21963         // void UpdateFulfillHTLC_set_channel_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21964 /* @internal */
21965 export function UpdateFulfillHTLC_set_channel_id(this_ptr: number, val: number): void {
21966         if(!isWasmInitialized) {
21967                 throw new Error("initializeWasm() must be awaited first!");
21968         }
21969         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_channel_id(this_ptr, val);
21970         // debug statements here
21971 }
21972         // uint64_t UpdateFulfillHTLC_get_htlc_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr);
21973 /* @internal */
21974 export function UpdateFulfillHTLC_get_htlc_id(this_ptr: number): bigint {
21975         if(!isWasmInitialized) {
21976                 throw new Error("initializeWasm() must be awaited first!");
21977         }
21978         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_htlc_id(this_ptr);
21979         return nativeResponseValue;
21980 }
21981         // void UpdateFulfillHTLC_set_htlc_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, uint64_t val);
21982 /* @internal */
21983 export function UpdateFulfillHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
21984         if(!isWasmInitialized) {
21985                 throw new Error("initializeWasm() must be awaited first!");
21986         }
21987         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_htlc_id(this_ptr, val);
21988         // debug statements here
21989 }
21990         // const uint8_t (*UpdateFulfillHTLC_get_payment_preimage(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
21991 /* @internal */
21992 export function UpdateFulfillHTLC_get_payment_preimage(this_ptr: number): number {
21993         if(!isWasmInitialized) {
21994                 throw new Error("initializeWasm() must be awaited first!");
21995         }
21996         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_payment_preimage(this_ptr);
21997         return nativeResponseValue;
21998 }
21999         // void UpdateFulfillHTLC_set_payment_preimage(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22000 /* @internal */
22001 export function UpdateFulfillHTLC_set_payment_preimage(this_ptr: number, val: number): void {
22002         if(!isWasmInitialized) {
22003                 throw new Error("initializeWasm() must be awaited first!");
22004         }
22005         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_payment_preimage(this_ptr, val);
22006         // debug statements here
22007 }
22008         // MUST_USE_RES struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t htlc_id_arg, struct LDKThirtyTwoBytes payment_preimage_arg);
22009 /* @internal */
22010 export function UpdateFulfillHTLC_new(channel_id_arg: number, htlc_id_arg: bigint, payment_preimage_arg: number): number {
22011         if(!isWasmInitialized) {
22012                 throw new Error("initializeWasm() must be awaited first!");
22013         }
22014         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_new(channel_id_arg, htlc_id_arg, payment_preimage_arg);
22015         return nativeResponseValue;
22016 }
22017         // uintptr_t UpdateFulfillHTLC_clone_ptr(LDKUpdateFulfillHTLC *NONNULL_PTR arg);
22018 /* @internal */
22019 export function UpdateFulfillHTLC_clone_ptr(arg: number): number {
22020         if(!isWasmInitialized) {
22021                 throw new Error("initializeWasm() must be awaited first!");
22022         }
22023         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_clone_ptr(arg);
22024         return nativeResponseValue;
22025 }
22026         // struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_clone(const struct LDKUpdateFulfillHTLC *NONNULL_PTR orig);
22027 /* @internal */
22028 export function UpdateFulfillHTLC_clone(orig: number): number {
22029         if(!isWasmInitialized) {
22030                 throw new Error("initializeWasm() must be awaited first!");
22031         }
22032         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_clone(orig);
22033         return nativeResponseValue;
22034 }
22035         // void UpdateFailHTLC_free(struct LDKUpdateFailHTLC this_obj);
22036 /* @internal */
22037 export function UpdateFailHTLC_free(this_obj: number): void {
22038         if(!isWasmInitialized) {
22039                 throw new Error("initializeWasm() must be awaited first!");
22040         }
22041         const nativeResponseValue = wasm.TS_UpdateFailHTLC_free(this_obj);
22042         // debug statements here
22043 }
22044         // const uint8_t (*UpdateFailHTLC_get_channel_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr))[32];
22045 /* @internal */
22046 export function UpdateFailHTLC_get_channel_id(this_ptr: number): number {
22047         if(!isWasmInitialized) {
22048                 throw new Error("initializeWasm() must be awaited first!");
22049         }
22050         const nativeResponseValue = wasm.TS_UpdateFailHTLC_get_channel_id(this_ptr);
22051         return nativeResponseValue;
22052 }
22053         // void UpdateFailHTLC_set_channel_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22054 /* @internal */
22055 export function UpdateFailHTLC_set_channel_id(this_ptr: number, val: number): void {
22056         if(!isWasmInitialized) {
22057                 throw new Error("initializeWasm() must be awaited first!");
22058         }
22059         const nativeResponseValue = wasm.TS_UpdateFailHTLC_set_channel_id(this_ptr, val);
22060         // debug statements here
22061 }
22062         // uint64_t UpdateFailHTLC_get_htlc_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr);
22063 /* @internal */
22064 export function UpdateFailHTLC_get_htlc_id(this_ptr: number): bigint {
22065         if(!isWasmInitialized) {
22066                 throw new Error("initializeWasm() must be awaited first!");
22067         }
22068         const nativeResponseValue = wasm.TS_UpdateFailHTLC_get_htlc_id(this_ptr);
22069         return nativeResponseValue;
22070 }
22071         // void UpdateFailHTLC_set_htlc_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, uint64_t val);
22072 /* @internal */
22073 export function UpdateFailHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
22074         if(!isWasmInitialized) {
22075                 throw new Error("initializeWasm() must be awaited first!");
22076         }
22077         const nativeResponseValue = wasm.TS_UpdateFailHTLC_set_htlc_id(this_ptr, val);
22078         // debug statements here
22079 }
22080         // uintptr_t UpdateFailHTLC_clone_ptr(LDKUpdateFailHTLC *NONNULL_PTR arg);
22081 /* @internal */
22082 export function UpdateFailHTLC_clone_ptr(arg: number): number {
22083         if(!isWasmInitialized) {
22084                 throw new Error("initializeWasm() must be awaited first!");
22085         }
22086         const nativeResponseValue = wasm.TS_UpdateFailHTLC_clone_ptr(arg);
22087         return nativeResponseValue;
22088 }
22089         // struct LDKUpdateFailHTLC UpdateFailHTLC_clone(const struct LDKUpdateFailHTLC *NONNULL_PTR orig);
22090 /* @internal */
22091 export function UpdateFailHTLC_clone(orig: number): number {
22092         if(!isWasmInitialized) {
22093                 throw new Error("initializeWasm() must be awaited first!");
22094         }
22095         const nativeResponseValue = wasm.TS_UpdateFailHTLC_clone(orig);
22096         return nativeResponseValue;
22097 }
22098         // void UpdateFailMalformedHTLC_free(struct LDKUpdateFailMalformedHTLC this_obj);
22099 /* @internal */
22100 export function UpdateFailMalformedHTLC_free(this_obj: number): void {
22101         if(!isWasmInitialized) {
22102                 throw new Error("initializeWasm() must be awaited first!");
22103         }
22104         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_free(this_obj);
22105         // debug statements here
22106 }
22107         // const uint8_t (*UpdateFailMalformedHTLC_get_channel_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr))[32];
22108 /* @internal */
22109 export function UpdateFailMalformedHTLC_get_channel_id(this_ptr: number): number {
22110         if(!isWasmInitialized) {
22111                 throw new Error("initializeWasm() must be awaited first!");
22112         }
22113         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_channel_id(this_ptr);
22114         return nativeResponseValue;
22115 }
22116         // void UpdateFailMalformedHTLC_set_channel_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22117 /* @internal */
22118 export function UpdateFailMalformedHTLC_set_channel_id(this_ptr: number, val: number): void {
22119         if(!isWasmInitialized) {
22120                 throw new Error("initializeWasm() must be awaited first!");
22121         }
22122         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_channel_id(this_ptr, val);
22123         // debug statements here
22124 }
22125         // uint64_t UpdateFailMalformedHTLC_get_htlc_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
22126 /* @internal */
22127 export function UpdateFailMalformedHTLC_get_htlc_id(this_ptr: number): bigint {
22128         if(!isWasmInitialized) {
22129                 throw new Error("initializeWasm() must be awaited first!");
22130         }
22131         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_htlc_id(this_ptr);
22132         return nativeResponseValue;
22133 }
22134         // void UpdateFailMalformedHTLC_set_htlc_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint64_t val);
22135 /* @internal */
22136 export function UpdateFailMalformedHTLC_set_htlc_id(this_ptr: number, val: bigint): void {
22137         if(!isWasmInitialized) {
22138                 throw new Error("initializeWasm() must be awaited first!");
22139         }
22140         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_htlc_id(this_ptr, val);
22141         // debug statements here
22142 }
22143         // uint16_t UpdateFailMalformedHTLC_get_failure_code(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
22144 /* @internal */
22145 export function UpdateFailMalformedHTLC_get_failure_code(this_ptr: number): number {
22146         if(!isWasmInitialized) {
22147                 throw new Error("initializeWasm() must be awaited first!");
22148         }
22149         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_failure_code(this_ptr);
22150         return nativeResponseValue;
22151 }
22152         // void UpdateFailMalformedHTLC_set_failure_code(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint16_t val);
22153 /* @internal */
22154 export function UpdateFailMalformedHTLC_set_failure_code(this_ptr: number, val: number): void {
22155         if(!isWasmInitialized) {
22156                 throw new Error("initializeWasm() must be awaited first!");
22157         }
22158         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_failure_code(this_ptr, val);
22159         // debug statements here
22160 }
22161         // uintptr_t UpdateFailMalformedHTLC_clone_ptr(LDKUpdateFailMalformedHTLC *NONNULL_PTR arg);
22162 /* @internal */
22163 export function UpdateFailMalformedHTLC_clone_ptr(arg: number): number {
22164         if(!isWasmInitialized) {
22165                 throw new Error("initializeWasm() must be awaited first!");
22166         }
22167         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_clone_ptr(arg);
22168         return nativeResponseValue;
22169 }
22170         // struct LDKUpdateFailMalformedHTLC UpdateFailMalformedHTLC_clone(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR orig);
22171 /* @internal */
22172 export function UpdateFailMalformedHTLC_clone(orig: number): number {
22173         if(!isWasmInitialized) {
22174                 throw new Error("initializeWasm() must be awaited first!");
22175         }
22176         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_clone(orig);
22177         return nativeResponseValue;
22178 }
22179         // void CommitmentSigned_free(struct LDKCommitmentSigned this_obj);
22180 /* @internal */
22181 export function CommitmentSigned_free(this_obj: number): void {
22182         if(!isWasmInitialized) {
22183                 throw new Error("initializeWasm() must be awaited first!");
22184         }
22185         const nativeResponseValue = wasm.TS_CommitmentSigned_free(this_obj);
22186         // debug statements here
22187 }
22188         // const uint8_t (*CommitmentSigned_get_channel_id(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr))[32];
22189 /* @internal */
22190 export function CommitmentSigned_get_channel_id(this_ptr: number): number {
22191         if(!isWasmInitialized) {
22192                 throw new Error("initializeWasm() must be awaited first!");
22193         }
22194         const nativeResponseValue = wasm.TS_CommitmentSigned_get_channel_id(this_ptr);
22195         return nativeResponseValue;
22196 }
22197         // void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22198 /* @internal */
22199 export function CommitmentSigned_set_channel_id(this_ptr: number, val: number): void {
22200         if(!isWasmInitialized) {
22201                 throw new Error("initializeWasm() must be awaited first!");
22202         }
22203         const nativeResponseValue = wasm.TS_CommitmentSigned_set_channel_id(this_ptr, val);
22204         // debug statements here
22205 }
22206         // struct LDKSignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
22207 /* @internal */
22208 export function CommitmentSigned_get_signature(this_ptr: number): number {
22209         if(!isWasmInitialized) {
22210                 throw new Error("initializeWasm() must be awaited first!");
22211         }
22212         const nativeResponseValue = wasm.TS_CommitmentSigned_get_signature(this_ptr);
22213         return nativeResponseValue;
22214 }
22215         // void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
22216 /* @internal */
22217 export function CommitmentSigned_set_signature(this_ptr: number, val: number): void {
22218         if(!isWasmInitialized) {
22219                 throw new Error("initializeWasm() must be awaited first!");
22220         }
22221         const nativeResponseValue = wasm.TS_CommitmentSigned_set_signature(this_ptr, val);
22222         // debug statements here
22223 }
22224         // void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
22225 /* @internal */
22226 export function CommitmentSigned_set_htlc_signatures(this_ptr: number, val: number): void {
22227         if(!isWasmInitialized) {
22228                 throw new Error("initializeWasm() must be awaited first!");
22229         }
22230         const nativeResponseValue = wasm.TS_CommitmentSigned_set_htlc_signatures(this_ptr, val);
22231         // debug statements here
22232 }
22233         // MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg, struct LDKCVec_SignatureZ htlc_signatures_arg);
22234 /* @internal */
22235 export function CommitmentSigned_new(channel_id_arg: number, signature_arg: number, htlc_signatures_arg: number): number {
22236         if(!isWasmInitialized) {
22237                 throw new Error("initializeWasm() must be awaited first!");
22238         }
22239         const nativeResponseValue = wasm.TS_CommitmentSigned_new(channel_id_arg, signature_arg, htlc_signatures_arg);
22240         return nativeResponseValue;
22241 }
22242         // uintptr_t CommitmentSigned_clone_ptr(LDKCommitmentSigned *NONNULL_PTR arg);
22243 /* @internal */
22244 export function CommitmentSigned_clone_ptr(arg: number): number {
22245         if(!isWasmInitialized) {
22246                 throw new Error("initializeWasm() must be awaited first!");
22247         }
22248         const nativeResponseValue = wasm.TS_CommitmentSigned_clone_ptr(arg);
22249         return nativeResponseValue;
22250 }
22251         // struct LDKCommitmentSigned CommitmentSigned_clone(const struct LDKCommitmentSigned *NONNULL_PTR orig);
22252 /* @internal */
22253 export function CommitmentSigned_clone(orig: number): number {
22254         if(!isWasmInitialized) {
22255                 throw new Error("initializeWasm() must be awaited first!");
22256         }
22257         const nativeResponseValue = wasm.TS_CommitmentSigned_clone(orig);
22258         return nativeResponseValue;
22259 }
22260         // void RevokeAndACK_free(struct LDKRevokeAndACK this_obj);
22261 /* @internal */
22262 export function RevokeAndACK_free(this_obj: number): void {
22263         if(!isWasmInitialized) {
22264                 throw new Error("initializeWasm() must be awaited first!");
22265         }
22266         const nativeResponseValue = wasm.TS_RevokeAndACK_free(this_obj);
22267         // debug statements here
22268 }
22269         // const uint8_t (*RevokeAndACK_get_channel_id(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
22270 /* @internal */
22271 export function RevokeAndACK_get_channel_id(this_ptr: number): number {
22272         if(!isWasmInitialized) {
22273                 throw new Error("initializeWasm() must be awaited first!");
22274         }
22275         const nativeResponseValue = wasm.TS_RevokeAndACK_get_channel_id(this_ptr);
22276         return nativeResponseValue;
22277 }
22278         // void RevokeAndACK_set_channel_id(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22279 /* @internal */
22280 export function RevokeAndACK_set_channel_id(this_ptr: number, val: number): void {
22281         if(!isWasmInitialized) {
22282                 throw new Error("initializeWasm() must be awaited first!");
22283         }
22284         const nativeResponseValue = wasm.TS_RevokeAndACK_set_channel_id(this_ptr, val);
22285         // debug statements here
22286 }
22287         // const uint8_t (*RevokeAndACK_get_per_commitment_secret(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
22288 /* @internal */
22289 export function RevokeAndACK_get_per_commitment_secret(this_ptr: number): number {
22290         if(!isWasmInitialized) {
22291                 throw new Error("initializeWasm() must be awaited first!");
22292         }
22293         const nativeResponseValue = wasm.TS_RevokeAndACK_get_per_commitment_secret(this_ptr);
22294         return nativeResponseValue;
22295 }
22296         // void RevokeAndACK_set_per_commitment_secret(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22297 /* @internal */
22298 export function RevokeAndACK_set_per_commitment_secret(this_ptr: number, val: number): void {
22299         if(!isWasmInitialized) {
22300                 throw new Error("initializeWasm() must be awaited first!");
22301         }
22302         const nativeResponseValue = wasm.TS_RevokeAndACK_set_per_commitment_secret(this_ptr, val);
22303         // debug statements here
22304 }
22305         // struct LDKPublicKey RevokeAndACK_get_next_per_commitment_point(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr);
22306 /* @internal */
22307 export function RevokeAndACK_get_next_per_commitment_point(this_ptr: number): number {
22308         if(!isWasmInitialized) {
22309                 throw new Error("initializeWasm() must be awaited first!");
22310         }
22311         const nativeResponseValue = wasm.TS_RevokeAndACK_get_next_per_commitment_point(this_ptr);
22312         return nativeResponseValue;
22313 }
22314         // void RevokeAndACK_set_next_per_commitment_point(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22315 /* @internal */
22316 export function RevokeAndACK_set_next_per_commitment_point(this_ptr: number, val: number): void {
22317         if(!isWasmInitialized) {
22318                 throw new Error("initializeWasm() must be awaited first!");
22319         }
22320         const nativeResponseValue = wasm.TS_RevokeAndACK_set_next_per_commitment_point(this_ptr, val);
22321         // debug statements here
22322 }
22323         // 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);
22324 /* @internal */
22325 export function RevokeAndACK_new(channel_id_arg: number, per_commitment_secret_arg: number, next_per_commitment_point_arg: number): number {
22326         if(!isWasmInitialized) {
22327                 throw new Error("initializeWasm() must be awaited first!");
22328         }
22329         const nativeResponseValue = wasm.TS_RevokeAndACK_new(channel_id_arg, per_commitment_secret_arg, next_per_commitment_point_arg);
22330         return nativeResponseValue;
22331 }
22332         // uintptr_t RevokeAndACK_clone_ptr(LDKRevokeAndACK *NONNULL_PTR arg);
22333 /* @internal */
22334 export function RevokeAndACK_clone_ptr(arg: number): number {
22335         if(!isWasmInitialized) {
22336                 throw new Error("initializeWasm() must be awaited first!");
22337         }
22338         const nativeResponseValue = wasm.TS_RevokeAndACK_clone_ptr(arg);
22339         return nativeResponseValue;
22340 }
22341         // struct LDKRevokeAndACK RevokeAndACK_clone(const struct LDKRevokeAndACK *NONNULL_PTR orig);
22342 /* @internal */
22343 export function RevokeAndACK_clone(orig: number): number {
22344         if(!isWasmInitialized) {
22345                 throw new Error("initializeWasm() must be awaited first!");
22346         }
22347         const nativeResponseValue = wasm.TS_RevokeAndACK_clone(orig);
22348         return nativeResponseValue;
22349 }
22350         // void UpdateFee_free(struct LDKUpdateFee this_obj);
22351 /* @internal */
22352 export function UpdateFee_free(this_obj: number): void {
22353         if(!isWasmInitialized) {
22354                 throw new Error("initializeWasm() must be awaited first!");
22355         }
22356         const nativeResponseValue = wasm.TS_UpdateFee_free(this_obj);
22357         // debug statements here
22358 }
22359         // const uint8_t (*UpdateFee_get_channel_id(const struct LDKUpdateFee *NONNULL_PTR this_ptr))[32];
22360 /* @internal */
22361 export function UpdateFee_get_channel_id(this_ptr: number): number {
22362         if(!isWasmInitialized) {
22363                 throw new Error("initializeWasm() must be awaited first!");
22364         }
22365         const nativeResponseValue = wasm.TS_UpdateFee_get_channel_id(this_ptr);
22366         return nativeResponseValue;
22367 }
22368         // void UpdateFee_set_channel_id(struct LDKUpdateFee *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22369 /* @internal */
22370 export function UpdateFee_set_channel_id(this_ptr: number, val: number): void {
22371         if(!isWasmInitialized) {
22372                 throw new Error("initializeWasm() must be awaited first!");
22373         }
22374         const nativeResponseValue = wasm.TS_UpdateFee_set_channel_id(this_ptr, val);
22375         // debug statements here
22376 }
22377         // uint32_t UpdateFee_get_feerate_per_kw(const struct LDKUpdateFee *NONNULL_PTR this_ptr);
22378 /* @internal */
22379 export function UpdateFee_get_feerate_per_kw(this_ptr: number): number {
22380         if(!isWasmInitialized) {
22381                 throw new Error("initializeWasm() must be awaited first!");
22382         }
22383         const nativeResponseValue = wasm.TS_UpdateFee_get_feerate_per_kw(this_ptr);
22384         return nativeResponseValue;
22385 }
22386         // void UpdateFee_set_feerate_per_kw(struct LDKUpdateFee *NONNULL_PTR this_ptr, uint32_t val);
22387 /* @internal */
22388 export function UpdateFee_set_feerate_per_kw(this_ptr: number, val: number): void {
22389         if(!isWasmInitialized) {
22390                 throw new Error("initializeWasm() must be awaited first!");
22391         }
22392         const nativeResponseValue = wasm.TS_UpdateFee_set_feerate_per_kw(this_ptr, val);
22393         // debug statements here
22394 }
22395         // MUST_USE_RES struct LDKUpdateFee UpdateFee_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t feerate_per_kw_arg);
22396 /* @internal */
22397 export function UpdateFee_new(channel_id_arg: number, feerate_per_kw_arg: number): number {
22398         if(!isWasmInitialized) {
22399                 throw new Error("initializeWasm() must be awaited first!");
22400         }
22401         const nativeResponseValue = wasm.TS_UpdateFee_new(channel_id_arg, feerate_per_kw_arg);
22402         return nativeResponseValue;
22403 }
22404         // uintptr_t UpdateFee_clone_ptr(LDKUpdateFee *NONNULL_PTR arg);
22405 /* @internal */
22406 export function UpdateFee_clone_ptr(arg: number): number {
22407         if(!isWasmInitialized) {
22408                 throw new Error("initializeWasm() must be awaited first!");
22409         }
22410         const nativeResponseValue = wasm.TS_UpdateFee_clone_ptr(arg);
22411         return nativeResponseValue;
22412 }
22413         // struct LDKUpdateFee UpdateFee_clone(const struct LDKUpdateFee *NONNULL_PTR orig);
22414 /* @internal */
22415 export function UpdateFee_clone(orig: number): number {
22416         if(!isWasmInitialized) {
22417                 throw new Error("initializeWasm() must be awaited first!");
22418         }
22419         const nativeResponseValue = wasm.TS_UpdateFee_clone(orig);
22420         return nativeResponseValue;
22421 }
22422         // void DataLossProtect_free(struct LDKDataLossProtect this_obj);
22423 /* @internal */
22424 export function DataLossProtect_free(this_obj: number): void {
22425         if(!isWasmInitialized) {
22426                 throw new Error("initializeWasm() must be awaited first!");
22427         }
22428         const nativeResponseValue = wasm.TS_DataLossProtect_free(this_obj);
22429         // debug statements here
22430 }
22431         // const uint8_t (*DataLossProtect_get_your_last_per_commitment_secret(const struct LDKDataLossProtect *NONNULL_PTR this_ptr))[32];
22432 /* @internal */
22433 export function DataLossProtect_get_your_last_per_commitment_secret(this_ptr: number): number {
22434         if(!isWasmInitialized) {
22435                 throw new Error("initializeWasm() must be awaited first!");
22436         }
22437         const nativeResponseValue = wasm.TS_DataLossProtect_get_your_last_per_commitment_secret(this_ptr);
22438         return nativeResponseValue;
22439 }
22440         // void DataLossProtect_set_your_last_per_commitment_secret(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22441 /* @internal */
22442 export function DataLossProtect_set_your_last_per_commitment_secret(this_ptr: number, val: number): void {
22443         if(!isWasmInitialized) {
22444                 throw new Error("initializeWasm() must be awaited first!");
22445         }
22446         const nativeResponseValue = wasm.TS_DataLossProtect_set_your_last_per_commitment_secret(this_ptr, val);
22447         // debug statements here
22448 }
22449         // struct LDKPublicKey DataLossProtect_get_my_current_per_commitment_point(const struct LDKDataLossProtect *NONNULL_PTR this_ptr);
22450 /* @internal */
22451 export function DataLossProtect_get_my_current_per_commitment_point(this_ptr: number): number {
22452         if(!isWasmInitialized) {
22453                 throw new Error("initializeWasm() must be awaited first!");
22454         }
22455         const nativeResponseValue = wasm.TS_DataLossProtect_get_my_current_per_commitment_point(this_ptr);
22456         return nativeResponseValue;
22457 }
22458         // void DataLossProtect_set_my_current_per_commitment_point(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22459 /* @internal */
22460 export function DataLossProtect_set_my_current_per_commitment_point(this_ptr: number, val: number): void {
22461         if(!isWasmInitialized) {
22462                 throw new Error("initializeWasm() must be awaited first!");
22463         }
22464         const nativeResponseValue = wasm.TS_DataLossProtect_set_my_current_per_commitment_point(this_ptr, val);
22465         // debug statements here
22466 }
22467         // MUST_USE_RES struct LDKDataLossProtect DataLossProtect_new(struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg);
22468 /* @internal */
22469 export function DataLossProtect_new(your_last_per_commitment_secret_arg: number, my_current_per_commitment_point_arg: number): number {
22470         if(!isWasmInitialized) {
22471                 throw new Error("initializeWasm() must be awaited first!");
22472         }
22473         const nativeResponseValue = wasm.TS_DataLossProtect_new(your_last_per_commitment_secret_arg, my_current_per_commitment_point_arg);
22474         return nativeResponseValue;
22475 }
22476         // uintptr_t DataLossProtect_clone_ptr(LDKDataLossProtect *NONNULL_PTR arg);
22477 /* @internal */
22478 export function DataLossProtect_clone_ptr(arg: number): number {
22479         if(!isWasmInitialized) {
22480                 throw new Error("initializeWasm() must be awaited first!");
22481         }
22482         const nativeResponseValue = wasm.TS_DataLossProtect_clone_ptr(arg);
22483         return nativeResponseValue;
22484 }
22485         // struct LDKDataLossProtect DataLossProtect_clone(const struct LDKDataLossProtect *NONNULL_PTR orig);
22486 /* @internal */
22487 export function DataLossProtect_clone(orig: number): number {
22488         if(!isWasmInitialized) {
22489                 throw new Error("initializeWasm() must be awaited first!");
22490         }
22491         const nativeResponseValue = wasm.TS_DataLossProtect_clone(orig);
22492         return nativeResponseValue;
22493 }
22494         // void ChannelReestablish_free(struct LDKChannelReestablish this_obj);
22495 /* @internal */
22496 export function ChannelReestablish_free(this_obj: number): void {
22497         if(!isWasmInitialized) {
22498                 throw new Error("initializeWasm() must be awaited first!");
22499         }
22500         const nativeResponseValue = wasm.TS_ChannelReestablish_free(this_obj);
22501         // debug statements here
22502 }
22503         // const uint8_t (*ChannelReestablish_get_channel_id(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32];
22504 /* @internal */
22505 export function ChannelReestablish_get_channel_id(this_ptr: number): number {
22506         if(!isWasmInitialized) {
22507                 throw new Error("initializeWasm() must be awaited first!");
22508         }
22509         const nativeResponseValue = wasm.TS_ChannelReestablish_get_channel_id(this_ptr);
22510         return nativeResponseValue;
22511 }
22512         // void ChannelReestablish_set_channel_id(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22513 /* @internal */
22514 export function ChannelReestablish_set_channel_id(this_ptr: number, val: number): void {
22515         if(!isWasmInitialized) {
22516                 throw new Error("initializeWasm() must be awaited first!");
22517         }
22518         const nativeResponseValue = wasm.TS_ChannelReestablish_set_channel_id(this_ptr, val);
22519         // debug statements here
22520 }
22521         // uint64_t ChannelReestablish_get_next_local_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
22522 /* @internal */
22523 export function ChannelReestablish_get_next_local_commitment_number(this_ptr: number): bigint {
22524         if(!isWasmInitialized) {
22525                 throw new Error("initializeWasm() must be awaited first!");
22526         }
22527         const nativeResponseValue = wasm.TS_ChannelReestablish_get_next_local_commitment_number(this_ptr);
22528         return nativeResponseValue;
22529 }
22530         // void ChannelReestablish_set_next_local_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
22531 /* @internal */
22532 export function ChannelReestablish_set_next_local_commitment_number(this_ptr: number, val: bigint): void {
22533         if(!isWasmInitialized) {
22534                 throw new Error("initializeWasm() must be awaited first!");
22535         }
22536         const nativeResponseValue = wasm.TS_ChannelReestablish_set_next_local_commitment_number(this_ptr, val);
22537         // debug statements here
22538 }
22539         // uint64_t ChannelReestablish_get_next_remote_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
22540 /* @internal */
22541 export function ChannelReestablish_get_next_remote_commitment_number(this_ptr: number): bigint {
22542         if(!isWasmInitialized) {
22543                 throw new Error("initializeWasm() must be awaited first!");
22544         }
22545         const nativeResponseValue = wasm.TS_ChannelReestablish_get_next_remote_commitment_number(this_ptr);
22546         return nativeResponseValue;
22547 }
22548         // void ChannelReestablish_set_next_remote_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
22549 /* @internal */
22550 export function ChannelReestablish_set_next_remote_commitment_number(this_ptr: number, val: bigint): void {
22551         if(!isWasmInitialized) {
22552                 throw new Error("initializeWasm() must be awaited first!");
22553         }
22554         const nativeResponseValue = wasm.TS_ChannelReestablish_set_next_remote_commitment_number(this_ptr, val);
22555         // debug statements here
22556 }
22557         // uintptr_t ChannelReestablish_clone_ptr(LDKChannelReestablish *NONNULL_PTR arg);
22558 /* @internal */
22559 export function ChannelReestablish_clone_ptr(arg: number): number {
22560         if(!isWasmInitialized) {
22561                 throw new Error("initializeWasm() must be awaited first!");
22562         }
22563         const nativeResponseValue = wasm.TS_ChannelReestablish_clone_ptr(arg);
22564         return nativeResponseValue;
22565 }
22566         // struct LDKChannelReestablish ChannelReestablish_clone(const struct LDKChannelReestablish *NONNULL_PTR orig);
22567 /* @internal */
22568 export function ChannelReestablish_clone(orig: number): number {
22569         if(!isWasmInitialized) {
22570                 throw new Error("initializeWasm() must be awaited first!");
22571         }
22572         const nativeResponseValue = wasm.TS_ChannelReestablish_clone(orig);
22573         return nativeResponseValue;
22574 }
22575         // void AnnouncementSignatures_free(struct LDKAnnouncementSignatures this_obj);
22576 /* @internal */
22577 export function AnnouncementSignatures_free(this_obj: number): void {
22578         if(!isWasmInitialized) {
22579                 throw new Error("initializeWasm() must be awaited first!");
22580         }
22581         const nativeResponseValue = wasm.TS_AnnouncementSignatures_free(this_obj);
22582         // debug statements here
22583 }
22584         // const uint8_t (*AnnouncementSignatures_get_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr))[32];
22585 /* @internal */
22586 export function AnnouncementSignatures_get_channel_id(this_ptr: number): number {
22587         if(!isWasmInitialized) {
22588                 throw new Error("initializeWasm() must be awaited first!");
22589         }
22590         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_channel_id(this_ptr);
22591         return nativeResponseValue;
22592 }
22593         // void AnnouncementSignatures_set_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22594 /* @internal */
22595 export function AnnouncementSignatures_set_channel_id(this_ptr: number, val: number): void {
22596         if(!isWasmInitialized) {
22597                 throw new Error("initializeWasm() must be awaited first!");
22598         }
22599         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_channel_id(this_ptr, val);
22600         // debug statements here
22601 }
22602         // uint64_t AnnouncementSignatures_get_short_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
22603 /* @internal */
22604 export function AnnouncementSignatures_get_short_channel_id(this_ptr: number): bigint {
22605         if(!isWasmInitialized) {
22606                 throw new Error("initializeWasm() must be awaited first!");
22607         }
22608         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_short_channel_id(this_ptr);
22609         return nativeResponseValue;
22610 }
22611         // void AnnouncementSignatures_set_short_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, uint64_t val);
22612 /* @internal */
22613 export function AnnouncementSignatures_set_short_channel_id(this_ptr: number, val: bigint): void {
22614         if(!isWasmInitialized) {
22615                 throw new Error("initializeWasm() must be awaited first!");
22616         }
22617         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_short_channel_id(this_ptr, val);
22618         // debug statements here
22619 }
22620         // struct LDKSignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
22621 /* @internal */
22622 export function AnnouncementSignatures_get_node_signature(this_ptr: number): number {
22623         if(!isWasmInitialized) {
22624                 throw new Error("initializeWasm() must be awaited first!");
22625         }
22626         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_node_signature(this_ptr);
22627         return nativeResponseValue;
22628 }
22629         // void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
22630 /* @internal */
22631 export function AnnouncementSignatures_set_node_signature(this_ptr: number, val: number): void {
22632         if(!isWasmInitialized) {
22633                 throw new Error("initializeWasm() must be awaited first!");
22634         }
22635         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_node_signature(this_ptr, val);
22636         // debug statements here
22637 }
22638         // struct LDKSignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
22639 /* @internal */
22640 export function AnnouncementSignatures_get_bitcoin_signature(this_ptr: number): number {
22641         if(!isWasmInitialized) {
22642                 throw new Error("initializeWasm() must be awaited first!");
22643         }
22644         const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_bitcoin_signature(this_ptr);
22645         return nativeResponseValue;
22646 }
22647         // void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
22648 /* @internal */
22649 export function AnnouncementSignatures_set_bitcoin_signature(this_ptr: number, val: number): void {
22650         if(!isWasmInitialized) {
22651                 throw new Error("initializeWasm() must be awaited first!");
22652         }
22653         const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_bitcoin_signature(this_ptr, val);
22654         // debug statements here
22655 }
22656         // 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);
22657 /* @internal */
22658 export function AnnouncementSignatures_new(channel_id_arg: number, short_channel_id_arg: bigint, node_signature_arg: number, bitcoin_signature_arg: number): number {
22659         if(!isWasmInitialized) {
22660                 throw new Error("initializeWasm() must be awaited first!");
22661         }
22662         const nativeResponseValue = wasm.TS_AnnouncementSignatures_new(channel_id_arg, short_channel_id_arg, node_signature_arg, bitcoin_signature_arg);
22663         return nativeResponseValue;
22664 }
22665         // uintptr_t AnnouncementSignatures_clone_ptr(LDKAnnouncementSignatures *NONNULL_PTR arg);
22666 /* @internal */
22667 export function AnnouncementSignatures_clone_ptr(arg: number): number {
22668         if(!isWasmInitialized) {
22669                 throw new Error("initializeWasm() must be awaited first!");
22670         }
22671         const nativeResponseValue = wasm.TS_AnnouncementSignatures_clone_ptr(arg);
22672         return nativeResponseValue;
22673 }
22674         // struct LDKAnnouncementSignatures AnnouncementSignatures_clone(const struct LDKAnnouncementSignatures *NONNULL_PTR orig);
22675 /* @internal */
22676 export function AnnouncementSignatures_clone(orig: number): number {
22677         if(!isWasmInitialized) {
22678                 throw new Error("initializeWasm() must be awaited first!");
22679         }
22680         const nativeResponseValue = wasm.TS_AnnouncementSignatures_clone(orig);
22681         return nativeResponseValue;
22682 }
22683         // void NetAddress_free(struct LDKNetAddress this_ptr);
22684 /* @internal */
22685 export function NetAddress_free(this_ptr: number): void {
22686         if(!isWasmInitialized) {
22687                 throw new Error("initializeWasm() must be awaited first!");
22688         }
22689         const nativeResponseValue = wasm.TS_NetAddress_free(this_ptr);
22690         // debug statements here
22691 }
22692         // uintptr_t NetAddress_clone_ptr(LDKNetAddress *NONNULL_PTR arg);
22693 /* @internal */
22694 export function NetAddress_clone_ptr(arg: number): number {
22695         if(!isWasmInitialized) {
22696                 throw new Error("initializeWasm() must be awaited first!");
22697         }
22698         const nativeResponseValue = wasm.TS_NetAddress_clone_ptr(arg);
22699         return nativeResponseValue;
22700 }
22701         // struct LDKNetAddress NetAddress_clone(const struct LDKNetAddress *NONNULL_PTR orig);
22702 /* @internal */
22703 export function NetAddress_clone(orig: number): number {
22704         if(!isWasmInitialized) {
22705                 throw new Error("initializeWasm() must be awaited first!");
22706         }
22707         const nativeResponseValue = wasm.TS_NetAddress_clone(orig);
22708         return nativeResponseValue;
22709 }
22710         // struct LDKNetAddress NetAddress_ipv4(struct LDKFourBytes addr, uint16_t port);
22711 /* @internal */
22712 export function NetAddress_ipv4(addr: number, port: number): number {
22713         if(!isWasmInitialized) {
22714                 throw new Error("initializeWasm() must be awaited first!");
22715         }
22716         const nativeResponseValue = wasm.TS_NetAddress_ipv4(addr, port);
22717         return nativeResponseValue;
22718 }
22719         // struct LDKNetAddress NetAddress_ipv6(struct LDKSixteenBytes addr, uint16_t port);
22720 /* @internal */
22721 export function NetAddress_ipv6(addr: number, port: number): number {
22722         if(!isWasmInitialized) {
22723                 throw new Error("initializeWasm() must be awaited first!");
22724         }
22725         const nativeResponseValue = wasm.TS_NetAddress_ipv6(addr, port);
22726         return nativeResponseValue;
22727 }
22728         // struct LDKNetAddress NetAddress_onion_v2(struct LDKTwelveBytes a);
22729 /* @internal */
22730 export function NetAddress_onion_v2(a: number): number {
22731         if(!isWasmInitialized) {
22732                 throw new Error("initializeWasm() must be awaited first!");
22733         }
22734         const nativeResponseValue = wasm.TS_NetAddress_onion_v2(a);
22735         return nativeResponseValue;
22736 }
22737         // struct LDKNetAddress NetAddress_onion_v3(struct LDKThirtyTwoBytes ed25519_pubkey, uint16_t checksum, uint8_t version, uint16_t port);
22738 /* @internal */
22739 export function NetAddress_onion_v3(ed25519_pubkey: number, checksum: number, version: number, port: number): number {
22740         if(!isWasmInitialized) {
22741                 throw new Error("initializeWasm() must be awaited first!");
22742         }
22743         const nativeResponseValue = wasm.TS_NetAddress_onion_v3(ed25519_pubkey, checksum, version, port);
22744         return nativeResponseValue;
22745 }
22746         // struct LDKCVec_u8Z NetAddress_write(const struct LDKNetAddress *NONNULL_PTR obj);
22747 /* @internal */
22748 export function NetAddress_write(obj: number): number {
22749         if(!isWasmInitialized) {
22750                 throw new Error("initializeWasm() must be awaited first!");
22751         }
22752         const nativeResponseValue = wasm.TS_NetAddress_write(obj);
22753         return nativeResponseValue;
22754 }
22755         // struct LDKCResult_NetAddressDecodeErrorZ NetAddress_read(struct LDKu8slice ser);
22756 /* @internal */
22757 export function NetAddress_read(ser: number): number {
22758         if(!isWasmInitialized) {
22759                 throw new Error("initializeWasm() must be awaited first!");
22760         }
22761         const nativeResponseValue = wasm.TS_NetAddress_read(ser);
22762         return nativeResponseValue;
22763 }
22764         // void UnsignedNodeAnnouncement_free(struct LDKUnsignedNodeAnnouncement this_obj);
22765 /* @internal */
22766 export function UnsignedNodeAnnouncement_free(this_obj: number): void {
22767         if(!isWasmInitialized) {
22768                 throw new Error("initializeWasm() must be awaited first!");
22769         }
22770         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_free(this_obj);
22771         // debug statements here
22772 }
22773         // struct LDKNodeFeatures UnsignedNodeAnnouncement_get_features(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
22774 /* @internal */
22775 export function UnsignedNodeAnnouncement_get_features(this_ptr: number): number {
22776         if(!isWasmInitialized) {
22777                 throw new Error("initializeWasm() must be awaited first!");
22778         }
22779         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_features(this_ptr);
22780         return nativeResponseValue;
22781 }
22782         // void UnsignedNodeAnnouncement_set_features(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
22783 /* @internal */
22784 export function UnsignedNodeAnnouncement_set_features(this_ptr: number, val: number): void {
22785         if(!isWasmInitialized) {
22786                 throw new Error("initializeWasm() must be awaited first!");
22787         }
22788         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_features(this_ptr, val);
22789         // debug statements here
22790 }
22791         // uint32_t UnsignedNodeAnnouncement_get_timestamp(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
22792 /* @internal */
22793 export function UnsignedNodeAnnouncement_get_timestamp(this_ptr: number): number {
22794         if(!isWasmInitialized) {
22795                 throw new Error("initializeWasm() must be awaited first!");
22796         }
22797         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_timestamp(this_ptr);
22798         return nativeResponseValue;
22799 }
22800         // void UnsignedNodeAnnouncement_set_timestamp(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, uint32_t val);
22801 /* @internal */
22802 export function UnsignedNodeAnnouncement_set_timestamp(this_ptr: number, val: number): void {
22803         if(!isWasmInitialized) {
22804                 throw new Error("initializeWasm() must be awaited first!");
22805         }
22806         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_timestamp(this_ptr, val);
22807         // debug statements here
22808 }
22809         // struct LDKPublicKey UnsignedNodeAnnouncement_get_node_id(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
22810 /* @internal */
22811 export function UnsignedNodeAnnouncement_get_node_id(this_ptr: number): number {
22812         if(!isWasmInitialized) {
22813                 throw new Error("initializeWasm() must be awaited first!");
22814         }
22815         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_node_id(this_ptr);
22816         return nativeResponseValue;
22817 }
22818         // void UnsignedNodeAnnouncement_set_node_id(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22819 /* @internal */
22820 export function UnsignedNodeAnnouncement_set_node_id(this_ptr: number, val: number): void {
22821         if(!isWasmInitialized) {
22822                 throw new Error("initializeWasm() must be awaited first!");
22823         }
22824         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_node_id(this_ptr, val);
22825         // debug statements here
22826 }
22827         // const uint8_t (*UnsignedNodeAnnouncement_get_rgb(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[3];
22828 /* @internal */
22829 export function UnsignedNodeAnnouncement_get_rgb(this_ptr: number): number {
22830         if(!isWasmInitialized) {
22831                 throw new Error("initializeWasm() must be awaited first!");
22832         }
22833         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_rgb(this_ptr);
22834         return nativeResponseValue;
22835 }
22836         // void UnsignedNodeAnnouncement_set_rgb(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
22837 /* @internal */
22838 export function UnsignedNodeAnnouncement_set_rgb(this_ptr: number, val: number): void {
22839         if(!isWasmInitialized) {
22840                 throw new Error("initializeWasm() must be awaited first!");
22841         }
22842         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_rgb(this_ptr, val);
22843         // debug statements here
22844 }
22845         // const uint8_t (*UnsignedNodeAnnouncement_get_alias(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[32];
22846 /* @internal */
22847 export function UnsignedNodeAnnouncement_get_alias(this_ptr: number): number {
22848         if(!isWasmInitialized) {
22849                 throw new Error("initializeWasm() must be awaited first!");
22850         }
22851         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_alias(this_ptr);
22852         return nativeResponseValue;
22853 }
22854         // void UnsignedNodeAnnouncement_set_alias(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22855 /* @internal */
22856 export function UnsignedNodeAnnouncement_set_alias(this_ptr: number, val: number): void {
22857         if(!isWasmInitialized) {
22858                 throw new Error("initializeWasm() must be awaited first!");
22859         }
22860         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_alias(this_ptr, val);
22861         // debug statements here
22862 }
22863         // void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
22864 /* @internal */
22865 export function UnsignedNodeAnnouncement_set_addresses(this_ptr: number, val: number): void {
22866         if(!isWasmInitialized) {
22867                 throw new Error("initializeWasm() must be awaited first!");
22868         }
22869         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_addresses(this_ptr, val);
22870         // debug statements here
22871 }
22872         // uintptr_t UnsignedNodeAnnouncement_clone_ptr(LDKUnsignedNodeAnnouncement *NONNULL_PTR arg);
22873 /* @internal */
22874 export function UnsignedNodeAnnouncement_clone_ptr(arg: number): number {
22875         if(!isWasmInitialized) {
22876                 throw new Error("initializeWasm() must be awaited first!");
22877         }
22878         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_clone_ptr(arg);
22879         return nativeResponseValue;
22880 }
22881         // struct LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_clone(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR orig);
22882 /* @internal */
22883 export function UnsignedNodeAnnouncement_clone(orig: number): number {
22884         if(!isWasmInitialized) {
22885                 throw new Error("initializeWasm() must be awaited first!");
22886         }
22887         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_clone(orig);
22888         return nativeResponseValue;
22889 }
22890         // void NodeAnnouncement_free(struct LDKNodeAnnouncement this_obj);
22891 /* @internal */
22892 export function NodeAnnouncement_free(this_obj: number): void {
22893         if(!isWasmInitialized) {
22894                 throw new Error("initializeWasm() must be awaited first!");
22895         }
22896         const nativeResponseValue = wasm.TS_NodeAnnouncement_free(this_obj);
22897         // debug statements here
22898 }
22899         // struct LDKSignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
22900 /* @internal */
22901 export function NodeAnnouncement_get_signature(this_ptr: number): number {
22902         if(!isWasmInitialized) {
22903                 throw new Error("initializeWasm() must be awaited first!");
22904         }
22905         const nativeResponseValue = wasm.TS_NodeAnnouncement_get_signature(this_ptr);
22906         return nativeResponseValue;
22907 }
22908         // void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
22909 /* @internal */
22910 export function NodeAnnouncement_set_signature(this_ptr: number, val: number): void {
22911         if(!isWasmInitialized) {
22912                 throw new Error("initializeWasm() must be awaited first!");
22913         }
22914         const nativeResponseValue = wasm.TS_NodeAnnouncement_set_signature(this_ptr, val);
22915         // debug statements here
22916 }
22917         // struct LDKUnsignedNodeAnnouncement NodeAnnouncement_get_contents(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
22918 /* @internal */
22919 export function NodeAnnouncement_get_contents(this_ptr: number): number {
22920         if(!isWasmInitialized) {
22921                 throw new Error("initializeWasm() must be awaited first!");
22922         }
22923         const nativeResponseValue = wasm.TS_NodeAnnouncement_get_contents(this_ptr);
22924         return nativeResponseValue;
22925 }
22926         // void NodeAnnouncement_set_contents(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedNodeAnnouncement val);
22927 /* @internal */
22928 export function NodeAnnouncement_set_contents(this_ptr: number, val: number): void {
22929         if(!isWasmInitialized) {
22930                 throw new Error("initializeWasm() must be awaited first!");
22931         }
22932         const nativeResponseValue = wasm.TS_NodeAnnouncement_set_contents(this_ptr, val);
22933         // debug statements here
22934 }
22935         // MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKSignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg);
22936 /* @internal */
22937 export function NodeAnnouncement_new(signature_arg: number, contents_arg: number): number {
22938         if(!isWasmInitialized) {
22939                 throw new Error("initializeWasm() must be awaited first!");
22940         }
22941         const nativeResponseValue = wasm.TS_NodeAnnouncement_new(signature_arg, contents_arg);
22942         return nativeResponseValue;
22943 }
22944         // uintptr_t NodeAnnouncement_clone_ptr(LDKNodeAnnouncement *NONNULL_PTR arg);
22945 /* @internal */
22946 export function NodeAnnouncement_clone_ptr(arg: number): number {
22947         if(!isWasmInitialized) {
22948                 throw new Error("initializeWasm() must be awaited first!");
22949         }
22950         const nativeResponseValue = wasm.TS_NodeAnnouncement_clone_ptr(arg);
22951         return nativeResponseValue;
22952 }
22953         // struct LDKNodeAnnouncement NodeAnnouncement_clone(const struct LDKNodeAnnouncement *NONNULL_PTR orig);
22954 /* @internal */
22955 export function NodeAnnouncement_clone(orig: number): number {
22956         if(!isWasmInitialized) {
22957                 throw new Error("initializeWasm() must be awaited first!");
22958         }
22959         const nativeResponseValue = wasm.TS_NodeAnnouncement_clone(orig);
22960         return nativeResponseValue;
22961 }
22962         // void UnsignedChannelAnnouncement_free(struct LDKUnsignedChannelAnnouncement this_obj);
22963 /* @internal */
22964 export function UnsignedChannelAnnouncement_free(this_obj: number): void {
22965         if(!isWasmInitialized) {
22966                 throw new Error("initializeWasm() must be awaited first!");
22967         }
22968         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_free(this_obj);
22969         // debug statements here
22970 }
22971         // struct LDKChannelFeatures UnsignedChannelAnnouncement_get_features(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
22972 /* @internal */
22973 export function UnsignedChannelAnnouncement_get_features(this_ptr: number): number {
22974         if(!isWasmInitialized) {
22975                 throw new Error("initializeWasm() must be awaited first!");
22976         }
22977         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_features(this_ptr);
22978         return nativeResponseValue;
22979 }
22980         // void UnsignedChannelAnnouncement_set_features(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
22981 /* @internal */
22982 export function UnsignedChannelAnnouncement_set_features(this_ptr: number, val: number): void {
22983         if(!isWasmInitialized) {
22984                 throw new Error("initializeWasm() must be awaited first!");
22985         }
22986         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_features(this_ptr, val);
22987         // debug statements here
22988 }
22989         // const uint8_t (*UnsignedChannelAnnouncement_get_chain_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr))[32];
22990 /* @internal */
22991 export function UnsignedChannelAnnouncement_get_chain_hash(this_ptr: number): number {
22992         if(!isWasmInitialized) {
22993                 throw new Error("initializeWasm() must be awaited first!");
22994         }
22995         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_chain_hash(this_ptr);
22996         return nativeResponseValue;
22997 }
22998         // void UnsignedChannelAnnouncement_set_chain_hash(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22999 /* @internal */
23000 export function UnsignedChannelAnnouncement_set_chain_hash(this_ptr: number, val: number): void {
23001         if(!isWasmInitialized) {
23002                 throw new Error("initializeWasm() must be awaited first!");
23003         }
23004         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_chain_hash(this_ptr, val);
23005         // debug statements here
23006 }
23007         // uint64_t UnsignedChannelAnnouncement_get_short_channel_id(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
23008 /* @internal */
23009 export function UnsignedChannelAnnouncement_get_short_channel_id(this_ptr: number): bigint {
23010         if(!isWasmInitialized) {
23011                 throw new Error("initializeWasm() must be awaited first!");
23012         }
23013         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_short_channel_id(this_ptr);
23014         return nativeResponseValue;
23015 }
23016         // void UnsignedChannelAnnouncement_set_short_channel_id(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, uint64_t val);
23017 /* @internal */
23018 export function UnsignedChannelAnnouncement_set_short_channel_id(this_ptr: number, val: bigint): void {
23019         if(!isWasmInitialized) {
23020                 throw new Error("initializeWasm() must be awaited first!");
23021         }
23022         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_short_channel_id(this_ptr, val);
23023         // debug statements here
23024 }
23025         // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
23026 /* @internal */
23027 export function UnsignedChannelAnnouncement_get_node_id_1(this_ptr: number): number {
23028         if(!isWasmInitialized) {
23029                 throw new Error("initializeWasm() must be awaited first!");
23030         }
23031         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_node_id_1(this_ptr);
23032         return nativeResponseValue;
23033 }
23034         // void UnsignedChannelAnnouncement_set_node_id_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
23035 /* @internal */
23036 export function UnsignedChannelAnnouncement_set_node_id_1(this_ptr: number, val: number): void {
23037         if(!isWasmInitialized) {
23038                 throw new Error("initializeWasm() must be awaited first!");
23039         }
23040         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_node_id_1(this_ptr, val);
23041         // debug statements here
23042 }
23043         // struct LDKPublicKey UnsignedChannelAnnouncement_get_node_id_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
23044 /* @internal */
23045 export function UnsignedChannelAnnouncement_get_node_id_2(this_ptr: number): number {
23046         if(!isWasmInitialized) {
23047                 throw new Error("initializeWasm() must be awaited first!");
23048         }
23049         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_node_id_2(this_ptr);
23050         return nativeResponseValue;
23051 }
23052         // void UnsignedChannelAnnouncement_set_node_id_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
23053 /* @internal */
23054 export function UnsignedChannelAnnouncement_set_node_id_2(this_ptr: number, val: number): void {
23055         if(!isWasmInitialized) {
23056                 throw new Error("initializeWasm() must be awaited first!");
23057         }
23058         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_node_id_2(this_ptr, val);
23059         // debug statements here
23060 }
23061         // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
23062 /* @internal */
23063 export function UnsignedChannelAnnouncement_get_bitcoin_key_1(this_ptr: number): number {
23064         if(!isWasmInitialized) {
23065                 throw new Error("initializeWasm() must be awaited first!");
23066         }
23067         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_bitcoin_key_1(this_ptr);
23068         return nativeResponseValue;
23069 }
23070         // void UnsignedChannelAnnouncement_set_bitcoin_key_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
23071 /* @internal */
23072 export function UnsignedChannelAnnouncement_set_bitcoin_key_1(this_ptr: number, val: number): void {
23073         if(!isWasmInitialized) {
23074                 throw new Error("initializeWasm() must be awaited first!");
23075         }
23076         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_bitcoin_key_1(this_ptr, val);
23077         // debug statements here
23078 }
23079         // struct LDKPublicKey UnsignedChannelAnnouncement_get_bitcoin_key_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
23080 /* @internal */
23081 export function UnsignedChannelAnnouncement_get_bitcoin_key_2(this_ptr: number): number {
23082         if(!isWasmInitialized) {
23083                 throw new Error("initializeWasm() must be awaited first!");
23084         }
23085         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_bitcoin_key_2(this_ptr);
23086         return nativeResponseValue;
23087 }
23088         // void UnsignedChannelAnnouncement_set_bitcoin_key_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKPublicKey val);
23089 /* @internal */
23090 export function UnsignedChannelAnnouncement_set_bitcoin_key_2(this_ptr: number, val: number): void {
23091         if(!isWasmInitialized) {
23092                 throw new Error("initializeWasm() must be awaited first!");
23093         }
23094         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_bitcoin_key_2(this_ptr, val);
23095         // debug statements here
23096 }
23097         // uintptr_t UnsignedChannelAnnouncement_clone_ptr(LDKUnsignedChannelAnnouncement *NONNULL_PTR arg);
23098 /* @internal */
23099 export function UnsignedChannelAnnouncement_clone_ptr(arg: number): number {
23100         if(!isWasmInitialized) {
23101                 throw new Error("initializeWasm() must be awaited first!");
23102         }
23103         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_clone_ptr(arg);
23104         return nativeResponseValue;
23105 }
23106         // struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_clone(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR orig);
23107 /* @internal */
23108 export function UnsignedChannelAnnouncement_clone(orig: number): number {
23109         if(!isWasmInitialized) {
23110                 throw new Error("initializeWasm() must be awaited first!");
23111         }
23112         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_clone(orig);
23113         return nativeResponseValue;
23114 }
23115         // void ChannelAnnouncement_free(struct LDKChannelAnnouncement this_obj);
23116 /* @internal */
23117 export function ChannelAnnouncement_free(this_obj: number): void {
23118         if(!isWasmInitialized) {
23119                 throw new Error("initializeWasm() must be awaited first!");
23120         }
23121         const nativeResponseValue = wasm.TS_ChannelAnnouncement_free(this_obj);
23122         // debug statements here
23123 }
23124         // struct LDKSignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
23125 /* @internal */
23126 export function ChannelAnnouncement_get_node_signature_1(this_ptr: number): number {
23127         if(!isWasmInitialized) {
23128                 throw new Error("initializeWasm() must be awaited first!");
23129         }
23130         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_node_signature_1(this_ptr);
23131         return nativeResponseValue;
23132 }
23133         // void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
23134 /* @internal */
23135 export function ChannelAnnouncement_set_node_signature_1(this_ptr: number, val: number): void {
23136         if(!isWasmInitialized) {
23137                 throw new Error("initializeWasm() must be awaited first!");
23138         }
23139         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_node_signature_1(this_ptr, val);
23140         // debug statements here
23141 }
23142         // struct LDKSignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
23143 /* @internal */
23144 export function ChannelAnnouncement_get_node_signature_2(this_ptr: number): number {
23145         if(!isWasmInitialized) {
23146                 throw new Error("initializeWasm() must be awaited first!");
23147         }
23148         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_node_signature_2(this_ptr);
23149         return nativeResponseValue;
23150 }
23151         // void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
23152 /* @internal */
23153 export function ChannelAnnouncement_set_node_signature_2(this_ptr: number, val: number): void {
23154         if(!isWasmInitialized) {
23155                 throw new Error("initializeWasm() must be awaited first!");
23156         }
23157         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_node_signature_2(this_ptr, val);
23158         // debug statements here
23159 }
23160         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
23161 /* @internal */
23162 export function ChannelAnnouncement_get_bitcoin_signature_1(this_ptr: number): number {
23163         if(!isWasmInitialized) {
23164                 throw new Error("initializeWasm() must be awaited first!");
23165         }
23166         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_bitcoin_signature_1(this_ptr);
23167         return nativeResponseValue;
23168 }
23169         // void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
23170 /* @internal */
23171 export function ChannelAnnouncement_set_bitcoin_signature_1(this_ptr: number, val: number): void {
23172         if(!isWasmInitialized) {
23173                 throw new Error("initializeWasm() must be awaited first!");
23174         }
23175         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_bitcoin_signature_1(this_ptr, val);
23176         // debug statements here
23177 }
23178         // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
23179 /* @internal */
23180 export function ChannelAnnouncement_get_bitcoin_signature_2(this_ptr: number): number {
23181         if(!isWasmInitialized) {
23182                 throw new Error("initializeWasm() must be awaited first!");
23183         }
23184         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_bitcoin_signature_2(this_ptr);
23185         return nativeResponseValue;
23186 }
23187         // void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
23188 /* @internal */
23189 export function ChannelAnnouncement_set_bitcoin_signature_2(this_ptr: number, val: number): void {
23190         if(!isWasmInitialized) {
23191                 throw new Error("initializeWasm() must be awaited first!");
23192         }
23193         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_bitcoin_signature_2(this_ptr, val);
23194         // debug statements here
23195 }
23196         // struct LDKUnsignedChannelAnnouncement ChannelAnnouncement_get_contents(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
23197 /* @internal */
23198 export function ChannelAnnouncement_get_contents(this_ptr: number): number {
23199         if(!isWasmInitialized) {
23200                 throw new Error("initializeWasm() must be awaited first!");
23201         }
23202         const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_contents(this_ptr);
23203         return nativeResponseValue;
23204 }
23205         // void ChannelAnnouncement_set_contents(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedChannelAnnouncement val);
23206 /* @internal */
23207 export function ChannelAnnouncement_set_contents(this_ptr: number, val: number): void {
23208         if(!isWasmInitialized) {
23209                 throw new Error("initializeWasm() must be awaited first!");
23210         }
23211         const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_contents(this_ptr, val);
23212         // debug statements here
23213 }
23214         // 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);
23215 /* @internal */
23216 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 {
23217         if(!isWasmInitialized) {
23218                 throw new Error("initializeWasm() must be awaited first!");
23219         }
23220         const nativeResponseValue = wasm.TS_ChannelAnnouncement_new(node_signature_1_arg, node_signature_2_arg, bitcoin_signature_1_arg, bitcoin_signature_2_arg, contents_arg);
23221         return nativeResponseValue;
23222 }
23223         // uintptr_t ChannelAnnouncement_clone_ptr(LDKChannelAnnouncement *NONNULL_PTR arg);
23224 /* @internal */
23225 export function ChannelAnnouncement_clone_ptr(arg: number): number {
23226         if(!isWasmInitialized) {
23227                 throw new Error("initializeWasm() must be awaited first!");
23228         }
23229         const nativeResponseValue = wasm.TS_ChannelAnnouncement_clone_ptr(arg);
23230         return nativeResponseValue;
23231 }
23232         // struct LDKChannelAnnouncement ChannelAnnouncement_clone(const struct LDKChannelAnnouncement *NONNULL_PTR orig);
23233 /* @internal */
23234 export function ChannelAnnouncement_clone(orig: number): number {
23235         if(!isWasmInitialized) {
23236                 throw new Error("initializeWasm() must be awaited first!");
23237         }
23238         const nativeResponseValue = wasm.TS_ChannelAnnouncement_clone(orig);
23239         return nativeResponseValue;
23240 }
23241         // void UnsignedChannelUpdate_free(struct LDKUnsignedChannelUpdate this_obj);
23242 /* @internal */
23243 export function UnsignedChannelUpdate_free(this_obj: number): void {
23244         if(!isWasmInitialized) {
23245                 throw new Error("initializeWasm() must be awaited first!");
23246         }
23247         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_free(this_obj);
23248         // debug statements here
23249 }
23250         // const uint8_t (*UnsignedChannelUpdate_get_chain_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr))[32];
23251 /* @internal */
23252 export function UnsignedChannelUpdate_get_chain_hash(this_ptr: number): number {
23253         if(!isWasmInitialized) {
23254                 throw new Error("initializeWasm() must be awaited first!");
23255         }
23256         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_chain_hash(this_ptr);
23257         return nativeResponseValue;
23258 }
23259         // void UnsignedChannelUpdate_set_chain_hash(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23260 /* @internal */
23261 export function UnsignedChannelUpdate_set_chain_hash(this_ptr: number, val: number): void {
23262         if(!isWasmInitialized) {
23263                 throw new Error("initializeWasm() must be awaited first!");
23264         }
23265         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_chain_hash(this_ptr, val);
23266         // debug statements here
23267 }
23268         // uint64_t UnsignedChannelUpdate_get_short_channel_id(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23269 /* @internal */
23270 export function UnsignedChannelUpdate_get_short_channel_id(this_ptr: number): bigint {
23271         if(!isWasmInitialized) {
23272                 throw new Error("initializeWasm() must be awaited first!");
23273         }
23274         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_short_channel_id(this_ptr);
23275         return nativeResponseValue;
23276 }
23277         // void UnsignedChannelUpdate_set_short_channel_id(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
23278 /* @internal */
23279 export function UnsignedChannelUpdate_set_short_channel_id(this_ptr: number, val: bigint): void {
23280         if(!isWasmInitialized) {
23281                 throw new Error("initializeWasm() must be awaited first!");
23282         }
23283         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_short_channel_id(this_ptr, val);
23284         // debug statements here
23285 }
23286         // uint32_t UnsignedChannelUpdate_get_timestamp(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23287 /* @internal */
23288 export function UnsignedChannelUpdate_get_timestamp(this_ptr: number): number {
23289         if(!isWasmInitialized) {
23290                 throw new Error("initializeWasm() must be awaited first!");
23291         }
23292         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_timestamp(this_ptr);
23293         return nativeResponseValue;
23294 }
23295         // void UnsignedChannelUpdate_set_timestamp(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
23296 /* @internal */
23297 export function UnsignedChannelUpdate_set_timestamp(this_ptr: number, val: number): void {
23298         if(!isWasmInitialized) {
23299                 throw new Error("initializeWasm() must be awaited first!");
23300         }
23301         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_timestamp(this_ptr, val);
23302         // debug statements here
23303 }
23304         // uint8_t UnsignedChannelUpdate_get_flags(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23305 /* @internal */
23306 export function UnsignedChannelUpdate_get_flags(this_ptr: number): number {
23307         if(!isWasmInitialized) {
23308                 throw new Error("initializeWasm() must be awaited first!");
23309         }
23310         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_flags(this_ptr);
23311         return nativeResponseValue;
23312 }
23313         // void UnsignedChannelUpdate_set_flags(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint8_t val);
23314 /* @internal */
23315 export function UnsignedChannelUpdate_set_flags(this_ptr: number, val: number): void {
23316         if(!isWasmInitialized) {
23317                 throw new Error("initializeWasm() must be awaited first!");
23318         }
23319         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_flags(this_ptr, val);
23320         // debug statements here
23321 }
23322         // uint16_t UnsignedChannelUpdate_get_cltv_expiry_delta(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23323 /* @internal */
23324 export function UnsignedChannelUpdate_get_cltv_expiry_delta(this_ptr: number): number {
23325         if(!isWasmInitialized) {
23326                 throw new Error("initializeWasm() must be awaited first!");
23327         }
23328         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_cltv_expiry_delta(this_ptr);
23329         return nativeResponseValue;
23330 }
23331         // void UnsignedChannelUpdate_set_cltv_expiry_delta(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint16_t val);
23332 /* @internal */
23333 export function UnsignedChannelUpdate_set_cltv_expiry_delta(this_ptr: number, val: number): void {
23334         if(!isWasmInitialized) {
23335                 throw new Error("initializeWasm() must be awaited first!");
23336         }
23337         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_cltv_expiry_delta(this_ptr, val);
23338         // debug statements here
23339 }
23340         // uint64_t UnsignedChannelUpdate_get_htlc_minimum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23341 /* @internal */
23342 export function UnsignedChannelUpdate_get_htlc_minimum_msat(this_ptr: number): bigint {
23343         if(!isWasmInitialized) {
23344                 throw new Error("initializeWasm() must be awaited first!");
23345         }
23346         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_htlc_minimum_msat(this_ptr);
23347         return nativeResponseValue;
23348 }
23349         // void UnsignedChannelUpdate_set_htlc_minimum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
23350 /* @internal */
23351 export function UnsignedChannelUpdate_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
23352         if(!isWasmInitialized) {
23353                 throw new Error("initializeWasm() must be awaited first!");
23354         }
23355         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_htlc_minimum_msat(this_ptr, val);
23356         // debug statements here
23357 }
23358         // uint32_t UnsignedChannelUpdate_get_fee_base_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23359 /* @internal */
23360 export function UnsignedChannelUpdate_get_fee_base_msat(this_ptr: number): number {
23361         if(!isWasmInitialized) {
23362                 throw new Error("initializeWasm() must be awaited first!");
23363         }
23364         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_fee_base_msat(this_ptr);
23365         return nativeResponseValue;
23366 }
23367         // void UnsignedChannelUpdate_set_fee_base_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
23368 /* @internal */
23369 export function UnsignedChannelUpdate_set_fee_base_msat(this_ptr: number, val: number): void {
23370         if(!isWasmInitialized) {
23371                 throw new Error("initializeWasm() must be awaited first!");
23372         }
23373         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_fee_base_msat(this_ptr, val);
23374         // debug statements here
23375 }
23376         // uint32_t UnsignedChannelUpdate_get_fee_proportional_millionths(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
23377 /* @internal */
23378 export function UnsignedChannelUpdate_get_fee_proportional_millionths(this_ptr: number): number {
23379         if(!isWasmInitialized) {
23380                 throw new Error("initializeWasm() must be awaited first!");
23381         }
23382         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_fee_proportional_millionths(this_ptr);
23383         return nativeResponseValue;
23384 }
23385         // void UnsignedChannelUpdate_set_fee_proportional_millionths(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
23386 /* @internal */
23387 export function UnsignedChannelUpdate_set_fee_proportional_millionths(this_ptr: number, val: number): void {
23388         if(!isWasmInitialized) {
23389                 throw new Error("initializeWasm() must be awaited first!");
23390         }
23391         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_fee_proportional_millionths(this_ptr, val);
23392         // debug statements here
23393 }
23394         // void UnsignedChannelUpdate_set_excess_data(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
23395 /* @internal */
23396 export function UnsignedChannelUpdate_set_excess_data(this_ptr: number, val: number): void {
23397         if(!isWasmInitialized) {
23398                 throw new Error("initializeWasm() must be awaited first!");
23399         }
23400         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_excess_data(this_ptr, val);
23401         // debug statements here
23402 }
23403         // uintptr_t UnsignedChannelUpdate_clone_ptr(LDKUnsignedChannelUpdate *NONNULL_PTR arg);
23404 /* @internal */
23405 export function UnsignedChannelUpdate_clone_ptr(arg: number): number {
23406         if(!isWasmInitialized) {
23407                 throw new Error("initializeWasm() must be awaited first!");
23408         }
23409         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_clone_ptr(arg);
23410         return nativeResponseValue;
23411 }
23412         // struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_clone(const struct LDKUnsignedChannelUpdate *NONNULL_PTR orig);
23413 /* @internal */
23414 export function UnsignedChannelUpdate_clone(orig: number): number {
23415         if(!isWasmInitialized) {
23416                 throw new Error("initializeWasm() must be awaited first!");
23417         }
23418         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_clone(orig);
23419         return nativeResponseValue;
23420 }
23421         // void ChannelUpdate_free(struct LDKChannelUpdate this_obj);
23422 /* @internal */
23423 export function ChannelUpdate_free(this_obj: number): void {
23424         if(!isWasmInitialized) {
23425                 throw new Error("initializeWasm() must be awaited first!");
23426         }
23427         const nativeResponseValue = wasm.TS_ChannelUpdate_free(this_obj);
23428         // debug statements here
23429 }
23430         // struct LDKSignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
23431 /* @internal */
23432 export function ChannelUpdate_get_signature(this_ptr: number): number {
23433         if(!isWasmInitialized) {
23434                 throw new Error("initializeWasm() must be awaited first!");
23435         }
23436         const nativeResponseValue = wasm.TS_ChannelUpdate_get_signature(this_ptr);
23437         return nativeResponseValue;
23438 }
23439         // void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKSignature val);
23440 /* @internal */
23441 export function ChannelUpdate_set_signature(this_ptr: number, val: number): void {
23442         if(!isWasmInitialized) {
23443                 throw new Error("initializeWasm() must be awaited first!");
23444         }
23445         const nativeResponseValue = wasm.TS_ChannelUpdate_set_signature(this_ptr, val);
23446         // debug statements here
23447 }
23448         // struct LDKUnsignedChannelUpdate ChannelUpdate_get_contents(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
23449 /* @internal */
23450 export function ChannelUpdate_get_contents(this_ptr: number): number {
23451         if(!isWasmInitialized) {
23452                 throw new Error("initializeWasm() must be awaited first!");
23453         }
23454         const nativeResponseValue = wasm.TS_ChannelUpdate_get_contents(this_ptr);
23455         return nativeResponseValue;
23456 }
23457         // void ChannelUpdate_set_contents(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKUnsignedChannelUpdate val);
23458 /* @internal */
23459 export function ChannelUpdate_set_contents(this_ptr: number, val: number): void {
23460         if(!isWasmInitialized) {
23461                 throw new Error("initializeWasm() must be awaited first!");
23462         }
23463         const nativeResponseValue = wasm.TS_ChannelUpdate_set_contents(this_ptr, val);
23464         // debug statements here
23465 }
23466         // MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKSignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg);
23467 /* @internal */
23468 export function ChannelUpdate_new(signature_arg: number, contents_arg: number): number {
23469         if(!isWasmInitialized) {
23470                 throw new Error("initializeWasm() must be awaited first!");
23471         }
23472         const nativeResponseValue = wasm.TS_ChannelUpdate_new(signature_arg, contents_arg);
23473         return nativeResponseValue;
23474 }
23475         // uintptr_t ChannelUpdate_clone_ptr(LDKChannelUpdate *NONNULL_PTR arg);
23476 /* @internal */
23477 export function ChannelUpdate_clone_ptr(arg: number): number {
23478         if(!isWasmInitialized) {
23479                 throw new Error("initializeWasm() must be awaited first!");
23480         }
23481         const nativeResponseValue = wasm.TS_ChannelUpdate_clone_ptr(arg);
23482         return nativeResponseValue;
23483 }
23484         // struct LDKChannelUpdate ChannelUpdate_clone(const struct LDKChannelUpdate *NONNULL_PTR orig);
23485 /* @internal */
23486 export function ChannelUpdate_clone(orig: number): number {
23487         if(!isWasmInitialized) {
23488                 throw new Error("initializeWasm() must be awaited first!");
23489         }
23490         const nativeResponseValue = wasm.TS_ChannelUpdate_clone(orig);
23491         return nativeResponseValue;
23492 }
23493         // void QueryChannelRange_free(struct LDKQueryChannelRange this_obj);
23494 /* @internal */
23495 export function QueryChannelRange_free(this_obj: number): void {
23496         if(!isWasmInitialized) {
23497                 throw new Error("initializeWasm() must be awaited first!");
23498         }
23499         const nativeResponseValue = wasm.TS_QueryChannelRange_free(this_obj);
23500         // debug statements here
23501 }
23502         // const uint8_t (*QueryChannelRange_get_chain_hash(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr))[32];
23503 /* @internal */
23504 export function QueryChannelRange_get_chain_hash(this_ptr: number): number {
23505         if(!isWasmInitialized) {
23506                 throw new Error("initializeWasm() must be awaited first!");
23507         }
23508         const nativeResponseValue = wasm.TS_QueryChannelRange_get_chain_hash(this_ptr);
23509         return nativeResponseValue;
23510 }
23511         // void QueryChannelRange_set_chain_hash(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23512 /* @internal */
23513 export function QueryChannelRange_set_chain_hash(this_ptr: number, val: number): void {
23514         if(!isWasmInitialized) {
23515                 throw new Error("initializeWasm() must be awaited first!");
23516         }
23517         const nativeResponseValue = wasm.TS_QueryChannelRange_set_chain_hash(this_ptr, val);
23518         // debug statements here
23519 }
23520         // uint32_t QueryChannelRange_get_first_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
23521 /* @internal */
23522 export function QueryChannelRange_get_first_blocknum(this_ptr: number): number {
23523         if(!isWasmInitialized) {
23524                 throw new Error("initializeWasm() must be awaited first!");
23525         }
23526         const nativeResponseValue = wasm.TS_QueryChannelRange_get_first_blocknum(this_ptr);
23527         return nativeResponseValue;
23528 }
23529         // void QueryChannelRange_set_first_blocknum(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
23530 /* @internal */
23531 export function QueryChannelRange_set_first_blocknum(this_ptr: number, val: number): void {
23532         if(!isWasmInitialized) {
23533                 throw new Error("initializeWasm() must be awaited first!");
23534         }
23535         const nativeResponseValue = wasm.TS_QueryChannelRange_set_first_blocknum(this_ptr, val);
23536         // debug statements here
23537 }
23538         // uint32_t QueryChannelRange_get_number_of_blocks(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
23539 /* @internal */
23540 export function QueryChannelRange_get_number_of_blocks(this_ptr: number): number {
23541         if(!isWasmInitialized) {
23542                 throw new Error("initializeWasm() must be awaited first!");
23543         }
23544         const nativeResponseValue = wasm.TS_QueryChannelRange_get_number_of_blocks(this_ptr);
23545         return nativeResponseValue;
23546 }
23547         // void QueryChannelRange_set_number_of_blocks(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
23548 /* @internal */
23549 export function QueryChannelRange_set_number_of_blocks(this_ptr: number, val: number): void {
23550         if(!isWasmInitialized) {
23551                 throw new Error("initializeWasm() must be awaited first!");
23552         }
23553         const nativeResponseValue = wasm.TS_QueryChannelRange_set_number_of_blocks(this_ptr, val);
23554         // debug statements here
23555 }
23556         // MUST_USE_RES struct LDKQueryChannelRange QueryChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg);
23557 /* @internal */
23558 export function QueryChannelRange_new(chain_hash_arg: number, first_blocknum_arg: number, number_of_blocks_arg: number): number {
23559         if(!isWasmInitialized) {
23560                 throw new Error("initializeWasm() must be awaited first!");
23561         }
23562         const nativeResponseValue = wasm.TS_QueryChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg);
23563         return nativeResponseValue;
23564 }
23565         // uintptr_t QueryChannelRange_clone_ptr(LDKQueryChannelRange *NONNULL_PTR arg);
23566 /* @internal */
23567 export function QueryChannelRange_clone_ptr(arg: number): number {
23568         if(!isWasmInitialized) {
23569                 throw new Error("initializeWasm() must be awaited first!");
23570         }
23571         const nativeResponseValue = wasm.TS_QueryChannelRange_clone_ptr(arg);
23572         return nativeResponseValue;
23573 }
23574         // struct LDKQueryChannelRange QueryChannelRange_clone(const struct LDKQueryChannelRange *NONNULL_PTR orig);
23575 /* @internal */
23576 export function QueryChannelRange_clone(orig: number): number {
23577         if(!isWasmInitialized) {
23578                 throw new Error("initializeWasm() must be awaited first!");
23579         }
23580         const nativeResponseValue = wasm.TS_QueryChannelRange_clone(orig);
23581         return nativeResponseValue;
23582 }
23583         // void ReplyChannelRange_free(struct LDKReplyChannelRange this_obj);
23584 /* @internal */
23585 export function ReplyChannelRange_free(this_obj: number): void {
23586         if(!isWasmInitialized) {
23587                 throw new Error("initializeWasm() must be awaited first!");
23588         }
23589         const nativeResponseValue = wasm.TS_ReplyChannelRange_free(this_obj);
23590         // debug statements here
23591 }
23592         // const uint8_t (*ReplyChannelRange_get_chain_hash(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr))[32];
23593 /* @internal */
23594 export function ReplyChannelRange_get_chain_hash(this_ptr: number): number {
23595         if(!isWasmInitialized) {
23596                 throw new Error("initializeWasm() must be awaited first!");
23597         }
23598         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_chain_hash(this_ptr);
23599         return nativeResponseValue;
23600 }
23601         // void ReplyChannelRange_set_chain_hash(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23602 /* @internal */
23603 export function ReplyChannelRange_set_chain_hash(this_ptr: number, val: number): void {
23604         if(!isWasmInitialized) {
23605                 throw new Error("initializeWasm() must be awaited first!");
23606         }
23607         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_chain_hash(this_ptr, val);
23608         // debug statements here
23609 }
23610         // uint32_t ReplyChannelRange_get_first_blocknum(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
23611 /* @internal */
23612 export function ReplyChannelRange_get_first_blocknum(this_ptr: number): number {
23613         if(!isWasmInitialized) {
23614                 throw new Error("initializeWasm() must be awaited first!");
23615         }
23616         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_first_blocknum(this_ptr);
23617         return nativeResponseValue;
23618 }
23619         // void ReplyChannelRange_set_first_blocknum(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
23620 /* @internal */
23621 export function ReplyChannelRange_set_first_blocknum(this_ptr: number, val: number): void {
23622         if(!isWasmInitialized) {
23623                 throw new Error("initializeWasm() must be awaited first!");
23624         }
23625         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_first_blocknum(this_ptr, val);
23626         // debug statements here
23627 }
23628         // uint32_t ReplyChannelRange_get_number_of_blocks(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
23629 /* @internal */
23630 export function ReplyChannelRange_get_number_of_blocks(this_ptr: number): number {
23631         if(!isWasmInitialized) {
23632                 throw new Error("initializeWasm() must be awaited first!");
23633         }
23634         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_number_of_blocks(this_ptr);
23635         return nativeResponseValue;
23636 }
23637         // void ReplyChannelRange_set_number_of_blocks(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
23638 /* @internal */
23639 export function ReplyChannelRange_set_number_of_blocks(this_ptr: number, val: number): void {
23640         if(!isWasmInitialized) {
23641                 throw new Error("initializeWasm() must be awaited first!");
23642         }
23643         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_number_of_blocks(this_ptr, val);
23644         // debug statements here
23645 }
23646         // bool ReplyChannelRange_get_sync_complete(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
23647 /* @internal */
23648 export function ReplyChannelRange_get_sync_complete(this_ptr: number): boolean {
23649         if(!isWasmInitialized) {
23650                 throw new Error("initializeWasm() must be awaited first!");
23651         }
23652         const nativeResponseValue = wasm.TS_ReplyChannelRange_get_sync_complete(this_ptr);
23653         return nativeResponseValue;
23654 }
23655         // void ReplyChannelRange_set_sync_complete(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, bool val);
23656 /* @internal */
23657 export function ReplyChannelRange_set_sync_complete(this_ptr: number, val: boolean): void {
23658         if(!isWasmInitialized) {
23659                 throw new Error("initializeWasm() must be awaited first!");
23660         }
23661         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_sync_complete(this_ptr, val);
23662         // debug statements here
23663 }
23664         // void ReplyChannelRange_set_short_channel_ids(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
23665 /* @internal */
23666 export function ReplyChannelRange_set_short_channel_ids(this_ptr: number, val: number): void {
23667         if(!isWasmInitialized) {
23668                 throw new Error("initializeWasm() must be awaited first!");
23669         }
23670         const nativeResponseValue = wasm.TS_ReplyChannelRange_set_short_channel_ids(this_ptr, val);
23671         // debug statements here
23672 }
23673         // 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);
23674 /* @internal */
23675 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 {
23676         if(!isWasmInitialized) {
23677                 throw new Error("initializeWasm() must be awaited first!");
23678         }
23679         const nativeResponseValue = wasm.TS_ReplyChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg, sync_complete_arg, short_channel_ids_arg);
23680         return nativeResponseValue;
23681 }
23682         // uintptr_t ReplyChannelRange_clone_ptr(LDKReplyChannelRange *NONNULL_PTR arg);
23683 /* @internal */
23684 export function ReplyChannelRange_clone_ptr(arg: number): number {
23685         if(!isWasmInitialized) {
23686                 throw new Error("initializeWasm() must be awaited first!");
23687         }
23688         const nativeResponseValue = wasm.TS_ReplyChannelRange_clone_ptr(arg);
23689         return nativeResponseValue;
23690 }
23691         // struct LDKReplyChannelRange ReplyChannelRange_clone(const struct LDKReplyChannelRange *NONNULL_PTR orig);
23692 /* @internal */
23693 export function ReplyChannelRange_clone(orig: number): number {
23694         if(!isWasmInitialized) {
23695                 throw new Error("initializeWasm() must be awaited first!");
23696         }
23697         const nativeResponseValue = wasm.TS_ReplyChannelRange_clone(orig);
23698         return nativeResponseValue;
23699 }
23700         // void QueryShortChannelIds_free(struct LDKQueryShortChannelIds this_obj);
23701 /* @internal */
23702 export function QueryShortChannelIds_free(this_obj: number): void {
23703         if(!isWasmInitialized) {
23704                 throw new Error("initializeWasm() must be awaited first!");
23705         }
23706         const nativeResponseValue = wasm.TS_QueryShortChannelIds_free(this_obj);
23707         // debug statements here
23708 }
23709         // const uint8_t (*QueryShortChannelIds_get_chain_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr))[32];
23710 /* @internal */
23711 export function QueryShortChannelIds_get_chain_hash(this_ptr: number): number {
23712         if(!isWasmInitialized) {
23713                 throw new Error("initializeWasm() must be awaited first!");
23714         }
23715         const nativeResponseValue = wasm.TS_QueryShortChannelIds_get_chain_hash(this_ptr);
23716         return nativeResponseValue;
23717 }
23718         // void QueryShortChannelIds_set_chain_hash(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23719 /* @internal */
23720 export function QueryShortChannelIds_set_chain_hash(this_ptr: number, val: number): void {
23721         if(!isWasmInitialized) {
23722                 throw new Error("initializeWasm() must be awaited first!");
23723         }
23724         const nativeResponseValue = wasm.TS_QueryShortChannelIds_set_chain_hash(this_ptr, val);
23725         // debug statements here
23726 }
23727         // void QueryShortChannelIds_set_short_channel_ids(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
23728 /* @internal */
23729 export function QueryShortChannelIds_set_short_channel_ids(this_ptr: number, val: number): void {
23730         if(!isWasmInitialized) {
23731                 throw new Error("initializeWasm() must be awaited first!");
23732         }
23733         const nativeResponseValue = wasm.TS_QueryShortChannelIds_set_short_channel_ids(this_ptr, val);
23734         // debug statements here
23735 }
23736         // MUST_USE_RES struct LDKQueryShortChannelIds QueryShortChannelIds_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKCVec_u64Z short_channel_ids_arg);
23737 /* @internal */
23738 export function QueryShortChannelIds_new(chain_hash_arg: number, short_channel_ids_arg: number): number {
23739         if(!isWasmInitialized) {
23740                 throw new Error("initializeWasm() must be awaited first!");
23741         }
23742         const nativeResponseValue = wasm.TS_QueryShortChannelIds_new(chain_hash_arg, short_channel_ids_arg);
23743         return nativeResponseValue;
23744 }
23745         // uintptr_t QueryShortChannelIds_clone_ptr(LDKQueryShortChannelIds *NONNULL_PTR arg);
23746 /* @internal */
23747 export function QueryShortChannelIds_clone_ptr(arg: number): number {
23748         if(!isWasmInitialized) {
23749                 throw new Error("initializeWasm() must be awaited first!");
23750         }
23751         const nativeResponseValue = wasm.TS_QueryShortChannelIds_clone_ptr(arg);
23752         return nativeResponseValue;
23753 }
23754         // struct LDKQueryShortChannelIds QueryShortChannelIds_clone(const struct LDKQueryShortChannelIds *NONNULL_PTR orig);
23755 /* @internal */
23756 export function QueryShortChannelIds_clone(orig: number): number {
23757         if(!isWasmInitialized) {
23758                 throw new Error("initializeWasm() must be awaited first!");
23759         }
23760         const nativeResponseValue = wasm.TS_QueryShortChannelIds_clone(orig);
23761         return nativeResponseValue;
23762 }
23763         // void ReplyShortChannelIdsEnd_free(struct LDKReplyShortChannelIdsEnd this_obj);
23764 /* @internal */
23765 export function ReplyShortChannelIdsEnd_free(this_obj: number): void {
23766         if(!isWasmInitialized) {
23767                 throw new Error("initializeWasm() must be awaited first!");
23768         }
23769         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_free(this_obj);
23770         // debug statements here
23771 }
23772         // const uint8_t (*ReplyShortChannelIdsEnd_get_chain_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr))[32];
23773 /* @internal */
23774 export function ReplyShortChannelIdsEnd_get_chain_hash(this_ptr: number): number {
23775         if(!isWasmInitialized) {
23776                 throw new Error("initializeWasm() must be awaited first!");
23777         }
23778         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_get_chain_hash(this_ptr);
23779         return nativeResponseValue;
23780 }
23781         // void ReplyShortChannelIdsEnd_set_chain_hash(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23782 /* @internal */
23783 export function ReplyShortChannelIdsEnd_set_chain_hash(this_ptr: number, val: number): void {
23784         if(!isWasmInitialized) {
23785                 throw new Error("initializeWasm() must be awaited first!");
23786         }
23787         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_set_chain_hash(this_ptr, val);
23788         // debug statements here
23789 }
23790         // bool ReplyShortChannelIdsEnd_get_full_information(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr);
23791 /* @internal */
23792 export function ReplyShortChannelIdsEnd_get_full_information(this_ptr: number): boolean {
23793         if(!isWasmInitialized) {
23794                 throw new Error("initializeWasm() must be awaited first!");
23795         }
23796         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_get_full_information(this_ptr);
23797         return nativeResponseValue;
23798 }
23799         // void ReplyShortChannelIdsEnd_set_full_information(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, bool val);
23800 /* @internal */
23801 export function ReplyShortChannelIdsEnd_set_full_information(this_ptr: number, val: boolean): void {
23802         if(!isWasmInitialized) {
23803                 throw new Error("initializeWasm() must be awaited first!");
23804         }
23805         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_set_full_information(this_ptr, val);
23806         // debug statements here
23807 }
23808         // MUST_USE_RES struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_new(struct LDKThirtyTwoBytes chain_hash_arg, bool full_information_arg);
23809 /* @internal */
23810 export function ReplyShortChannelIdsEnd_new(chain_hash_arg: number, full_information_arg: boolean): number {
23811         if(!isWasmInitialized) {
23812                 throw new Error("initializeWasm() must be awaited first!");
23813         }
23814         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_new(chain_hash_arg, full_information_arg);
23815         return nativeResponseValue;
23816 }
23817         // uintptr_t ReplyShortChannelIdsEnd_clone_ptr(LDKReplyShortChannelIdsEnd *NONNULL_PTR arg);
23818 /* @internal */
23819 export function ReplyShortChannelIdsEnd_clone_ptr(arg: number): number {
23820         if(!isWasmInitialized) {
23821                 throw new Error("initializeWasm() must be awaited first!");
23822         }
23823         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_clone_ptr(arg);
23824         return nativeResponseValue;
23825 }
23826         // struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_clone(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR orig);
23827 /* @internal */
23828 export function ReplyShortChannelIdsEnd_clone(orig: number): number {
23829         if(!isWasmInitialized) {
23830                 throw new Error("initializeWasm() must be awaited first!");
23831         }
23832         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_clone(orig);
23833         return nativeResponseValue;
23834 }
23835         // void GossipTimestampFilter_free(struct LDKGossipTimestampFilter this_obj);
23836 /* @internal */
23837 export function GossipTimestampFilter_free(this_obj: number): void {
23838         if(!isWasmInitialized) {
23839                 throw new Error("initializeWasm() must be awaited first!");
23840         }
23841         const nativeResponseValue = wasm.TS_GossipTimestampFilter_free(this_obj);
23842         // debug statements here
23843 }
23844         // const uint8_t (*GossipTimestampFilter_get_chain_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr))[32];
23845 /* @internal */
23846 export function GossipTimestampFilter_get_chain_hash(this_ptr: number): number {
23847         if(!isWasmInitialized) {
23848                 throw new Error("initializeWasm() must be awaited first!");
23849         }
23850         const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_chain_hash(this_ptr);
23851         return nativeResponseValue;
23852 }
23853         // void GossipTimestampFilter_set_chain_hash(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
23854 /* @internal */
23855 export function GossipTimestampFilter_set_chain_hash(this_ptr: number, val: number): void {
23856         if(!isWasmInitialized) {
23857                 throw new Error("initializeWasm() must be awaited first!");
23858         }
23859         const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_chain_hash(this_ptr, val);
23860         // debug statements here
23861 }
23862         // uint32_t GossipTimestampFilter_get_first_timestamp(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
23863 /* @internal */
23864 export function GossipTimestampFilter_get_first_timestamp(this_ptr: number): number {
23865         if(!isWasmInitialized) {
23866                 throw new Error("initializeWasm() must be awaited first!");
23867         }
23868         const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_first_timestamp(this_ptr);
23869         return nativeResponseValue;
23870 }
23871         // void GossipTimestampFilter_set_first_timestamp(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
23872 /* @internal */
23873 export function GossipTimestampFilter_set_first_timestamp(this_ptr: number, val: number): void {
23874         if(!isWasmInitialized) {
23875                 throw new Error("initializeWasm() must be awaited first!");
23876         }
23877         const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_first_timestamp(this_ptr, val);
23878         // debug statements here
23879 }
23880         // uint32_t GossipTimestampFilter_get_timestamp_range(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
23881 /* @internal */
23882 export function GossipTimestampFilter_get_timestamp_range(this_ptr: number): number {
23883         if(!isWasmInitialized) {
23884                 throw new Error("initializeWasm() must be awaited first!");
23885         }
23886         const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_timestamp_range(this_ptr);
23887         return nativeResponseValue;
23888 }
23889         // void GossipTimestampFilter_set_timestamp_range(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
23890 /* @internal */
23891 export function GossipTimestampFilter_set_timestamp_range(this_ptr: number, val: number): void {
23892         if(!isWasmInitialized) {
23893                 throw new Error("initializeWasm() must be awaited first!");
23894         }
23895         const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_timestamp_range(this_ptr, val);
23896         // debug statements here
23897 }
23898         // MUST_USE_RES struct LDKGossipTimestampFilter GossipTimestampFilter_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_timestamp_arg, uint32_t timestamp_range_arg);
23899 /* @internal */
23900 export function GossipTimestampFilter_new(chain_hash_arg: number, first_timestamp_arg: number, timestamp_range_arg: number): number {
23901         if(!isWasmInitialized) {
23902                 throw new Error("initializeWasm() must be awaited first!");
23903         }
23904         const nativeResponseValue = wasm.TS_GossipTimestampFilter_new(chain_hash_arg, first_timestamp_arg, timestamp_range_arg);
23905         return nativeResponseValue;
23906 }
23907         // uintptr_t GossipTimestampFilter_clone_ptr(LDKGossipTimestampFilter *NONNULL_PTR arg);
23908 /* @internal */
23909 export function GossipTimestampFilter_clone_ptr(arg: number): number {
23910         if(!isWasmInitialized) {
23911                 throw new Error("initializeWasm() must be awaited first!");
23912         }
23913         const nativeResponseValue = wasm.TS_GossipTimestampFilter_clone_ptr(arg);
23914         return nativeResponseValue;
23915 }
23916         // struct LDKGossipTimestampFilter GossipTimestampFilter_clone(const struct LDKGossipTimestampFilter *NONNULL_PTR orig);
23917 /* @internal */
23918 export function GossipTimestampFilter_clone(orig: number): number {
23919         if(!isWasmInitialized) {
23920                 throw new Error("initializeWasm() must be awaited first!");
23921         }
23922         const nativeResponseValue = wasm.TS_GossipTimestampFilter_clone(orig);
23923         return nativeResponseValue;
23924 }
23925         // void ErrorAction_free(struct LDKErrorAction this_ptr);
23926 /* @internal */
23927 export function ErrorAction_free(this_ptr: number): void {
23928         if(!isWasmInitialized) {
23929                 throw new Error("initializeWasm() must be awaited first!");
23930         }
23931         const nativeResponseValue = wasm.TS_ErrorAction_free(this_ptr);
23932         // debug statements here
23933 }
23934         // uintptr_t ErrorAction_clone_ptr(LDKErrorAction *NONNULL_PTR arg);
23935 /* @internal */
23936 export function ErrorAction_clone_ptr(arg: number): number {
23937         if(!isWasmInitialized) {
23938                 throw new Error("initializeWasm() must be awaited first!");
23939         }
23940         const nativeResponseValue = wasm.TS_ErrorAction_clone_ptr(arg);
23941         return nativeResponseValue;
23942 }
23943         // struct LDKErrorAction ErrorAction_clone(const struct LDKErrorAction *NONNULL_PTR orig);
23944 /* @internal */
23945 export function ErrorAction_clone(orig: number): number {
23946         if(!isWasmInitialized) {
23947                 throw new Error("initializeWasm() must be awaited first!");
23948         }
23949         const nativeResponseValue = wasm.TS_ErrorAction_clone(orig);
23950         return nativeResponseValue;
23951 }
23952         // struct LDKErrorAction ErrorAction_disconnect_peer(struct LDKErrorMessage msg);
23953 /* @internal */
23954 export function ErrorAction_disconnect_peer(msg: number): number {
23955         if(!isWasmInitialized) {
23956                 throw new Error("initializeWasm() must be awaited first!");
23957         }
23958         const nativeResponseValue = wasm.TS_ErrorAction_disconnect_peer(msg);
23959         return nativeResponseValue;
23960 }
23961         // struct LDKErrorAction ErrorAction_ignore_error(void);
23962 /* @internal */
23963 export function ErrorAction_ignore_error(): number {
23964         if(!isWasmInitialized) {
23965                 throw new Error("initializeWasm() must be awaited first!");
23966         }
23967         const nativeResponseValue = wasm.TS_ErrorAction_ignore_error();
23968         return nativeResponseValue;
23969 }
23970         // struct LDKErrorAction ErrorAction_ignore_and_log(enum LDKLevel a);
23971 /* @internal */
23972 export function ErrorAction_ignore_and_log(a: Level): number {
23973         if(!isWasmInitialized) {
23974                 throw new Error("initializeWasm() must be awaited first!");
23975         }
23976         const nativeResponseValue = wasm.TS_ErrorAction_ignore_and_log(a);
23977         return nativeResponseValue;
23978 }
23979         // struct LDKErrorAction ErrorAction_ignore_duplicate_gossip(void);
23980 /* @internal */
23981 export function ErrorAction_ignore_duplicate_gossip(): number {
23982         if(!isWasmInitialized) {
23983                 throw new Error("initializeWasm() must be awaited first!");
23984         }
23985         const nativeResponseValue = wasm.TS_ErrorAction_ignore_duplicate_gossip();
23986         return nativeResponseValue;
23987 }
23988         // struct LDKErrorAction ErrorAction_send_error_message(struct LDKErrorMessage msg);
23989 /* @internal */
23990 export function ErrorAction_send_error_message(msg: number): number {
23991         if(!isWasmInitialized) {
23992                 throw new Error("initializeWasm() must be awaited first!");
23993         }
23994         const nativeResponseValue = wasm.TS_ErrorAction_send_error_message(msg);
23995         return nativeResponseValue;
23996 }
23997         // struct LDKErrorAction ErrorAction_send_warning_message(struct LDKWarningMessage msg, enum LDKLevel log_level);
23998 /* @internal */
23999 export function ErrorAction_send_warning_message(msg: number, log_level: Level): number {
24000         if(!isWasmInitialized) {
24001                 throw new Error("initializeWasm() must be awaited first!");
24002         }
24003         const nativeResponseValue = wasm.TS_ErrorAction_send_warning_message(msg, log_level);
24004         return nativeResponseValue;
24005 }
24006         // void LightningError_free(struct LDKLightningError this_obj);
24007 /* @internal */
24008 export function LightningError_free(this_obj: number): void {
24009         if(!isWasmInitialized) {
24010                 throw new Error("initializeWasm() must be awaited first!");
24011         }
24012         const nativeResponseValue = wasm.TS_LightningError_free(this_obj);
24013         // debug statements here
24014 }
24015         // struct LDKStr LightningError_get_err(const struct LDKLightningError *NONNULL_PTR this_ptr);
24016 /* @internal */
24017 export function LightningError_get_err(this_ptr: number): number {
24018         if(!isWasmInitialized) {
24019                 throw new Error("initializeWasm() must be awaited first!");
24020         }
24021         const nativeResponseValue = wasm.TS_LightningError_get_err(this_ptr);
24022         return nativeResponseValue;
24023 }
24024         // void LightningError_set_err(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKStr val);
24025 /* @internal */
24026 export function LightningError_set_err(this_ptr: number, val: number): void {
24027         if(!isWasmInitialized) {
24028                 throw new Error("initializeWasm() must be awaited first!");
24029         }
24030         const nativeResponseValue = wasm.TS_LightningError_set_err(this_ptr, val);
24031         // debug statements here
24032 }
24033         // struct LDKErrorAction LightningError_get_action(const struct LDKLightningError *NONNULL_PTR this_ptr);
24034 /* @internal */
24035 export function LightningError_get_action(this_ptr: number): number {
24036         if(!isWasmInitialized) {
24037                 throw new Error("initializeWasm() must be awaited first!");
24038         }
24039         const nativeResponseValue = wasm.TS_LightningError_get_action(this_ptr);
24040         return nativeResponseValue;
24041 }
24042         // void LightningError_set_action(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKErrorAction val);
24043 /* @internal */
24044 export function LightningError_set_action(this_ptr: number, val: number): void {
24045         if(!isWasmInitialized) {
24046                 throw new Error("initializeWasm() must be awaited first!");
24047         }
24048         const nativeResponseValue = wasm.TS_LightningError_set_action(this_ptr, val);
24049         // debug statements here
24050 }
24051         // MUST_USE_RES struct LDKLightningError LightningError_new(struct LDKStr err_arg, struct LDKErrorAction action_arg);
24052 /* @internal */
24053 export function LightningError_new(err_arg: number, action_arg: number): number {
24054         if(!isWasmInitialized) {
24055                 throw new Error("initializeWasm() must be awaited first!");
24056         }
24057         const nativeResponseValue = wasm.TS_LightningError_new(err_arg, action_arg);
24058         return nativeResponseValue;
24059 }
24060         // uintptr_t LightningError_clone_ptr(LDKLightningError *NONNULL_PTR arg);
24061 /* @internal */
24062 export function LightningError_clone_ptr(arg: number): number {
24063         if(!isWasmInitialized) {
24064                 throw new Error("initializeWasm() must be awaited first!");
24065         }
24066         const nativeResponseValue = wasm.TS_LightningError_clone_ptr(arg);
24067         return nativeResponseValue;
24068 }
24069         // struct LDKLightningError LightningError_clone(const struct LDKLightningError *NONNULL_PTR orig);
24070 /* @internal */
24071 export function LightningError_clone(orig: number): number {
24072         if(!isWasmInitialized) {
24073                 throw new Error("initializeWasm() must be awaited first!");
24074         }
24075         const nativeResponseValue = wasm.TS_LightningError_clone(orig);
24076         return nativeResponseValue;
24077 }
24078         // void CommitmentUpdate_free(struct LDKCommitmentUpdate this_obj);
24079 /* @internal */
24080 export function CommitmentUpdate_free(this_obj: number): void {
24081         if(!isWasmInitialized) {
24082                 throw new Error("initializeWasm() must be awaited first!");
24083         }
24084         const nativeResponseValue = wasm.TS_CommitmentUpdate_free(this_obj);
24085         // debug statements here
24086 }
24087         // struct LDKCVec_UpdateAddHTLCZ CommitmentUpdate_get_update_add_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
24088 /* @internal */
24089 export function CommitmentUpdate_get_update_add_htlcs(this_ptr: number): number {
24090         if(!isWasmInitialized) {
24091                 throw new Error("initializeWasm() must be awaited first!");
24092         }
24093         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_add_htlcs(this_ptr);
24094         return nativeResponseValue;
24095 }
24096         // void CommitmentUpdate_set_update_add_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateAddHTLCZ val);
24097 /* @internal */
24098 export function CommitmentUpdate_set_update_add_htlcs(this_ptr: number, val: number): void {
24099         if(!isWasmInitialized) {
24100                 throw new Error("initializeWasm() must be awaited first!");
24101         }
24102         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_add_htlcs(this_ptr, val);
24103         // debug statements here
24104 }
24105         // struct LDKCVec_UpdateFulfillHTLCZ CommitmentUpdate_get_update_fulfill_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
24106 /* @internal */
24107 export function CommitmentUpdate_get_update_fulfill_htlcs(this_ptr: number): number {
24108         if(!isWasmInitialized) {
24109                 throw new Error("initializeWasm() must be awaited first!");
24110         }
24111         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fulfill_htlcs(this_ptr);
24112         return nativeResponseValue;
24113 }
24114         // void CommitmentUpdate_set_update_fulfill_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFulfillHTLCZ val);
24115 /* @internal */
24116 export function CommitmentUpdate_set_update_fulfill_htlcs(this_ptr: number, val: number): void {
24117         if(!isWasmInitialized) {
24118                 throw new Error("initializeWasm() must be awaited first!");
24119         }
24120         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fulfill_htlcs(this_ptr, val);
24121         // debug statements here
24122 }
24123         // struct LDKCVec_UpdateFailHTLCZ CommitmentUpdate_get_update_fail_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
24124 /* @internal */
24125 export function CommitmentUpdate_get_update_fail_htlcs(this_ptr: number): number {
24126         if(!isWasmInitialized) {
24127                 throw new Error("initializeWasm() must be awaited first!");
24128         }
24129         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fail_htlcs(this_ptr);
24130         return nativeResponseValue;
24131 }
24132         // void CommitmentUpdate_set_update_fail_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailHTLCZ val);
24133 /* @internal */
24134 export function CommitmentUpdate_set_update_fail_htlcs(this_ptr: number, val: number): void {
24135         if(!isWasmInitialized) {
24136                 throw new Error("initializeWasm() must be awaited first!");
24137         }
24138         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fail_htlcs(this_ptr, val);
24139         // debug statements here
24140 }
24141         // struct LDKCVec_UpdateFailMalformedHTLCZ CommitmentUpdate_get_update_fail_malformed_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
24142 /* @internal */
24143 export function CommitmentUpdate_get_update_fail_malformed_htlcs(this_ptr: number): number {
24144         if(!isWasmInitialized) {
24145                 throw new Error("initializeWasm() must be awaited first!");
24146         }
24147         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fail_malformed_htlcs(this_ptr);
24148         return nativeResponseValue;
24149 }
24150         // void CommitmentUpdate_set_update_fail_malformed_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailMalformedHTLCZ val);
24151 /* @internal */
24152 export function CommitmentUpdate_set_update_fail_malformed_htlcs(this_ptr: number, val: number): void {
24153         if(!isWasmInitialized) {
24154                 throw new Error("initializeWasm() must be awaited first!");
24155         }
24156         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fail_malformed_htlcs(this_ptr, val);
24157         // debug statements here
24158 }
24159         // struct LDKUpdateFee CommitmentUpdate_get_update_fee(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
24160 /* @internal */
24161 export function CommitmentUpdate_get_update_fee(this_ptr: number): number {
24162         if(!isWasmInitialized) {
24163                 throw new Error("initializeWasm() must be awaited first!");
24164         }
24165         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fee(this_ptr);
24166         return nativeResponseValue;
24167 }
24168         // void CommitmentUpdate_set_update_fee(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKUpdateFee val);
24169 /* @internal */
24170 export function CommitmentUpdate_set_update_fee(this_ptr: number, val: number): void {
24171         if(!isWasmInitialized) {
24172                 throw new Error("initializeWasm() must be awaited first!");
24173         }
24174         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fee(this_ptr, val);
24175         // debug statements here
24176 }
24177         // struct LDKCommitmentSigned CommitmentUpdate_get_commitment_signed(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
24178 /* @internal */
24179 export function CommitmentUpdate_get_commitment_signed(this_ptr: number): number {
24180         if(!isWasmInitialized) {
24181                 throw new Error("initializeWasm() must be awaited first!");
24182         }
24183         const nativeResponseValue = wasm.TS_CommitmentUpdate_get_commitment_signed(this_ptr);
24184         return nativeResponseValue;
24185 }
24186         // void CommitmentUpdate_set_commitment_signed(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCommitmentSigned val);
24187 /* @internal */
24188 export function CommitmentUpdate_set_commitment_signed(this_ptr: number, val: number): void {
24189         if(!isWasmInitialized) {
24190                 throw new Error("initializeWasm() must be awaited first!");
24191         }
24192         const nativeResponseValue = wasm.TS_CommitmentUpdate_set_commitment_signed(this_ptr, val);
24193         // debug statements here
24194 }
24195         // 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);
24196 /* @internal */
24197 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 {
24198         if(!isWasmInitialized) {
24199                 throw new Error("initializeWasm() must be awaited first!");
24200         }
24201         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);
24202         return nativeResponseValue;
24203 }
24204         // uintptr_t CommitmentUpdate_clone_ptr(LDKCommitmentUpdate *NONNULL_PTR arg);
24205 /* @internal */
24206 export function CommitmentUpdate_clone_ptr(arg: number): number {
24207         if(!isWasmInitialized) {
24208                 throw new Error("initializeWasm() must be awaited first!");
24209         }
24210         const nativeResponseValue = wasm.TS_CommitmentUpdate_clone_ptr(arg);
24211         return nativeResponseValue;
24212 }
24213         // struct LDKCommitmentUpdate CommitmentUpdate_clone(const struct LDKCommitmentUpdate *NONNULL_PTR orig);
24214 /* @internal */
24215 export function CommitmentUpdate_clone(orig: number): number {
24216         if(!isWasmInitialized) {
24217                 throw new Error("initializeWasm() must be awaited first!");
24218         }
24219         const nativeResponseValue = wasm.TS_CommitmentUpdate_clone(orig);
24220         return nativeResponseValue;
24221 }
24222         // void ChannelMessageHandler_free(struct LDKChannelMessageHandler this_ptr);
24223 /* @internal */
24224 export function ChannelMessageHandler_free(this_ptr: number): void {
24225         if(!isWasmInitialized) {
24226                 throw new Error("initializeWasm() must be awaited first!");
24227         }
24228         const nativeResponseValue = wasm.TS_ChannelMessageHandler_free(this_ptr);
24229         // debug statements here
24230 }
24231         // void RoutingMessageHandler_free(struct LDKRoutingMessageHandler this_ptr);
24232 /* @internal */
24233 export function RoutingMessageHandler_free(this_ptr: number): void {
24234         if(!isWasmInitialized) {
24235                 throw new Error("initializeWasm() must be awaited first!");
24236         }
24237         const nativeResponseValue = wasm.TS_RoutingMessageHandler_free(this_ptr);
24238         // debug statements here
24239 }
24240         // struct LDKCVec_u8Z AcceptChannel_write(const struct LDKAcceptChannel *NONNULL_PTR obj);
24241 /* @internal */
24242 export function AcceptChannel_write(obj: number): number {
24243         if(!isWasmInitialized) {
24244                 throw new Error("initializeWasm() must be awaited first!");
24245         }
24246         const nativeResponseValue = wasm.TS_AcceptChannel_write(obj);
24247         return nativeResponseValue;
24248 }
24249         // struct LDKCResult_AcceptChannelDecodeErrorZ AcceptChannel_read(struct LDKu8slice ser);
24250 /* @internal */
24251 export function AcceptChannel_read(ser: number): number {
24252         if(!isWasmInitialized) {
24253                 throw new Error("initializeWasm() must be awaited first!");
24254         }
24255         const nativeResponseValue = wasm.TS_AcceptChannel_read(ser);
24256         return nativeResponseValue;
24257 }
24258         // struct LDKCVec_u8Z AnnouncementSignatures_write(const struct LDKAnnouncementSignatures *NONNULL_PTR obj);
24259 /* @internal */
24260 export function AnnouncementSignatures_write(obj: number): number {
24261         if(!isWasmInitialized) {
24262                 throw new Error("initializeWasm() must be awaited first!");
24263         }
24264         const nativeResponseValue = wasm.TS_AnnouncementSignatures_write(obj);
24265         return nativeResponseValue;
24266 }
24267         // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ AnnouncementSignatures_read(struct LDKu8slice ser);
24268 /* @internal */
24269 export function AnnouncementSignatures_read(ser: number): number {
24270         if(!isWasmInitialized) {
24271                 throw new Error("initializeWasm() must be awaited first!");
24272         }
24273         const nativeResponseValue = wasm.TS_AnnouncementSignatures_read(ser);
24274         return nativeResponseValue;
24275 }
24276         // struct LDKCVec_u8Z ChannelReestablish_write(const struct LDKChannelReestablish *NONNULL_PTR obj);
24277 /* @internal */
24278 export function ChannelReestablish_write(obj: number): number {
24279         if(!isWasmInitialized) {
24280                 throw new Error("initializeWasm() must be awaited first!");
24281         }
24282         const nativeResponseValue = wasm.TS_ChannelReestablish_write(obj);
24283         return nativeResponseValue;
24284 }
24285         // struct LDKCResult_ChannelReestablishDecodeErrorZ ChannelReestablish_read(struct LDKu8slice ser);
24286 /* @internal */
24287 export function ChannelReestablish_read(ser: number): number {
24288         if(!isWasmInitialized) {
24289                 throw new Error("initializeWasm() must be awaited first!");
24290         }
24291         const nativeResponseValue = wasm.TS_ChannelReestablish_read(ser);
24292         return nativeResponseValue;
24293 }
24294         // struct LDKCVec_u8Z ClosingSigned_write(const struct LDKClosingSigned *NONNULL_PTR obj);
24295 /* @internal */
24296 export function ClosingSigned_write(obj: number): number {
24297         if(!isWasmInitialized) {
24298                 throw new Error("initializeWasm() must be awaited first!");
24299         }
24300         const nativeResponseValue = wasm.TS_ClosingSigned_write(obj);
24301         return nativeResponseValue;
24302 }
24303         // struct LDKCResult_ClosingSignedDecodeErrorZ ClosingSigned_read(struct LDKu8slice ser);
24304 /* @internal */
24305 export function ClosingSigned_read(ser: number): number {
24306         if(!isWasmInitialized) {
24307                 throw new Error("initializeWasm() must be awaited first!");
24308         }
24309         const nativeResponseValue = wasm.TS_ClosingSigned_read(ser);
24310         return nativeResponseValue;
24311 }
24312         // struct LDKCVec_u8Z ClosingSignedFeeRange_write(const struct LDKClosingSignedFeeRange *NONNULL_PTR obj);
24313 /* @internal */
24314 export function ClosingSignedFeeRange_write(obj: number): number {
24315         if(!isWasmInitialized) {
24316                 throw new Error("initializeWasm() must be awaited first!");
24317         }
24318         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_write(obj);
24319         return nativeResponseValue;
24320 }
24321         // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ ClosingSignedFeeRange_read(struct LDKu8slice ser);
24322 /* @internal */
24323 export function ClosingSignedFeeRange_read(ser: number): number {
24324         if(!isWasmInitialized) {
24325                 throw new Error("initializeWasm() must be awaited first!");
24326         }
24327         const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_read(ser);
24328         return nativeResponseValue;
24329 }
24330         // struct LDKCVec_u8Z CommitmentSigned_write(const struct LDKCommitmentSigned *NONNULL_PTR obj);
24331 /* @internal */
24332 export function CommitmentSigned_write(obj: number): number {
24333         if(!isWasmInitialized) {
24334                 throw new Error("initializeWasm() must be awaited first!");
24335         }
24336         const nativeResponseValue = wasm.TS_CommitmentSigned_write(obj);
24337         return nativeResponseValue;
24338 }
24339         // struct LDKCResult_CommitmentSignedDecodeErrorZ CommitmentSigned_read(struct LDKu8slice ser);
24340 /* @internal */
24341 export function CommitmentSigned_read(ser: number): number {
24342         if(!isWasmInitialized) {
24343                 throw new Error("initializeWasm() must be awaited first!");
24344         }
24345         const nativeResponseValue = wasm.TS_CommitmentSigned_read(ser);
24346         return nativeResponseValue;
24347 }
24348         // struct LDKCVec_u8Z FundingCreated_write(const struct LDKFundingCreated *NONNULL_PTR obj);
24349 /* @internal */
24350 export function FundingCreated_write(obj: number): number {
24351         if(!isWasmInitialized) {
24352                 throw new Error("initializeWasm() must be awaited first!");
24353         }
24354         const nativeResponseValue = wasm.TS_FundingCreated_write(obj);
24355         return nativeResponseValue;
24356 }
24357         // struct LDKCResult_FundingCreatedDecodeErrorZ FundingCreated_read(struct LDKu8slice ser);
24358 /* @internal */
24359 export function FundingCreated_read(ser: number): number {
24360         if(!isWasmInitialized) {
24361                 throw new Error("initializeWasm() must be awaited first!");
24362         }
24363         const nativeResponseValue = wasm.TS_FundingCreated_read(ser);
24364         return nativeResponseValue;
24365 }
24366         // struct LDKCVec_u8Z FundingSigned_write(const struct LDKFundingSigned *NONNULL_PTR obj);
24367 /* @internal */
24368 export function FundingSigned_write(obj: number): number {
24369         if(!isWasmInitialized) {
24370                 throw new Error("initializeWasm() must be awaited first!");
24371         }
24372         const nativeResponseValue = wasm.TS_FundingSigned_write(obj);
24373         return nativeResponseValue;
24374 }
24375         // struct LDKCResult_FundingSignedDecodeErrorZ FundingSigned_read(struct LDKu8slice ser);
24376 /* @internal */
24377 export function FundingSigned_read(ser: number): number {
24378         if(!isWasmInitialized) {
24379                 throw new Error("initializeWasm() must be awaited first!");
24380         }
24381         const nativeResponseValue = wasm.TS_FundingSigned_read(ser);
24382         return nativeResponseValue;
24383 }
24384         // struct LDKCVec_u8Z ChannelReady_write(const struct LDKChannelReady *NONNULL_PTR obj);
24385 /* @internal */
24386 export function ChannelReady_write(obj: number): number {
24387         if(!isWasmInitialized) {
24388                 throw new Error("initializeWasm() must be awaited first!");
24389         }
24390         const nativeResponseValue = wasm.TS_ChannelReady_write(obj);
24391         return nativeResponseValue;
24392 }
24393         // struct LDKCResult_ChannelReadyDecodeErrorZ ChannelReady_read(struct LDKu8slice ser);
24394 /* @internal */
24395 export function ChannelReady_read(ser: number): number {
24396         if(!isWasmInitialized) {
24397                 throw new Error("initializeWasm() must be awaited first!");
24398         }
24399         const nativeResponseValue = wasm.TS_ChannelReady_read(ser);
24400         return nativeResponseValue;
24401 }
24402         // struct LDKCVec_u8Z Init_write(const struct LDKInit *NONNULL_PTR obj);
24403 /* @internal */
24404 export function Init_write(obj: number): number {
24405         if(!isWasmInitialized) {
24406                 throw new Error("initializeWasm() must be awaited first!");
24407         }
24408         const nativeResponseValue = wasm.TS_Init_write(obj);
24409         return nativeResponseValue;
24410 }
24411         // struct LDKCResult_InitDecodeErrorZ Init_read(struct LDKu8slice ser);
24412 /* @internal */
24413 export function Init_read(ser: number): number {
24414         if(!isWasmInitialized) {
24415                 throw new Error("initializeWasm() must be awaited first!");
24416         }
24417         const nativeResponseValue = wasm.TS_Init_read(ser);
24418         return nativeResponseValue;
24419 }
24420         // struct LDKCVec_u8Z OpenChannel_write(const struct LDKOpenChannel *NONNULL_PTR obj);
24421 /* @internal */
24422 export function OpenChannel_write(obj: number): number {
24423         if(!isWasmInitialized) {
24424                 throw new Error("initializeWasm() must be awaited first!");
24425         }
24426         const nativeResponseValue = wasm.TS_OpenChannel_write(obj);
24427         return nativeResponseValue;
24428 }
24429         // struct LDKCResult_OpenChannelDecodeErrorZ OpenChannel_read(struct LDKu8slice ser);
24430 /* @internal */
24431 export function OpenChannel_read(ser: number): number {
24432         if(!isWasmInitialized) {
24433                 throw new Error("initializeWasm() must be awaited first!");
24434         }
24435         const nativeResponseValue = wasm.TS_OpenChannel_read(ser);
24436         return nativeResponseValue;
24437 }
24438         // struct LDKCVec_u8Z RevokeAndACK_write(const struct LDKRevokeAndACK *NONNULL_PTR obj);
24439 /* @internal */
24440 export function RevokeAndACK_write(obj: number): number {
24441         if(!isWasmInitialized) {
24442                 throw new Error("initializeWasm() must be awaited first!");
24443         }
24444         const nativeResponseValue = wasm.TS_RevokeAndACK_write(obj);
24445         return nativeResponseValue;
24446 }
24447         // struct LDKCResult_RevokeAndACKDecodeErrorZ RevokeAndACK_read(struct LDKu8slice ser);
24448 /* @internal */
24449 export function RevokeAndACK_read(ser: number): number {
24450         if(!isWasmInitialized) {
24451                 throw new Error("initializeWasm() must be awaited first!");
24452         }
24453         const nativeResponseValue = wasm.TS_RevokeAndACK_read(ser);
24454         return nativeResponseValue;
24455 }
24456         // struct LDKCVec_u8Z Shutdown_write(const struct LDKShutdown *NONNULL_PTR obj);
24457 /* @internal */
24458 export function Shutdown_write(obj: number): number {
24459         if(!isWasmInitialized) {
24460                 throw new Error("initializeWasm() must be awaited first!");
24461         }
24462         const nativeResponseValue = wasm.TS_Shutdown_write(obj);
24463         return nativeResponseValue;
24464 }
24465         // struct LDKCResult_ShutdownDecodeErrorZ Shutdown_read(struct LDKu8slice ser);
24466 /* @internal */
24467 export function Shutdown_read(ser: number): number {
24468         if(!isWasmInitialized) {
24469                 throw new Error("initializeWasm() must be awaited first!");
24470         }
24471         const nativeResponseValue = wasm.TS_Shutdown_read(ser);
24472         return nativeResponseValue;
24473 }
24474         // struct LDKCVec_u8Z UpdateFailHTLC_write(const struct LDKUpdateFailHTLC *NONNULL_PTR obj);
24475 /* @internal */
24476 export function UpdateFailHTLC_write(obj: number): number {
24477         if(!isWasmInitialized) {
24478                 throw new Error("initializeWasm() must be awaited first!");
24479         }
24480         const nativeResponseValue = wasm.TS_UpdateFailHTLC_write(obj);
24481         return nativeResponseValue;
24482 }
24483         // struct LDKCResult_UpdateFailHTLCDecodeErrorZ UpdateFailHTLC_read(struct LDKu8slice ser);
24484 /* @internal */
24485 export function UpdateFailHTLC_read(ser: number): number {
24486         if(!isWasmInitialized) {
24487                 throw new Error("initializeWasm() must be awaited first!");
24488         }
24489         const nativeResponseValue = wasm.TS_UpdateFailHTLC_read(ser);
24490         return nativeResponseValue;
24491 }
24492         // struct LDKCVec_u8Z UpdateFailMalformedHTLC_write(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR obj);
24493 /* @internal */
24494 export function UpdateFailMalformedHTLC_write(obj: number): number {
24495         if(!isWasmInitialized) {
24496                 throw new Error("initializeWasm() must be awaited first!");
24497         }
24498         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_write(obj);
24499         return nativeResponseValue;
24500 }
24501         // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ UpdateFailMalformedHTLC_read(struct LDKu8slice ser);
24502 /* @internal */
24503 export function UpdateFailMalformedHTLC_read(ser: number): number {
24504         if(!isWasmInitialized) {
24505                 throw new Error("initializeWasm() must be awaited first!");
24506         }
24507         const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_read(ser);
24508         return nativeResponseValue;
24509 }
24510         // struct LDKCVec_u8Z UpdateFee_write(const struct LDKUpdateFee *NONNULL_PTR obj);
24511 /* @internal */
24512 export function UpdateFee_write(obj: number): number {
24513         if(!isWasmInitialized) {
24514                 throw new Error("initializeWasm() must be awaited first!");
24515         }
24516         const nativeResponseValue = wasm.TS_UpdateFee_write(obj);
24517         return nativeResponseValue;
24518 }
24519         // struct LDKCResult_UpdateFeeDecodeErrorZ UpdateFee_read(struct LDKu8slice ser);
24520 /* @internal */
24521 export function UpdateFee_read(ser: number): number {
24522         if(!isWasmInitialized) {
24523                 throw new Error("initializeWasm() must be awaited first!");
24524         }
24525         const nativeResponseValue = wasm.TS_UpdateFee_read(ser);
24526         return nativeResponseValue;
24527 }
24528         // struct LDKCVec_u8Z UpdateFulfillHTLC_write(const struct LDKUpdateFulfillHTLC *NONNULL_PTR obj);
24529 /* @internal */
24530 export function UpdateFulfillHTLC_write(obj: number): number {
24531         if(!isWasmInitialized) {
24532                 throw new Error("initializeWasm() must be awaited first!");
24533         }
24534         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_write(obj);
24535         return nativeResponseValue;
24536 }
24537         // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ UpdateFulfillHTLC_read(struct LDKu8slice ser);
24538 /* @internal */
24539 export function UpdateFulfillHTLC_read(ser: number): number {
24540         if(!isWasmInitialized) {
24541                 throw new Error("initializeWasm() must be awaited first!");
24542         }
24543         const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_read(ser);
24544         return nativeResponseValue;
24545 }
24546         // struct LDKCVec_u8Z UpdateAddHTLC_write(const struct LDKUpdateAddHTLC *NONNULL_PTR obj);
24547 /* @internal */
24548 export function UpdateAddHTLC_write(obj: number): number {
24549         if(!isWasmInitialized) {
24550                 throw new Error("initializeWasm() must be awaited first!");
24551         }
24552         const nativeResponseValue = wasm.TS_UpdateAddHTLC_write(obj);
24553         return nativeResponseValue;
24554 }
24555         // struct LDKCResult_UpdateAddHTLCDecodeErrorZ UpdateAddHTLC_read(struct LDKu8slice ser);
24556 /* @internal */
24557 export function UpdateAddHTLC_read(ser: number): number {
24558         if(!isWasmInitialized) {
24559                 throw new Error("initializeWasm() must be awaited first!");
24560         }
24561         const nativeResponseValue = wasm.TS_UpdateAddHTLC_read(ser);
24562         return nativeResponseValue;
24563 }
24564         // struct LDKCVec_u8Z Ping_write(const struct LDKPing *NONNULL_PTR obj);
24565 /* @internal */
24566 export function Ping_write(obj: number): number {
24567         if(!isWasmInitialized) {
24568                 throw new Error("initializeWasm() must be awaited first!");
24569         }
24570         const nativeResponseValue = wasm.TS_Ping_write(obj);
24571         return nativeResponseValue;
24572 }
24573         // struct LDKCResult_PingDecodeErrorZ Ping_read(struct LDKu8slice ser);
24574 /* @internal */
24575 export function Ping_read(ser: number): number {
24576         if(!isWasmInitialized) {
24577                 throw new Error("initializeWasm() must be awaited first!");
24578         }
24579         const nativeResponseValue = wasm.TS_Ping_read(ser);
24580         return nativeResponseValue;
24581 }
24582         // struct LDKCVec_u8Z Pong_write(const struct LDKPong *NONNULL_PTR obj);
24583 /* @internal */
24584 export function Pong_write(obj: number): number {
24585         if(!isWasmInitialized) {
24586                 throw new Error("initializeWasm() must be awaited first!");
24587         }
24588         const nativeResponseValue = wasm.TS_Pong_write(obj);
24589         return nativeResponseValue;
24590 }
24591         // struct LDKCResult_PongDecodeErrorZ Pong_read(struct LDKu8slice ser);
24592 /* @internal */
24593 export function Pong_read(ser: number): number {
24594         if(!isWasmInitialized) {
24595                 throw new Error("initializeWasm() must be awaited first!");
24596         }
24597         const nativeResponseValue = wasm.TS_Pong_read(ser);
24598         return nativeResponseValue;
24599 }
24600         // struct LDKCVec_u8Z UnsignedChannelAnnouncement_write(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR obj);
24601 /* @internal */
24602 export function UnsignedChannelAnnouncement_write(obj: number): number {
24603         if(!isWasmInitialized) {
24604                 throw new Error("initializeWasm() must be awaited first!");
24605         }
24606         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_write(obj);
24607         return nativeResponseValue;
24608 }
24609         // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ UnsignedChannelAnnouncement_read(struct LDKu8slice ser);
24610 /* @internal */
24611 export function UnsignedChannelAnnouncement_read(ser: number): number {
24612         if(!isWasmInitialized) {
24613                 throw new Error("initializeWasm() must be awaited first!");
24614         }
24615         const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_read(ser);
24616         return nativeResponseValue;
24617 }
24618         // struct LDKCVec_u8Z ChannelAnnouncement_write(const struct LDKChannelAnnouncement *NONNULL_PTR obj);
24619 /* @internal */
24620 export function ChannelAnnouncement_write(obj: number): number {
24621         if(!isWasmInitialized) {
24622                 throw new Error("initializeWasm() must be awaited first!");
24623         }
24624         const nativeResponseValue = wasm.TS_ChannelAnnouncement_write(obj);
24625         return nativeResponseValue;
24626 }
24627         // struct LDKCResult_ChannelAnnouncementDecodeErrorZ ChannelAnnouncement_read(struct LDKu8slice ser);
24628 /* @internal */
24629 export function ChannelAnnouncement_read(ser: number): number {
24630         if(!isWasmInitialized) {
24631                 throw new Error("initializeWasm() must be awaited first!");
24632         }
24633         const nativeResponseValue = wasm.TS_ChannelAnnouncement_read(ser);
24634         return nativeResponseValue;
24635 }
24636         // struct LDKCVec_u8Z UnsignedChannelUpdate_write(const struct LDKUnsignedChannelUpdate *NONNULL_PTR obj);
24637 /* @internal */
24638 export function UnsignedChannelUpdate_write(obj: number): number {
24639         if(!isWasmInitialized) {
24640                 throw new Error("initializeWasm() must be awaited first!");
24641         }
24642         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_write(obj);
24643         return nativeResponseValue;
24644 }
24645         // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ UnsignedChannelUpdate_read(struct LDKu8slice ser);
24646 /* @internal */
24647 export function UnsignedChannelUpdate_read(ser: number): number {
24648         if(!isWasmInitialized) {
24649                 throw new Error("initializeWasm() must be awaited first!");
24650         }
24651         const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_read(ser);
24652         return nativeResponseValue;
24653 }
24654         // struct LDKCVec_u8Z ChannelUpdate_write(const struct LDKChannelUpdate *NONNULL_PTR obj);
24655 /* @internal */
24656 export function ChannelUpdate_write(obj: number): number {
24657         if(!isWasmInitialized) {
24658                 throw new Error("initializeWasm() must be awaited first!");
24659         }
24660         const nativeResponseValue = wasm.TS_ChannelUpdate_write(obj);
24661         return nativeResponseValue;
24662 }
24663         // struct LDKCResult_ChannelUpdateDecodeErrorZ ChannelUpdate_read(struct LDKu8slice ser);
24664 /* @internal */
24665 export function ChannelUpdate_read(ser: number): number {
24666         if(!isWasmInitialized) {
24667                 throw new Error("initializeWasm() must be awaited first!");
24668         }
24669         const nativeResponseValue = wasm.TS_ChannelUpdate_read(ser);
24670         return nativeResponseValue;
24671 }
24672         // struct LDKCVec_u8Z ErrorMessage_write(const struct LDKErrorMessage *NONNULL_PTR obj);
24673 /* @internal */
24674 export function ErrorMessage_write(obj: number): number {
24675         if(!isWasmInitialized) {
24676                 throw new Error("initializeWasm() must be awaited first!");
24677         }
24678         const nativeResponseValue = wasm.TS_ErrorMessage_write(obj);
24679         return nativeResponseValue;
24680 }
24681         // struct LDKCResult_ErrorMessageDecodeErrorZ ErrorMessage_read(struct LDKu8slice ser);
24682 /* @internal */
24683 export function ErrorMessage_read(ser: number): number {
24684         if(!isWasmInitialized) {
24685                 throw new Error("initializeWasm() must be awaited first!");
24686         }
24687         const nativeResponseValue = wasm.TS_ErrorMessage_read(ser);
24688         return nativeResponseValue;
24689 }
24690         // struct LDKCVec_u8Z WarningMessage_write(const struct LDKWarningMessage *NONNULL_PTR obj);
24691 /* @internal */
24692 export function WarningMessage_write(obj: number): number {
24693         if(!isWasmInitialized) {
24694                 throw new Error("initializeWasm() must be awaited first!");
24695         }
24696         const nativeResponseValue = wasm.TS_WarningMessage_write(obj);
24697         return nativeResponseValue;
24698 }
24699         // struct LDKCResult_WarningMessageDecodeErrorZ WarningMessage_read(struct LDKu8slice ser);
24700 /* @internal */
24701 export function WarningMessage_read(ser: number): number {
24702         if(!isWasmInitialized) {
24703                 throw new Error("initializeWasm() must be awaited first!");
24704         }
24705         const nativeResponseValue = wasm.TS_WarningMessage_read(ser);
24706         return nativeResponseValue;
24707 }
24708         // struct LDKCVec_u8Z UnsignedNodeAnnouncement_write(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR obj);
24709 /* @internal */
24710 export function UnsignedNodeAnnouncement_write(obj: number): number {
24711         if(!isWasmInitialized) {
24712                 throw new Error("initializeWasm() must be awaited first!");
24713         }
24714         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_write(obj);
24715         return nativeResponseValue;
24716 }
24717         // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ UnsignedNodeAnnouncement_read(struct LDKu8slice ser);
24718 /* @internal */
24719 export function UnsignedNodeAnnouncement_read(ser: number): number {
24720         if(!isWasmInitialized) {
24721                 throw new Error("initializeWasm() must be awaited first!");
24722         }
24723         const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_read(ser);
24724         return nativeResponseValue;
24725 }
24726         // struct LDKCVec_u8Z NodeAnnouncement_write(const struct LDKNodeAnnouncement *NONNULL_PTR obj);
24727 /* @internal */
24728 export function NodeAnnouncement_write(obj: number): number {
24729         if(!isWasmInitialized) {
24730                 throw new Error("initializeWasm() must be awaited first!");
24731         }
24732         const nativeResponseValue = wasm.TS_NodeAnnouncement_write(obj);
24733         return nativeResponseValue;
24734 }
24735         // struct LDKCResult_NodeAnnouncementDecodeErrorZ NodeAnnouncement_read(struct LDKu8slice ser);
24736 /* @internal */
24737 export function NodeAnnouncement_read(ser: number): number {
24738         if(!isWasmInitialized) {
24739                 throw new Error("initializeWasm() must be awaited first!");
24740         }
24741         const nativeResponseValue = wasm.TS_NodeAnnouncement_read(ser);
24742         return nativeResponseValue;
24743 }
24744         // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ QueryShortChannelIds_read(struct LDKu8slice ser);
24745 /* @internal */
24746 export function QueryShortChannelIds_read(ser: number): number {
24747         if(!isWasmInitialized) {
24748                 throw new Error("initializeWasm() must be awaited first!");
24749         }
24750         const nativeResponseValue = wasm.TS_QueryShortChannelIds_read(ser);
24751         return nativeResponseValue;
24752 }
24753         // struct LDKCVec_u8Z QueryShortChannelIds_write(const struct LDKQueryShortChannelIds *NONNULL_PTR obj);
24754 /* @internal */
24755 export function QueryShortChannelIds_write(obj: number): number {
24756         if(!isWasmInitialized) {
24757                 throw new Error("initializeWasm() must be awaited first!");
24758         }
24759         const nativeResponseValue = wasm.TS_QueryShortChannelIds_write(obj);
24760         return nativeResponseValue;
24761 }
24762         // struct LDKCVec_u8Z ReplyShortChannelIdsEnd_write(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR obj);
24763 /* @internal */
24764 export function ReplyShortChannelIdsEnd_write(obj: number): number {
24765         if(!isWasmInitialized) {
24766                 throw new Error("initializeWasm() must be awaited first!");
24767         }
24768         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_write(obj);
24769         return nativeResponseValue;
24770 }
24771         // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ ReplyShortChannelIdsEnd_read(struct LDKu8slice ser);
24772 /* @internal */
24773 export function ReplyShortChannelIdsEnd_read(ser: number): number {
24774         if(!isWasmInitialized) {
24775                 throw new Error("initializeWasm() must be awaited first!");
24776         }
24777         const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_read(ser);
24778         return nativeResponseValue;
24779 }
24780         // MUST_USE_RES uint32_t QueryChannelRange_end_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_arg);
24781 /* @internal */
24782 export function QueryChannelRange_end_blocknum(this_arg: number): number {
24783         if(!isWasmInitialized) {
24784                 throw new Error("initializeWasm() must be awaited first!");
24785         }
24786         const nativeResponseValue = wasm.TS_QueryChannelRange_end_blocknum(this_arg);
24787         return nativeResponseValue;
24788 }
24789         // struct LDKCVec_u8Z QueryChannelRange_write(const struct LDKQueryChannelRange *NONNULL_PTR obj);
24790 /* @internal */
24791 export function QueryChannelRange_write(obj: number): number {
24792         if(!isWasmInitialized) {
24793                 throw new Error("initializeWasm() must be awaited first!");
24794         }
24795         const nativeResponseValue = wasm.TS_QueryChannelRange_write(obj);
24796         return nativeResponseValue;
24797 }
24798         // struct LDKCResult_QueryChannelRangeDecodeErrorZ QueryChannelRange_read(struct LDKu8slice ser);
24799 /* @internal */
24800 export function QueryChannelRange_read(ser: number): number {
24801         if(!isWasmInitialized) {
24802                 throw new Error("initializeWasm() must be awaited first!");
24803         }
24804         const nativeResponseValue = wasm.TS_QueryChannelRange_read(ser);
24805         return nativeResponseValue;
24806 }
24807         // struct LDKCResult_ReplyChannelRangeDecodeErrorZ ReplyChannelRange_read(struct LDKu8slice ser);
24808 /* @internal */
24809 export function ReplyChannelRange_read(ser: number): number {
24810         if(!isWasmInitialized) {
24811                 throw new Error("initializeWasm() must be awaited first!");
24812         }
24813         const nativeResponseValue = wasm.TS_ReplyChannelRange_read(ser);
24814         return nativeResponseValue;
24815 }
24816         // struct LDKCVec_u8Z ReplyChannelRange_write(const struct LDKReplyChannelRange *NONNULL_PTR obj);
24817 /* @internal */
24818 export function ReplyChannelRange_write(obj: number): number {
24819         if(!isWasmInitialized) {
24820                 throw new Error("initializeWasm() must be awaited first!");
24821         }
24822         const nativeResponseValue = wasm.TS_ReplyChannelRange_write(obj);
24823         return nativeResponseValue;
24824 }
24825         // struct LDKCVec_u8Z GossipTimestampFilter_write(const struct LDKGossipTimestampFilter *NONNULL_PTR obj);
24826 /* @internal */
24827 export function GossipTimestampFilter_write(obj: number): number {
24828         if(!isWasmInitialized) {
24829                 throw new Error("initializeWasm() must be awaited first!");
24830         }
24831         const nativeResponseValue = wasm.TS_GossipTimestampFilter_write(obj);
24832         return nativeResponseValue;
24833 }
24834         // struct LDKCResult_GossipTimestampFilterDecodeErrorZ GossipTimestampFilter_read(struct LDKu8slice ser);
24835 /* @internal */
24836 export function GossipTimestampFilter_read(ser: number): number {
24837         if(!isWasmInitialized) {
24838                 throw new Error("initializeWasm() must be awaited first!");
24839         }
24840         const nativeResponseValue = wasm.TS_GossipTimestampFilter_read(ser);
24841         return nativeResponseValue;
24842 }
24843         // void CustomMessageHandler_free(struct LDKCustomMessageHandler this_ptr);
24844 /* @internal */
24845 export function CustomMessageHandler_free(this_ptr: number): void {
24846         if(!isWasmInitialized) {
24847                 throw new Error("initializeWasm() must be awaited first!");
24848         }
24849         const nativeResponseValue = wasm.TS_CustomMessageHandler_free(this_ptr);
24850         // debug statements here
24851 }
24852         // void IgnoringMessageHandler_free(struct LDKIgnoringMessageHandler this_obj);
24853 /* @internal */
24854 export function IgnoringMessageHandler_free(this_obj: number): void {
24855         if(!isWasmInitialized) {
24856                 throw new Error("initializeWasm() must be awaited first!");
24857         }
24858         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_free(this_obj);
24859         // debug statements here
24860 }
24861         // MUST_USE_RES struct LDKIgnoringMessageHandler IgnoringMessageHandler_new(void);
24862 /* @internal */
24863 export function IgnoringMessageHandler_new(): number {
24864         if(!isWasmInitialized) {
24865                 throw new Error("initializeWasm() must be awaited first!");
24866         }
24867         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_new();
24868         return nativeResponseValue;
24869 }
24870         // struct LDKMessageSendEventsProvider IgnoringMessageHandler_as_MessageSendEventsProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
24871 /* @internal */
24872 export function IgnoringMessageHandler_as_MessageSendEventsProvider(this_arg: number): number {
24873         if(!isWasmInitialized) {
24874                 throw new Error("initializeWasm() must be awaited first!");
24875         }
24876         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_MessageSendEventsProvider(this_arg);
24877         return nativeResponseValue;
24878 }
24879         // struct LDKRoutingMessageHandler IgnoringMessageHandler_as_RoutingMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
24880 /* @internal */
24881 export function IgnoringMessageHandler_as_RoutingMessageHandler(this_arg: number): number {
24882         if(!isWasmInitialized) {
24883                 throw new Error("initializeWasm() must be awaited first!");
24884         }
24885         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_RoutingMessageHandler(this_arg);
24886         return nativeResponseValue;
24887 }
24888         // struct LDKCustomMessageReader IgnoringMessageHandler_as_CustomMessageReader(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
24889 /* @internal */
24890 export function IgnoringMessageHandler_as_CustomMessageReader(this_arg: number): number {
24891         if(!isWasmInitialized) {
24892                 throw new Error("initializeWasm() must be awaited first!");
24893         }
24894         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_CustomMessageReader(this_arg);
24895         return nativeResponseValue;
24896 }
24897         // struct LDKCustomMessageHandler IgnoringMessageHandler_as_CustomMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
24898 /* @internal */
24899 export function IgnoringMessageHandler_as_CustomMessageHandler(this_arg: number): number {
24900         if(!isWasmInitialized) {
24901                 throw new Error("initializeWasm() must be awaited first!");
24902         }
24903         const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_CustomMessageHandler(this_arg);
24904         return nativeResponseValue;
24905 }
24906         // void ErroringMessageHandler_free(struct LDKErroringMessageHandler this_obj);
24907 /* @internal */
24908 export function ErroringMessageHandler_free(this_obj: number): void {
24909         if(!isWasmInitialized) {
24910                 throw new Error("initializeWasm() must be awaited first!");
24911         }
24912         const nativeResponseValue = wasm.TS_ErroringMessageHandler_free(this_obj);
24913         // debug statements here
24914 }
24915         // MUST_USE_RES struct LDKErroringMessageHandler ErroringMessageHandler_new(void);
24916 /* @internal */
24917 export function ErroringMessageHandler_new(): number {
24918         if(!isWasmInitialized) {
24919                 throw new Error("initializeWasm() must be awaited first!");
24920         }
24921         const nativeResponseValue = wasm.TS_ErroringMessageHandler_new();
24922         return nativeResponseValue;
24923 }
24924         // struct LDKMessageSendEventsProvider ErroringMessageHandler_as_MessageSendEventsProvider(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
24925 /* @internal */
24926 export function ErroringMessageHandler_as_MessageSendEventsProvider(this_arg: number): number {
24927         if(!isWasmInitialized) {
24928                 throw new Error("initializeWasm() must be awaited first!");
24929         }
24930         const nativeResponseValue = wasm.TS_ErroringMessageHandler_as_MessageSendEventsProvider(this_arg);
24931         return nativeResponseValue;
24932 }
24933         // struct LDKChannelMessageHandler ErroringMessageHandler_as_ChannelMessageHandler(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
24934 /* @internal */
24935 export function ErroringMessageHandler_as_ChannelMessageHandler(this_arg: number): number {
24936         if(!isWasmInitialized) {
24937                 throw new Error("initializeWasm() must be awaited first!");
24938         }
24939         const nativeResponseValue = wasm.TS_ErroringMessageHandler_as_ChannelMessageHandler(this_arg);
24940         return nativeResponseValue;
24941 }
24942         // void MessageHandler_free(struct LDKMessageHandler this_obj);
24943 /* @internal */
24944 export function MessageHandler_free(this_obj: number): void {
24945         if(!isWasmInitialized) {
24946                 throw new Error("initializeWasm() must be awaited first!");
24947         }
24948         const nativeResponseValue = wasm.TS_MessageHandler_free(this_obj);
24949         // debug statements here
24950 }
24951         // const struct LDKChannelMessageHandler *MessageHandler_get_chan_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
24952 /* @internal */
24953 export function MessageHandler_get_chan_handler(this_ptr: number): number {
24954         if(!isWasmInitialized) {
24955                 throw new Error("initializeWasm() must be awaited first!");
24956         }
24957         const nativeResponseValue = wasm.TS_MessageHandler_get_chan_handler(this_ptr);
24958         return nativeResponseValue;
24959 }
24960         // void MessageHandler_set_chan_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKChannelMessageHandler val);
24961 /* @internal */
24962 export function MessageHandler_set_chan_handler(this_ptr: number, val: number): void {
24963         if(!isWasmInitialized) {
24964                 throw new Error("initializeWasm() must be awaited first!");
24965         }
24966         const nativeResponseValue = wasm.TS_MessageHandler_set_chan_handler(this_ptr, val);
24967         // debug statements here
24968 }
24969         // const struct LDKRoutingMessageHandler *MessageHandler_get_route_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
24970 /* @internal */
24971 export function MessageHandler_get_route_handler(this_ptr: number): number {
24972         if(!isWasmInitialized) {
24973                 throw new Error("initializeWasm() must be awaited first!");
24974         }
24975         const nativeResponseValue = wasm.TS_MessageHandler_get_route_handler(this_ptr);
24976         return nativeResponseValue;
24977 }
24978         // void MessageHandler_set_route_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKRoutingMessageHandler val);
24979 /* @internal */
24980 export function MessageHandler_set_route_handler(this_ptr: number, val: number): void {
24981         if(!isWasmInitialized) {
24982                 throw new Error("initializeWasm() must be awaited first!");
24983         }
24984         const nativeResponseValue = wasm.TS_MessageHandler_set_route_handler(this_ptr, val);
24985         // debug statements here
24986 }
24987         // MUST_USE_RES struct LDKMessageHandler MessageHandler_new(struct LDKChannelMessageHandler chan_handler_arg, struct LDKRoutingMessageHandler route_handler_arg);
24988 /* @internal */
24989 export function MessageHandler_new(chan_handler_arg: number, route_handler_arg: number): number {
24990         if(!isWasmInitialized) {
24991                 throw new Error("initializeWasm() must be awaited first!");
24992         }
24993         const nativeResponseValue = wasm.TS_MessageHandler_new(chan_handler_arg, route_handler_arg);
24994         return nativeResponseValue;
24995 }
24996         // uintptr_t SocketDescriptor_clone_ptr(LDKSocketDescriptor *NONNULL_PTR arg);
24997 /* @internal */
24998 export function SocketDescriptor_clone_ptr(arg: number): number {
24999         if(!isWasmInitialized) {
25000                 throw new Error("initializeWasm() must be awaited first!");
25001         }
25002         const nativeResponseValue = wasm.TS_SocketDescriptor_clone_ptr(arg);
25003         return nativeResponseValue;
25004 }
25005         // struct LDKSocketDescriptor SocketDescriptor_clone(const struct LDKSocketDescriptor *NONNULL_PTR orig);
25006 /* @internal */
25007 export function SocketDescriptor_clone(orig: number): number {
25008         if(!isWasmInitialized) {
25009                 throw new Error("initializeWasm() must be awaited first!");
25010         }
25011         const nativeResponseValue = wasm.TS_SocketDescriptor_clone(orig);
25012         return nativeResponseValue;
25013 }
25014         // void SocketDescriptor_free(struct LDKSocketDescriptor this_ptr);
25015 /* @internal */
25016 export function SocketDescriptor_free(this_ptr: number): void {
25017         if(!isWasmInitialized) {
25018                 throw new Error("initializeWasm() must be awaited first!");
25019         }
25020         const nativeResponseValue = wasm.TS_SocketDescriptor_free(this_ptr);
25021         // debug statements here
25022 }
25023         // void PeerHandleError_free(struct LDKPeerHandleError this_obj);
25024 /* @internal */
25025 export function PeerHandleError_free(this_obj: number): void {
25026         if(!isWasmInitialized) {
25027                 throw new Error("initializeWasm() must be awaited first!");
25028         }
25029         const nativeResponseValue = wasm.TS_PeerHandleError_free(this_obj);
25030         // debug statements here
25031 }
25032         // bool PeerHandleError_get_no_connection_possible(const struct LDKPeerHandleError *NONNULL_PTR this_ptr);
25033 /* @internal */
25034 export function PeerHandleError_get_no_connection_possible(this_ptr: number): boolean {
25035         if(!isWasmInitialized) {
25036                 throw new Error("initializeWasm() must be awaited first!");
25037         }
25038         const nativeResponseValue = wasm.TS_PeerHandleError_get_no_connection_possible(this_ptr);
25039         return nativeResponseValue;
25040 }
25041         // void PeerHandleError_set_no_connection_possible(struct LDKPeerHandleError *NONNULL_PTR this_ptr, bool val);
25042 /* @internal */
25043 export function PeerHandleError_set_no_connection_possible(this_ptr: number, val: boolean): void {
25044         if(!isWasmInitialized) {
25045                 throw new Error("initializeWasm() must be awaited first!");
25046         }
25047         const nativeResponseValue = wasm.TS_PeerHandleError_set_no_connection_possible(this_ptr, val);
25048         // debug statements here
25049 }
25050         // MUST_USE_RES struct LDKPeerHandleError PeerHandleError_new(bool no_connection_possible_arg);
25051 /* @internal */
25052 export function PeerHandleError_new(no_connection_possible_arg: boolean): number {
25053         if(!isWasmInitialized) {
25054                 throw new Error("initializeWasm() must be awaited first!");
25055         }
25056         const nativeResponseValue = wasm.TS_PeerHandleError_new(no_connection_possible_arg);
25057         return nativeResponseValue;
25058 }
25059         // uintptr_t PeerHandleError_clone_ptr(LDKPeerHandleError *NONNULL_PTR arg);
25060 /* @internal */
25061 export function PeerHandleError_clone_ptr(arg: number): number {
25062         if(!isWasmInitialized) {
25063                 throw new Error("initializeWasm() must be awaited first!");
25064         }
25065         const nativeResponseValue = wasm.TS_PeerHandleError_clone_ptr(arg);
25066         return nativeResponseValue;
25067 }
25068         // struct LDKPeerHandleError PeerHandleError_clone(const struct LDKPeerHandleError *NONNULL_PTR orig);
25069 /* @internal */
25070 export function PeerHandleError_clone(orig: number): number {
25071         if(!isWasmInitialized) {
25072                 throw new Error("initializeWasm() must be awaited first!");
25073         }
25074         const nativeResponseValue = wasm.TS_PeerHandleError_clone(orig);
25075         return nativeResponseValue;
25076 }
25077         // void PeerManager_free(struct LDKPeerManager this_obj);
25078 /* @internal */
25079 export function PeerManager_free(this_obj: number): void {
25080         if(!isWasmInitialized) {
25081                 throw new Error("initializeWasm() must be awaited first!");
25082         }
25083         const nativeResponseValue = wasm.TS_PeerManager_free(this_obj);
25084         // debug statements here
25085 }
25086         // 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);
25087 /* @internal */
25088 export function PeerManager_new(message_handler: number, our_node_secret: number, ephemeral_random_data: number, logger: number, custom_message_handler: number): number {
25089         if(!isWasmInitialized) {
25090                 throw new Error("initializeWasm() must be awaited first!");
25091         }
25092         const nativeResponseValue = wasm.TS_PeerManager_new(message_handler, our_node_secret, ephemeral_random_data, logger, custom_message_handler);
25093         return nativeResponseValue;
25094 }
25095         // MUST_USE_RES struct LDKCVec_PublicKeyZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg);
25096 /* @internal */
25097 export function PeerManager_get_peer_node_ids(this_arg: number): number {
25098         if(!isWasmInitialized) {
25099                 throw new Error("initializeWasm() must be awaited first!");
25100         }
25101         const nativeResponseValue = wasm.TS_PeerManager_get_peer_node_ids(this_arg);
25102         return nativeResponseValue;
25103 }
25104         // 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);
25105 /* @internal */
25106 export function PeerManager_new_outbound_connection(this_arg: number, their_node_id: number, descriptor: number, remote_network_address: number): number {
25107         if(!isWasmInitialized) {
25108                 throw new Error("initializeWasm() must be awaited first!");
25109         }
25110         const nativeResponseValue = wasm.TS_PeerManager_new_outbound_connection(this_arg, their_node_id, descriptor, remote_network_address);
25111         return nativeResponseValue;
25112 }
25113         // 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);
25114 /* @internal */
25115 export function PeerManager_new_inbound_connection(this_arg: number, descriptor: number, remote_network_address: number): number {
25116         if(!isWasmInitialized) {
25117                 throw new Error("initializeWasm() must be awaited first!");
25118         }
25119         const nativeResponseValue = wasm.TS_PeerManager_new_inbound_connection(this_arg, descriptor, remote_network_address);
25120         return nativeResponseValue;
25121 }
25122         // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_write_buffer_space_avail(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR descriptor);
25123 /* @internal */
25124 export function PeerManager_write_buffer_space_avail(this_arg: number, descriptor: number): number {
25125         if(!isWasmInitialized) {
25126                 throw new Error("initializeWasm() must be awaited first!");
25127         }
25128         const nativeResponseValue = wasm.TS_PeerManager_write_buffer_space_avail(this_arg, descriptor);
25129         return nativeResponseValue;
25130 }
25131         // 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);
25132 /* @internal */
25133 export function PeerManager_read_event(this_arg: number, peer_descriptor: number, data: number): number {
25134         if(!isWasmInitialized) {
25135                 throw new Error("initializeWasm() must be awaited first!");
25136         }
25137         const nativeResponseValue = wasm.TS_PeerManager_read_event(this_arg, peer_descriptor, data);
25138         return nativeResponseValue;
25139 }
25140         // void PeerManager_process_events(const struct LDKPeerManager *NONNULL_PTR this_arg);
25141 /* @internal */
25142 export function PeerManager_process_events(this_arg: number): void {
25143         if(!isWasmInitialized) {
25144                 throw new Error("initializeWasm() must be awaited first!");
25145         }
25146         const nativeResponseValue = wasm.TS_PeerManager_process_events(this_arg);
25147         // debug statements here
25148 }
25149         // void PeerManager_socket_disconnected(const struct LDKPeerManager *NONNULL_PTR this_arg, const struct LDKSocketDescriptor *NONNULL_PTR descriptor);
25150 /* @internal */
25151 export function PeerManager_socket_disconnected(this_arg: number, descriptor: number): void {
25152         if(!isWasmInitialized) {
25153                 throw new Error("initializeWasm() must be awaited first!");
25154         }
25155         const nativeResponseValue = wasm.TS_PeerManager_socket_disconnected(this_arg, descriptor);
25156         // debug statements here
25157 }
25158         // void PeerManager_disconnect_by_node_id(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id, bool no_connection_possible);
25159 /* @internal */
25160 export function PeerManager_disconnect_by_node_id(this_arg: number, node_id: number, no_connection_possible: boolean): void {
25161         if(!isWasmInitialized) {
25162                 throw new Error("initializeWasm() must be awaited first!");
25163         }
25164         const nativeResponseValue = wasm.TS_PeerManager_disconnect_by_node_id(this_arg, node_id, no_connection_possible);
25165         // debug statements here
25166 }
25167         // void PeerManager_disconnect_all_peers(const struct LDKPeerManager *NONNULL_PTR this_arg);
25168 /* @internal */
25169 export function PeerManager_disconnect_all_peers(this_arg: number): void {
25170         if(!isWasmInitialized) {
25171                 throw new Error("initializeWasm() must be awaited first!");
25172         }
25173         const nativeResponseValue = wasm.TS_PeerManager_disconnect_all_peers(this_arg);
25174         // debug statements here
25175 }
25176         // void PeerManager_timer_tick_occurred(const struct LDKPeerManager *NONNULL_PTR this_arg);
25177 /* @internal */
25178 export function PeerManager_timer_tick_occurred(this_arg: number): void {
25179         if(!isWasmInitialized) {
25180                 throw new Error("initializeWasm() must be awaited first!");
25181         }
25182         const nativeResponseValue = wasm.TS_PeerManager_timer_tick_occurred(this_arg);
25183         // debug statements here
25184 }
25185         // uint64_t htlc_success_tx_weight(bool opt_anchors);
25186 /* @internal */
25187 export function htlc_success_tx_weight(opt_anchors: boolean): bigint {
25188         if(!isWasmInitialized) {
25189                 throw new Error("initializeWasm() must be awaited first!");
25190         }
25191         const nativeResponseValue = wasm.TS_htlc_success_tx_weight(opt_anchors);
25192         return nativeResponseValue;
25193 }
25194         // uint64_t htlc_timeout_tx_weight(bool opt_anchors);
25195 /* @internal */
25196 export function htlc_timeout_tx_weight(opt_anchors: boolean): bigint {
25197         if(!isWasmInitialized) {
25198                 throw new Error("initializeWasm() must be awaited first!");
25199         }
25200         const nativeResponseValue = wasm.TS_htlc_timeout_tx_weight(opt_anchors);
25201         return nativeResponseValue;
25202 }
25203         // struct LDKThirtyTwoBytes build_commitment_secret(const uint8_t (*commitment_seed)[32], uint64_t idx);
25204 /* @internal */
25205 export function build_commitment_secret(commitment_seed: number, idx: bigint): number {
25206         if(!isWasmInitialized) {
25207                 throw new Error("initializeWasm() must be awaited first!");
25208         }
25209         const nativeResponseValue = wasm.TS_build_commitment_secret(commitment_seed, idx);
25210         return nativeResponseValue;
25211 }
25212         // 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);
25213 /* @internal */
25214 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 {
25215         if(!isWasmInitialized) {
25216                 throw new Error("initializeWasm() must be awaited first!");
25217         }
25218         const nativeResponseValue = wasm.TS_build_closing_transaction(to_holder_value_sat, to_counterparty_value_sat, to_holder_script, to_counterparty_script, funding_outpoint);
25219         return nativeResponseValue;
25220 }
25221         // void CounterpartyCommitmentSecrets_free(struct LDKCounterpartyCommitmentSecrets this_obj);
25222 /* @internal */
25223 export function CounterpartyCommitmentSecrets_free(this_obj: number): void {
25224         if(!isWasmInitialized) {
25225                 throw new Error("initializeWasm() must be awaited first!");
25226         }
25227         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_free(this_obj);
25228         // debug statements here
25229 }
25230         // uintptr_t CounterpartyCommitmentSecrets_clone_ptr(LDKCounterpartyCommitmentSecrets *NONNULL_PTR arg);
25231 /* @internal */
25232 export function CounterpartyCommitmentSecrets_clone_ptr(arg: number): number {
25233         if(!isWasmInitialized) {
25234                 throw new Error("initializeWasm() must be awaited first!");
25235         }
25236         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_clone_ptr(arg);
25237         return nativeResponseValue;
25238 }
25239         // struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_clone(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR orig);
25240 /* @internal */
25241 export function CounterpartyCommitmentSecrets_clone(orig: number): number {
25242         if(!isWasmInitialized) {
25243                 throw new Error("initializeWasm() must be awaited first!");
25244         }
25245         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_clone(orig);
25246         return nativeResponseValue;
25247 }
25248         // MUST_USE_RES struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_new(void);
25249 /* @internal */
25250 export function CounterpartyCommitmentSecrets_new(): number {
25251         if(!isWasmInitialized) {
25252                 throw new Error("initializeWasm() must be awaited first!");
25253         }
25254         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_new();
25255         return nativeResponseValue;
25256 }
25257         // MUST_USE_RES uint64_t CounterpartyCommitmentSecrets_get_min_seen_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg);
25258 /* @internal */
25259 export function CounterpartyCommitmentSecrets_get_min_seen_secret(this_arg: number): bigint {
25260         if(!isWasmInitialized) {
25261                 throw new Error("initializeWasm() must be awaited first!");
25262         }
25263         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_get_min_seen_secret(this_arg);
25264         return nativeResponseValue;
25265 }
25266         // MUST_USE_RES struct LDKCResult_NoneNoneZ CounterpartyCommitmentSecrets_provide_secret(struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx, struct LDKThirtyTwoBytes secret);
25267 /* @internal */
25268 export function CounterpartyCommitmentSecrets_provide_secret(this_arg: number, idx: bigint, secret: number): number {
25269         if(!isWasmInitialized) {
25270                 throw new Error("initializeWasm() must be awaited first!");
25271         }
25272         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_provide_secret(this_arg, idx, secret);
25273         return nativeResponseValue;
25274 }
25275         // MUST_USE_RES struct LDKThirtyTwoBytes CounterpartyCommitmentSecrets_get_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx);
25276 /* @internal */
25277 export function CounterpartyCommitmentSecrets_get_secret(this_arg: number, idx: bigint): number {
25278         if(!isWasmInitialized) {
25279                 throw new Error("initializeWasm() must be awaited first!");
25280         }
25281         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_get_secret(this_arg, idx);
25282         return nativeResponseValue;
25283 }
25284         // struct LDKCVec_u8Z CounterpartyCommitmentSecrets_write(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR obj);
25285 /* @internal */
25286 export function CounterpartyCommitmentSecrets_write(obj: number): number {
25287         if(!isWasmInitialized) {
25288                 throw new Error("initializeWasm() must be awaited first!");
25289         }
25290         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_write(obj);
25291         return nativeResponseValue;
25292 }
25293         // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CounterpartyCommitmentSecrets_read(struct LDKu8slice ser);
25294 /* @internal */
25295 export function CounterpartyCommitmentSecrets_read(ser: number): number {
25296         if(!isWasmInitialized) {
25297                 throw new Error("initializeWasm() must be awaited first!");
25298         }
25299         const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_read(ser);
25300         return nativeResponseValue;
25301 }
25302         // struct LDKCResult_SecretKeyErrorZ derive_private_key(struct LDKPublicKey per_commitment_point, const uint8_t (*base_secret)[32]);
25303 /* @internal */
25304 export function derive_private_key(per_commitment_point: number, base_secret: number): number {
25305         if(!isWasmInitialized) {
25306                 throw new Error("initializeWasm() must be awaited first!");
25307         }
25308         const nativeResponseValue = wasm.TS_derive_private_key(per_commitment_point, base_secret);
25309         return nativeResponseValue;
25310 }
25311         // struct LDKCResult_PublicKeyErrorZ derive_public_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey base_point);
25312 /* @internal */
25313 export function derive_public_key(per_commitment_point: number, base_point: number): number {
25314         if(!isWasmInitialized) {
25315                 throw new Error("initializeWasm() must be awaited first!");
25316         }
25317         const nativeResponseValue = wasm.TS_derive_public_key(per_commitment_point, base_point);
25318         return nativeResponseValue;
25319 }
25320         // struct LDKCResult_SecretKeyErrorZ derive_private_revocation_key(const uint8_t (*per_commitment_secret)[32], const uint8_t (*countersignatory_revocation_base_secret)[32]);
25321 /* @internal */
25322 export function derive_private_revocation_key(per_commitment_secret: number, countersignatory_revocation_base_secret: number): number {
25323         if(!isWasmInitialized) {
25324                 throw new Error("initializeWasm() must be awaited first!");
25325         }
25326         const nativeResponseValue = wasm.TS_derive_private_revocation_key(per_commitment_secret, countersignatory_revocation_base_secret);
25327         return nativeResponseValue;
25328 }
25329         // struct LDKCResult_PublicKeyErrorZ derive_public_revocation_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey countersignatory_revocation_base_point);
25330 /* @internal */
25331 export function derive_public_revocation_key(per_commitment_point: number, countersignatory_revocation_base_point: number): number {
25332         if(!isWasmInitialized) {
25333                 throw new Error("initializeWasm() must be awaited first!");
25334         }
25335         const nativeResponseValue = wasm.TS_derive_public_revocation_key(per_commitment_point, countersignatory_revocation_base_point);
25336         return nativeResponseValue;
25337 }
25338         // void TxCreationKeys_free(struct LDKTxCreationKeys this_obj);
25339 /* @internal */
25340 export function TxCreationKeys_free(this_obj: number): void {
25341         if(!isWasmInitialized) {
25342                 throw new Error("initializeWasm() must be awaited first!");
25343         }
25344         const nativeResponseValue = wasm.TS_TxCreationKeys_free(this_obj);
25345         // debug statements here
25346 }
25347         // struct LDKPublicKey TxCreationKeys_get_per_commitment_point(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
25348 /* @internal */
25349 export function TxCreationKeys_get_per_commitment_point(this_ptr: number): number {
25350         if(!isWasmInitialized) {
25351                 throw new Error("initializeWasm() must be awaited first!");
25352         }
25353         const nativeResponseValue = wasm.TS_TxCreationKeys_get_per_commitment_point(this_ptr);
25354         return nativeResponseValue;
25355 }
25356         // void TxCreationKeys_set_per_commitment_point(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25357 /* @internal */
25358 export function TxCreationKeys_set_per_commitment_point(this_ptr: number, val: number): void {
25359         if(!isWasmInitialized) {
25360                 throw new Error("initializeWasm() must be awaited first!");
25361         }
25362         const nativeResponseValue = wasm.TS_TxCreationKeys_set_per_commitment_point(this_ptr, val);
25363         // debug statements here
25364 }
25365         // struct LDKPublicKey TxCreationKeys_get_revocation_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
25366 /* @internal */
25367 export function TxCreationKeys_get_revocation_key(this_ptr: number): number {
25368         if(!isWasmInitialized) {
25369                 throw new Error("initializeWasm() must be awaited first!");
25370         }
25371         const nativeResponseValue = wasm.TS_TxCreationKeys_get_revocation_key(this_ptr);
25372         return nativeResponseValue;
25373 }
25374         // void TxCreationKeys_set_revocation_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25375 /* @internal */
25376 export function TxCreationKeys_set_revocation_key(this_ptr: number, val: number): void {
25377         if(!isWasmInitialized) {
25378                 throw new Error("initializeWasm() must be awaited first!");
25379         }
25380         const nativeResponseValue = wasm.TS_TxCreationKeys_set_revocation_key(this_ptr, val);
25381         // debug statements here
25382 }
25383         // struct LDKPublicKey TxCreationKeys_get_broadcaster_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
25384 /* @internal */
25385 export function TxCreationKeys_get_broadcaster_htlc_key(this_ptr: number): number {
25386         if(!isWasmInitialized) {
25387                 throw new Error("initializeWasm() must be awaited first!");
25388         }
25389         const nativeResponseValue = wasm.TS_TxCreationKeys_get_broadcaster_htlc_key(this_ptr);
25390         return nativeResponseValue;
25391 }
25392         // void TxCreationKeys_set_broadcaster_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25393 /* @internal */
25394 export function TxCreationKeys_set_broadcaster_htlc_key(this_ptr: number, val: number): void {
25395         if(!isWasmInitialized) {
25396                 throw new Error("initializeWasm() must be awaited first!");
25397         }
25398         const nativeResponseValue = wasm.TS_TxCreationKeys_set_broadcaster_htlc_key(this_ptr, val);
25399         // debug statements here
25400 }
25401         // struct LDKPublicKey TxCreationKeys_get_countersignatory_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
25402 /* @internal */
25403 export function TxCreationKeys_get_countersignatory_htlc_key(this_ptr: number): number {
25404         if(!isWasmInitialized) {
25405                 throw new Error("initializeWasm() must be awaited first!");
25406         }
25407         const nativeResponseValue = wasm.TS_TxCreationKeys_get_countersignatory_htlc_key(this_ptr);
25408         return nativeResponseValue;
25409 }
25410         // void TxCreationKeys_set_countersignatory_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25411 /* @internal */
25412 export function TxCreationKeys_set_countersignatory_htlc_key(this_ptr: number, val: number): void {
25413         if(!isWasmInitialized) {
25414                 throw new Error("initializeWasm() must be awaited first!");
25415         }
25416         const nativeResponseValue = wasm.TS_TxCreationKeys_set_countersignatory_htlc_key(this_ptr, val);
25417         // debug statements here
25418 }
25419         // struct LDKPublicKey TxCreationKeys_get_broadcaster_delayed_payment_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
25420 /* @internal */
25421 export function TxCreationKeys_get_broadcaster_delayed_payment_key(this_ptr: number): number {
25422         if(!isWasmInitialized) {
25423                 throw new Error("initializeWasm() must be awaited first!");
25424         }
25425         const nativeResponseValue = wasm.TS_TxCreationKeys_get_broadcaster_delayed_payment_key(this_ptr);
25426         return nativeResponseValue;
25427 }
25428         // void TxCreationKeys_set_broadcaster_delayed_payment_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25429 /* @internal */
25430 export function TxCreationKeys_set_broadcaster_delayed_payment_key(this_ptr: number, val: number): void {
25431         if(!isWasmInitialized) {
25432                 throw new Error("initializeWasm() must be awaited first!");
25433         }
25434         const nativeResponseValue = wasm.TS_TxCreationKeys_set_broadcaster_delayed_payment_key(this_ptr, val);
25435         // debug statements here
25436 }
25437         // 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);
25438 /* @internal */
25439 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 {
25440         if(!isWasmInitialized) {
25441                 throw new Error("initializeWasm() must be awaited first!");
25442         }
25443         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);
25444         return nativeResponseValue;
25445 }
25446         // uintptr_t TxCreationKeys_clone_ptr(LDKTxCreationKeys *NONNULL_PTR arg);
25447 /* @internal */
25448 export function TxCreationKeys_clone_ptr(arg: number): number {
25449         if(!isWasmInitialized) {
25450                 throw new Error("initializeWasm() must be awaited first!");
25451         }
25452         const nativeResponseValue = wasm.TS_TxCreationKeys_clone_ptr(arg);
25453         return nativeResponseValue;
25454 }
25455         // struct LDKTxCreationKeys TxCreationKeys_clone(const struct LDKTxCreationKeys *NONNULL_PTR orig);
25456 /* @internal */
25457 export function TxCreationKeys_clone(orig: number): number {
25458         if(!isWasmInitialized) {
25459                 throw new Error("initializeWasm() must be awaited first!");
25460         }
25461         const nativeResponseValue = wasm.TS_TxCreationKeys_clone(orig);
25462         return nativeResponseValue;
25463 }
25464         // struct LDKCVec_u8Z TxCreationKeys_write(const struct LDKTxCreationKeys *NONNULL_PTR obj);
25465 /* @internal */
25466 export function TxCreationKeys_write(obj: number): number {
25467         if(!isWasmInitialized) {
25468                 throw new Error("initializeWasm() must be awaited first!");
25469         }
25470         const nativeResponseValue = wasm.TS_TxCreationKeys_write(obj);
25471         return nativeResponseValue;
25472 }
25473         // struct LDKCResult_TxCreationKeysDecodeErrorZ TxCreationKeys_read(struct LDKu8slice ser);
25474 /* @internal */
25475 export function TxCreationKeys_read(ser: number): number {
25476         if(!isWasmInitialized) {
25477                 throw new Error("initializeWasm() must be awaited first!");
25478         }
25479         const nativeResponseValue = wasm.TS_TxCreationKeys_read(ser);
25480         return nativeResponseValue;
25481 }
25482         // void ChannelPublicKeys_free(struct LDKChannelPublicKeys this_obj);
25483 /* @internal */
25484 export function ChannelPublicKeys_free(this_obj: number): void {
25485         if(!isWasmInitialized) {
25486                 throw new Error("initializeWasm() must be awaited first!");
25487         }
25488         const nativeResponseValue = wasm.TS_ChannelPublicKeys_free(this_obj);
25489         // debug statements here
25490 }
25491         // struct LDKPublicKey ChannelPublicKeys_get_funding_pubkey(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
25492 /* @internal */
25493 export function ChannelPublicKeys_get_funding_pubkey(this_ptr: number): number {
25494         if(!isWasmInitialized) {
25495                 throw new Error("initializeWasm() must be awaited first!");
25496         }
25497         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_funding_pubkey(this_ptr);
25498         return nativeResponseValue;
25499 }
25500         // void ChannelPublicKeys_set_funding_pubkey(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25501 /* @internal */
25502 export function ChannelPublicKeys_set_funding_pubkey(this_ptr: number, val: number): void {
25503         if(!isWasmInitialized) {
25504                 throw new Error("initializeWasm() must be awaited first!");
25505         }
25506         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_funding_pubkey(this_ptr, val);
25507         // debug statements here
25508 }
25509         // struct LDKPublicKey ChannelPublicKeys_get_revocation_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
25510 /* @internal */
25511 export function ChannelPublicKeys_get_revocation_basepoint(this_ptr: number): number {
25512         if(!isWasmInitialized) {
25513                 throw new Error("initializeWasm() must be awaited first!");
25514         }
25515         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_revocation_basepoint(this_ptr);
25516         return nativeResponseValue;
25517 }
25518         // void ChannelPublicKeys_set_revocation_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25519 /* @internal */
25520 export function ChannelPublicKeys_set_revocation_basepoint(this_ptr: number, val: number): void {
25521         if(!isWasmInitialized) {
25522                 throw new Error("initializeWasm() must be awaited first!");
25523         }
25524         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_revocation_basepoint(this_ptr, val);
25525         // debug statements here
25526 }
25527         // struct LDKPublicKey ChannelPublicKeys_get_payment_point(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
25528 /* @internal */
25529 export function ChannelPublicKeys_get_payment_point(this_ptr: number): number {
25530         if(!isWasmInitialized) {
25531                 throw new Error("initializeWasm() must be awaited first!");
25532         }
25533         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_payment_point(this_ptr);
25534         return nativeResponseValue;
25535 }
25536         // void ChannelPublicKeys_set_payment_point(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25537 /* @internal */
25538 export function ChannelPublicKeys_set_payment_point(this_ptr: number, val: number): void {
25539         if(!isWasmInitialized) {
25540                 throw new Error("initializeWasm() must be awaited first!");
25541         }
25542         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_payment_point(this_ptr, val);
25543         // debug statements here
25544 }
25545         // struct LDKPublicKey ChannelPublicKeys_get_delayed_payment_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
25546 /* @internal */
25547 export function ChannelPublicKeys_get_delayed_payment_basepoint(this_ptr: number): number {
25548         if(!isWasmInitialized) {
25549                 throw new Error("initializeWasm() must be awaited first!");
25550         }
25551         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_delayed_payment_basepoint(this_ptr);
25552         return nativeResponseValue;
25553 }
25554         // void ChannelPublicKeys_set_delayed_payment_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25555 /* @internal */
25556 export function ChannelPublicKeys_set_delayed_payment_basepoint(this_ptr: number, val: number): void {
25557         if(!isWasmInitialized) {
25558                 throw new Error("initializeWasm() must be awaited first!");
25559         }
25560         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_delayed_payment_basepoint(this_ptr, val);
25561         // debug statements here
25562 }
25563         // struct LDKPublicKey ChannelPublicKeys_get_htlc_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
25564 /* @internal */
25565 export function ChannelPublicKeys_get_htlc_basepoint(this_ptr: number): number {
25566         if(!isWasmInitialized) {
25567                 throw new Error("initializeWasm() must be awaited first!");
25568         }
25569         const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_htlc_basepoint(this_ptr);
25570         return nativeResponseValue;
25571 }
25572         // void ChannelPublicKeys_set_htlc_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25573 /* @internal */
25574 export function ChannelPublicKeys_set_htlc_basepoint(this_ptr: number, val: number): void {
25575         if(!isWasmInitialized) {
25576                 throw new Error("initializeWasm() must be awaited first!");
25577         }
25578         const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_htlc_basepoint(this_ptr, val);
25579         // debug statements here
25580 }
25581         // 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);
25582 /* @internal */
25583 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 {
25584         if(!isWasmInitialized) {
25585                 throw new Error("initializeWasm() must be awaited first!");
25586         }
25587         const nativeResponseValue = wasm.TS_ChannelPublicKeys_new(funding_pubkey_arg, revocation_basepoint_arg, payment_point_arg, delayed_payment_basepoint_arg, htlc_basepoint_arg);
25588         return nativeResponseValue;
25589 }
25590         // uintptr_t ChannelPublicKeys_clone_ptr(LDKChannelPublicKeys *NONNULL_PTR arg);
25591 /* @internal */
25592 export function ChannelPublicKeys_clone_ptr(arg: number): number {
25593         if(!isWasmInitialized) {
25594                 throw new Error("initializeWasm() must be awaited first!");
25595         }
25596         const nativeResponseValue = wasm.TS_ChannelPublicKeys_clone_ptr(arg);
25597         return nativeResponseValue;
25598 }
25599         // struct LDKChannelPublicKeys ChannelPublicKeys_clone(const struct LDKChannelPublicKeys *NONNULL_PTR orig);
25600 /* @internal */
25601 export function ChannelPublicKeys_clone(orig: number): number {
25602         if(!isWasmInitialized) {
25603                 throw new Error("initializeWasm() must be awaited first!");
25604         }
25605         const nativeResponseValue = wasm.TS_ChannelPublicKeys_clone(orig);
25606         return nativeResponseValue;
25607 }
25608         // struct LDKCVec_u8Z ChannelPublicKeys_write(const struct LDKChannelPublicKeys *NONNULL_PTR obj);
25609 /* @internal */
25610 export function ChannelPublicKeys_write(obj: number): number {
25611         if(!isWasmInitialized) {
25612                 throw new Error("initializeWasm() must be awaited first!");
25613         }
25614         const nativeResponseValue = wasm.TS_ChannelPublicKeys_write(obj);
25615         return nativeResponseValue;
25616 }
25617         // struct LDKCResult_ChannelPublicKeysDecodeErrorZ ChannelPublicKeys_read(struct LDKu8slice ser);
25618 /* @internal */
25619 export function ChannelPublicKeys_read(ser: number): number {
25620         if(!isWasmInitialized) {
25621                 throw new Error("initializeWasm() must be awaited first!");
25622         }
25623         const nativeResponseValue = wasm.TS_ChannelPublicKeys_read(ser);
25624         return nativeResponseValue;
25625 }
25626         // 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);
25627 /* @internal */
25628 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 {
25629         if(!isWasmInitialized) {
25630                 throw new Error("initializeWasm() must be awaited first!");
25631         }
25632         const nativeResponseValue = wasm.TS_TxCreationKeys_derive_new(per_commitment_point, broadcaster_delayed_payment_base, broadcaster_htlc_base, countersignatory_revocation_base, countersignatory_htlc_base);
25633         return nativeResponseValue;
25634 }
25635         // 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);
25636 /* @internal */
25637 export function TxCreationKeys_from_channel_static_keys(per_commitment_point: number, broadcaster_keys: number, countersignatory_keys: number): number {
25638         if(!isWasmInitialized) {
25639                 throw new Error("initializeWasm() must be awaited first!");
25640         }
25641         const nativeResponseValue = wasm.TS_TxCreationKeys_from_channel_static_keys(per_commitment_point, broadcaster_keys, countersignatory_keys);
25642         return nativeResponseValue;
25643 }
25644         // struct LDKCVec_u8Z get_revokeable_redeemscript(struct LDKPublicKey revocation_key, uint16_t contest_delay, struct LDKPublicKey broadcaster_delayed_payment_key);
25645 /* @internal */
25646 export function get_revokeable_redeemscript(revocation_key: number, contest_delay: number, broadcaster_delayed_payment_key: number): number {
25647         if(!isWasmInitialized) {
25648                 throw new Error("initializeWasm() must be awaited first!");
25649         }
25650         const nativeResponseValue = wasm.TS_get_revokeable_redeemscript(revocation_key, contest_delay, broadcaster_delayed_payment_key);
25651         return nativeResponseValue;
25652 }
25653         // void HTLCOutputInCommitment_free(struct LDKHTLCOutputInCommitment this_obj);
25654 /* @internal */
25655 export function HTLCOutputInCommitment_free(this_obj: number): void {
25656         if(!isWasmInitialized) {
25657                 throw new Error("initializeWasm() must be awaited first!");
25658         }
25659         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_free(this_obj);
25660         // debug statements here
25661 }
25662         // bool HTLCOutputInCommitment_get_offered(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
25663 /* @internal */
25664 export function HTLCOutputInCommitment_get_offered(this_ptr: number): boolean {
25665         if(!isWasmInitialized) {
25666                 throw new Error("initializeWasm() must be awaited first!");
25667         }
25668         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_offered(this_ptr);
25669         return nativeResponseValue;
25670 }
25671         // void HTLCOutputInCommitment_set_offered(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, bool val);
25672 /* @internal */
25673 export function HTLCOutputInCommitment_set_offered(this_ptr: number, val: boolean): void {
25674         if(!isWasmInitialized) {
25675                 throw new Error("initializeWasm() must be awaited first!");
25676         }
25677         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_offered(this_ptr, val);
25678         // debug statements here
25679 }
25680         // uint64_t HTLCOutputInCommitment_get_amount_msat(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
25681 /* @internal */
25682 export function HTLCOutputInCommitment_get_amount_msat(this_ptr: number): bigint {
25683         if(!isWasmInitialized) {
25684                 throw new Error("initializeWasm() must be awaited first!");
25685         }
25686         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_amount_msat(this_ptr);
25687         return nativeResponseValue;
25688 }
25689         // void HTLCOutputInCommitment_set_amount_msat(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint64_t val);
25690 /* @internal */
25691 export function HTLCOutputInCommitment_set_amount_msat(this_ptr: number, val: bigint): void {
25692         if(!isWasmInitialized) {
25693                 throw new Error("initializeWasm() must be awaited first!");
25694         }
25695         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_amount_msat(this_ptr, val);
25696         // debug statements here
25697 }
25698         // uint32_t HTLCOutputInCommitment_get_cltv_expiry(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
25699 /* @internal */
25700 export function HTLCOutputInCommitment_get_cltv_expiry(this_ptr: number): number {
25701         if(!isWasmInitialized) {
25702                 throw new Error("initializeWasm() must be awaited first!");
25703         }
25704         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_cltv_expiry(this_ptr);
25705         return nativeResponseValue;
25706 }
25707         // void HTLCOutputInCommitment_set_cltv_expiry(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint32_t val);
25708 /* @internal */
25709 export function HTLCOutputInCommitment_set_cltv_expiry(this_ptr: number, val: number): void {
25710         if(!isWasmInitialized) {
25711                 throw new Error("initializeWasm() must be awaited first!");
25712         }
25713         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_cltv_expiry(this_ptr, val);
25714         // debug statements here
25715 }
25716         // const uint8_t (*HTLCOutputInCommitment_get_payment_hash(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr))[32];
25717 /* @internal */
25718 export function HTLCOutputInCommitment_get_payment_hash(this_ptr: number): number {
25719         if(!isWasmInitialized) {
25720                 throw new Error("initializeWasm() must be awaited first!");
25721         }
25722         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_payment_hash(this_ptr);
25723         return nativeResponseValue;
25724 }
25725         // void HTLCOutputInCommitment_set_payment_hash(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25726 /* @internal */
25727 export function HTLCOutputInCommitment_set_payment_hash(this_ptr: number, val: number): void {
25728         if(!isWasmInitialized) {
25729                 throw new Error("initializeWasm() must be awaited first!");
25730         }
25731         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_payment_hash(this_ptr, val);
25732         // debug statements here
25733 }
25734         // struct LDKCOption_u32Z HTLCOutputInCommitment_get_transaction_output_index(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
25735 /* @internal */
25736 export function HTLCOutputInCommitment_get_transaction_output_index(this_ptr: number): number {
25737         if(!isWasmInitialized) {
25738                 throw new Error("initializeWasm() must be awaited first!");
25739         }
25740         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_transaction_output_index(this_ptr);
25741         return nativeResponseValue;
25742 }
25743         // void HTLCOutputInCommitment_set_transaction_output_index(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
25744 /* @internal */
25745 export function HTLCOutputInCommitment_set_transaction_output_index(this_ptr: number, val: number): void {
25746         if(!isWasmInitialized) {
25747                 throw new Error("initializeWasm() must be awaited first!");
25748         }
25749         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_transaction_output_index(this_ptr, val);
25750         // debug statements here
25751 }
25752         // 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);
25753 /* @internal */
25754 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 {
25755         if(!isWasmInitialized) {
25756                 throw new Error("initializeWasm() must be awaited first!");
25757         }
25758         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_new(offered_arg, amount_msat_arg, cltv_expiry_arg, payment_hash_arg, transaction_output_index_arg);
25759         return nativeResponseValue;
25760 }
25761         // uintptr_t HTLCOutputInCommitment_clone_ptr(LDKHTLCOutputInCommitment *NONNULL_PTR arg);
25762 /* @internal */
25763 export function HTLCOutputInCommitment_clone_ptr(arg: number): number {
25764         if(!isWasmInitialized) {
25765                 throw new Error("initializeWasm() must be awaited first!");
25766         }
25767         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_clone_ptr(arg);
25768         return nativeResponseValue;
25769 }
25770         // struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_clone(const struct LDKHTLCOutputInCommitment *NONNULL_PTR orig);
25771 /* @internal */
25772 export function HTLCOutputInCommitment_clone(orig: number): number {
25773         if(!isWasmInitialized) {
25774                 throw new Error("initializeWasm() must be awaited first!");
25775         }
25776         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_clone(orig);
25777         return nativeResponseValue;
25778 }
25779         // struct LDKCVec_u8Z HTLCOutputInCommitment_write(const struct LDKHTLCOutputInCommitment *NONNULL_PTR obj);
25780 /* @internal */
25781 export function HTLCOutputInCommitment_write(obj: number): number {
25782         if(!isWasmInitialized) {
25783                 throw new Error("initializeWasm() must be awaited first!");
25784         }
25785         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_write(obj);
25786         return nativeResponseValue;
25787 }
25788         // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ HTLCOutputInCommitment_read(struct LDKu8slice ser);
25789 /* @internal */
25790 export function HTLCOutputInCommitment_read(ser: number): number {
25791         if(!isWasmInitialized) {
25792                 throw new Error("initializeWasm() must be awaited first!");
25793         }
25794         const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_read(ser);
25795         return nativeResponseValue;
25796 }
25797         // struct LDKCVec_u8Z get_htlc_redeemscript(const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, bool opt_anchors, const struct LDKTxCreationKeys *NONNULL_PTR keys);
25798 /* @internal */
25799 export function get_htlc_redeemscript(htlc: number, opt_anchors: boolean, keys: number): number {
25800         if(!isWasmInitialized) {
25801                 throw new Error("initializeWasm() must be awaited first!");
25802         }
25803         const nativeResponseValue = wasm.TS_get_htlc_redeemscript(htlc, opt_anchors, keys);
25804         return nativeResponseValue;
25805 }
25806         // struct LDKCVec_u8Z make_funding_redeemscript(struct LDKPublicKey broadcaster, struct LDKPublicKey countersignatory);
25807 /* @internal */
25808 export function make_funding_redeemscript(broadcaster: number, countersignatory: number): number {
25809         if(!isWasmInitialized) {
25810                 throw new Error("initializeWasm() must be awaited first!");
25811         }
25812         const nativeResponseValue = wasm.TS_make_funding_redeemscript(broadcaster, countersignatory);
25813         return nativeResponseValue;
25814 }
25815         // 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);
25816 /* @internal */
25817 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 {
25818         if(!isWasmInitialized) {
25819                 throw new Error("initializeWasm() must be awaited first!");
25820         }
25821         const nativeResponseValue = wasm.TS_build_htlc_transaction(commitment_txid, feerate_per_kw, contest_delay, htlc, opt_anchors, broadcaster_delayed_payment_key, revocation_key);
25822         return nativeResponseValue;
25823 }
25824         // struct LDKCVec_u8Z get_anchor_redeemscript(struct LDKPublicKey funding_pubkey);
25825 /* @internal */
25826 export function get_anchor_redeemscript(funding_pubkey: number): number {
25827         if(!isWasmInitialized) {
25828                 throw new Error("initializeWasm() must be awaited first!");
25829         }
25830         const nativeResponseValue = wasm.TS_get_anchor_redeemscript(funding_pubkey);
25831         return nativeResponseValue;
25832 }
25833         // void ChannelTransactionParameters_free(struct LDKChannelTransactionParameters this_obj);
25834 /* @internal */
25835 export function ChannelTransactionParameters_free(this_obj: number): void {
25836         if(!isWasmInitialized) {
25837                 throw new Error("initializeWasm() must be awaited first!");
25838         }
25839         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_free(this_obj);
25840         // debug statements here
25841 }
25842         // struct LDKChannelPublicKeys ChannelTransactionParameters_get_holder_pubkeys(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25843 /* @internal */
25844 export function ChannelTransactionParameters_get_holder_pubkeys(this_ptr: number): number {
25845         if(!isWasmInitialized) {
25846                 throw new Error("initializeWasm() must be awaited first!");
25847         }
25848         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_holder_pubkeys(this_ptr);
25849         return nativeResponseValue;
25850 }
25851         // void ChannelTransactionParameters_set_holder_pubkeys(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
25852 /* @internal */
25853 export function ChannelTransactionParameters_set_holder_pubkeys(this_ptr: number, val: number): void {
25854         if(!isWasmInitialized) {
25855                 throw new Error("initializeWasm() must be awaited first!");
25856         }
25857         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_holder_pubkeys(this_ptr, val);
25858         // debug statements here
25859 }
25860         // uint16_t ChannelTransactionParameters_get_holder_selected_contest_delay(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25861 /* @internal */
25862 export function ChannelTransactionParameters_get_holder_selected_contest_delay(this_ptr: number): number {
25863         if(!isWasmInitialized) {
25864                 throw new Error("initializeWasm() must be awaited first!");
25865         }
25866         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_holder_selected_contest_delay(this_ptr);
25867         return nativeResponseValue;
25868 }
25869         // void ChannelTransactionParameters_set_holder_selected_contest_delay(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
25870 /* @internal */
25871 export function ChannelTransactionParameters_set_holder_selected_contest_delay(this_ptr: number, val: number): void {
25872         if(!isWasmInitialized) {
25873                 throw new Error("initializeWasm() must be awaited first!");
25874         }
25875         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_holder_selected_contest_delay(this_ptr, val);
25876         // debug statements here
25877 }
25878         // bool ChannelTransactionParameters_get_is_outbound_from_holder(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25879 /* @internal */
25880 export function ChannelTransactionParameters_get_is_outbound_from_holder(this_ptr: number): boolean {
25881         if(!isWasmInitialized) {
25882                 throw new Error("initializeWasm() must be awaited first!");
25883         }
25884         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_is_outbound_from_holder(this_ptr);
25885         return nativeResponseValue;
25886 }
25887         // void ChannelTransactionParameters_set_is_outbound_from_holder(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, bool val);
25888 /* @internal */
25889 export function ChannelTransactionParameters_set_is_outbound_from_holder(this_ptr: number, val: boolean): void {
25890         if(!isWasmInitialized) {
25891                 throw new Error("initializeWasm() must be awaited first!");
25892         }
25893         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_is_outbound_from_holder(this_ptr, val);
25894         // debug statements here
25895 }
25896         // struct LDKCounterpartyChannelTransactionParameters ChannelTransactionParameters_get_counterparty_parameters(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25897 /* @internal */
25898 export function ChannelTransactionParameters_get_counterparty_parameters(this_ptr: number): number {
25899         if(!isWasmInitialized) {
25900                 throw new Error("initializeWasm() must be awaited first!");
25901         }
25902         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_counterparty_parameters(this_ptr);
25903         return nativeResponseValue;
25904 }
25905         // void ChannelTransactionParameters_set_counterparty_parameters(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKCounterpartyChannelTransactionParameters val);
25906 /* @internal */
25907 export function ChannelTransactionParameters_set_counterparty_parameters(this_ptr: number, val: number): void {
25908         if(!isWasmInitialized) {
25909                 throw new Error("initializeWasm() must be awaited first!");
25910         }
25911         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_counterparty_parameters(this_ptr, val);
25912         // debug statements here
25913 }
25914         // struct LDKOutPoint ChannelTransactionParameters_get_funding_outpoint(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25915 /* @internal */
25916 export function ChannelTransactionParameters_get_funding_outpoint(this_ptr: number): number {
25917         if(!isWasmInitialized) {
25918                 throw new Error("initializeWasm() must be awaited first!");
25919         }
25920         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_funding_outpoint(this_ptr);
25921         return nativeResponseValue;
25922 }
25923         // void ChannelTransactionParameters_set_funding_outpoint(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKOutPoint val);
25924 /* @internal */
25925 export function ChannelTransactionParameters_set_funding_outpoint(this_ptr: number, val: number): void {
25926         if(!isWasmInitialized) {
25927                 throw new Error("initializeWasm() must be awaited first!");
25928         }
25929         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_funding_outpoint(this_ptr, val);
25930         // debug statements here
25931 }
25932         // enum LDKCOption_NoneZ ChannelTransactionParameters_get_opt_anchors(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
25933 /* @internal */
25934 export function ChannelTransactionParameters_get_opt_anchors(this_ptr: number): COption_NoneZ {
25935         if(!isWasmInitialized) {
25936                 throw new Error("initializeWasm() must be awaited first!");
25937         }
25938         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_opt_anchors(this_ptr);
25939         return nativeResponseValue;
25940 }
25941         // void ChannelTransactionParameters_set_opt_anchors(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val);
25942 /* @internal */
25943 export function ChannelTransactionParameters_set_opt_anchors(this_ptr: number, val: COption_NoneZ): void {
25944         if(!isWasmInitialized) {
25945                 throw new Error("initializeWasm() must be awaited first!");
25946         }
25947         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_opt_anchors(this_ptr, val);
25948         // debug statements here
25949 }
25950         // 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);
25951 /* @internal */
25952 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 {
25953         if(!isWasmInitialized) {
25954                 throw new Error("initializeWasm() must be awaited first!");
25955         }
25956         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);
25957         return nativeResponseValue;
25958 }
25959         // uintptr_t ChannelTransactionParameters_clone_ptr(LDKChannelTransactionParameters *NONNULL_PTR arg);
25960 /* @internal */
25961 export function ChannelTransactionParameters_clone_ptr(arg: number): number {
25962         if(!isWasmInitialized) {
25963                 throw new Error("initializeWasm() must be awaited first!");
25964         }
25965         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_clone_ptr(arg);
25966         return nativeResponseValue;
25967 }
25968         // struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig);
25969 /* @internal */
25970 export function ChannelTransactionParameters_clone(orig: number): number {
25971         if(!isWasmInitialized) {
25972                 throw new Error("initializeWasm() must be awaited first!");
25973         }
25974         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_clone(orig);
25975         return nativeResponseValue;
25976 }
25977         // void CounterpartyChannelTransactionParameters_free(struct LDKCounterpartyChannelTransactionParameters this_obj);
25978 /* @internal */
25979 export function CounterpartyChannelTransactionParameters_free(this_obj: number): void {
25980         if(!isWasmInitialized) {
25981                 throw new Error("initializeWasm() must be awaited first!");
25982         }
25983         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_free(this_obj);
25984         // debug statements here
25985 }
25986         // struct LDKChannelPublicKeys CounterpartyChannelTransactionParameters_get_pubkeys(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
25987 /* @internal */
25988 export function CounterpartyChannelTransactionParameters_get_pubkeys(this_ptr: number): number {
25989         if(!isWasmInitialized) {
25990                 throw new Error("initializeWasm() must be awaited first!");
25991         }
25992         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_get_pubkeys(this_ptr);
25993         return nativeResponseValue;
25994 }
25995         // void CounterpartyChannelTransactionParameters_set_pubkeys(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
25996 /* @internal */
25997 export function CounterpartyChannelTransactionParameters_set_pubkeys(this_ptr: number, val: number): void {
25998         if(!isWasmInitialized) {
25999                 throw new Error("initializeWasm() must be awaited first!");
26000         }
26001         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_set_pubkeys(this_ptr, val);
26002         // debug statements here
26003 }
26004         // uint16_t CounterpartyChannelTransactionParameters_get_selected_contest_delay(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
26005 /* @internal */
26006 export function CounterpartyChannelTransactionParameters_get_selected_contest_delay(this_ptr: number): number {
26007         if(!isWasmInitialized) {
26008                 throw new Error("initializeWasm() must be awaited first!");
26009         }
26010         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_get_selected_contest_delay(this_ptr);
26011         return nativeResponseValue;
26012 }
26013         // void CounterpartyChannelTransactionParameters_set_selected_contest_delay(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
26014 /* @internal */
26015 export function CounterpartyChannelTransactionParameters_set_selected_contest_delay(this_ptr: number, val: number): void {
26016         if(!isWasmInitialized) {
26017                 throw new Error("initializeWasm() must be awaited first!");
26018         }
26019         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_set_selected_contest_delay(this_ptr, val);
26020         // debug statements here
26021 }
26022         // MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_new(struct LDKChannelPublicKeys pubkeys_arg, uint16_t selected_contest_delay_arg);
26023 /* @internal */
26024 export function CounterpartyChannelTransactionParameters_new(pubkeys_arg: number, selected_contest_delay_arg: number): number {
26025         if(!isWasmInitialized) {
26026                 throw new Error("initializeWasm() must be awaited first!");
26027         }
26028         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_new(pubkeys_arg, selected_contest_delay_arg);
26029         return nativeResponseValue;
26030 }
26031         // uintptr_t CounterpartyChannelTransactionParameters_clone_ptr(LDKCounterpartyChannelTransactionParameters *NONNULL_PTR arg);
26032 /* @internal */
26033 export function CounterpartyChannelTransactionParameters_clone_ptr(arg: number): number {
26034         if(!isWasmInitialized) {
26035                 throw new Error("initializeWasm() must be awaited first!");
26036         }
26037         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_clone_ptr(arg);
26038         return nativeResponseValue;
26039 }
26040         // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig);
26041 /* @internal */
26042 export function CounterpartyChannelTransactionParameters_clone(orig: number): number {
26043         if(!isWasmInitialized) {
26044                 throw new Error("initializeWasm() must be awaited first!");
26045         }
26046         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_clone(orig);
26047         return nativeResponseValue;
26048 }
26049         // MUST_USE_RES bool ChannelTransactionParameters_is_populated(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
26050 /* @internal */
26051 export function ChannelTransactionParameters_is_populated(this_arg: number): boolean {
26052         if(!isWasmInitialized) {
26053                 throw new Error("initializeWasm() must be awaited first!");
26054         }
26055         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_is_populated(this_arg);
26056         return nativeResponseValue;
26057 }
26058         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_holder_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
26059 /* @internal */
26060 export function ChannelTransactionParameters_as_holder_broadcastable(this_arg: number): number {
26061         if(!isWasmInitialized) {
26062                 throw new Error("initializeWasm() must be awaited first!");
26063         }
26064         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_as_holder_broadcastable(this_arg);
26065         return nativeResponseValue;
26066 }
26067         // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_counterparty_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
26068 /* @internal */
26069 export function ChannelTransactionParameters_as_counterparty_broadcastable(this_arg: number): number {
26070         if(!isWasmInitialized) {
26071                 throw new Error("initializeWasm() must be awaited first!");
26072         }
26073         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_as_counterparty_broadcastable(this_arg);
26074         return nativeResponseValue;
26075 }
26076         // struct LDKCVec_u8Z CounterpartyChannelTransactionParameters_write(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR obj);
26077 /* @internal */
26078 export function CounterpartyChannelTransactionParameters_write(obj: number): number {
26079         if(!isWasmInitialized) {
26080                 throw new Error("initializeWasm() must be awaited first!");
26081         }
26082         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_write(obj);
26083         return nativeResponseValue;
26084 }
26085         // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CounterpartyChannelTransactionParameters_read(struct LDKu8slice ser);
26086 /* @internal */
26087 export function CounterpartyChannelTransactionParameters_read(ser: number): number {
26088         if(!isWasmInitialized) {
26089                 throw new Error("initializeWasm() must be awaited first!");
26090         }
26091         const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_read(ser);
26092         return nativeResponseValue;
26093 }
26094         // struct LDKCVec_u8Z ChannelTransactionParameters_write(const struct LDKChannelTransactionParameters *NONNULL_PTR obj);
26095 /* @internal */
26096 export function ChannelTransactionParameters_write(obj: number): number {
26097         if(!isWasmInitialized) {
26098                 throw new Error("initializeWasm() must be awaited first!");
26099         }
26100         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_write(obj);
26101         return nativeResponseValue;
26102 }
26103         // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ ChannelTransactionParameters_read(struct LDKu8slice ser);
26104 /* @internal */
26105 export function ChannelTransactionParameters_read(ser: number): number {
26106         if(!isWasmInitialized) {
26107                 throw new Error("initializeWasm() must be awaited first!");
26108         }
26109         const nativeResponseValue = wasm.TS_ChannelTransactionParameters_read(ser);
26110         return nativeResponseValue;
26111 }
26112         // void DirectedChannelTransactionParameters_free(struct LDKDirectedChannelTransactionParameters this_obj);
26113 /* @internal */
26114 export function DirectedChannelTransactionParameters_free(this_obj: number): void {
26115         if(!isWasmInitialized) {
26116                 throw new Error("initializeWasm() must be awaited first!");
26117         }
26118         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_free(this_obj);
26119         // debug statements here
26120 }
26121         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_broadcaster_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
26122 /* @internal */
26123 export function DirectedChannelTransactionParameters_broadcaster_pubkeys(this_arg: number): number {
26124         if(!isWasmInitialized) {
26125                 throw new Error("initializeWasm() must be awaited first!");
26126         }
26127         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_broadcaster_pubkeys(this_arg);
26128         return nativeResponseValue;
26129 }
26130         // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_countersignatory_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
26131 /* @internal */
26132 export function DirectedChannelTransactionParameters_countersignatory_pubkeys(this_arg: number): number {
26133         if(!isWasmInitialized) {
26134                 throw new Error("initializeWasm() must be awaited first!");
26135         }
26136         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_countersignatory_pubkeys(this_arg);
26137         return nativeResponseValue;
26138 }
26139         // MUST_USE_RES uint16_t DirectedChannelTransactionParameters_contest_delay(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
26140 /* @internal */
26141 export function DirectedChannelTransactionParameters_contest_delay(this_arg: number): number {
26142         if(!isWasmInitialized) {
26143                 throw new Error("initializeWasm() must be awaited first!");
26144         }
26145         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_contest_delay(this_arg);
26146         return nativeResponseValue;
26147 }
26148         // MUST_USE_RES bool DirectedChannelTransactionParameters_is_outbound(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
26149 /* @internal */
26150 export function DirectedChannelTransactionParameters_is_outbound(this_arg: number): boolean {
26151         if(!isWasmInitialized) {
26152                 throw new Error("initializeWasm() must be awaited first!");
26153         }
26154         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_is_outbound(this_arg);
26155         return nativeResponseValue;
26156 }
26157         // MUST_USE_RES struct LDKOutPoint DirectedChannelTransactionParameters_funding_outpoint(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
26158 /* @internal */
26159 export function DirectedChannelTransactionParameters_funding_outpoint(this_arg: number): number {
26160         if(!isWasmInitialized) {
26161                 throw new Error("initializeWasm() must be awaited first!");
26162         }
26163         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_funding_outpoint(this_arg);
26164         return nativeResponseValue;
26165 }
26166         // MUST_USE_RES bool DirectedChannelTransactionParameters_opt_anchors(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
26167 /* @internal */
26168 export function DirectedChannelTransactionParameters_opt_anchors(this_arg: number): boolean {
26169         if(!isWasmInitialized) {
26170                 throw new Error("initializeWasm() must be awaited first!");
26171         }
26172         const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_opt_anchors(this_arg);
26173         return nativeResponseValue;
26174 }
26175         // void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this_obj);
26176 /* @internal */
26177 export function HolderCommitmentTransaction_free(this_obj: number): void {
26178         if(!isWasmInitialized) {
26179                 throw new Error("initializeWasm() must be awaited first!");
26180         }
26181         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_free(this_obj);
26182         // debug statements here
26183 }
26184         // struct LDKSignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
26185 /* @internal */
26186 export function HolderCommitmentTransaction_get_counterparty_sig(this_ptr: number): number {
26187         if(!isWasmInitialized) {
26188                 throw new Error("initializeWasm() must be awaited first!");
26189         }
26190         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_get_counterparty_sig(this_ptr);
26191         return nativeResponseValue;
26192 }
26193         // void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKSignature val);
26194 /* @internal */
26195 export function HolderCommitmentTransaction_set_counterparty_sig(this_ptr: number, val: number): void {
26196         if(!isWasmInitialized) {
26197                 throw new Error("initializeWasm() must be awaited first!");
26198         }
26199         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_set_counterparty_sig(this_ptr, val);
26200         // debug statements here
26201 }
26202         // void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
26203 /* @internal */
26204 export function HolderCommitmentTransaction_set_counterparty_htlc_sigs(this_ptr: number, val: number): void {
26205         if(!isWasmInitialized) {
26206                 throw new Error("initializeWasm() must be awaited first!");
26207         }
26208         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_set_counterparty_htlc_sigs(this_ptr, val);
26209         // debug statements here
26210 }
26211         // uintptr_t HolderCommitmentTransaction_clone_ptr(LDKHolderCommitmentTransaction *NONNULL_PTR arg);
26212 /* @internal */
26213 export function HolderCommitmentTransaction_clone_ptr(arg: number): number {
26214         if(!isWasmInitialized) {
26215                 throw new Error("initializeWasm() must be awaited first!");
26216         }
26217         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_clone_ptr(arg);
26218         return nativeResponseValue;
26219 }
26220         // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_clone(const struct LDKHolderCommitmentTransaction *NONNULL_PTR orig);
26221 /* @internal */
26222 export function HolderCommitmentTransaction_clone(orig: number): number {
26223         if(!isWasmInitialized) {
26224                 throw new Error("initializeWasm() must be awaited first!");
26225         }
26226         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_clone(orig);
26227         return nativeResponseValue;
26228 }
26229         // struct LDKCVec_u8Z HolderCommitmentTransaction_write(const struct LDKHolderCommitmentTransaction *NONNULL_PTR obj);
26230 /* @internal */
26231 export function HolderCommitmentTransaction_write(obj: number): number {
26232         if(!isWasmInitialized) {
26233                 throw new Error("initializeWasm() must be awaited first!");
26234         }
26235         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_write(obj);
26236         return nativeResponseValue;
26237 }
26238         // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ HolderCommitmentTransaction_read(struct LDKu8slice ser);
26239 /* @internal */
26240 export function HolderCommitmentTransaction_read(ser: number): number {
26241         if(!isWasmInitialized) {
26242                 throw new Error("initializeWasm() must be awaited first!");
26243         }
26244         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_read(ser);
26245         return nativeResponseValue;
26246 }
26247         // 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);
26248 /* @internal */
26249 export function HolderCommitmentTransaction_new(commitment_tx: number, counterparty_sig: number, counterparty_htlc_sigs: number, holder_funding_key: number, counterparty_funding_key: number): number {
26250         if(!isWasmInitialized) {
26251                 throw new Error("initializeWasm() must be awaited first!");
26252         }
26253         const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_new(commitment_tx, counterparty_sig, counterparty_htlc_sigs, holder_funding_key, counterparty_funding_key);
26254         return nativeResponseValue;
26255 }
26256         // void BuiltCommitmentTransaction_free(struct LDKBuiltCommitmentTransaction this_obj);
26257 /* @internal */
26258 export function BuiltCommitmentTransaction_free(this_obj: number): void {
26259         if(!isWasmInitialized) {
26260                 throw new Error("initializeWasm() must be awaited first!");
26261         }
26262         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_free(this_obj);
26263         // debug statements here
26264 }
26265         // struct LDKTransaction BuiltCommitmentTransaction_get_transaction(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr);
26266 /* @internal */
26267 export function BuiltCommitmentTransaction_get_transaction(this_ptr: number): number {
26268         if(!isWasmInitialized) {
26269                 throw new Error("initializeWasm() must be awaited first!");
26270         }
26271         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_transaction(this_ptr);
26272         return nativeResponseValue;
26273 }
26274         // void BuiltCommitmentTransaction_set_transaction(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKTransaction val);
26275 /* @internal */
26276 export function BuiltCommitmentTransaction_set_transaction(this_ptr: number, val: number): void {
26277         if(!isWasmInitialized) {
26278                 throw new Error("initializeWasm() must be awaited first!");
26279         }
26280         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_set_transaction(this_ptr, val);
26281         // debug statements here
26282 }
26283         // const uint8_t (*BuiltCommitmentTransaction_get_txid(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr))[32];
26284 /* @internal */
26285 export function BuiltCommitmentTransaction_get_txid(this_ptr: number): number {
26286         if(!isWasmInitialized) {
26287                 throw new Error("initializeWasm() must be awaited first!");
26288         }
26289         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_txid(this_ptr);
26290         return nativeResponseValue;
26291 }
26292         // void BuiltCommitmentTransaction_set_txid(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
26293 /* @internal */
26294 export function BuiltCommitmentTransaction_set_txid(this_ptr: number, val: number): void {
26295         if(!isWasmInitialized) {
26296                 throw new Error("initializeWasm() must be awaited first!");
26297         }
26298         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_set_txid(this_ptr, val);
26299         // debug statements here
26300 }
26301         // MUST_USE_RES struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_new(struct LDKTransaction transaction_arg, struct LDKThirtyTwoBytes txid_arg);
26302 /* @internal */
26303 export function BuiltCommitmentTransaction_new(transaction_arg: number, txid_arg: number): number {
26304         if(!isWasmInitialized) {
26305                 throw new Error("initializeWasm() must be awaited first!");
26306         }
26307         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_new(transaction_arg, txid_arg);
26308         return nativeResponseValue;
26309 }
26310         // uintptr_t BuiltCommitmentTransaction_clone_ptr(LDKBuiltCommitmentTransaction *NONNULL_PTR arg);
26311 /* @internal */
26312 export function BuiltCommitmentTransaction_clone_ptr(arg: number): number {
26313         if(!isWasmInitialized) {
26314                 throw new Error("initializeWasm() must be awaited first!");
26315         }
26316         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_clone_ptr(arg);
26317         return nativeResponseValue;
26318 }
26319         // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_clone(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR orig);
26320 /* @internal */
26321 export function BuiltCommitmentTransaction_clone(orig: number): number {
26322         if(!isWasmInitialized) {
26323                 throw new Error("initializeWasm() must be awaited first!");
26324         }
26325         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_clone(orig);
26326         return nativeResponseValue;
26327 }
26328         // struct LDKCVec_u8Z BuiltCommitmentTransaction_write(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR obj);
26329 /* @internal */
26330 export function BuiltCommitmentTransaction_write(obj: number): number {
26331         if(!isWasmInitialized) {
26332                 throw new Error("initializeWasm() must be awaited first!");
26333         }
26334         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_write(obj);
26335         return nativeResponseValue;
26336 }
26337         // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ BuiltCommitmentTransaction_read(struct LDKu8slice ser);
26338 /* @internal */
26339 export function BuiltCommitmentTransaction_read(ser: number): number {
26340         if(!isWasmInitialized) {
26341                 throw new Error("initializeWasm() must be awaited first!");
26342         }
26343         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_read(ser);
26344         return nativeResponseValue;
26345 }
26346         // 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);
26347 /* @internal */
26348 export function BuiltCommitmentTransaction_get_sighash_all(this_arg: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
26349         if(!isWasmInitialized) {
26350                 throw new Error("initializeWasm() must be awaited first!");
26351         }
26352         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_sighash_all(this_arg, funding_redeemscript, channel_value_satoshis);
26353         return nativeResponseValue;
26354 }
26355         // 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);
26356 /* @internal */
26357 export function BuiltCommitmentTransaction_sign(this_arg: number, funding_key: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
26358         if(!isWasmInitialized) {
26359                 throw new Error("initializeWasm() must be awaited first!");
26360         }
26361         const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_sign(this_arg, funding_key, funding_redeemscript, channel_value_satoshis);
26362         return nativeResponseValue;
26363 }
26364         // void ClosingTransaction_free(struct LDKClosingTransaction this_obj);
26365 /* @internal */
26366 export function ClosingTransaction_free(this_obj: number): void {
26367         if(!isWasmInitialized) {
26368                 throw new Error("initializeWasm() must be awaited first!");
26369         }
26370         const nativeResponseValue = wasm.TS_ClosingTransaction_free(this_obj);
26371         // debug statements here
26372 }
26373         // uintptr_t ClosingTransaction_clone_ptr(LDKClosingTransaction *NONNULL_PTR arg);
26374 /* @internal */
26375 export function ClosingTransaction_clone_ptr(arg: number): number {
26376         if(!isWasmInitialized) {
26377                 throw new Error("initializeWasm() must be awaited first!");
26378         }
26379         const nativeResponseValue = wasm.TS_ClosingTransaction_clone_ptr(arg);
26380         return nativeResponseValue;
26381 }
26382         // struct LDKClosingTransaction ClosingTransaction_clone(const struct LDKClosingTransaction *NONNULL_PTR orig);
26383 /* @internal */
26384 export function ClosingTransaction_clone(orig: number): number {
26385         if(!isWasmInitialized) {
26386                 throw new Error("initializeWasm() must be awaited first!");
26387         }
26388         const nativeResponseValue = wasm.TS_ClosingTransaction_clone(orig);
26389         return nativeResponseValue;
26390 }
26391         // uint64_t ClosingTransaction_hash(const struct LDKClosingTransaction *NONNULL_PTR o);
26392 /* @internal */
26393 export function ClosingTransaction_hash(o: number): bigint {
26394         if(!isWasmInitialized) {
26395                 throw new Error("initializeWasm() must be awaited first!");
26396         }
26397         const nativeResponseValue = wasm.TS_ClosingTransaction_hash(o);
26398         return nativeResponseValue;
26399 }
26400         // 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);
26401 /* @internal */
26402 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 {
26403         if(!isWasmInitialized) {
26404                 throw new Error("initializeWasm() must be awaited first!");
26405         }
26406         const nativeResponseValue = wasm.TS_ClosingTransaction_new(to_holder_value_sat, to_counterparty_value_sat, to_holder_script, to_counterparty_script, funding_outpoint);
26407         return nativeResponseValue;
26408 }
26409         // MUST_USE_RES struct LDKTrustedClosingTransaction ClosingTransaction_trust(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
26410 /* @internal */
26411 export function ClosingTransaction_trust(this_arg: number): number {
26412         if(!isWasmInitialized) {
26413                 throw new Error("initializeWasm() must be awaited first!");
26414         }
26415         const nativeResponseValue = wasm.TS_ClosingTransaction_trust(this_arg);
26416         return nativeResponseValue;
26417 }
26418         // MUST_USE_RES struct LDKCResult_TrustedClosingTransactionNoneZ ClosingTransaction_verify(const struct LDKClosingTransaction *NONNULL_PTR this_arg, struct LDKOutPoint funding_outpoint);
26419 /* @internal */
26420 export function ClosingTransaction_verify(this_arg: number, funding_outpoint: number): number {
26421         if(!isWasmInitialized) {
26422                 throw new Error("initializeWasm() must be awaited first!");
26423         }
26424         const nativeResponseValue = wasm.TS_ClosingTransaction_verify(this_arg, funding_outpoint);
26425         return nativeResponseValue;
26426 }
26427         // MUST_USE_RES uint64_t ClosingTransaction_to_holder_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
26428 /* @internal */
26429 export function ClosingTransaction_to_holder_value_sat(this_arg: number): bigint {
26430         if(!isWasmInitialized) {
26431                 throw new Error("initializeWasm() must be awaited first!");
26432         }
26433         const nativeResponseValue = wasm.TS_ClosingTransaction_to_holder_value_sat(this_arg);
26434         return nativeResponseValue;
26435 }
26436         // MUST_USE_RES uint64_t ClosingTransaction_to_counterparty_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
26437 /* @internal */
26438 export function ClosingTransaction_to_counterparty_value_sat(this_arg: number): bigint {
26439         if(!isWasmInitialized) {
26440                 throw new Error("initializeWasm() must be awaited first!");
26441         }
26442         const nativeResponseValue = wasm.TS_ClosingTransaction_to_counterparty_value_sat(this_arg);
26443         return nativeResponseValue;
26444 }
26445         // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_holder_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
26446 /* @internal */
26447 export function ClosingTransaction_to_holder_script(this_arg: number): number {
26448         if(!isWasmInitialized) {
26449                 throw new Error("initializeWasm() must be awaited first!");
26450         }
26451         const nativeResponseValue = wasm.TS_ClosingTransaction_to_holder_script(this_arg);
26452         return nativeResponseValue;
26453 }
26454         // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_counterparty_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
26455 /* @internal */
26456 export function ClosingTransaction_to_counterparty_script(this_arg: number): number {
26457         if(!isWasmInitialized) {
26458                 throw new Error("initializeWasm() must be awaited first!");
26459         }
26460         const nativeResponseValue = wasm.TS_ClosingTransaction_to_counterparty_script(this_arg);
26461         return nativeResponseValue;
26462 }
26463         // void TrustedClosingTransaction_free(struct LDKTrustedClosingTransaction this_obj);
26464 /* @internal */
26465 export function TrustedClosingTransaction_free(this_obj: number): void {
26466         if(!isWasmInitialized) {
26467                 throw new Error("initializeWasm() must be awaited first!");
26468         }
26469         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_free(this_obj);
26470         // debug statements here
26471 }
26472         // MUST_USE_RES struct LDKTransaction TrustedClosingTransaction_built_transaction(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg);
26473 /* @internal */
26474 export function TrustedClosingTransaction_built_transaction(this_arg: number): number {
26475         if(!isWasmInitialized) {
26476                 throw new Error("initializeWasm() must be awaited first!");
26477         }
26478         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_built_transaction(this_arg);
26479         return nativeResponseValue;
26480 }
26481         // 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);
26482 /* @internal */
26483 export function TrustedClosingTransaction_get_sighash_all(this_arg: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
26484         if(!isWasmInitialized) {
26485                 throw new Error("initializeWasm() must be awaited first!");
26486         }
26487         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_get_sighash_all(this_arg, funding_redeemscript, channel_value_satoshis);
26488         return nativeResponseValue;
26489 }
26490         // 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);
26491 /* @internal */
26492 export function TrustedClosingTransaction_sign(this_arg: number, funding_key: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
26493         if(!isWasmInitialized) {
26494                 throw new Error("initializeWasm() must be awaited first!");
26495         }
26496         const nativeResponseValue = wasm.TS_TrustedClosingTransaction_sign(this_arg, funding_key, funding_redeemscript, channel_value_satoshis);
26497         return nativeResponseValue;
26498 }
26499         // void CommitmentTransaction_free(struct LDKCommitmentTransaction this_obj);
26500 /* @internal */
26501 export function CommitmentTransaction_free(this_obj: number): void {
26502         if(!isWasmInitialized) {
26503                 throw new Error("initializeWasm() must be awaited first!");
26504         }
26505         const nativeResponseValue = wasm.TS_CommitmentTransaction_free(this_obj);
26506         // debug statements here
26507 }
26508         // uintptr_t CommitmentTransaction_clone_ptr(LDKCommitmentTransaction *NONNULL_PTR arg);
26509 /* @internal */
26510 export function CommitmentTransaction_clone_ptr(arg: number): number {
26511         if(!isWasmInitialized) {
26512                 throw new Error("initializeWasm() must be awaited first!");
26513         }
26514         const nativeResponseValue = wasm.TS_CommitmentTransaction_clone_ptr(arg);
26515         return nativeResponseValue;
26516 }
26517         // struct LDKCommitmentTransaction CommitmentTransaction_clone(const struct LDKCommitmentTransaction *NONNULL_PTR orig);
26518 /* @internal */
26519 export function CommitmentTransaction_clone(orig: number): number {
26520         if(!isWasmInitialized) {
26521                 throw new Error("initializeWasm() must be awaited first!");
26522         }
26523         const nativeResponseValue = wasm.TS_CommitmentTransaction_clone(orig);
26524         return nativeResponseValue;
26525 }
26526         // struct LDKCVec_u8Z CommitmentTransaction_write(const struct LDKCommitmentTransaction *NONNULL_PTR obj);
26527 /* @internal */
26528 export function CommitmentTransaction_write(obj: number): number {
26529         if(!isWasmInitialized) {
26530                 throw new Error("initializeWasm() must be awaited first!");
26531         }
26532         const nativeResponseValue = wasm.TS_CommitmentTransaction_write(obj);
26533         return nativeResponseValue;
26534 }
26535         // struct LDKCResult_CommitmentTransactionDecodeErrorZ CommitmentTransaction_read(struct LDKu8slice ser);
26536 /* @internal */
26537 export function CommitmentTransaction_read(ser: number): number {
26538         if(!isWasmInitialized) {
26539                 throw new Error("initializeWasm() must be awaited first!");
26540         }
26541         const nativeResponseValue = wasm.TS_CommitmentTransaction_read(ser);
26542         return nativeResponseValue;
26543 }
26544         // MUST_USE_RES uint64_t CommitmentTransaction_commitment_number(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
26545 /* @internal */
26546 export function CommitmentTransaction_commitment_number(this_arg: number): bigint {
26547         if(!isWasmInitialized) {
26548                 throw new Error("initializeWasm() must be awaited first!");
26549         }
26550         const nativeResponseValue = wasm.TS_CommitmentTransaction_commitment_number(this_arg);
26551         return nativeResponseValue;
26552 }
26553         // MUST_USE_RES uint64_t CommitmentTransaction_to_broadcaster_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
26554 /* @internal */
26555 export function CommitmentTransaction_to_broadcaster_value_sat(this_arg: number): bigint {
26556         if(!isWasmInitialized) {
26557                 throw new Error("initializeWasm() must be awaited first!");
26558         }
26559         const nativeResponseValue = wasm.TS_CommitmentTransaction_to_broadcaster_value_sat(this_arg);
26560         return nativeResponseValue;
26561 }
26562         // MUST_USE_RES uint64_t CommitmentTransaction_to_countersignatory_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
26563 /* @internal */
26564 export function CommitmentTransaction_to_countersignatory_value_sat(this_arg: number): bigint {
26565         if(!isWasmInitialized) {
26566                 throw new Error("initializeWasm() must be awaited first!");
26567         }
26568         const nativeResponseValue = wasm.TS_CommitmentTransaction_to_countersignatory_value_sat(this_arg);
26569         return nativeResponseValue;
26570 }
26571         // MUST_USE_RES uint32_t CommitmentTransaction_feerate_per_kw(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
26572 /* @internal */
26573 export function CommitmentTransaction_feerate_per_kw(this_arg: number): number {
26574         if(!isWasmInitialized) {
26575                 throw new Error("initializeWasm() must be awaited first!");
26576         }
26577         const nativeResponseValue = wasm.TS_CommitmentTransaction_feerate_per_kw(this_arg);
26578         return nativeResponseValue;
26579 }
26580         // MUST_USE_RES struct LDKTrustedCommitmentTransaction CommitmentTransaction_trust(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
26581 /* @internal */
26582 export function CommitmentTransaction_trust(this_arg: number): number {
26583         if(!isWasmInitialized) {
26584                 throw new Error("initializeWasm() must be awaited first!");
26585         }
26586         const nativeResponseValue = wasm.TS_CommitmentTransaction_trust(this_arg);
26587         return nativeResponseValue;
26588 }
26589         // 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);
26590 /* @internal */
26591 export function CommitmentTransaction_verify(this_arg: number, channel_parameters: number, broadcaster_keys: number, countersignatory_keys: number): number {
26592         if(!isWasmInitialized) {
26593                 throw new Error("initializeWasm() must be awaited first!");
26594         }
26595         const nativeResponseValue = wasm.TS_CommitmentTransaction_verify(this_arg, channel_parameters, broadcaster_keys, countersignatory_keys);
26596         return nativeResponseValue;
26597 }
26598         // void TrustedCommitmentTransaction_free(struct LDKTrustedCommitmentTransaction this_obj);
26599 /* @internal */
26600 export function TrustedCommitmentTransaction_free(this_obj: number): void {
26601         if(!isWasmInitialized) {
26602                 throw new Error("initializeWasm() must be awaited first!");
26603         }
26604         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_free(this_obj);
26605         // debug statements here
26606 }
26607         // MUST_USE_RES struct LDKThirtyTwoBytes TrustedCommitmentTransaction_txid(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
26608 /* @internal */
26609 export function TrustedCommitmentTransaction_txid(this_arg: number): number {
26610         if(!isWasmInitialized) {
26611                 throw new Error("initializeWasm() must be awaited first!");
26612         }
26613         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_txid(this_arg);
26614         return nativeResponseValue;
26615 }
26616         // MUST_USE_RES struct LDKBuiltCommitmentTransaction TrustedCommitmentTransaction_built_transaction(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
26617 /* @internal */
26618 export function TrustedCommitmentTransaction_built_transaction(this_arg: number): number {
26619         if(!isWasmInitialized) {
26620                 throw new Error("initializeWasm() must be awaited first!");
26621         }
26622         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_built_transaction(this_arg);
26623         return nativeResponseValue;
26624 }
26625         // MUST_USE_RES struct LDKTxCreationKeys TrustedCommitmentTransaction_keys(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
26626 /* @internal */
26627 export function TrustedCommitmentTransaction_keys(this_arg: number): number {
26628         if(!isWasmInitialized) {
26629                 throw new Error("initializeWasm() must be awaited first!");
26630         }
26631         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_keys(this_arg);
26632         return nativeResponseValue;
26633 }
26634         // MUST_USE_RES bool TrustedCommitmentTransaction_opt_anchors(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
26635 /* @internal */
26636 export function TrustedCommitmentTransaction_opt_anchors(this_arg: number): boolean {
26637         if(!isWasmInitialized) {
26638                 throw new Error("initializeWasm() must be awaited first!");
26639         }
26640         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_opt_anchors(this_arg);
26641         return nativeResponseValue;
26642 }
26643         // 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);
26644 /* @internal */
26645 export function TrustedCommitmentTransaction_get_htlc_sigs(this_arg: number, htlc_base_key: number, channel_parameters: number): number {
26646         if(!isWasmInitialized) {
26647                 throw new Error("initializeWasm() must be awaited first!");
26648         }
26649         const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_get_htlc_sigs(this_arg, htlc_base_key, channel_parameters);
26650         return nativeResponseValue;
26651 }
26652         // uint64_t get_commitment_transaction_number_obscure_factor(struct LDKPublicKey broadcaster_payment_basepoint, struct LDKPublicKey countersignatory_payment_basepoint, bool outbound_from_broadcaster);
26653 /* @internal */
26654 export function get_commitment_transaction_number_obscure_factor(broadcaster_payment_basepoint: number, countersignatory_payment_basepoint: number, outbound_from_broadcaster: boolean): bigint {
26655         if(!isWasmInitialized) {
26656                 throw new Error("initializeWasm() must be awaited first!");
26657         }
26658         const nativeResponseValue = wasm.TS_get_commitment_transaction_number_obscure_factor(broadcaster_payment_basepoint, countersignatory_payment_basepoint, outbound_from_broadcaster);
26659         return nativeResponseValue;
26660 }
26661         // bool InitFeatures_eq(const struct LDKInitFeatures *NONNULL_PTR a, const struct LDKInitFeatures *NONNULL_PTR b);
26662 /* @internal */
26663 export function InitFeatures_eq(a: number, b: number): boolean {
26664         if(!isWasmInitialized) {
26665                 throw new Error("initializeWasm() must be awaited first!");
26666         }
26667         const nativeResponseValue = wasm.TS_InitFeatures_eq(a, b);
26668         return nativeResponseValue;
26669 }
26670         // bool NodeFeatures_eq(const struct LDKNodeFeatures *NONNULL_PTR a, const struct LDKNodeFeatures *NONNULL_PTR b);
26671 /* @internal */
26672 export function NodeFeatures_eq(a: number, b: number): boolean {
26673         if(!isWasmInitialized) {
26674                 throw new Error("initializeWasm() must be awaited first!");
26675         }
26676         const nativeResponseValue = wasm.TS_NodeFeatures_eq(a, b);
26677         return nativeResponseValue;
26678 }
26679         // bool ChannelFeatures_eq(const struct LDKChannelFeatures *NONNULL_PTR a, const struct LDKChannelFeatures *NONNULL_PTR b);
26680 /* @internal */
26681 export function ChannelFeatures_eq(a: number, b: number): boolean {
26682         if(!isWasmInitialized) {
26683                 throw new Error("initializeWasm() must be awaited first!");
26684         }
26685         const nativeResponseValue = wasm.TS_ChannelFeatures_eq(a, b);
26686         return nativeResponseValue;
26687 }
26688         // bool InvoiceFeatures_eq(const struct LDKInvoiceFeatures *NONNULL_PTR a, const struct LDKInvoiceFeatures *NONNULL_PTR b);
26689 /* @internal */
26690 export function InvoiceFeatures_eq(a: number, b: number): boolean {
26691         if(!isWasmInitialized) {
26692                 throw new Error("initializeWasm() must be awaited first!");
26693         }
26694         const nativeResponseValue = wasm.TS_InvoiceFeatures_eq(a, b);
26695         return nativeResponseValue;
26696 }
26697         // bool ChannelTypeFeatures_eq(const struct LDKChannelTypeFeatures *NONNULL_PTR a, const struct LDKChannelTypeFeatures *NONNULL_PTR b);
26698 /* @internal */
26699 export function ChannelTypeFeatures_eq(a: number, b: number): boolean {
26700         if(!isWasmInitialized) {
26701                 throw new Error("initializeWasm() must be awaited first!");
26702         }
26703         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_eq(a, b);
26704         return nativeResponseValue;
26705 }
26706         // uintptr_t InitFeatures_clone_ptr(LDKInitFeatures *NONNULL_PTR arg);
26707 /* @internal */
26708 export function InitFeatures_clone_ptr(arg: number): number {
26709         if(!isWasmInitialized) {
26710                 throw new Error("initializeWasm() must be awaited first!");
26711         }
26712         const nativeResponseValue = wasm.TS_InitFeatures_clone_ptr(arg);
26713         return nativeResponseValue;
26714 }
26715         // struct LDKInitFeatures InitFeatures_clone(const struct LDKInitFeatures *NONNULL_PTR orig);
26716 /* @internal */
26717 export function InitFeatures_clone(orig: number): number {
26718         if(!isWasmInitialized) {
26719                 throw new Error("initializeWasm() must be awaited first!");
26720         }
26721         const nativeResponseValue = wasm.TS_InitFeatures_clone(orig);
26722         return nativeResponseValue;
26723 }
26724         // uintptr_t NodeFeatures_clone_ptr(LDKNodeFeatures *NONNULL_PTR arg);
26725 /* @internal */
26726 export function NodeFeatures_clone_ptr(arg: number): number {
26727         if(!isWasmInitialized) {
26728                 throw new Error("initializeWasm() must be awaited first!");
26729         }
26730         const nativeResponseValue = wasm.TS_NodeFeatures_clone_ptr(arg);
26731         return nativeResponseValue;
26732 }
26733         // struct LDKNodeFeatures NodeFeatures_clone(const struct LDKNodeFeatures *NONNULL_PTR orig);
26734 /* @internal */
26735 export function NodeFeatures_clone(orig: number): number {
26736         if(!isWasmInitialized) {
26737                 throw new Error("initializeWasm() must be awaited first!");
26738         }
26739         const nativeResponseValue = wasm.TS_NodeFeatures_clone(orig);
26740         return nativeResponseValue;
26741 }
26742         // uintptr_t ChannelFeatures_clone_ptr(LDKChannelFeatures *NONNULL_PTR arg);
26743 /* @internal */
26744 export function ChannelFeatures_clone_ptr(arg: number): number {
26745         if(!isWasmInitialized) {
26746                 throw new Error("initializeWasm() must be awaited first!");
26747         }
26748         const nativeResponseValue = wasm.TS_ChannelFeatures_clone_ptr(arg);
26749         return nativeResponseValue;
26750 }
26751         // struct LDKChannelFeatures ChannelFeatures_clone(const struct LDKChannelFeatures *NONNULL_PTR orig);
26752 /* @internal */
26753 export function ChannelFeatures_clone(orig: number): number {
26754         if(!isWasmInitialized) {
26755                 throw new Error("initializeWasm() must be awaited first!");
26756         }
26757         const nativeResponseValue = wasm.TS_ChannelFeatures_clone(orig);
26758         return nativeResponseValue;
26759 }
26760         // uintptr_t InvoiceFeatures_clone_ptr(LDKInvoiceFeatures *NONNULL_PTR arg);
26761 /* @internal */
26762 export function InvoiceFeatures_clone_ptr(arg: number): number {
26763         if(!isWasmInitialized) {
26764                 throw new Error("initializeWasm() must be awaited first!");
26765         }
26766         const nativeResponseValue = wasm.TS_InvoiceFeatures_clone_ptr(arg);
26767         return nativeResponseValue;
26768 }
26769         // struct LDKInvoiceFeatures InvoiceFeatures_clone(const struct LDKInvoiceFeatures *NONNULL_PTR orig);
26770 /* @internal */
26771 export function InvoiceFeatures_clone(orig: number): number {
26772         if(!isWasmInitialized) {
26773                 throw new Error("initializeWasm() must be awaited first!");
26774         }
26775         const nativeResponseValue = wasm.TS_InvoiceFeatures_clone(orig);
26776         return nativeResponseValue;
26777 }
26778         // uintptr_t ChannelTypeFeatures_clone_ptr(LDKChannelTypeFeatures *NONNULL_PTR arg);
26779 /* @internal */
26780 export function ChannelTypeFeatures_clone_ptr(arg: number): number {
26781         if(!isWasmInitialized) {
26782                 throw new Error("initializeWasm() must be awaited first!");
26783         }
26784         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_clone_ptr(arg);
26785         return nativeResponseValue;
26786 }
26787         // struct LDKChannelTypeFeatures ChannelTypeFeatures_clone(const struct LDKChannelTypeFeatures *NONNULL_PTR orig);
26788 /* @internal */
26789 export function ChannelTypeFeatures_clone(orig: number): number {
26790         if(!isWasmInitialized) {
26791                 throw new Error("initializeWasm() must be awaited first!");
26792         }
26793         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_clone(orig);
26794         return nativeResponseValue;
26795 }
26796         // void InitFeatures_free(struct LDKInitFeatures this_obj);
26797 /* @internal */
26798 export function InitFeatures_free(this_obj: number): void {
26799         if(!isWasmInitialized) {
26800                 throw new Error("initializeWasm() must be awaited first!");
26801         }
26802         const nativeResponseValue = wasm.TS_InitFeatures_free(this_obj);
26803         // debug statements here
26804 }
26805         // void NodeFeatures_free(struct LDKNodeFeatures this_obj);
26806 /* @internal */
26807 export function NodeFeatures_free(this_obj: number): void {
26808         if(!isWasmInitialized) {
26809                 throw new Error("initializeWasm() must be awaited first!");
26810         }
26811         const nativeResponseValue = wasm.TS_NodeFeatures_free(this_obj);
26812         // debug statements here
26813 }
26814         // void ChannelFeatures_free(struct LDKChannelFeatures this_obj);
26815 /* @internal */
26816 export function ChannelFeatures_free(this_obj: number): void {
26817         if(!isWasmInitialized) {
26818                 throw new Error("initializeWasm() must be awaited first!");
26819         }
26820         const nativeResponseValue = wasm.TS_ChannelFeatures_free(this_obj);
26821         // debug statements here
26822 }
26823         // void InvoiceFeatures_free(struct LDKInvoiceFeatures this_obj);
26824 /* @internal */
26825 export function InvoiceFeatures_free(this_obj: number): void {
26826         if(!isWasmInitialized) {
26827                 throw new Error("initializeWasm() must be awaited first!");
26828         }
26829         const nativeResponseValue = wasm.TS_InvoiceFeatures_free(this_obj);
26830         // debug statements here
26831 }
26832         // void ChannelTypeFeatures_free(struct LDKChannelTypeFeatures this_obj);
26833 /* @internal */
26834 export function ChannelTypeFeatures_free(this_obj: number): void {
26835         if(!isWasmInitialized) {
26836                 throw new Error("initializeWasm() must be awaited first!");
26837         }
26838         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_free(this_obj);
26839         // debug statements here
26840 }
26841         // MUST_USE_RES struct LDKInitFeatures InitFeatures_empty(void);
26842 /* @internal */
26843 export function InitFeatures_empty(): number {
26844         if(!isWasmInitialized) {
26845                 throw new Error("initializeWasm() must be awaited first!");
26846         }
26847         const nativeResponseValue = wasm.TS_InitFeatures_empty();
26848         return nativeResponseValue;
26849 }
26850         // MUST_USE_RES struct LDKInitFeatures InitFeatures_known(void);
26851 /* @internal */
26852 export function InitFeatures_known(): number {
26853         if(!isWasmInitialized) {
26854                 throw new Error("initializeWasm() must be awaited first!");
26855         }
26856         const nativeResponseValue = wasm.TS_InitFeatures_known();
26857         return nativeResponseValue;
26858 }
26859         // MUST_USE_RES bool InitFeatures_requires_unknown_bits(const struct LDKInitFeatures *NONNULL_PTR this_arg);
26860 /* @internal */
26861 export function InitFeatures_requires_unknown_bits(this_arg: number): boolean {
26862         if(!isWasmInitialized) {
26863                 throw new Error("initializeWasm() must be awaited first!");
26864         }
26865         const nativeResponseValue = wasm.TS_InitFeatures_requires_unknown_bits(this_arg);
26866         return nativeResponseValue;
26867 }
26868         // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_empty(void);
26869 /* @internal */
26870 export function NodeFeatures_empty(): number {
26871         if(!isWasmInitialized) {
26872                 throw new Error("initializeWasm() must be awaited first!");
26873         }
26874         const nativeResponseValue = wasm.TS_NodeFeatures_empty();
26875         return nativeResponseValue;
26876 }
26877         // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_known(void);
26878 /* @internal */
26879 export function NodeFeatures_known(): number {
26880         if(!isWasmInitialized) {
26881                 throw new Error("initializeWasm() must be awaited first!");
26882         }
26883         const nativeResponseValue = wasm.TS_NodeFeatures_known();
26884         return nativeResponseValue;
26885 }
26886         // MUST_USE_RES bool NodeFeatures_requires_unknown_bits(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
26887 /* @internal */
26888 export function NodeFeatures_requires_unknown_bits(this_arg: number): boolean {
26889         if(!isWasmInitialized) {
26890                 throw new Error("initializeWasm() must be awaited first!");
26891         }
26892         const nativeResponseValue = wasm.TS_NodeFeatures_requires_unknown_bits(this_arg);
26893         return nativeResponseValue;
26894 }
26895         // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_empty(void);
26896 /* @internal */
26897 export function ChannelFeatures_empty(): number {
26898         if(!isWasmInitialized) {
26899                 throw new Error("initializeWasm() must be awaited first!");
26900         }
26901         const nativeResponseValue = wasm.TS_ChannelFeatures_empty();
26902         return nativeResponseValue;
26903 }
26904         // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_known(void);
26905 /* @internal */
26906 export function ChannelFeatures_known(): number {
26907         if(!isWasmInitialized) {
26908                 throw new Error("initializeWasm() must be awaited first!");
26909         }
26910         const nativeResponseValue = wasm.TS_ChannelFeatures_known();
26911         return nativeResponseValue;
26912 }
26913         // MUST_USE_RES bool ChannelFeatures_requires_unknown_bits(const struct LDKChannelFeatures *NONNULL_PTR this_arg);
26914 /* @internal */
26915 export function ChannelFeatures_requires_unknown_bits(this_arg: number): boolean {
26916         if(!isWasmInitialized) {
26917                 throw new Error("initializeWasm() must be awaited first!");
26918         }
26919         const nativeResponseValue = wasm.TS_ChannelFeatures_requires_unknown_bits(this_arg);
26920         return nativeResponseValue;
26921 }
26922         // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_empty(void);
26923 /* @internal */
26924 export function InvoiceFeatures_empty(): number {
26925         if(!isWasmInitialized) {
26926                 throw new Error("initializeWasm() must be awaited first!");
26927         }
26928         const nativeResponseValue = wasm.TS_InvoiceFeatures_empty();
26929         return nativeResponseValue;
26930 }
26931         // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_known(void);
26932 /* @internal */
26933 export function InvoiceFeatures_known(): number {
26934         if(!isWasmInitialized) {
26935                 throw new Error("initializeWasm() must be awaited first!");
26936         }
26937         const nativeResponseValue = wasm.TS_InvoiceFeatures_known();
26938         return nativeResponseValue;
26939 }
26940         // MUST_USE_RES bool InvoiceFeatures_requires_unknown_bits(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
26941 /* @internal */
26942 export function InvoiceFeatures_requires_unknown_bits(this_arg: number): boolean {
26943         if(!isWasmInitialized) {
26944                 throw new Error("initializeWasm() must be awaited first!");
26945         }
26946         const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_unknown_bits(this_arg);
26947         return nativeResponseValue;
26948 }
26949         // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_empty(void);
26950 /* @internal */
26951 export function ChannelTypeFeatures_empty(): number {
26952         if(!isWasmInitialized) {
26953                 throw new Error("initializeWasm() must be awaited first!");
26954         }
26955         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_empty();
26956         return nativeResponseValue;
26957 }
26958         // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_known(void);
26959 /* @internal */
26960 export function ChannelTypeFeatures_known(): number {
26961         if(!isWasmInitialized) {
26962                 throw new Error("initializeWasm() must be awaited first!");
26963         }
26964         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_known();
26965         return nativeResponseValue;
26966 }
26967         // MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
26968 /* @internal */
26969 export function ChannelTypeFeatures_requires_unknown_bits(this_arg: number): boolean {
26970         if(!isWasmInitialized) {
26971                 throw new Error("initializeWasm() must be awaited first!");
26972         }
26973         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_unknown_bits(this_arg);
26974         return nativeResponseValue;
26975 }
26976         // struct LDKCVec_u8Z InitFeatures_write(const struct LDKInitFeatures *NONNULL_PTR obj);
26977 /* @internal */
26978 export function InitFeatures_write(obj: number): number {
26979         if(!isWasmInitialized) {
26980                 throw new Error("initializeWasm() must be awaited first!");
26981         }
26982         const nativeResponseValue = wasm.TS_InitFeatures_write(obj);
26983         return nativeResponseValue;
26984 }
26985         // struct LDKCResult_InitFeaturesDecodeErrorZ InitFeatures_read(struct LDKu8slice ser);
26986 /* @internal */
26987 export function InitFeatures_read(ser: number): number {
26988         if(!isWasmInitialized) {
26989                 throw new Error("initializeWasm() must be awaited first!");
26990         }
26991         const nativeResponseValue = wasm.TS_InitFeatures_read(ser);
26992         return nativeResponseValue;
26993 }
26994         // struct LDKCVec_u8Z ChannelFeatures_write(const struct LDKChannelFeatures *NONNULL_PTR obj);
26995 /* @internal */
26996 export function ChannelFeatures_write(obj: number): number {
26997         if(!isWasmInitialized) {
26998                 throw new Error("initializeWasm() must be awaited first!");
26999         }
27000         const nativeResponseValue = wasm.TS_ChannelFeatures_write(obj);
27001         return nativeResponseValue;
27002 }
27003         // struct LDKCResult_ChannelFeaturesDecodeErrorZ ChannelFeatures_read(struct LDKu8slice ser);
27004 /* @internal */
27005 export function ChannelFeatures_read(ser: number): number {
27006         if(!isWasmInitialized) {
27007                 throw new Error("initializeWasm() must be awaited first!");
27008         }
27009         const nativeResponseValue = wasm.TS_ChannelFeatures_read(ser);
27010         return nativeResponseValue;
27011 }
27012         // struct LDKCVec_u8Z NodeFeatures_write(const struct LDKNodeFeatures *NONNULL_PTR obj);
27013 /* @internal */
27014 export function NodeFeatures_write(obj: number): number {
27015         if(!isWasmInitialized) {
27016                 throw new Error("initializeWasm() must be awaited first!");
27017         }
27018         const nativeResponseValue = wasm.TS_NodeFeatures_write(obj);
27019         return nativeResponseValue;
27020 }
27021         // struct LDKCResult_NodeFeaturesDecodeErrorZ NodeFeatures_read(struct LDKu8slice ser);
27022 /* @internal */
27023 export function NodeFeatures_read(ser: number): number {
27024         if(!isWasmInitialized) {
27025                 throw new Error("initializeWasm() must be awaited first!");
27026         }
27027         const nativeResponseValue = wasm.TS_NodeFeatures_read(ser);
27028         return nativeResponseValue;
27029 }
27030         // struct LDKCVec_u8Z InvoiceFeatures_write(const struct LDKInvoiceFeatures *NONNULL_PTR obj);
27031 /* @internal */
27032 export function InvoiceFeatures_write(obj: number): number {
27033         if(!isWasmInitialized) {
27034                 throw new Error("initializeWasm() must be awaited first!");
27035         }
27036         const nativeResponseValue = wasm.TS_InvoiceFeatures_write(obj);
27037         return nativeResponseValue;
27038 }
27039         // struct LDKCResult_InvoiceFeaturesDecodeErrorZ InvoiceFeatures_read(struct LDKu8slice ser);
27040 /* @internal */
27041 export function InvoiceFeatures_read(ser: number): number {
27042         if(!isWasmInitialized) {
27043                 throw new Error("initializeWasm() must be awaited first!");
27044         }
27045         const nativeResponseValue = wasm.TS_InvoiceFeatures_read(ser);
27046         return nativeResponseValue;
27047 }
27048         // struct LDKCVec_u8Z ChannelTypeFeatures_write(const struct LDKChannelTypeFeatures *NONNULL_PTR obj);
27049 /* @internal */
27050 export function ChannelTypeFeatures_write(obj: number): number {
27051         if(!isWasmInitialized) {
27052                 throw new Error("initializeWasm() must be awaited first!");
27053         }
27054         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_write(obj);
27055         return nativeResponseValue;
27056 }
27057         // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ ChannelTypeFeatures_read(struct LDKu8slice ser);
27058 /* @internal */
27059 export function ChannelTypeFeatures_read(ser: number): number {
27060         if(!isWasmInitialized) {
27061                 throw new Error("initializeWasm() must be awaited first!");
27062         }
27063         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_read(ser);
27064         return nativeResponseValue;
27065 }
27066         // void InitFeatures_set_data_loss_protect_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27067 /* @internal */
27068 export function InitFeatures_set_data_loss_protect_optional(this_arg: number): void {
27069         if(!isWasmInitialized) {
27070                 throw new Error("initializeWasm() must be awaited first!");
27071         }
27072         const nativeResponseValue = wasm.TS_InitFeatures_set_data_loss_protect_optional(this_arg);
27073         // debug statements here
27074 }
27075         // void InitFeatures_set_data_loss_protect_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27076 /* @internal */
27077 export function InitFeatures_set_data_loss_protect_required(this_arg: number): void {
27078         if(!isWasmInitialized) {
27079                 throw new Error("initializeWasm() must be awaited first!");
27080         }
27081         const nativeResponseValue = wasm.TS_InitFeatures_set_data_loss_protect_required(this_arg);
27082         // debug statements here
27083 }
27084         // MUST_USE_RES bool InitFeatures_supports_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27085 /* @internal */
27086 export function InitFeatures_supports_data_loss_protect(this_arg: number): boolean {
27087         if(!isWasmInitialized) {
27088                 throw new Error("initializeWasm() must be awaited first!");
27089         }
27090         const nativeResponseValue = wasm.TS_InitFeatures_supports_data_loss_protect(this_arg);
27091         return nativeResponseValue;
27092 }
27093         // void NodeFeatures_set_data_loss_protect_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27094 /* @internal */
27095 export function NodeFeatures_set_data_loss_protect_optional(this_arg: number): void {
27096         if(!isWasmInitialized) {
27097                 throw new Error("initializeWasm() must be awaited first!");
27098         }
27099         const nativeResponseValue = wasm.TS_NodeFeatures_set_data_loss_protect_optional(this_arg);
27100         // debug statements here
27101 }
27102         // void NodeFeatures_set_data_loss_protect_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27103 /* @internal */
27104 export function NodeFeatures_set_data_loss_protect_required(this_arg: number): void {
27105         if(!isWasmInitialized) {
27106                 throw new Error("initializeWasm() must be awaited first!");
27107         }
27108         const nativeResponseValue = wasm.TS_NodeFeatures_set_data_loss_protect_required(this_arg);
27109         // debug statements here
27110 }
27111         // MUST_USE_RES bool NodeFeatures_supports_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27112 /* @internal */
27113 export function NodeFeatures_supports_data_loss_protect(this_arg: number): boolean {
27114         if(!isWasmInitialized) {
27115                 throw new Error("initializeWasm() must be awaited first!");
27116         }
27117         const nativeResponseValue = wasm.TS_NodeFeatures_supports_data_loss_protect(this_arg);
27118         return nativeResponseValue;
27119 }
27120         // MUST_USE_RES bool InitFeatures_requires_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27121 /* @internal */
27122 export function InitFeatures_requires_data_loss_protect(this_arg: number): boolean {
27123         if(!isWasmInitialized) {
27124                 throw new Error("initializeWasm() must be awaited first!");
27125         }
27126         const nativeResponseValue = wasm.TS_InitFeatures_requires_data_loss_protect(this_arg);
27127         return nativeResponseValue;
27128 }
27129         // MUST_USE_RES bool NodeFeatures_requires_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27130 /* @internal */
27131 export function NodeFeatures_requires_data_loss_protect(this_arg: number): boolean {
27132         if(!isWasmInitialized) {
27133                 throw new Error("initializeWasm() must be awaited first!");
27134         }
27135         const nativeResponseValue = wasm.TS_NodeFeatures_requires_data_loss_protect(this_arg);
27136         return nativeResponseValue;
27137 }
27138         // void InitFeatures_set_initial_routing_sync_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27139 /* @internal */
27140 export function InitFeatures_set_initial_routing_sync_optional(this_arg: number): void {
27141         if(!isWasmInitialized) {
27142                 throw new Error("initializeWasm() must be awaited first!");
27143         }
27144         const nativeResponseValue = wasm.TS_InitFeatures_set_initial_routing_sync_optional(this_arg);
27145         // debug statements here
27146 }
27147         // void InitFeatures_set_initial_routing_sync_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27148 /* @internal */
27149 export function InitFeatures_set_initial_routing_sync_required(this_arg: number): void {
27150         if(!isWasmInitialized) {
27151                 throw new Error("initializeWasm() must be awaited first!");
27152         }
27153         const nativeResponseValue = wasm.TS_InitFeatures_set_initial_routing_sync_required(this_arg);
27154         // debug statements here
27155 }
27156         // MUST_USE_RES bool InitFeatures_initial_routing_sync(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27157 /* @internal */
27158 export function InitFeatures_initial_routing_sync(this_arg: number): boolean {
27159         if(!isWasmInitialized) {
27160                 throw new Error("initializeWasm() must be awaited first!");
27161         }
27162         const nativeResponseValue = wasm.TS_InitFeatures_initial_routing_sync(this_arg);
27163         return nativeResponseValue;
27164 }
27165         // void InitFeatures_set_upfront_shutdown_script_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27166 /* @internal */
27167 export function InitFeatures_set_upfront_shutdown_script_optional(this_arg: number): void {
27168         if(!isWasmInitialized) {
27169                 throw new Error("initializeWasm() must be awaited first!");
27170         }
27171         const nativeResponseValue = wasm.TS_InitFeatures_set_upfront_shutdown_script_optional(this_arg);
27172         // debug statements here
27173 }
27174         // void InitFeatures_set_upfront_shutdown_script_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27175 /* @internal */
27176 export function InitFeatures_set_upfront_shutdown_script_required(this_arg: number): void {
27177         if(!isWasmInitialized) {
27178                 throw new Error("initializeWasm() must be awaited first!");
27179         }
27180         const nativeResponseValue = wasm.TS_InitFeatures_set_upfront_shutdown_script_required(this_arg);
27181         // debug statements here
27182 }
27183         // MUST_USE_RES bool InitFeatures_supports_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27184 /* @internal */
27185 export function InitFeatures_supports_upfront_shutdown_script(this_arg: number): boolean {
27186         if(!isWasmInitialized) {
27187                 throw new Error("initializeWasm() must be awaited first!");
27188         }
27189         const nativeResponseValue = wasm.TS_InitFeatures_supports_upfront_shutdown_script(this_arg);
27190         return nativeResponseValue;
27191 }
27192         // void NodeFeatures_set_upfront_shutdown_script_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27193 /* @internal */
27194 export function NodeFeatures_set_upfront_shutdown_script_optional(this_arg: number): void {
27195         if(!isWasmInitialized) {
27196                 throw new Error("initializeWasm() must be awaited first!");
27197         }
27198         const nativeResponseValue = wasm.TS_NodeFeatures_set_upfront_shutdown_script_optional(this_arg);
27199         // debug statements here
27200 }
27201         // void NodeFeatures_set_upfront_shutdown_script_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27202 /* @internal */
27203 export function NodeFeatures_set_upfront_shutdown_script_required(this_arg: number): void {
27204         if(!isWasmInitialized) {
27205                 throw new Error("initializeWasm() must be awaited first!");
27206         }
27207         const nativeResponseValue = wasm.TS_NodeFeatures_set_upfront_shutdown_script_required(this_arg);
27208         // debug statements here
27209 }
27210         // MUST_USE_RES bool NodeFeatures_supports_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27211 /* @internal */
27212 export function NodeFeatures_supports_upfront_shutdown_script(this_arg: number): boolean {
27213         if(!isWasmInitialized) {
27214                 throw new Error("initializeWasm() must be awaited first!");
27215         }
27216         const nativeResponseValue = wasm.TS_NodeFeatures_supports_upfront_shutdown_script(this_arg);
27217         return nativeResponseValue;
27218 }
27219         // MUST_USE_RES bool InitFeatures_requires_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27220 /* @internal */
27221 export function InitFeatures_requires_upfront_shutdown_script(this_arg: number): boolean {
27222         if(!isWasmInitialized) {
27223                 throw new Error("initializeWasm() must be awaited first!");
27224         }
27225         const nativeResponseValue = wasm.TS_InitFeatures_requires_upfront_shutdown_script(this_arg);
27226         return nativeResponseValue;
27227 }
27228         // MUST_USE_RES bool NodeFeatures_requires_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27229 /* @internal */
27230 export function NodeFeatures_requires_upfront_shutdown_script(this_arg: number): boolean {
27231         if(!isWasmInitialized) {
27232                 throw new Error("initializeWasm() must be awaited first!");
27233         }
27234         const nativeResponseValue = wasm.TS_NodeFeatures_requires_upfront_shutdown_script(this_arg);
27235         return nativeResponseValue;
27236 }
27237         // void InitFeatures_set_gossip_queries_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27238 /* @internal */
27239 export function InitFeatures_set_gossip_queries_optional(this_arg: number): void {
27240         if(!isWasmInitialized) {
27241                 throw new Error("initializeWasm() must be awaited first!");
27242         }
27243         const nativeResponseValue = wasm.TS_InitFeatures_set_gossip_queries_optional(this_arg);
27244         // debug statements here
27245 }
27246         // void InitFeatures_set_gossip_queries_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27247 /* @internal */
27248 export function InitFeatures_set_gossip_queries_required(this_arg: number): void {
27249         if(!isWasmInitialized) {
27250                 throw new Error("initializeWasm() must be awaited first!");
27251         }
27252         const nativeResponseValue = wasm.TS_InitFeatures_set_gossip_queries_required(this_arg);
27253         // debug statements here
27254 }
27255         // MUST_USE_RES bool InitFeatures_supports_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27256 /* @internal */
27257 export function InitFeatures_supports_gossip_queries(this_arg: number): boolean {
27258         if(!isWasmInitialized) {
27259                 throw new Error("initializeWasm() must be awaited first!");
27260         }
27261         const nativeResponseValue = wasm.TS_InitFeatures_supports_gossip_queries(this_arg);
27262         return nativeResponseValue;
27263 }
27264         // void NodeFeatures_set_gossip_queries_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27265 /* @internal */
27266 export function NodeFeatures_set_gossip_queries_optional(this_arg: number): void {
27267         if(!isWasmInitialized) {
27268                 throw new Error("initializeWasm() must be awaited first!");
27269         }
27270         const nativeResponseValue = wasm.TS_NodeFeatures_set_gossip_queries_optional(this_arg);
27271         // debug statements here
27272 }
27273         // void NodeFeatures_set_gossip_queries_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27274 /* @internal */
27275 export function NodeFeatures_set_gossip_queries_required(this_arg: number): void {
27276         if(!isWasmInitialized) {
27277                 throw new Error("initializeWasm() must be awaited first!");
27278         }
27279         const nativeResponseValue = wasm.TS_NodeFeatures_set_gossip_queries_required(this_arg);
27280         // debug statements here
27281 }
27282         // MUST_USE_RES bool NodeFeatures_supports_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27283 /* @internal */
27284 export function NodeFeatures_supports_gossip_queries(this_arg: number): boolean {
27285         if(!isWasmInitialized) {
27286                 throw new Error("initializeWasm() must be awaited first!");
27287         }
27288         const nativeResponseValue = wasm.TS_NodeFeatures_supports_gossip_queries(this_arg);
27289         return nativeResponseValue;
27290 }
27291         // MUST_USE_RES bool InitFeatures_requires_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27292 /* @internal */
27293 export function InitFeatures_requires_gossip_queries(this_arg: number): boolean {
27294         if(!isWasmInitialized) {
27295                 throw new Error("initializeWasm() must be awaited first!");
27296         }
27297         const nativeResponseValue = wasm.TS_InitFeatures_requires_gossip_queries(this_arg);
27298         return nativeResponseValue;
27299 }
27300         // MUST_USE_RES bool NodeFeatures_requires_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27301 /* @internal */
27302 export function NodeFeatures_requires_gossip_queries(this_arg: number): boolean {
27303         if(!isWasmInitialized) {
27304                 throw new Error("initializeWasm() must be awaited first!");
27305         }
27306         const nativeResponseValue = wasm.TS_NodeFeatures_requires_gossip_queries(this_arg);
27307         return nativeResponseValue;
27308 }
27309         // void InitFeatures_set_variable_length_onion_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27310 /* @internal */
27311 export function InitFeatures_set_variable_length_onion_optional(this_arg: number): void {
27312         if(!isWasmInitialized) {
27313                 throw new Error("initializeWasm() must be awaited first!");
27314         }
27315         const nativeResponseValue = wasm.TS_InitFeatures_set_variable_length_onion_optional(this_arg);
27316         // debug statements here
27317 }
27318         // void InitFeatures_set_variable_length_onion_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27319 /* @internal */
27320 export function InitFeatures_set_variable_length_onion_required(this_arg: number): void {
27321         if(!isWasmInitialized) {
27322                 throw new Error("initializeWasm() must be awaited first!");
27323         }
27324         const nativeResponseValue = wasm.TS_InitFeatures_set_variable_length_onion_required(this_arg);
27325         // debug statements here
27326 }
27327         // MUST_USE_RES bool InitFeatures_supports_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27328 /* @internal */
27329 export function InitFeatures_supports_variable_length_onion(this_arg: number): boolean {
27330         if(!isWasmInitialized) {
27331                 throw new Error("initializeWasm() must be awaited first!");
27332         }
27333         const nativeResponseValue = wasm.TS_InitFeatures_supports_variable_length_onion(this_arg);
27334         return nativeResponseValue;
27335 }
27336         // void NodeFeatures_set_variable_length_onion_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27337 /* @internal */
27338 export function NodeFeatures_set_variable_length_onion_optional(this_arg: number): void {
27339         if(!isWasmInitialized) {
27340                 throw new Error("initializeWasm() must be awaited first!");
27341         }
27342         const nativeResponseValue = wasm.TS_NodeFeatures_set_variable_length_onion_optional(this_arg);
27343         // debug statements here
27344 }
27345         // void NodeFeatures_set_variable_length_onion_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27346 /* @internal */
27347 export function NodeFeatures_set_variable_length_onion_required(this_arg: number): void {
27348         if(!isWasmInitialized) {
27349                 throw new Error("initializeWasm() must be awaited first!");
27350         }
27351         const nativeResponseValue = wasm.TS_NodeFeatures_set_variable_length_onion_required(this_arg);
27352         // debug statements here
27353 }
27354         // MUST_USE_RES bool NodeFeatures_supports_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27355 /* @internal */
27356 export function NodeFeatures_supports_variable_length_onion(this_arg: number): boolean {
27357         if(!isWasmInitialized) {
27358                 throw new Error("initializeWasm() must be awaited first!");
27359         }
27360         const nativeResponseValue = wasm.TS_NodeFeatures_supports_variable_length_onion(this_arg);
27361         return nativeResponseValue;
27362 }
27363         // void InvoiceFeatures_set_variable_length_onion_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27364 /* @internal */
27365 export function InvoiceFeatures_set_variable_length_onion_optional(this_arg: number): void {
27366         if(!isWasmInitialized) {
27367                 throw new Error("initializeWasm() must be awaited first!");
27368         }
27369         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_variable_length_onion_optional(this_arg);
27370         // debug statements here
27371 }
27372         // void InvoiceFeatures_set_variable_length_onion_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27373 /* @internal */
27374 export function InvoiceFeatures_set_variable_length_onion_required(this_arg: number): void {
27375         if(!isWasmInitialized) {
27376                 throw new Error("initializeWasm() must be awaited first!");
27377         }
27378         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_variable_length_onion_required(this_arg);
27379         // debug statements here
27380 }
27381         // MUST_USE_RES bool InvoiceFeatures_supports_variable_length_onion(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27382 /* @internal */
27383 export function InvoiceFeatures_supports_variable_length_onion(this_arg: number): boolean {
27384         if(!isWasmInitialized) {
27385                 throw new Error("initializeWasm() must be awaited first!");
27386         }
27387         const nativeResponseValue = wasm.TS_InvoiceFeatures_supports_variable_length_onion(this_arg);
27388         return nativeResponseValue;
27389 }
27390         // MUST_USE_RES bool InitFeatures_requires_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27391 /* @internal */
27392 export function InitFeatures_requires_variable_length_onion(this_arg: number): boolean {
27393         if(!isWasmInitialized) {
27394                 throw new Error("initializeWasm() must be awaited first!");
27395         }
27396         const nativeResponseValue = wasm.TS_InitFeatures_requires_variable_length_onion(this_arg);
27397         return nativeResponseValue;
27398 }
27399         // MUST_USE_RES bool NodeFeatures_requires_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27400 /* @internal */
27401 export function NodeFeatures_requires_variable_length_onion(this_arg: number): boolean {
27402         if(!isWasmInitialized) {
27403                 throw new Error("initializeWasm() must be awaited first!");
27404         }
27405         const nativeResponseValue = wasm.TS_NodeFeatures_requires_variable_length_onion(this_arg);
27406         return nativeResponseValue;
27407 }
27408         // MUST_USE_RES bool InvoiceFeatures_requires_variable_length_onion(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27409 /* @internal */
27410 export function InvoiceFeatures_requires_variable_length_onion(this_arg: number): boolean {
27411         if(!isWasmInitialized) {
27412                 throw new Error("initializeWasm() must be awaited first!");
27413         }
27414         const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_variable_length_onion(this_arg);
27415         return nativeResponseValue;
27416 }
27417         // void InitFeatures_set_static_remote_key_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27418 /* @internal */
27419 export function InitFeatures_set_static_remote_key_optional(this_arg: number): void {
27420         if(!isWasmInitialized) {
27421                 throw new Error("initializeWasm() must be awaited first!");
27422         }
27423         const nativeResponseValue = wasm.TS_InitFeatures_set_static_remote_key_optional(this_arg);
27424         // debug statements here
27425 }
27426         // void InitFeatures_set_static_remote_key_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27427 /* @internal */
27428 export function InitFeatures_set_static_remote_key_required(this_arg: number): void {
27429         if(!isWasmInitialized) {
27430                 throw new Error("initializeWasm() must be awaited first!");
27431         }
27432         const nativeResponseValue = wasm.TS_InitFeatures_set_static_remote_key_required(this_arg);
27433         // debug statements here
27434 }
27435         // MUST_USE_RES bool InitFeatures_supports_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27436 /* @internal */
27437 export function InitFeatures_supports_static_remote_key(this_arg: number): boolean {
27438         if(!isWasmInitialized) {
27439                 throw new Error("initializeWasm() must be awaited first!");
27440         }
27441         const nativeResponseValue = wasm.TS_InitFeatures_supports_static_remote_key(this_arg);
27442         return nativeResponseValue;
27443 }
27444         // void NodeFeatures_set_static_remote_key_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27445 /* @internal */
27446 export function NodeFeatures_set_static_remote_key_optional(this_arg: number): void {
27447         if(!isWasmInitialized) {
27448                 throw new Error("initializeWasm() must be awaited first!");
27449         }
27450         const nativeResponseValue = wasm.TS_NodeFeatures_set_static_remote_key_optional(this_arg);
27451         // debug statements here
27452 }
27453         // void NodeFeatures_set_static_remote_key_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27454 /* @internal */
27455 export function NodeFeatures_set_static_remote_key_required(this_arg: number): void {
27456         if(!isWasmInitialized) {
27457                 throw new Error("initializeWasm() must be awaited first!");
27458         }
27459         const nativeResponseValue = wasm.TS_NodeFeatures_set_static_remote_key_required(this_arg);
27460         // debug statements here
27461 }
27462         // MUST_USE_RES bool NodeFeatures_supports_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27463 /* @internal */
27464 export function NodeFeatures_supports_static_remote_key(this_arg: number): boolean {
27465         if(!isWasmInitialized) {
27466                 throw new Error("initializeWasm() must be awaited first!");
27467         }
27468         const nativeResponseValue = wasm.TS_NodeFeatures_supports_static_remote_key(this_arg);
27469         return nativeResponseValue;
27470 }
27471         // void ChannelTypeFeatures_set_static_remote_key_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27472 /* @internal */
27473 export function ChannelTypeFeatures_set_static_remote_key_optional(this_arg: number): void {
27474         if(!isWasmInitialized) {
27475                 throw new Error("initializeWasm() must be awaited first!");
27476         }
27477         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_static_remote_key_optional(this_arg);
27478         // debug statements here
27479 }
27480         // void ChannelTypeFeatures_set_static_remote_key_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27481 /* @internal */
27482 export function ChannelTypeFeatures_set_static_remote_key_required(this_arg: number): void {
27483         if(!isWasmInitialized) {
27484                 throw new Error("initializeWasm() must be awaited first!");
27485         }
27486         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_static_remote_key_required(this_arg);
27487         // debug statements here
27488 }
27489         // MUST_USE_RES bool ChannelTypeFeatures_supports_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27490 /* @internal */
27491 export function ChannelTypeFeatures_supports_static_remote_key(this_arg: number): boolean {
27492         if(!isWasmInitialized) {
27493                 throw new Error("initializeWasm() must be awaited first!");
27494         }
27495         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_supports_static_remote_key(this_arg);
27496         return nativeResponseValue;
27497 }
27498         // MUST_USE_RES bool InitFeatures_requires_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27499 /* @internal */
27500 export function InitFeatures_requires_static_remote_key(this_arg: number): boolean {
27501         if(!isWasmInitialized) {
27502                 throw new Error("initializeWasm() must be awaited first!");
27503         }
27504         const nativeResponseValue = wasm.TS_InitFeatures_requires_static_remote_key(this_arg);
27505         return nativeResponseValue;
27506 }
27507         // MUST_USE_RES bool NodeFeatures_requires_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27508 /* @internal */
27509 export function NodeFeatures_requires_static_remote_key(this_arg: number): boolean {
27510         if(!isWasmInitialized) {
27511                 throw new Error("initializeWasm() must be awaited first!");
27512         }
27513         const nativeResponseValue = wasm.TS_NodeFeatures_requires_static_remote_key(this_arg);
27514         return nativeResponseValue;
27515 }
27516         // MUST_USE_RES bool ChannelTypeFeatures_requires_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
27517 /* @internal */
27518 export function ChannelTypeFeatures_requires_static_remote_key(this_arg: number): boolean {
27519         if(!isWasmInitialized) {
27520                 throw new Error("initializeWasm() must be awaited first!");
27521         }
27522         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_static_remote_key(this_arg);
27523         return nativeResponseValue;
27524 }
27525         // void InitFeatures_set_payment_secret_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27526 /* @internal */
27527 export function InitFeatures_set_payment_secret_optional(this_arg: number): void {
27528         if(!isWasmInitialized) {
27529                 throw new Error("initializeWasm() must be awaited first!");
27530         }
27531         const nativeResponseValue = wasm.TS_InitFeatures_set_payment_secret_optional(this_arg);
27532         // debug statements here
27533 }
27534         // void InitFeatures_set_payment_secret_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27535 /* @internal */
27536 export function InitFeatures_set_payment_secret_required(this_arg: number): void {
27537         if(!isWasmInitialized) {
27538                 throw new Error("initializeWasm() must be awaited first!");
27539         }
27540         const nativeResponseValue = wasm.TS_InitFeatures_set_payment_secret_required(this_arg);
27541         // debug statements here
27542 }
27543         // MUST_USE_RES bool InitFeatures_supports_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27544 /* @internal */
27545 export function InitFeatures_supports_payment_secret(this_arg: number): boolean {
27546         if(!isWasmInitialized) {
27547                 throw new Error("initializeWasm() must be awaited first!");
27548         }
27549         const nativeResponseValue = wasm.TS_InitFeatures_supports_payment_secret(this_arg);
27550         return nativeResponseValue;
27551 }
27552         // void NodeFeatures_set_payment_secret_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27553 /* @internal */
27554 export function NodeFeatures_set_payment_secret_optional(this_arg: number): void {
27555         if(!isWasmInitialized) {
27556                 throw new Error("initializeWasm() must be awaited first!");
27557         }
27558         const nativeResponseValue = wasm.TS_NodeFeatures_set_payment_secret_optional(this_arg);
27559         // debug statements here
27560 }
27561         // void NodeFeatures_set_payment_secret_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27562 /* @internal */
27563 export function NodeFeatures_set_payment_secret_required(this_arg: number): void {
27564         if(!isWasmInitialized) {
27565                 throw new Error("initializeWasm() must be awaited first!");
27566         }
27567         const nativeResponseValue = wasm.TS_NodeFeatures_set_payment_secret_required(this_arg);
27568         // debug statements here
27569 }
27570         // MUST_USE_RES bool NodeFeatures_supports_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27571 /* @internal */
27572 export function NodeFeatures_supports_payment_secret(this_arg: number): boolean {
27573         if(!isWasmInitialized) {
27574                 throw new Error("initializeWasm() must be awaited first!");
27575         }
27576         const nativeResponseValue = wasm.TS_NodeFeatures_supports_payment_secret(this_arg);
27577         return nativeResponseValue;
27578 }
27579         // void InvoiceFeatures_set_payment_secret_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27580 /* @internal */
27581 export function InvoiceFeatures_set_payment_secret_optional(this_arg: number): void {
27582         if(!isWasmInitialized) {
27583                 throw new Error("initializeWasm() must be awaited first!");
27584         }
27585         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_payment_secret_optional(this_arg);
27586         // debug statements here
27587 }
27588         // void InvoiceFeatures_set_payment_secret_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27589 /* @internal */
27590 export function InvoiceFeatures_set_payment_secret_required(this_arg: number): void {
27591         if(!isWasmInitialized) {
27592                 throw new Error("initializeWasm() must be awaited first!");
27593         }
27594         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_payment_secret_required(this_arg);
27595         // debug statements here
27596 }
27597         // MUST_USE_RES bool InvoiceFeatures_supports_payment_secret(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27598 /* @internal */
27599 export function InvoiceFeatures_supports_payment_secret(this_arg: number): boolean {
27600         if(!isWasmInitialized) {
27601                 throw new Error("initializeWasm() must be awaited first!");
27602         }
27603         const nativeResponseValue = wasm.TS_InvoiceFeatures_supports_payment_secret(this_arg);
27604         return nativeResponseValue;
27605 }
27606         // MUST_USE_RES bool InitFeatures_requires_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27607 /* @internal */
27608 export function InitFeatures_requires_payment_secret(this_arg: number): boolean {
27609         if(!isWasmInitialized) {
27610                 throw new Error("initializeWasm() must be awaited first!");
27611         }
27612         const nativeResponseValue = wasm.TS_InitFeatures_requires_payment_secret(this_arg);
27613         return nativeResponseValue;
27614 }
27615         // MUST_USE_RES bool NodeFeatures_requires_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27616 /* @internal */
27617 export function NodeFeatures_requires_payment_secret(this_arg: number): boolean {
27618         if(!isWasmInitialized) {
27619                 throw new Error("initializeWasm() must be awaited first!");
27620         }
27621         const nativeResponseValue = wasm.TS_NodeFeatures_requires_payment_secret(this_arg);
27622         return nativeResponseValue;
27623 }
27624         // MUST_USE_RES bool InvoiceFeatures_requires_payment_secret(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27625 /* @internal */
27626 export function InvoiceFeatures_requires_payment_secret(this_arg: number): boolean {
27627         if(!isWasmInitialized) {
27628                 throw new Error("initializeWasm() must be awaited first!");
27629         }
27630         const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_payment_secret(this_arg);
27631         return nativeResponseValue;
27632 }
27633         // void InitFeatures_set_basic_mpp_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27634 /* @internal */
27635 export function InitFeatures_set_basic_mpp_optional(this_arg: number): void {
27636         if(!isWasmInitialized) {
27637                 throw new Error("initializeWasm() must be awaited first!");
27638         }
27639         const nativeResponseValue = wasm.TS_InitFeatures_set_basic_mpp_optional(this_arg);
27640         // debug statements here
27641 }
27642         // void InitFeatures_set_basic_mpp_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27643 /* @internal */
27644 export function InitFeatures_set_basic_mpp_required(this_arg: number): void {
27645         if(!isWasmInitialized) {
27646                 throw new Error("initializeWasm() must be awaited first!");
27647         }
27648         const nativeResponseValue = wasm.TS_InitFeatures_set_basic_mpp_required(this_arg);
27649         // debug statements here
27650 }
27651         // MUST_USE_RES bool InitFeatures_supports_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27652 /* @internal */
27653 export function InitFeatures_supports_basic_mpp(this_arg: number): boolean {
27654         if(!isWasmInitialized) {
27655                 throw new Error("initializeWasm() must be awaited first!");
27656         }
27657         const nativeResponseValue = wasm.TS_InitFeatures_supports_basic_mpp(this_arg);
27658         return nativeResponseValue;
27659 }
27660         // void NodeFeatures_set_basic_mpp_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27661 /* @internal */
27662 export function NodeFeatures_set_basic_mpp_optional(this_arg: number): void {
27663         if(!isWasmInitialized) {
27664                 throw new Error("initializeWasm() must be awaited first!");
27665         }
27666         const nativeResponseValue = wasm.TS_NodeFeatures_set_basic_mpp_optional(this_arg);
27667         // debug statements here
27668 }
27669         // void NodeFeatures_set_basic_mpp_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27670 /* @internal */
27671 export function NodeFeatures_set_basic_mpp_required(this_arg: number): void {
27672         if(!isWasmInitialized) {
27673                 throw new Error("initializeWasm() must be awaited first!");
27674         }
27675         const nativeResponseValue = wasm.TS_NodeFeatures_set_basic_mpp_required(this_arg);
27676         // debug statements here
27677 }
27678         // MUST_USE_RES bool NodeFeatures_supports_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27679 /* @internal */
27680 export function NodeFeatures_supports_basic_mpp(this_arg: number): boolean {
27681         if(!isWasmInitialized) {
27682                 throw new Error("initializeWasm() must be awaited first!");
27683         }
27684         const nativeResponseValue = wasm.TS_NodeFeatures_supports_basic_mpp(this_arg);
27685         return nativeResponseValue;
27686 }
27687         // void InvoiceFeatures_set_basic_mpp_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27688 /* @internal */
27689 export function InvoiceFeatures_set_basic_mpp_optional(this_arg: number): void {
27690         if(!isWasmInitialized) {
27691                 throw new Error("initializeWasm() must be awaited first!");
27692         }
27693         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_basic_mpp_optional(this_arg);
27694         // debug statements here
27695 }
27696         // void InvoiceFeatures_set_basic_mpp_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27697 /* @internal */
27698 export function InvoiceFeatures_set_basic_mpp_required(this_arg: number): void {
27699         if(!isWasmInitialized) {
27700                 throw new Error("initializeWasm() must be awaited first!");
27701         }
27702         const nativeResponseValue = wasm.TS_InvoiceFeatures_set_basic_mpp_required(this_arg);
27703         // debug statements here
27704 }
27705         // MUST_USE_RES bool InvoiceFeatures_supports_basic_mpp(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27706 /* @internal */
27707 export function InvoiceFeatures_supports_basic_mpp(this_arg: number): boolean {
27708         if(!isWasmInitialized) {
27709                 throw new Error("initializeWasm() must be awaited first!");
27710         }
27711         const nativeResponseValue = wasm.TS_InvoiceFeatures_supports_basic_mpp(this_arg);
27712         return nativeResponseValue;
27713 }
27714         // MUST_USE_RES bool InitFeatures_requires_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27715 /* @internal */
27716 export function InitFeatures_requires_basic_mpp(this_arg: number): boolean {
27717         if(!isWasmInitialized) {
27718                 throw new Error("initializeWasm() must be awaited first!");
27719         }
27720         const nativeResponseValue = wasm.TS_InitFeatures_requires_basic_mpp(this_arg);
27721         return nativeResponseValue;
27722 }
27723         // MUST_USE_RES bool NodeFeatures_requires_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27724 /* @internal */
27725 export function NodeFeatures_requires_basic_mpp(this_arg: number): boolean {
27726         if(!isWasmInitialized) {
27727                 throw new Error("initializeWasm() must be awaited first!");
27728         }
27729         const nativeResponseValue = wasm.TS_NodeFeatures_requires_basic_mpp(this_arg);
27730         return nativeResponseValue;
27731 }
27732         // MUST_USE_RES bool InvoiceFeatures_requires_basic_mpp(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
27733 /* @internal */
27734 export function InvoiceFeatures_requires_basic_mpp(this_arg: number): boolean {
27735         if(!isWasmInitialized) {
27736                 throw new Error("initializeWasm() must be awaited first!");
27737         }
27738         const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_basic_mpp(this_arg);
27739         return nativeResponseValue;
27740 }
27741         // void InitFeatures_set_wumbo_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27742 /* @internal */
27743 export function InitFeatures_set_wumbo_optional(this_arg: number): void {
27744         if(!isWasmInitialized) {
27745                 throw new Error("initializeWasm() must be awaited first!");
27746         }
27747         const nativeResponseValue = wasm.TS_InitFeatures_set_wumbo_optional(this_arg);
27748         // debug statements here
27749 }
27750         // void InitFeatures_set_wumbo_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27751 /* @internal */
27752 export function InitFeatures_set_wumbo_required(this_arg: number): void {
27753         if(!isWasmInitialized) {
27754                 throw new Error("initializeWasm() must be awaited first!");
27755         }
27756         const nativeResponseValue = wasm.TS_InitFeatures_set_wumbo_required(this_arg);
27757         // debug statements here
27758 }
27759         // MUST_USE_RES bool InitFeatures_supports_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27760 /* @internal */
27761 export function InitFeatures_supports_wumbo(this_arg: number): boolean {
27762         if(!isWasmInitialized) {
27763                 throw new Error("initializeWasm() must be awaited first!");
27764         }
27765         const nativeResponseValue = wasm.TS_InitFeatures_supports_wumbo(this_arg);
27766         return nativeResponseValue;
27767 }
27768         // void NodeFeatures_set_wumbo_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27769 /* @internal */
27770 export function NodeFeatures_set_wumbo_optional(this_arg: number): void {
27771         if(!isWasmInitialized) {
27772                 throw new Error("initializeWasm() must be awaited first!");
27773         }
27774         const nativeResponseValue = wasm.TS_NodeFeatures_set_wumbo_optional(this_arg);
27775         // debug statements here
27776 }
27777         // void NodeFeatures_set_wumbo_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27778 /* @internal */
27779 export function NodeFeatures_set_wumbo_required(this_arg: number): void {
27780         if(!isWasmInitialized) {
27781                 throw new Error("initializeWasm() must be awaited first!");
27782         }
27783         const nativeResponseValue = wasm.TS_NodeFeatures_set_wumbo_required(this_arg);
27784         // debug statements here
27785 }
27786         // MUST_USE_RES bool NodeFeatures_supports_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27787 /* @internal */
27788 export function NodeFeatures_supports_wumbo(this_arg: number): boolean {
27789         if(!isWasmInitialized) {
27790                 throw new Error("initializeWasm() must be awaited first!");
27791         }
27792         const nativeResponseValue = wasm.TS_NodeFeatures_supports_wumbo(this_arg);
27793         return nativeResponseValue;
27794 }
27795         // MUST_USE_RES bool InitFeatures_requires_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27796 /* @internal */
27797 export function InitFeatures_requires_wumbo(this_arg: number): boolean {
27798         if(!isWasmInitialized) {
27799                 throw new Error("initializeWasm() must be awaited first!");
27800         }
27801         const nativeResponseValue = wasm.TS_InitFeatures_requires_wumbo(this_arg);
27802         return nativeResponseValue;
27803 }
27804         // MUST_USE_RES bool NodeFeatures_requires_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27805 /* @internal */
27806 export function NodeFeatures_requires_wumbo(this_arg: number): boolean {
27807         if(!isWasmInitialized) {
27808                 throw new Error("initializeWasm() must be awaited first!");
27809         }
27810         const nativeResponseValue = wasm.TS_NodeFeatures_requires_wumbo(this_arg);
27811         return nativeResponseValue;
27812 }
27813         // void InitFeatures_set_shutdown_any_segwit_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27814 /* @internal */
27815 export function InitFeatures_set_shutdown_any_segwit_optional(this_arg: number): void {
27816         if(!isWasmInitialized) {
27817                 throw new Error("initializeWasm() must be awaited first!");
27818         }
27819         const nativeResponseValue = wasm.TS_InitFeatures_set_shutdown_any_segwit_optional(this_arg);
27820         // debug statements here
27821 }
27822         // void InitFeatures_set_shutdown_any_segwit_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27823 /* @internal */
27824 export function InitFeatures_set_shutdown_any_segwit_required(this_arg: number): void {
27825         if(!isWasmInitialized) {
27826                 throw new Error("initializeWasm() must be awaited first!");
27827         }
27828         const nativeResponseValue = wasm.TS_InitFeatures_set_shutdown_any_segwit_required(this_arg);
27829         // debug statements here
27830 }
27831         // MUST_USE_RES bool InitFeatures_supports_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27832 /* @internal */
27833 export function InitFeatures_supports_shutdown_anysegwit(this_arg: number): boolean {
27834         if(!isWasmInitialized) {
27835                 throw new Error("initializeWasm() must be awaited first!");
27836         }
27837         const nativeResponseValue = wasm.TS_InitFeatures_supports_shutdown_anysegwit(this_arg);
27838         return nativeResponseValue;
27839 }
27840         // void NodeFeatures_set_shutdown_any_segwit_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27841 /* @internal */
27842 export function NodeFeatures_set_shutdown_any_segwit_optional(this_arg: number): void {
27843         if(!isWasmInitialized) {
27844                 throw new Error("initializeWasm() must be awaited first!");
27845         }
27846         const nativeResponseValue = wasm.TS_NodeFeatures_set_shutdown_any_segwit_optional(this_arg);
27847         // debug statements here
27848 }
27849         // void NodeFeatures_set_shutdown_any_segwit_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27850 /* @internal */
27851 export function NodeFeatures_set_shutdown_any_segwit_required(this_arg: number): void {
27852         if(!isWasmInitialized) {
27853                 throw new Error("initializeWasm() must be awaited first!");
27854         }
27855         const nativeResponseValue = wasm.TS_NodeFeatures_set_shutdown_any_segwit_required(this_arg);
27856         // debug statements here
27857 }
27858         // MUST_USE_RES bool NodeFeatures_supports_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27859 /* @internal */
27860 export function NodeFeatures_supports_shutdown_anysegwit(this_arg: number): boolean {
27861         if(!isWasmInitialized) {
27862                 throw new Error("initializeWasm() must be awaited first!");
27863         }
27864         const nativeResponseValue = wasm.TS_NodeFeatures_supports_shutdown_anysegwit(this_arg);
27865         return nativeResponseValue;
27866 }
27867         // MUST_USE_RES bool InitFeatures_requires_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27868 /* @internal */
27869 export function InitFeatures_requires_shutdown_anysegwit(this_arg: number): boolean {
27870         if(!isWasmInitialized) {
27871                 throw new Error("initializeWasm() must be awaited first!");
27872         }
27873         const nativeResponseValue = wasm.TS_InitFeatures_requires_shutdown_anysegwit(this_arg);
27874         return nativeResponseValue;
27875 }
27876         // MUST_USE_RES bool NodeFeatures_requires_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27877 /* @internal */
27878 export function NodeFeatures_requires_shutdown_anysegwit(this_arg: number): boolean {
27879         if(!isWasmInitialized) {
27880                 throw new Error("initializeWasm() must be awaited first!");
27881         }
27882         const nativeResponseValue = wasm.TS_NodeFeatures_requires_shutdown_anysegwit(this_arg);
27883         return nativeResponseValue;
27884 }
27885         // void InitFeatures_set_channel_type_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27886 /* @internal */
27887 export function InitFeatures_set_channel_type_optional(this_arg: number): void {
27888         if(!isWasmInitialized) {
27889                 throw new Error("initializeWasm() must be awaited first!");
27890         }
27891         const nativeResponseValue = wasm.TS_InitFeatures_set_channel_type_optional(this_arg);
27892         // debug statements here
27893 }
27894         // void InitFeatures_set_channel_type_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27895 /* @internal */
27896 export function InitFeatures_set_channel_type_required(this_arg: number): void {
27897         if(!isWasmInitialized) {
27898                 throw new Error("initializeWasm() must be awaited first!");
27899         }
27900         const nativeResponseValue = wasm.TS_InitFeatures_set_channel_type_required(this_arg);
27901         // debug statements here
27902 }
27903         // MUST_USE_RES bool InitFeatures_supports_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27904 /* @internal */
27905 export function InitFeatures_supports_channel_type(this_arg: number): boolean {
27906         if(!isWasmInitialized) {
27907                 throw new Error("initializeWasm() must be awaited first!");
27908         }
27909         const nativeResponseValue = wasm.TS_InitFeatures_supports_channel_type(this_arg);
27910         return nativeResponseValue;
27911 }
27912         // void NodeFeatures_set_channel_type_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27913 /* @internal */
27914 export function NodeFeatures_set_channel_type_optional(this_arg: number): void {
27915         if(!isWasmInitialized) {
27916                 throw new Error("initializeWasm() must be awaited first!");
27917         }
27918         const nativeResponseValue = wasm.TS_NodeFeatures_set_channel_type_optional(this_arg);
27919         // debug statements here
27920 }
27921         // void NodeFeatures_set_channel_type_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27922 /* @internal */
27923 export function NodeFeatures_set_channel_type_required(this_arg: number): void {
27924         if(!isWasmInitialized) {
27925                 throw new Error("initializeWasm() must be awaited first!");
27926         }
27927         const nativeResponseValue = wasm.TS_NodeFeatures_set_channel_type_required(this_arg);
27928         // debug statements here
27929 }
27930         // MUST_USE_RES bool NodeFeatures_supports_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27931 /* @internal */
27932 export function NodeFeatures_supports_channel_type(this_arg: number): boolean {
27933         if(!isWasmInitialized) {
27934                 throw new Error("initializeWasm() must be awaited first!");
27935         }
27936         const nativeResponseValue = wasm.TS_NodeFeatures_supports_channel_type(this_arg);
27937         return nativeResponseValue;
27938 }
27939         // MUST_USE_RES bool InitFeatures_requires_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27940 /* @internal */
27941 export function InitFeatures_requires_channel_type(this_arg: number): boolean {
27942         if(!isWasmInitialized) {
27943                 throw new Error("initializeWasm() must be awaited first!");
27944         }
27945         const nativeResponseValue = wasm.TS_InitFeatures_requires_channel_type(this_arg);
27946         return nativeResponseValue;
27947 }
27948         // MUST_USE_RES bool NodeFeatures_requires_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
27949 /* @internal */
27950 export function NodeFeatures_requires_channel_type(this_arg: number): boolean {
27951         if(!isWasmInitialized) {
27952                 throw new Error("initializeWasm() must be awaited first!");
27953         }
27954         const nativeResponseValue = wasm.TS_NodeFeatures_requires_channel_type(this_arg);
27955         return nativeResponseValue;
27956 }
27957         // void InitFeatures_set_scid_privacy_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
27958 /* @internal */
27959 export function InitFeatures_set_scid_privacy_optional(this_arg: number): void {
27960         if(!isWasmInitialized) {
27961                 throw new Error("initializeWasm() must be awaited first!");
27962         }
27963         const nativeResponseValue = wasm.TS_InitFeatures_set_scid_privacy_optional(this_arg);
27964         // debug statements here
27965 }
27966         // void InitFeatures_set_scid_privacy_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
27967 /* @internal */
27968 export function InitFeatures_set_scid_privacy_required(this_arg: number): void {
27969         if(!isWasmInitialized) {
27970                 throw new Error("initializeWasm() must be awaited first!");
27971         }
27972         const nativeResponseValue = wasm.TS_InitFeatures_set_scid_privacy_required(this_arg);
27973         // debug statements here
27974 }
27975         // MUST_USE_RES bool InitFeatures_supports_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
27976 /* @internal */
27977 export function InitFeatures_supports_scid_privacy(this_arg: number): boolean {
27978         if(!isWasmInitialized) {
27979                 throw new Error("initializeWasm() must be awaited first!");
27980         }
27981         const nativeResponseValue = wasm.TS_InitFeatures_supports_scid_privacy(this_arg);
27982         return nativeResponseValue;
27983 }
27984         // void NodeFeatures_set_scid_privacy_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27985 /* @internal */
27986 export function NodeFeatures_set_scid_privacy_optional(this_arg: number): void {
27987         if(!isWasmInitialized) {
27988                 throw new Error("initializeWasm() must be awaited first!");
27989         }
27990         const nativeResponseValue = wasm.TS_NodeFeatures_set_scid_privacy_optional(this_arg);
27991         // debug statements here
27992 }
27993         // void NodeFeatures_set_scid_privacy_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
27994 /* @internal */
27995 export function NodeFeatures_set_scid_privacy_required(this_arg: number): void {
27996         if(!isWasmInitialized) {
27997                 throw new Error("initializeWasm() must be awaited first!");
27998         }
27999         const nativeResponseValue = wasm.TS_NodeFeatures_set_scid_privacy_required(this_arg);
28000         // debug statements here
28001 }
28002         // MUST_USE_RES bool NodeFeatures_supports_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
28003 /* @internal */
28004 export function NodeFeatures_supports_scid_privacy(this_arg: number): boolean {
28005         if(!isWasmInitialized) {
28006                 throw new Error("initializeWasm() must be awaited first!");
28007         }
28008         const nativeResponseValue = wasm.TS_NodeFeatures_supports_scid_privacy(this_arg);
28009         return nativeResponseValue;
28010 }
28011         // void ChannelTypeFeatures_set_scid_privacy_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
28012 /* @internal */
28013 export function ChannelTypeFeatures_set_scid_privacy_optional(this_arg: number): void {
28014         if(!isWasmInitialized) {
28015                 throw new Error("initializeWasm() must be awaited first!");
28016         }
28017         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_scid_privacy_optional(this_arg);
28018         // debug statements here
28019 }
28020         // void ChannelTypeFeatures_set_scid_privacy_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
28021 /* @internal */
28022 export function ChannelTypeFeatures_set_scid_privacy_required(this_arg: number): void {
28023         if(!isWasmInitialized) {
28024                 throw new Error("initializeWasm() must be awaited first!");
28025         }
28026         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_scid_privacy_required(this_arg);
28027         // debug statements here
28028 }
28029         // MUST_USE_RES bool ChannelTypeFeatures_supports_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
28030 /* @internal */
28031 export function ChannelTypeFeatures_supports_scid_privacy(this_arg: number): boolean {
28032         if(!isWasmInitialized) {
28033                 throw new Error("initializeWasm() must be awaited first!");
28034         }
28035         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_supports_scid_privacy(this_arg);
28036         return nativeResponseValue;
28037 }
28038         // MUST_USE_RES bool InitFeatures_requires_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
28039 /* @internal */
28040 export function InitFeatures_requires_scid_privacy(this_arg: number): boolean {
28041         if(!isWasmInitialized) {
28042                 throw new Error("initializeWasm() must be awaited first!");
28043         }
28044         const nativeResponseValue = wasm.TS_InitFeatures_requires_scid_privacy(this_arg);
28045         return nativeResponseValue;
28046 }
28047         // MUST_USE_RES bool NodeFeatures_requires_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
28048 /* @internal */
28049 export function NodeFeatures_requires_scid_privacy(this_arg: number): boolean {
28050         if(!isWasmInitialized) {
28051                 throw new Error("initializeWasm() must be awaited first!");
28052         }
28053         const nativeResponseValue = wasm.TS_NodeFeatures_requires_scid_privacy(this_arg);
28054         return nativeResponseValue;
28055 }
28056         // MUST_USE_RES bool ChannelTypeFeatures_requires_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
28057 /* @internal */
28058 export function ChannelTypeFeatures_requires_scid_privacy(this_arg: number): boolean {
28059         if(!isWasmInitialized) {
28060                 throw new Error("initializeWasm() must be awaited first!");
28061         }
28062         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_scid_privacy(this_arg);
28063         return nativeResponseValue;
28064 }
28065         // void InitFeatures_set_zero_conf_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
28066 /* @internal */
28067 export function InitFeatures_set_zero_conf_optional(this_arg: number): void {
28068         if(!isWasmInitialized) {
28069                 throw new Error("initializeWasm() must be awaited first!");
28070         }
28071         const nativeResponseValue = wasm.TS_InitFeatures_set_zero_conf_optional(this_arg);
28072         // debug statements here
28073 }
28074         // void InitFeatures_set_zero_conf_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
28075 /* @internal */
28076 export function InitFeatures_set_zero_conf_required(this_arg: number): void {
28077         if(!isWasmInitialized) {
28078                 throw new Error("initializeWasm() must be awaited first!");
28079         }
28080         const nativeResponseValue = wasm.TS_InitFeatures_set_zero_conf_required(this_arg);
28081         // debug statements here
28082 }
28083         // MUST_USE_RES bool InitFeatures_supports_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
28084 /* @internal */
28085 export function InitFeatures_supports_zero_conf(this_arg: number): boolean {
28086         if(!isWasmInitialized) {
28087                 throw new Error("initializeWasm() must be awaited first!");
28088         }
28089         const nativeResponseValue = wasm.TS_InitFeatures_supports_zero_conf(this_arg);
28090         return nativeResponseValue;
28091 }
28092         // void NodeFeatures_set_zero_conf_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
28093 /* @internal */
28094 export function NodeFeatures_set_zero_conf_optional(this_arg: number): void {
28095         if(!isWasmInitialized) {
28096                 throw new Error("initializeWasm() must be awaited first!");
28097         }
28098         const nativeResponseValue = wasm.TS_NodeFeatures_set_zero_conf_optional(this_arg);
28099         // debug statements here
28100 }
28101         // void NodeFeatures_set_zero_conf_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
28102 /* @internal */
28103 export function NodeFeatures_set_zero_conf_required(this_arg: number): void {
28104         if(!isWasmInitialized) {
28105                 throw new Error("initializeWasm() must be awaited first!");
28106         }
28107         const nativeResponseValue = wasm.TS_NodeFeatures_set_zero_conf_required(this_arg);
28108         // debug statements here
28109 }
28110         // MUST_USE_RES bool NodeFeatures_supports_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
28111 /* @internal */
28112 export function NodeFeatures_supports_zero_conf(this_arg: number): boolean {
28113         if(!isWasmInitialized) {
28114                 throw new Error("initializeWasm() must be awaited first!");
28115         }
28116         const nativeResponseValue = wasm.TS_NodeFeatures_supports_zero_conf(this_arg);
28117         return nativeResponseValue;
28118 }
28119         // void ChannelTypeFeatures_set_zero_conf_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
28120 /* @internal */
28121 export function ChannelTypeFeatures_set_zero_conf_optional(this_arg: number): void {
28122         if(!isWasmInitialized) {
28123                 throw new Error("initializeWasm() must be awaited first!");
28124         }
28125         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_zero_conf_optional(this_arg);
28126         // debug statements here
28127 }
28128         // void ChannelTypeFeatures_set_zero_conf_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
28129 /* @internal */
28130 export function ChannelTypeFeatures_set_zero_conf_required(this_arg: number): void {
28131         if(!isWasmInitialized) {
28132                 throw new Error("initializeWasm() must be awaited first!");
28133         }
28134         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_zero_conf_required(this_arg);
28135         // debug statements here
28136 }
28137         // MUST_USE_RES bool ChannelTypeFeatures_supports_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
28138 /* @internal */
28139 export function ChannelTypeFeatures_supports_zero_conf(this_arg: number): boolean {
28140         if(!isWasmInitialized) {
28141                 throw new Error("initializeWasm() must be awaited first!");
28142         }
28143         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_supports_zero_conf(this_arg);
28144         return nativeResponseValue;
28145 }
28146         // MUST_USE_RES bool InitFeatures_requires_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
28147 /* @internal */
28148 export function InitFeatures_requires_zero_conf(this_arg: number): boolean {
28149         if(!isWasmInitialized) {
28150                 throw new Error("initializeWasm() must be awaited first!");
28151         }
28152         const nativeResponseValue = wasm.TS_InitFeatures_requires_zero_conf(this_arg);
28153         return nativeResponseValue;
28154 }
28155         // MUST_USE_RES bool NodeFeatures_requires_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
28156 /* @internal */
28157 export function NodeFeatures_requires_zero_conf(this_arg: number): boolean {
28158         if(!isWasmInitialized) {
28159                 throw new Error("initializeWasm() must be awaited first!");
28160         }
28161         const nativeResponseValue = wasm.TS_NodeFeatures_requires_zero_conf(this_arg);
28162         return nativeResponseValue;
28163 }
28164         // MUST_USE_RES bool ChannelTypeFeatures_requires_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
28165 /* @internal */
28166 export function ChannelTypeFeatures_requires_zero_conf(this_arg: number): boolean {
28167         if(!isWasmInitialized) {
28168                 throw new Error("initializeWasm() must be awaited first!");
28169         }
28170         const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_zero_conf(this_arg);
28171         return nativeResponseValue;
28172 }
28173         // void NodeFeatures_set_keysend_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
28174 /* @internal */
28175 export function NodeFeatures_set_keysend_optional(this_arg: number): void {
28176         if(!isWasmInitialized) {
28177                 throw new Error("initializeWasm() must be awaited first!");
28178         }
28179         const nativeResponseValue = wasm.TS_NodeFeatures_set_keysend_optional(this_arg);
28180         // debug statements here
28181 }
28182         // void NodeFeatures_set_keysend_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
28183 /* @internal */
28184 export function NodeFeatures_set_keysend_required(this_arg: number): void {
28185         if(!isWasmInitialized) {
28186                 throw new Error("initializeWasm() must be awaited first!");
28187         }
28188         const nativeResponseValue = wasm.TS_NodeFeatures_set_keysend_required(this_arg);
28189         // debug statements here
28190 }
28191         // MUST_USE_RES bool NodeFeatures_supports_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
28192 /* @internal */
28193 export function NodeFeatures_supports_keysend(this_arg: number): boolean {
28194         if(!isWasmInitialized) {
28195                 throw new Error("initializeWasm() must be awaited first!");
28196         }
28197         const nativeResponseValue = wasm.TS_NodeFeatures_supports_keysend(this_arg);
28198         return nativeResponseValue;
28199 }
28200         // MUST_USE_RES bool NodeFeatures_requires_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
28201 /* @internal */
28202 export function NodeFeatures_requires_keysend(this_arg: number): boolean {
28203         if(!isWasmInitialized) {
28204                 throw new Error("initializeWasm() must be awaited first!");
28205         }
28206         const nativeResponseValue = wasm.TS_NodeFeatures_requires_keysend(this_arg);
28207         return nativeResponseValue;
28208 }
28209         // void ShutdownScript_free(struct LDKShutdownScript this_obj);
28210 /* @internal */
28211 export function ShutdownScript_free(this_obj: number): void {
28212         if(!isWasmInitialized) {
28213                 throw new Error("initializeWasm() must be awaited first!");
28214         }
28215         const nativeResponseValue = wasm.TS_ShutdownScript_free(this_obj);
28216         // debug statements here
28217 }
28218         // uintptr_t ShutdownScript_clone_ptr(LDKShutdownScript *NONNULL_PTR arg);
28219 /* @internal */
28220 export function ShutdownScript_clone_ptr(arg: number): number {
28221         if(!isWasmInitialized) {
28222                 throw new Error("initializeWasm() must be awaited first!");
28223         }
28224         const nativeResponseValue = wasm.TS_ShutdownScript_clone_ptr(arg);
28225         return nativeResponseValue;
28226 }
28227         // struct LDKShutdownScript ShutdownScript_clone(const struct LDKShutdownScript *NONNULL_PTR orig);
28228 /* @internal */
28229 export function ShutdownScript_clone(orig: number): number {
28230         if(!isWasmInitialized) {
28231                 throw new Error("initializeWasm() must be awaited first!");
28232         }
28233         const nativeResponseValue = wasm.TS_ShutdownScript_clone(orig);
28234         return nativeResponseValue;
28235 }
28236         // void InvalidShutdownScript_free(struct LDKInvalidShutdownScript this_obj);
28237 /* @internal */
28238 export function InvalidShutdownScript_free(this_obj: number): void {
28239         if(!isWasmInitialized) {
28240                 throw new Error("initializeWasm() must be awaited first!");
28241         }
28242         const nativeResponseValue = wasm.TS_InvalidShutdownScript_free(this_obj);
28243         // debug statements here
28244 }
28245         // struct LDKu8slice InvalidShutdownScript_get_script(const struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr);
28246 /* @internal */
28247 export function InvalidShutdownScript_get_script(this_ptr: number): number {
28248         if(!isWasmInitialized) {
28249                 throw new Error("initializeWasm() must be awaited first!");
28250         }
28251         const nativeResponseValue = wasm.TS_InvalidShutdownScript_get_script(this_ptr);
28252         return nativeResponseValue;
28253 }
28254         // void InvalidShutdownScript_set_script(struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
28255 /* @internal */
28256 export function InvalidShutdownScript_set_script(this_ptr: number, val: number): void {
28257         if(!isWasmInitialized) {
28258                 throw new Error("initializeWasm() must be awaited first!");
28259         }
28260         const nativeResponseValue = wasm.TS_InvalidShutdownScript_set_script(this_ptr, val);
28261         // debug statements here
28262 }
28263         // MUST_USE_RES struct LDKInvalidShutdownScript InvalidShutdownScript_new(struct LDKCVec_u8Z script_arg);
28264 /* @internal */
28265 export function InvalidShutdownScript_new(script_arg: number): number {
28266         if(!isWasmInitialized) {
28267                 throw new Error("initializeWasm() must be awaited first!");
28268         }
28269         const nativeResponseValue = wasm.TS_InvalidShutdownScript_new(script_arg);
28270         return nativeResponseValue;
28271 }
28272         // uintptr_t InvalidShutdownScript_clone_ptr(LDKInvalidShutdownScript *NONNULL_PTR arg);
28273 /* @internal */
28274 export function InvalidShutdownScript_clone_ptr(arg: number): number {
28275         if(!isWasmInitialized) {
28276                 throw new Error("initializeWasm() must be awaited first!");
28277         }
28278         const nativeResponseValue = wasm.TS_InvalidShutdownScript_clone_ptr(arg);
28279         return nativeResponseValue;
28280 }
28281         // struct LDKInvalidShutdownScript InvalidShutdownScript_clone(const struct LDKInvalidShutdownScript *NONNULL_PTR orig);
28282 /* @internal */
28283 export function InvalidShutdownScript_clone(orig: number): number {
28284         if(!isWasmInitialized) {
28285                 throw new Error("initializeWasm() must be awaited first!");
28286         }
28287         const nativeResponseValue = wasm.TS_InvalidShutdownScript_clone(orig);
28288         return nativeResponseValue;
28289 }
28290         // struct LDKCVec_u8Z ShutdownScript_write(const struct LDKShutdownScript *NONNULL_PTR obj);
28291 /* @internal */
28292 export function ShutdownScript_write(obj: number): number {
28293         if(!isWasmInitialized) {
28294                 throw new Error("initializeWasm() must be awaited first!");
28295         }
28296         const nativeResponseValue = wasm.TS_ShutdownScript_write(obj);
28297         return nativeResponseValue;
28298 }
28299         // struct LDKCResult_ShutdownScriptDecodeErrorZ ShutdownScript_read(struct LDKu8slice ser);
28300 /* @internal */
28301 export function ShutdownScript_read(ser: number): number {
28302         if(!isWasmInitialized) {
28303                 throw new Error("initializeWasm() must be awaited first!");
28304         }
28305         const nativeResponseValue = wasm.TS_ShutdownScript_read(ser);
28306         return nativeResponseValue;
28307 }
28308         // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wpkh(const uint8_t (*pubkey_hash)[20]);
28309 /* @internal */
28310 export function ShutdownScript_new_p2wpkh(pubkey_hash: number): number {
28311         if(!isWasmInitialized) {
28312                 throw new Error("initializeWasm() must be awaited first!");
28313         }
28314         const nativeResponseValue = wasm.TS_ShutdownScript_new_p2wpkh(pubkey_hash);
28315         return nativeResponseValue;
28316 }
28317         // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wsh(const uint8_t (*script_hash)[32]);
28318 /* @internal */
28319 export function ShutdownScript_new_p2wsh(script_hash: number): number {
28320         if(!isWasmInitialized) {
28321                 throw new Error("initializeWasm() must be awaited first!");
28322         }
28323         const nativeResponseValue = wasm.TS_ShutdownScript_new_p2wsh(script_hash);
28324         return nativeResponseValue;
28325 }
28326         // MUST_USE_RES struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ ShutdownScript_new_witness_program(struct LDKWitnessVersion version, struct LDKu8slice program);
28327 /* @internal */
28328 export function ShutdownScript_new_witness_program(version: number, program: number): number {
28329         if(!isWasmInitialized) {
28330                 throw new Error("initializeWasm() must be awaited first!");
28331         }
28332         const nativeResponseValue = wasm.TS_ShutdownScript_new_witness_program(version, program);
28333         return nativeResponseValue;
28334 }
28335         // MUST_USE_RES struct LDKCVec_u8Z ShutdownScript_into_inner(struct LDKShutdownScript this_arg);
28336 /* @internal */
28337 export function ShutdownScript_into_inner(this_arg: number): number {
28338         if(!isWasmInitialized) {
28339                 throw new Error("initializeWasm() must be awaited first!");
28340         }
28341         const nativeResponseValue = wasm.TS_ShutdownScript_into_inner(this_arg);
28342         return nativeResponseValue;
28343 }
28344         // MUST_USE_RES struct LDKPublicKey ShutdownScript_as_legacy_pubkey(const struct LDKShutdownScript *NONNULL_PTR this_arg);
28345 /* @internal */
28346 export function ShutdownScript_as_legacy_pubkey(this_arg: number): number {
28347         if(!isWasmInitialized) {
28348                 throw new Error("initializeWasm() must be awaited first!");
28349         }
28350         const nativeResponseValue = wasm.TS_ShutdownScript_as_legacy_pubkey(this_arg);
28351         return nativeResponseValue;
28352 }
28353         // MUST_USE_RES bool ShutdownScript_is_compatible(const struct LDKShutdownScript *NONNULL_PTR this_arg, const struct LDKInitFeatures *NONNULL_PTR features);
28354 /* @internal */
28355 export function ShutdownScript_is_compatible(this_arg: number, features: number): boolean {
28356         if(!isWasmInitialized) {
28357                 throw new Error("initializeWasm() must be awaited first!");
28358         }
28359         const nativeResponseValue = wasm.TS_ShutdownScript_is_compatible(this_arg, features);
28360         return nativeResponseValue;
28361 }
28362         // void CustomMessageReader_free(struct LDKCustomMessageReader this_ptr);
28363 /* @internal */
28364 export function CustomMessageReader_free(this_ptr: number): void {
28365         if(!isWasmInitialized) {
28366                 throw new Error("initializeWasm() must be awaited first!");
28367         }
28368         const nativeResponseValue = wasm.TS_CustomMessageReader_free(this_ptr);
28369         // debug statements here
28370 }
28371         // uintptr_t Type_clone_ptr(LDKType *NONNULL_PTR arg);
28372 /* @internal */
28373 export function Type_clone_ptr(arg: number): number {
28374         if(!isWasmInitialized) {
28375                 throw new Error("initializeWasm() must be awaited first!");
28376         }
28377         const nativeResponseValue = wasm.TS_Type_clone_ptr(arg);
28378         return nativeResponseValue;
28379 }
28380         // struct LDKType Type_clone(const struct LDKType *NONNULL_PTR orig);
28381 /* @internal */
28382 export function Type_clone(orig: number): number {
28383         if(!isWasmInitialized) {
28384                 throw new Error("initializeWasm() must be awaited first!");
28385         }
28386         const nativeResponseValue = wasm.TS_Type_clone(orig);
28387         return nativeResponseValue;
28388 }
28389         // void Type_free(struct LDKType this_ptr);
28390 /* @internal */
28391 export function Type_free(this_ptr: number): void {
28392         if(!isWasmInitialized) {
28393                 throw new Error("initializeWasm() must be awaited first!");
28394         }
28395         const nativeResponseValue = wasm.TS_Type_free(this_ptr);
28396         // debug statements here
28397 }
28398         // void NodeId_free(struct LDKNodeId this_obj);
28399 /* @internal */
28400 export function NodeId_free(this_obj: number): void {
28401         if(!isWasmInitialized) {
28402                 throw new Error("initializeWasm() must be awaited first!");
28403         }
28404         const nativeResponseValue = wasm.TS_NodeId_free(this_obj);
28405         // debug statements here
28406 }
28407         // uintptr_t NodeId_clone_ptr(LDKNodeId *NONNULL_PTR arg);
28408 /* @internal */
28409 export function NodeId_clone_ptr(arg: number): number {
28410         if(!isWasmInitialized) {
28411                 throw new Error("initializeWasm() must be awaited first!");
28412         }
28413         const nativeResponseValue = wasm.TS_NodeId_clone_ptr(arg);
28414         return nativeResponseValue;
28415 }
28416         // struct LDKNodeId NodeId_clone(const struct LDKNodeId *NONNULL_PTR orig);
28417 /* @internal */
28418 export function NodeId_clone(orig: number): number {
28419         if(!isWasmInitialized) {
28420                 throw new Error("initializeWasm() must be awaited first!");
28421         }
28422         const nativeResponseValue = wasm.TS_NodeId_clone(orig);
28423         return nativeResponseValue;
28424 }
28425         // MUST_USE_RES struct LDKNodeId NodeId_from_pubkey(struct LDKPublicKey pubkey);
28426 /* @internal */
28427 export function NodeId_from_pubkey(pubkey: number): number {
28428         if(!isWasmInitialized) {
28429                 throw new Error("initializeWasm() must be awaited first!");
28430         }
28431         const nativeResponseValue = wasm.TS_NodeId_from_pubkey(pubkey);
28432         return nativeResponseValue;
28433 }
28434         // MUST_USE_RES struct LDKu8slice NodeId_as_slice(const struct LDKNodeId *NONNULL_PTR this_arg);
28435 /* @internal */
28436 export function NodeId_as_slice(this_arg: number): number {
28437         if(!isWasmInitialized) {
28438                 throw new Error("initializeWasm() must be awaited first!");
28439         }
28440         const nativeResponseValue = wasm.TS_NodeId_as_slice(this_arg);
28441         return nativeResponseValue;
28442 }
28443         // uint64_t NodeId_hash(const struct LDKNodeId *NONNULL_PTR o);
28444 /* @internal */
28445 export function NodeId_hash(o: number): bigint {
28446         if(!isWasmInitialized) {
28447                 throw new Error("initializeWasm() must be awaited first!");
28448         }
28449         const nativeResponseValue = wasm.TS_NodeId_hash(o);
28450         return nativeResponseValue;
28451 }
28452         // struct LDKCVec_u8Z NodeId_write(const struct LDKNodeId *NONNULL_PTR obj);
28453 /* @internal */
28454 export function NodeId_write(obj: number): number {
28455         if(!isWasmInitialized) {
28456                 throw new Error("initializeWasm() must be awaited first!");
28457         }
28458         const nativeResponseValue = wasm.TS_NodeId_write(obj);
28459         return nativeResponseValue;
28460 }
28461         // struct LDKCResult_NodeIdDecodeErrorZ NodeId_read(struct LDKu8slice ser);
28462 /* @internal */
28463 export function NodeId_read(ser: number): number {
28464         if(!isWasmInitialized) {
28465                 throw new Error("initializeWasm() must be awaited first!");
28466         }
28467         const nativeResponseValue = wasm.TS_NodeId_read(ser);
28468         return nativeResponseValue;
28469 }
28470         // void NetworkGraph_free(struct LDKNetworkGraph this_obj);
28471 /* @internal */
28472 export function NetworkGraph_free(this_obj: number): void {
28473         if(!isWasmInitialized) {
28474                 throw new Error("initializeWasm() must be awaited first!");
28475         }
28476         const nativeResponseValue = wasm.TS_NetworkGraph_free(this_obj);
28477         // debug statements here
28478 }
28479         // void ReadOnlyNetworkGraph_free(struct LDKReadOnlyNetworkGraph this_obj);
28480 /* @internal */
28481 export function ReadOnlyNetworkGraph_free(this_obj: number): void {
28482         if(!isWasmInitialized) {
28483                 throw new Error("initializeWasm() must be awaited first!");
28484         }
28485         const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_free(this_obj);
28486         // debug statements here
28487 }
28488         // void NetworkUpdate_free(struct LDKNetworkUpdate this_ptr);
28489 /* @internal */
28490 export function NetworkUpdate_free(this_ptr: number): void {
28491         if(!isWasmInitialized) {
28492                 throw new Error("initializeWasm() must be awaited first!");
28493         }
28494         const nativeResponseValue = wasm.TS_NetworkUpdate_free(this_ptr);
28495         // debug statements here
28496 }
28497         // uintptr_t NetworkUpdate_clone_ptr(LDKNetworkUpdate *NONNULL_PTR arg);
28498 /* @internal */
28499 export function NetworkUpdate_clone_ptr(arg: number): number {
28500         if(!isWasmInitialized) {
28501                 throw new Error("initializeWasm() must be awaited first!");
28502         }
28503         const nativeResponseValue = wasm.TS_NetworkUpdate_clone_ptr(arg);
28504         return nativeResponseValue;
28505 }
28506         // struct LDKNetworkUpdate NetworkUpdate_clone(const struct LDKNetworkUpdate *NONNULL_PTR orig);
28507 /* @internal */
28508 export function NetworkUpdate_clone(orig: number): number {
28509         if(!isWasmInitialized) {
28510                 throw new Error("initializeWasm() must be awaited first!");
28511         }
28512         const nativeResponseValue = wasm.TS_NetworkUpdate_clone(orig);
28513         return nativeResponseValue;
28514 }
28515         // struct LDKNetworkUpdate NetworkUpdate_channel_update_message(struct LDKChannelUpdate msg);
28516 /* @internal */
28517 export function NetworkUpdate_channel_update_message(msg: number): number {
28518         if(!isWasmInitialized) {
28519                 throw new Error("initializeWasm() must be awaited first!");
28520         }
28521         const nativeResponseValue = wasm.TS_NetworkUpdate_channel_update_message(msg);
28522         return nativeResponseValue;
28523 }
28524         // struct LDKNetworkUpdate NetworkUpdate_channel_failure(uint64_t short_channel_id, bool is_permanent);
28525 /* @internal */
28526 export function NetworkUpdate_channel_failure(short_channel_id: bigint, is_permanent: boolean): number {
28527         if(!isWasmInitialized) {
28528                 throw new Error("initializeWasm() must be awaited first!");
28529         }
28530         const nativeResponseValue = wasm.TS_NetworkUpdate_channel_failure(short_channel_id, is_permanent);
28531         return nativeResponseValue;
28532 }
28533         // struct LDKNetworkUpdate NetworkUpdate_node_failure(struct LDKPublicKey node_id, bool is_permanent);
28534 /* @internal */
28535 export function NetworkUpdate_node_failure(node_id: number, is_permanent: boolean): number {
28536         if(!isWasmInitialized) {
28537                 throw new Error("initializeWasm() must be awaited first!");
28538         }
28539         const nativeResponseValue = wasm.TS_NetworkUpdate_node_failure(node_id, is_permanent);
28540         return nativeResponseValue;
28541 }
28542         // struct LDKCVec_u8Z NetworkUpdate_write(const struct LDKNetworkUpdate *NONNULL_PTR obj);
28543 /* @internal */
28544 export function NetworkUpdate_write(obj: number): number {
28545         if(!isWasmInitialized) {
28546                 throw new Error("initializeWasm() must be awaited first!");
28547         }
28548         const nativeResponseValue = wasm.TS_NetworkUpdate_write(obj);
28549         return nativeResponseValue;
28550 }
28551         // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ NetworkUpdate_read(struct LDKu8slice ser);
28552 /* @internal */
28553 export function NetworkUpdate_read(ser: number): number {
28554         if(!isWasmInitialized) {
28555                 throw new Error("initializeWasm() must be awaited first!");
28556         }
28557         const nativeResponseValue = wasm.TS_NetworkUpdate_read(ser);
28558         return nativeResponseValue;
28559 }
28560         // void P2PGossipSync_free(struct LDKP2PGossipSync this_obj);
28561 /* @internal */
28562 export function P2PGossipSync_free(this_obj: number): void {
28563         if(!isWasmInitialized) {
28564                 throw new Error("initializeWasm() must be awaited first!");
28565         }
28566         const nativeResponseValue = wasm.TS_P2PGossipSync_free(this_obj);
28567         // debug statements here
28568 }
28569         // MUST_USE_RES struct LDKP2PGossipSync P2PGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCOption_AccessZ chain_access, struct LDKLogger logger);
28570 /* @internal */
28571 export function P2PGossipSync_new(network_graph: number, chain_access: number, logger: number): number {
28572         if(!isWasmInitialized) {
28573                 throw new Error("initializeWasm() must be awaited first!");
28574         }
28575         const nativeResponseValue = wasm.TS_P2PGossipSync_new(network_graph, chain_access, logger);
28576         return nativeResponseValue;
28577 }
28578         // void P2PGossipSync_add_chain_access(struct LDKP2PGossipSync *NONNULL_PTR this_arg, struct LDKCOption_AccessZ chain_access);
28579 /* @internal */
28580 export function P2PGossipSync_add_chain_access(this_arg: number, chain_access: number): void {
28581         if(!isWasmInitialized) {
28582                 throw new Error("initializeWasm() must be awaited first!");
28583         }
28584         const nativeResponseValue = wasm.TS_P2PGossipSync_add_chain_access(this_arg, chain_access);
28585         // debug statements here
28586 }
28587         // struct LDKEventHandler NetworkGraph_as_EventHandler(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
28588 /* @internal */
28589 export function NetworkGraph_as_EventHandler(this_arg: number): number {
28590         if(!isWasmInitialized) {
28591                 throw new Error("initializeWasm() must be awaited first!");
28592         }
28593         const nativeResponseValue = wasm.TS_NetworkGraph_as_EventHandler(this_arg);
28594         return nativeResponseValue;
28595 }
28596         // struct LDKRoutingMessageHandler P2PGossipSync_as_RoutingMessageHandler(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
28597 /* @internal */
28598 export function P2PGossipSync_as_RoutingMessageHandler(this_arg: number): number {
28599         if(!isWasmInitialized) {
28600                 throw new Error("initializeWasm() must be awaited first!");
28601         }
28602         const nativeResponseValue = wasm.TS_P2PGossipSync_as_RoutingMessageHandler(this_arg);
28603         return nativeResponseValue;
28604 }
28605         // struct LDKMessageSendEventsProvider P2PGossipSync_as_MessageSendEventsProvider(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
28606 /* @internal */
28607 export function P2PGossipSync_as_MessageSendEventsProvider(this_arg: number): number {
28608         if(!isWasmInitialized) {
28609                 throw new Error("initializeWasm() must be awaited first!");
28610         }
28611         const nativeResponseValue = wasm.TS_P2PGossipSync_as_MessageSendEventsProvider(this_arg);
28612         return nativeResponseValue;
28613 }
28614         // void ChannelUpdateInfo_free(struct LDKChannelUpdateInfo this_obj);
28615 /* @internal */
28616 export function ChannelUpdateInfo_free(this_obj: number): void {
28617         if(!isWasmInitialized) {
28618                 throw new Error("initializeWasm() must be awaited first!");
28619         }
28620         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_free(this_obj);
28621         // debug statements here
28622 }
28623         // uint32_t ChannelUpdateInfo_get_last_update(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28624 /* @internal */
28625 export function ChannelUpdateInfo_get_last_update(this_ptr: number): number {
28626         if(!isWasmInitialized) {
28627                 throw new Error("initializeWasm() must be awaited first!");
28628         }
28629         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_last_update(this_ptr);
28630         return nativeResponseValue;
28631 }
28632         // void ChannelUpdateInfo_set_last_update(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint32_t val);
28633 /* @internal */
28634 export function ChannelUpdateInfo_set_last_update(this_ptr: number, val: number): void {
28635         if(!isWasmInitialized) {
28636                 throw new Error("initializeWasm() must be awaited first!");
28637         }
28638         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_last_update(this_ptr, val);
28639         // debug statements here
28640 }
28641         // bool ChannelUpdateInfo_get_enabled(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28642 /* @internal */
28643 export function ChannelUpdateInfo_get_enabled(this_ptr: number): boolean {
28644         if(!isWasmInitialized) {
28645                 throw new Error("initializeWasm() must be awaited first!");
28646         }
28647         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_enabled(this_ptr);
28648         return nativeResponseValue;
28649 }
28650         // void ChannelUpdateInfo_set_enabled(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, bool val);
28651 /* @internal */
28652 export function ChannelUpdateInfo_set_enabled(this_ptr: number, val: boolean): void {
28653         if(!isWasmInitialized) {
28654                 throw new Error("initializeWasm() must be awaited first!");
28655         }
28656         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_enabled(this_ptr, val);
28657         // debug statements here
28658 }
28659         // uint16_t ChannelUpdateInfo_get_cltv_expiry_delta(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28660 /* @internal */
28661 export function ChannelUpdateInfo_get_cltv_expiry_delta(this_ptr: number): number {
28662         if(!isWasmInitialized) {
28663                 throw new Error("initializeWasm() must be awaited first!");
28664         }
28665         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_cltv_expiry_delta(this_ptr);
28666         return nativeResponseValue;
28667 }
28668         // void ChannelUpdateInfo_set_cltv_expiry_delta(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint16_t val);
28669 /* @internal */
28670 export function ChannelUpdateInfo_set_cltv_expiry_delta(this_ptr: number, val: number): void {
28671         if(!isWasmInitialized) {
28672                 throw new Error("initializeWasm() must be awaited first!");
28673         }
28674         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_cltv_expiry_delta(this_ptr, val);
28675         // debug statements here
28676 }
28677         // uint64_t ChannelUpdateInfo_get_htlc_minimum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28678 /* @internal */
28679 export function ChannelUpdateInfo_get_htlc_minimum_msat(this_ptr: number): bigint {
28680         if(!isWasmInitialized) {
28681                 throw new Error("initializeWasm() must be awaited first!");
28682         }
28683         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_htlc_minimum_msat(this_ptr);
28684         return nativeResponseValue;
28685 }
28686         // void ChannelUpdateInfo_set_htlc_minimum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
28687 /* @internal */
28688 export function ChannelUpdateInfo_set_htlc_minimum_msat(this_ptr: number, val: bigint): void {
28689         if(!isWasmInitialized) {
28690                 throw new Error("initializeWasm() must be awaited first!");
28691         }
28692         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_htlc_minimum_msat(this_ptr, val);
28693         // debug statements here
28694 }
28695         // struct LDKCOption_u64Z ChannelUpdateInfo_get_htlc_maximum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28696 /* @internal */
28697 export function ChannelUpdateInfo_get_htlc_maximum_msat(this_ptr: number): number {
28698         if(!isWasmInitialized) {
28699                 throw new Error("initializeWasm() must be awaited first!");
28700         }
28701         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_htlc_maximum_msat(this_ptr);
28702         return nativeResponseValue;
28703 }
28704         // void ChannelUpdateInfo_set_htlc_maximum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
28705 /* @internal */
28706 export function ChannelUpdateInfo_set_htlc_maximum_msat(this_ptr: number, val: number): void {
28707         if(!isWasmInitialized) {
28708                 throw new Error("initializeWasm() must be awaited first!");
28709         }
28710         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_htlc_maximum_msat(this_ptr, val);
28711         // debug statements here
28712 }
28713         // struct LDKRoutingFees ChannelUpdateInfo_get_fees(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28714 /* @internal */
28715 export function ChannelUpdateInfo_get_fees(this_ptr: number): number {
28716         if(!isWasmInitialized) {
28717                 throw new Error("initializeWasm() must be awaited first!");
28718         }
28719         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_fees(this_ptr);
28720         return nativeResponseValue;
28721 }
28722         // void ChannelUpdateInfo_set_fees(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
28723 /* @internal */
28724 export function ChannelUpdateInfo_set_fees(this_ptr: number, val: number): void {
28725         if(!isWasmInitialized) {
28726                 throw new Error("initializeWasm() must be awaited first!");
28727         }
28728         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_fees(this_ptr, val);
28729         // debug statements here
28730 }
28731         // struct LDKChannelUpdate ChannelUpdateInfo_get_last_update_message(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
28732 /* @internal */
28733 export function ChannelUpdateInfo_get_last_update_message(this_ptr: number): number {
28734         if(!isWasmInitialized) {
28735                 throw new Error("initializeWasm() must be awaited first!");
28736         }
28737         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_last_update_message(this_ptr);
28738         return nativeResponseValue;
28739 }
28740         // void ChannelUpdateInfo_set_last_update_message(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdate val);
28741 /* @internal */
28742 export function ChannelUpdateInfo_set_last_update_message(this_ptr: number, val: number): void {
28743         if(!isWasmInitialized) {
28744                 throw new Error("initializeWasm() must be awaited first!");
28745         }
28746         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_last_update_message(this_ptr, val);
28747         // debug statements here
28748 }
28749         // 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);
28750 /* @internal */
28751 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 {
28752         if(!isWasmInitialized) {
28753                 throw new Error("initializeWasm() must be awaited first!");
28754         }
28755         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);
28756         return nativeResponseValue;
28757 }
28758         // uintptr_t ChannelUpdateInfo_clone_ptr(LDKChannelUpdateInfo *NONNULL_PTR arg);
28759 /* @internal */
28760 export function ChannelUpdateInfo_clone_ptr(arg: number): number {
28761         if(!isWasmInitialized) {
28762                 throw new Error("initializeWasm() must be awaited first!");
28763         }
28764         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_clone_ptr(arg);
28765         return nativeResponseValue;
28766 }
28767         // struct LDKChannelUpdateInfo ChannelUpdateInfo_clone(const struct LDKChannelUpdateInfo *NONNULL_PTR orig);
28768 /* @internal */
28769 export function ChannelUpdateInfo_clone(orig: number): number {
28770         if(!isWasmInitialized) {
28771                 throw new Error("initializeWasm() must be awaited first!");
28772         }
28773         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_clone(orig);
28774         return nativeResponseValue;
28775 }
28776         // struct LDKCVec_u8Z ChannelUpdateInfo_write(const struct LDKChannelUpdateInfo *NONNULL_PTR obj);
28777 /* @internal */
28778 export function ChannelUpdateInfo_write(obj: number): number {
28779         if(!isWasmInitialized) {
28780                 throw new Error("initializeWasm() must be awaited first!");
28781         }
28782         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_write(obj);
28783         return nativeResponseValue;
28784 }
28785         // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ ChannelUpdateInfo_read(struct LDKu8slice ser);
28786 /* @internal */
28787 export function ChannelUpdateInfo_read(ser: number): number {
28788         if(!isWasmInitialized) {
28789                 throw new Error("initializeWasm() must be awaited first!");
28790         }
28791         const nativeResponseValue = wasm.TS_ChannelUpdateInfo_read(ser);
28792         return nativeResponseValue;
28793 }
28794         // void ChannelInfo_free(struct LDKChannelInfo this_obj);
28795 /* @internal */
28796 export function ChannelInfo_free(this_obj: number): void {
28797         if(!isWasmInitialized) {
28798                 throw new Error("initializeWasm() must be awaited first!");
28799         }
28800         const nativeResponseValue = wasm.TS_ChannelInfo_free(this_obj);
28801         // debug statements here
28802 }
28803         // struct LDKChannelFeatures ChannelInfo_get_features(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28804 /* @internal */
28805 export function ChannelInfo_get_features(this_ptr: number): number {
28806         if(!isWasmInitialized) {
28807                 throw new Error("initializeWasm() must be awaited first!");
28808         }
28809         const nativeResponseValue = wasm.TS_ChannelInfo_get_features(this_ptr);
28810         return nativeResponseValue;
28811 }
28812         // void ChannelInfo_set_features(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
28813 /* @internal */
28814 export function ChannelInfo_set_features(this_ptr: number, val: number): void {
28815         if(!isWasmInitialized) {
28816                 throw new Error("initializeWasm() must be awaited first!");
28817         }
28818         const nativeResponseValue = wasm.TS_ChannelInfo_set_features(this_ptr, val);
28819         // debug statements here
28820 }
28821         // struct LDKNodeId ChannelInfo_get_node_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28822 /* @internal */
28823 export function ChannelInfo_get_node_one(this_ptr: number): number {
28824         if(!isWasmInitialized) {
28825                 throw new Error("initializeWasm() must be awaited first!");
28826         }
28827         const nativeResponseValue = wasm.TS_ChannelInfo_get_node_one(this_ptr);
28828         return nativeResponseValue;
28829 }
28830         // void ChannelInfo_set_node_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
28831 /* @internal */
28832 export function ChannelInfo_set_node_one(this_ptr: number, val: number): void {
28833         if(!isWasmInitialized) {
28834                 throw new Error("initializeWasm() must be awaited first!");
28835         }
28836         const nativeResponseValue = wasm.TS_ChannelInfo_set_node_one(this_ptr, val);
28837         // debug statements here
28838 }
28839         // struct LDKChannelUpdateInfo ChannelInfo_get_one_to_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28840 /* @internal */
28841 export function ChannelInfo_get_one_to_two(this_ptr: number): number {
28842         if(!isWasmInitialized) {
28843                 throw new Error("initializeWasm() must be awaited first!");
28844         }
28845         const nativeResponseValue = wasm.TS_ChannelInfo_get_one_to_two(this_ptr);
28846         return nativeResponseValue;
28847 }
28848         // void ChannelInfo_set_one_to_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
28849 /* @internal */
28850 export function ChannelInfo_set_one_to_two(this_ptr: number, val: number): void {
28851         if(!isWasmInitialized) {
28852                 throw new Error("initializeWasm() must be awaited first!");
28853         }
28854         const nativeResponseValue = wasm.TS_ChannelInfo_set_one_to_two(this_ptr, val);
28855         // debug statements here
28856 }
28857         // struct LDKNodeId ChannelInfo_get_node_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28858 /* @internal */
28859 export function ChannelInfo_get_node_two(this_ptr: number): number {
28860         if(!isWasmInitialized) {
28861                 throw new Error("initializeWasm() must be awaited first!");
28862         }
28863         const nativeResponseValue = wasm.TS_ChannelInfo_get_node_two(this_ptr);
28864         return nativeResponseValue;
28865 }
28866         // void ChannelInfo_set_node_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
28867 /* @internal */
28868 export function ChannelInfo_set_node_two(this_ptr: number, val: number): void {
28869         if(!isWasmInitialized) {
28870                 throw new Error("initializeWasm() must be awaited first!");
28871         }
28872         const nativeResponseValue = wasm.TS_ChannelInfo_set_node_two(this_ptr, val);
28873         // debug statements here
28874 }
28875         // struct LDKChannelUpdateInfo ChannelInfo_get_two_to_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28876 /* @internal */
28877 export function ChannelInfo_get_two_to_one(this_ptr: number): number {
28878         if(!isWasmInitialized) {
28879                 throw new Error("initializeWasm() must be awaited first!");
28880         }
28881         const nativeResponseValue = wasm.TS_ChannelInfo_get_two_to_one(this_ptr);
28882         return nativeResponseValue;
28883 }
28884         // void ChannelInfo_set_two_to_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
28885 /* @internal */
28886 export function ChannelInfo_set_two_to_one(this_ptr: number, val: number): void {
28887         if(!isWasmInitialized) {
28888                 throw new Error("initializeWasm() must be awaited first!");
28889         }
28890         const nativeResponseValue = wasm.TS_ChannelInfo_set_two_to_one(this_ptr, val);
28891         // debug statements here
28892 }
28893         // struct LDKCOption_u64Z ChannelInfo_get_capacity_sats(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28894 /* @internal */
28895 export function ChannelInfo_get_capacity_sats(this_ptr: number): number {
28896         if(!isWasmInitialized) {
28897                 throw new Error("initializeWasm() must be awaited first!");
28898         }
28899         const nativeResponseValue = wasm.TS_ChannelInfo_get_capacity_sats(this_ptr);
28900         return nativeResponseValue;
28901 }
28902         // void ChannelInfo_set_capacity_sats(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
28903 /* @internal */
28904 export function ChannelInfo_set_capacity_sats(this_ptr: number, val: number): void {
28905         if(!isWasmInitialized) {
28906                 throw new Error("initializeWasm() must be awaited first!");
28907         }
28908         const nativeResponseValue = wasm.TS_ChannelInfo_set_capacity_sats(this_ptr, val);
28909         // debug statements here
28910 }
28911         // struct LDKChannelAnnouncement ChannelInfo_get_announcement_message(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
28912 /* @internal */
28913 export function ChannelInfo_get_announcement_message(this_ptr: number): number {
28914         if(!isWasmInitialized) {
28915                 throw new Error("initializeWasm() must be awaited first!");
28916         }
28917         const nativeResponseValue = wasm.TS_ChannelInfo_get_announcement_message(this_ptr);
28918         return nativeResponseValue;
28919 }
28920         // void ChannelInfo_set_announcement_message(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelAnnouncement val);
28921 /* @internal */
28922 export function ChannelInfo_set_announcement_message(this_ptr: number, val: number): void {
28923         if(!isWasmInitialized) {
28924                 throw new Error("initializeWasm() must be awaited first!");
28925         }
28926         const nativeResponseValue = wasm.TS_ChannelInfo_set_announcement_message(this_ptr, val);
28927         // debug statements here
28928 }
28929         // uintptr_t ChannelInfo_clone_ptr(LDKChannelInfo *NONNULL_PTR arg);
28930 /* @internal */
28931 export function ChannelInfo_clone_ptr(arg: number): number {
28932         if(!isWasmInitialized) {
28933                 throw new Error("initializeWasm() must be awaited first!");
28934         }
28935         const nativeResponseValue = wasm.TS_ChannelInfo_clone_ptr(arg);
28936         return nativeResponseValue;
28937 }
28938         // struct LDKChannelInfo ChannelInfo_clone(const struct LDKChannelInfo *NONNULL_PTR orig);
28939 /* @internal */
28940 export function ChannelInfo_clone(orig: number): number {
28941         if(!isWasmInitialized) {
28942                 throw new Error("initializeWasm() must be awaited first!");
28943         }
28944         const nativeResponseValue = wasm.TS_ChannelInfo_clone(orig);
28945         return nativeResponseValue;
28946 }
28947         // MUST_USE_RES struct LDKChannelUpdateInfo ChannelInfo_get_directional_info(const struct LDKChannelInfo *NONNULL_PTR this_arg, uint8_t channel_flags);
28948 /* @internal */
28949 export function ChannelInfo_get_directional_info(this_arg: number, channel_flags: number): number {
28950         if(!isWasmInitialized) {
28951                 throw new Error("initializeWasm() must be awaited first!");
28952         }
28953         const nativeResponseValue = wasm.TS_ChannelInfo_get_directional_info(this_arg, channel_flags);
28954         return nativeResponseValue;
28955 }
28956         // struct LDKCVec_u8Z ChannelInfo_write(const struct LDKChannelInfo *NONNULL_PTR obj);
28957 /* @internal */
28958 export function ChannelInfo_write(obj: number): number {
28959         if(!isWasmInitialized) {
28960                 throw new Error("initializeWasm() must be awaited first!");
28961         }
28962         const nativeResponseValue = wasm.TS_ChannelInfo_write(obj);
28963         return nativeResponseValue;
28964 }
28965         // struct LDKCResult_ChannelInfoDecodeErrorZ ChannelInfo_read(struct LDKu8slice ser);
28966 /* @internal */
28967 export function ChannelInfo_read(ser: number): number {
28968         if(!isWasmInitialized) {
28969                 throw new Error("initializeWasm() must be awaited first!");
28970         }
28971         const nativeResponseValue = wasm.TS_ChannelInfo_read(ser);
28972         return nativeResponseValue;
28973 }
28974         // void DirectedChannelInfo_free(struct LDKDirectedChannelInfo this_obj);
28975 /* @internal */
28976 export function DirectedChannelInfo_free(this_obj: number): void {
28977         if(!isWasmInitialized) {
28978                 throw new Error("initializeWasm() must be awaited first!");
28979         }
28980         const nativeResponseValue = wasm.TS_DirectedChannelInfo_free(this_obj);
28981         // debug statements here
28982 }
28983         // uintptr_t DirectedChannelInfo_clone_ptr(LDKDirectedChannelInfo *NONNULL_PTR arg);
28984 /* @internal */
28985 export function DirectedChannelInfo_clone_ptr(arg: number): number {
28986         if(!isWasmInitialized) {
28987                 throw new Error("initializeWasm() must be awaited first!");
28988         }
28989         const nativeResponseValue = wasm.TS_DirectedChannelInfo_clone_ptr(arg);
28990         return nativeResponseValue;
28991 }
28992         // struct LDKDirectedChannelInfo DirectedChannelInfo_clone(const struct LDKDirectedChannelInfo *NONNULL_PTR orig);
28993 /* @internal */
28994 export function DirectedChannelInfo_clone(orig: number): number {
28995         if(!isWasmInitialized) {
28996                 throw new Error("initializeWasm() must be awaited first!");
28997         }
28998         const nativeResponseValue = wasm.TS_DirectedChannelInfo_clone(orig);
28999         return nativeResponseValue;
29000 }
29001         // MUST_USE_RES struct LDKChannelInfo DirectedChannelInfo_channel(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
29002 /* @internal */
29003 export function DirectedChannelInfo_channel(this_arg: number): number {
29004         if(!isWasmInitialized) {
29005                 throw new Error("initializeWasm() must be awaited first!");
29006         }
29007         const nativeResponseValue = wasm.TS_DirectedChannelInfo_channel(this_arg);
29008         return nativeResponseValue;
29009 }
29010         // MUST_USE_RES struct LDKChannelUpdateInfo DirectedChannelInfo_direction(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
29011 /* @internal */
29012 export function DirectedChannelInfo_direction(this_arg: number): number {
29013         if(!isWasmInitialized) {
29014                 throw new Error("initializeWasm() must be awaited first!");
29015         }
29016         const nativeResponseValue = wasm.TS_DirectedChannelInfo_direction(this_arg);
29017         return nativeResponseValue;
29018 }
29019         // MUST_USE_RES uint64_t DirectedChannelInfo_htlc_maximum_msat(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
29020 /* @internal */
29021 export function DirectedChannelInfo_htlc_maximum_msat(this_arg: number): bigint {
29022         if(!isWasmInitialized) {
29023                 throw new Error("initializeWasm() must be awaited first!");
29024         }
29025         const nativeResponseValue = wasm.TS_DirectedChannelInfo_htlc_maximum_msat(this_arg);
29026         return nativeResponseValue;
29027 }
29028         // MUST_USE_RES struct LDKEffectiveCapacity DirectedChannelInfo_effective_capacity(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
29029 /* @internal */
29030 export function DirectedChannelInfo_effective_capacity(this_arg: number): number {
29031         if(!isWasmInitialized) {
29032                 throw new Error("initializeWasm() must be awaited first!");
29033         }
29034         const nativeResponseValue = wasm.TS_DirectedChannelInfo_effective_capacity(this_arg);
29035         return nativeResponseValue;
29036 }
29037         // void EffectiveCapacity_free(struct LDKEffectiveCapacity this_ptr);
29038 /* @internal */
29039 export function EffectiveCapacity_free(this_ptr: number): void {
29040         if(!isWasmInitialized) {
29041                 throw new Error("initializeWasm() must be awaited first!");
29042         }
29043         const nativeResponseValue = wasm.TS_EffectiveCapacity_free(this_ptr);
29044         // debug statements here
29045 }
29046         // uintptr_t EffectiveCapacity_clone_ptr(LDKEffectiveCapacity *NONNULL_PTR arg);
29047 /* @internal */
29048 export function EffectiveCapacity_clone_ptr(arg: number): number {
29049         if(!isWasmInitialized) {
29050                 throw new Error("initializeWasm() must be awaited first!");
29051         }
29052         const nativeResponseValue = wasm.TS_EffectiveCapacity_clone_ptr(arg);
29053         return nativeResponseValue;
29054 }
29055         // struct LDKEffectiveCapacity EffectiveCapacity_clone(const struct LDKEffectiveCapacity *NONNULL_PTR orig);
29056 /* @internal */
29057 export function EffectiveCapacity_clone(orig: number): number {
29058         if(!isWasmInitialized) {
29059                 throw new Error("initializeWasm() must be awaited first!");
29060         }
29061         const nativeResponseValue = wasm.TS_EffectiveCapacity_clone(orig);
29062         return nativeResponseValue;
29063 }
29064         // struct LDKEffectiveCapacity EffectiveCapacity_exact_liquidity(uint64_t liquidity_msat);
29065 /* @internal */
29066 export function EffectiveCapacity_exact_liquidity(liquidity_msat: bigint): number {
29067         if(!isWasmInitialized) {
29068                 throw new Error("initializeWasm() must be awaited first!");
29069         }
29070         const nativeResponseValue = wasm.TS_EffectiveCapacity_exact_liquidity(liquidity_msat);
29071         return nativeResponseValue;
29072 }
29073         // struct LDKEffectiveCapacity EffectiveCapacity_maximum_htlc(uint64_t amount_msat);
29074 /* @internal */
29075 export function EffectiveCapacity_maximum_htlc(amount_msat: bigint): number {
29076         if(!isWasmInitialized) {
29077                 throw new Error("initializeWasm() must be awaited first!");
29078         }
29079         const nativeResponseValue = wasm.TS_EffectiveCapacity_maximum_htlc(amount_msat);
29080         return nativeResponseValue;
29081 }
29082         // struct LDKEffectiveCapacity EffectiveCapacity_total(uint64_t capacity_msat, struct LDKCOption_u64Z htlc_maximum_msat);
29083 /* @internal */
29084 export function EffectiveCapacity_total(capacity_msat: bigint, htlc_maximum_msat: number): number {
29085         if(!isWasmInitialized) {
29086                 throw new Error("initializeWasm() must be awaited first!");
29087         }
29088         const nativeResponseValue = wasm.TS_EffectiveCapacity_total(capacity_msat, htlc_maximum_msat);
29089         return nativeResponseValue;
29090 }
29091         // struct LDKEffectiveCapacity EffectiveCapacity_infinite(void);
29092 /* @internal */
29093 export function EffectiveCapacity_infinite(): number {
29094         if(!isWasmInitialized) {
29095                 throw new Error("initializeWasm() must be awaited first!");
29096         }
29097         const nativeResponseValue = wasm.TS_EffectiveCapacity_infinite();
29098         return nativeResponseValue;
29099 }
29100         // struct LDKEffectiveCapacity EffectiveCapacity_unknown(void);
29101 /* @internal */
29102 export function EffectiveCapacity_unknown(): number {
29103         if(!isWasmInitialized) {
29104                 throw new Error("initializeWasm() must be awaited first!");
29105         }
29106         const nativeResponseValue = wasm.TS_EffectiveCapacity_unknown();
29107         return nativeResponseValue;
29108 }
29109         // MUST_USE_RES uint64_t EffectiveCapacity_as_msat(const struct LDKEffectiveCapacity *NONNULL_PTR this_arg);
29110 /* @internal */
29111 export function EffectiveCapacity_as_msat(this_arg: number): bigint {
29112         if(!isWasmInitialized) {
29113                 throw new Error("initializeWasm() must be awaited first!");
29114         }
29115         const nativeResponseValue = wasm.TS_EffectiveCapacity_as_msat(this_arg);
29116         return nativeResponseValue;
29117 }
29118         // void RoutingFees_free(struct LDKRoutingFees this_obj);
29119 /* @internal */
29120 export function RoutingFees_free(this_obj: number): void {
29121         if(!isWasmInitialized) {
29122                 throw new Error("initializeWasm() must be awaited first!");
29123         }
29124         const nativeResponseValue = wasm.TS_RoutingFees_free(this_obj);
29125         // debug statements here
29126 }
29127         // uint32_t RoutingFees_get_base_msat(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
29128 /* @internal */
29129 export function RoutingFees_get_base_msat(this_ptr: number): number {
29130         if(!isWasmInitialized) {
29131                 throw new Error("initializeWasm() must be awaited first!");
29132         }
29133         const nativeResponseValue = wasm.TS_RoutingFees_get_base_msat(this_ptr);
29134         return nativeResponseValue;
29135 }
29136         // void RoutingFees_set_base_msat(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
29137 /* @internal */
29138 export function RoutingFees_set_base_msat(this_ptr: number, val: number): void {
29139         if(!isWasmInitialized) {
29140                 throw new Error("initializeWasm() must be awaited first!");
29141         }
29142         const nativeResponseValue = wasm.TS_RoutingFees_set_base_msat(this_ptr, val);
29143         // debug statements here
29144 }
29145         // uint32_t RoutingFees_get_proportional_millionths(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
29146 /* @internal */
29147 export function RoutingFees_get_proportional_millionths(this_ptr: number): number {
29148         if(!isWasmInitialized) {
29149                 throw new Error("initializeWasm() must be awaited first!");
29150         }
29151         const nativeResponseValue = wasm.TS_RoutingFees_get_proportional_millionths(this_ptr);
29152         return nativeResponseValue;
29153 }
29154         // void RoutingFees_set_proportional_millionths(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
29155 /* @internal */
29156 export function RoutingFees_set_proportional_millionths(this_ptr: number, val: number): void {
29157         if(!isWasmInitialized) {
29158                 throw new Error("initializeWasm() must be awaited first!");
29159         }
29160         const nativeResponseValue = wasm.TS_RoutingFees_set_proportional_millionths(this_ptr, val);
29161         // debug statements here
29162 }
29163         // MUST_USE_RES struct LDKRoutingFees RoutingFees_new(uint32_t base_msat_arg, uint32_t proportional_millionths_arg);
29164 /* @internal */
29165 export function RoutingFees_new(base_msat_arg: number, proportional_millionths_arg: number): number {
29166         if(!isWasmInitialized) {
29167                 throw new Error("initializeWasm() must be awaited first!");
29168         }
29169         const nativeResponseValue = wasm.TS_RoutingFees_new(base_msat_arg, proportional_millionths_arg);
29170         return nativeResponseValue;
29171 }
29172         // bool RoutingFees_eq(const struct LDKRoutingFees *NONNULL_PTR a, const struct LDKRoutingFees *NONNULL_PTR b);
29173 /* @internal */
29174 export function RoutingFees_eq(a: number, b: number): boolean {
29175         if(!isWasmInitialized) {
29176                 throw new Error("initializeWasm() must be awaited first!");
29177         }
29178         const nativeResponseValue = wasm.TS_RoutingFees_eq(a, b);
29179         return nativeResponseValue;
29180 }
29181         // uintptr_t RoutingFees_clone_ptr(LDKRoutingFees *NONNULL_PTR arg);
29182 /* @internal */
29183 export function RoutingFees_clone_ptr(arg: number): number {
29184         if(!isWasmInitialized) {
29185                 throw new Error("initializeWasm() must be awaited first!");
29186         }
29187         const nativeResponseValue = wasm.TS_RoutingFees_clone_ptr(arg);
29188         return nativeResponseValue;
29189 }
29190         // struct LDKRoutingFees RoutingFees_clone(const struct LDKRoutingFees *NONNULL_PTR orig);
29191 /* @internal */
29192 export function RoutingFees_clone(orig: number): number {
29193         if(!isWasmInitialized) {
29194                 throw new Error("initializeWasm() must be awaited first!");
29195         }
29196         const nativeResponseValue = wasm.TS_RoutingFees_clone(orig);
29197         return nativeResponseValue;
29198 }
29199         // uint64_t RoutingFees_hash(const struct LDKRoutingFees *NONNULL_PTR o);
29200 /* @internal */
29201 export function RoutingFees_hash(o: number): bigint {
29202         if(!isWasmInitialized) {
29203                 throw new Error("initializeWasm() must be awaited first!");
29204         }
29205         const nativeResponseValue = wasm.TS_RoutingFees_hash(o);
29206         return nativeResponseValue;
29207 }
29208         // struct LDKCVec_u8Z RoutingFees_write(const struct LDKRoutingFees *NONNULL_PTR obj);
29209 /* @internal */
29210 export function RoutingFees_write(obj: number): number {
29211         if(!isWasmInitialized) {
29212                 throw new Error("initializeWasm() must be awaited first!");
29213         }
29214         const nativeResponseValue = wasm.TS_RoutingFees_write(obj);
29215         return nativeResponseValue;
29216 }
29217         // struct LDKCResult_RoutingFeesDecodeErrorZ RoutingFees_read(struct LDKu8slice ser);
29218 /* @internal */
29219 export function RoutingFees_read(ser: number): number {
29220         if(!isWasmInitialized) {
29221                 throw new Error("initializeWasm() must be awaited first!");
29222         }
29223         const nativeResponseValue = wasm.TS_RoutingFees_read(ser);
29224         return nativeResponseValue;
29225 }
29226         // void NodeAnnouncementInfo_free(struct LDKNodeAnnouncementInfo this_obj);
29227 /* @internal */
29228 export function NodeAnnouncementInfo_free(this_obj: number): void {
29229         if(!isWasmInitialized) {
29230                 throw new Error("initializeWasm() must be awaited first!");
29231         }
29232         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_free(this_obj);
29233         // debug statements here
29234 }
29235         // struct LDKNodeFeatures NodeAnnouncementInfo_get_features(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
29236 /* @internal */
29237 export function NodeAnnouncementInfo_get_features(this_ptr: number): number {
29238         if(!isWasmInitialized) {
29239                 throw new Error("initializeWasm() must be awaited first!");
29240         }
29241         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_features(this_ptr);
29242         return nativeResponseValue;
29243 }
29244         // void NodeAnnouncementInfo_set_features(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
29245 /* @internal */
29246 export function NodeAnnouncementInfo_set_features(this_ptr: number, val: number): void {
29247         if(!isWasmInitialized) {
29248                 throw new Error("initializeWasm() must be awaited first!");
29249         }
29250         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_features(this_ptr, val);
29251         // debug statements here
29252 }
29253         // uint32_t NodeAnnouncementInfo_get_last_update(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
29254 /* @internal */
29255 export function NodeAnnouncementInfo_get_last_update(this_ptr: number): number {
29256         if(!isWasmInitialized) {
29257                 throw new Error("initializeWasm() must be awaited first!");
29258         }
29259         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_last_update(this_ptr);
29260         return nativeResponseValue;
29261 }
29262         // void NodeAnnouncementInfo_set_last_update(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, uint32_t val);
29263 /* @internal */
29264 export function NodeAnnouncementInfo_set_last_update(this_ptr: number, val: number): void {
29265         if(!isWasmInitialized) {
29266                 throw new Error("initializeWasm() must be awaited first!");
29267         }
29268         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_last_update(this_ptr, val);
29269         // debug statements here
29270 }
29271         // const uint8_t (*NodeAnnouncementInfo_get_rgb(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[3];
29272 /* @internal */
29273 export function NodeAnnouncementInfo_get_rgb(this_ptr: number): number {
29274         if(!isWasmInitialized) {
29275                 throw new Error("initializeWasm() must be awaited first!");
29276         }
29277         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_rgb(this_ptr);
29278         return nativeResponseValue;
29279 }
29280         // void NodeAnnouncementInfo_set_rgb(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
29281 /* @internal */
29282 export function NodeAnnouncementInfo_set_rgb(this_ptr: number, val: number): void {
29283         if(!isWasmInitialized) {
29284                 throw new Error("initializeWasm() must be awaited first!");
29285         }
29286         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_rgb(this_ptr, val);
29287         // debug statements here
29288 }
29289         // struct LDKNodeAlias NodeAnnouncementInfo_get_alias(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
29290 /* @internal */
29291 export function NodeAnnouncementInfo_get_alias(this_ptr: number): number {
29292         if(!isWasmInitialized) {
29293                 throw new Error("initializeWasm() must be awaited first!");
29294         }
29295         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_alias(this_ptr);
29296         return nativeResponseValue;
29297 }
29298         // void NodeAnnouncementInfo_set_alias(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAlias val);
29299 /* @internal */
29300 export function NodeAnnouncementInfo_set_alias(this_ptr: number, val: number): void {
29301         if(!isWasmInitialized) {
29302                 throw new Error("initializeWasm() must be awaited first!");
29303         }
29304         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_alias(this_ptr, val);
29305         // debug statements here
29306 }
29307         // void NodeAnnouncementInfo_set_addresses(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
29308 /* @internal */
29309 export function NodeAnnouncementInfo_set_addresses(this_ptr: number, val: number): void {
29310         if(!isWasmInitialized) {
29311                 throw new Error("initializeWasm() must be awaited first!");
29312         }
29313         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_addresses(this_ptr, val);
29314         // debug statements here
29315 }
29316         // struct LDKNodeAnnouncement NodeAnnouncementInfo_get_announcement_message(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
29317 /* @internal */
29318 export function NodeAnnouncementInfo_get_announcement_message(this_ptr: number): number {
29319         if(!isWasmInitialized) {
29320                 throw new Error("initializeWasm() must be awaited first!");
29321         }
29322         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_announcement_message(this_ptr);
29323         return nativeResponseValue;
29324 }
29325         // void NodeAnnouncementInfo_set_announcement_message(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncement val);
29326 /* @internal */
29327 export function NodeAnnouncementInfo_set_announcement_message(this_ptr: number, val: number): void {
29328         if(!isWasmInitialized) {
29329                 throw new Error("initializeWasm() must be awaited first!");
29330         }
29331         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_announcement_message(this_ptr, val);
29332         // debug statements here
29333 }
29334         // MUST_USE_RES struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_new(struct LDKNodeFeatures features_arg, uint32_t last_update_arg, struct LDKThreeBytes rgb_arg, struct LDKNodeAlias alias_arg, struct LDKCVec_NetAddressZ addresses_arg, struct LDKNodeAnnouncement announcement_message_arg);
29335 /* @internal */
29336 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 {
29337         if(!isWasmInitialized) {
29338                 throw new Error("initializeWasm() must be awaited first!");
29339         }
29340         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_new(features_arg, last_update_arg, rgb_arg, alias_arg, addresses_arg, announcement_message_arg);
29341         return nativeResponseValue;
29342 }
29343         // uintptr_t NodeAnnouncementInfo_clone_ptr(LDKNodeAnnouncementInfo *NONNULL_PTR arg);
29344 /* @internal */
29345 export function NodeAnnouncementInfo_clone_ptr(arg: number): number {
29346         if(!isWasmInitialized) {
29347                 throw new Error("initializeWasm() must be awaited first!");
29348         }
29349         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_clone_ptr(arg);
29350         return nativeResponseValue;
29351 }
29352         // struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_clone(const struct LDKNodeAnnouncementInfo *NONNULL_PTR orig);
29353 /* @internal */
29354 export function NodeAnnouncementInfo_clone(orig: number): number {
29355         if(!isWasmInitialized) {
29356                 throw new Error("initializeWasm() must be awaited first!");
29357         }
29358         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_clone(orig);
29359         return nativeResponseValue;
29360 }
29361         // struct LDKCVec_u8Z NodeAnnouncementInfo_write(const struct LDKNodeAnnouncementInfo *NONNULL_PTR obj);
29362 /* @internal */
29363 export function NodeAnnouncementInfo_write(obj: number): number {
29364         if(!isWasmInitialized) {
29365                 throw new Error("initializeWasm() must be awaited first!");
29366         }
29367         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_write(obj);
29368         return nativeResponseValue;
29369 }
29370         // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ NodeAnnouncementInfo_read(struct LDKu8slice ser);
29371 /* @internal */
29372 export function NodeAnnouncementInfo_read(ser: number): number {
29373         if(!isWasmInitialized) {
29374                 throw new Error("initializeWasm() must be awaited first!");
29375         }
29376         const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_read(ser);
29377         return nativeResponseValue;
29378 }
29379         // void NodeAlias_free(struct LDKNodeAlias this_obj);
29380 /* @internal */
29381 export function NodeAlias_free(this_obj: number): void {
29382         if(!isWasmInitialized) {
29383                 throw new Error("initializeWasm() must be awaited first!");
29384         }
29385         const nativeResponseValue = wasm.TS_NodeAlias_free(this_obj);
29386         // debug statements here
29387 }
29388         // const uint8_t (*NodeAlias_get_a(const struct LDKNodeAlias *NONNULL_PTR this_ptr))[32];
29389 /* @internal */
29390 export function NodeAlias_get_a(this_ptr: number): number {
29391         if(!isWasmInitialized) {
29392                 throw new Error("initializeWasm() must be awaited first!");
29393         }
29394         const nativeResponseValue = wasm.TS_NodeAlias_get_a(this_ptr);
29395         return nativeResponseValue;
29396 }
29397         // void NodeAlias_set_a(struct LDKNodeAlias *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
29398 /* @internal */
29399 export function NodeAlias_set_a(this_ptr: number, val: number): void {
29400         if(!isWasmInitialized) {
29401                 throw new Error("initializeWasm() must be awaited first!");
29402         }
29403         const nativeResponseValue = wasm.TS_NodeAlias_set_a(this_ptr, val);
29404         // debug statements here
29405 }
29406         // MUST_USE_RES struct LDKNodeAlias NodeAlias_new(struct LDKThirtyTwoBytes a_arg);
29407 /* @internal */
29408 export function NodeAlias_new(a_arg: number): number {
29409         if(!isWasmInitialized) {
29410                 throw new Error("initializeWasm() must be awaited first!");
29411         }
29412         const nativeResponseValue = wasm.TS_NodeAlias_new(a_arg);
29413         return nativeResponseValue;
29414 }
29415         // uintptr_t NodeAlias_clone_ptr(LDKNodeAlias *NONNULL_PTR arg);
29416 /* @internal */
29417 export function NodeAlias_clone_ptr(arg: number): number {
29418         if(!isWasmInitialized) {
29419                 throw new Error("initializeWasm() must be awaited first!");
29420         }
29421         const nativeResponseValue = wasm.TS_NodeAlias_clone_ptr(arg);
29422         return nativeResponseValue;
29423 }
29424         // struct LDKNodeAlias NodeAlias_clone(const struct LDKNodeAlias *NONNULL_PTR orig);
29425 /* @internal */
29426 export function NodeAlias_clone(orig: number): number {
29427         if(!isWasmInitialized) {
29428                 throw new Error("initializeWasm() must be awaited first!");
29429         }
29430         const nativeResponseValue = wasm.TS_NodeAlias_clone(orig);
29431         return nativeResponseValue;
29432 }
29433         // struct LDKCVec_u8Z NodeAlias_write(const struct LDKNodeAlias *NONNULL_PTR obj);
29434 /* @internal */
29435 export function NodeAlias_write(obj: number): number {
29436         if(!isWasmInitialized) {
29437                 throw new Error("initializeWasm() must be awaited first!");
29438         }
29439         const nativeResponseValue = wasm.TS_NodeAlias_write(obj);
29440         return nativeResponseValue;
29441 }
29442         // struct LDKCResult_NodeAliasDecodeErrorZ NodeAlias_read(struct LDKu8slice ser);
29443 /* @internal */
29444 export function NodeAlias_read(ser: number): number {
29445         if(!isWasmInitialized) {
29446                 throw new Error("initializeWasm() must be awaited first!");
29447         }
29448         const nativeResponseValue = wasm.TS_NodeAlias_read(ser);
29449         return nativeResponseValue;
29450 }
29451         // void NodeInfo_free(struct LDKNodeInfo this_obj);
29452 /* @internal */
29453 export function NodeInfo_free(this_obj: number): void {
29454         if(!isWasmInitialized) {
29455                 throw new Error("initializeWasm() must be awaited first!");
29456         }
29457         const nativeResponseValue = wasm.TS_NodeInfo_free(this_obj);
29458         // debug statements here
29459 }
29460         // void NodeInfo_set_channels(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
29461 /* @internal */
29462 export function NodeInfo_set_channels(this_ptr: number, val: number): void {
29463         if(!isWasmInitialized) {
29464                 throw new Error("initializeWasm() must be awaited first!");
29465         }
29466         const nativeResponseValue = wasm.TS_NodeInfo_set_channels(this_ptr, val);
29467         // debug statements here
29468 }
29469         // struct LDKRoutingFees NodeInfo_get_lowest_inbound_channel_fees(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
29470 /* @internal */
29471 export function NodeInfo_get_lowest_inbound_channel_fees(this_ptr: number): number {
29472         if(!isWasmInitialized) {
29473                 throw new Error("initializeWasm() must be awaited first!");
29474         }
29475         const nativeResponseValue = wasm.TS_NodeInfo_get_lowest_inbound_channel_fees(this_ptr);
29476         return nativeResponseValue;
29477 }
29478         // void NodeInfo_set_lowest_inbound_channel_fees(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
29479 /* @internal */
29480 export function NodeInfo_set_lowest_inbound_channel_fees(this_ptr: number, val: number): void {
29481         if(!isWasmInitialized) {
29482                 throw new Error("initializeWasm() must be awaited first!");
29483         }
29484         const nativeResponseValue = wasm.TS_NodeInfo_set_lowest_inbound_channel_fees(this_ptr, val);
29485         // debug statements here
29486 }
29487         // struct LDKNodeAnnouncementInfo NodeInfo_get_announcement_info(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
29488 /* @internal */
29489 export function NodeInfo_get_announcement_info(this_ptr: number): number {
29490         if(!isWasmInitialized) {
29491                 throw new Error("initializeWasm() must be awaited first!");
29492         }
29493         const nativeResponseValue = wasm.TS_NodeInfo_get_announcement_info(this_ptr);
29494         return nativeResponseValue;
29495 }
29496         // void NodeInfo_set_announcement_info(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncementInfo val);
29497 /* @internal */
29498 export function NodeInfo_set_announcement_info(this_ptr: number, val: number): void {
29499         if(!isWasmInitialized) {
29500                 throw new Error("initializeWasm() must be awaited first!");
29501         }
29502         const nativeResponseValue = wasm.TS_NodeInfo_set_announcement_info(this_ptr, val);
29503         // debug statements here
29504 }
29505         // MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKRoutingFees lowest_inbound_channel_fees_arg, struct LDKNodeAnnouncementInfo announcement_info_arg);
29506 /* @internal */
29507 export function NodeInfo_new(channels_arg: number, lowest_inbound_channel_fees_arg: number, announcement_info_arg: number): number {
29508         if(!isWasmInitialized) {
29509                 throw new Error("initializeWasm() must be awaited first!");
29510         }
29511         const nativeResponseValue = wasm.TS_NodeInfo_new(channels_arg, lowest_inbound_channel_fees_arg, announcement_info_arg);
29512         return nativeResponseValue;
29513 }
29514         // uintptr_t NodeInfo_clone_ptr(LDKNodeInfo *NONNULL_PTR arg);
29515 /* @internal */
29516 export function NodeInfo_clone_ptr(arg: number): number {
29517         if(!isWasmInitialized) {
29518                 throw new Error("initializeWasm() must be awaited first!");
29519         }
29520         const nativeResponseValue = wasm.TS_NodeInfo_clone_ptr(arg);
29521         return nativeResponseValue;
29522 }
29523         // struct LDKNodeInfo NodeInfo_clone(const struct LDKNodeInfo *NONNULL_PTR orig);
29524 /* @internal */
29525 export function NodeInfo_clone(orig: number): number {
29526         if(!isWasmInitialized) {
29527                 throw new Error("initializeWasm() must be awaited first!");
29528         }
29529         const nativeResponseValue = wasm.TS_NodeInfo_clone(orig);
29530         return nativeResponseValue;
29531 }
29532         // struct LDKCVec_u8Z NodeInfo_write(const struct LDKNodeInfo *NONNULL_PTR obj);
29533 /* @internal */
29534 export function NodeInfo_write(obj: number): number {
29535         if(!isWasmInitialized) {
29536                 throw new Error("initializeWasm() must be awaited first!");
29537         }
29538         const nativeResponseValue = wasm.TS_NodeInfo_write(obj);
29539         return nativeResponseValue;
29540 }
29541         // struct LDKCResult_NodeInfoDecodeErrorZ NodeInfo_read(struct LDKu8slice ser);
29542 /* @internal */
29543 export function NodeInfo_read(ser: number): number {
29544         if(!isWasmInitialized) {
29545                 throw new Error("initializeWasm() must be awaited first!");
29546         }
29547         const nativeResponseValue = wasm.TS_NodeInfo_read(ser);
29548         return nativeResponseValue;
29549 }
29550         // struct LDKCVec_u8Z NetworkGraph_write(const struct LDKNetworkGraph *NONNULL_PTR obj);
29551 /* @internal */
29552 export function NetworkGraph_write(obj: number): number {
29553         if(!isWasmInitialized) {
29554                 throw new Error("initializeWasm() must be awaited first!");
29555         }
29556         const nativeResponseValue = wasm.TS_NetworkGraph_write(obj);
29557         return nativeResponseValue;
29558 }
29559         // struct LDKCResult_NetworkGraphDecodeErrorZ NetworkGraph_read(struct LDKu8slice ser, struct LDKLogger arg);
29560 /* @internal */
29561 export function NetworkGraph_read(ser: number, arg: number): number {
29562         if(!isWasmInitialized) {
29563                 throw new Error("initializeWasm() must be awaited first!");
29564         }
29565         const nativeResponseValue = wasm.TS_NetworkGraph_read(ser, arg);
29566         return nativeResponseValue;
29567 }
29568         // MUST_USE_RES struct LDKNetworkGraph NetworkGraph_new(struct LDKThirtyTwoBytes genesis_hash, struct LDKLogger logger);
29569 /* @internal */
29570 export function NetworkGraph_new(genesis_hash: number, logger: number): number {
29571         if(!isWasmInitialized) {
29572                 throw new Error("initializeWasm() must be awaited first!");
29573         }
29574         const nativeResponseValue = wasm.TS_NetworkGraph_new(genesis_hash, logger);
29575         return nativeResponseValue;
29576 }
29577         // MUST_USE_RES struct LDKReadOnlyNetworkGraph NetworkGraph_read_only(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
29578 /* @internal */
29579 export function NetworkGraph_read_only(this_arg: number): number {
29580         if(!isWasmInitialized) {
29581                 throw new Error("initializeWasm() must be awaited first!");
29582         }
29583         const nativeResponseValue = wasm.TS_NetworkGraph_read_only(this_arg);
29584         return nativeResponseValue;
29585 }
29586         // MUST_USE_RES struct LDKCOption_u32Z NetworkGraph_get_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
29587 /* @internal */
29588 export function NetworkGraph_get_last_rapid_gossip_sync_timestamp(this_arg: number): number {
29589         if(!isWasmInitialized) {
29590                 throw new Error("initializeWasm() must be awaited first!");
29591         }
29592         const nativeResponseValue = wasm.TS_NetworkGraph_get_last_rapid_gossip_sync_timestamp(this_arg);
29593         return nativeResponseValue;
29594 }
29595         // void NetworkGraph_set_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint32_t last_rapid_gossip_sync_timestamp);
29596 /* @internal */
29597 export function NetworkGraph_set_last_rapid_gossip_sync_timestamp(this_arg: number, last_rapid_gossip_sync_timestamp: number): void {
29598         if(!isWasmInitialized) {
29599                 throw new Error("initializeWasm() must be awaited first!");
29600         }
29601         const nativeResponseValue = wasm.TS_NetworkGraph_set_last_rapid_gossip_sync_timestamp(this_arg, last_rapid_gossip_sync_timestamp);
29602         // debug statements here
29603 }
29604         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg);
29605 /* @internal */
29606 export function NetworkGraph_update_node_from_announcement(this_arg: number, msg: number): number {
29607         if(!isWasmInitialized) {
29608                 throw new Error("initializeWasm() must be awaited first!");
29609         }
29610         const nativeResponseValue = wasm.TS_NetworkGraph_update_node_from_announcement(this_arg, msg);
29611         return nativeResponseValue;
29612 }
29613         // 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);
29614 /* @internal */
29615 export function NetworkGraph_update_node_from_unsigned_announcement(this_arg: number, msg: number): number {
29616         if(!isWasmInitialized) {
29617                 throw new Error("initializeWasm() must be awaited first!");
29618         }
29619         const nativeResponseValue = wasm.TS_NetworkGraph_update_node_from_unsigned_announcement(this_arg, msg);
29620         return nativeResponseValue;
29621 }
29622         // 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);
29623 /* @internal */
29624 export function NetworkGraph_update_channel_from_announcement(this_arg: number, msg: number, chain_access: number): number {
29625         if(!isWasmInitialized) {
29626                 throw new Error("initializeWasm() must be awaited first!");
29627         }
29628         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_from_announcement(this_arg, msg, chain_access);
29629         return nativeResponseValue;
29630 }
29631         // 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);
29632 /* @internal */
29633 export function NetworkGraph_update_channel_from_unsigned_announcement(this_arg: number, msg: number, chain_access: number): number {
29634         if(!isWasmInitialized) {
29635                 throw new Error("initializeWasm() must be awaited first!");
29636         }
29637         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_from_unsigned_announcement(this_arg, msg, chain_access);
29638         return nativeResponseValue;
29639 }
29640         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_add_channel_from_partial_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id, uint64_t timestamp, struct LDKChannelFeatures features, struct LDKPublicKey node_id_1, struct LDKPublicKey node_id_2);
29641 /* @internal */
29642 export function NetworkGraph_add_channel_from_partial_announcement(this_arg: number, short_channel_id: bigint, timestamp: bigint, features: number, node_id_1: number, node_id_2: number): number {
29643         if(!isWasmInitialized) {
29644                 throw new Error("initializeWasm() must be awaited first!");
29645         }
29646         const nativeResponseValue = wasm.TS_NetworkGraph_add_channel_from_partial_announcement(this_arg, short_channel_id, timestamp, features, node_id_1, node_id_2);
29647         return nativeResponseValue;
29648 }
29649         // void NetworkGraph_channel_failed(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id, bool is_permanent);
29650 /* @internal */
29651 export function NetworkGraph_channel_failed(this_arg: number, short_channel_id: bigint, is_permanent: boolean): void {
29652         if(!isWasmInitialized) {
29653                 throw new Error("initializeWasm() must be awaited first!");
29654         }
29655         const nativeResponseValue = wasm.TS_NetworkGraph_channel_failed(this_arg, short_channel_id, is_permanent);
29656         // debug statements here
29657 }
29658         // void NetworkGraph_node_failed(const struct LDKNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey _node_id, bool is_permanent);
29659 /* @internal */
29660 export function NetworkGraph_node_failed(this_arg: number, _node_id: number, is_permanent: boolean): void {
29661         if(!isWasmInitialized) {
29662                 throw new Error("initializeWasm() must be awaited first!");
29663         }
29664         const nativeResponseValue = wasm.TS_NetworkGraph_node_failed(this_arg, _node_id, is_permanent);
29665         // debug statements here
29666 }
29667         // void NetworkGraph_remove_stale_channels_with_time(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t current_time_unix);
29668 /* @internal */
29669 export function NetworkGraph_remove_stale_channels_with_time(this_arg: number, current_time_unix: bigint): void {
29670         if(!isWasmInitialized) {
29671                 throw new Error("initializeWasm() must be awaited first!");
29672         }
29673         const nativeResponseValue = wasm.TS_NetworkGraph_remove_stale_channels_with_time(this_arg, current_time_unix);
29674         // debug statements here
29675 }
29676         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
29677 /* @internal */
29678 export function NetworkGraph_update_channel(this_arg: number, msg: number): number {
29679         if(!isWasmInitialized) {
29680                 throw new Error("initializeWasm() must be awaited first!");
29681         }
29682         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel(this_arg, msg);
29683         return nativeResponseValue;
29684 }
29685         // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_unsigned(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelUpdate *NONNULL_PTR msg);
29686 /* @internal */
29687 export function NetworkGraph_update_channel_unsigned(this_arg: number, msg: number): number {
29688         if(!isWasmInitialized) {
29689                 throw new Error("initializeWasm() must be awaited first!");
29690         }
29691         const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_unsigned(this_arg, msg);
29692         return nativeResponseValue;
29693 }
29694         // MUST_USE_RES struct LDKCOption_CVec_NetAddressZZ ReadOnlyNetworkGraph_get_addresses(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey pubkey);
29695 /* @internal */
29696 export function ReadOnlyNetworkGraph_get_addresses(this_arg: number, pubkey: number): number {
29697         if(!isWasmInitialized) {
29698                 throw new Error("initializeWasm() must be awaited first!");
29699         }
29700         const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_get_addresses(this_arg, pubkey);
29701         return nativeResponseValue;
29702 }
29703         // void RouteHop_free(struct LDKRouteHop this_obj);
29704 /* @internal */
29705 export function RouteHop_free(this_obj: number): void {
29706         if(!isWasmInitialized) {
29707                 throw new Error("initializeWasm() must be awaited first!");
29708         }
29709         const nativeResponseValue = wasm.TS_RouteHop_free(this_obj);
29710         // debug statements here
29711 }
29712         // struct LDKPublicKey RouteHop_get_pubkey(const struct LDKRouteHop *NONNULL_PTR this_ptr);
29713 /* @internal */
29714 export function RouteHop_get_pubkey(this_ptr: number): number {
29715         if(!isWasmInitialized) {
29716                 throw new Error("initializeWasm() must be awaited first!");
29717         }
29718         const nativeResponseValue = wasm.TS_RouteHop_get_pubkey(this_ptr);
29719         return nativeResponseValue;
29720 }
29721         // void RouteHop_set_pubkey(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
29722 /* @internal */
29723 export function RouteHop_set_pubkey(this_ptr: number, val: number): void {
29724         if(!isWasmInitialized) {
29725                 throw new Error("initializeWasm() must be awaited first!");
29726         }
29727         const nativeResponseValue = wasm.TS_RouteHop_set_pubkey(this_ptr, val);
29728         // debug statements here
29729 }
29730         // struct LDKNodeFeatures RouteHop_get_node_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
29731 /* @internal */
29732 export function RouteHop_get_node_features(this_ptr: number): number {
29733         if(!isWasmInitialized) {
29734                 throw new Error("initializeWasm() must be awaited first!");
29735         }
29736         const nativeResponseValue = wasm.TS_RouteHop_get_node_features(this_ptr);
29737         return nativeResponseValue;
29738 }
29739         // void RouteHop_set_node_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
29740 /* @internal */
29741 export function RouteHop_set_node_features(this_ptr: number, val: number): void {
29742         if(!isWasmInitialized) {
29743                 throw new Error("initializeWasm() must be awaited first!");
29744         }
29745         const nativeResponseValue = wasm.TS_RouteHop_set_node_features(this_ptr, val);
29746         // debug statements here
29747 }
29748         // uint64_t RouteHop_get_short_channel_id(const struct LDKRouteHop *NONNULL_PTR this_ptr);
29749 /* @internal */
29750 export function RouteHop_get_short_channel_id(this_ptr: number): bigint {
29751         if(!isWasmInitialized) {
29752                 throw new Error("initializeWasm() must be awaited first!");
29753         }
29754         const nativeResponseValue = wasm.TS_RouteHop_get_short_channel_id(this_ptr);
29755         return nativeResponseValue;
29756 }
29757         // void RouteHop_set_short_channel_id(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
29758 /* @internal */
29759 export function RouteHop_set_short_channel_id(this_ptr: number, val: bigint): void {
29760         if(!isWasmInitialized) {
29761                 throw new Error("initializeWasm() must be awaited first!");
29762         }
29763         const nativeResponseValue = wasm.TS_RouteHop_set_short_channel_id(this_ptr, val);
29764         // debug statements here
29765 }
29766         // struct LDKChannelFeatures RouteHop_get_channel_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
29767 /* @internal */
29768 export function RouteHop_get_channel_features(this_ptr: number): number {
29769         if(!isWasmInitialized) {
29770                 throw new Error("initializeWasm() must be awaited first!");
29771         }
29772         const nativeResponseValue = wasm.TS_RouteHop_get_channel_features(this_ptr);
29773         return nativeResponseValue;
29774 }
29775         // void RouteHop_set_channel_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
29776 /* @internal */
29777 export function RouteHop_set_channel_features(this_ptr: number, val: number): void {
29778         if(!isWasmInitialized) {
29779                 throw new Error("initializeWasm() must be awaited first!");
29780         }
29781         const nativeResponseValue = wasm.TS_RouteHop_set_channel_features(this_ptr, val);
29782         // debug statements here
29783 }
29784         // uint64_t RouteHop_get_fee_msat(const struct LDKRouteHop *NONNULL_PTR this_ptr);
29785 /* @internal */
29786 export function RouteHop_get_fee_msat(this_ptr: number): bigint {
29787         if(!isWasmInitialized) {
29788                 throw new Error("initializeWasm() must be awaited first!");
29789         }
29790         const nativeResponseValue = wasm.TS_RouteHop_get_fee_msat(this_ptr);
29791         return nativeResponseValue;
29792 }
29793         // void RouteHop_set_fee_msat(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
29794 /* @internal */
29795 export function RouteHop_set_fee_msat(this_ptr: number, val: bigint): void {
29796         if(!isWasmInitialized) {
29797                 throw new Error("initializeWasm() must be awaited first!");
29798         }
29799         const nativeResponseValue = wasm.TS_RouteHop_set_fee_msat(this_ptr, val);
29800         // debug statements here
29801 }
29802         // uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR this_ptr);
29803 /* @internal */
29804 export function RouteHop_get_cltv_expiry_delta(this_ptr: number): number {
29805         if(!isWasmInitialized) {
29806                 throw new Error("initializeWasm() must be awaited first!");
29807         }
29808         const nativeResponseValue = wasm.TS_RouteHop_get_cltv_expiry_delta(this_ptr);
29809         return nativeResponseValue;
29810 }
29811         // void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val);
29812 /* @internal */
29813 export function RouteHop_set_cltv_expiry_delta(this_ptr: number, val: number): void {
29814         if(!isWasmInitialized) {
29815                 throw new Error("initializeWasm() must be awaited first!");
29816         }
29817         const nativeResponseValue = wasm.TS_RouteHop_set_cltv_expiry_delta(this_ptr, val);
29818         // debug statements here
29819 }
29820         // 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);
29821 /* @internal */
29822 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 {
29823         if(!isWasmInitialized) {
29824                 throw new Error("initializeWasm() must be awaited first!");
29825         }
29826         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);
29827         return nativeResponseValue;
29828 }
29829         // uintptr_t RouteHop_clone_ptr(LDKRouteHop *NONNULL_PTR arg);
29830 /* @internal */
29831 export function RouteHop_clone_ptr(arg: number): number {
29832         if(!isWasmInitialized) {
29833                 throw new Error("initializeWasm() must be awaited first!");
29834         }
29835         const nativeResponseValue = wasm.TS_RouteHop_clone_ptr(arg);
29836         return nativeResponseValue;
29837 }
29838         // struct LDKRouteHop RouteHop_clone(const struct LDKRouteHop *NONNULL_PTR orig);
29839 /* @internal */
29840 export function RouteHop_clone(orig: number): number {
29841         if(!isWasmInitialized) {
29842                 throw new Error("initializeWasm() must be awaited first!");
29843         }
29844         const nativeResponseValue = wasm.TS_RouteHop_clone(orig);
29845         return nativeResponseValue;
29846 }
29847         // uint64_t RouteHop_hash(const struct LDKRouteHop *NONNULL_PTR o);
29848 /* @internal */
29849 export function RouteHop_hash(o: number): bigint {
29850         if(!isWasmInitialized) {
29851                 throw new Error("initializeWasm() must be awaited first!");
29852         }
29853         const nativeResponseValue = wasm.TS_RouteHop_hash(o);
29854         return nativeResponseValue;
29855 }
29856         // bool RouteHop_eq(const struct LDKRouteHop *NONNULL_PTR a, const struct LDKRouteHop *NONNULL_PTR b);
29857 /* @internal */
29858 export function RouteHop_eq(a: number, b: number): boolean {
29859         if(!isWasmInitialized) {
29860                 throw new Error("initializeWasm() must be awaited first!");
29861         }
29862         const nativeResponseValue = wasm.TS_RouteHop_eq(a, b);
29863         return nativeResponseValue;
29864 }
29865         // struct LDKCVec_u8Z RouteHop_write(const struct LDKRouteHop *NONNULL_PTR obj);
29866 /* @internal */
29867 export function RouteHop_write(obj: number): number {
29868         if(!isWasmInitialized) {
29869                 throw new Error("initializeWasm() must be awaited first!");
29870         }
29871         const nativeResponseValue = wasm.TS_RouteHop_write(obj);
29872         return nativeResponseValue;
29873 }
29874         // struct LDKCResult_RouteHopDecodeErrorZ RouteHop_read(struct LDKu8slice ser);
29875 /* @internal */
29876 export function RouteHop_read(ser: number): number {
29877         if(!isWasmInitialized) {
29878                 throw new Error("initializeWasm() must be awaited first!");
29879         }
29880         const nativeResponseValue = wasm.TS_RouteHop_read(ser);
29881         return nativeResponseValue;
29882 }
29883         // void Route_free(struct LDKRoute this_obj);
29884 /* @internal */
29885 export function Route_free(this_obj: number): void {
29886         if(!isWasmInitialized) {
29887                 throw new Error("initializeWasm() must be awaited first!");
29888         }
29889         const nativeResponseValue = wasm.TS_Route_free(this_obj);
29890         // debug statements here
29891 }
29892         // struct LDKCVec_CVec_RouteHopZZ Route_get_paths(const struct LDKRoute *NONNULL_PTR this_ptr);
29893 /* @internal */
29894 export function Route_get_paths(this_ptr: number): number {
29895         if(!isWasmInitialized) {
29896                 throw new Error("initializeWasm() must be awaited first!");
29897         }
29898         const nativeResponseValue = wasm.TS_Route_get_paths(this_ptr);
29899         return nativeResponseValue;
29900 }
29901         // void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_CVec_RouteHopZZ val);
29902 /* @internal */
29903 export function Route_set_paths(this_ptr: number, val: number): void {
29904         if(!isWasmInitialized) {
29905                 throw new Error("initializeWasm() must be awaited first!");
29906         }
29907         const nativeResponseValue = wasm.TS_Route_set_paths(this_ptr, val);
29908         // debug statements here
29909 }
29910         // struct LDKPaymentParameters Route_get_payment_params(const struct LDKRoute *NONNULL_PTR this_ptr);
29911 /* @internal */
29912 export function Route_get_payment_params(this_ptr: number): number {
29913         if(!isWasmInitialized) {
29914                 throw new Error("initializeWasm() must be awaited first!");
29915         }
29916         const nativeResponseValue = wasm.TS_Route_get_payment_params(this_ptr);
29917         return nativeResponseValue;
29918 }
29919         // void Route_set_payment_params(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
29920 /* @internal */
29921 export function Route_set_payment_params(this_ptr: number, val: number): void {
29922         if(!isWasmInitialized) {
29923                 throw new Error("initializeWasm() must be awaited first!");
29924         }
29925         const nativeResponseValue = wasm.TS_Route_set_payment_params(this_ptr, val);
29926         // debug statements here
29927 }
29928         // MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_CVec_RouteHopZZ paths_arg, struct LDKPaymentParameters payment_params_arg);
29929 /* @internal */
29930 export function Route_new(paths_arg: number, payment_params_arg: number): number {
29931         if(!isWasmInitialized) {
29932                 throw new Error("initializeWasm() must be awaited first!");
29933         }
29934         const nativeResponseValue = wasm.TS_Route_new(paths_arg, payment_params_arg);
29935         return nativeResponseValue;
29936 }
29937         // uintptr_t Route_clone_ptr(LDKRoute *NONNULL_PTR arg);
29938 /* @internal */
29939 export function Route_clone_ptr(arg: number): number {
29940         if(!isWasmInitialized) {
29941                 throw new Error("initializeWasm() must be awaited first!");
29942         }
29943         const nativeResponseValue = wasm.TS_Route_clone_ptr(arg);
29944         return nativeResponseValue;
29945 }
29946         // struct LDKRoute Route_clone(const struct LDKRoute *NONNULL_PTR orig);
29947 /* @internal */
29948 export function Route_clone(orig: number): number {
29949         if(!isWasmInitialized) {
29950                 throw new Error("initializeWasm() must be awaited first!");
29951         }
29952         const nativeResponseValue = wasm.TS_Route_clone(orig);
29953         return nativeResponseValue;
29954 }
29955         // uint64_t Route_hash(const struct LDKRoute *NONNULL_PTR o);
29956 /* @internal */
29957 export function Route_hash(o: number): bigint {
29958         if(!isWasmInitialized) {
29959                 throw new Error("initializeWasm() must be awaited first!");
29960         }
29961         const nativeResponseValue = wasm.TS_Route_hash(o);
29962         return nativeResponseValue;
29963 }
29964         // bool Route_eq(const struct LDKRoute *NONNULL_PTR a, const struct LDKRoute *NONNULL_PTR b);
29965 /* @internal */
29966 export function Route_eq(a: number, b: number): boolean {
29967         if(!isWasmInitialized) {
29968                 throw new Error("initializeWasm() must be awaited first!");
29969         }
29970         const nativeResponseValue = wasm.TS_Route_eq(a, b);
29971         return nativeResponseValue;
29972 }
29973         // MUST_USE_RES uint64_t Route_get_total_fees(const struct LDKRoute *NONNULL_PTR this_arg);
29974 /* @internal */
29975 export function Route_get_total_fees(this_arg: number): bigint {
29976         if(!isWasmInitialized) {
29977                 throw new Error("initializeWasm() must be awaited first!");
29978         }
29979         const nativeResponseValue = wasm.TS_Route_get_total_fees(this_arg);
29980         return nativeResponseValue;
29981 }
29982         // MUST_USE_RES uint64_t Route_get_total_amount(const struct LDKRoute *NONNULL_PTR this_arg);
29983 /* @internal */
29984 export function Route_get_total_amount(this_arg: number): bigint {
29985         if(!isWasmInitialized) {
29986                 throw new Error("initializeWasm() must be awaited first!");
29987         }
29988         const nativeResponseValue = wasm.TS_Route_get_total_amount(this_arg);
29989         return nativeResponseValue;
29990 }
29991         // struct LDKCVec_u8Z Route_write(const struct LDKRoute *NONNULL_PTR obj);
29992 /* @internal */
29993 export function Route_write(obj: number): number {
29994         if(!isWasmInitialized) {
29995                 throw new Error("initializeWasm() must be awaited first!");
29996         }
29997         const nativeResponseValue = wasm.TS_Route_write(obj);
29998         return nativeResponseValue;
29999 }
30000         // struct LDKCResult_RouteDecodeErrorZ Route_read(struct LDKu8slice ser);
30001 /* @internal */
30002 export function Route_read(ser: number): number {
30003         if(!isWasmInitialized) {
30004                 throw new Error("initializeWasm() must be awaited first!");
30005         }
30006         const nativeResponseValue = wasm.TS_Route_read(ser);
30007         return nativeResponseValue;
30008 }
30009         // void RouteParameters_free(struct LDKRouteParameters this_obj);
30010 /* @internal */
30011 export function RouteParameters_free(this_obj: number): void {
30012         if(!isWasmInitialized) {
30013                 throw new Error("initializeWasm() must be awaited first!");
30014         }
30015         const nativeResponseValue = wasm.TS_RouteParameters_free(this_obj);
30016         // debug statements here
30017 }
30018         // struct LDKPaymentParameters RouteParameters_get_payment_params(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
30019 /* @internal */
30020 export function RouteParameters_get_payment_params(this_ptr: number): number {
30021         if(!isWasmInitialized) {
30022                 throw new Error("initializeWasm() must be awaited first!");
30023         }
30024         const nativeResponseValue = wasm.TS_RouteParameters_get_payment_params(this_ptr);
30025         return nativeResponseValue;
30026 }
30027         // void RouteParameters_set_payment_params(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
30028 /* @internal */
30029 export function RouteParameters_set_payment_params(this_ptr: number, val: number): void {
30030         if(!isWasmInitialized) {
30031                 throw new Error("initializeWasm() must be awaited first!");
30032         }
30033         const nativeResponseValue = wasm.TS_RouteParameters_set_payment_params(this_ptr, val);
30034         // debug statements here
30035 }
30036         // uint64_t RouteParameters_get_final_value_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
30037 /* @internal */
30038 export function RouteParameters_get_final_value_msat(this_ptr: number): bigint {
30039         if(!isWasmInitialized) {
30040                 throw new Error("initializeWasm() must be awaited first!");
30041         }
30042         const nativeResponseValue = wasm.TS_RouteParameters_get_final_value_msat(this_ptr);
30043         return nativeResponseValue;
30044 }
30045         // void RouteParameters_set_final_value_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint64_t val);
30046 /* @internal */
30047 export function RouteParameters_set_final_value_msat(this_ptr: number, val: bigint): void {
30048         if(!isWasmInitialized) {
30049                 throw new Error("initializeWasm() must be awaited first!");
30050         }
30051         const nativeResponseValue = wasm.TS_RouteParameters_set_final_value_msat(this_ptr, val);
30052         // debug statements here
30053 }
30054         // uint32_t RouteParameters_get_final_cltv_expiry_delta(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
30055 /* @internal */
30056 export function RouteParameters_get_final_cltv_expiry_delta(this_ptr: number): number {
30057         if(!isWasmInitialized) {
30058                 throw new Error("initializeWasm() must be awaited first!");
30059         }
30060         const nativeResponseValue = wasm.TS_RouteParameters_get_final_cltv_expiry_delta(this_ptr);
30061         return nativeResponseValue;
30062 }
30063         // void RouteParameters_set_final_cltv_expiry_delta(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint32_t val);
30064 /* @internal */
30065 export function RouteParameters_set_final_cltv_expiry_delta(this_ptr: number, val: number): void {
30066         if(!isWasmInitialized) {
30067                 throw new Error("initializeWasm() must be awaited first!");
30068         }
30069         const nativeResponseValue = wasm.TS_RouteParameters_set_final_cltv_expiry_delta(this_ptr, val);
30070         // debug statements here
30071 }
30072         // 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);
30073 /* @internal */
30074 export function RouteParameters_new(payment_params_arg: number, final_value_msat_arg: bigint, final_cltv_expiry_delta_arg: number): number {
30075         if(!isWasmInitialized) {
30076                 throw new Error("initializeWasm() must be awaited first!");
30077         }
30078         const nativeResponseValue = wasm.TS_RouteParameters_new(payment_params_arg, final_value_msat_arg, final_cltv_expiry_delta_arg);
30079         return nativeResponseValue;
30080 }
30081         // uintptr_t RouteParameters_clone_ptr(LDKRouteParameters *NONNULL_PTR arg);
30082 /* @internal */
30083 export function RouteParameters_clone_ptr(arg: number): number {
30084         if(!isWasmInitialized) {
30085                 throw new Error("initializeWasm() must be awaited first!");
30086         }
30087         const nativeResponseValue = wasm.TS_RouteParameters_clone_ptr(arg);
30088         return nativeResponseValue;
30089 }
30090         // struct LDKRouteParameters RouteParameters_clone(const struct LDKRouteParameters *NONNULL_PTR orig);
30091 /* @internal */
30092 export function RouteParameters_clone(orig: number): number {
30093         if(!isWasmInitialized) {
30094                 throw new Error("initializeWasm() must be awaited first!");
30095         }
30096         const nativeResponseValue = wasm.TS_RouteParameters_clone(orig);
30097         return nativeResponseValue;
30098 }
30099         // struct LDKCVec_u8Z RouteParameters_write(const struct LDKRouteParameters *NONNULL_PTR obj);
30100 /* @internal */
30101 export function RouteParameters_write(obj: number): number {
30102         if(!isWasmInitialized) {
30103                 throw new Error("initializeWasm() must be awaited first!");
30104         }
30105         const nativeResponseValue = wasm.TS_RouteParameters_write(obj);
30106         return nativeResponseValue;
30107 }
30108         // struct LDKCResult_RouteParametersDecodeErrorZ RouteParameters_read(struct LDKu8slice ser);
30109 /* @internal */
30110 export function RouteParameters_read(ser: number): number {
30111         if(!isWasmInitialized) {
30112                 throw new Error("initializeWasm() must be awaited first!");
30113         }
30114         const nativeResponseValue = wasm.TS_RouteParameters_read(ser);
30115         return nativeResponseValue;
30116 }
30117         // void PaymentParameters_free(struct LDKPaymentParameters this_obj);
30118 /* @internal */
30119 export function PaymentParameters_free(this_obj: number): void {
30120         if(!isWasmInitialized) {
30121                 throw new Error("initializeWasm() must be awaited first!");
30122         }
30123         const nativeResponseValue = wasm.TS_PaymentParameters_free(this_obj);
30124         // debug statements here
30125 }
30126         // struct LDKPublicKey PaymentParameters_get_payee_pubkey(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
30127 /* @internal */
30128 export function PaymentParameters_get_payee_pubkey(this_ptr: number): number {
30129         if(!isWasmInitialized) {
30130                 throw new Error("initializeWasm() must be awaited first!");
30131         }
30132         const nativeResponseValue = wasm.TS_PaymentParameters_get_payee_pubkey(this_ptr);
30133         return nativeResponseValue;
30134 }
30135         // void PaymentParameters_set_payee_pubkey(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKPublicKey val);
30136 /* @internal */
30137 export function PaymentParameters_set_payee_pubkey(this_ptr: number, val: number): void {
30138         if(!isWasmInitialized) {
30139                 throw new Error("initializeWasm() must be awaited first!");
30140         }
30141         const nativeResponseValue = wasm.TS_PaymentParameters_set_payee_pubkey(this_ptr, val);
30142         // debug statements here
30143 }
30144         // struct LDKInvoiceFeatures PaymentParameters_get_features(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
30145 /* @internal */
30146 export function PaymentParameters_get_features(this_ptr: number): number {
30147         if(!isWasmInitialized) {
30148                 throw new Error("initializeWasm() must be awaited first!");
30149         }
30150         const nativeResponseValue = wasm.TS_PaymentParameters_get_features(this_ptr);
30151         return nativeResponseValue;
30152 }
30153         // void PaymentParameters_set_features(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKInvoiceFeatures val);
30154 /* @internal */
30155 export function PaymentParameters_set_features(this_ptr: number, val: number): void {
30156         if(!isWasmInitialized) {
30157                 throw new Error("initializeWasm() must be awaited first!");
30158         }
30159         const nativeResponseValue = wasm.TS_PaymentParameters_set_features(this_ptr, val);
30160         // debug statements here
30161 }
30162         // struct LDKCVec_RouteHintZ PaymentParameters_get_route_hints(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
30163 /* @internal */
30164 export function PaymentParameters_get_route_hints(this_ptr: number): number {
30165         if(!isWasmInitialized) {
30166                 throw new Error("initializeWasm() must be awaited first!");
30167         }
30168         const nativeResponseValue = wasm.TS_PaymentParameters_get_route_hints(this_ptr);
30169         return nativeResponseValue;
30170 }
30171         // void PaymentParameters_set_route_hints(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintZ val);
30172 /* @internal */
30173 export function PaymentParameters_set_route_hints(this_ptr: number, val: number): void {
30174         if(!isWasmInitialized) {
30175                 throw new Error("initializeWasm() must be awaited first!");
30176         }
30177         const nativeResponseValue = wasm.TS_PaymentParameters_set_route_hints(this_ptr, val);
30178         // debug statements here
30179 }
30180         // struct LDKCOption_u64Z PaymentParameters_get_expiry_time(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
30181 /* @internal */
30182 export function PaymentParameters_get_expiry_time(this_ptr: number): number {
30183         if(!isWasmInitialized) {
30184                 throw new Error("initializeWasm() must be awaited first!");
30185         }
30186         const nativeResponseValue = wasm.TS_PaymentParameters_get_expiry_time(this_ptr);
30187         return nativeResponseValue;
30188 }
30189         // void PaymentParameters_set_expiry_time(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
30190 /* @internal */
30191 export function PaymentParameters_set_expiry_time(this_ptr: number, val: number): void {
30192         if(!isWasmInitialized) {
30193                 throw new Error("initializeWasm() must be awaited first!");
30194         }
30195         const nativeResponseValue = wasm.TS_PaymentParameters_set_expiry_time(this_ptr, val);
30196         // debug statements here
30197 }
30198         // uint32_t PaymentParameters_get_max_total_cltv_expiry_delta(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
30199 /* @internal */
30200 export function PaymentParameters_get_max_total_cltv_expiry_delta(this_ptr: number): number {
30201         if(!isWasmInitialized) {
30202                 throw new Error("initializeWasm() must be awaited first!");
30203         }
30204         const nativeResponseValue = wasm.TS_PaymentParameters_get_max_total_cltv_expiry_delta(this_ptr);
30205         return nativeResponseValue;
30206 }
30207         // void PaymentParameters_set_max_total_cltv_expiry_delta(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint32_t val);
30208 /* @internal */
30209 export function PaymentParameters_set_max_total_cltv_expiry_delta(this_ptr: number, val: number): void {
30210         if(!isWasmInitialized) {
30211                 throw new Error("initializeWasm() must be awaited first!");
30212         }
30213         const nativeResponseValue = wasm.TS_PaymentParameters_set_max_total_cltv_expiry_delta(this_ptr, val);
30214         // debug statements here
30215 }
30216         // uint8_t PaymentParameters_get_max_mpp_path_count(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
30217 /* @internal */
30218 export function PaymentParameters_get_max_mpp_path_count(this_ptr: number): number {
30219         if(!isWasmInitialized) {
30220                 throw new Error("initializeWasm() must be awaited first!");
30221         }
30222         const nativeResponseValue = wasm.TS_PaymentParameters_get_max_mpp_path_count(this_ptr);
30223         return nativeResponseValue;
30224 }
30225         // void PaymentParameters_set_max_mpp_path_count(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val);
30226 /* @internal */
30227 export function PaymentParameters_set_max_mpp_path_count(this_ptr: number, val: number): void {
30228         if(!isWasmInitialized) {
30229                 throw new Error("initializeWasm() must be awaited first!");
30230         }
30231         const nativeResponseValue = wasm.TS_PaymentParameters_set_max_mpp_path_count(this_ptr, val);
30232         // debug statements here
30233 }
30234         // 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, uint8_t max_mpp_path_count_arg);
30235 /* @internal */
30236 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, max_mpp_path_count_arg: number): number {
30237         if(!isWasmInitialized) {
30238                 throw new Error("initializeWasm() must be awaited first!");
30239         }
30240         const nativeResponseValue = wasm.TS_PaymentParameters_new(payee_pubkey_arg, features_arg, route_hints_arg, expiry_time_arg, max_total_cltv_expiry_delta_arg, max_mpp_path_count_arg);
30241         return nativeResponseValue;
30242 }
30243         // uintptr_t PaymentParameters_clone_ptr(LDKPaymentParameters *NONNULL_PTR arg);
30244 /* @internal */
30245 export function PaymentParameters_clone_ptr(arg: number): number {
30246         if(!isWasmInitialized) {
30247                 throw new Error("initializeWasm() must be awaited first!");
30248         }
30249         const nativeResponseValue = wasm.TS_PaymentParameters_clone_ptr(arg);
30250         return nativeResponseValue;
30251 }
30252         // struct LDKPaymentParameters PaymentParameters_clone(const struct LDKPaymentParameters *NONNULL_PTR orig);
30253 /* @internal */
30254 export function PaymentParameters_clone(orig: number): number {
30255         if(!isWasmInitialized) {
30256                 throw new Error("initializeWasm() must be awaited first!");
30257         }
30258         const nativeResponseValue = wasm.TS_PaymentParameters_clone(orig);
30259         return nativeResponseValue;
30260 }
30261         // uint64_t PaymentParameters_hash(const struct LDKPaymentParameters *NONNULL_PTR o);
30262 /* @internal */
30263 export function PaymentParameters_hash(o: number): bigint {
30264         if(!isWasmInitialized) {
30265                 throw new Error("initializeWasm() must be awaited first!");
30266         }
30267         const nativeResponseValue = wasm.TS_PaymentParameters_hash(o);
30268         return nativeResponseValue;
30269 }
30270         // bool PaymentParameters_eq(const struct LDKPaymentParameters *NONNULL_PTR a, const struct LDKPaymentParameters *NONNULL_PTR b);
30271 /* @internal */
30272 export function PaymentParameters_eq(a: number, b: number): boolean {
30273         if(!isWasmInitialized) {
30274                 throw new Error("initializeWasm() must be awaited first!");
30275         }
30276         const nativeResponseValue = wasm.TS_PaymentParameters_eq(a, b);
30277         return nativeResponseValue;
30278 }
30279         // struct LDKCVec_u8Z PaymentParameters_write(const struct LDKPaymentParameters *NONNULL_PTR obj);
30280 /* @internal */
30281 export function PaymentParameters_write(obj: number): number {
30282         if(!isWasmInitialized) {
30283                 throw new Error("initializeWasm() must be awaited first!");
30284         }
30285         const nativeResponseValue = wasm.TS_PaymentParameters_write(obj);
30286         return nativeResponseValue;
30287 }
30288         // struct LDKCResult_PaymentParametersDecodeErrorZ PaymentParameters_read(struct LDKu8slice ser);
30289 /* @internal */
30290 export function PaymentParameters_read(ser: number): number {
30291         if(!isWasmInitialized) {
30292                 throw new Error("initializeWasm() must be awaited first!");
30293         }
30294         const nativeResponseValue = wasm.TS_PaymentParameters_read(ser);
30295         return nativeResponseValue;
30296 }
30297         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_node_id(struct LDKPublicKey payee_pubkey);
30298 /* @internal */
30299 export function PaymentParameters_from_node_id(payee_pubkey: number): number {
30300         if(!isWasmInitialized) {
30301                 throw new Error("initializeWasm() must be awaited first!");
30302         }
30303         const nativeResponseValue = wasm.TS_PaymentParameters_from_node_id(payee_pubkey);
30304         return nativeResponseValue;
30305 }
30306         // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_for_keysend(struct LDKPublicKey payee_pubkey);
30307 /* @internal */
30308 export function PaymentParameters_for_keysend(payee_pubkey: number): number {
30309         if(!isWasmInitialized) {
30310                 throw new Error("initializeWasm() must be awaited first!");
30311         }
30312         const nativeResponseValue = wasm.TS_PaymentParameters_for_keysend(payee_pubkey);
30313         return nativeResponseValue;
30314 }
30315         // void RouteHint_free(struct LDKRouteHint this_obj);
30316 /* @internal */
30317 export function RouteHint_free(this_obj: number): void {
30318         if(!isWasmInitialized) {
30319                 throw new Error("initializeWasm() must be awaited first!");
30320         }
30321         const nativeResponseValue = wasm.TS_RouteHint_free(this_obj);
30322         // debug statements here
30323 }
30324         // struct LDKCVec_RouteHintHopZ RouteHint_get_a(const struct LDKRouteHint *NONNULL_PTR this_ptr);
30325 /* @internal */
30326 export function RouteHint_get_a(this_ptr: number): number {
30327         if(!isWasmInitialized) {
30328                 throw new Error("initializeWasm() must be awaited first!");
30329         }
30330         const nativeResponseValue = wasm.TS_RouteHint_get_a(this_ptr);
30331         return nativeResponseValue;
30332 }
30333         // void RouteHint_set_a(struct LDKRouteHint *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintHopZ val);
30334 /* @internal */
30335 export function RouteHint_set_a(this_ptr: number, val: number): void {
30336         if(!isWasmInitialized) {
30337                 throw new Error("initializeWasm() must be awaited first!");
30338         }
30339         const nativeResponseValue = wasm.TS_RouteHint_set_a(this_ptr, val);
30340         // debug statements here
30341 }
30342         // MUST_USE_RES struct LDKRouteHint RouteHint_new(struct LDKCVec_RouteHintHopZ a_arg);
30343 /* @internal */
30344 export function RouteHint_new(a_arg: number): number {
30345         if(!isWasmInitialized) {
30346                 throw new Error("initializeWasm() must be awaited first!");
30347         }
30348         const nativeResponseValue = wasm.TS_RouteHint_new(a_arg);
30349         return nativeResponseValue;
30350 }
30351         // uintptr_t RouteHint_clone_ptr(LDKRouteHint *NONNULL_PTR arg);
30352 /* @internal */
30353 export function RouteHint_clone_ptr(arg: number): number {
30354         if(!isWasmInitialized) {
30355                 throw new Error("initializeWasm() must be awaited first!");
30356         }
30357         const nativeResponseValue = wasm.TS_RouteHint_clone_ptr(arg);
30358         return nativeResponseValue;
30359 }
30360         // struct LDKRouteHint RouteHint_clone(const struct LDKRouteHint *NONNULL_PTR orig);
30361 /* @internal */
30362 export function RouteHint_clone(orig: number): number {
30363         if(!isWasmInitialized) {
30364                 throw new Error("initializeWasm() must be awaited first!");
30365         }
30366         const nativeResponseValue = wasm.TS_RouteHint_clone(orig);
30367         return nativeResponseValue;
30368 }
30369         // uint64_t RouteHint_hash(const struct LDKRouteHint *NONNULL_PTR o);
30370 /* @internal */
30371 export function RouteHint_hash(o: number): bigint {
30372         if(!isWasmInitialized) {
30373                 throw new Error("initializeWasm() must be awaited first!");
30374         }
30375         const nativeResponseValue = wasm.TS_RouteHint_hash(o);
30376         return nativeResponseValue;
30377 }
30378         // bool RouteHint_eq(const struct LDKRouteHint *NONNULL_PTR a, const struct LDKRouteHint *NONNULL_PTR b);
30379 /* @internal */
30380 export function RouteHint_eq(a: number, b: number): boolean {
30381         if(!isWasmInitialized) {
30382                 throw new Error("initializeWasm() must be awaited first!");
30383         }
30384         const nativeResponseValue = wasm.TS_RouteHint_eq(a, b);
30385         return nativeResponseValue;
30386 }
30387         // struct LDKCVec_u8Z RouteHint_write(const struct LDKRouteHint *NONNULL_PTR obj);
30388 /* @internal */
30389 export function RouteHint_write(obj: number): number {
30390         if(!isWasmInitialized) {
30391                 throw new Error("initializeWasm() must be awaited first!");
30392         }
30393         const nativeResponseValue = wasm.TS_RouteHint_write(obj);
30394         return nativeResponseValue;
30395 }
30396         // struct LDKCResult_RouteHintDecodeErrorZ RouteHint_read(struct LDKu8slice ser);
30397 /* @internal */
30398 export function RouteHint_read(ser: number): number {
30399         if(!isWasmInitialized) {
30400                 throw new Error("initializeWasm() must be awaited first!");
30401         }
30402         const nativeResponseValue = wasm.TS_RouteHint_read(ser);
30403         return nativeResponseValue;
30404 }
30405         // void RouteHintHop_free(struct LDKRouteHintHop this_obj);
30406 /* @internal */
30407 export function RouteHintHop_free(this_obj: number): void {
30408         if(!isWasmInitialized) {
30409                 throw new Error("initializeWasm() must be awaited first!");
30410         }
30411         const nativeResponseValue = wasm.TS_RouteHintHop_free(this_obj);
30412         // debug statements here
30413 }
30414         // struct LDKPublicKey RouteHintHop_get_src_node_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
30415 /* @internal */
30416 export function RouteHintHop_get_src_node_id(this_ptr: number): number {
30417         if(!isWasmInitialized) {
30418                 throw new Error("initializeWasm() must be awaited first!");
30419         }
30420         const nativeResponseValue = wasm.TS_RouteHintHop_get_src_node_id(this_ptr);
30421         return nativeResponseValue;
30422 }
30423         // void RouteHintHop_set_src_node_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
30424 /* @internal */
30425 export function RouteHintHop_set_src_node_id(this_ptr: number, val: number): void {
30426         if(!isWasmInitialized) {
30427                 throw new Error("initializeWasm() must be awaited first!");
30428         }
30429         const nativeResponseValue = wasm.TS_RouteHintHop_set_src_node_id(this_ptr, val);
30430         // debug statements here
30431 }
30432         // uint64_t RouteHintHop_get_short_channel_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
30433 /* @internal */
30434 export function RouteHintHop_get_short_channel_id(this_ptr: number): bigint {
30435         if(!isWasmInitialized) {
30436                 throw new Error("initializeWasm() must be awaited first!");
30437         }
30438         const nativeResponseValue = wasm.TS_RouteHintHop_get_short_channel_id(this_ptr);
30439         return nativeResponseValue;
30440 }
30441         // void RouteHintHop_set_short_channel_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint64_t val);
30442 /* @internal */
30443 export function RouteHintHop_set_short_channel_id(this_ptr: number, val: bigint): void {
30444         if(!isWasmInitialized) {
30445                 throw new Error("initializeWasm() must be awaited first!");
30446         }
30447         const nativeResponseValue = wasm.TS_RouteHintHop_set_short_channel_id(this_ptr, val);
30448         // debug statements here
30449 }
30450         // struct LDKRoutingFees RouteHintHop_get_fees(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
30451 /* @internal */
30452 export function RouteHintHop_get_fees(this_ptr: number): number {
30453         if(!isWasmInitialized) {
30454                 throw new Error("initializeWasm() must be awaited first!");
30455         }
30456         const nativeResponseValue = wasm.TS_RouteHintHop_get_fees(this_ptr);
30457         return nativeResponseValue;
30458 }
30459         // void RouteHintHop_set_fees(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
30460 /* @internal */
30461 export function RouteHintHop_set_fees(this_ptr: number, val: number): void {
30462         if(!isWasmInitialized) {
30463                 throw new Error("initializeWasm() must be awaited first!");
30464         }
30465         const nativeResponseValue = wasm.TS_RouteHintHop_set_fees(this_ptr, val);
30466         // debug statements here
30467 }
30468         // uint16_t RouteHintHop_get_cltv_expiry_delta(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
30469 /* @internal */
30470 export function RouteHintHop_get_cltv_expiry_delta(this_ptr: number): number {
30471         if(!isWasmInitialized) {
30472                 throw new Error("initializeWasm() must be awaited first!");
30473         }
30474         const nativeResponseValue = wasm.TS_RouteHintHop_get_cltv_expiry_delta(this_ptr);
30475         return nativeResponseValue;
30476 }
30477         // void RouteHintHop_set_cltv_expiry_delta(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint16_t val);
30478 /* @internal */
30479 export function RouteHintHop_set_cltv_expiry_delta(this_ptr: number, val: number): void {
30480         if(!isWasmInitialized) {
30481                 throw new Error("initializeWasm() must be awaited first!");
30482         }
30483         const nativeResponseValue = wasm.TS_RouteHintHop_set_cltv_expiry_delta(this_ptr, val);
30484         // debug statements here
30485 }
30486         // struct LDKCOption_u64Z RouteHintHop_get_htlc_minimum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
30487 /* @internal */
30488 export function RouteHintHop_get_htlc_minimum_msat(this_ptr: number): number {
30489         if(!isWasmInitialized) {
30490                 throw new Error("initializeWasm() must be awaited first!");
30491         }
30492         const nativeResponseValue = wasm.TS_RouteHintHop_get_htlc_minimum_msat(this_ptr);
30493         return nativeResponseValue;
30494 }
30495         // void RouteHintHop_set_htlc_minimum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
30496 /* @internal */
30497 export function RouteHintHop_set_htlc_minimum_msat(this_ptr: number, val: number): void {
30498         if(!isWasmInitialized) {
30499                 throw new Error("initializeWasm() must be awaited first!");
30500         }
30501         const nativeResponseValue = wasm.TS_RouteHintHop_set_htlc_minimum_msat(this_ptr, val);
30502         // debug statements here
30503 }
30504         // struct LDKCOption_u64Z RouteHintHop_get_htlc_maximum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
30505 /* @internal */
30506 export function RouteHintHop_get_htlc_maximum_msat(this_ptr: number): number {
30507         if(!isWasmInitialized) {
30508                 throw new Error("initializeWasm() must be awaited first!");
30509         }
30510         const nativeResponseValue = wasm.TS_RouteHintHop_get_htlc_maximum_msat(this_ptr);
30511         return nativeResponseValue;
30512 }
30513         // void RouteHintHop_set_htlc_maximum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
30514 /* @internal */
30515 export function RouteHintHop_set_htlc_maximum_msat(this_ptr: number, val: number): void {
30516         if(!isWasmInitialized) {
30517                 throw new Error("initializeWasm() must be awaited first!");
30518         }
30519         const nativeResponseValue = wasm.TS_RouteHintHop_set_htlc_maximum_msat(this_ptr, val);
30520         // debug statements here
30521 }
30522         // 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);
30523 /* @internal */
30524 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 {
30525         if(!isWasmInitialized) {
30526                 throw new Error("initializeWasm() must be awaited first!");
30527         }
30528         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);
30529         return nativeResponseValue;
30530 }
30531         // uintptr_t RouteHintHop_clone_ptr(LDKRouteHintHop *NONNULL_PTR arg);
30532 /* @internal */
30533 export function RouteHintHop_clone_ptr(arg: number): number {
30534         if(!isWasmInitialized) {
30535                 throw new Error("initializeWasm() must be awaited first!");
30536         }
30537         const nativeResponseValue = wasm.TS_RouteHintHop_clone_ptr(arg);
30538         return nativeResponseValue;
30539 }
30540         // struct LDKRouteHintHop RouteHintHop_clone(const struct LDKRouteHintHop *NONNULL_PTR orig);
30541 /* @internal */
30542 export function RouteHintHop_clone(orig: number): number {
30543         if(!isWasmInitialized) {
30544                 throw new Error("initializeWasm() must be awaited first!");
30545         }
30546         const nativeResponseValue = wasm.TS_RouteHintHop_clone(orig);
30547         return nativeResponseValue;
30548 }
30549         // uint64_t RouteHintHop_hash(const struct LDKRouteHintHop *NONNULL_PTR o);
30550 /* @internal */
30551 export function RouteHintHop_hash(o: number): bigint {
30552         if(!isWasmInitialized) {
30553                 throw new Error("initializeWasm() must be awaited first!");
30554         }
30555         const nativeResponseValue = wasm.TS_RouteHintHop_hash(o);
30556         return nativeResponseValue;
30557 }
30558         // bool RouteHintHop_eq(const struct LDKRouteHintHop *NONNULL_PTR a, const struct LDKRouteHintHop *NONNULL_PTR b);
30559 /* @internal */
30560 export function RouteHintHop_eq(a: number, b: number): boolean {
30561         if(!isWasmInitialized) {
30562                 throw new Error("initializeWasm() must be awaited first!");
30563         }
30564         const nativeResponseValue = wasm.TS_RouteHintHop_eq(a, b);
30565         return nativeResponseValue;
30566 }
30567         // struct LDKCVec_u8Z RouteHintHop_write(const struct LDKRouteHintHop *NONNULL_PTR obj);
30568 /* @internal */
30569 export function RouteHintHop_write(obj: number): number {
30570         if(!isWasmInitialized) {
30571                 throw new Error("initializeWasm() must be awaited first!");
30572         }
30573         const nativeResponseValue = wasm.TS_RouteHintHop_write(obj);
30574         return nativeResponseValue;
30575 }
30576         // struct LDKCResult_RouteHintHopDecodeErrorZ RouteHintHop_read(struct LDKu8slice ser);
30577 /* @internal */
30578 export function RouteHintHop_read(ser: number): number {
30579         if(!isWasmInitialized) {
30580                 throw new Error("initializeWasm() must be awaited first!");
30581         }
30582         const nativeResponseValue = wasm.TS_RouteHintHop_read(ser);
30583         return nativeResponseValue;
30584 }
30585         // struct LDKCResult_RouteLightningErrorZ find_route(struct LDKPublicKey our_node_pubkey, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKLogger logger, const struct LDKScore *NONNULL_PTR scorer, const uint8_t (*random_seed_bytes)[32]);
30586 /* @internal */
30587 export function find_route(our_node_pubkey: number, route_params: number, network_graph: number, first_hops: number, logger: number, scorer: number, random_seed_bytes: number): number {
30588         if(!isWasmInitialized) {
30589                 throw new Error("initializeWasm() must be awaited first!");
30590         }
30591         const nativeResponseValue = wasm.TS_find_route(our_node_pubkey, route_params, network_graph, first_hops, logger, scorer, random_seed_bytes);
30592         return nativeResponseValue;
30593 }
30594         // struct LDKCResult_RouteLightningErrorZ build_route_from_hops(struct LDKPublicKey our_node_pubkey, struct LDKCVec_PublicKeyZ hops, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger, const uint8_t (*random_seed_bytes)[32]);
30595 /* @internal */
30596 export function build_route_from_hops(our_node_pubkey: number, hops: number, route_params: number, network_graph: number, logger: number, random_seed_bytes: number): number {
30597         if(!isWasmInitialized) {
30598                 throw new Error("initializeWasm() must be awaited first!");
30599         }
30600         const nativeResponseValue = wasm.TS_build_route_from_hops(our_node_pubkey, hops, route_params, network_graph, logger, random_seed_bytes);
30601         return nativeResponseValue;
30602 }
30603         // void Score_free(struct LDKScore this_ptr);
30604 /* @internal */
30605 export function Score_free(this_ptr: number): void {
30606         if(!isWasmInitialized) {
30607                 throw new Error("initializeWasm() must be awaited first!");
30608         }
30609         const nativeResponseValue = wasm.TS_Score_free(this_ptr);
30610         // debug statements here
30611 }
30612         // void LockableScore_free(struct LDKLockableScore this_ptr);
30613 /* @internal */
30614 export function LockableScore_free(this_ptr: number): void {
30615         if(!isWasmInitialized) {
30616                 throw new Error("initializeWasm() must be awaited first!");
30617         }
30618         const nativeResponseValue = wasm.TS_LockableScore_free(this_ptr);
30619         // debug statements here
30620 }
30621         // void MultiThreadedLockableScore_free(struct LDKMultiThreadedLockableScore this_obj);
30622 /* @internal */
30623 export function MultiThreadedLockableScore_free(this_obj: number): void {
30624         if(!isWasmInitialized) {
30625                 throw new Error("initializeWasm() must be awaited first!");
30626         }
30627         const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_free(this_obj);
30628         // debug statements here
30629 }
30630         // struct LDKCVec_u8Z MultiThreadedLockableScore_write(const struct LDKMultiThreadedLockableScore *NONNULL_PTR obj);
30631 /* @internal */
30632 export function MultiThreadedLockableScore_write(obj: number): number {
30633         if(!isWasmInitialized) {
30634                 throw new Error("initializeWasm() must be awaited first!");
30635         }
30636         const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_write(obj);
30637         return nativeResponseValue;
30638 }
30639         // MUST_USE_RES struct LDKMultiThreadedLockableScore MultiThreadedLockableScore_new(struct LDKScore score);
30640 /* @internal */
30641 export function MultiThreadedLockableScore_new(score: number): number {
30642         if(!isWasmInitialized) {
30643                 throw new Error("initializeWasm() must be awaited first!");
30644         }
30645         const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_new(score);
30646         return nativeResponseValue;
30647 }
30648         // void ChannelUsage_free(struct LDKChannelUsage this_obj);
30649 /* @internal */
30650 export function ChannelUsage_free(this_obj: number): void {
30651         if(!isWasmInitialized) {
30652                 throw new Error("initializeWasm() must be awaited first!");
30653         }
30654         const nativeResponseValue = wasm.TS_ChannelUsage_free(this_obj);
30655         // debug statements here
30656 }
30657         // uint64_t ChannelUsage_get_amount_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
30658 /* @internal */
30659 export function ChannelUsage_get_amount_msat(this_ptr: number): bigint {
30660         if(!isWasmInitialized) {
30661                 throw new Error("initializeWasm() must be awaited first!");
30662         }
30663         const nativeResponseValue = wasm.TS_ChannelUsage_get_amount_msat(this_ptr);
30664         return nativeResponseValue;
30665 }
30666         // void ChannelUsage_set_amount_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
30667 /* @internal */
30668 export function ChannelUsage_set_amount_msat(this_ptr: number, val: bigint): void {
30669         if(!isWasmInitialized) {
30670                 throw new Error("initializeWasm() must be awaited first!");
30671         }
30672         const nativeResponseValue = wasm.TS_ChannelUsage_set_amount_msat(this_ptr, val);
30673         // debug statements here
30674 }
30675         // uint64_t ChannelUsage_get_inflight_htlc_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
30676 /* @internal */
30677 export function ChannelUsage_get_inflight_htlc_msat(this_ptr: number): bigint {
30678         if(!isWasmInitialized) {
30679                 throw new Error("initializeWasm() must be awaited first!");
30680         }
30681         const nativeResponseValue = wasm.TS_ChannelUsage_get_inflight_htlc_msat(this_ptr);
30682         return nativeResponseValue;
30683 }
30684         // void ChannelUsage_set_inflight_htlc_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
30685 /* @internal */
30686 export function ChannelUsage_set_inflight_htlc_msat(this_ptr: number, val: bigint): void {
30687         if(!isWasmInitialized) {
30688                 throw new Error("initializeWasm() must be awaited first!");
30689         }
30690         const nativeResponseValue = wasm.TS_ChannelUsage_set_inflight_htlc_msat(this_ptr, val);
30691         // debug statements here
30692 }
30693         // struct LDKEffectiveCapacity ChannelUsage_get_effective_capacity(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
30694 /* @internal */
30695 export function ChannelUsage_get_effective_capacity(this_ptr: number): number {
30696         if(!isWasmInitialized) {
30697                 throw new Error("initializeWasm() must be awaited first!");
30698         }
30699         const nativeResponseValue = wasm.TS_ChannelUsage_get_effective_capacity(this_ptr);
30700         return nativeResponseValue;
30701 }
30702         // void ChannelUsage_set_effective_capacity(struct LDKChannelUsage *NONNULL_PTR this_ptr, struct LDKEffectiveCapacity val);
30703 /* @internal */
30704 export function ChannelUsage_set_effective_capacity(this_ptr: number, val: number): void {
30705         if(!isWasmInitialized) {
30706                 throw new Error("initializeWasm() must be awaited first!");
30707         }
30708         const nativeResponseValue = wasm.TS_ChannelUsage_set_effective_capacity(this_ptr, val);
30709         // debug statements here
30710 }
30711         // MUST_USE_RES struct LDKChannelUsage ChannelUsage_new(uint64_t amount_msat_arg, uint64_t inflight_htlc_msat_arg, struct LDKEffectiveCapacity effective_capacity_arg);
30712 /* @internal */
30713 export function ChannelUsage_new(amount_msat_arg: bigint, inflight_htlc_msat_arg: bigint, effective_capacity_arg: number): number {
30714         if(!isWasmInitialized) {
30715                 throw new Error("initializeWasm() must be awaited first!");
30716         }
30717         const nativeResponseValue = wasm.TS_ChannelUsage_new(amount_msat_arg, inflight_htlc_msat_arg, effective_capacity_arg);
30718         return nativeResponseValue;
30719 }
30720         // uintptr_t ChannelUsage_clone_ptr(LDKChannelUsage *NONNULL_PTR arg);
30721 /* @internal */
30722 export function ChannelUsage_clone_ptr(arg: number): number {
30723         if(!isWasmInitialized) {
30724                 throw new Error("initializeWasm() must be awaited first!");
30725         }
30726         const nativeResponseValue = wasm.TS_ChannelUsage_clone_ptr(arg);
30727         return nativeResponseValue;
30728 }
30729         // struct LDKChannelUsage ChannelUsage_clone(const struct LDKChannelUsage *NONNULL_PTR orig);
30730 /* @internal */
30731 export function ChannelUsage_clone(orig: number): number {
30732         if(!isWasmInitialized) {
30733                 throw new Error("initializeWasm() must be awaited first!");
30734         }
30735         const nativeResponseValue = wasm.TS_ChannelUsage_clone(orig);
30736         return nativeResponseValue;
30737 }
30738         // void FixedPenaltyScorer_free(struct LDKFixedPenaltyScorer this_obj);
30739 /* @internal */
30740 export function FixedPenaltyScorer_free(this_obj: number): void {
30741         if(!isWasmInitialized) {
30742                 throw new Error("initializeWasm() must be awaited first!");
30743         }
30744         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_free(this_obj);
30745         // debug statements here
30746 }
30747         // uintptr_t FixedPenaltyScorer_clone_ptr(LDKFixedPenaltyScorer *NONNULL_PTR arg);
30748 /* @internal */
30749 export function FixedPenaltyScorer_clone_ptr(arg: number): number {
30750         if(!isWasmInitialized) {
30751                 throw new Error("initializeWasm() must be awaited first!");
30752         }
30753         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_clone_ptr(arg);
30754         return nativeResponseValue;
30755 }
30756         // struct LDKFixedPenaltyScorer FixedPenaltyScorer_clone(const struct LDKFixedPenaltyScorer *NONNULL_PTR orig);
30757 /* @internal */
30758 export function FixedPenaltyScorer_clone(orig: number): number {
30759         if(!isWasmInitialized) {
30760                 throw new Error("initializeWasm() must be awaited first!");
30761         }
30762         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_clone(orig);
30763         return nativeResponseValue;
30764 }
30765         // MUST_USE_RES struct LDKFixedPenaltyScorer FixedPenaltyScorer_with_penalty(uint64_t penalty_msat);
30766 /* @internal */
30767 export function FixedPenaltyScorer_with_penalty(penalty_msat: bigint): number {
30768         if(!isWasmInitialized) {
30769                 throw new Error("initializeWasm() must be awaited first!");
30770         }
30771         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_with_penalty(penalty_msat);
30772         return nativeResponseValue;
30773 }
30774         // struct LDKScore FixedPenaltyScorer_as_Score(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg);
30775 /* @internal */
30776 export function FixedPenaltyScorer_as_Score(this_arg: number): number {
30777         if(!isWasmInitialized) {
30778                 throw new Error("initializeWasm() must be awaited first!");
30779         }
30780         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_as_Score(this_arg);
30781         return nativeResponseValue;
30782 }
30783         // struct LDKCVec_u8Z FixedPenaltyScorer_write(const struct LDKFixedPenaltyScorer *NONNULL_PTR obj);
30784 /* @internal */
30785 export function FixedPenaltyScorer_write(obj: number): number {
30786         if(!isWasmInitialized) {
30787                 throw new Error("initializeWasm() must be awaited first!");
30788         }
30789         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_write(obj);
30790         return nativeResponseValue;
30791 }
30792         // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ FixedPenaltyScorer_read(struct LDKu8slice ser, uint64_t arg);
30793 /* @internal */
30794 export function FixedPenaltyScorer_read(ser: number, arg: bigint): number {
30795         if(!isWasmInitialized) {
30796                 throw new Error("initializeWasm() must be awaited first!");
30797         }
30798         const nativeResponseValue = wasm.TS_FixedPenaltyScorer_read(ser, arg);
30799         return nativeResponseValue;
30800 }
30801         // void ProbabilisticScorer_free(struct LDKProbabilisticScorer this_obj);
30802 /* @internal */
30803 export function ProbabilisticScorer_free(this_obj: number): void {
30804         if(!isWasmInitialized) {
30805                 throw new Error("initializeWasm() must be awaited first!");
30806         }
30807         const nativeResponseValue = wasm.TS_ProbabilisticScorer_free(this_obj);
30808         // debug statements here
30809 }
30810         // void ProbabilisticScoringParameters_free(struct LDKProbabilisticScoringParameters this_obj);
30811 /* @internal */
30812 export function ProbabilisticScoringParameters_free(this_obj: number): void {
30813         if(!isWasmInitialized) {
30814                 throw new Error("initializeWasm() must be awaited first!");
30815         }
30816         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_free(this_obj);
30817         // debug statements here
30818 }
30819         // uint64_t ProbabilisticScoringParameters_get_base_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
30820 /* @internal */
30821 export function ProbabilisticScoringParameters_get_base_penalty_msat(this_ptr: number): bigint {
30822         if(!isWasmInitialized) {
30823                 throw new Error("initializeWasm() must be awaited first!");
30824         }
30825         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_base_penalty_msat(this_ptr);
30826         return nativeResponseValue;
30827 }
30828         // void ProbabilisticScoringParameters_set_base_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
30829 /* @internal */
30830 export function ProbabilisticScoringParameters_set_base_penalty_msat(this_ptr: number, val: bigint): void {
30831         if(!isWasmInitialized) {
30832                 throw new Error("initializeWasm() must be awaited first!");
30833         }
30834         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_base_penalty_msat(this_ptr, val);
30835         // debug statements here
30836 }
30837         // uint64_t ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
30838 /* @internal */
30839 export function ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(this_ptr: number): bigint {
30840         if(!isWasmInitialized) {
30841                 throw new Error("initializeWasm() must be awaited first!");
30842         }
30843         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(this_ptr);
30844         return nativeResponseValue;
30845 }
30846         // void ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
30847 /* @internal */
30848 export function ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(this_ptr: number, val: bigint): void {
30849         if(!isWasmInitialized) {
30850                 throw new Error("initializeWasm() must be awaited first!");
30851         }
30852         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(this_ptr, val);
30853         // debug statements here
30854 }
30855         // uint64_t ProbabilisticScoringParameters_get_liquidity_offset_half_life(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
30856 /* @internal */
30857 export function ProbabilisticScoringParameters_get_liquidity_offset_half_life(this_ptr: number): bigint {
30858         if(!isWasmInitialized) {
30859                 throw new Error("initializeWasm() must be awaited first!");
30860         }
30861         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_liquidity_offset_half_life(this_ptr);
30862         return nativeResponseValue;
30863 }
30864         // void ProbabilisticScoringParameters_set_liquidity_offset_half_life(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
30865 /* @internal */
30866 export function ProbabilisticScoringParameters_set_liquidity_offset_half_life(this_ptr: number, val: bigint): void {
30867         if(!isWasmInitialized) {
30868                 throw new Error("initializeWasm() must be awaited first!");
30869         }
30870         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_liquidity_offset_half_life(this_ptr, val);
30871         // debug statements here
30872 }
30873         // uint64_t ProbabilisticScoringParameters_get_amount_penalty_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
30874 /* @internal */
30875 export function ProbabilisticScoringParameters_get_amount_penalty_multiplier_msat(this_ptr: number): bigint {
30876         if(!isWasmInitialized) {
30877                 throw new Error("initializeWasm() must be awaited first!");
30878         }
30879         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_amount_penalty_multiplier_msat(this_ptr);
30880         return nativeResponseValue;
30881 }
30882         // void ProbabilisticScoringParameters_set_amount_penalty_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
30883 /* @internal */
30884 export function ProbabilisticScoringParameters_set_amount_penalty_multiplier_msat(this_ptr: number, val: bigint): void {
30885         if(!isWasmInitialized) {
30886                 throw new Error("initializeWasm() must be awaited first!");
30887         }
30888         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_amount_penalty_multiplier_msat(this_ptr, val);
30889         // debug statements here
30890 }
30891         // uint64_t ProbabilisticScoringParameters_get_anti_probing_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
30892 /* @internal */
30893 export function ProbabilisticScoringParameters_get_anti_probing_penalty_msat(this_ptr: number): bigint {
30894         if(!isWasmInitialized) {
30895                 throw new Error("initializeWasm() must be awaited first!");
30896         }
30897         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_anti_probing_penalty_msat(this_ptr);
30898         return nativeResponseValue;
30899 }
30900         // void ProbabilisticScoringParameters_set_anti_probing_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
30901 /* @internal */
30902 export function ProbabilisticScoringParameters_set_anti_probing_penalty_msat(this_ptr: number, val: bigint): void {
30903         if(!isWasmInitialized) {
30904                 throw new Error("initializeWasm() must be awaited first!");
30905         }
30906         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_anti_probing_penalty_msat(this_ptr, val);
30907         // debug statements here
30908 }
30909         // uintptr_t ProbabilisticScoringParameters_clone_ptr(LDKProbabilisticScoringParameters *NONNULL_PTR arg);
30910 /* @internal */
30911 export function ProbabilisticScoringParameters_clone_ptr(arg: number): number {
30912         if(!isWasmInitialized) {
30913                 throw new Error("initializeWasm() must be awaited first!");
30914         }
30915         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_clone_ptr(arg);
30916         return nativeResponseValue;
30917 }
30918         // struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_clone(const struct LDKProbabilisticScoringParameters *NONNULL_PTR orig);
30919 /* @internal */
30920 export function ProbabilisticScoringParameters_clone(orig: number): number {
30921         if(!isWasmInitialized) {
30922                 throw new Error("initializeWasm() must be awaited first!");
30923         }
30924         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_clone(orig);
30925         return nativeResponseValue;
30926 }
30927         // MUST_USE_RES struct LDKProbabilisticScorer ProbabilisticScorer_new(struct LDKProbabilisticScoringParameters params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
30928 /* @internal */
30929 export function ProbabilisticScorer_new(params: number, network_graph: number, logger: number): number {
30930         if(!isWasmInitialized) {
30931                 throw new Error("initializeWasm() must be awaited first!");
30932         }
30933         const nativeResponseValue = wasm.TS_ProbabilisticScorer_new(params, network_graph, logger);
30934         return nativeResponseValue;
30935 }
30936         // void ProbabilisticScorer_debug_log_liquidity_stats(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
30937 /* @internal */
30938 export function ProbabilisticScorer_debug_log_liquidity_stats(this_arg: number): void {
30939         if(!isWasmInitialized) {
30940                 throw new Error("initializeWasm() must be awaited first!");
30941         }
30942         const nativeResponseValue = wasm.TS_ProbabilisticScorer_debug_log_liquidity_stats(this_arg);
30943         // debug statements here
30944 }
30945         // MUST_USE_RES struct LDKCOption_C2Tuple_u64u64ZZ ProbabilisticScorer_estimated_channel_liquidity_range(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target);
30946 /* @internal */
30947 export function ProbabilisticScorer_estimated_channel_liquidity_range(this_arg: number, scid: bigint, target: number): number {
30948         if(!isWasmInitialized) {
30949                 throw new Error("initializeWasm() must be awaited first!");
30950         }
30951         const nativeResponseValue = wasm.TS_ProbabilisticScorer_estimated_channel_liquidity_range(this_arg, scid, target);
30952         return nativeResponseValue;
30953 }
30954         // void ProbabilisticScorer_add_banned(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
30955 /* @internal */
30956 export function ProbabilisticScorer_add_banned(this_arg: number, node_id: number): void {
30957         if(!isWasmInitialized) {
30958                 throw new Error("initializeWasm() must be awaited first!");
30959         }
30960         const nativeResponseValue = wasm.TS_ProbabilisticScorer_add_banned(this_arg, node_id);
30961         // debug statements here
30962 }
30963         // void ProbabilisticScorer_remove_banned(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
30964 /* @internal */
30965 export function ProbabilisticScorer_remove_banned(this_arg: number, node_id: number): void {
30966         if(!isWasmInitialized) {
30967                 throw new Error("initializeWasm() must be awaited first!");
30968         }
30969         const nativeResponseValue = wasm.TS_ProbabilisticScorer_remove_banned(this_arg, node_id);
30970         // debug statements here
30971 }
30972         // void ProbabilisticScorer_clear_banned(struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
30973 /* @internal */
30974 export function ProbabilisticScorer_clear_banned(this_arg: number): void {
30975         if(!isWasmInitialized) {
30976                 throw new Error("initializeWasm() must be awaited first!");
30977         }
30978         const nativeResponseValue = wasm.TS_ProbabilisticScorer_clear_banned(this_arg);
30979         // debug statements here
30980 }
30981         // void ProbabilisticScoringParameters_add_banned_from_list(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_arg, struct LDKCVec_NodeIdZ node_ids);
30982 /* @internal */
30983 export function ProbabilisticScoringParameters_add_banned_from_list(this_arg: number, node_ids: number): void {
30984         if(!isWasmInitialized) {
30985                 throw new Error("initializeWasm() must be awaited first!");
30986         }
30987         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_add_banned_from_list(this_arg, node_ids);
30988         // debug statements here
30989 }
30990         // MUST_USE_RES struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_default(void);
30991 /* @internal */
30992 export function ProbabilisticScoringParameters_default(): number {
30993         if(!isWasmInitialized) {
30994                 throw new Error("initializeWasm() must be awaited first!");
30995         }
30996         const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_default();
30997         return nativeResponseValue;
30998 }
30999         // struct LDKScore ProbabilisticScorer_as_Score(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
31000 /* @internal */
31001 export function ProbabilisticScorer_as_Score(this_arg: number): number {
31002         if(!isWasmInitialized) {
31003                 throw new Error("initializeWasm() must be awaited first!");
31004         }
31005         const nativeResponseValue = wasm.TS_ProbabilisticScorer_as_Score(this_arg);
31006         return nativeResponseValue;
31007 }
31008         // struct LDKCVec_u8Z ProbabilisticScorer_write(const struct LDKProbabilisticScorer *NONNULL_PTR obj);
31009 /* @internal */
31010 export function ProbabilisticScorer_write(obj: number): number {
31011         if(!isWasmInitialized) {
31012                 throw new Error("initializeWasm() must be awaited first!");
31013         }
31014         const nativeResponseValue = wasm.TS_ProbabilisticScorer_write(obj);
31015         return nativeResponseValue;
31016 }
31017         // struct LDKCResult_ProbabilisticScorerDecodeErrorZ ProbabilisticScorer_read(struct LDKu8slice ser, struct LDKProbabilisticScoringParameters arg_a, const struct LDKNetworkGraph *NONNULL_PTR arg_b, struct LDKLogger arg_c);
31018 /* @internal */
31019 export function ProbabilisticScorer_read(ser: number, arg_a: number, arg_b: number, arg_c: number): number {
31020         if(!isWasmInitialized) {
31021                 throw new Error("initializeWasm() must be awaited first!");
31022         }
31023         const nativeResponseValue = wasm.TS_ProbabilisticScorer_read(ser, arg_a, arg_b, arg_c);
31024         return nativeResponseValue;
31025 }
31026         // void ParseError_free(struct LDKParseError this_ptr);
31027 /* @internal */
31028 export function ParseError_free(this_ptr: number): void {
31029         if(!isWasmInitialized) {
31030                 throw new Error("initializeWasm() must be awaited first!");
31031         }
31032         const nativeResponseValue = wasm.TS_ParseError_free(this_ptr);
31033         // debug statements here
31034 }
31035         // uintptr_t ParseError_clone_ptr(LDKParseError *NONNULL_PTR arg);
31036 /* @internal */
31037 export function ParseError_clone_ptr(arg: number): number {
31038         if(!isWasmInitialized) {
31039                 throw new Error("initializeWasm() must be awaited first!");
31040         }
31041         const nativeResponseValue = wasm.TS_ParseError_clone_ptr(arg);
31042         return nativeResponseValue;
31043 }
31044         // struct LDKParseError ParseError_clone(const struct LDKParseError *NONNULL_PTR orig);
31045 /* @internal */
31046 export function ParseError_clone(orig: number): number {
31047         if(!isWasmInitialized) {
31048                 throw new Error("initializeWasm() must be awaited first!");
31049         }
31050         const nativeResponseValue = wasm.TS_ParseError_clone(orig);
31051         return nativeResponseValue;
31052 }
31053         // struct LDKParseError ParseError_bech32_error(struct LDKBech32Error a);
31054 /* @internal */
31055 export function ParseError_bech32_error(a: number): number {
31056         if(!isWasmInitialized) {
31057                 throw new Error("initializeWasm() must be awaited first!");
31058         }
31059         const nativeResponseValue = wasm.TS_ParseError_bech32_error(a);
31060         return nativeResponseValue;
31061 }
31062         // struct LDKParseError ParseError_parse_amount_error(struct LDKError a);
31063 /* @internal */
31064 export function ParseError_parse_amount_error(a: number): number {
31065         if(!isWasmInitialized) {
31066                 throw new Error("initializeWasm() must be awaited first!");
31067         }
31068         const nativeResponseValue = wasm.TS_ParseError_parse_amount_error(a);
31069         return nativeResponseValue;
31070 }
31071         // struct LDKParseError ParseError_malformed_signature(enum LDKSecp256k1Error a);
31072 /* @internal */
31073 export function ParseError_malformed_signature(a: Secp256k1Error): number {
31074         if(!isWasmInitialized) {
31075                 throw new Error("initializeWasm() must be awaited first!");
31076         }
31077         const nativeResponseValue = wasm.TS_ParseError_malformed_signature(a);
31078         return nativeResponseValue;
31079 }
31080         // struct LDKParseError ParseError_bad_prefix(void);
31081 /* @internal */
31082 export function ParseError_bad_prefix(): number {
31083         if(!isWasmInitialized) {
31084                 throw new Error("initializeWasm() must be awaited first!");
31085         }
31086         const nativeResponseValue = wasm.TS_ParseError_bad_prefix();
31087         return nativeResponseValue;
31088 }
31089         // struct LDKParseError ParseError_unknown_currency(void);
31090 /* @internal */
31091 export function ParseError_unknown_currency(): number {
31092         if(!isWasmInitialized) {
31093                 throw new Error("initializeWasm() must be awaited first!");
31094         }
31095         const nativeResponseValue = wasm.TS_ParseError_unknown_currency();
31096         return nativeResponseValue;
31097 }
31098         // struct LDKParseError ParseError_unknown_si_prefix(void);
31099 /* @internal */
31100 export function ParseError_unknown_si_prefix(): number {
31101         if(!isWasmInitialized) {
31102                 throw new Error("initializeWasm() must be awaited first!");
31103         }
31104         const nativeResponseValue = wasm.TS_ParseError_unknown_si_prefix();
31105         return nativeResponseValue;
31106 }
31107         // struct LDKParseError ParseError_malformed_hrp(void);
31108 /* @internal */
31109 export function ParseError_malformed_hrp(): number {
31110         if(!isWasmInitialized) {
31111                 throw new Error("initializeWasm() must be awaited first!");
31112         }
31113         const nativeResponseValue = wasm.TS_ParseError_malformed_hrp();
31114         return nativeResponseValue;
31115 }
31116         // struct LDKParseError ParseError_too_short_data_part(void);
31117 /* @internal */
31118 export function ParseError_too_short_data_part(): number {
31119         if(!isWasmInitialized) {
31120                 throw new Error("initializeWasm() must be awaited first!");
31121         }
31122         const nativeResponseValue = wasm.TS_ParseError_too_short_data_part();
31123         return nativeResponseValue;
31124 }
31125         // struct LDKParseError ParseError_unexpected_end_of_tagged_fields(void);
31126 /* @internal */
31127 export function ParseError_unexpected_end_of_tagged_fields(): number {
31128         if(!isWasmInitialized) {
31129                 throw new Error("initializeWasm() must be awaited first!");
31130         }
31131         const nativeResponseValue = wasm.TS_ParseError_unexpected_end_of_tagged_fields();
31132         return nativeResponseValue;
31133 }
31134         // struct LDKParseError ParseError_description_decode_error(struct LDKError a);
31135 /* @internal */
31136 export function ParseError_description_decode_error(a: number): number {
31137         if(!isWasmInitialized) {
31138                 throw new Error("initializeWasm() must be awaited first!");
31139         }
31140         const nativeResponseValue = wasm.TS_ParseError_description_decode_error(a);
31141         return nativeResponseValue;
31142 }
31143         // struct LDKParseError ParseError_padding_error(void);
31144 /* @internal */
31145 export function ParseError_padding_error(): number {
31146         if(!isWasmInitialized) {
31147                 throw new Error("initializeWasm() must be awaited first!");
31148         }
31149         const nativeResponseValue = wasm.TS_ParseError_padding_error();
31150         return nativeResponseValue;
31151 }
31152         // struct LDKParseError ParseError_integer_overflow_error(void);
31153 /* @internal */
31154 export function ParseError_integer_overflow_error(): number {
31155         if(!isWasmInitialized) {
31156                 throw new Error("initializeWasm() must be awaited first!");
31157         }
31158         const nativeResponseValue = wasm.TS_ParseError_integer_overflow_error();
31159         return nativeResponseValue;
31160 }
31161         // struct LDKParseError ParseError_invalid_seg_wit_program_length(void);
31162 /* @internal */
31163 export function ParseError_invalid_seg_wit_program_length(): number {
31164         if(!isWasmInitialized) {
31165                 throw new Error("initializeWasm() must be awaited first!");
31166         }
31167         const nativeResponseValue = wasm.TS_ParseError_invalid_seg_wit_program_length();
31168         return nativeResponseValue;
31169 }
31170         // struct LDKParseError ParseError_invalid_pub_key_hash_length(void);
31171 /* @internal */
31172 export function ParseError_invalid_pub_key_hash_length(): number {
31173         if(!isWasmInitialized) {
31174                 throw new Error("initializeWasm() must be awaited first!");
31175         }
31176         const nativeResponseValue = wasm.TS_ParseError_invalid_pub_key_hash_length();
31177         return nativeResponseValue;
31178 }
31179         // struct LDKParseError ParseError_invalid_script_hash_length(void);
31180 /* @internal */
31181 export function ParseError_invalid_script_hash_length(): number {
31182         if(!isWasmInitialized) {
31183                 throw new Error("initializeWasm() must be awaited first!");
31184         }
31185         const nativeResponseValue = wasm.TS_ParseError_invalid_script_hash_length();
31186         return nativeResponseValue;
31187 }
31188         // struct LDKParseError ParseError_invalid_recovery_id(void);
31189 /* @internal */
31190 export function ParseError_invalid_recovery_id(): number {
31191         if(!isWasmInitialized) {
31192                 throw new Error("initializeWasm() must be awaited first!");
31193         }
31194         const nativeResponseValue = wasm.TS_ParseError_invalid_recovery_id();
31195         return nativeResponseValue;
31196 }
31197         // struct LDKParseError ParseError_invalid_slice_length(struct LDKStr a);
31198 /* @internal */
31199 export function ParseError_invalid_slice_length(a: number): number {
31200         if(!isWasmInitialized) {
31201                 throw new Error("initializeWasm() must be awaited first!");
31202         }
31203         const nativeResponseValue = wasm.TS_ParseError_invalid_slice_length(a);
31204         return nativeResponseValue;
31205 }
31206         // struct LDKParseError ParseError_skip(void);
31207 /* @internal */
31208 export function ParseError_skip(): number {
31209         if(!isWasmInitialized) {
31210                 throw new Error("initializeWasm() must be awaited first!");
31211         }
31212         const nativeResponseValue = wasm.TS_ParseError_skip();
31213         return nativeResponseValue;
31214 }
31215         // void ParseOrSemanticError_free(struct LDKParseOrSemanticError this_ptr);
31216 /* @internal */
31217 export function ParseOrSemanticError_free(this_ptr: number): void {
31218         if(!isWasmInitialized) {
31219                 throw new Error("initializeWasm() must be awaited first!");
31220         }
31221         const nativeResponseValue = wasm.TS_ParseOrSemanticError_free(this_ptr);
31222         // debug statements here
31223 }
31224         // uintptr_t ParseOrSemanticError_clone_ptr(LDKParseOrSemanticError *NONNULL_PTR arg);
31225 /* @internal */
31226 export function ParseOrSemanticError_clone_ptr(arg: number): number {
31227         if(!isWasmInitialized) {
31228                 throw new Error("initializeWasm() must be awaited first!");
31229         }
31230         const nativeResponseValue = wasm.TS_ParseOrSemanticError_clone_ptr(arg);
31231         return nativeResponseValue;
31232 }
31233         // struct LDKParseOrSemanticError ParseOrSemanticError_clone(const struct LDKParseOrSemanticError *NONNULL_PTR orig);
31234 /* @internal */
31235 export function ParseOrSemanticError_clone(orig: number): number {
31236         if(!isWasmInitialized) {
31237                 throw new Error("initializeWasm() must be awaited first!");
31238         }
31239         const nativeResponseValue = wasm.TS_ParseOrSemanticError_clone(orig);
31240         return nativeResponseValue;
31241 }
31242         // struct LDKParseOrSemanticError ParseOrSemanticError_parse_error(struct LDKParseError a);
31243 /* @internal */
31244 export function ParseOrSemanticError_parse_error(a: number): number {
31245         if(!isWasmInitialized) {
31246                 throw new Error("initializeWasm() must be awaited first!");
31247         }
31248         const nativeResponseValue = wasm.TS_ParseOrSemanticError_parse_error(a);
31249         return nativeResponseValue;
31250 }
31251         // struct LDKParseOrSemanticError ParseOrSemanticError_semantic_error(enum LDKSemanticError a);
31252 /* @internal */
31253 export function ParseOrSemanticError_semantic_error(a: SemanticError): number {
31254         if(!isWasmInitialized) {
31255                 throw new Error("initializeWasm() must be awaited first!");
31256         }
31257         const nativeResponseValue = wasm.TS_ParseOrSemanticError_semantic_error(a);
31258         return nativeResponseValue;
31259 }
31260         // void Invoice_free(struct LDKInvoice this_obj);
31261 /* @internal */
31262 export function Invoice_free(this_obj: number): void {
31263         if(!isWasmInitialized) {
31264                 throw new Error("initializeWasm() must be awaited first!");
31265         }
31266         const nativeResponseValue = wasm.TS_Invoice_free(this_obj);
31267         // debug statements here
31268 }
31269         // bool Invoice_eq(const struct LDKInvoice *NONNULL_PTR a, const struct LDKInvoice *NONNULL_PTR b);
31270 /* @internal */
31271 export function Invoice_eq(a: number, b: number): boolean {
31272         if(!isWasmInitialized) {
31273                 throw new Error("initializeWasm() must be awaited first!");
31274         }
31275         const nativeResponseValue = wasm.TS_Invoice_eq(a, b);
31276         return nativeResponseValue;
31277 }
31278         // uintptr_t Invoice_clone_ptr(LDKInvoice *NONNULL_PTR arg);
31279 /* @internal */
31280 export function Invoice_clone_ptr(arg: number): number {
31281         if(!isWasmInitialized) {
31282                 throw new Error("initializeWasm() must be awaited first!");
31283         }
31284         const nativeResponseValue = wasm.TS_Invoice_clone_ptr(arg);
31285         return nativeResponseValue;
31286 }
31287         // struct LDKInvoice Invoice_clone(const struct LDKInvoice *NONNULL_PTR orig);
31288 /* @internal */
31289 export function Invoice_clone(orig: number): number {
31290         if(!isWasmInitialized) {
31291                 throw new Error("initializeWasm() must be awaited first!");
31292         }
31293         const nativeResponseValue = wasm.TS_Invoice_clone(orig);
31294         return nativeResponseValue;
31295 }
31296         // void SignedRawInvoice_free(struct LDKSignedRawInvoice this_obj);
31297 /* @internal */
31298 export function SignedRawInvoice_free(this_obj: number): void {
31299         if(!isWasmInitialized) {
31300                 throw new Error("initializeWasm() must be awaited first!");
31301         }
31302         const nativeResponseValue = wasm.TS_SignedRawInvoice_free(this_obj);
31303         // debug statements here
31304 }
31305         // bool SignedRawInvoice_eq(const struct LDKSignedRawInvoice *NONNULL_PTR a, const struct LDKSignedRawInvoice *NONNULL_PTR b);
31306 /* @internal */
31307 export function SignedRawInvoice_eq(a: number, b: number): boolean {
31308         if(!isWasmInitialized) {
31309                 throw new Error("initializeWasm() must be awaited first!");
31310         }
31311         const nativeResponseValue = wasm.TS_SignedRawInvoice_eq(a, b);
31312         return nativeResponseValue;
31313 }
31314         // uintptr_t SignedRawInvoice_clone_ptr(LDKSignedRawInvoice *NONNULL_PTR arg);
31315 /* @internal */
31316 export function SignedRawInvoice_clone_ptr(arg: number): number {
31317         if(!isWasmInitialized) {
31318                 throw new Error("initializeWasm() must be awaited first!");
31319         }
31320         const nativeResponseValue = wasm.TS_SignedRawInvoice_clone_ptr(arg);
31321         return nativeResponseValue;
31322 }
31323         // struct LDKSignedRawInvoice SignedRawInvoice_clone(const struct LDKSignedRawInvoice *NONNULL_PTR orig);
31324 /* @internal */
31325 export function SignedRawInvoice_clone(orig: number): number {
31326         if(!isWasmInitialized) {
31327                 throw new Error("initializeWasm() must be awaited first!");
31328         }
31329         const nativeResponseValue = wasm.TS_SignedRawInvoice_clone(orig);
31330         return nativeResponseValue;
31331 }
31332         // void RawInvoice_free(struct LDKRawInvoice this_obj);
31333 /* @internal */
31334 export function RawInvoice_free(this_obj: number): void {
31335         if(!isWasmInitialized) {
31336                 throw new Error("initializeWasm() must be awaited first!");
31337         }
31338         const nativeResponseValue = wasm.TS_RawInvoice_free(this_obj);
31339         // debug statements here
31340 }
31341         // struct LDKRawDataPart RawInvoice_get_data(const struct LDKRawInvoice *NONNULL_PTR this_ptr);
31342 /* @internal */
31343 export function RawInvoice_get_data(this_ptr: number): number {
31344         if(!isWasmInitialized) {
31345                 throw new Error("initializeWasm() must be awaited first!");
31346         }
31347         const nativeResponseValue = wasm.TS_RawInvoice_get_data(this_ptr);
31348         return nativeResponseValue;
31349 }
31350         // void RawInvoice_set_data(struct LDKRawInvoice *NONNULL_PTR this_ptr, struct LDKRawDataPart val);
31351 /* @internal */
31352 export function RawInvoice_set_data(this_ptr: number, val: number): void {
31353         if(!isWasmInitialized) {
31354                 throw new Error("initializeWasm() must be awaited first!");
31355         }
31356         const nativeResponseValue = wasm.TS_RawInvoice_set_data(this_ptr, val);
31357         // debug statements here
31358 }
31359         // bool RawInvoice_eq(const struct LDKRawInvoice *NONNULL_PTR a, const struct LDKRawInvoice *NONNULL_PTR b);
31360 /* @internal */
31361 export function RawInvoice_eq(a: number, b: number): boolean {
31362         if(!isWasmInitialized) {
31363                 throw new Error("initializeWasm() must be awaited first!");
31364         }
31365         const nativeResponseValue = wasm.TS_RawInvoice_eq(a, b);
31366         return nativeResponseValue;
31367 }
31368         // uintptr_t RawInvoice_clone_ptr(LDKRawInvoice *NONNULL_PTR arg);
31369 /* @internal */
31370 export function RawInvoice_clone_ptr(arg: number): number {
31371         if(!isWasmInitialized) {
31372                 throw new Error("initializeWasm() must be awaited first!");
31373         }
31374         const nativeResponseValue = wasm.TS_RawInvoice_clone_ptr(arg);
31375         return nativeResponseValue;
31376 }
31377         // struct LDKRawInvoice RawInvoice_clone(const struct LDKRawInvoice *NONNULL_PTR orig);
31378 /* @internal */
31379 export function RawInvoice_clone(orig: number): number {
31380         if(!isWasmInitialized) {
31381                 throw new Error("initializeWasm() must be awaited first!");
31382         }
31383         const nativeResponseValue = wasm.TS_RawInvoice_clone(orig);
31384         return nativeResponseValue;
31385 }
31386         // void RawDataPart_free(struct LDKRawDataPart this_obj);
31387 /* @internal */
31388 export function RawDataPart_free(this_obj: number): void {
31389         if(!isWasmInitialized) {
31390                 throw new Error("initializeWasm() must be awaited first!");
31391         }
31392         const nativeResponseValue = wasm.TS_RawDataPart_free(this_obj);
31393         // debug statements here
31394 }
31395         // struct LDKPositiveTimestamp RawDataPart_get_timestamp(const struct LDKRawDataPart *NONNULL_PTR this_ptr);
31396 /* @internal */
31397 export function RawDataPart_get_timestamp(this_ptr: number): number {
31398         if(!isWasmInitialized) {
31399                 throw new Error("initializeWasm() must be awaited first!");
31400         }
31401         const nativeResponseValue = wasm.TS_RawDataPart_get_timestamp(this_ptr);
31402         return nativeResponseValue;
31403 }
31404         // void RawDataPart_set_timestamp(struct LDKRawDataPart *NONNULL_PTR this_ptr, struct LDKPositiveTimestamp val);
31405 /* @internal */
31406 export function RawDataPart_set_timestamp(this_ptr: number, val: number): void {
31407         if(!isWasmInitialized) {
31408                 throw new Error("initializeWasm() must be awaited first!");
31409         }
31410         const nativeResponseValue = wasm.TS_RawDataPart_set_timestamp(this_ptr, val);
31411         // debug statements here
31412 }
31413         // bool RawDataPart_eq(const struct LDKRawDataPart *NONNULL_PTR a, const struct LDKRawDataPart *NONNULL_PTR b);
31414 /* @internal */
31415 export function RawDataPart_eq(a: number, b: number): boolean {
31416         if(!isWasmInitialized) {
31417                 throw new Error("initializeWasm() must be awaited first!");
31418         }
31419         const nativeResponseValue = wasm.TS_RawDataPart_eq(a, b);
31420         return nativeResponseValue;
31421 }
31422         // uintptr_t RawDataPart_clone_ptr(LDKRawDataPart *NONNULL_PTR arg);
31423 /* @internal */
31424 export function RawDataPart_clone_ptr(arg: number): number {
31425         if(!isWasmInitialized) {
31426                 throw new Error("initializeWasm() must be awaited first!");
31427         }
31428         const nativeResponseValue = wasm.TS_RawDataPart_clone_ptr(arg);
31429         return nativeResponseValue;
31430 }
31431         // struct LDKRawDataPart RawDataPart_clone(const struct LDKRawDataPart *NONNULL_PTR orig);
31432 /* @internal */
31433 export function RawDataPart_clone(orig: number): number {
31434         if(!isWasmInitialized) {
31435                 throw new Error("initializeWasm() must be awaited first!");
31436         }
31437         const nativeResponseValue = wasm.TS_RawDataPart_clone(orig);
31438         return nativeResponseValue;
31439 }
31440         // void PositiveTimestamp_free(struct LDKPositiveTimestamp this_obj);
31441 /* @internal */
31442 export function PositiveTimestamp_free(this_obj: number): void {
31443         if(!isWasmInitialized) {
31444                 throw new Error("initializeWasm() must be awaited first!");
31445         }
31446         const nativeResponseValue = wasm.TS_PositiveTimestamp_free(this_obj);
31447         // debug statements here
31448 }
31449         // bool PositiveTimestamp_eq(const struct LDKPositiveTimestamp *NONNULL_PTR a, const struct LDKPositiveTimestamp *NONNULL_PTR b);
31450 /* @internal */
31451 export function PositiveTimestamp_eq(a: number, b: number): boolean {
31452         if(!isWasmInitialized) {
31453                 throw new Error("initializeWasm() must be awaited first!");
31454         }
31455         const nativeResponseValue = wasm.TS_PositiveTimestamp_eq(a, b);
31456         return nativeResponseValue;
31457 }
31458         // uintptr_t PositiveTimestamp_clone_ptr(LDKPositiveTimestamp *NONNULL_PTR arg);
31459 /* @internal */
31460 export function PositiveTimestamp_clone_ptr(arg: number): number {
31461         if(!isWasmInitialized) {
31462                 throw new Error("initializeWasm() must be awaited first!");
31463         }
31464         const nativeResponseValue = wasm.TS_PositiveTimestamp_clone_ptr(arg);
31465         return nativeResponseValue;
31466 }
31467         // struct LDKPositiveTimestamp PositiveTimestamp_clone(const struct LDKPositiveTimestamp *NONNULL_PTR orig);
31468 /* @internal */
31469 export function PositiveTimestamp_clone(orig: number): number {
31470         if(!isWasmInitialized) {
31471                 throw new Error("initializeWasm() must be awaited first!");
31472         }
31473         const nativeResponseValue = wasm.TS_PositiveTimestamp_clone(orig);
31474         return nativeResponseValue;
31475 }
31476         // enum LDKSiPrefix SiPrefix_clone(const enum LDKSiPrefix *NONNULL_PTR orig);
31477 /* @internal */
31478 export function SiPrefix_clone(orig: number): SiPrefix {
31479         if(!isWasmInitialized) {
31480                 throw new Error("initializeWasm() must be awaited first!");
31481         }
31482         const nativeResponseValue = wasm.TS_SiPrefix_clone(orig);
31483         return nativeResponseValue;
31484 }
31485         // enum LDKSiPrefix SiPrefix_milli(void);
31486 /* @internal */
31487 export function SiPrefix_milli(): SiPrefix {
31488         if(!isWasmInitialized) {
31489                 throw new Error("initializeWasm() must be awaited first!");
31490         }
31491         const nativeResponseValue = wasm.TS_SiPrefix_milli();
31492         return nativeResponseValue;
31493 }
31494         // enum LDKSiPrefix SiPrefix_micro(void);
31495 /* @internal */
31496 export function SiPrefix_micro(): SiPrefix {
31497         if(!isWasmInitialized) {
31498                 throw new Error("initializeWasm() must be awaited first!");
31499         }
31500         const nativeResponseValue = wasm.TS_SiPrefix_micro();
31501         return nativeResponseValue;
31502 }
31503         // enum LDKSiPrefix SiPrefix_nano(void);
31504 /* @internal */
31505 export function SiPrefix_nano(): SiPrefix {
31506         if(!isWasmInitialized) {
31507                 throw new Error("initializeWasm() must be awaited first!");
31508         }
31509         const nativeResponseValue = wasm.TS_SiPrefix_nano();
31510         return nativeResponseValue;
31511 }
31512         // enum LDKSiPrefix SiPrefix_pico(void);
31513 /* @internal */
31514 export function SiPrefix_pico(): SiPrefix {
31515         if(!isWasmInitialized) {
31516                 throw new Error("initializeWasm() must be awaited first!");
31517         }
31518         const nativeResponseValue = wasm.TS_SiPrefix_pico();
31519         return nativeResponseValue;
31520 }
31521         // bool SiPrefix_eq(const enum LDKSiPrefix *NONNULL_PTR a, const enum LDKSiPrefix *NONNULL_PTR b);
31522 /* @internal */
31523 export function SiPrefix_eq(a: number, b: number): boolean {
31524         if(!isWasmInitialized) {
31525                 throw new Error("initializeWasm() must be awaited first!");
31526         }
31527         const nativeResponseValue = wasm.TS_SiPrefix_eq(a, b);
31528         return nativeResponseValue;
31529 }
31530         // MUST_USE_RES uint64_t SiPrefix_multiplier(const enum LDKSiPrefix *NONNULL_PTR this_arg);
31531 /* @internal */
31532 export function SiPrefix_multiplier(this_arg: number): bigint {
31533         if(!isWasmInitialized) {
31534                 throw new Error("initializeWasm() must be awaited first!");
31535         }
31536         const nativeResponseValue = wasm.TS_SiPrefix_multiplier(this_arg);
31537         return nativeResponseValue;
31538 }
31539         // enum LDKCurrency Currency_clone(const enum LDKCurrency *NONNULL_PTR orig);
31540 /* @internal */
31541 export function Currency_clone(orig: number): Currency {
31542         if(!isWasmInitialized) {
31543                 throw new Error("initializeWasm() must be awaited first!");
31544         }
31545         const nativeResponseValue = wasm.TS_Currency_clone(orig);
31546         return nativeResponseValue;
31547 }
31548         // enum LDKCurrency Currency_bitcoin(void);
31549 /* @internal */
31550 export function Currency_bitcoin(): Currency {
31551         if(!isWasmInitialized) {
31552                 throw new Error("initializeWasm() must be awaited first!");
31553         }
31554         const nativeResponseValue = wasm.TS_Currency_bitcoin();
31555         return nativeResponseValue;
31556 }
31557         // enum LDKCurrency Currency_bitcoin_testnet(void);
31558 /* @internal */
31559 export function Currency_bitcoin_testnet(): Currency {
31560         if(!isWasmInitialized) {
31561                 throw new Error("initializeWasm() must be awaited first!");
31562         }
31563         const nativeResponseValue = wasm.TS_Currency_bitcoin_testnet();
31564         return nativeResponseValue;
31565 }
31566         // enum LDKCurrency Currency_regtest(void);
31567 /* @internal */
31568 export function Currency_regtest(): Currency {
31569         if(!isWasmInitialized) {
31570                 throw new Error("initializeWasm() must be awaited first!");
31571         }
31572         const nativeResponseValue = wasm.TS_Currency_regtest();
31573         return nativeResponseValue;
31574 }
31575         // enum LDKCurrency Currency_simnet(void);
31576 /* @internal */
31577 export function Currency_simnet(): Currency {
31578         if(!isWasmInitialized) {
31579                 throw new Error("initializeWasm() must be awaited first!");
31580         }
31581         const nativeResponseValue = wasm.TS_Currency_simnet();
31582         return nativeResponseValue;
31583 }
31584         // enum LDKCurrency Currency_signet(void);
31585 /* @internal */
31586 export function Currency_signet(): Currency {
31587         if(!isWasmInitialized) {
31588                 throw new Error("initializeWasm() must be awaited first!");
31589         }
31590         const nativeResponseValue = wasm.TS_Currency_signet();
31591         return nativeResponseValue;
31592 }
31593         // uint64_t Currency_hash(const enum LDKCurrency *NONNULL_PTR o);
31594 /* @internal */
31595 export function Currency_hash(o: number): bigint {
31596         if(!isWasmInitialized) {
31597                 throw new Error("initializeWasm() must be awaited first!");
31598         }
31599         const nativeResponseValue = wasm.TS_Currency_hash(o);
31600         return nativeResponseValue;
31601 }
31602         // bool Currency_eq(const enum LDKCurrency *NONNULL_PTR a, const enum LDKCurrency *NONNULL_PTR b);
31603 /* @internal */
31604 export function Currency_eq(a: number, b: number): boolean {
31605         if(!isWasmInitialized) {
31606                 throw new Error("initializeWasm() must be awaited first!");
31607         }
31608         const nativeResponseValue = wasm.TS_Currency_eq(a, b);
31609         return nativeResponseValue;
31610 }
31611         // void Sha256_free(struct LDKSha256 this_obj);
31612 /* @internal */
31613 export function Sha256_free(this_obj: number): void {
31614         if(!isWasmInitialized) {
31615                 throw new Error("initializeWasm() must be awaited first!");
31616         }
31617         const nativeResponseValue = wasm.TS_Sha256_free(this_obj);
31618         // debug statements here
31619 }
31620         // uintptr_t Sha256_clone_ptr(LDKSha256 *NONNULL_PTR arg);
31621 /* @internal */
31622 export function Sha256_clone_ptr(arg: number): number {
31623         if(!isWasmInitialized) {
31624                 throw new Error("initializeWasm() must be awaited first!");
31625         }
31626         const nativeResponseValue = wasm.TS_Sha256_clone_ptr(arg);
31627         return nativeResponseValue;
31628 }
31629         // struct LDKSha256 Sha256_clone(const struct LDKSha256 *NONNULL_PTR orig);
31630 /* @internal */
31631 export function Sha256_clone(orig: number): number {
31632         if(!isWasmInitialized) {
31633                 throw new Error("initializeWasm() must be awaited first!");
31634         }
31635         const nativeResponseValue = wasm.TS_Sha256_clone(orig);
31636         return nativeResponseValue;
31637 }
31638         // uint64_t Sha256_hash(const struct LDKSha256 *NONNULL_PTR o);
31639 /* @internal */
31640 export function Sha256_hash(o: number): bigint {
31641         if(!isWasmInitialized) {
31642                 throw new Error("initializeWasm() must be awaited first!");
31643         }
31644         const nativeResponseValue = wasm.TS_Sha256_hash(o);
31645         return nativeResponseValue;
31646 }
31647         // bool Sha256_eq(const struct LDKSha256 *NONNULL_PTR a, const struct LDKSha256 *NONNULL_PTR b);
31648 /* @internal */
31649 export function Sha256_eq(a: number, b: number): boolean {
31650         if(!isWasmInitialized) {
31651                 throw new Error("initializeWasm() must be awaited first!");
31652         }
31653         const nativeResponseValue = wasm.TS_Sha256_eq(a, b);
31654         return nativeResponseValue;
31655 }
31656         // void Description_free(struct LDKDescription this_obj);
31657 /* @internal */
31658 export function Description_free(this_obj: number): void {
31659         if(!isWasmInitialized) {
31660                 throw new Error("initializeWasm() must be awaited first!");
31661         }
31662         const nativeResponseValue = wasm.TS_Description_free(this_obj);
31663         // debug statements here
31664 }
31665         // uintptr_t Description_clone_ptr(LDKDescription *NONNULL_PTR arg);
31666 /* @internal */
31667 export function Description_clone_ptr(arg: number): number {
31668         if(!isWasmInitialized) {
31669                 throw new Error("initializeWasm() must be awaited first!");
31670         }
31671         const nativeResponseValue = wasm.TS_Description_clone_ptr(arg);
31672         return nativeResponseValue;
31673 }
31674         // struct LDKDescription Description_clone(const struct LDKDescription *NONNULL_PTR orig);
31675 /* @internal */
31676 export function Description_clone(orig: number): number {
31677         if(!isWasmInitialized) {
31678                 throw new Error("initializeWasm() must be awaited first!");
31679         }
31680         const nativeResponseValue = wasm.TS_Description_clone(orig);
31681         return nativeResponseValue;
31682 }
31683         // uint64_t Description_hash(const struct LDKDescription *NONNULL_PTR o);
31684 /* @internal */
31685 export function Description_hash(o: number): bigint {
31686         if(!isWasmInitialized) {
31687                 throw new Error("initializeWasm() must be awaited first!");
31688         }
31689         const nativeResponseValue = wasm.TS_Description_hash(o);
31690         return nativeResponseValue;
31691 }
31692         // bool Description_eq(const struct LDKDescription *NONNULL_PTR a, const struct LDKDescription *NONNULL_PTR b);
31693 /* @internal */
31694 export function Description_eq(a: number, b: number): boolean {
31695         if(!isWasmInitialized) {
31696                 throw new Error("initializeWasm() must be awaited first!");
31697         }
31698         const nativeResponseValue = wasm.TS_Description_eq(a, b);
31699         return nativeResponseValue;
31700 }
31701         // void PayeePubKey_free(struct LDKPayeePubKey this_obj);
31702 /* @internal */
31703 export function PayeePubKey_free(this_obj: number): void {
31704         if(!isWasmInitialized) {
31705                 throw new Error("initializeWasm() must be awaited first!");
31706         }
31707         const nativeResponseValue = wasm.TS_PayeePubKey_free(this_obj);
31708         // debug statements here
31709 }
31710         // struct LDKPublicKey PayeePubKey_get_a(const struct LDKPayeePubKey *NONNULL_PTR this_ptr);
31711 /* @internal */
31712 export function PayeePubKey_get_a(this_ptr: number): number {
31713         if(!isWasmInitialized) {
31714                 throw new Error("initializeWasm() must be awaited first!");
31715         }
31716         const nativeResponseValue = wasm.TS_PayeePubKey_get_a(this_ptr);
31717         return nativeResponseValue;
31718 }
31719         // void PayeePubKey_set_a(struct LDKPayeePubKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
31720 /* @internal */
31721 export function PayeePubKey_set_a(this_ptr: number, val: number): void {
31722         if(!isWasmInitialized) {
31723                 throw new Error("initializeWasm() must be awaited first!");
31724         }
31725         const nativeResponseValue = wasm.TS_PayeePubKey_set_a(this_ptr, val);
31726         // debug statements here
31727 }
31728         // MUST_USE_RES struct LDKPayeePubKey PayeePubKey_new(struct LDKPublicKey a_arg);
31729 /* @internal */
31730 export function PayeePubKey_new(a_arg: number): number {
31731         if(!isWasmInitialized) {
31732                 throw new Error("initializeWasm() must be awaited first!");
31733         }
31734         const nativeResponseValue = wasm.TS_PayeePubKey_new(a_arg);
31735         return nativeResponseValue;
31736 }
31737         // uintptr_t PayeePubKey_clone_ptr(LDKPayeePubKey *NONNULL_PTR arg);
31738 /* @internal */
31739 export function PayeePubKey_clone_ptr(arg: number): number {
31740         if(!isWasmInitialized) {
31741                 throw new Error("initializeWasm() must be awaited first!");
31742         }
31743         const nativeResponseValue = wasm.TS_PayeePubKey_clone_ptr(arg);
31744         return nativeResponseValue;
31745 }
31746         // struct LDKPayeePubKey PayeePubKey_clone(const struct LDKPayeePubKey *NONNULL_PTR orig);
31747 /* @internal */
31748 export function PayeePubKey_clone(orig: number): number {
31749         if(!isWasmInitialized) {
31750                 throw new Error("initializeWasm() must be awaited first!");
31751         }
31752         const nativeResponseValue = wasm.TS_PayeePubKey_clone(orig);
31753         return nativeResponseValue;
31754 }
31755         // uint64_t PayeePubKey_hash(const struct LDKPayeePubKey *NONNULL_PTR o);
31756 /* @internal */
31757 export function PayeePubKey_hash(o: number): bigint {
31758         if(!isWasmInitialized) {
31759                 throw new Error("initializeWasm() must be awaited first!");
31760         }
31761         const nativeResponseValue = wasm.TS_PayeePubKey_hash(o);
31762         return nativeResponseValue;
31763 }
31764         // bool PayeePubKey_eq(const struct LDKPayeePubKey *NONNULL_PTR a, const struct LDKPayeePubKey *NONNULL_PTR b);
31765 /* @internal */
31766 export function PayeePubKey_eq(a: number, b: number): boolean {
31767         if(!isWasmInitialized) {
31768                 throw new Error("initializeWasm() must be awaited first!");
31769         }
31770         const nativeResponseValue = wasm.TS_PayeePubKey_eq(a, b);
31771         return nativeResponseValue;
31772 }
31773         // void ExpiryTime_free(struct LDKExpiryTime this_obj);
31774 /* @internal */
31775 export function ExpiryTime_free(this_obj: number): void {
31776         if(!isWasmInitialized) {
31777                 throw new Error("initializeWasm() must be awaited first!");
31778         }
31779         const nativeResponseValue = wasm.TS_ExpiryTime_free(this_obj);
31780         // debug statements here
31781 }
31782         // uintptr_t ExpiryTime_clone_ptr(LDKExpiryTime *NONNULL_PTR arg);
31783 /* @internal */
31784 export function ExpiryTime_clone_ptr(arg: number): number {
31785         if(!isWasmInitialized) {
31786                 throw new Error("initializeWasm() must be awaited first!");
31787         }
31788         const nativeResponseValue = wasm.TS_ExpiryTime_clone_ptr(arg);
31789         return nativeResponseValue;
31790 }
31791         // struct LDKExpiryTime ExpiryTime_clone(const struct LDKExpiryTime *NONNULL_PTR orig);
31792 /* @internal */
31793 export function ExpiryTime_clone(orig: number): number {
31794         if(!isWasmInitialized) {
31795                 throw new Error("initializeWasm() must be awaited first!");
31796         }
31797         const nativeResponseValue = wasm.TS_ExpiryTime_clone(orig);
31798         return nativeResponseValue;
31799 }
31800         // uint64_t ExpiryTime_hash(const struct LDKExpiryTime *NONNULL_PTR o);
31801 /* @internal */
31802 export function ExpiryTime_hash(o: number): bigint {
31803         if(!isWasmInitialized) {
31804                 throw new Error("initializeWasm() must be awaited first!");
31805         }
31806         const nativeResponseValue = wasm.TS_ExpiryTime_hash(o);
31807         return nativeResponseValue;
31808 }
31809         // bool ExpiryTime_eq(const struct LDKExpiryTime *NONNULL_PTR a, const struct LDKExpiryTime *NONNULL_PTR b);
31810 /* @internal */
31811 export function ExpiryTime_eq(a: number, b: number): boolean {
31812         if(!isWasmInitialized) {
31813                 throw new Error("initializeWasm() must be awaited first!");
31814         }
31815         const nativeResponseValue = wasm.TS_ExpiryTime_eq(a, b);
31816         return nativeResponseValue;
31817 }
31818         // void MinFinalCltvExpiry_free(struct LDKMinFinalCltvExpiry this_obj);
31819 /* @internal */
31820 export function MinFinalCltvExpiry_free(this_obj: number): void {
31821         if(!isWasmInitialized) {
31822                 throw new Error("initializeWasm() must be awaited first!");
31823         }
31824         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_free(this_obj);
31825         // debug statements here
31826 }
31827         // uint64_t MinFinalCltvExpiry_get_a(const struct LDKMinFinalCltvExpiry *NONNULL_PTR this_ptr);
31828 /* @internal */
31829 export function MinFinalCltvExpiry_get_a(this_ptr: number): bigint {
31830         if(!isWasmInitialized) {
31831                 throw new Error("initializeWasm() must be awaited first!");
31832         }
31833         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_get_a(this_ptr);
31834         return nativeResponseValue;
31835 }
31836         // void MinFinalCltvExpiry_set_a(struct LDKMinFinalCltvExpiry *NONNULL_PTR this_ptr, uint64_t val);
31837 /* @internal */
31838 export function MinFinalCltvExpiry_set_a(this_ptr: number, val: bigint): void {
31839         if(!isWasmInitialized) {
31840                 throw new Error("initializeWasm() must be awaited first!");
31841         }
31842         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_set_a(this_ptr, val);
31843         // debug statements here
31844 }
31845         // MUST_USE_RES struct LDKMinFinalCltvExpiry MinFinalCltvExpiry_new(uint64_t a_arg);
31846 /* @internal */
31847 export function MinFinalCltvExpiry_new(a_arg: bigint): number {
31848         if(!isWasmInitialized) {
31849                 throw new Error("initializeWasm() must be awaited first!");
31850         }
31851         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_new(a_arg);
31852         return nativeResponseValue;
31853 }
31854         // uintptr_t MinFinalCltvExpiry_clone_ptr(LDKMinFinalCltvExpiry *NONNULL_PTR arg);
31855 /* @internal */
31856 export function MinFinalCltvExpiry_clone_ptr(arg: number): number {
31857         if(!isWasmInitialized) {
31858                 throw new Error("initializeWasm() must be awaited first!");
31859         }
31860         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_clone_ptr(arg);
31861         return nativeResponseValue;
31862 }
31863         // struct LDKMinFinalCltvExpiry MinFinalCltvExpiry_clone(const struct LDKMinFinalCltvExpiry *NONNULL_PTR orig);
31864 /* @internal */
31865 export function MinFinalCltvExpiry_clone(orig: number): number {
31866         if(!isWasmInitialized) {
31867                 throw new Error("initializeWasm() must be awaited first!");
31868         }
31869         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_clone(orig);
31870         return nativeResponseValue;
31871 }
31872         // uint64_t MinFinalCltvExpiry_hash(const struct LDKMinFinalCltvExpiry *NONNULL_PTR o);
31873 /* @internal */
31874 export function MinFinalCltvExpiry_hash(o: number): bigint {
31875         if(!isWasmInitialized) {
31876                 throw new Error("initializeWasm() must be awaited first!");
31877         }
31878         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_hash(o);
31879         return nativeResponseValue;
31880 }
31881         // bool MinFinalCltvExpiry_eq(const struct LDKMinFinalCltvExpiry *NONNULL_PTR a, const struct LDKMinFinalCltvExpiry *NONNULL_PTR b);
31882 /* @internal */
31883 export function MinFinalCltvExpiry_eq(a: number, b: number): boolean {
31884         if(!isWasmInitialized) {
31885                 throw new Error("initializeWasm() must be awaited first!");
31886         }
31887         const nativeResponseValue = wasm.TS_MinFinalCltvExpiry_eq(a, b);
31888         return nativeResponseValue;
31889 }
31890         // void Fallback_free(struct LDKFallback this_ptr);
31891 /* @internal */
31892 export function Fallback_free(this_ptr: number): void {
31893         if(!isWasmInitialized) {
31894                 throw new Error("initializeWasm() must be awaited first!");
31895         }
31896         const nativeResponseValue = wasm.TS_Fallback_free(this_ptr);
31897         // debug statements here
31898 }
31899         // uintptr_t Fallback_clone_ptr(LDKFallback *NONNULL_PTR arg);
31900 /* @internal */
31901 export function Fallback_clone_ptr(arg: number): number {
31902         if(!isWasmInitialized) {
31903                 throw new Error("initializeWasm() must be awaited first!");
31904         }
31905         const nativeResponseValue = wasm.TS_Fallback_clone_ptr(arg);
31906         return nativeResponseValue;
31907 }
31908         // struct LDKFallback Fallback_clone(const struct LDKFallback *NONNULL_PTR orig);
31909 /* @internal */
31910 export function Fallback_clone(orig: number): number {
31911         if(!isWasmInitialized) {
31912                 throw new Error("initializeWasm() must be awaited first!");
31913         }
31914         const nativeResponseValue = wasm.TS_Fallback_clone(orig);
31915         return nativeResponseValue;
31916 }
31917         // struct LDKFallback Fallback_seg_wit_program(struct LDKu5 version, struct LDKCVec_u8Z program);
31918 /* @internal */
31919 export function Fallback_seg_wit_program(version: number, program: number): number {
31920         if(!isWasmInitialized) {
31921                 throw new Error("initializeWasm() must be awaited first!");
31922         }
31923         const nativeResponseValue = wasm.TS_Fallback_seg_wit_program(version, program);
31924         return nativeResponseValue;
31925 }
31926         // struct LDKFallback Fallback_pub_key_hash(struct LDKTwentyBytes a);
31927 /* @internal */
31928 export function Fallback_pub_key_hash(a: number): number {
31929         if(!isWasmInitialized) {
31930                 throw new Error("initializeWasm() must be awaited first!");
31931         }
31932         const nativeResponseValue = wasm.TS_Fallback_pub_key_hash(a);
31933         return nativeResponseValue;
31934 }
31935         // struct LDKFallback Fallback_script_hash(struct LDKTwentyBytes a);
31936 /* @internal */
31937 export function Fallback_script_hash(a: number): number {
31938         if(!isWasmInitialized) {
31939                 throw new Error("initializeWasm() must be awaited first!");
31940         }
31941         const nativeResponseValue = wasm.TS_Fallback_script_hash(a);
31942         return nativeResponseValue;
31943 }
31944         // uint64_t Fallback_hash(const struct LDKFallback *NONNULL_PTR o);
31945 /* @internal */
31946 export function Fallback_hash(o: number): bigint {
31947         if(!isWasmInitialized) {
31948                 throw new Error("initializeWasm() must be awaited first!");
31949         }
31950         const nativeResponseValue = wasm.TS_Fallback_hash(o);
31951         return nativeResponseValue;
31952 }
31953         // bool Fallback_eq(const struct LDKFallback *NONNULL_PTR a, const struct LDKFallback *NONNULL_PTR b);
31954 /* @internal */
31955 export function Fallback_eq(a: number, b: number): boolean {
31956         if(!isWasmInitialized) {
31957                 throw new Error("initializeWasm() must be awaited first!");
31958         }
31959         const nativeResponseValue = wasm.TS_Fallback_eq(a, b);
31960         return nativeResponseValue;
31961 }
31962         // void InvoiceSignature_free(struct LDKInvoiceSignature this_obj);
31963 /* @internal */
31964 export function InvoiceSignature_free(this_obj: number): void {
31965         if(!isWasmInitialized) {
31966                 throw new Error("initializeWasm() must be awaited first!");
31967         }
31968         const nativeResponseValue = wasm.TS_InvoiceSignature_free(this_obj);
31969         // debug statements here
31970 }
31971         // uintptr_t InvoiceSignature_clone_ptr(LDKInvoiceSignature *NONNULL_PTR arg);
31972 /* @internal */
31973 export function InvoiceSignature_clone_ptr(arg: number): number {
31974         if(!isWasmInitialized) {
31975                 throw new Error("initializeWasm() must be awaited first!");
31976         }
31977         const nativeResponseValue = wasm.TS_InvoiceSignature_clone_ptr(arg);
31978         return nativeResponseValue;
31979 }
31980         // struct LDKInvoiceSignature InvoiceSignature_clone(const struct LDKInvoiceSignature *NONNULL_PTR orig);
31981 /* @internal */
31982 export function InvoiceSignature_clone(orig: number): number {
31983         if(!isWasmInitialized) {
31984                 throw new Error("initializeWasm() must be awaited first!");
31985         }
31986         const nativeResponseValue = wasm.TS_InvoiceSignature_clone(orig);
31987         return nativeResponseValue;
31988 }
31989         // bool InvoiceSignature_eq(const struct LDKInvoiceSignature *NONNULL_PTR a, const struct LDKInvoiceSignature *NONNULL_PTR b);
31990 /* @internal */
31991 export function InvoiceSignature_eq(a: number, b: number): boolean {
31992         if(!isWasmInitialized) {
31993                 throw new Error("initializeWasm() must be awaited first!");
31994         }
31995         const nativeResponseValue = wasm.TS_InvoiceSignature_eq(a, b);
31996         return nativeResponseValue;
31997 }
31998         // void PrivateRoute_free(struct LDKPrivateRoute this_obj);
31999 /* @internal */
32000 export function PrivateRoute_free(this_obj: number): void {
32001         if(!isWasmInitialized) {
32002                 throw new Error("initializeWasm() must be awaited first!");
32003         }
32004         const nativeResponseValue = wasm.TS_PrivateRoute_free(this_obj);
32005         // debug statements here
32006 }
32007         // uintptr_t PrivateRoute_clone_ptr(LDKPrivateRoute *NONNULL_PTR arg);
32008 /* @internal */
32009 export function PrivateRoute_clone_ptr(arg: number): number {
32010         if(!isWasmInitialized) {
32011                 throw new Error("initializeWasm() must be awaited first!");
32012         }
32013         const nativeResponseValue = wasm.TS_PrivateRoute_clone_ptr(arg);
32014         return nativeResponseValue;
32015 }
32016         // struct LDKPrivateRoute PrivateRoute_clone(const struct LDKPrivateRoute *NONNULL_PTR orig);
32017 /* @internal */
32018 export function PrivateRoute_clone(orig: number): number {
32019         if(!isWasmInitialized) {
32020                 throw new Error("initializeWasm() must be awaited first!");
32021         }
32022         const nativeResponseValue = wasm.TS_PrivateRoute_clone(orig);
32023         return nativeResponseValue;
32024 }
32025         // uint64_t PrivateRoute_hash(const struct LDKPrivateRoute *NONNULL_PTR o);
32026 /* @internal */
32027 export function PrivateRoute_hash(o: number): bigint {
32028         if(!isWasmInitialized) {
32029                 throw new Error("initializeWasm() must be awaited first!");
32030         }
32031         const nativeResponseValue = wasm.TS_PrivateRoute_hash(o);
32032         return nativeResponseValue;
32033 }
32034         // bool PrivateRoute_eq(const struct LDKPrivateRoute *NONNULL_PTR a, const struct LDKPrivateRoute *NONNULL_PTR b);
32035 /* @internal */
32036 export function PrivateRoute_eq(a: number, b: number): boolean {
32037         if(!isWasmInitialized) {
32038                 throw new Error("initializeWasm() must be awaited first!");
32039         }
32040         const nativeResponseValue = wasm.TS_PrivateRoute_eq(a, b);
32041         return nativeResponseValue;
32042 }
32043         // MUST_USE_RES struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ SignedRawInvoice_into_parts(struct LDKSignedRawInvoice this_arg);
32044 /* @internal */
32045 export function SignedRawInvoice_into_parts(this_arg: number): number {
32046         if(!isWasmInitialized) {
32047                 throw new Error("initializeWasm() must be awaited first!");
32048         }
32049         const nativeResponseValue = wasm.TS_SignedRawInvoice_into_parts(this_arg);
32050         return nativeResponseValue;
32051 }
32052         // MUST_USE_RES struct LDKRawInvoice SignedRawInvoice_raw_invoice(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
32053 /* @internal */
32054 export function SignedRawInvoice_raw_invoice(this_arg: number): number {
32055         if(!isWasmInitialized) {
32056                 throw new Error("initializeWasm() must be awaited first!");
32057         }
32058         const nativeResponseValue = wasm.TS_SignedRawInvoice_raw_invoice(this_arg);
32059         return nativeResponseValue;
32060 }
32061         // MUST_USE_RES const uint8_t (*SignedRawInvoice_hash(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg))[32];
32062 /* @internal */
32063 export function SignedRawInvoice_hash(this_arg: number): number {
32064         if(!isWasmInitialized) {
32065                 throw new Error("initializeWasm() must be awaited first!");
32066         }
32067         const nativeResponseValue = wasm.TS_SignedRawInvoice_hash(this_arg);
32068         return nativeResponseValue;
32069 }
32070         // MUST_USE_RES struct LDKInvoiceSignature SignedRawInvoice_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
32071 /* @internal */
32072 export function SignedRawInvoice_signature(this_arg: number): number {
32073         if(!isWasmInitialized) {
32074                 throw new Error("initializeWasm() must be awaited first!");
32075         }
32076         const nativeResponseValue = wasm.TS_SignedRawInvoice_signature(this_arg);
32077         return nativeResponseValue;
32078 }
32079         // MUST_USE_RES struct LDKCResult_PayeePubKeyErrorZ SignedRawInvoice_recover_payee_pub_key(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
32080 /* @internal */
32081 export function SignedRawInvoice_recover_payee_pub_key(this_arg: number): number {
32082         if(!isWasmInitialized) {
32083                 throw new Error("initializeWasm() must be awaited first!");
32084         }
32085         const nativeResponseValue = wasm.TS_SignedRawInvoice_recover_payee_pub_key(this_arg);
32086         return nativeResponseValue;
32087 }
32088         // MUST_USE_RES bool SignedRawInvoice_check_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
32089 /* @internal */
32090 export function SignedRawInvoice_check_signature(this_arg: number): boolean {
32091         if(!isWasmInitialized) {
32092                 throw new Error("initializeWasm() must be awaited first!");
32093         }
32094         const nativeResponseValue = wasm.TS_SignedRawInvoice_check_signature(this_arg);
32095         return nativeResponseValue;
32096 }
32097         // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32098 /* @internal */
32099 export function RawInvoice_hash(this_arg: number): number {
32100         if(!isWasmInitialized) {
32101                 throw new Error("initializeWasm() must be awaited first!");
32102         }
32103         const nativeResponseValue = wasm.TS_RawInvoice_hash(this_arg);
32104         return nativeResponseValue;
32105 }
32106         // MUST_USE_RES struct LDKSha256 RawInvoice_payment_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32107 /* @internal */
32108 export function RawInvoice_payment_hash(this_arg: number): number {
32109         if(!isWasmInitialized) {
32110                 throw new Error("initializeWasm() must be awaited first!");
32111         }
32112         const nativeResponseValue = wasm.TS_RawInvoice_payment_hash(this_arg);
32113         return nativeResponseValue;
32114 }
32115         // MUST_USE_RES struct LDKDescription RawInvoice_description(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32116 /* @internal */
32117 export function RawInvoice_description(this_arg: number): number {
32118         if(!isWasmInitialized) {
32119                 throw new Error("initializeWasm() must be awaited first!");
32120         }
32121         const nativeResponseValue = wasm.TS_RawInvoice_description(this_arg);
32122         return nativeResponseValue;
32123 }
32124         // MUST_USE_RES struct LDKPayeePubKey RawInvoice_payee_pub_key(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32125 /* @internal */
32126 export function RawInvoice_payee_pub_key(this_arg: number): number {
32127         if(!isWasmInitialized) {
32128                 throw new Error("initializeWasm() must be awaited first!");
32129         }
32130         const nativeResponseValue = wasm.TS_RawInvoice_payee_pub_key(this_arg);
32131         return nativeResponseValue;
32132 }
32133         // MUST_USE_RES struct LDKSha256 RawInvoice_description_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32134 /* @internal */
32135 export function RawInvoice_description_hash(this_arg: number): number {
32136         if(!isWasmInitialized) {
32137                 throw new Error("initializeWasm() must be awaited first!");
32138         }
32139         const nativeResponseValue = wasm.TS_RawInvoice_description_hash(this_arg);
32140         return nativeResponseValue;
32141 }
32142         // MUST_USE_RES struct LDKExpiryTime RawInvoice_expiry_time(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32143 /* @internal */
32144 export function RawInvoice_expiry_time(this_arg: number): number {
32145         if(!isWasmInitialized) {
32146                 throw new Error("initializeWasm() must be awaited first!");
32147         }
32148         const nativeResponseValue = wasm.TS_RawInvoice_expiry_time(this_arg);
32149         return nativeResponseValue;
32150 }
32151         // MUST_USE_RES struct LDKMinFinalCltvExpiry RawInvoice_min_final_cltv_expiry(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32152 /* @internal */
32153 export function RawInvoice_min_final_cltv_expiry(this_arg: number): number {
32154         if(!isWasmInitialized) {
32155                 throw new Error("initializeWasm() must be awaited first!");
32156         }
32157         const nativeResponseValue = wasm.TS_RawInvoice_min_final_cltv_expiry(this_arg);
32158         return nativeResponseValue;
32159 }
32160         // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_payment_secret(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32161 /* @internal */
32162 export function RawInvoice_payment_secret(this_arg: number): number {
32163         if(!isWasmInitialized) {
32164                 throw new Error("initializeWasm() must be awaited first!");
32165         }
32166         const nativeResponseValue = wasm.TS_RawInvoice_payment_secret(this_arg);
32167         return nativeResponseValue;
32168 }
32169         // MUST_USE_RES struct LDKInvoiceFeatures RawInvoice_features(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32170 /* @internal */
32171 export function RawInvoice_features(this_arg: number): number {
32172         if(!isWasmInitialized) {
32173                 throw new Error("initializeWasm() must be awaited first!");
32174         }
32175         const nativeResponseValue = wasm.TS_RawInvoice_features(this_arg);
32176         return nativeResponseValue;
32177 }
32178         // MUST_USE_RES struct LDKCVec_PrivateRouteZ RawInvoice_private_routes(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32179 /* @internal */
32180 export function RawInvoice_private_routes(this_arg: number): number {
32181         if(!isWasmInitialized) {
32182                 throw new Error("initializeWasm() must be awaited first!");
32183         }
32184         const nativeResponseValue = wasm.TS_RawInvoice_private_routes(this_arg);
32185         return nativeResponseValue;
32186 }
32187         // MUST_USE_RES struct LDKCOption_u64Z RawInvoice_amount_pico_btc(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32188 /* @internal */
32189 export function RawInvoice_amount_pico_btc(this_arg: number): number {
32190         if(!isWasmInitialized) {
32191                 throw new Error("initializeWasm() must be awaited first!");
32192         }
32193         const nativeResponseValue = wasm.TS_RawInvoice_amount_pico_btc(this_arg);
32194         return nativeResponseValue;
32195 }
32196         // MUST_USE_RES enum LDKCurrency RawInvoice_currency(const struct LDKRawInvoice *NONNULL_PTR this_arg);
32197 /* @internal */
32198 export function RawInvoice_currency(this_arg: number): Currency {
32199         if(!isWasmInitialized) {
32200                 throw new Error("initializeWasm() must be awaited first!");
32201         }
32202         const nativeResponseValue = wasm.TS_RawInvoice_currency(this_arg);
32203         return nativeResponseValue;
32204 }
32205         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_unix_timestamp(uint64_t unix_seconds);
32206 /* @internal */
32207 export function PositiveTimestamp_from_unix_timestamp(unix_seconds: bigint): number {
32208         if(!isWasmInitialized) {
32209                 throw new Error("initializeWasm() must be awaited first!");
32210         }
32211         const nativeResponseValue = wasm.TS_PositiveTimestamp_from_unix_timestamp(unix_seconds);
32212         return nativeResponseValue;
32213 }
32214         // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_duration_since_epoch(uint64_t duration);
32215 /* @internal */
32216 export function PositiveTimestamp_from_duration_since_epoch(duration: bigint): number {
32217         if(!isWasmInitialized) {
32218                 throw new Error("initializeWasm() must be awaited first!");
32219         }
32220         const nativeResponseValue = wasm.TS_PositiveTimestamp_from_duration_since_epoch(duration);
32221         return nativeResponseValue;
32222 }
32223         // MUST_USE_RES uint64_t PositiveTimestamp_as_unix_timestamp(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
32224 /* @internal */
32225 export function PositiveTimestamp_as_unix_timestamp(this_arg: number): bigint {
32226         if(!isWasmInitialized) {
32227                 throw new Error("initializeWasm() must be awaited first!");
32228         }
32229         const nativeResponseValue = wasm.TS_PositiveTimestamp_as_unix_timestamp(this_arg);
32230         return nativeResponseValue;
32231 }
32232         // MUST_USE_RES uint64_t PositiveTimestamp_as_duration_since_epoch(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
32233 /* @internal */
32234 export function PositiveTimestamp_as_duration_since_epoch(this_arg: number): bigint {
32235         if(!isWasmInitialized) {
32236                 throw new Error("initializeWasm() must be awaited first!");
32237         }
32238         const nativeResponseValue = wasm.TS_PositiveTimestamp_as_duration_since_epoch(this_arg);
32239         return nativeResponseValue;
32240 }
32241         // MUST_USE_RES struct LDKSignedRawInvoice Invoice_into_signed_raw(struct LDKInvoice this_arg);
32242 /* @internal */
32243 export function Invoice_into_signed_raw(this_arg: number): number {
32244         if(!isWasmInitialized) {
32245                 throw new Error("initializeWasm() must be awaited first!");
32246         }
32247         const nativeResponseValue = wasm.TS_Invoice_into_signed_raw(this_arg);
32248         return nativeResponseValue;
32249 }
32250         // MUST_USE_RES struct LDKCResult_NoneSemanticErrorZ Invoice_check_signature(const struct LDKInvoice *NONNULL_PTR this_arg);
32251 /* @internal */
32252 export function Invoice_check_signature(this_arg: number): number {
32253         if(!isWasmInitialized) {
32254                 throw new Error("initializeWasm() must be awaited first!");
32255         }
32256         const nativeResponseValue = wasm.TS_Invoice_check_signature(this_arg);
32257         return nativeResponseValue;
32258 }
32259         // MUST_USE_RES struct LDKCResult_InvoiceSemanticErrorZ Invoice_from_signed(struct LDKSignedRawInvoice signed_invoice);
32260 /* @internal */
32261 export function Invoice_from_signed(signed_invoice: number): number {
32262         if(!isWasmInitialized) {
32263                 throw new Error("initializeWasm() must be awaited first!");
32264         }
32265         const nativeResponseValue = wasm.TS_Invoice_from_signed(signed_invoice);
32266         return nativeResponseValue;
32267 }
32268         // MUST_USE_RES uint64_t Invoice_duration_since_epoch(const struct LDKInvoice *NONNULL_PTR this_arg);
32269 /* @internal */
32270 export function Invoice_duration_since_epoch(this_arg: number): bigint {
32271         if(!isWasmInitialized) {
32272                 throw new Error("initializeWasm() must be awaited first!");
32273         }
32274         const nativeResponseValue = wasm.TS_Invoice_duration_since_epoch(this_arg);
32275         return nativeResponseValue;
32276 }
32277         // MUST_USE_RES const uint8_t (*Invoice_payment_hash(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
32278 /* @internal */
32279 export function Invoice_payment_hash(this_arg: number): number {
32280         if(!isWasmInitialized) {
32281                 throw new Error("initializeWasm() must be awaited first!");
32282         }
32283         const nativeResponseValue = wasm.TS_Invoice_payment_hash(this_arg);
32284         return nativeResponseValue;
32285 }
32286         // MUST_USE_RES struct LDKPublicKey Invoice_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
32287 /* @internal */
32288 export function Invoice_payee_pub_key(this_arg: number): number {
32289         if(!isWasmInitialized) {
32290                 throw new Error("initializeWasm() must be awaited first!");
32291         }
32292         const nativeResponseValue = wasm.TS_Invoice_payee_pub_key(this_arg);
32293         return nativeResponseValue;
32294 }
32295         // MUST_USE_RES const uint8_t (*Invoice_payment_secret(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
32296 /* @internal */
32297 export function Invoice_payment_secret(this_arg: number): number {
32298         if(!isWasmInitialized) {
32299                 throw new Error("initializeWasm() must be awaited first!");
32300         }
32301         const nativeResponseValue = wasm.TS_Invoice_payment_secret(this_arg);
32302         return nativeResponseValue;
32303 }
32304         // MUST_USE_RES struct LDKInvoiceFeatures Invoice_features(const struct LDKInvoice *NONNULL_PTR this_arg);
32305 /* @internal */
32306 export function Invoice_features(this_arg: number): number {
32307         if(!isWasmInitialized) {
32308                 throw new Error("initializeWasm() must be awaited first!");
32309         }
32310         const nativeResponseValue = wasm.TS_Invoice_features(this_arg);
32311         return nativeResponseValue;
32312 }
32313         // MUST_USE_RES struct LDKPublicKey Invoice_recover_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
32314 /* @internal */
32315 export function Invoice_recover_payee_pub_key(this_arg: number): number {
32316         if(!isWasmInitialized) {
32317                 throw new Error("initializeWasm() must be awaited first!");
32318         }
32319         const nativeResponseValue = wasm.TS_Invoice_recover_payee_pub_key(this_arg);
32320         return nativeResponseValue;
32321 }
32322         // MUST_USE_RES uint64_t Invoice_expiry_time(const struct LDKInvoice *NONNULL_PTR this_arg);
32323 /* @internal */
32324 export function Invoice_expiry_time(this_arg: number): bigint {
32325         if(!isWasmInitialized) {
32326                 throw new Error("initializeWasm() must be awaited first!");
32327         }
32328         const nativeResponseValue = wasm.TS_Invoice_expiry_time(this_arg);
32329         return nativeResponseValue;
32330 }
32331         // MUST_USE_RES bool Invoice_would_expire(const struct LDKInvoice *NONNULL_PTR this_arg, uint64_t at_time);
32332 /* @internal */
32333 export function Invoice_would_expire(this_arg: number, at_time: bigint): boolean {
32334         if(!isWasmInitialized) {
32335                 throw new Error("initializeWasm() must be awaited first!");
32336         }
32337         const nativeResponseValue = wasm.TS_Invoice_would_expire(this_arg, at_time);
32338         return nativeResponseValue;
32339 }
32340         // MUST_USE_RES uint64_t Invoice_min_final_cltv_expiry(const struct LDKInvoice *NONNULL_PTR this_arg);
32341 /* @internal */
32342 export function Invoice_min_final_cltv_expiry(this_arg: number): bigint {
32343         if(!isWasmInitialized) {
32344                 throw new Error("initializeWasm() must be awaited first!");
32345         }
32346         const nativeResponseValue = wasm.TS_Invoice_min_final_cltv_expiry(this_arg);
32347         return nativeResponseValue;
32348 }
32349         // MUST_USE_RES struct LDKCVec_PrivateRouteZ Invoice_private_routes(const struct LDKInvoice *NONNULL_PTR this_arg);
32350 /* @internal */
32351 export function Invoice_private_routes(this_arg: number): number {
32352         if(!isWasmInitialized) {
32353                 throw new Error("initializeWasm() must be awaited first!");
32354         }
32355         const nativeResponseValue = wasm.TS_Invoice_private_routes(this_arg);
32356         return nativeResponseValue;
32357 }
32358         // MUST_USE_RES struct LDKCVec_RouteHintZ Invoice_route_hints(const struct LDKInvoice *NONNULL_PTR this_arg);
32359 /* @internal */
32360 export function Invoice_route_hints(this_arg: number): number {
32361         if(!isWasmInitialized) {
32362                 throw new Error("initializeWasm() must be awaited first!");
32363         }
32364         const nativeResponseValue = wasm.TS_Invoice_route_hints(this_arg);
32365         return nativeResponseValue;
32366 }
32367         // MUST_USE_RES enum LDKCurrency Invoice_currency(const struct LDKInvoice *NONNULL_PTR this_arg);
32368 /* @internal */
32369 export function Invoice_currency(this_arg: number): Currency {
32370         if(!isWasmInitialized) {
32371                 throw new Error("initializeWasm() must be awaited first!");
32372         }
32373         const nativeResponseValue = wasm.TS_Invoice_currency(this_arg);
32374         return nativeResponseValue;
32375 }
32376         // MUST_USE_RES struct LDKCOption_u64Z Invoice_amount_milli_satoshis(const struct LDKInvoice *NONNULL_PTR this_arg);
32377 /* @internal */
32378 export function Invoice_amount_milli_satoshis(this_arg: number): number {
32379         if(!isWasmInitialized) {
32380                 throw new Error("initializeWasm() must be awaited first!");
32381         }
32382         const nativeResponseValue = wasm.TS_Invoice_amount_milli_satoshis(this_arg);
32383         return nativeResponseValue;
32384 }
32385         // MUST_USE_RES struct LDKCResult_DescriptionCreationErrorZ Description_new(struct LDKStr description);
32386 /* @internal */
32387 export function Description_new(description: number): number {
32388         if(!isWasmInitialized) {
32389                 throw new Error("initializeWasm() must be awaited first!");
32390         }
32391         const nativeResponseValue = wasm.TS_Description_new(description);
32392         return nativeResponseValue;
32393 }
32394         // MUST_USE_RES struct LDKStr Description_into_inner(struct LDKDescription this_arg);
32395 /* @internal */
32396 export function Description_into_inner(this_arg: number): number {
32397         if(!isWasmInitialized) {
32398                 throw new Error("initializeWasm() must be awaited first!");
32399         }
32400         const nativeResponseValue = wasm.TS_Description_into_inner(this_arg);
32401         return nativeResponseValue;
32402 }
32403         // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_seconds(uint64_t seconds);
32404 /* @internal */
32405 export function ExpiryTime_from_seconds(seconds: bigint): number {
32406         if(!isWasmInitialized) {
32407                 throw new Error("initializeWasm() must be awaited first!");
32408         }
32409         const nativeResponseValue = wasm.TS_ExpiryTime_from_seconds(seconds);
32410         return nativeResponseValue;
32411 }
32412         // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_duration(uint64_t duration);
32413 /* @internal */
32414 export function ExpiryTime_from_duration(duration: bigint): number {
32415         if(!isWasmInitialized) {
32416                 throw new Error("initializeWasm() must be awaited first!");
32417         }
32418         const nativeResponseValue = wasm.TS_ExpiryTime_from_duration(duration);
32419         return nativeResponseValue;
32420 }
32421         // MUST_USE_RES uint64_t ExpiryTime_as_seconds(const struct LDKExpiryTime *NONNULL_PTR this_arg);
32422 /* @internal */
32423 export function ExpiryTime_as_seconds(this_arg: number): bigint {
32424         if(!isWasmInitialized) {
32425                 throw new Error("initializeWasm() must be awaited first!");
32426         }
32427         const nativeResponseValue = wasm.TS_ExpiryTime_as_seconds(this_arg);
32428         return nativeResponseValue;
32429 }
32430         // MUST_USE_RES uint64_t ExpiryTime_as_duration(const struct LDKExpiryTime *NONNULL_PTR this_arg);
32431 /* @internal */
32432 export function ExpiryTime_as_duration(this_arg: number): bigint {
32433         if(!isWasmInitialized) {
32434                 throw new Error("initializeWasm() must be awaited first!");
32435         }
32436         const nativeResponseValue = wasm.TS_ExpiryTime_as_duration(this_arg);
32437         return nativeResponseValue;
32438 }
32439         // MUST_USE_RES struct LDKCResult_PrivateRouteCreationErrorZ PrivateRoute_new(struct LDKRouteHint hops);
32440 /* @internal */
32441 export function PrivateRoute_new(hops: number): number {
32442         if(!isWasmInitialized) {
32443                 throw new Error("initializeWasm() must be awaited first!");
32444         }
32445         const nativeResponseValue = wasm.TS_PrivateRoute_new(hops);
32446         return nativeResponseValue;
32447 }
32448         // MUST_USE_RES struct LDKRouteHint PrivateRoute_into_inner(struct LDKPrivateRoute this_arg);
32449 /* @internal */
32450 export function PrivateRoute_into_inner(this_arg: number): number {
32451         if(!isWasmInitialized) {
32452                 throw new Error("initializeWasm() must be awaited first!");
32453         }
32454         const nativeResponseValue = wasm.TS_PrivateRoute_into_inner(this_arg);
32455         return nativeResponseValue;
32456 }
32457         // enum LDKCreationError CreationError_clone(const enum LDKCreationError *NONNULL_PTR orig);
32458 /* @internal */
32459 export function CreationError_clone(orig: number): CreationError {
32460         if(!isWasmInitialized) {
32461                 throw new Error("initializeWasm() must be awaited first!");
32462         }
32463         const nativeResponseValue = wasm.TS_CreationError_clone(orig);
32464         return nativeResponseValue;
32465 }
32466         // enum LDKCreationError CreationError_description_too_long(void);
32467 /* @internal */
32468 export function CreationError_description_too_long(): CreationError {
32469         if(!isWasmInitialized) {
32470                 throw new Error("initializeWasm() must be awaited first!");
32471         }
32472         const nativeResponseValue = wasm.TS_CreationError_description_too_long();
32473         return nativeResponseValue;
32474 }
32475         // enum LDKCreationError CreationError_route_too_long(void);
32476 /* @internal */
32477 export function CreationError_route_too_long(): CreationError {
32478         if(!isWasmInitialized) {
32479                 throw new Error("initializeWasm() must be awaited first!");
32480         }
32481         const nativeResponseValue = wasm.TS_CreationError_route_too_long();
32482         return nativeResponseValue;
32483 }
32484         // enum LDKCreationError CreationError_timestamp_out_of_bounds(void);
32485 /* @internal */
32486 export function CreationError_timestamp_out_of_bounds(): CreationError {
32487         if(!isWasmInitialized) {
32488                 throw new Error("initializeWasm() must be awaited first!");
32489         }
32490         const nativeResponseValue = wasm.TS_CreationError_timestamp_out_of_bounds();
32491         return nativeResponseValue;
32492 }
32493         // enum LDKCreationError CreationError_invalid_amount(void);
32494 /* @internal */
32495 export function CreationError_invalid_amount(): CreationError {
32496         if(!isWasmInitialized) {
32497                 throw new Error("initializeWasm() must be awaited first!");
32498         }
32499         const nativeResponseValue = wasm.TS_CreationError_invalid_amount();
32500         return nativeResponseValue;
32501 }
32502         // enum LDKCreationError CreationError_missing_route_hints(void);
32503 /* @internal */
32504 export function CreationError_missing_route_hints(): CreationError {
32505         if(!isWasmInitialized) {
32506                 throw new Error("initializeWasm() must be awaited first!");
32507         }
32508         const nativeResponseValue = wasm.TS_CreationError_missing_route_hints();
32509         return nativeResponseValue;
32510 }
32511         // bool CreationError_eq(const enum LDKCreationError *NONNULL_PTR a, const enum LDKCreationError *NONNULL_PTR b);
32512 /* @internal */
32513 export function CreationError_eq(a: number, b: number): boolean {
32514         if(!isWasmInitialized) {
32515                 throw new Error("initializeWasm() must be awaited first!");
32516         }
32517         const nativeResponseValue = wasm.TS_CreationError_eq(a, b);
32518         return nativeResponseValue;
32519 }
32520         // struct LDKStr CreationError_to_str(const enum LDKCreationError *NONNULL_PTR o);
32521 /* @internal */
32522 export function CreationError_to_str(o: number): number {
32523         if(!isWasmInitialized) {
32524                 throw new Error("initializeWasm() must be awaited first!");
32525         }
32526         const nativeResponseValue = wasm.TS_CreationError_to_str(o);
32527         return nativeResponseValue;
32528 }
32529         // enum LDKSemanticError SemanticError_clone(const enum LDKSemanticError *NONNULL_PTR orig);
32530 /* @internal */
32531 export function SemanticError_clone(orig: number): SemanticError {
32532         if(!isWasmInitialized) {
32533                 throw new Error("initializeWasm() must be awaited first!");
32534         }
32535         const nativeResponseValue = wasm.TS_SemanticError_clone(orig);
32536         return nativeResponseValue;
32537 }
32538         // enum LDKSemanticError SemanticError_no_payment_hash(void);
32539 /* @internal */
32540 export function SemanticError_no_payment_hash(): SemanticError {
32541         if(!isWasmInitialized) {
32542                 throw new Error("initializeWasm() must be awaited first!");
32543         }
32544         const nativeResponseValue = wasm.TS_SemanticError_no_payment_hash();
32545         return nativeResponseValue;
32546 }
32547         // enum LDKSemanticError SemanticError_multiple_payment_hashes(void);
32548 /* @internal */
32549 export function SemanticError_multiple_payment_hashes(): SemanticError {
32550         if(!isWasmInitialized) {
32551                 throw new Error("initializeWasm() must be awaited first!");
32552         }
32553         const nativeResponseValue = wasm.TS_SemanticError_multiple_payment_hashes();
32554         return nativeResponseValue;
32555 }
32556         // enum LDKSemanticError SemanticError_no_description(void);
32557 /* @internal */
32558 export function SemanticError_no_description(): SemanticError {
32559         if(!isWasmInitialized) {
32560                 throw new Error("initializeWasm() must be awaited first!");
32561         }
32562         const nativeResponseValue = wasm.TS_SemanticError_no_description();
32563         return nativeResponseValue;
32564 }
32565         // enum LDKSemanticError SemanticError_multiple_descriptions(void);
32566 /* @internal */
32567 export function SemanticError_multiple_descriptions(): SemanticError {
32568         if(!isWasmInitialized) {
32569                 throw new Error("initializeWasm() must be awaited first!");
32570         }
32571         const nativeResponseValue = wasm.TS_SemanticError_multiple_descriptions();
32572         return nativeResponseValue;
32573 }
32574         // enum LDKSemanticError SemanticError_no_payment_secret(void);
32575 /* @internal */
32576 export function SemanticError_no_payment_secret(): SemanticError {
32577         if(!isWasmInitialized) {
32578                 throw new Error("initializeWasm() must be awaited first!");
32579         }
32580         const nativeResponseValue = wasm.TS_SemanticError_no_payment_secret();
32581         return nativeResponseValue;
32582 }
32583         // enum LDKSemanticError SemanticError_multiple_payment_secrets(void);
32584 /* @internal */
32585 export function SemanticError_multiple_payment_secrets(): SemanticError {
32586         if(!isWasmInitialized) {
32587                 throw new Error("initializeWasm() must be awaited first!");
32588         }
32589         const nativeResponseValue = wasm.TS_SemanticError_multiple_payment_secrets();
32590         return nativeResponseValue;
32591 }
32592         // enum LDKSemanticError SemanticError_invalid_features(void);
32593 /* @internal */
32594 export function SemanticError_invalid_features(): SemanticError {
32595         if(!isWasmInitialized) {
32596                 throw new Error("initializeWasm() must be awaited first!");
32597         }
32598         const nativeResponseValue = wasm.TS_SemanticError_invalid_features();
32599         return nativeResponseValue;
32600 }
32601         // enum LDKSemanticError SemanticError_invalid_recovery_id(void);
32602 /* @internal */
32603 export function SemanticError_invalid_recovery_id(): SemanticError {
32604         if(!isWasmInitialized) {
32605                 throw new Error("initializeWasm() must be awaited first!");
32606         }
32607         const nativeResponseValue = wasm.TS_SemanticError_invalid_recovery_id();
32608         return nativeResponseValue;
32609 }
32610         // enum LDKSemanticError SemanticError_invalid_signature(void);
32611 /* @internal */
32612 export function SemanticError_invalid_signature(): SemanticError {
32613         if(!isWasmInitialized) {
32614                 throw new Error("initializeWasm() must be awaited first!");
32615         }
32616         const nativeResponseValue = wasm.TS_SemanticError_invalid_signature();
32617         return nativeResponseValue;
32618 }
32619         // enum LDKSemanticError SemanticError_imprecise_amount(void);
32620 /* @internal */
32621 export function SemanticError_imprecise_amount(): SemanticError {
32622         if(!isWasmInitialized) {
32623                 throw new Error("initializeWasm() must be awaited first!");
32624         }
32625         const nativeResponseValue = wasm.TS_SemanticError_imprecise_amount();
32626         return nativeResponseValue;
32627 }
32628         // bool SemanticError_eq(const enum LDKSemanticError *NONNULL_PTR a, const enum LDKSemanticError *NONNULL_PTR b);
32629 /* @internal */
32630 export function SemanticError_eq(a: number, b: number): boolean {
32631         if(!isWasmInitialized) {
32632                 throw new Error("initializeWasm() must be awaited first!");
32633         }
32634         const nativeResponseValue = wasm.TS_SemanticError_eq(a, b);
32635         return nativeResponseValue;
32636 }
32637         // struct LDKStr SemanticError_to_str(const enum LDKSemanticError *NONNULL_PTR o);
32638 /* @internal */
32639 export function SemanticError_to_str(o: number): number {
32640         if(!isWasmInitialized) {
32641                 throw new Error("initializeWasm() must be awaited first!");
32642         }
32643         const nativeResponseValue = wasm.TS_SemanticError_to_str(o);
32644         return nativeResponseValue;
32645 }
32646         // void SignOrCreationError_free(struct LDKSignOrCreationError this_ptr);
32647 /* @internal */
32648 export function SignOrCreationError_free(this_ptr: number): void {
32649         if(!isWasmInitialized) {
32650                 throw new Error("initializeWasm() must be awaited first!");
32651         }
32652         const nativeResponseValue = wasm.TS_SignOrCreationError_free(this_ptr);
32653         // debug statements here
32654 }
32655         // uintptr_t SignOrCreationError_clone_ptr(LDKSignOrCreationError *NONNULL_PTR arg);
32656 /* @internal */
32657 export function SignOrCreationError_clone_ptr(arg: number): number {
32658         if(!isWasmInitialized) {
32659                 throw new Error("initializeWasm() must be awaited first!");
32660         }
32661         const nativeResponseValue = wasm.TS_SignOrCreationError_clone_ptr(arg);
32662         return nativeResponseValue;
32663 }
32664         // struct LDKSignOrCreationError SignOrCreationError_clone(const struct LDKSignOrCreationError *NONNULL_PTR orig);
32665 /* @internal */
32666 export function SignOrCreationError_clone(orig: number): number {
32667         if(!isWasmInitialized) {
32668                 throw new Error("initializeWasm() must be awaited first!");
32669         }
32670         const nativeResponseValue = wasm.TS_SignOrCreationError_clone(orig);
32671         return nativeResponseValue;
32672 }
32673         // struct LDKSignOrCreationError SignOrCreationError_sign_error(void);
32674 /* @internal */
32675 export function SignOrCreationError_sign_error(): number {
32676         if(!isWasmInitialized) {
32677                 throw new Error("initializeWasm() must be awaited first!");
32678         }
32679         const nativeResponseValue = wasm.TS_SignOrCreationError_sign_error();
32680         return nativeResponseValue;
32681 }
32682         // struct LDKSignOrCreationError SignOrCreationError_creation_error(enum LDKCreationError a);
32683 /* @internal */
32684 export function SignOrCreationError_creation_error(a: CreationError): number {
32685         if(!isWasmInitialized) {
32686                 throw new Error("initializeWasm() must be awaited first!");
32687         }
32688         const nativeResponseValue = wasm.TS_SignOrCreationError_creation_error(a);
32689         return nativeResponseValue;
32690 }
32691         // bool SignOrCreationError_eq(const struct LDKSignOrCreationError *NONNULL_PTR a, const struct LDKSignOrCreationError *NONNULL_PTR b);
32692 /* @internal */
32693 export function SignOrCreationError_eq(a: number, b: number): boolean {
32694         if(!isWasmInitialized) {
32695                 throw new Error("initializeWasm() must be awaited first!");
32696         }
32697         const nativeResponseValue = wasm.TS_SignOrCreationError_eq(a, b);
32698         return nativeResponseValue;
32699 }
32700         // struct LDKStr SignOrCreationError_to_str(const struct LDKSignOrCreationError *NONNULL_PTR o);
32701 /* @internal */
32702 export function SignOrCreationError_to_str(o: number): number {
32703         if(!isWasmInitialized) {
32704                 throw new Error("initializeWasm() must be awaited first!");
32705         }
32706         const nativeResponseValue = wasm.TS_SignOrCreationError_to_str(o);
32707         return nativeResponseValue;
32708 }
32709         // void InvoicePayer_free(struct LDKInvoicePayer this_obj);
32710 /* @internal */
32711 export function InvoicePayer_free(this_obj: number): void {
32712         if(!isWasmInitialized) {
32713                 throw new Error("initializeWasm() must be awaited first!");
32714         }
32715         const nativeResponseValue = wasm.TS_InvoicePayer_free(this_obj);
32716         // debug statements here
32717 }
32718         // void Payer_free(struct LDKPayer this_ptr);
32719 /* @internal */
32720 export function Payer_free(this_ptr: number): void {
32721         if(!isWasmInitialized) {
32722                 throw new Error("initializeWasm() must be awaited first!");
32723         }
32724         const nativeResponseValue = wasm.TS_Payer_free(this_ptr);
32725         // debug statements here
32726 }
32727         // void Router_free(struct LDKRouter this_ptr);
32728 /* @internal */
32729 export function Router_free(this_ptr: number): void {
32730         if(!isWasmInitialized) {
32731                 throw new Error("initializeWasm() must be awaited first!");
32732         }
32733         const nativeResponseValue = wasm.TS_Router_free(this_ptr);
32734         // debug statements here
32735 }
32736         // void Retry_free(struct LDKRetry this_ptr);
32737 /* @internal */
32738 export function Retry_free(this_ptr: number): void {
32739         if(!isWasmInitialized) {
32740                 throw new Error("initializeWasm() must be awaited first!");
32741         }
32742         const nativeResponseValue = wasm.TS_Retry_free(this_ptr);
32743         // debug statements here
32744 }
32745         // uintptr_t Retry_clone_ptr(LDKRetry *NONNULL_PTR arg);
32746 /* @internal */
32747 export function Retry_clone_ptr(arg: number): number {
32748         if(!isWasmInitialized) {
32749                 throw new Error("initializeWasm() must be awaited first!");
32750         }
32751         const nativeResponseValue = wasm.TS_Retry_clone_ptr(arg);
32752         return nativeResponseValue;
32753 }
32754         // struct LDKRetry Retry_clone(const struct LDKRetry *NONNULL_PTR orig);
32755 /* @internal */
32756 export function Retry_clone(orig: number): number {
32757         if(!isWasmInitialized) {
32758                 throw new Error("initializeWasm() must be awaited first!");
32759         }
32760         const nativeResponseValue = wasm.TS_Retry_clone(orig);
32761         return nativeResponseValue;
32762 }
32763         // struct LDKRetry Retry_attempts(uintptr_t a);
32764 /* @internal */
32765 export function Retry_attempts(a: number): number {
32766         if(!isWasmInitialized) {
32767                 throw new Error("initializeWasm() must be awaited first!");
32768         }
32769         const nativeResponseValue = wasm.TS_Retry_attempts(a);
32770         return nativeResponseValue;
32771 }
32772         // bool Retry_eq(const struct LDKRetry *NONNULL_PTR a, const struct LDKRetry *NONNULL_PTR b);
32773 /* @internal */
32774 export function Retry_eq(a: number, b: number): boolean {
32775         if(!isWasmInitialized) {
32776                 throw new Error("initializeWasm() must be awaited first!");
32777         }
32778         const nativeResponseValue = wasm.TS_Retry_eq(a, b);
32779         return nativeResponseValue;
32780 }
32781         // uint64_t Retry_hash(const struct LDKRetry *NONNULL_PTR o);
32782 /* @internal */
32783 export function Retry_hash(o: number): bigint {
32784         if(!isWasmInitialized) {
32785                 throw new Error("initializeWasm() must be awaited first!");
32786         }
32787         const nativeResponseValue = wasm.TS_Retry_hash(o);
32788         return nativeResponseValue;
32789 }
32790         // void PaymentError_free(struct LDKPaymentError this_ptr);
32791 /* @internal */
32792 export function PaymentError_free(this_ptr: number): void {
32793         if(!isWasmInitialized) {
32794                 throw new Error("initializeWasm() must be awaited first!");
32795         }
32796         const nativeResponseValue = wasm.TS_PaymentError_free(this_ptr);
32797         // debug statements here
32798 }
32799         // uintptr_t PaymentError_clone_ptr(LDKPaymentError *NONNULL_PTR arg);
32800 /* @internal */
32801 export function PaymentError_clone_ptr(arg: number): number {
32802         if(!isWasmInitialized) {
32803                 throw new Error("initializeWasm() must be awaited first!");
32804         }
32805         const nativeResponseValue = wasm.TS_PaymentError_clone_ptr(arg);
32806         return nativeResponseValue;
32807 }
32808         // struct LDKPaymentError PaymentError_clone(const struct LDKPaymentError *NONNULL_PTR orig);
32809 /* @internal */
32810 export function PaymentError_clone(orig: number): number {
32811         if(!isWasmInitialized) {
32812                 throw new Error("initializeWasm() must be awaited first!");
32813         }
32814         const nativeResponseValue = wasm.TS_PaymentError_clone(orig);
32815         return nativeResponseValue;
32816 }
32817         // struct LDKPaymentError PaymentError_invoice(struct LDKStr a);
32818 /* @internal */
32819 export function PaymentError_invoice(a: number): number {
32820         if(!isWasmInitialized) {
32821                 throw new Error("initializeWasm() must be awaited first!");
32822         }
32823         const nativeResponseValue = wasm.TS_PaymentError_invoice(a);
32824         return nativeResponseValue;
32825 }
32826         // struct LDKPaymentError PaymentError_routing(struct LDKLightningError a);
32827 /* @internal */
32828 export function PaymentError_routing(a: number): number {
32829         if(!isWasmInitialized) {
32830                 throw new Error("initializeWasm() must be awaited first!");
32831         }
32832         const nativeResponseValue = wasm.TS_PaymentError_routing(a);
32833         return nativeResponseValue;
32834 }
32835         // struct LDKPaymentError PaymentError_sending(struct LDKPaymentSendFailure a);
32836 /* @internal */
32837 export function PaymentError_sending(a: number): number {
32838         if(!isWasmInitialized) {
32839                 throw new Error("initializeWasm() must be awaited first!");
32840         }
32841         const nativeResponseValue = wasm.TS_PaymentError_sending(a);
32842         return nativeResponseValue;
32843 }
32844         // 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 LDKRetry retry);
32845 /* @internal */
32846 export function InvoicePayer_new(payer: number, router: number, scorer: number, logger: number, event_handler: number, retry: number): number {
32847         if(!isWasmInitialized) {
32848                 throw new Error("initializeWasm() must be awaited first!");
32849         }
32850         const nativeResponseValue = wasm.TS_InvoicePayer_new(payer, router, scorer, logger, event_handler, retry);
32851         return nativeResponseValue;
32852 }
32853         // MUST_USE_RES struct LDKCResult_PaymentIdPaymentErrorZ InvoicePayer_pay_invoice(const struct LDKInvoicePayer *NONNULL_PTR this_arg, const struct LDKInvoice *NONNULL_PTR invoice);
32854 /* @internal */
32855 export function InvoicePayer_pay_invoice(this_arg: number, invoice: number): number {
32856         if(!isWasmInitialized) {
32857                 throw new Error("initializeWasm() must be awaited first!");
32858         }
32859         const nativeResponseValue = wasm.TS_InvoicePayer_pay_invoice(this_arg, invoice);
32860         return nativeResponseValue;
32861 }
32862         // 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);
32863 /* @internal */
32864 export function InvoicePayer_pay_zero_value_invoice(this_arg: number, invoice: number, amount_msats: bigint): number {
32865         if(!isWasmInitialized) {
32866                 throw new Error("initializeWasm() must be awaited first!");
32867         }
32868         const nativeResponseValue = wasm.TS_InvoicePayer_pay_zero_value_invoice(this_arg, invoice, amount_msats);
32869         return nativeResponseValue;
32870 }
32871         // 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);
32872 /* @internal */
32873 export function InvoicePayer_pay_pubkey(this_arg: number, pubkey: number, payment_preimage: number, amount_msats: bigint, final_cltv_expiry_delta: number): number {
32874         if(!isWasmInitialized) {
32875                 throw new Error("initializeWasm() must be awaited first!");
32876         }
32877         const nativeResponseValue = wasm.TS_InvoicePayer_pay_pubkey(this_arg, pubkey, payment_preimage, amount_msats, final_cltv_expiry_delta);
32878         return nativeResponseValue;
32879 }
32880         // void InvoicePayer_remove_cached_payment(const struct LDKInvoicePayer *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
32881 /* @internal */
32882 export function InvoicePayer_remove_cached_payment(this_arg: number, payment_hash: number): void {
32883         if(!isWasmInitialized) {
32884                 throw new Error("initializeWasm() must be awaited first!");
32885         }
32886         const nativeResponseValue = wasm.TS_InvoicePayer_remove_cached_payment(this_arg, payment_hash);
32887         // debug statements here
32888 }
32889         // struct LDKEventHandler InvoicePayer_as_EventHandler(const struct LDKInvoicePayer *NONNULL_PTR this_arg);
32890 /* @internal */
32891 export function InvoicePayer_as_EventHandler(this_arg: number): number {
32892         if(!isWasmInitialized) {
32893                 throw new Error("initializeWasm() must be awaited first!");
32894         }
32895         const nativeResponseValue = wasm.TS_InvoicePayer_as_EventHandler(this_arg);
32896         return nativeResponseValue;
32897 }
32898         // 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, uint32_t invoice_expiry_delta_secs);
32899 /* @internal */
32900 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, invoice_expiry_delta_secs: number): number {
32901         if(!isWasmInitialized) {
32902                 throw new Error("initializeWasm() must be awaited first!");
32903         }
32904         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, invoice_expiry_delta_secs);
32905         return nativeResponseValue;
32906 }
32907         // 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, uint32_t invoice_expiry_delta_secs);
32908 /* @internal */
32909 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, invoice_expiry_delta_secs: number): number {
32910         if(!isWasmInitialized) {
32911                 throw new Error("initializeWasm() must be awaited first!");
32912         }
32913         const nativeResponseValue = wasm.TS_create_invoice_from_channelmanager_and_duration_since_epoch(channelmanager, keys_manager, network, amt_msat, description, duration_since_epoch, invoice_expiry_delta_secs);
32914         return nativeResponseValue;
32915 }
32916         // void DefaultRouter_free(struct LDKDefaultRouter this_obj);
32917 /* @internal */
32918 export function DefaultRouter_free(this_obj: number): void {
32919         if(!isWasmInitialized) {
32920                 throw new Error("initializeWasm() must be awaited first!");
32921         }
32922         const nativeResponseValue = wasm.TS_DefaultRouter_free(this_obj);
32923         // debug statements here
32924 }
32925         // MUST_USE_RES struct LDKDefaultRouter DefaultRouter_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger, struct LDKThirtyTwoBytes random_seed_bytes);
32926 /* @internal */
32927 export function DefaultRouter_new(network_graph: number, logger: number, random_seed_bytes: number): number {
32928         if(!isWasmInitialized) {
32929                 throw new Error("initializeWasm() must be awaited first!");
32930         }
32931         const nativeResponseValue = wasm.TS_DefaultRouter_new(network_graph, logger, random_seed_bytes);
32932         return nativeResponseValue;
32933 }
32934         // struct LDKRouter DefaultRouter_as_Router(const struct LDKDefaultRouter *NONNULL_PTR this_arg);
32935 /* @internal */
32936 export function DefaultRouter_as_Router(this_arg: number): number {
32937         if(!isWasmInitialized) {
32938                 throw new Error("initializeWasm() must be awaited first!");
32939         }
32940         const nativeResponseValue = wasm.TS_DefaultRouter_as_Router(this_arg);
32941         return nativeResponseValue;
32942 }
32943         // struct LDKPayer ChannelManager_as_Payer(const struct LDKChannelManager *NONNULL_PTR this_arg);
32944 /* @internal */
32945 export function ChannelManager_as_Payer(this_arg: number): number {
32946         if(!isWasmInitialized) {
32947                 throw new Error("initializeWasm() must be awaited first!");
32948         }
32949         const nativeResponseValue = wasm.TS_ChannelManager_as_Payer(this_arg);
32950         return nativeResponseValue;
32951 }
32952         // struct LDKCResult_SiPrefixParseErrorZ SiPrefix_from_str(struct LDKStr s);
32953 /* @internal */
32954 export function SiPrefix_from_str(s: number): number {
32955         if(!isWasmInitialized) {
32956                 throw new Error("initializeWasm() must be awaited first!");
32957         }
32958         const nativeResponseValue = wasm.TS_SiPrefix_from_str(s);
32959         return nativeResponseValue;
32960 }
32961         // struct LDKCResult_InvoiceParseOrSemanticErrorZ Invoice_from_str(struct LDKStr s);
32962 /* @internal */
32963 export function Invoice_from_str(s: number): number {
32964         if(!isWasmInitialized) {
32965                 throw new Error("initializeWasm() must be awaited first!");
32966         }
32967         const nativeResponseValue = wasm.TS_Invoice_from_str(s);
32968         return nativeResponseValue;
32969 }
32970         // struct LDKCResult_SignedRawInvoiceParseErrorZ SignedRawInvoice_from_str(struct LDKStr s);
32971 /* @internal */
32972 export function SignedRawInvoice_from_str(s: number): number {
32973         if(!isWasmInitialized) {
32974                 throw new Error("initializeWasm() must be awaited first!");
32975         }
32976         const nativeResponseValue = wasm.TS_SignedRawInvoice_from_str(s);
32977         return nativeResponseValue;
32978 }
32979         // struct LDKStr ParseError_to_str(const struct LDKParseError *NONNULL_PTR o);
32980 /* @internal */
32981 export function ParseError_to_str(o: number): number {
32982         if(!isWasmInitialized) {
32983                 throw new Error("initializeWasm() must be awaited first!");
32984         }
32985         const nativeResponseValue = wasm.TS_ParseError_to_str(o);
32986         return nativeResponseValue;
32987 }
32988         // struct LDKStr ParseOrSemanticError_to_str(const struct LDKParseOrSemanticError *NONNULL_PTR o);
32989 /* @internal */
32990 export function ParseOrSemanticError_to_str(o: number): number {
32991         if(!isWasmInitialized) {
32992                 throw new Error("initializeWasm() must be awaited first!");
32993         }
32994         const nativeResponseValue = wasm.TS_ParseOrSemanticError_to_str(o);
32995         return nativeResponseValue;
32996 }
32997         // struct LDKStr Invoice_to_str(const struct LDKInvoice *NONNULL_PTR o);
32998 /* @internal */
32999 export function Invoice_to_str(o: number): number {
33000         if(!isWasmInitialized) {
33001                 throw new Error("initializeWasm() must be awaited first!");
33002         }
33003         const nativeResponseValue = wasm.TS_Invoice_to_str(o);
33004         return nativeResponseValue;
33005 }
33006         // struct LDKStr SignedRawInvoice_to_str(const struct LDKSignedRawInvoice *NONNULL_PTR o);
33007 /* @internal */
33008 export function SignedRawInvoice_to_str(o: number): number {
33009         if(!isWasmInitialized) {
33010                 throw new Error("initializeWasm() must be awaited first!");
33011         }
33012         const nativeResponseValue = wasm.TS_SignedRawInvoice_to_str(o);
33013         return nativeResponseValue;
33014 }
33015         // struct LDKStr Currency_to_str(const enum LDKCurrency *NONNULL_PTR o);
33016 /* @internal */
33017 export function Currency_to_str(o: number): number {
33018         if(!isWasmInitialized) {
33019                 throw new Error("initializeWasm() must be awaited first!");
33020         }
33021         const nativeResponseValue = wasm.TS_Currency_to_str(o);
33022         return nativeResponseValue;
33023 }
33024         // struct LDKStr SiPrefix_to_str(const enum LDKSiPrefix *NONNULL_PTR o);
33025 /* @internal */
33026 export function SiPrefix_to_str(o: number): number {
33027         if(!isWasmInitialized) {
33028                 throw new Error("initializeWasm() must be awaited first!");
33029         }
33030         const nativeResponseValue = wasm.TS_SiPrefix_to_str(o);
33031         return nativeResponseValue;
33032 }
33033
33034
33035 js_invoke = function(obj_ptr: number, fn_id: number, arg1: bigint|number, arg2: bigint|number, arg3: bigint|number, arg4: bigint|number, arg5: bigint|number, arg6: bigint|number, arg7: bigint|number, arg8: bigint|number, arg9: bigint|number, arg10: bigint|number) {
33036         const weak: WeakRef<object> = js_objs[obj_ptr];
33037         if (weak == null || weak == undefined) {
33038                 console.error("Got function call on unknown/free'd JS object!");
33039                 throw new Error("Got function call on unknown/free'd JS object!");
33040         }
33041         const obj: object = weak.deref();
33042         if (obj == null || obj == undefined) {
33043                 console.error("Got function call on GC'd JS object!");
33044                 throw new Error("Got function call on GC'd JS object!");
33045         }
33046         var fn;
33047         switch (fn_id) {
33048                 case 0: fn = Object.getOwnPropertyDescriptor(obj, "log"); break;
33049                 case 1: fn = Object.getOwnPropertyDescriptor(obj, "get_utxo"); break;
33050                 case 2: fn = Object.getOwnPropertyDescriptor(obj, "get_per_commitment_point"); break;
33051                 case 3: fn = Object.getOwnPropertyDescriptor(obj, "release_commitment_secret"); break;
33052                 case 4: fn = Object.getOwnPropertyDescriptor(obj, "validate_holder_commitment"); break;
33053                 case 5: fn = Object.getOwnPropertyDescriptor(obj, "channel_keys_id"); break;
33054                 case 6: fn = Object.getOwnPropertyDescriptor(obj, "sign_counterparty_commitment"); break;
33055                 case 7: fn = Object.getOwnPropertyDescriptor(obj, "validate_counterparty_revocation"); break;
33056                 case 8: fn = Object.getOwnPropertyDescriptor(obj, "sign_holder_commitment_and_htlcs"); break;
33057                 case 9: fn = Object.getOwnPropertyDescriptor(obj, "sign_justice_revoked_output"); break;
33058                 case 10: fn = Object.getOwnPropertyDescriptor(obj, "sign_justice_revoked_htlc"); break;
33059                 case 11: fn = Object.getOwnPropertyDescriptor(obj, "sign_counterparty_htlc_transaction"); break;
33060                 case 12: fn = Object.getOwnPropertyDescriptor(obj, "sign_closing_transaction"); break;
33061                 case 13: fn = Object.getOwnPropertyDescriptor(obj, "sign_channel_announcement"); break;
33062                 case 14: fn = Object.getOwnPropertyDescriptor(obj, "ready_channel"); break;
33063                 case 15: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
33064                 case 16: fn = Object.getOwnPropertyDescriptor(obj, "watch_channel"); break;
33065                 case 17: fn = Object.getOwnPropertyDescriptor(obj, "update_channel"); break;
33066                 case 18: fn = Object.getOwnPropertyDescriptor(obj, "release_pending_monitor_events"); break;
33067                 case 19: fn = Object.getOwnPropertyDescriptor(obj, "broadcast_transaction"); break;
33068                 case 20: fn = Object.getOwnPropertyDescriptor(obj, "get_node_secret"); break;
33069                 case 21: fn = Object.getOwnPropertyDescriptor(obj, "get_destination_script"); break;
33070                 case 22: fn = Object.getOwnPropertyDescriptor(obj, "get_shutdown_scriptpubkey"); break;
33071                 case 23: fn = Object.getOwnPropertyDescriptor(obj, "get_channel_signer"); break;
33072                 case 24: fn = Object.getOwnPropertyDescriptor(obj, "get_secure_random_bytes"); break;
33073                 case 25: fn = Object.getOwnPropertyDescriptor(obj, "read_chan_signer"); break;
33074                 case 26: fn = Object.getOwnPropertyDescriptor(obj, "sign_invoice"); break;
33075                 case 27: fn = Object.getOwnPropertyDescriptor(obj, "get_inbound_payment_key_material"); break;
33076                 case 28: fn = Object.getOwnPropertyDescriptor(obj, "get_est_sat_per_1000_weight"); break;
33077                 case 29: fn = Object.getOwnPropertyDescriptor(obj, "type_id"); break;
33078                 case 30: fn = Object.getOwnPropertyDescriptor(obj, "debug_str"); break;
33079                 case 31: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
33080                 case 32: fn = Object.getOwnPropertyDescriptor(obj, "register_tx"); break;
33081                 case 33: fn = Object.getOwnPropertyDescriptor(obj, "register_output"); break;
33082                 case 34: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg_events"); break;
33083                 case 35: fn = Object.getOwnPropertyDescriptor(obj, "handle_event"); break;
33084                 case 36: fn = Object.getOwnPropertyDescriptor(obj, "process_pending_events"); break;
33085                 case 37: fn = Object.getOwnPropertyDescriptor(obj, "channel_penalty_msat"); break;
33086                 case 38: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_failed"); break;
33087                 case 39: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_successful"); break;
33088                 case 40: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
33089                 case 41: fn = Object.getOwnPropertyDescriptor(obj, "persist_manager"); break;
33090                 case 42: fn = Object.getOwnPropertyDescriptor(obj, "persist_graph"); break;
33091                 case 43: fn = Object.getOwnPropertyDescriptor(obj, "persist_scorer"); break;
33092                 case 44: fn = Object.getOwnPropertyDescriptor(obj, "filtered_block_connected"); break;
33093                 case 45: fn = Object.getOwnPropertyDescriptor(obj, "block_connected"); break;
33094                 case 46: fn = Object.getOwnPropertyDescriptor(obj, "block_disconnected"); break;
33095                 case 47: fn = Object.getOwnPropertyDescriptor(obj, "transactions_confirmed"); break;
33096                 case 48: fn = Object.getOwnPropertyDescriptor(obj, "transaction_unconfirmed"); break;
33097                 case 49: fn = Object.getOwnPropertyDescriptor(obj, "best_block_updated"); break;
33098                 case 50: fn = Object.getOwnPropertyDescriptor(obj, "get_relevant_txids"); break;
33099                 case 51: fn = Object.getOwnPropertyDescriptor(obj, "persist_new_channel"); break;
33100                 case 52: fn = Object.getOwnPropertyDescriptor(obj, "update_persisted_channel"); break;
33101                 case 53: fn = Object.getOwnPropertyDescriptor(obj, "handle_open_channel"); break;
33102                 case 54: fn = Object.getOwnPropertyDescriptor(obj, "handle_accept_channel"); break;
33103                 case 55: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_created"); break;
33104                 case 56: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_signed"); break;
33105                 case 57: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_ready"); break;
33106                 case 58: fn = Object.getOwnPropertyDescriptor(obj, "handle_shutdown"); break;
33107                 case 59: fn = Object.getOwnPropertyDescriptor(obj, "handle_closing_signed"); break;
33108                 case 60: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_add_htlc"); break;
33109                 case 61: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fulfill_htlc"); break;
33110                 case 62: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fail_htlc"); break;
33111                 case 63: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fail_malformed_htlc"); break;
33112                 case 64: fn = Object.getOwnPropertyDescriptor(obj, "handle_commitment_signed"); break;
33113                 case 65: fn = Object.getOwnPropertyDescriptor(obj, "handle_revoke_and_ack"); break;
33114                 case 66: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fee"); break;
33115                 case 67: fn = Object.getOwnPropertyDescriptor(obj, "handle_announcement_signatures"); break;
33116                 case 68: fn = Object.getOwnPropertyDescriptor(obj, "peer_disconnected"); break;
33117                 case 69: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break;
33118                 case 70: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_reestablish"); break;
33119                 case 71: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_update"); break;
33120                 case 72: fn = Object.getOwnPropertyDescriptor(obj, "handle_error"); break;
33121                 case 73: fn = Object.getOwnPropertyDescriptor(obj, "handle_node_announcement"); break;
33122                 case 74: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_announcement"); break;
33123                 case 75: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_update"); break;
33124                 case 76: fn = Object.getOwnPropertyDescriptor(obj, "get_next_channel_announcements"); break;
33125                 case 77: fn = Object.getOwnPropertyDescriptor(obj, "get_next_node_announcements"); break;
33126                 case 78: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break;
33127                 case 79: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_channel_range"); break;
33128                 case 80: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_short_channel_ids_end"); break;
33129                 case 81: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_channel_range"); break;
33130                 case 82: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_short_channel_ids"); break;
33131                 case 83: fn = Object.getOwnPropertyDescriptor(obj, "read"); break;
33132                 case 84: fn = Object.getOwnPropertyDescriptor(obj, "handle_custom_message"); break;
33133                 case 85: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg"); break;
33134                 case 86: fn = Object.getOwnPropertyDescriptor(obj, "send_data"); break;
33135                 case 87: fn = Object.getOwnPropertyDescriptor(obj, "disconnect_socket"); break;
33136                 case 88: fn = Object.getOwnPropertyDescriptor(obj, "eq"); break;
33137                 case 89: fn = Object.getOwnPropertyDescriptor(obj, "hash"); break;
33138                 case 90: fn = Object.getOwnPropertyDescriptor(obj, "lock"); break;
33139                 case 91: fn = Object.getOwnPropertyDescriptor(obj, "node_id"); break;
33140                 case 92: fn = Object.getOwnPropertyDescriptor(obj, "first_hops"); break;
33141                 case 93: fn = Object.getOwnPropertyDescriptor(obj, "send_payment"); break;
33142                 case 94: fn = Object.getOwnPropertyDescriptor(obj, "send_spontaneous_payment"); break;
33143                 case 95: fn = Object.getOwnPropertyDescriptor(obj, "retry_payment"); break;
33144                 case 96: fn = Object.getOwnPropertyDescriptor(obj, "abandon_payment"); break;
33145                 case 97: fn = Object.getOwnPropertyDescriptor(obj, "find_route"); break;
33146                 default:
33147                         console.error("Got unknown function call from C!");
33148                         throw new Error("Got unknown function call from C!");
33149         }
33150         if (fn == null || fn == undefined) {
33151                 console.error("Got function call on incorrect JS object!");
33152                 throw new Error("Got function call on incorrect JS object!");
33153         }
33154         const ret = fn.value.bind(obj)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
33155         if (ret === undefined || ret === null) return BigInt(0);
33156         return BigInt(ret);
33157 }